Constants and finite values of the Float model
Library · Source module
Constants and finite values of the Float model
Upstream candidates for the mathematical API of Lean core's floating-point model. Adapted from the supplied NumLean archive, NumLean/Data/Scalars/IEEE/Basic.lean. The archive's SHA-256 and licensing status, the earlier Mathlib search and the changes needed for Lean 4.33 are recorded in docs/design/Finite-Precision-Arithmetic.md. No NumLean dependency is imported. General format lemmas state a two-exponent-bit assumption explicitly where needed; core 4.33 also permits one-bit layouts. These results concern logical arithmetic, not native execution cost.
Main results
* Float.Model.Format.unitRoundoff_pos. * Float.Model.Format.minExponent_le_maxExponentBound.
Declarations
- Float.Model.Format.evalUnderflowBound
- Float.Model.Format.evalUnitRoundoff
- Float.Model.Format.maxExponentBound
- Float.Model.Format.maxFinite
- Float.Model.Format.maxFinite_pos
- Float.Model.Format.minExponent_eq
- Float.Model.Format.minExponent_le_maxExponentBound
- Float.Model.Format.minExponent_lt_zero
- Float.Model.Format.targetExponent_eq
- Float.Model.Format.two_le_mantissaBits
- Float.Model.Format.underflowBound
- Float.Model.Format.underflowBound_nonneg
- Float.Model.Format.underflowBound_pos
- Float.Model.Format.unitRoundoff
- Float.Model.Format.unitRoundoff_nonneg
- Float.Model.Format.unitRoundoff_pos
- Float.Model.UnpackedFloat.IsFinite
- Float.Model.UnpackedFloat.Sign.abs_toReal
- Float.Model.UnpackedFloat.Sign.cast_apply
- Float.Model.UnpackedFloat.Sign.div_eq_mul
- Float.Model.UnpackedFloat.Sign.toReal
- Float.Model.UnpackedFloat.Sign.toReal_div
- Float.Model.UnpackedFloat.Sign.toReal_mul
- Float.Model.UnpackedFloat.Sign.toReal_neg
- Float.Model.UnpackedFloat.isFinite_eq_true_iff