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.ConditionallyCompleteLattice.Defs

32 declarations. Mathlib docs · Source

def ConditionallyCompleteLinearOrderBot.ctorIdx E1 #

{α : Type u_2} → ConditionallyCompleteLinearOrderBot α → ℕ

def ConditionallyCompleteLattice.ctorIdx E1 #

{α : Type u_2} → ConditionallyCompleteLattice α → ℕ

theorem WellFoundedLT.min.congr_simp E1 #

∀ {α : Type u_1} [inst : LT α] [inst_1 : WellFoundedLT α] (s s_1 : Set α) (e_s : s = s_1) (h : s.Nonempty),
  WellFoundedLT.min s h = WellFoundedLT.min s_1 ⋯

def ConditionallyCompleteLinearOrder.ctorIdx E1 #

{α : Type u_2} → ConditionallyCompleteLinearOrder α → ℕ

class ConditionallyCompleteLattice E1 #

Type u_2 → Type u_2

A conditionally complete lattice is a lattice in which every nonempty subset which is bounded above has a supremum, and every nonempty subset which is bounded below has an infimum. Typical examples are real numbers or natural numbers.

To differentiate the statements from the corresponding statements in (unconditional) complete lattices, we prefix sInf and sSup by a c everywhere. The same statements should hold in both worlds, sometimes with additional assumptions of nonemptiness or boundedness.

instance ConditionallyCompleteLattice.toInfSet E0 #

{α : Type u_2} → [self : ConditionallyCompleteLattice α] → InfSet α

ctor ConditionallyCompleteLattice.mk E0 #

{α : Type u_2} →
  [toLattice : Lattice α] →
    [toSupSet : SupSet α] →
      [toInfSet : InfSet α] →
        (∀ (s : Set α), s.Nonempty → BddAbove s → IsLUB s (sSup s)) →
          (∀ (s : Set α), s.Nonempty → BddBelow s → IsGLB s (sInf s)) → ConditionallyCompleteLattice α

instance ConditionallyCompleteLattice.toLattice E0 #

{α : Type u_2} → [self : ConditionallyCompleteLattice α] → Lattice α

instance ConditionallyCompleteLattice.toSupSet E0 #

{α : Type u_2} → [self : ConditionallyCompleteLattice α] → SupSet α

theorem ConditionallyCompleteLattice.isLUB_csSup E1 #

∀ {α : Type u_2} [self : ConditionallyCompleteLattice α] (s : Set α), s.Nonempty → BddAbove s → IsLUB s (sSup s)

Every nonempty subset which is bounded above has a least upper bound.

theorem ConditionallyCompleteLattice.isGLB_csInf E1 #

∀ {α : Type u_2} [self : ConditionallyCompleteLattice α] (s : Set α), s.Nonempty → BddBelow s → IsGLB s (sInf s)

Every nonempty subset which is bounded below has a greatest lower bound.

class ConditionallyCompleteLinearOrder E1 #

Type u_2 → Type u_2

A conditionally complete linear order is a linear order in which every nonempty subset which is bounded above has a supremum, and every nonempty subset which is bounded below has an infimum. Typical examples are real numbers or natural numbers.

To differentiate the statements from the corresponding statements in (unconditional) complete linear orders, we prefix sInf and sSup by a c everywhere. The same statements should hold in both worlds, sometimes with additional assumptions of nonemptiness or boundedness.

ctor ConditionallyCompleteLinearOrder.mk E0 #

{α : Type u_2} →
  [toConditionallyCompleteLattice : ConditionallyCompleteLattice α] →
    [toOrd : Ord α] →
      (∀ (a b : α), a ≤ b ∨ b ≤ a) →
        DecidableLE α →
          (toDecidableEq : DecidableEq α) →
            (toDecidableLT : DecidableLT α) →
              (∀ (s : Set α), ¬BddAbove s → sSup s = sSup ∅) →
                (∀ (s : Set α), ¬BddBelow s → sInf s = sInf ∅) →
                  autoParam (∀ (a b : α), compare a b = compareOfLessAndEq a b)
                      ConditionallyCompleteLinearOrder.compare_eq_compareOfLessAndEq._autoParam →
                    ConditionallyCompleteLinearOrder α

instance ConditionallyCompleteLinearOrder.toConditionallyCompleteLattice E0 #

{α : Type u_2} → [self : ConditionallyCompleteLinearOrder α] → ConditionallyCompleteLattice α

instance ConditionallyCompleteLinearOrder.toOrd E0 #

{α : Type u_2} → [self : ConditionallyCompleteLinearOrder α] → Ord α

theorem ConditionallyCompleteLinearOrder.le_total E1 #

∀ {α : Type u_2} [self : ConditionallyCompleteLinearOrder α] (a b : α), a ≤ b ∨ b ≤ a

A ConditionallyCompleteLinearOrder is total.

abbrev ConditionallyCompleteLinearOrder.toDecidableLE E1 #

{α : Type u_2} → [self : ConditionallyCompleteLinearOrder α] → DecidableLE α

In a ConditionallyCompleteLinearOrder, we assume the order relations are all decidable.

abbrev ConditionallyCompleteLinearOrder.toDecidableEq E1 #

{α : Type u_2} → [self : ConditionallyCompleteLinearOrder α] → DecidableEq α

In a ConditionallyCompleteLinearOrder, we assume the order relations are all decidable.

abbrev ConditionallyCompleteLinearOrder.toDecidableLT E1 #

{α : Type u_2} → [self : ConditionallyCompleteLinearOrder α] → DecidableLT α

In a ConditionallyCompleteLinearOrder, we assume the order relations are all decidable.

theorem ConditionallyCompleteLinearOrder.csSup_of_not_bddAbove E1 #

∀ {α : Type u_2} [self : ConditionallyCompleteLinearOrder α] (s : Set α), ¬BddAbove s → sSup s = sSup ∅

If a set is not bounded above, its supremum is by convention sSup ∅.

theorem ConditionallyCompleteLinearOrder.csInf_of_not_bddBelow E1 #

∀ {α : Type u_2} [self : ConditionallyCompleteLinearOrder α] (s : Set α), ¬BddBelow s → sInf s = sInf ∅

If a set is not bounded below, its infimum is by convention sInf ∅.

theorem ConditionallyCompleteLinearOrder.compare_eq_compareOfLessAndEq E1 #

∀ {α : Type u_2} [self : ConditionallyCompleteLinearOrder α] (a b : α), compare a b = compareOfLessAndEq a b

Comparison via compare is equal to the canonical comparison given decidable < and =.

class ConditionallyCompleteLinearOrderBot E1 #

Type u_2 → Type u_2

A conditionally complete linear order with Bot is a linear order with least element, in which every nonempty subset which is bounded above has a supremum, and every nonempty subset (necessarily bounded below) has an infimum. A typical example is the natural numbers.

To differentiate the statements from the corresponding statements in (unconditional) complete linear orders, we prefix sInf and sSup by a c everywhere. The same statements should hold in both worlds, sometimes with additional assumptions of nonemptiness or boundedness.

instance ConditionallyCompleteLinearOrderBot.toOrderBot E0 #

{α : Type u_2} → [self : ConditionallyCompleteLinearOrderBot α] → OrderBot α

instance ConditionallyCompleteLinearOrderBot.toConditionallyCompleteLinearOrder E0 #

{α : Type u_2} → [self : ConditionallyCompleteLinearOrderBot α] → ConditionallyCompleteLinearOrder α

ctor ConditionallyCompleteLinearOrderBot.mk E0 #

{α : Type u_2} →
  [toConditionallyCompleteLinearOrder : ConditionallyCompleteLinearOrder α] →
    [toOrderBot : OrderBot α] → sSup ∅ = ⊥ → ConditionallyCompleteLinearOrderBot α

theorem ConditionallyCompleteLinearOrderBot.csSup_empty E1 #

∀ {α : Type u_2} [self : ConditionallyCompleteLinearOrderBot α], sSup ∅ = ⊥

The supremum of the empty set is special-cased to ⊥

def conditionallyCompleteLatticeOfsSup E1 #

(α : Type u_2) →
  [H1 : PartialOrder α] →
    [H2 : SupSet α] →
      (∀ (a b : α), BddAbove {a, b}) →
        (∀ (a b : α), BddBelow {a, b}) →
          (∀ (s : Set α), BddAbove s → s.Nonempty → IsLUB s (sSup s)) → ConditionallyCompleteLattice α

Create a ConditionallyCompleteLattice from a PartialOrder and sup function that returns the least upper bound of a nonempty set which is bounded above. Usually this constructor provides poor definitional equalities. If other fields are known explicitly, they should be provided; for example, if inf is known explicitly, construct the ConditionallyCompleteLattice instance as

instance : ConditionallyCompleteLattice my_T where
  inf := better_inf
  le_inf := ...
  inf_le_right := ...
  inf_le_left := ...
  -- don't care to fix sup, sInf
  __ := conditionallyCompleteLatticeOfsSup my_T ...

def conditionallyCompleteLatticeOfsInf E1 #

(α : Type u_2) →
  [H1 : PartialOrder α] →
    [H2 : InfSet α] →
      (∀ (a b : α), BddAbove {a, b}) →
        (∀ (a b : α), BddBelow {a, b}) →
          (∀ (s : Set α), BddBelow s → s.Nonempty → IsGLB s (sInf s)) → ConditionallyCompleteLattice α

Create a ConditionallyCompleteLattice from a PartialOrder and sInf function that returns the greatest lower bound of a nonempty set which is bounded below. Usually this constructor provides poor definitional equalities. If other fields are known explicitly, they should be provided; for example, if inf is known explicitly, construct the ConditionallyCompleteLattice instance as

instance : ConditionallyCompleteLattice my_T :=
  inf := better_inf
  le_inf := ...
  inf_le_right := ...
  inf_le_left := ...
  -- don't care to fix sup, sSup
  __ := conditionallyCompleteLatticeOfsInf my_T ...

def conditionallyCompleteLatticeOfLatticeOfsSup E1 #

(α : Type u_2) →
  [H1 : Lattice α] →
    [inst : SupSet α] → (∀ (s : Set α), BddAbove s → s.Nonempty → IsLUB s (sSup s)) → ConditionallyCompleteLattice α

A version of conditionallyCompleteLatticeOfsSup when we already know that α is a lattice.

This should only be used when it is both hard and unnecessary to provide sInf explicitly.

def conditionallyCompleteLatticeOfLatticeOfsInf E1 #

(α : Type u_2) →
  [H1 : Lattice α] →
    [inst : InfSet α] → (∀ (s : Set α), BddBelow s → s.Nonempty → IsGLB s (sInf s)) → ConditionallyCompleteLattice α

A version of conditionallyCompleteLatticeOfsInf when we already know that α is a lattice.

This should only be used when it is both hard and unnecessary to provide sSup explicitly.

abbrev WellFoundedLT.conditionallyCompleteLinearOrderBot E1 #

(α : Type u_2) → [i₁ : LinearOrder α] → [i₂ : OrderBot α] → [WellFoundedLT α] → ConditionallyCompleteLinearOrderBot α

A well-founded linear order is conditionally complete, with a bottom element.