TorchLean API

NN.Floats.IEEEExec.Bridge.FP32Total.Order

Total FP32 Bridge: Ordering #

This module relates executable IEEE comparisons to real order when the operands are finite. It keeps unordered NaN cases explicit rather than coercing every bit pattern into ; signed zeros, which have distinct encodings but equal real values, are handled by the IEEE comparison rules.

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

On finite values, IEEE-754 minimum agrees with real min.

On finite values, IEEE-754 maximum agrees with real max.

On finite values, compare x y = some .lt iff toReal x < toReal y.

On finite values, compare x y = some .eq iff toReal x = toReal y.

On finite values, compare x y = some .gt iff toReal y < toReal x.