Float.Model.UnpackedFloat.roundWithAccuracy_isCanonical
Library · theorem
Rounding an extended mantissa that describes a real value produces canonical unpacked data when the input exponent is no larger than the target exponent.
Float.Model.UnpackedFloat.roundWithAccuracy_isCanonical (spec : Float.Model.Format)
(s : Float.Model.UnpackedFloat.Sign) (m : ℕ) (e : ℤ) (acc : Float.Model.UnpackedFloat.Accuracy)
(w : ℝ)
(hw : (Float.Model.UnpackedFloat.ExtendedMantissa.ofMantissaAndAccuracy m acc).Approximates w)
(he : e ≤ spec.targetExponent (Float.Model.totalExponent m e)) :
Float.Model.UnpackedFloat.IsCanonical spec
(Float.Model.UnpackedFloat.roundWithAccuracy spec s m e acc)Import NLAlib.ForMathlib.Data.Float.Rounding.