NLA-lib Explorer

NLAlib.Computation.fixedPointRound_exists_of_abs_le

Library · theorem

Rounding succeeds for every rational exact value in the closed representable interval.

NLAlib.Computation.fixedPointRound_exists_of_abs_le {scale limit : ℕ} {a : ℚ} (hscale : 0 < scale)
  (h : |↑a| ≤ ↑limit / ↑scale) : ∃ w, Computation.fixedPointRound scale limit a = some w

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.FixedPoint.