Basic lemmas for format-parameterized directed rounding #
Shared arithmetic facts support both directed dyadic and rational rounding proofs. Further
lemmas give closed forms for the smallest positive subnormal and a strict power-of-two bound for
the largest finite value. All statements are uniform in FloatFormat.
Natural powers of two are positive.
Floor and ceiling shifts #
Shifting right and restoring the removed power of two cannot exceed the original number.
A ceiling right shift, followed by restoration of its scale, covers the original number.
A ceiling shift is at most one larger than the corresponding floor shift.
A floor right shift never exceeds the corresponding ceiling right shift.
Format constants #
The subnormal grid starts strictly below the smallest normal exponent.
The subnormal exponent plus the explicit fraction width is the minimum normal exponent.
The smallest positive subnormal is explicit field packing with fraction one.
The smallest positive subnormal denotes one unit at the minimum subnormal exponent.
Closed form for the largest finite positive value of an arbitrary format.
A signed magnitude whose mantissa and exponent do not exceed those of the largest finite value is bounded by that value.
Every finite IEEE value lies between the two largest-finite endpoints.
The finiteness hypothesis excludes infinities and NaNs; the bound follows from the descriptor's exponent and fraction fields.
The largest finite value is strictly below the next normal power of two.