Float.Model.UnpackedFloat.abs_toReal_sqrt_sub_le
Library · theorem
When the unpacked square root is finite, its error from the exact real square root is at most relative allowance 2^{-p} plus absolute allowance 2^{e_{\min}}/2, where p is the format precision and e_{\min} its smallest significand exponent. Packing is separate.
Float.Model.UnpackedFloat.abs_toReal_sqrt_sub_le {spec : Float.Model.Format}
(x : Float.Model.UnpackedFloat) (h : (Float.Model.UnpackedFloat.sqrt spec x).IsFinite) :
|(Float.Model.UnpackedFloat.sqrt spec x).toReal - √x.toReal| ≤
spec.unitRoundoff * √x.toReal + spec.underflowBoundImport NLAlib.ForMathlib.Data.Float.Sqrt.