Exact square-root bounds for P3109 #
Integer square root after integer division gives the floor of the real square root of the rational quotient. Cross multiplication of squared nonnegative thresholds preserves its order exactly. These facts justify rounding even when the square root is irrational.
The precision bound proves that the rounded candidate fits the existing P3109 encoder for every valid descriptor, including precision one and subnormal results.
Integer square root of the quotient brackets the actual real square root.
Squaring a nonnegative rational threshold preserves strict comparison with the root.
A rational threshold equals the real root exactly when its square equals the radicand.
The integer comparator agrees with comparison of the real root.
The lower root candidate is strictly below the descriptor's significand limit.
Every mode's rounded square root fits the direct encoder's precision grid.