TorchLean API

NN.Proofs.RuntimeApprox.Constants

Roots of dimension constants #

A count can overflow its scalar representation while its square root is representable. The configured scalar context then uses FloatLib's rational-root algorithm before packing the result. The refinement below concerns that exceptional branch, for any IEEE descriptor and lossless codec. Ordinary counts keep the cast-then-root schedule. Native hardware execution is a separate boundary.

Recover a representable root without first rounding an overflowing count.

The result is nearest-even rounding of the exact real square root, not the square root of a saturated or infinite cast. Finiteness is required because the real rounding model has no infinity.