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.Quotient

10 declarations. Mathlib docs · Source

Order instances on quotients

We define a Preorder instance on a general Quotient, as the transitive closure of the x ≤ y ∨ x ≈ y relation. This is the quotient object in the category of preorders.

We show that in the case of a linear order with Set.OrdConnected equivalence classes, this relation is automatically transitive (we don't need to take the transitive closure), and gives a LinearOrder structure on the quotient. In that case, the resulting order is sometimes called a condensation.

instance Quotient.instLE_mathlib E0 #

{α : Type u_1} → {s : Setoid α} → [LE α] → LE (Quotient s)

theorem Quotient.le_def E0 #

∀ {α : Type u_1} {s : Setoid α} [inst : LE α] {x y : α}, ⟦x⟧ ≤ ⟦y⟧ ↔ Relation.TransGen (fun x y ↦ x ≤ y ∨ x ≈ y) x y

instance Quotient.instPreorder E0 #

{α : Type u_1} → {s : Setoid α} → [LE α] → Preorder (Quotient s)

instance Quotient.instTotalLe_mathlib E0 #

∀ {α : Type u_1} {s : Setoid α} [inst : LE α] [Std.Total fun x1 x2 ↦ x1 ≤ x2], Std.Total fun x1 x2 ↦ x1 ≤ x2

theorem Quotient.mk_monotone E1 #

∀ {α : Type u_1} {s : Setoid α} [inst : Preorder α], Monotone (Quotient.mk s)

theorem Quotient.lift_monotone E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] {s : Setoid α} [inst_1 : Preorder β] (f : α → β),
  Monotone f → ∀ (H : ∀ (x₁ x₂ : α), x₁ ≈ x₂ → f x₁ = f x₂), Monotone (Quotient.lift f H)

theorem Quotient.mk_le_mk E0 #

∀ {α : Type u_1} {s : Setoid α} [inst : LinearOrder α] [H : ∀ (x : Quotient s), (Quotient.mk s ⁻¹' {x}).OrdConnected]
  {x y : α}, ⟦x⟧ ≤ ⟦y⟧ ↔ x ≤ y ∨ x ≈ y

instance Quotient.instLinearOrder E0 #

{α : Type u_1} →
  {s : Setoid α} →
    [inst : LinearOrder α] →
      [H : ∀ (x : Quotient s), (Quotient.mk s ⁻¹' {x}).OrdConnected] →
        [DecidableRel fun x1 x2 ↦ x1 ≈ x2] → LinearOrder (Quotient s)

theorem Quotient.mk_lt_mk E0 #

∀ {α : Type u_1} {s : Setoid α} [inst : LinearOrder α] [H : ∀ (x : Quotient s), (Quotient.mk s ⁻¹' {x}).OrdConnected]
  {x y : α}, ⟦x⟧ < ⟦y⟧ ↔ x < y ∧ ¬x ≈ y

theorem Quotient.lt_of_mk_lt_mk E0 #

∀ {α : Type u_1} {s : Setoid α} [inst : LinearOrder α] [H : ∀ (x : Quotient s), (Quotient.mk s ⁻¹' {x}).OrdConnected]
  {x y : α}, ⟦x⟧ < ⟦y⟧ → x < y