TorchLean API

FloatLib.Floats.Formats.BinaryInterchange.Arithmetic.Proof

Refinement of format-parameterized binary arithmetic #

The executable model operations agree with the independent descriptor-aware specifications for every validated FloatFormat.

These theorems connect the arithmetic dispatchers to the format's specifications before a result is transported to configured storage. Each dispatcher proof covers its optimized backends and generic fallback.

The Internal.Directed.add_eq family and its status counterparts state that each kernel computes the public operation with the same options, so proofs that unfold a kernel can return to the public form.

Public addition agrees with its descriptor-aware specification for every FloatFormat.

Public subtraction agrees with its descriptor-aware specification for every FloatFormat.

Public multiplication agrees with its descriptor-aware specification for every FloatFormat.

Public division agrees with its descriptor-aware specification for every FloatFormat.

Public square root agrees with its descriptor-aware specification for every FloatFormat.

Public FMA agrees with its descriptor-aware specification for every FloatFormat.

Kernels of the public operations #

The directed addition kernel computes add in every rounding direction.

The directed subtraction kernel computes sub in every rounding direction.

The directed multiplication kernel computes mul in every rounding direction.

The directed division kernel computes div in every rounding direction.

The directed square-root kernel computes sqrt in every rounding direction.

The directed FMA kernel computes fma in every rounding direction.

The status addition kernel is add with status := true.

The status subtraction kernel is sub with status := true.

The status multiplication kernel is mul with status := true.

The status division kernel is div with status := true.

The status square-root kernel is sqrt with status := true.

The status FMA kernel is fma with status := true.