Correctness of direct two-limb guard-and-sticky rounding #
candidateCarrierLawful proves that the UInt128 candidate carrier satisfies the shared carrier
laws at capacity 128. The shared theorems then give the packing and rounding refinement. The
remaining proofs connect the two-limb entry points, which add the zero test, the exact
minimum-positive comparison, and exact-width sign restoration, to the arbitrary-width direct
rounder.
Natural-number laws of the two-limb candidate carrier at capacity 128.
Bit and suffix reads are exact at every width. The arithmetic laws hold under the bounds the shared rounder establishes: shifts stay below 128 positions, sums and successors fit two limbs, and masks are narrower than two limbs.
Under two-limb eligibility the payload is shorter than the carrier.
The fixed-pair minimum-positive comparison is the exact dyadic comparison.
Complete carrier refinement #
The positive two-limb kernel is the shared arbitrary-width direct rounder.
Keeping this theorem beside the kernel avoids routing the Word/Limb interoperability proof through the complete capacity-dispatch implementation.
Two-limb sign restoration is exact-width Posit sign restoration.
The positive code must lie below the sign mask, and zero is unchanged under either sign.
Signed two-limb carrier rounding has the shared arbitrary-width direct semantics.