Nearest-even rounding lemmas #
Format-independent integer primitives in Numerics agree with FloatLib's rounded-real
nearest-even operation under the stated bounds.
Generic shift-rounding equations and floor bounds live in
Numerics.Quantization.Deterministic.ShiftRight, where fixed-point and other binary
quantizations can reuse them. This module adds normalized-significand bounds, oddness of
nearestEven, and its agreement with executable rounding of nonnegative rationals.
Nearest-even averaging preserves the normalized interval for every significand precision.
Nearest-even integer rounding commutes with negation.
Nearest-even rounding never exceeds a natural upper bound of its argument.
Nearest-even rounding never drops below a natural lower bound of its argument.
Nearest-even rounding of a nonnegative rational agrees with roundQuotientEven.
Nearest-even rounding after division by 2^shift is executable shift rounding.