NLA-lib Explorer

Float.Model.UnpackedFloat.abs_toReal_div_sub_le

Library · theorem

Division of finite canonical operands, when its unpacked result is finite, has relative allowance 2^{-p} and absolute allowance 2^{e_{\min}}/2, where p is the precision and e_{\min} the smallest significand exponent. Output finiteness excludes zero divisors; overflow on packing is a separate condition.

Float.Model.UnpackedFloat.abs_toReal_div_sub_le {spec : Float.Model.Format}
  (x y : Float.Model.UnpackedFloat) (hx : Float.Model.UnpackedFloat.IsCanonical spec x)
  (hy : Float.Model.UnpackedFloat.IsCanonical spec y) (hxf : x.IsFinite) (hyf : y.IsFinite)
  (h : (Float.Model.UnpackedFloat.div spec x y).IsFinite) :
  |(Float.Model.UnpackedFloat.div spec x y).toReal - x.toReal / y.toReal| ≤
    spec.unitRoundoff * |x.toReal / y.toReal| + spec.underflowBound

Full source on GitHub

Import NLAlib.ForMathlib.Data.Float.Operations.