Correctness of restoring quotient generation #
The one-word restoring loop computes exact nearest-even rational rounding under its capacity
bounds. This module also proves the two-limb step and the one-word rational logarithm.
Quotient.Restoring128Proof extends the step theorem to the two-limb loop. Floating-point kernels
supply their own decoding, exponent handling, and packing.
One restoring-division step in the natural-number proof model.
Instances For
Iterate the natural-number restoring-division step n times.
Instances For
One restoring step doubles the represented numerator, preserves a reduced remainder, and never decreases the quotient.
After n restoring steps, the state represents the original numerator scaled by 2^n, with a
remainder below the denominator.
The restoring loop returns the ordinary quotient and remainder of the scaled natural-number numerator.
Convert a native quotient state to its natural-number proof model.
Instances For
Convert a two-limb quotient state to its natural-number proof model.
Instances For
One native two-limb restoring step refines the natural-number recurrence.
Native restoring division computes the exact nearest-even rounding of the scaled rational quotient.
The native-word rational logarithm selector agrees with the exact representation-independent
floorLog2 specification for nonzero operands.
The native quotient logarithm differs from the difference of the operand logarithms by at most one.