NLA-lib Explorer

Real.roundNearest_roundNearest

Library · theorem

Rounding is idempotent for t \ge 1: \mathrm{fl}(\mathrm{fl}(\mathbf{x})) = \mathrm{fl}(\mathbf{x}), as \mathrm{fl}(\mathbf{x}) is on the grid. No printed source.

Real.roundNearest_roundNearest {t : ℕ} (ht : 0 < t) (x : ℝ) :
  Real.roundNearest t (Real.roundNearest t x) = Real.roundNearest t x

Full source on GitHub

Import NLAlib.ForMathlib.Algebra.Order.Round.