Nearest-even lies between directed roundings (op-level corollaries) #
NN.Floats.IEEEExec.RoundDyadicToIEEE32Bounds proves the core theorem:
roundDyadicDown d ≤ roundDyadicToIEEE32 d ≤ roundDyadicUp d (in EReal).
This file packages small op-level corollaries for IEEE32Exec.add / mul / sub on the
finite path:
addDown x y ≤ add x y ≤ addUp x y, and similarly for multiplication and subtraction.
These are useful for “checked boundary => enclosure” statements in downstream code (e.g. RL shadow interval diagnostics).
Small helpers #
Addition sandwich #
On the finite path, add/addDown/addUp all reduce to rounding the same exact dyadic sum with
different rounding modes.
Multiplication sandwich #
On finite inputs, mul/mulDown/mulUp reduce to rounding the same exact dyadic product with
different rounding modes.
Subtraction sandwich #
This is a direct corollary of the addition sandwich, since:
sub x y = add x (neg y) and similarly for directed endpoints.