TorchLean API

FloatLib.Floats.ExecFloat.Backends.Dispatch.SqrtWord.Proof

Correctness of word-specialized square-root dispatch #

Binary32 and binary64 have their own word kernels. Other descriptors use native one-word decoding when eligible, or the generic square-root kernel. word_eq_spec proves that all these routes agree with Model.Spec.sqrt for every input.

The fixed-format theorems cover the NaN, infinity, signed-zero, and negative-input cases, and the positive finite cases reuse the corresponding kernel refinements.

Direct binary32 kernel #

Native binary32 square root agrees with Model.Spec.sqrt.

Direct binary64 kernel #

Native binary64 square root agrees with Model.Spec.sqrt.

Descriptor-driven backend dispatch #

Generic square root agrees with Spec.sqrt on every input.

One-word square root with native decoding agrees with generic.

The width-specialized dispatcher agrees with Spec.sqrt on every input.