The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V01. The language of Mathlib

Mathlib.Data.Ordering.Lemmas

6 declarations. Mathlib docs · Source

theorem Ordering.ite_eq_lt_distrib E0 #

∀ (c : Prop) [inst : Decidable c] (a b : Ordering),
  ((if c then a else b) = Ordering.lt) = if c then a = Ordering.lt else b = Ordering.lt

theorem Ordering.ite_eq_eq_distrib E0 #

∀ (c : Prop) [inst : Decidable c] (a b : Ordering),
  ((if c then a else b) = Ordering.eq) = if c then a = Ordering.eq else b = Ordering.eq

theorem Ordering.ite_eq_gt_distrib E0 #

∀ (c : Prop) [inst : Decidable c] (a b : Ordering),
  ((if c then a else b) = Ordering.gt) = if c then a = Ordering.gt else b = Ordering.gt

theorem cmpUsing_eq_lt E0 #

∀ {α : Type u} {lt : α → α → Prop} [inst : DecidableRel lt] (a b : α), (cmpUsing lt a b = Ordering.lt) = lt a b

theorem cmpUsing_eq_gt E0 #

∀ {α : Type u} {lt : α → α → Prop} [inst : DecidableRel lt] [IsStrictOrder α lt] (a b : α),
  cmpUsing lt a b = Ordering.gt ↔ lt b a

theorem cmpUsing_eq_eq E0 #

∀ {α : Type u} {lt : α → α → Prop} [inst : DecidableRel lt] (a b : α), cmpUsing lt a b = Ordering.eq ↔ ¬lt a b ∧ ¬lt b a