Order lemmas for Float and Float32 #
The lemmas are proved through the logical models Float.Model and Float32.Model. The order is
the IEEE 754 partial order, in which NaN is incomparable with everything and -0 = +0.
theorem Float.Model.UnpackedFloat.Sign.compare_def (s t : Sign) :
compare s t = match s, t with
| negative, positive => Ordering.lt
| positive, negative => Ordering.gt
| x, x_1 => Ordering.eq
theorem Float.Model.UnpackedFloat.not_le {a b : UnpackedFloat} (ha : a ≠ notANumber) (hb : b ≠ notANumber) :
@[simp]
@[simp]
@[simp]
@[simp]