NLAlib.Computation.abs_binaryFloatRound_le_of_abs_le
Library · theorem
Rounding does not exceed a represented value of larger magnitude: if y is represented in fmt and \lvert \mathbf{x}\rvert \le \lvert y\rvert, the rounding of \mathbf{x} has magnitude at most \lvert y\rvert, for every nearest tie policy.
NLAlib.Computation.abs_binaryFloatRound_le_of_abs_le (fmt : Float.Model.Format) {r : ℝ → ℤ}
(hr : ∀ (x : ℝ), Computation.AbsRelErr 0 (1 / 2) x ↑(r x)) {x y : ℝ}
(hy : Computation.IsBinaryRep fmt y) (hxy : |x| ≤ |y|) :
|Computation.binaryFloatRound fmt r x| ≤ |y|Import NLAlib.Matrix.FinitePrecision.BinaryFloat.