TorchLean API

FloatLib.Floats.Formats.Flocq.Theory.Arithmetic

Refinement contracts for exact integer-mantissa arithmetic #

The exact operations in Calculation.Operations refine real arithmetic through the shared numerical-system contracts. Negation and multiplication require only integer arithmetic on the stored mantissas and exponents.

The real-valued decoder is proof-facing and erased from compiled kernels.

Executable mantissa negation exactly refines real negation.

Executable mantissa/exponent multiplication exactly refines real multiplication.