TorchLean API

FloatLib.Floats.Formats.P3109.Arithmetic.Extrema.Proof

Mathematical order and extrema for P3109 #

Finite extrema agree with the rational field's minimum and maximum. Comparisons agree with rational order, while NaN remains unordered. Magnitude ties and the preference for finite values are stated separately from rounding. The executable extrema use the same binaryTo refinement as arithmetic, so these identities describe the expression at their single projection boundary.

@[simp]

Finite strict comparison is precisely rational strict order.

@[simp]

Finite non-strict comparison is precisely rational order.

@[simp]

Finite comparison equality is precisely equality of rational values.

@[simp]

No datum is strictly less than itself, even NaN.

@[simp]

Finite minimum is the ordinary rational minimum.

@[simp]

Finite maximum is the ordinary rational maximum.

Exact closed minimum is commutative, including NaN and infinity.

Exact closed maximum is commutative, including NaN and infinity.

@[simp]

A finite operand wins over either infinity in minimum-finite.

@[simp]

A finite operand wins over either infinity in maximum-finite.

@[simp]

The number variant ignores NaN in favor of a finite operand.

@[simp]

The number variant ignores NaN in favor of a finite operand.

Equal nonnegative magnitudes are resolved toward the negative datum by minimum.

Equal nonnegative magnitudes are resolved toward the positive datum by maximum.