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 / V04. Order and lattices

Mathlib.Order.Sym2

9 declarations. Mathlib docs · Source

def Sym2.sup E1 #

{α : Type u_1} → [SemilatticeSup α] → Sym2 α → α

The supremum of the two elements.

theorem Sym2.sup_mk E0 #

∀ {α : Type u_1} [inst : SemilatticeSup α] (a b : α), s(a, b).sup = a ⊔ b

def Sym2.inf E1 #

{α : Type u_1} → [SemilatticeInf α] → Sym2 α → α

The infimum of the two elements.

theorem Sym2.inf_mk E0 #

∀ {α : Type u_1} [inst : SemilatticeInf α] (a b : α), s(a, b).inf = a ⊓ b

theorem Sym2.inf_le_sup E1 #

∀ {α : Type u_1} [inst : Lattice α] (s : Sym2 α), s.inf ≤ s.sup

def Sym2.sortEquiv E1 #

{α : Type u_1} → [inst : LinearOrder α] → Sym2 α ≃ { p // p.1 ≤ p.2 }

In a linear order, symmetric squares are canonically identified with ordered pairs.

theorem Sym2.sortEquiv_apply_coe E0 #

∀ {α : Type u_1} [inst : LinearOrder α] (s : Sym2 α), ↑(Sym2.sortEquiv s) = (s.inf, s.sup)

theorem Sym2.sortEquiv_symm_apply E0 #

∀ {α : Type u_1} [inst : LinearOrder α] (p : { p // p.1 ≤ p.2 }), Sym2.sortEquiv.symm p = s((↑p).1, (↑p).2)

theorem Sym2.inf_eq_inf_and_sup_eq_sup E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {s t : Sym2 α}, s.inf = t.inf ∧ s.sup = t.sup ↔ s = t

In a linear order, two symmetric squares are equal if and only if they have the same infimum and supremum.