The areas / V04. Order and lattices
Mathlib.Order.ConditionallyCompleteLattice.WithTop
84 declarations and 3 deprecated aliases. Mathlib docs · Source
Conditionally complete lattice structure on WithTop and WithBot
This file extends sSup and sInf from α to WithTop α and WithBot α, and shows that they
are conditionally complete lattices when α is. We also show that WithTop (WithBot α) and
WithBot (WithTop α) are complete lattices.
Extension of sSup and sInf from a preorder α to WithTop α and WithBot α
Complete lattice structure on WithTop (WithBot α)
If α is a ConditionallyCompleteLattice, then we show that WithTop α and WithBot α
also inherit the structure of conditionally complete lattices. Furthermore, we show
that WithTop (WithBot α) and WithBot (WithTop α) naturally inherit the structure of a
complete lattice. Note that for α a conditionally complete lattice, sSup and sInf both return
junk values for sets which are empty or unbounded. The extension of sSup to WithTop α fixes
the unboundedness problem and the extension to WithBot α fixes the problem with
the empty set.
This result can be used to show that the extended reals [-∞, ∞] are a complete linear order.
theorem WithTop.untop.congr_simp E1 #
∀ {α : Type u_1} (x x_1 : WithTop α) (e_x : x = x_1) (a : x ≠ ⊤), x.untop a = x_1.untop ⋯
theorem WithBot.isCompl_range_coe E0 #
∀ {α : Type u_1}, IsCompl (Set.range WithBot.some) {⊥}
theorem WithTop.isCompl_range_coe E0 #
∀ {α : Type u_1}, IsCompl (Set.range WithTop.some) {⊤}
instance WithTop.instSupSet E0 #
{α : Type u_1} → [LE α] → [SupSet α] → SupSet (WithTop α)
This instance ensures OrderSupSet (WithTop α) whenever OrderSupSet α.
instance WithBot.instInfSet E0 #
{α : Type u_1} → [LE α] → [InfSet α] → InfSet (WithBot α)
This instance ensures OrderInfSet (WithBot α) whenever OrderInfSet α.
instance WithTop.instInfSet E0 #
{α : Type u_1} → [LE α] → [InfSet α] → InfSet (WithTop α)
This instance ensures OrderInfSet (WithTop α) whenever OrderInfSet α.
instance WithBot.instSupSet E0 #
{α : Type u_1} → [LE α] → [SupSet α] → SupSet (WithBot α)
This instance ensures OrderSupSet (WithBot α) whenever OrderSupSet α.
theorem WithBot.sInf_eq_bot_iff E0 #
∀ {α : Type u_1} [inst : LE α] [inst_1 : InfSet α] {s : Set (WithBot α)},
sInf s = ⊥ ↔ ⊥ ∈ s ∨ ¬BddBelow (WithBot.some ⁻¹' s)
theorem WithTop.sSup_eq_top_iff E0 #
∀ {α : Type u_1} [inst : LE α] [inst_1 : SupSet α] {s : Set (WithTop α)},
sSup s = ⊤ ↔ ⊤ ∈ s ∨ ¬BddAbove (WithTop.some ⁻¹' s)
theorem WithBot.sInf_eq_coe_iff E0 #
∀ {α : Type u_1} [inst : LE α] [inst_1 : InfSet α] {s : Set (WithBot α)} {a : α},
sInf s = ↑a ↔ ⊥ ∉ s ∧ BddBelow (WithBot.some ⁻¹' s) ∧ sInf (WithBot.some ⁻¹' s) = a
theorem WithTop.sSup_eq_coe_iff E0 #
∀ {α : Type u_1} [inst : LE α] [inst_1 : SupSet α] {s : Set (WithTop α)} {a : α},
sSup s = ↑a ↔ ⊤ ∉ s ∧ BddAbove (WithTop.some ⁻¹' s) ∧ sSup (WithTop.some ⁻¹' s) = a
theorem WithBot.sSup_eq_bot_iff E0 #
∀ {α : Type u_1} [inst : LE α] [inst_1 : SupSet α] {s : Set (WithBot α)}, sSup s = ⊥ ↔ s ⊆ {⊥} ∨ ¬BddAbove s
theorem WithTop.sInf_eq_top_iff E0 #
∀ {α : Type u_1} [inst : LE α] [inst_1 : InfSet α] {s : Set (WithTop α)}, sInf s = ⊤ ↔ s ⊆ {⊤} ∨ ¬BddBelow s
theorem WithTop.sInf_eq_coe_iff E0 #
∀ {α : Type u_1} [inst : LE α] [inst_1 : InfSet α] {s : Set (WithTop α)} {a : α},
sInf s = ↑a ↔ ¬s ⊆ {⊤} ∧ BddBelow s ∧ sInf (WithTop.some ⁻¹' s) = a
theorem WithBot.sSup_eq_coe_iff E0 #
∀ {α : Type u_1} [inst : LE α] [inst_1 : SupSet α] {s : Set (WithBot α)} {a : α},
sSup s = ↑a ↔ ¬s ⊆ {⊥} ∧ BddAbove s ∧ sSup (WithBot.some ⁻¹' s) = a
theorem WithBot.sInf_eq E0 #
∀ {α : Type u_1} [inst : LE α] [inst_1 : InfSet α] {s : Set (WithBot α)},
⊥ ∉ s → BddBelow (WithBot.some ⁻¹' s) → sInf s = ↑(sInf (WithBot.some ⁻¹' s))
theorem WithTop.sSup_eq E0 #
∀ {α : Type u_1} [inst : LE α] [inst_1 : SupSet α] {s : Set (WithTop α)},
⊤ ∉ s → BddAbove (WithTop.some ⁻¹' s) → sSup s = ↑(sSup (WithTop.some ⁻¹' s))
theorem WithTop.sInf_eq E0 #
∀ {α : Type u_1} [inst : LE α] [inst_1 : InfSet α] {s : Set (WithTop α)},
¬s ⊆ {⊤} → BddBelow s → sInf s = ↑(sInf (WithTop.some ⁻¹' s))
theorem WithBot.sSup_eq E0 #
∀ {α : Type u_1} [inst : LE α] [inst_1 : SupSet α] {s : Set (WithBot α)},
¬s ⊆ {⊥} → BddAbove s → sSup s = ↑(sSup (WithBot.some ⁻¹' s))
theorem WithTop.sInf_empty E0 #
∀ {α : Type u_1} [inst : LE α] [inst_1 : InfSet α], sInf ∅ = ⊤
theorem WithBot.sSup_empty E0 #
∀ {α : Type u_1} [inst : LE α] [inst_1 : SupSet α], sSup ∅ = ⊥
theorem WithBot.sSup_singleton_bot E0 #
∀ {α : Type u_1} [inst : LE α] [inst_1 : SupSet α], sSup {⊥} = ⊥
theorem WithTop.sInf_singleton_top E0 #
∀ {α : Type u_1} [inst : LE α] [inst_1 : InfSet α], sInf {⊤} = ⊤
theorem WithBot.sInf_of_bot_mem E0 #
∀ {α : Type u_1} [inst : LE α] [inst_1 : InfSet α] {s : Set (WithBot α)}, ⊥ ∈ s → sInf s = ⊥
theorem WithTop.sSup_of_top_mem E0 #
∀ {α : Type u_1} [inst : LE α] [inst_1 : SupSet α] {s : Set (WithTop α)}, ⊤ ∈ s → sSup s = ⊤
theorem WithBot.sInf_singleton_bot E1 #
∀ {α : Type u_1} [inst : LE α] [inst_1 : InfSet α], sInf {⊥} = ⊥
theorem WithTop.sSup_singleton_top E1 #
∀ {α : Type u_1} [inst : LE α] [inst_1 : SupSet α], sSup {⊤} = ⊤
theorem WithTop.sSup_of_not_bddAbove E1 #
∀ {α : Type u_1} [inst : LE α] [inst_1 : SupSet α] {s : Set (WithTop α)}, ¬BddAbove (WithTop.some ⁻¹' s) → sSup s = ⊤
theorem WithBot.sInf_of_not_bddBelow E1 #
∀ {α : Type u_1} [inst : LE α] [inst_1 : InfSet α] {s : Set (WithBot α)}, ¬BddBelow (WithBot.some ⁻¹' s) → sInf s = ⊥
theorem WithTop.sInf_of_not_bddBelow E0 #
∀ {α : Type u_1} [inst : LE α] [inst_1 : InfSet α] {s : Set (WithTop α)}, ¬BddBelow s → sInf s = ⊤
theorem WithBot.sSup_of_not_bddAbove E0 #
∀ {α : Type u_1} [inst : LE α] [inst_1 : SupSet α] {s : Set (WithBot α)}, ¬BddAbove s → sSup s = ⊥
theorem WithBot.coe_sInf' E0 #
∀ {α : Type u_1} [inst : LE α] [inst_1 : InfSet α] {s : Set α}, BddBelow s → ↑(sInf s) = sInf ((fun a ↦ ↑a) '' s)
theorem WithTop.coe_sSup' E0 #
∀ {α : Type u_1} [inst : LE α] [inst_1 : SupSet α] {s : Set α}, BddAbove s → ↑(sSup s) = sSup ((fun a ↦ ↑a) '' s)
theorem WithBot.upperBounds_preimage_coe E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set (WithBot α)},
upperBounds (WithBot.some ⁻¹' s) = WithBot.some ⁻¹' upperBounds s
theorem WithTop.lowerBounds_preimage_coe E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set (WithTop α)},
lowerBounds (WithTop.some ⁻¹' s) = WithTop.some ⁻¹' lowerBounds s
theorem WithTop.bddBelow_preimage_coe E0 #
∀ {α : Type u_1} [inst : Preorder α] [Nonempty α] {s : Set (WithTop α)}, BddBelow (WithTop.some ⁻¹' s) ↔ BddBelow s
theorem WithBot.bddAbove_preimage_coe E0 #
∀ {α : Type u_1} [inst : Preorder α] [Nonempty α] {s : Set (WithBot α)}, BddAbove (WithBot.some ⁻¹' s) ↔ BddAbove s
theorem WithBot.isLUB_coe_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set (WithBot α)} {a : α}, IsLUB s ↑a ↔ ¬s ⊆ {⊥} ∧ IsLUB (WithBot.some ⁻¹' s) a
theorem WithTop.isGLB_coe_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set (WithTop α)} {a : α}, IsGLB s ↑a ↔ ¬s ⊆ {⊤} ∧ IsGLB (WithTop.some ⁻¹' s) a
theorem WithTop.isLUB_coe_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set (WithTop α)} {a : α}, IsLUB s ↑a ↔ ⊤ ∉ s ∧ IsLUB (WithTop.some ⁻¹' s) a
theorem WithBot.isGLB_coe_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set (WithBot α)} {a : α}, IsGLB s ↑a ↔ ⊥ ∉ s ∧ IsGLB (WithBot.some ⁻¹' s) a
theorem WithTop.isGLB_top_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set (WithTop α)}, IsGLB s ⊤ ↔ s ⊆ {⊤}
theorem WithBot.isLUB_bot_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set (WithBot α)}, IsLUB s ⊥ ↔ s ⊆ {⊥}
theorem WithBot.isGLB_bot_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set (WithBot α)}, IsGLB s ⊥ ↔ ⊥ ∈ s ∨ ¬BddBelow (WithBot.some ⁻¹' s)
theorem WithTop.isLUB_top_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set (WithTop α)}, IsLUB s ⊤ ↔ ⊤ ∈ s ∨ ¬BddAbove (WithTop.some ⁻¹' s)
instance WithBot.instOrderInfSet E0 #
{α : Type u_1} → [inst : Preorder α] → [OrderInfSet α] → OrderInfSet (WithBot α)
instance WithTop.instOrderSupSet E0 #
{α : Type u_1} → [inst : Preorder α] → [OrderSupSet α] → OrderSupSet (WithTop α)
instance WithTop.instOrderInfSet E0 #
{α : Type u_1} → [inst : Preorder α] → [OrderInfSet α] → OrderInfSet (WithTop α)
instance WithBot.instOrderSupSet E0 #
{α : Type u_1} → [inst : Preorder α] → [OrderSupSet α] → OrderSupSet (WithBot α)
theorem WithTop.coe_sInf' E0 #
∀ {α : Type u_1} [inst : Preorder α] [inst_1 : InfSet α] {s : Set α},
s.Nonempty → BddBelow s → ↑(sInf s) = sInf ((fun a ↦ ↑a) '' s)
theorem WithBot.coe_sSup' E0 #
∀ {α : Type u_1} [inst : Preorder α] [inst_1 : SupSet α] {s : Set α},
s.Nonempty → BddAbove s → ↑(sSup s) = sSup ((fun a ↦ ↑a) '' s)
theorem WithTop.iInf_empty E1 #
∀ {α : Type u_1} {ι : Sort u_4} [inst : Preorder α] [IsEmpty ι] [inst_2 : InfSet α] (f : ι → WithTop α), ⨅ i, f i = ⊤
theorem WithBot.iSup_empty E1 #
∀ {α : Type u_1} {ι : Sort u_4} [inst : Preorder α] [IsEmpty ι] [inst_2 : SupSet α] (f : ι → WithBot α), ⨆ i, f i = ⊥
theorem WithTop.coe_iInf E0 #
∀ {α : Type u_1} {ι : Sort u_4} [inst : Preorder α] [Nonempty ι] [inst_2 : InfSet α] {f : ι → α},
BddBelow (Set.range f) → ↑(⨅ i, f i) = ⨅ i, ↑(f i)
theorem WithBot.coe_iSup E0 #
∀ {α : Type u_1} {ι : Sort u_4} [inst : Preorder α] [Nonempty ι] [inst_2 : SupSet α] {f : ι → α},
BddAbove (Set.range f) → ↑(⨆ i, f i) = ⨆ i, ↑(f i)
theorem WithBot.coe_iInf E0 #
∀ {α : Type u_1} {ι : Sort u_4} [inst : Preorder α] [inst_1 : InfSet α] (f : ι → α),
BddBelow (Set.range f) → ↑(⨅ i, f i) = ⨅ i, ↑(f i)
theorem WithTop.coe_iSup E0 #
∀ {α : Type u_1} {ι : Sort u_4} [inst : Preorder α] [inst_1 : SupSet α] (f : ι → α),
BddAbove (Set.range f) → ↑(⨆ i, f i) = ⨆ i, ↑(f i)
theorem WithTop.isLUB_sSup' E1 #
∀ {β : Type u_5} [inst : ConditionallyCompleteLattice β] {s : Set (WithTop β)}, s.Nonempty → IsLUB s (sSup s)
The sSup of a non-empty set is its least upper bound for a conditionally
complete lattice with a top.
theorem WithBot.isGLB_sInf' E1 #
∀ {β : Type u_5} [inst : ConditionallyCompleteLattice β] {s : Set (WithBot β)}, s.Nonempty → IsGLB s (sInf s)
theorem WithTop.isLUB_sSup E1 #
∀ {α : Type u_1} [inst : ConditionallyCompleteLinearOrderBot α] (s : Set (WithTop α)), IsLUB s (sSup s)
theorem WithTop.isGLB_sInf' E1 #
∀ {β : Type u_5} [inst : ConditionallyCompleteLattice β] {s : Set (WithTop β)}, BddBelow s → IsGLB s (sInf s)
The sInf of a bounded-below set is its greatest lower bound for a conditionally
complete lattice with a top.
theorem WithBot.isLUB_sSup' E1 #
∀ {β : Type u_5} [inst : ConditionallyCompleteLattice β] {s : Set (WithBot β)}, BddAbove s → IsLUB s (sSup s)
theorem WithTop.isGLB_sInf E1 #
∀ {α : Type u_1} [inst : ConditionallyCompleteLinearOrderBot α] (s : Set (WithTop α)), IsGLB s (sInf s)
instance WithTop.instCompleteLinearOrder E0 #
{α : Type u_1} → [ConditionallyCompleteLinearOrderBot α] → CompleteLinearOrder (WithTop α)
theorem WithTop.coe_sSup E0 #
∀ {α : Type u_1} [inst : ConditionallyCompleteLinearOrderBot α] {s : Set α}, BddAbove s → ↑(sSup s) = ⨆ a ∈ s, ↑a
A version of WithTop.coe_sSup' with a more convenient but less general statement.
theorem WithTop.coe_sInf E0 #
∀ {α : Type u_1} [inst : ConditionallyCompleteLinearOrderBot α] {s : Set α}, s.Nonempty → ↑(sInf s) = ⨅ a ∈ s, ↑a
A version of WithTop.coe_sInf' with a more convenient but less general statement.
instance WithTop.conditionallyCompleteLattice E0 #
{α : Type u_5} → [ConditionallyCompleteLattice α] → ConditionallyCompleteLattice (WithTop α)
Adding a top element to a conditionally complete lattice gives a conditionally complete lattice
instance WithBot.conditionallyCompleteLattice E0 #
{α : Type u_5} → [ConditionallyCompleteLattice α] → ConditionallyCompleteLattice (WithBot α)
Adding a bottom element to a conditionally complete lattice gives a conditionally complete lattice
instance instCompleteLatticeWithBot E0 #
{α : Type u_1} → [CompleteLattice α] → CompleteLattice (WithBot α)
instance instCompleteLatticeWithTop E0 #
{α : Type u_1} → [CompleteLattice α] → CompleteLattice (WithTop α)
instance instCompleteLinearOrderWithBot E0 #
{α : Type u_1} → [CompleteLinearOrder α] → CompleteLinearOrder (WithBot α)
instance instConditionallyCompleteLinearOrderWithTop E0 #
{α : Type u_1} → [ConditionallyCompleteLinearOrder α] → ConditionallyCompleteLinearOrder (WithTop α)
instance instConditionallyCompleteLinearOrderBotWithBotOfConditionallyCompleteLinearOrder E0 #
{α : Type u_1} → [ConditionallyCompleteLinearOrder α] → ConditionallyCompleteLinearOrderBot (WithBot α)
instance WithBot.WithTop.completeLattice E0 #
{α : Type u_5} → [ConditionallyCompleteLattice α] → CompleteLattice (WithBot (WithTop α))
instance WithTop.WithBot.completeLattice E0 #
{α : Type u_5} → [ConditionallyCompleteLattice α] → CompleteLattice (WithTop (WithBot α))
instance WithBot.WithTop.completeLinearOrder E0 #
{α : Type u_5} → [ConditionallyCompleteLinearOrder α] → CompleteLinearOrder (WithBot (WithTop α))
theorem WithBot.coe_biSup E0 #
∀ {ι : Type u_5} {s : Set ι},
s.Nonempty → ∀ {α : Type u_6} [inst : CompleteLattice α] (f : ι → α), ↑(⨆ i ∈ s, f i) = ⨆ i ∈ s, ↑(f i)
theorem WithTop.coe_biInf E0 #
∀ {ι : Type u_5} {s : Set ι},
s.Nonempty → ∀ {α : Type u_6} [inst : CompleteLattice α] (f : ι → α), ↑(⨅ i ∈ s, f i) = ⨅ i ∈ s, ↑(f i)
theorem WithBot.coe_biInf E0 #
∀ {ι : Type u_5} {s : Set ι} {α : Type u_6} [inst : CompleteLattice α] (f : ι → α), ↑(⨅ i ∈ s, f i) = ⨅ i ∈ s, ↑(f i)
theorem WithTop.coe_biSup E0 #
∀ {ι : Type u_5} {s : Set ι} {α : Type u_6} [inst : CompleteLattice α] (f : ι → α), ↑(⨆ i ∈ s, f i) = ⨆ i ∈ s, ↑(f i)
theorem WithTop.iSup_coe_eq_top E1 #
∀ {α : Type u_1} {ι : Sort u_4} [inst : ConditionallyCompleteLinearOrderBot α] {f : ι → α},
⨆ x, ↑(f x) = ⊤ ↔ ¬BddAbove (Set.range f)
theorem WithTop.iSup_coe_lt_top E1 #
∀ {α : Type u_1} {ι : Sort u_4} [inst : ConditionallyCompleteLinearOrderBot α] {f : ι → α},
⨆ x, ↑(f x) < ⊤ ↔ BddAbove (Set.range f)
theorem WithTop.iInf_coe_eq_top E1 #
∀ {α : Type u_1} {ι : Sort u_4} [inst : ConditionallyCompleteLinearOrderBot α] {f : ι → α}, ⨅ x, ↑(f x) = ⊤ ↔ IsEmpty ι
theorem WithTop.iInf_coe_lt_top E1 #
∀ {α : Type u_1} {ι : Sort u_4} [inst : ConditionallyCompleteLinearOrderBot α] {f : ι → α}, ⨅ i, ↑(f i) < ⊤ ↔ Nonempty ι
Deprecated aliases
| Name | New name | Since |
|---|---|---|
WithBot.ciSup_empty | WithBot.iSup_empty | 2026-05-04 |
WithBot.sInf_empty | sInf_empty | 2026-10-27 |
WithTop.sSup_empty | sSup_empty | 2026-10-27 |