Correctness of direct one-word guard-and-sticky Posit rounding #
candidateCarrierLawful proves that the UInt64 candidate carrier satisfies the shared carrier
laws at capacity 64. The shared theorems then establish the packing and rounding refinement.
The remaining proofs connect the one-word entry points, which add the zero test, the exact
minimum-positive comparison, and sign restoration, to the arbitrary-width direct rounder. The
one-word kernel and the two-limb kernel are therefore execution refinements of one rounding rule,
selected only by exact intermediate capacity.
The WordLimb proof module proves the cross-carrier projection theorem for operations with a
two-limb intermediate. Importing this scalar proof does not load the two-limb rounding proof.
Natural-number laws of the one-word candidate carrier at capacity 64.
Bit and suffix reads are exact at every width. The arithmetic laws hold under the bounds the shared rounder establishes: shifts stay below 64 positions, sums and successors fit the word, and masks are narrower than the word.
Under one-word eligibility the payload is shorter than the carrier.
Positive rounding #
The positive one-word kernel is the shared arbitrary-width direct rounder.
Natural-number positive rounding has the same direct semantics.
Signed rounding #
The signed one-word kernel is the shared arbitrary-width direct rounder.
Complete natural-number native-field rounding has the shared direct semantics.
Direct one-word field rounding always returns a valid complete Posit code.