NLA-lib Explorer

Real.abs_roundNearest_le_of_mem_floatGrid

Library · theorem

Rounding to nearest does not leave the modulus of a grid point: if \beta is on the t-bit grid and \lvert a \rvert \le \lvert \beta \rvert, then \lvert \mathrm{fl}(a) \rvert \le \lvert \beta \rvert. No printed source.

Real.abs_roundNearest_le_of_mem_floatGrid {t : ℕ} {a β : ℝ} (hβ : β ∈ Real.floatGrid t)
  (ha : |a| ≤ |β|) : |Real.roundNearest t a| ≤ |β|

Full source on GitHub

Import NLAlib.ForMathlib.Algebra.Order.Round.