Float.Model.BinaryRounding.abs_sub_le_of_lattice
Library · theorem
On the lattice 2^t\mathbb{Z}, a point within half a spacing of a real input is at least as close to that input as every lattice point.
Float.Model.BinaryRounding.abs_sub_le_of_lattice {x r z : ℝ} {t : ℤ} (hk : ∃ k, r = ↑k * 2 ^ t)
(hz : ∃ k, z = ↑k * 2 ^ t) (hd : |r - x| ≤ 2 ^ t / 2) : |r - x| ≤ |z - x|Import NLAlib.ForMathlib.Data.Float.BinaryFormat.