P3109 representation proofs #
A validated P3109 descriptor defines an exact-width NumericalSystem and ExecFloat carrier.
These theorems connect their denotations to P3109 decoding. Descriptor validation supplies the
field-width, special-encoding, and storage conditions used by the proofs.
The stored trailing field and implicit leading bit make up the declared precision.
Integer form of trailingBits_add_one, used in exponent arithmetic.
Every P3109 descriptor has a positive encoded width.
A signed descriptor carries the strict P < K requirement from P3109.
An unsigned descriptor carries the P ≤ K requirement from P3109.
The P3109 exponent field is nonempty for every valid descriptor.
Signed formats have the P3109 bias 2^(K-P-1).
Unsigned formats have the P3109 bias 2^(K-P).
The signed/unsigned boundary lies strictly inside the K-bit code space.
The complete code-space size is twice the signed/unsigned boundary.
The boundary of the signed half of the code space is nonzero.
At least two positive finite code points lie below the signed boundary.
Every valid P3109 format has more than two code points.
The single P3109 NaN code is never the all-zero code.
positiveInfinityBits is nonzero for every descriptor.
negativeInfinityBits is nonzero for every descriptor.
positiveInfinityBits fits in the declared code space for every descriptor.
negativeInfinityBits fits in the declared code space for every descriptor.
In a signed descriptor, positive infinity is distinct from the midpoint NaN code.
In a signed descriptor, negative infinity is distinct from the midpoint NaN code.
The two infinity codes are distinct in every signed descriptor.
In an unsigned descriptor, positive infinity is distinct from the terminal NaN code.
The generic numerical-system wrapper denotes exactly the P3109 decode function.
The all-zero positive finite code decodes to the unique P3109 zero.
A nonzero code in biased-exponent row zero follows the P3109 subnormal formula.
A positive code outside biased-exponent row zero follows the P3109 normal formula.
Positive finite decoding has zero significand exactly at the all-zero code.
Positive finite decoding never introduces a negative sign.
The minimum quantum sits P - 1 binary places below the minimum normal exponent.
A code in biased-exponent row zero denotes that many minimum quanta.
Rational value of a code written as trailing field plus a nonzero biased-exponent row.
The all-zero code denotes P3109's unique zero.
Every signed or unsigned P3109 format decodes the P3109-specified NaN code as NaN.
Extended P3109 formats decode the P3109-specified positive-infinity code.
Signed extended P3109 formats decode the P3109-specified negative-infinity code.
The user-facing zero constructor denotes P3109's unique finite zero.
The user-facing NaN constructor denotes the format's sole exceptional NaN value.
The positive-infinity constructor has its advertised meaning in every extended format.
The negative-infinity constructor has its advertised meaning in signed extended formats.
Natural-number construction reduces modulo 2^K, where K is the encoded width.
Executable P3109 decoding is definitionally the descriptor's exact decoding function.
A successful structured-field construction is guaranteed to denote an ordinary finite value.
This theorem is the elimination rule for ofFiniteFields?: callers need not reason about the
descriptor's reserved code points after the constructor succeeds.