TorchLean API

FloatLib.Floats.ExecFloat.Backends.Word.ModelSqrt.Proof

Correctness of native-backed unpacked floating-point square root #

The executable implementation lives in ModelSqrt.Runtime. This module proves exact agreement with Lean's logical unpacked-float operation and registers the verified compiler substitution.

theorem FloatLib.Floats.Formats.BinaryInterchange.Model.NativeModelSqrt.sqrtCore_eq (spec : Float.Model.Format) (mantissa : ) (exponent : ) :
sqrtCore spec mantissa exponent = Float.Model.UnpackedFloat.sqrtCore spec mantissa exponent

The native-backed core is exactly Lean's logical unpacked square-root core.

The native-backed operation is exactly Lean's logical unpacked floating-point square root.

@[csimp]

Compile Lean's logical unpacked square root through the proved native-backed implementation.