NLAlib.Computation.abs_sub_fixedPointDecode_le_of_fixedPointRound
Library · theorem
Rounding down on a positive-scale grid has absolute error at most one grid spacing.
NLAlib.Computation.abs_sub_fixedPointDecode_le_of_fixedPointRound {scale limit : ℕ} {a : ℚ}
{w : Computation.FixedPoint limit} (hscale : 0 < scale)
(h : Computation.fixedPointRound scale limit a = some w) :
|↑a - Computation.fixedPointDecode scale w| ≤ 1 / ↑scaleImport NLAlib.Matrix.FinitePrecision.FixedPoint.