The areas / V04. Order and lattices
Mathlib.Order.CompleteLattice.Defs
108 declarations. Mathlib docs · Source
Definition of complete lattices
This file contains the definition of complete lattices with suprema/infima of arbitrary sets.
Main definitions
sSupandsInfare the supremum and the infimum of a set;iSup (f : ι → α)andiInf (f : ι → α)are indexed supremum and infimum of a function, defined assSupandsInfof the range of this function;- class
CompleteLattice: a bounded lattice such thatsSup sis always the least upper boundary ofsandsInf sis always the greatest lower boundary ofs; - class
CompleteLinearOrder: a linear ordered complete lattice.
Naming conventions
In lemma names,
sSupis calledsSupsInfis calledsInf⨆ i, s iis callediSup⨅ i, s iis callediInf⨆ i j, s i jis callediSup₂. This is aniSupinside aniSup.⨅ i j, s i jis callediInf₂. This is aniInfinside aniInf.⨆ i ∈ s, t iis calledbiSupfor "boundediSup". This is the special case ofiSup₂wherej : i ∈ s.⨅ i ∈ s, t iis calledbiInffor "boundediInf". This is the special case ofiInf₂wherej : i ∈ s.
Notation
⨆ i, f i:iSup f, the supremum of the range off;⨅ i, f i:iInf f, the infimum of the range off.
def CompleteSemilatticeInf.ctorIdx E1 #
{α : Type u_4} → CompleteSemilatticeInf α → ℕ
def CompleteSemilatticeSup.ctorIdx E1 #
{α : Type u_4} → CompleteSemilatticeSup α → ℕ
def CompleteLinearOrder.ctorIdx E1 #
{α : Type u_4} → CompleteLinearOrder α → ℕ
def CompleteLattice.ctorIdx E1 #
{α : Type u_4} → CompleteLattice α → ℕ
instance OrderDual.supSet E0 #
(α : Type u_4) → [h : InfSet α] → SupSet αᵒᵈ
instance OrderDual.infSet E0 #
(α : Type u_4) → [h : SupSet α] → InfSet αᵒᵈ
instance OrderDual.orderInfSet E0 #
(α : Type u_4) → [inst : Preorder α] → [OrderSupSet α] → OrderInfSet αᵒᵈ
instance OrderDual.orderSupSet E0 #
(α : Type u_4) → [inst : Preorder α] → [OrderInfSet α] → OrderSupSet αᵒᵈ
class CompleteSemilatticeSup E1 #
Type u_4 → Type u_4
Note that we rarely use CompleteSemilatticeSup
(in fact, any such object is always a CompleteLattice, so it's usually best to start there).
Nevertheless it is sometimes a useful intermediate step in constructions.
ctor CompleteSemilatticeSup.mk E0 #
{α : Type u_4} →
[toPartialOrder : PartialOrder α] →
[toSupSet : SupSet α] → (∀ (s : Set α), IsLUB s (sSup s)) → CompleteSemilatticeSup α
instance CompleteSemilatticeSup.toSupSet E0 #
{α : Type u_4} → [self : CompleteSemilatticeSup α] → SupSet α
instance CompleteSemilatticeSup.toPartialOrder E0 #
{α : Type u_4} → [self : CompleteSemilatticeSup α] → PartialOrder α
theorem CompleteSemilatticeSup.isLUB_sSup E1 #
∀ {α : Type u_4} [self : CompleteSemilatticeSup α] (s : Set α), IsLUB s (sSup s)
Every set has a least upper bound.
class CompleteSemilatticeInf E1 #
Type u_4 → Type u_4
Note that we rarely use CompleteSemilatticeInf
(in fact, any such object is always a CompleteLattice, so it's usually best to start there).
Nevertheless it is sometimes a useful intermediate step in constructions.
ctor CompleteSemilatticeInf.mk E0 #
{α : Type u_4} →
[toPartialOrder : PartialOrder α] →
[toInfSet : InfSet α] → (∀ (s : Set α), IsGLB s (sInf s)) → CompleteSemilatticeInf α
instance CompleteSemilatticeInf.toPartialOrder E0 #
{α : Type u_4} → [self : CompleteSemilatticeInf α] → PartialOrder α
instance CompleteSemilatticeInf.toInfSet E0 #
{α : Type u_4} → [self : CompleteSemilatticeInf α] → InfSet α
theorem CompleteSemilatticeInf.isGLB_sInf E1 #
∀ {α : Type u_4} [self : CompleteSemilatticeInf α] (s : Set α), IsGLB s (sInf s)
Every set has a greatest lower bound.
theorem isGLB_sInf E1 #
∀ {α : Type u_1} [inst : CompleteSemilatticeInf α] (s : Set α), IsGLB s (sInf s)
theorem isLUB_sSup E1 #
∀ {α : Type u_1} [inst : CompleteSemilatticeSup α] (s : Set α), IsLUB s (sSup s)
instance CompleteSemilatticeSup.toOrderSupSet E0 #
{α : Type u_1} → [inst : CompleteSemilatticeSup α] → OrderSupSet α
instance CompleteSemilatticeInf.toOrderInfSet E0 #
{α : Type u_1} → [inst : CompleteSemilatticeInf α] → OrderInfSet α
theorem sInf_le E1 #
∀ {α : Type u_1} [inst : CompleteSemilatticeInf α] {s : Set α} {a : α}, a ∈ s → sInf s ≤ a
theorem le_sSup E1 #
∀ {α : Type u_1} [inst : CompleteSemilatticeSup α] {s : Set α} {a : α}, a ∈ s → a ≤ sSup s
theorem le_sInf E1 #
∀ {α : Type u_1} [inst : CompleteSemilatticeInf α] {s : Set α} {a : α}, (∀ b ∈ s, a ≤ b) → a ≤ sInf s
theorem sSup_le E1 #
∀ {α : Type u_1} [inst : CompleteSemilatticeSup α] {s : Set α} {a : α}, (∀ b ∈ s, b ≤ a) → sSup s ≤ a
theorem isLUB_iff_sSup_eq E0 #
∀ {α : Type u_1} [inst : CompleteSemilatticeSup α] {s : Set α} {a : α}, IsLUB s a ↔ sSup s = a
theorem isGLB_iff_sInf_eq E0 #
∀ {α : Type u_1} [inst : CompleteSemilatticeInf α] {s : Set α} {a : α}, IsGLB s a ↔ sInf s = a
theorem sSup_mem_upperBounds E1 #
∀ {α : Type u_1} [inst : CompleteSemilatticeSup α] {s : Set α}, sSup s ∈ upperBounds s
theorem sInf_mem_lowerBounds E1 #
∀ {α : Type u_1} [inst : CompleteSemilatticeInf α] {s : Set α}, sInf s ∈ lowerBounds s
theorem le_sSup_of_le E1 #
∀ {α : Type u_1} [inst : CompleteSemilatticeSup α] {s : Set α} {a b : α}, b ∈ s → a ≤ b → a ≤ sSup s
theorem sInf_le_of_le E1 #
∀ {α : Type u_1} [inst : CompleteSemilatticeInf α] {s : Set α} {a b : α}, b ∈ s → b ≤ a → sInf s ≤ a
theorem sInf_le_sInf E1 #
∀ {α : Type u_1} [inst : CompleteSemilatticeInf α] {s t : Set α}, s ⊆ t → sInf t ≤ sInf s
theorem sSup_le_sSup E1 #
∀ {α : Type u_1} [inst : CompleteSemilatticeSup α] {s t : Set α}, s ⊆ t → sSup s ≤ sSup t
theorem le_sInf_iff E0 #
∀ {α : Type u_1} [inst : CompleteSemilatticeInf α] {s : Set α} {a : α}, a ≤ sInf s ↔ ∀ b ∈ s, a ≤ b
theorem sSup_le_iff E0 #
∀ {α : Type u_1} [inst : CompleteSemilatticeSup α] {s : Set α} {a : α}, sSup s ≤ a ↔ ∀ b ∈ s, b ≤ a
theorem le_sSup_iff E0 #
∀ {α : Type u_1} [inst : CompleteSemilatticeSup α] {s : Set α} {a : α}, a ≤ sSup s ↔ ∀ b ∈ upperBounds s, a ≤ b
theorem sInf_le_iff E0 #
∀ {α : Type u_1} [inst : CompleteSemilatticeInf α] {s : Set α} {a : α}, sInf s ≤ a ↔ ∀ b ∈ lowerBounds s, b ≤ a
theorem iInf_le_iff E0 #
∀ {α : Type u_1} {ι : Sort u_3} [inst : CompleteSemilatticeInf α] {a : α} {s : ι → α},
iInf s ≤ a ↔ ∀ (b : α), (∀ (i : ι), b ≤ s i) → b ≤ a
theorem le_iSup_iff E0 #
∀ {α : Type u_1} {ι : Sort u_3} [inst : CompleteSemilatticeSup α] {a : α} {s : ι → α},
a ≤ iSup s ↔ ∀ (b : α), (∀ (i : ι), s i ≤ b) → a ≤ b
theorem sSup_lt_iff E0 #
∀ {α : Type u_1} [inst : CompleteSemilatticeSup α] {s : Set α} {l : α}, sSup s < l ↔ ∃ b < l, b ∈ upperBounds s
theorem lt_sInf_iff E0 #
∀ {α : Type u_1} [inst : CompleteSemilatticeInf α] {s : Set α} {l : α}, l < sInf s ↔ ∃ b, l < b ∧ b ∈ lowerBounds s
theorem lt_iInf_iff E0 #
∀ {α : Type u_1} {ι : Sort u_3} [inst : CompleteSemilatticeInf α] {l : α} {f : ι → α},
l < iInf f ↔ ∃ b, l < b ∧ ∀ (i : ι), b ≤ f i
theorem iSup_lt_iff E0 #
∀ {α : Type u_1} {ι : Sort u_3} [inst : CompleteSemilatticeSup α] {l : α} {f : ι → α},
iSup f < l ↔ ∃ b < l, ∀ (i : ι), f i ≤ b
instance instCompleteSemilatticeInfOrderDualOfCompleteSemilatticeSup E0 #
{α : Type u_4} → [CompleteSemilatticeSup α] → CompleteSemilatticeInf αᵒᵈ
instance instCompleteSemilatticeSupOrderDualOfCompleteSemilatticeInf E0 #
{α : Type u_4} → [CompleteSemilatticeInf α] → CompleteSemilatticeSup αᵒᵈ
class CompleteLattice E3 #
Type u_4 → Type u_4
A complete lattice is a bounded lattice which has suprema and infima for every subset.
instance CompleteLattice.toLattice E0 #
{α : Type u_4} → [self : CompleteLattice α] → Lattice α
instance CompleteLattice.toBoundedOrder E0 #
{α : Type u_4} → [self : CompleteLattice α] → BoundedOrder α
abbrev CompleteLattice.toInfSet E1 #
{α : Type u_4} → [self : CompleteLattice α] → InfSet α
abbrev CompleteLattice.toSupSet E1 #
{α : Type u_4} → [self : CompleteLattice α] → SupSet α
instance CompleteLattice.toCompleteSemilatticeInf E0 #
{α : Type u_4} → [self : CompleteLattice α] → CompleteSemilatticeInf α
theorem CompleteLattice.isLUB_sSup E1 #
∀ {α : Type u_4} [self : CompleteLattice α] (s : Set α), IsLUB s (sSup s)
Every set has a least upper bound.
instance CompleteLattice.toCompleteSemilatticeSup E0 #
{α : Type u_4} → [self : CompleteLattice α] → CompleteSemilatticeSup α
ctor CompleteLattice.mk E0 #
{α : Type u_4} →
[toLattice : Lattice α] →
[toSupSet : SupSet α] →
(∀ (s : Set α), IsLUB s (sSup s)) →
[toInfSet : InfSet α] →
(∀ (s : Set α), IsGLB s (sInf s)) → [toBoundedOrder : BoundedOrder α] → CompleteLattice α
theorem CompleteLattice.isGLB_sInf E1 #
∀ {α : Type u_4} [self : CompleteLattice α] (s : Set α), IsGLB s (sInf s)
Every set has a greatest lower bound.
instance CompleteLattice.toPartialOrder' E0 #
{α : Type u_1} → [CompleteLattice α] → PartialOrder α
def completeLatticeOfInf E1 #
(α : Type u_4) → [H1 : PartialOrder α] → [H2 : InfSet α] → (∀ (s : Set α), IsGLB s (sInf s)) → CompleteLattice α
Create a CompleteLattice from a PartialOrder and InfSet
that returns the greatest lower bound of a set. 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 CompleteLattice
instance as
instance : CompleteLattice my_T where
inf := better_inf
le_inf := ...
inf_le_right := ...
inf_le_left := ...
-- don't care to fix sup, sSup, bot, top
__ := completeLatticeOfInf my_T _
def completeLatticeOfCompleteSemilatticeInf E1 #
(α : Type u_4) → [CompleteSemilatticeInf α] → CompleteLattice α
Any CompleteSemilatticeInf is in fact a CompleteLattice.
Note that this construction has bad definitional properties:
see the doc-string on completeLatticeOfInf.
def completeLatticeOfSup E1 #
(α : Type u_4) → [H1 : PartialOrder α] → [H2 : SupSet α] → (∀ (s : Set α), IsLUB s (sSup s)) → CompleteLattice α
Create a CompleteLattice from a PartialOrder and SupSet
that returns the least upper bound of a set. 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 CompleteLattice
instance as
instance : CompleteLattice my_T where
inf := better_inf
le_inf := ...
inf_le_right := ...
inf_le_left := ...
-- don't care to fix sup, sInf, bot, top
__ := completeLatticeOfSup my_T _
def completeLatticeOfCompleteSemilatticeSup E1 #
(α : Type u_4) → [CompleteSemilatticeSup α] → CompleteLattice α
Any CompleteSemilatticeSup is in fact a CompleteLattice.
Note that this construction has bad definitional properties:
see the doc-string on completeLatticeOfSup.
class CompleteLinearOrder E3 #
Type u_4 → Type u_4
A complete linear order is a linear order whose lattice structure is complete.
abbrev CompleteLinearOrder.toSDiff E1 #
{α : Type u_4} → [self : CompleteLinearOrder α] → SDiff α
theorem CompleteLinearOrder.top_sdiff E1 #
∀ {α : Type u_4} [self : CompleteLinearOrder α] (a : α), ⊤ \ a = ¬a
⊤ \ a is ¬a
theorem CompleteLinearOrder.himp_bot E1 #
∀ {α : Type u_4} [self : CompleteLinearOrder α] (a : α), a ⇨ ⊥ = aᶜ
aᶜ is defined as a ⇨ ⊥
theorem CompleteLinearOrder.le_himp_iff E0 #
∀ {α : Type u_4} [self : CompleteLinearOrder α] (a b c : α), a ≤ b ⇨ c ↔ min a b ≤ c
(a ⇨ ·) is right adjoint to (a ⊓ ·)
instance CompleteLinearOrder.toOrd E0 #
{α : Type u_4} → [self : CompleteLinearOrder α] → Ord α
instance CompleteLinearOrder.toBiheytingAlgebra E0 #
{α : Type u_4} → [self : CompleteLinearOrder α] → BiheytingAlgebra α
ctor CompleteLinearOrder.mk E0 #
{α : Type u_4} →
[toCompleteLattice : CompleteLattice α] →
[toHImp : HImp α] →
(∀ (a b c : α), a ≤ b ⇨ c ↔ a ⊓ b ≤ c) →
[toCompl : Compl α] →
(∀ (a : α), a ⇨ ⊥ = aᶜ) →
[toSDiff : SDiff α] →
(∀ (a b c : α), a \ b ≤ c ↔ a ≤ b ⊔ c) →
[toHNot : HNot α] →
(∀ (a : α), ⊤ \ a = ¬a) →
[toOrd : Ord α] →
(∀ (a b : α), a ≤ b ∨ b ≤ a) →
DecidableLE α →
(toDecidableEq : DecidableEq α) →
(toDecidableLT : DecidableLT α) →
autoParam (∀ (a b : α), compare a b = compareOfLessAndEq a b)
CompleteLinearOrder.compare_eq_compareOfLessAndEq._autoParam →
CompleteLinearOrder α
abbrev CompleteLinearOrder.toHNot E1 #
{α : Type u_4} → [self : CompleteLinearOrder α] → HNot α
theorem CompleteLinearOrder.sdiff_le_iff E0 #
∀ {α : Type u_4} [self : CompleteLinearOrder α] (a b c : α), a \ b ≤ c ↔ a ≤ max b c
(· \ a) is left adjoint to (· ⊔ a)
instance CompleteLinearOrder.toCompleteLattice E0 #
{α : Type u_4} → [self : CompleteLinearOrder α] → CompleteLattice α
abbrev CompleteLinearOrder.toHImp E1 #
{α : Type u_4} → [self : CompleteLinearOrder α] → HImp α
abbrev CompleteLinearOrder.toCompl E1 #
{α : Type u_4} → [self : CompleteLinearOrder α] → Compl α
theorem CompleteLinearOrder.le_total E1 #
∀ {α : Type u_4} [self : CompleteLinearOrder α] (a b : α), a ≤ b ∨ b ≤ a
A linear order is total.
abbrev CompleteLinearOrder.toDecidableLE E1 #
{α : Type u_4} → [self : CompleteLinearOrder α] → DecidableLE α
In a linearly ordered type, we assume the order relations are all decidable.
abbrev CompleteLinearOrder.toDecidableEq E1 #
{α : Type u_4} → [self : CompleteLinearOrder α] → DecidableEq α
In a linearly ordered type, we assume the order relations are all decidable.
abbrev CompleteLinearOrder.toDecidableLT E1 #
{α : Type u_4} → [self : CompleteLinearOrder α] → DecidableLT α
In a linearly ordered type, we assume the order relations are all decidable.
theorem CompleteLinearOrder.compare_eq_compareOfLessAndEq E1 #
∀ {α : Type u_4} [self : CompleteLinearOrder α] (a b : α), compare a b = compareOfLessAndEq a b
Comparison via compare is equal to the canonical comparison given decidable < and =.
instance CompleteLinearOrder.toLinearOrder E0 #
{α : Type u_1} → [i : CompleteLinearOrder α] → LinearOrder α
instance OrderDual.instCompleteLattice E0 #
{α : Type u_1} → [CompleteLattice α] → CompleteLattice αᵒᵈ
instance OrderDual.instCompleteLinearOrder E0 #
{α : Type u_1} → [CompleteLinearOrder α] → CompleteLinearOrder αᵒᵈ
theorem toDual_sInf E0 #
∀ {α : Type u_1} [inst : InfSet α] (s : Set α), OrderDual.toDual (sInf s) = sSup (⇑OrderDual.ofDual ⁻¹' s)
theorem toDual_sSup E0 #
∀ {α : Type u_1} [inst : SupSet α] (s : Set α), OrderDual.toDual (sSup s) = sInf (⇑OrderDual.ofDual ⁻¹' s)
theorem ofDual_sInf E0 #
∀ {α : Type u_1} [inst : SupSet α] (s : Set αᵒᵈ), OrderDual.ofDual (sInf s) = sSup (⇑OrderDual.toDual ⁻¹' s)
theorem ofDual_sSup E0 #
∀ {α : Type u_1} [inst : InfSet α] (s : Set αᵒᵈ), OrderDual.ofDual (sSup s) = sInf (⇑OrderDual.toDual ⁻¹' s)
theorem toDual_iInf E0 #
∀ {α : Type u_1} {ι : Sort u_3} [inst : InfSet α] (f : ι → α), OrderDual.toDual (⨅ i, f i) = ⨆ i, OrderDual.toDual (f i)
theorem toDual_iSup E0 #
∀ {α : Type u_1} {ι : Sort u_3} [inst : SupSet α] (f : ι → α), OrderDual.toDual (⨆ i, f i) = ⨅ i, OrderDual.toDual (f i)
theorem ofDual_iInf E0 #
∀ {α : Type u_1} {ι : Sort u_3} [inst : SupSet α] (f : ι → αᵒᵈ),
OrderDual.ofDual (⨅ i, f i) = ⨆ i, OrderDual.ofDual (f i)
theorem ofDual_iSup E0 #
∀ {α : Type u_1} {ι : Sort u_3} [inst : InfSet α] (f : ι → αᵒᵈ),
OrderDual.ofDual (⨆ i, f i) = ⨅ i, OrderDual.ofDual (f i)
theorem sInf_lt_iff E0 #
∀ {α : Type u_1} [inst : CompleteLinearOrder α] {s : Set α} {b : α}, sInf s < b ↔ ∃ a ∈ s, a < b
theorem lt_sSup_iff E0 #
∀ {α : Type u_1} [inst : CompleteLinearOrder α] {s : Set α} {b : α}, b < sSup s ↔ ∃ a ∈ s, b < a
theorem iInf_lt_iff E0 #
∀ {α : Type u_1} {ι : Sort u_3} [inst : CompleteLinearOrder α] {a : α} {f : ι → α}, iInf f < a ↔ ∃ i, f i < a
theorem lt_iSup_iff E0 #
∀ {α : Type u_1} {ι : Sort u_3} [inst : CompleteLinearOrder α] {a : α} {f : ι → α}, a < iSup f ↔ ∃ i, a < f i
theorem le_sSup_iff_forall_lt E1 #
∀ {α : Type u_1} [inst : CompleteLinearOrder α] {s : Set α} {l : α}, l ≤ sSup s ↔ ∀ b < l, ∃ a ∈ s, b < a
theorem sInf_le_iff_forall_lt E1 #
∀ {α : Type u_1} [inst : CompleteLinearOrder α] {s : Set α} {l : α}, sInf s ≤ l ↔ ∀ (b : α), l < b → ∃ a ∈ s, a < b
theorem le_iSup_iff_forall_lt E1 #
∀ {α : Type u_1} {ι : Sort u_3} [inst : CompleteLinearOrder α] {l : α} {f : ι → α}, l ≤ iSup f ↔ ∀ b < l, ∃ i, b < f i
theorem iInf_le_iff_forall_lt E1 #
∀ {α : Type u_1} {ι : Sort u_3} [inst : CompleteLinearOrder α] {l : α} {f : ι → α},
iInf f ≤ l ↔ ∀ (b : α), l < b → ∃ i, f i < b
theorem sSup_eq_top E1 #
∀ {α : Type u_1} [inst : CompleteLinearOrder α] {s : Set α}, sSup s = ⊤ ↔ ∀ b < ⊤, ∃ a ∈ s, b < a
theorem sInf_eq_bot E1 #
∀ {α : Type u_1} [inst : CompleteLinearOrder α] {s : Set α}, sInf s = ⊥ ↔ ∀ (b : α), ⊥ < b → ∃ a ∈ s, a < b
theorem iSup_eq_top E1 #
∀ {α : Type u_1} {ι : Sort u_3} [inst : CompleteLinearOrder α] {f : ι → α}, iSup f = ⊤ ↔ ∀ b < ⊤, ∃ i, b < f i
theorem iInf_eq_bot E1 #
∀ {α : Type u_1} {ι : Sort u_3} [inst : CompleteLinearOrder α] {f : ι → α}, iInf f = ⊥ ↔ ∀ (b : α), ⊥ < b → ∃ i, f i < b
theorem lt_biInf_iff E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : CompleteLinearOrder α] {a : α} {s : Set β} {f : β → α},
⨅ i ∈ s, f i < a ↔ ∃ i ∈ s, f i < a
theorem lt_biSup_iff E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : CompleteLinearOrder α] {a : α} {s : Set β} {f : β → α},
a < ⨆ i ∈ s, f i ↔ ∃ i ∈ s, a < f i
abbrev Equiv.supSet E1 #
{α : Type u_1} → {β : Type u_2} → α ≃ β → [SupSet β] → SupSet α
Transfer SupSet across an Equiv.
theorem Equiv.supSet_def E0 #
∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β) [inst : SupSet β] (s : Set α), sSup s = e.symm (⨆ a ∈ s, e a)
abbrev Equiv.infSet E1 #
{α : Type u_1} → {β : Type u_2} → α ≃ β → [InfSet β] → InfSet α
Transfer InfSet across an Equiv.
theorem Equiv.infSet_def E0 #
∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β) [inst : InfSet β] (s : Set α), sInf s = e.symm (⨅ a ∈ s, e a)