NLA-lib Explorer

Float.Model.BinaryRounding.IsNearestFloat.abs_le_of_abs_le

Library · theorem

Rounding a real input whose magnitude is bounded by a represented value does not exceed that represented magnitude.

Float.Model.BinaryRounding.IsNearestFloat.abs_le_of_abs_le {p : ℕ} {emin : ℤ} {x y r : ℝ}
  (h : Float.Model.BinaryRounding.IsNearestFloat p emin x r)
  (hy : Float.Model.BinaryRounding.IsBinaryFloat p emin y) (hxy : |x| ≤ |y|) : |r| ≤ |y|

Full source on GitHub

Import NLAlib.ForMathlib.Data.Float.BinaryFormat.