TorchLean API

NN.Floats.IEEEExec.Bridge.FP32Total.Effective

Total FP32 Bridge: Effective Finite Results #

The arithmetic bridge states refinement under a finiteness hypothesis. This module packages the same facts as executable implications: when toReal? returns some r, the theorem identifies r with the corresponding FP32 rounded-real operation. It also derives useful finite-result facts for operations whose IEEE rules rule out exceptional results.

See FP32Total.Core for the total bridge convention and bibliography.

Effective finite results #

fp32Round agrees with the canonical output of the effective nearest-even calculation.

Effective representation of finite executable subtraction.

Effective representation of finite executable multiplication.

“Both” view: toReal? semantics as an ite #

toReal? (add x y) as an ite over finiteness.

toReal? (mul x y) as an ite over finiteness.

toReal? (fma x y z) as an ite over finiteness.

toReal? (div x y) as an ite over finiteness.

minimum of two finite values is finite.

On finite inputs, toReal? (minimum x y) returns some (min (toReal x) (toReal y)).

maximum of two finite values is finite.

On finite inputs, toReal? (maximum x y) returns some (max (toReal x) (toReal y)).