TorchLean API

FloatLib.Floats.ExecFloat.Backends.FixedLimb.Pair.Addition.Proof

Two-word addition with equal exponents #

The two-word addition kernel handles same-sign normal operands with equal exponents. Their exact fracWidth + 2-bit significand sum is rounded once to nearest-even and packed directly. Unequal exponents, opposite signs, subnormals, exceptional values, and overflow boundaries retain the generic exact finite kernel. Every theorem takes NativePair.Eligible fmt; start with addNormalSameExponent_refines.

The all-ones exponent minus one is a proper native predecessor.

Every accepted native equal-exponent addition is exactly the existing finite path.

Rejected values retain FiniteKernel.add?; this theorem is the trust boundary for the native specialization.

The two-word finite addition chain equals the width-generic exact finite kernel.