NLA-lib Explorer

Real.roundNearest_two_inv_pow

Library · theorem

A power 2^{-k} is on the grid of t \ge 1 bits, so rounding fixes it. No printed source.

Real.roundNearest_two_inv_pow {t : ℕ} (ht : 0 < t) (k : ℕ) : Real.roundNearest t (2⁻¹ ^ k) = 2⁻¹ ^ k

Full source on GitHub

Import NLAlib.ForMathlib.Algebra.Order.Round.