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.

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