Exactness of Addition Errors #
For a valid, monotone exponent function and any nearest rounding rule, the error of adding two representable values is itself representable. The proof aligns both operands on the smaller canonical grid, represents the rounded result on that same grid, and uses nearestness to control the canonical exponent of the error.
Nearestness is essential. For directed rounding the statement fails: with radix 2 and three
digits of precision, rounding 1 - 2^(-10) downward gives 7/8, and the error 2^(-3) - 2^(-10)
needs seven digits.
The representable error is the mathematical content of the TwoSum and FastTwoSum error-free
transformations: x + y = round (x + y) + e with e in the format. The step-by-step exactness of
the floating-point operations that compute e in those algorithms is not formalized here.
The addition error of two representable values under any nearest rounding rule is representable.
The rounding rule is implicit because it is determined by the conclusion; nearestEven is the
usual instance. The statement needs a monotone exponent function and fails for directed rounding.
Error-free transformation of addition: the exact sum of two representable values is the rounded sum plus a representable error term.
This is the specification met by the TwoSum and FastTwoSum algorithms. The term e is
x + y - round (x + y); its representability is add_round_error_generic up to sign.
Every FLT value lies on its minimum-exponent FIX grid.
A bounded FIX value is FLT-representable, including the radix-power boundary.
A sufficiently small sum of two FLT values is exactly FLT-representable.