Field packing for directed dyadic rounding #
Directed rounding first chooses a point on the representable dyadic grid and then packs that point into exponent and fraction fields. This module proves that the normal and subnormal packing formulas preserve the chosen exact value.
The field-width bounds prevent truncation during packing. Normal packing also requires a finiteness hypothesis, since some encoding policies reserve patterns within those widths for exceptional values.
Field-packing semantics #
Packing a normalized mantissa at an in-range exponent preserves its exact value when the packed word is finite.
The downward zero-or-subnormal branch denotes its mantissa on the subnormal grid.
The minimum normal exponent encodes as biased exponent field one.
The upward subnormal branch, including its smallest-normal boundary, preserves its grid value.