NLA-lib Explorer

NLAlib.Computation.binaryFloatRound_zero

Library · theorem

Binary rounding returns zero exactly for an exact zero input, for every nearest tie policy.

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

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.BinaryFloat.