Sterbenz exact subtraction #
Sterbenz's lemma applies to the rounded-real grid of every fmt: two positive representable
values within a factor of two have an exactly representable difference. For an IEEE descriptor,
subtraction of the corresponding finite model values remains finite and decodes to that exact
real difference.
Sterbenz exactness for the rounded-real grid selected by fmt: two positive representable reals
within a factor of two have a representable difference, so nearest-even rounding changes nothing.
Strict positivity excludes signed-zero bookkeeping; the executable theorem below handles the corresponding finite model values.
Subtraction of positive finite executable values within a factor of two has no rounding error.
The Sterbenz hypotheses also bound the exact difference by one of the finite operands, so finiteness of the executable result follows rather than appearing as a separate premise.