TorchLean API

NN.Proofs.RuntimeApprox.FP32

FP32 rounding tolerances #

These theorems express FloatLib's Model.abs_roundAt_sub_le bounds using approxR (notation ≈[t]). Each operation has an absolute-only tolerance of half an ULP at its exact real result. The tolerance therefore depends on the result's magnitude.

FP32 here is a rounded-real model with binary32 precision and an unbounded upper exponent. It has no NaN or infinity values. These are not native Float32 or LibTorch kernel correctness theorems; transcendental operations round the exact real function.

Arithmetic (one real op + one rounding step) #

Transcendentals (real function + rounding) #

Examples (how this looks in practice) #