Internal lemmas for directed rational packing #
The rational packing proofs share three IEEE facts: subnormal fields are finite, the smallest normal field pair is finite, and positive upward overflow produces positive infinity.
theorem
FloatLib.Floats.Formats.BinaryInterchange.Model.Packing.Internal.isFinite_ofFields_subnormal
(fmt : FloatFormat)
(hfmt : fmt.isIEEE = true)
(mantissa : ℕ)
(_hmantissa : mantissa < 2 ^ fmt.fracWidth)
:
An in-range IEEE subnormal fraction field denotes a finite value.
theorem
FloatLib.Floats.Formats.BinaryInterchange.Model.Packing.Internal.directedOverflow_false_true_eq_posInf
(fmt : FloatFormat)
(hfmt : fmt.isIEEE = true)
:
Positive IEEE overflow rounds to positive infinity when the direction is upward.