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.
Every valid descriptor has a nonempty exponent field.
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.
P3109's 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.
In every signed descriptor the two infinity codes differ.
In an unsigned descriptor, positive infinity is distinct from the terminal NaN code.
The generic numerical-system wrapper denotes each code by 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.
Executable P3109 decoding is the descriptor's exact decoding function.
The zero constructor decodes to P3109's unique finite zero.
The nan constructor decodes to the format's single NaN.
In every extended format, positiveInfinity decodes to positive infinity.
In signed extended formats, negativeInfinity decodes to negative infinity.
Natural-number construction reduces modulo 2^K, where K is the encoded width.
A successful structured-field construction denotes an ordinary finite value.
This is the elimination rule for ofFiniteFields?, so callers need not reason about the
descriptor's reserved code points after the constructor succeeds.