TorchLean API

FloatLib.Floats.Formats.BinaryInterchange.Analysis.DyadicOrder

Order theory for exact dyadics #

The executable cmpDyadic comparison agrees with real order. The proof aligns both integer significands at the smaller exponent and then cancels their common positive power-of-two scale.

Real semantics after moving a dyadic significand to any smaller exponent.

The aligned integer is the exact signed significand at scale 2^exponent.

Executable dyadic comparison returns .lt exactly when the real values are ordered.

Executable dyadic comparison returns .eq exactly when the real values are equal.

Executable dyadic comparison returns .gt exactly when the real values are reversed.