TorchLean API

NN.Floats.Interval.FP32

FP32 interval enclosures #

This module packages per-op absolute error bounds into the convenient enclosure form:

exact ∈ Icc (approx - eps) (approx + eps).

Interval enclosures (soundness-friendly form) #

Enclosure for exp in the FP32 proof model.

The exact real value Real.exp a.val lies in the interval [exp(a) - ulp/2, exp(a) + ulp/2], where exp(a) is the FP32-rounded value.

Enclosure for tanh in the FP32 proof model (Real.tanh rounded once).

Enclosure for log in the FP32 proof model (Real.log rounded once).

Enclosure for cos in the FP32 proof model (Real.cos rounded once).

Enclosure for sin in the FP32 proof model (Real.sin rounded once).

Enclosure for sinh in the FP32 proof model (Real.sinh rounded once).

Enclosure for cosh in the FP32 proof model (Real.cosh rounded once).

Enclosure for sqrt in the FP32 proof model (Real.sqrt rounded once).

Enclosure for abs in the FP32 proof model.

Even though |x| is exact over Real, the FP32 proof semantics rounds after each primitive.