Float.Model.UnpackedFloat.toReal_aligned_add
Library · theorem
Aligning two finite floats to the smaller exponent and adding the signed integer mantissas gives the exact sum.
Float.Model.UnpackedFloat.toReal_aligned_add (s₁ : Float.Model.UnpackedFloat.Sign) (m₁ : ℕ) (e₁ : ℤ)
(hm₁ : 0 < m₁) (s₂ : Float.Model.UnpackedFloat.Sign) (m₂ : ℕ) (e₂ : ℤ) (hm₂ : 0 < m₂) :
↑(s₁.apply ↑(Float.Model.UnpackedFloat.decreaseExponent m₁ e₁ (min e₁ e₂)).1 +
s₂.apply ↑(Float.Model.UnpackedFloat.decreaseExponent m₂ e₂ (min e₁ e₂)).1) *
2 ^ min e₁ e₂ =
(Float.Model.UnpackedFloat.finite s₁ m₁ e₁ hm₁).toReal +
(Float.Model.UnpackedFloat.finite s₂ m₂ e₂ hm₂).toRealImport NLAlib.ForMathlib.Data.Float.Operations.