TorchLean API

FloatLib.Floats.ExecFloat.Backends.Word.Full.Addition.Proof

Verified equal-exponent binary64 addition #

The binary64 addition kernel handles same-sign normal operands with equal exponents entirely in UInt64. Their exact 54-bit significand sum is rounded once to nearest-even and packed. Unequal exponents, opposite signs, subnormals, and overflow boundaries are left to the generic finite kernel. Exceptional values are handled by the outer operation dispatcher.

The subtraction dispatcher composes this adder with the signed Sterbenz backend: same-sign nearby operands use exact native subtraction, opposite-sign operands reuse native addition, and every declined case falls back to the generic kernel.

Every accepted native equal-exponent addition agrees with the finite binary64 path addFiniteComponents?.

Rejected values fall back to addFiniteComponents?, so this theorem is the trust boundary for the native specialization.

Native addFinite? is bit-for-bit equal to the exact finite implementation.