NLA-lib Explorer

Real.roundNearest_eq_self_of_mem_floatGrid

Library · theorem

Rounding fixes the grid: a t-bit floating-point number \mathbf{x} rounds to itself. No printed source.

Real.roundNearest_eq_self_of_mem_floatGrid {t : ℕ} {x : ℝ} (hx : x ∈ Real.floatGrid t) :
  Real.roundNearest t x = x

Full source on GitHub

Import NLAlib.ForMathlib.Algebra.Order.Round.