NLA-lib Explorer

NLAlib.Computation.binaryFloatRound_eq_self

Library · theorem

Every represented finite value is fixed by binary rounding, for every nearest tie policy.

NLAlib.Computation.binaryFloatRound_eq_self (fmt : Float.Model.Format) {r : ℝ → ℤ}
  (hr : ∀ (x : ℝ), Computation.AbsRelErr 0 (1 / 2) x ↑(r x)) {x : ℝ}
  (hx : Computation.IsBinaryRep fmt x) : Computation.binaryFloatRound fmt r x = x

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.BinaryFloat.