TorchLean API

FloatLib.Floats.Formats.BinaryInterchange.DirectedSemantics.SquareRoot

Directed square-root bounds #

The integer square-root bracket used by sqrt x (mode := .down) and sqrt x (mode := .up) encloses the exact real square root after restoring its dyadic scale. For descriptors with fmt.isIEEE = true, directed dyadic rounding yields extended-real lower and upper bounds on finite nonnegative inputs, including negative zero.

The dyadic endpoints computed by sqrtDyadicBracket enclose the exact square root.

A finite value with clear sign bit has nonnegative real value.

Downward square root is non-NaN on finite nonnegative inputs.

Upward square root is non-NaN on finite nonnegative inputs.

Downward square root encloses the exact square root from below for every finite value with nonnegative real semantics, including negative zero.

The exact square root is bounded above by upward square root for every finite value with nonnegative real semantics, including negative zero.

Downward square root bounds the exact square root from below on finite inputs with a clear sign bit.

Upward square root bounds the exact square root from above on finite inputs with a clear sign bit.