Documentation

Init.Data.Nat.Compare

Basic lemmas about comparing natural numbers #

This file introduce some basic lemmas about compare as applied to natural numbers.

Import Std.Classes.Ord in order to obtain the TransOrd and LawfulEqOrd instances for Nat.

@[deprecated Nat.compare_eq_ite_lt (since := "2025-03_28")]
Equations
Instances For
    @[deprecated Nat.compare_eq_ite_le (since := "2025-03_28")]
    Equations
    Instances For
      theorem Nat.compare_swap (a b : Nat) :
      (compare a b).swap = compare b a
      theorem Nat.isLE_compare {a b : Nat} :
      (compare a b).isLE = true a b
      theorem Nat.isGE_compare {a b : Nat} :
      (compare a b).isGE = true b a