TorchLean API

FloatLib.Floats.Formats.BinaryInterchange.DirectedSemantics.Division

Directed division soundness for conventional IEEE formats #

For finite operands and a nonzero divisor, div x y (mode := .down) and div x y (mode := .up) round the exact rational quotient in opposite directions. The extended-real statements hold even when outward rounding overflows.

The bounds hold for every descriptor satisfying fmt.isIEEE = true, with no restriction to named widths.

The exact scaled rational quotient of two finite values denotes their real quotient.

Downward-rounded division is a lower bound on the exact real quotient.

The exact real quotient is bounded above by upward-rounded division.