The areas / V04. Order and lattices
Mathlib.Order.Cofinal
35 declarations and 1 deprecated aliases. Mathlib docs · Source
Cofinal sets
A set s in an ordered type α is cofinal when for every a : α there exists an element of s
greater or equal to it. This file provides a basic API for the IsCofinal predicate.
For the cofinality of a set as a cardinal, see Mathlib/SetTheory/Cardinal/Cofinality/Basic.lean.
TODO
- Deprecate
Order.Cofinalin favor of this predicate.
theorem IsCofinal.of_isEmpty E1 #
∀ {α : Type u_1} [inst : LE α] [IsEmpty α] {s : Set α}, IsCofinal s
theorem isCofinal_empty_iff E0 #
∀ {α : Type u_1} [inst : LE α], IsCofinal ∅ ↔ IsEmpty α
theorem IsCofinal.nonempty E1 #
∀ {α : Type u_1} [inst : LE α] [Nonempty α] {s : Set α}, IsCofinal s → s.Nonempty
theorem isCofinal_singleton_iff E0 #
∀ {α : Type u_1} [inst : LE α] {x : α}, IsCofinal {x} ↔ IsTop x
theorem IsCofinal.singleton_top E1 #
∀ {α : Type u_1} [inst : LE α] [inst_1 : OrderTop α], IsCofinal {⊤}
theorem IsCofinal.mono E1 #
∀ {α : Type u_1} [inst : LE α] {s t : Set α}, s ⊆ t → IsCofinal s → IsCofinal t
theorem IsCofinal.univ E0 #
∀ {α : Type u_1} [inst : Preorder α], IsCofinal Set.univ
instance instInhabitedSubtypeSetIsCofinal E0 #
{α : Type u_1} → [inst : Preorder α] → Inhabited { s // IsCofinal s }
theorem IsCofinal.image E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : α → β} {s : Set α},
IsCofinal s → Monotone f → IsCofinal (Set.range f) → IsCofinal (f '' s)
theorem IsCofinal.trans E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {t : Set ↑s}, IsCofinal s → IsCofinal t → IsCofinal (Subtype.val '' t)
A cofinal subset of a cofinal subset is cofinal.
theorem GaloisConnection.isCofinal_range E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : β → α} {g : α → β},
GaloisConnection f g → IsCofinal (Set.range g)
theorem GaloisConnection.map_isCofinal E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : β → α} {g : α → β},
GaloisConnection f g → ∀ {s : Set α}, IsCofinal s → IsCofinal (g '' s)
theorem OrderIso.map_isCofinal E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] (e : α ≃o β) {s : Set α},
IsCofinal s → IsCofinal (⇑e '' s)
theorem OrderIso.map_isCofinal_iff E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] (e : α ≃o β) {s : Set α},
IsCofinal (⇑e '' s) ↔ IsCofinal s
theorem isCofinal_iff_iUnion_Iic_eq_univ E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, IsCofinal s ↔ ⋃ i ∈ s, Set.Iic i = Set.univ
theorem isCofinal_iff_iUnion_Iio_eq_univ E1 #
∀ {α : Type u_1} [inst : Preorder α] [NoMaxOrder α] {s : Set α}, IsCofinal s ↔ ⋃ i ∈ s, Set.Iio i = Set.univ
theorem not_isCofinal_Iio E0 #
∀ {α : Type u_1} [inst : Preorder α] (x : α), ¬IsCofinal (Set.Iio x)
theorem IsCofinal.mem_of_isMax E0 #
∀ {α : Type u_1} [inst : PartialOrder α] {s : Set α} {a : α}, IsMax a → IsCofinal s → a ∈ s
theorem IsCofinal.top_mem E1 #
∀ {α : Type u_1} [inst : PartialOrder α] [inst_1 : OrderTop α] {s : Set α}, IsCofinal s → ⊤ ∈ s
theorem isCofinal_iff_top_mem E0 #
∀ {α : Type u_1} [inst : PartialOrder α] [inst_1 : OrderTop α] {s : Set α}, IsCofinal s ↔ ⊤ ∈ s
theorem IsCofinal.inter_of_isUpperSet_left E1 #
∀ {α : Type u_1} [inst : PartialOrder α] [IsDirectedOrder α] {s t : Set α},
IsCofinal s → IsUpperSet t → t.Nonempty → IsCofinal (t ∩ s)
theorem IsCofinal.inter_of_isUpperSet_right E1 #
∀ {α : Type u_1} [inst : PartialOrder α] [IsDirectedOrder α] {s t : Set α},
IsCofinal s → IsUpperSet t → t.Nonempty → IsCofinal (s ∩ t)
theorem IsUpperSet.isCofinal E1 #
∀ {α : Type u_1} [inst : PartialOrder α] [IsDirectedOrder α] {s : Set α}, IsUpperSet s → s.Nonempty → IsCofinal s
theorem IsCofinal.Ici E0 #
∀ {α : Type u_1} [inst : PartialOrder α] [IsDirectedOrder α] (x : α), IsCofinal (Set.Ici x)
theorem IsCofinal.Ioi E0 #
∀ {α : Type u_1} [inst : PartialOrder α] [IsDirectedOrder α] [NoMaxOrder α] (x : α), IsCofinal (Set.Ioi x)
theorem not_isCofinal_iff E0 #
∀ {α : Type u_1} [inst : LinearOrder α] {s : Set α}, ¬IsCofinal s ↔ ∃ x, ∀ y ∈ s, y < x
theorem BddAbove.of_not_isCofinal E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {s : Set α}, ¬IsCofinal s → BddAbove s
theorem IsCofinal.of_not_bddAbove E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {s : Set α}, ¬BddAbove s → IsCofinal s
theorem not_isCofinal_iff_bddAbove E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [NoMaxOrder α] {s : Set α}, ¬IsCofinal s ↔ BddAbove s
In a linear order with no maximum, cofinal sets are the same as unbounded sets.
theorem BddAbove.not_isCofinal E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [NoMaxOrder α] {s : Set α}, BddAbove s → ¬IsCofinal s
Alias of the reverse direction of not_isCofinal_iff_bddAbove.
In a linear order with no maximum, cofinal sets are the same as unbounded sets.
theorem not_bddAbove_iff_isCofinal E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [NoMaxOrder α] {s : Set α}, ¬BddAbove s ↔ IsCofinal s
In a linear order with no maximum, cofinal sets are the same as unbounded sets.
theorem IsCofinal.not_bddAbove E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [NoMaxOrder α] {s : Set α}, IsCofinal s → ¬BddAbove s
Alias of the reverse direction of not_bddAbove_iff_isCofinal.
In a linear order with no maximum, cofinal sets are the same as unbounded sets.
theorem IsCofinal.noMaxOrder E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [NoMaxOrder α] {s : Set α}, IsCofinal s → NoMaxOrder ↑s
theorem isCofinal_setOfPred_imp_lt E1 #
∀ {α : Type u_1} [inst : LinearOrder α] (r : α → α → Prop) [h : WellFounded r], IsCofinal {a | ∀ (b : α), r b a → b < a}
The set of "records" (the smallest inputs yielding the highest values) with respect to a
well-ordering of α is a cofinal set.
theorem isCofinal_range_of_strictMono E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [WellFoundedLT α] {f : α → α}, StrictMono f → IsCofinal (Set.range f)
Deprecated aliases
| Name | New name | Since |
|---|---|---|
isCofinal_setOf_imp_lt | isCofinal_setOfPred_imp_lt | 2026-07-09 |