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.ConditionallyCompletePartialOrder.Basic

35 declarations. Mathlib docs · Source

Basic results on conditionally complete partial orders

This file contains some basic results on conditionally complete partial orders, and is intended to parallel the API for conditionally complete lattices where possible. For the reason, the theorems here are mostly protected within the DirectedOn namespace, unless such an assumption is unnecessary. Otherwise the names here share the same names as their counterparts in Mathlib/Order/ConditionallyCompleteLattice/Basic.lean.

instance OrderDual.instConditionallyCompletePartialOrderInfOfConditionallyCompletePartialOrderSup E0 #

{α : Type u_1} → [ConditionallyCompletePartialOrderSup α] → ConditionallyCompletePartialOrderInf αᵒᵈ

instance OrderDual.instConditionallyCompletePartialOrderSupOfConditionallyCompletePartialOrderInf E0 #

{α : Type u_1} → [ConditionallyCompletePartialOrderInf α] → ConditionallyCompletePartialOrderSup αᵒᵈ

instance OrderDual.instConditionallyCompletePartialOrder E0 #

{α : Type u_1} → [ConditionallyCompletePartialOrder α] → ConditionallyCompletePartialOrder αᵒᵈ

theorem DirectedOn.le_csSup_of_le E1 #

∀ {α : Type u_1} [inst : ConditionallyCompletePartialOrderSup α] {s : Set α} {a b : α},
  DirectedOn (fun x1 x2 ↦ x1 ≤ x2) s → BddAbove s → b ∈ s → a ≤ b → a ≤ sSup s

theorem DirectedOn.csInf_le_of_le E1 #

∀ {α : Type u_1} [inst : ConditionallyCompletePartialOrderInf α] {s : Set α} {a b : α},
  DirectedOn (fun x1 x2 ↦ x2 ≤ x1) s → BddBelow s → b ∈ s → b ≤ a → sInf s ≤ a

theorem DirectedOn.csSup_le_csSup E1 #

∀ {α : Type u_1} [inst : ConditionallyCompletePartialOrderSup α] {s t : Set α},
  DirectedOn (fun x1 x2 ↦ x1 ≤ x2) s →
    DirectedOn (fun x1 x2 ↦ x1 ≤ x2) t → BddAbove t → s.Nonempty → s ⊆ t → sSup s ≤ sSup t

theorem DirectedOn.csInf_le_csInf E1 #

∀ {α : Type u_1} [inst : ConditionallyCompletePartialOrderInf α] {s t : Set α},
  DirectedOn (fun x1 x2 ↦ x2 ≤ x1) s →
    DirectedOn (fun x1 x2 ↦ x2 ≤ x1) t → BddBelow t → s.Nonempty → s ⊆ t → sInf t ≤ sInf s

theorem DirectedOn.csInf_le_iff E0 #

∀ {α : Type u_1} [inst : ConditionallyCompletePartialOrderInf α] {s : Set α} {a : α},
  DirectedOn (fun x1 x2 ↦ x2 ≤ x1) s → BddBelow s → s.Nonempty → (sInf s ≤ a ↔ ∀ b ∈ lowerBounds s, b ≤ a)

theorem DirectedOn.le_csSup_iff E0 #

∀ {α : Type u_1} [inst : ConditionallyCompletePartialOrderSup α] {s : Set α} {a : α},
  DirectedOn (fun x1 x2 ↦ x1 ≤ x2) s → BddAbove s → s.Nonempty → (a ≤ sSup s ↔ ∀ b ∈ upperBounds s, a ≤ b)

theorem IsGreatest.directedOn E1 #

∀ {α : Type u_1} [inst : ConditionallyCompletePartialOrderSup α] {s : Set α} {a : α},
  IsGreatest s a → DirectedOn (fun x1 x2 ↦ x1 ≤ x2) s

theorem IsLeast.directedOn E1 #

∀ {α : Type u_1} [inst : ConditionallyCompletePartialOrderInf α] {s : Set α} {a : α},
  IsLeast s a → DirectedOn (fun x1 x2 ↦ x2 ≤ x1) s

theorem IsGreatest.csSup_eq E0 #

∀ {α : Type u_1} [inst : ConditionallyCompletePartialOrderSup α] {s : Set α} {a : α}, IsGreatest s a → sSup s = a

A greatest element of a set is the supremum of this set.

theorem IsLeast.csInf_eq E0 #

∀ {α : Type u_1} [inst : ConditionallyCompletePartialOrderInf α] {s : Set α} {a : α}, IsLeast s a → sInf s = a

A least element of a set is the infimum of this set.

theorem IsLeast.csInf_mem E1 #

∀ {α : Type u_1} [inst : ConditionallyCompletePartialOrderInf α] {s : Set α} {a : α}, IsLeast s a → sInf s ∈ s

theorem IsGreatest.csSup_mem E1 #

∀ {α : Type u_1} [inst : ConditionallyCompletePartialOrderSup α] {s : Set α} {a : α}, IsGreatest s a → sSup s ∈ s

theorem DirectedOn.le_csInf_iff E0 #

∀ {α : Type u_1} [inst : ConditionallyCompletePartialOrderInf α] {s : Set α} {a : α},
  DirectedOn (fun x1 x2 ↦ x2 ≤ x1) s → BddBelow s → s.Nonempty → (a ≤ sInf s ↔ ∀ b ∈ s, a ≤ b)

theorem DirectedOn.csSup_le_iff E0 #

∀ {α : Type u_1} [inst : ConditionallyCompletePartialOrderSup α] {s : Set α} {a : α},
  DirectedOn (fun x1 x2 ↦ x1 ≤ x2) s → BddAbove s → s.Nonempty → (sSup s ≤ a ↔ ∀ b ∈ s, b ≤ a)

theorem DirectedOn.notMem_of_csSup_lt E1 #

∀ {α : Type u_1} [inst : ConditionallyCompletePartialOrderSup α] {x : α} {s : Set α},
  DirectedOn (fun x1 x2 ↦ x1 ≤ x2) s → sSup s < x → BddAbove s → x ∉ s

theorem DirectedOn.notMem_of_lt_csInf E1 #

∀ {α : Type u_1} [inst : ConditionallyCompletePartialOrderInf α] {x : α} {s : Set α},
  DirectedOn (fun x1 x2 ↦ x2 ≤ x1) s → x < sInf s → BddBelow s → x ∉ s

theorem DirectedOn.csSup_eq_of_forall_le_of_forall_lt_exists_gt E1 #

∀ {α : Type u_1} [inst : ConditionallyCompletePartialOrderSup α] {s : Set α} {b : α},
  DirectedOn (fun x1 x2 ↦ x1 ≤ x2) s → s.Nonempty → (∀ a ∈ s, a ≤ b) → (∀ w < b, ∃ a ∈ s, w < a) → sSup s = b

Introduction rule to prove that b is the supremum of s: it suffices to check that b is larger than all elements of s, and that this is not the case of any w<b. See sSup_eq_of_forall_le_of_forall_lt_exists_gt for a version in complete lattices.

theorem DirectedOn.csInf_eq_of_forall_ge_of_forall_gt_exists_lt E1 #

∀ {α : Type u_1} [inst : ConditionallyCompletePartialOrderInf α] {s : Set α} {b : α},
  DirectedOn (fun x1 x2 ↦ x2 ≤ x1) s → s.Nonempty → (∀ a ∈ s, b ≤ a) → (∀ (w : α), b < w → ∃ a ∈ s, a < w) → sInf s = b

Introduction rule to prove that b is the infimum of s: it suffices to check that b is smaller than all elements of s, and that this is not the case of any w>b. See sInf_eq_of_forall_ge_of_forall_gt_exists_lt for a version in complete lattices.

theorem DirectedOn.lt_csSup_of_lt E1 #

∀ {α : Type u_1} [inst : ConditionallyCompletePartialOrderSup α] {s : Set α} {a b : α},
  DirectedOn (fun x1 x2 ↦ x1 ≤ x2) s → BddAbove s → a ∈ s → b < a → b < sSup s

b < sSup s when there is an element a in s with b < a, when s is bounded above. This is essentially an iff, except that the assumptions for the two implications are slightly different (one needs boundedness above for one direction, nonemptiness and linear order for the other one), so we formulate separately the two implications, contrary to the CompleteLattice case.

theorem DirectedOn.csInf_lt_of_lt E1 #

∀ {α : Type u_1} [inst : ConditionallyCompletePartialOrderInf α] {s : Set α} {a b : α},
  DirectedOn (fun x1 x2 ↦ x2 ≤ x1) s → BddBelow s → a ∈ s → a < b → sInf s < b

sInf s < b when there is an element a in s with a < b, when s is bounded below. This is essentially an iff, except that the assumptions for the two implications are slightly different (one needs boundedness below for one direction, nonemptiness and linear order for the other one), so we formulate separately the two implications, contrary to the CompleteLattice case.

theorem csSup_singleton E0 #

∀ {α : Type u_1} [inst : ConditionallyCompletePartialOrderSup α] (a : α), sSup {a} = a

The supremum of a singleton is the element of the singleton

theorem csInf_singleton E0 #

∀ {α : Type u_1} [inst : ConditionallyCompletePartialOrderInf α] (a : α), sInf {a} = a

theorem csSup_Iic E0 #

∀ {α : Type u_2} [inst : ConditionallyCompletePartialOrderSup α] {a : α}, sSup (Set.Iic a) = a

theorem csInf_Ici E0 #

∀ {α : Type u_2} [inst : ConditionallyCompletePartialOrderInf α] {a : α}, sInf (Set.Ici a) = a

theorem csSup_Ioc E0 #

∀ {α : Type u_2} [inst : ConditionallyCompletePartialOrderSup α] {a b : α}, b < a → sSup (Set.Ioc b a) = a

theorem csInf_Ico E0 #

∀ {α : Type u_2} [inst : ConditionallyCompletePartialOrderInf α] {a b : α}, a < b → sInf (Set.Ico a b) = a

theorem csInf_Icc E0 #

∀ {α : Type u_2} [inst : ConditionallyCompletePartialOrderInf α] {a b : α}, a ≤ b → sInf (Set.Icc a b) = a

theorem csSup_Icc E0 #

∀ {α : Type u_1} [inst : ConditionallyCompletePartialOrderSup α] {a b : α}, a ≤ b → sSup (Set.Icc a b) = b

theorem inf_eq_bot_of_bot_mem E1 #

∀ {α : Type u_1} [inst : ConditionallyCompletePartialOrderInf α] {s : Set α} [inst_1 : OrderBot α], ⊥ ∈ s → sInf s = ⊥

theorem sup_eq_top_of_top_mem E1 #

∀ {α : Type u_1} [inst : ConditionallyCompletePartialOrderSup α] {s : Set α} [inst_1 : OrderTop α], ⊤ ∈ s → sSup s = ⊤

theorem DirectedOn.subset_Icc_csInf_csSup E1 #

∀ {α : Type u_1} [inst : ConditionallyCompletePartialOrder α] {s : Set α},
  DirectedOn (fun x1 x2 ↦ x1 ≥ x2) s →
    DirectedOn (fun x1 x2 ↦ x1 ≤ x2) s → BddBelow s → BddAbove s → s ⊆ Set.Icc (sInf s) (sSup s)

theorem DirectedOn.csInf_le_csSup E1 #

∀ {α : Type u_1} [inst : ConditionallyCompletePartialOrder α] {s : Set α},
  DirectedOn (fun x1 x2 ↦ x1 ≥ x2) s →
    DirectedOn (fun x1 x2 ↦ x1 ≤ x2) s → BddBelow s → BddAbove s → s.Nonempty → sInf s ≤ sSup s

If a set is bounded below and above, and nonempty, its infimum is less than or equal to its supremum.