Float.Model.UnpackedFloat.exists_approximates_divCore
Library · theorem
For positive mantissas, the division core describes the exact real quotient at an exponent no larger than the target exponent, so the extended-mantissa rounding theorem applies.
Float.Model.UnpackedFloat.exists_approximates_divCore {spec : Float.Model.Format} (m₁ : ℕ) (e₁ : ℤ)
(m₂ : ℕ) (e₂ : ℤ) (hm₁ : 0 < m₁) (hm₂ : 0 < m₂) :
∃ w,
(Float.Model.UnpackedFloat.ExtendedMantissa.ofMantissaAndAccuracy
(Float.Model.UnpackedFloat.divCore spec m₁ e₁ m₂ e₂).1
(Float.Model.UnpackedFloat.divCore spec m₁ e₁ m₂ e₂).2.2).Approximates
w ∧
w * 2 ^ (Float.Model.UnpackedFloat.divCore spec m₁ e₁ m₂ e₂).2.1 =
↑m₁ * 2 ^ e₁ / (↑m₂ * 2 ^ e₂) ∧
(Float.Model.UnpackedFloat.divCore spec m₁ e₁ m₂ e₂).2.1 ≤
spec.targetExponent
(Float.Model.totalExponent (Float.Model.UnpackedFloat.divCore spec m₁ e₁ m₂ e₂).1
(Float.Model.UnpackedFloat.divCore spec m₁ e₁ m₂ e₂).2.1)Import NLAlib.ForMathlib.Data.Float.Operations.