TorchLean API

FloatLib.Floats.ExecFloat.Backends.Dispatch.Add.Proof

Correctness of addition and subtraction backends #

The dispatcher has several execution paths: generic exact arithmetic, the one-word UInt64 kernel of NativeSmallWordAdd, native small-word decoding into the compiled component kernel, binary32, binary64, and fixed limbs. They all refine the same format-generic Spec.add and Spec.sub.

Accepted specialized results agree with the finite kernel; declined paths use generic. Together, these refinements give word_eq_spec and subWord_eq_spec for every descriptor and operand pair, including exceptional values. Runtime clients can import Add.Runtime separately.

Compact generic addition preserves the exact-dyadic specification.

Native fixed-format and reusable one-word dispatch preserves addition.

Native fixed-format and reusable one-word dispatch preserves subtraction.