TorchLean API

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

Correctness of word-specialized square-root dispatch #

Binary32 and binary64 have direct 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 include the NaN, infinity, signed-zero, and negative-input cases. The positive finite cases reuse the corresponding kernel refinements. Runtime clients can import SqrtWord.Runtime separately.

Direct binary32 kernel #

The direct binary32 square root preserves the exact specification.

Direct binary64 kernel #

The direct binary64 square root preserves the exact specification.

Descriptor-driven backend dispatch #

The generic square-root dispatcher agrees with Spec.sqrt on every input.

Native one-word decoding preserves the compact generic square-root implementation.

The width-specialized dispatcher preserves the logical format-generic square root.