Exactness of two-limb signed-magnitude arithmetic #
Two-limb signed-magnitude addition has an exact-dyadic refinement through UInt128. The proof
factors execution through a signed integer coefficient, so carrier arithmetic and exact-dyadic
semantics meet at one small, representation-independent boundary.
Interpret a two-limb signed magnitude as the canonical exact dyadic used after addition.
Exact cancellation is normalized to positive zero with exponent zero. Nonzero results retain the common exponent at which their magnitudes were combined.
Instances For
A nonzero two-limb signed magnitude has the direct dyadic fields expected by downstream rounding. Keeping this interpretation theorem next to the representation prevents arithmetic clients from depending on the integer encoding used internally.
Two-limb signed-magnitude addition denotes exact dyadic addition at a common exponent.
The hypotheses use the mathematical carrier view directly, avoiding representation-specific zero lemmas at every caller.