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

78 declarations and 2 deprecated aliases. Mathlib docs · Source

Compactness properties for complete lattices

For complete lattices, there are numerous equivalent ways to express the fact that the relation > is well-founded. In this file we define three especially-useful characterisations and provide proofs that they are indeed equivalent to well-foundedness.

Main definitions

  • CompleteLattice.IsSupClosedCompact
  • CompleteLattice.IsSupFiniteCompact
  • IsCompactElement
  • IsCompactlyGenerated

Main results

The main result is that the following four conditions are equivalent for a complete lattice:

  • well_founded (>)
  • CompleteLattice.IsSupClosedCompact
  • CompleteLattice.IsSupFiniteCompact
  • ∀ k, IsCompactElement k

This is demonstrated by means of the following four lemmas:

  • CompleteLattice.WellFounded.isSupFiniteCompact
  • CompleteLattice.IsSupFiniteCompact.isSupClosedCompact
  • CompleteLattice.IsSupClosedCompact.wellFounded
  • CompleteLattice.isSupFiniteCompact_iff_all_elements_compact

We also show well-founded lattices are compactly generated (CompleteLattice.isCompactlyGenerated_of_wellFounded).

References

  • [G. Călugăreanu, Lattice Concepts of Module Theory][calugareanu]

Tags

complete lattice, well-founded, compact

Now we will prove that a compactly generated modular atomistic lattice is a complemented lattice. Most explicitly, every element is the complement of a supremum of independent atoms.

def IsCompactElement E3 #

{α : Type u_2} → [Preorder α] → α → Prop

An element k is compact if any directed set with LUB (least upper bound) above k has already got above k at some point in the set. Such an element is also called "finite" or "S-compact".

theorem isCompactElement_congr E1 #

∀ {α : Type u_2} [inst : Preorder α] {a b : α}, a ≤ b → b ≤ a → (IsCompactElement a ↔ IsCompactElement b)

theorem IsBot.isCompactElement E1 #

∀ {α : Type u_2} [inst : Preorder α] {a : α}, IsBot a → IsCompactElement a

theorem IsCompactElement.bot E0 #

∀ {α : Type u_2} [inst : Preorder α] [inst_1 : OrderBot α], IsCompactElement ⊥

theorem IsCompactElement.of_wellFoundedGT E0 #

∀ {α : Type u_2} [inst : Preorder α] (a : α) [WellFoundedGT α], IsCompactElement a

theorem IsCompactElement.sup E0 #

∀ {α : Type u_2} [inst : SemilatticeSup α] {a b : α}, IsCompactElement a → IsCompactElement b → IsCompactElement (a ⊔ b)

def IsSupClosedCompact E1 #

(α : Type u_4) → [CompleteLattice α] → Prop

A compactness property for a complete lattice is that any sup-closed non-empty subset contains its sSup.

def IsSupFiniteCompact E1 #

(α : Type u_4) → [CompleteLattice α] → Prop

A compactness property for a complete lattice is that any subset has a finite subset with the same sSup.

theorem isCompactElement_iff_le_of_directed_sSup_le E1 #

∀ {α : Type u_4} [inst : CompleteLattice α] (k : α),
  IsCompactElement k ↔ ∀ (s : Set α), s.Nonempty → DirectedOn (fun x1 x2 ↦ x1 ≤ x2) s → k ≤ sSup s → ∃ x ∈ s, k ≤ x

An element k is compact if and only if any directed set with sSup above k already got above k at some point in the set.

theorem IsCompactElement.exists_le_finsetSup_of_le_isLUB E1 #

∀ {α : Type u_5} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {k : α},
  IsCompactElement k → ∀ {s : Set α} {u : α}, IsLUB s u → k ≤ u → ∃ t, ↑t ⊆ s ∧ k ≤ t.sup id

theorem isCompactElement_iff_exists_le_finsetSup_of_le_isLUB E1 #

∀ {α : Type u_5} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {k : α},
  IsCompactElement k ↔ ∀ {s : Set α} {u : α}, IsLUB s u → k ≤ u → ∃ t, ↑t ⊆ s ∧ k ≤ t.sup id

If α has finite suprema, k : α is compact iff every set with LUB above k has a finite subset with Finset.sup above k.

theorem isCompactElement_iff_exists_le_sSup_of_le_sSup E1 #

∀ {α : Type u_4} [inst : CompleteLattice α] (k : α),
  IsCompactElement k ↔ ∀ (s : Set α), k ≤ sSup s → ∃ t, ↑t ⊆ s ∧ k ≤ t.sup id

An element k of is compact if any set with sSup above k has a finite subset with sSup above k.

theorem isCompactElement_iff_exists_le_iSup_of_le_iSup E1 #

∀ {α : Type u} [inst : CompleteLattice α] (k : α),
  IsCompactElement k ↔ ∀ (ι : Type u) (s : ι → α), k ≤ iSup s → ∃ t, k ≤ t.sup s

theorem IsCompactElement.exists_finset_of_le_iSup E1 #

∀ {α : Type u_4} [inst : CompleteLattice α] {k : α},
  IsCompactElement k → ∀ {ι : Type u_5} (f : ι → α), k ≤ ⨆ i, f i → ∃ s, k ≤ ⨆ i ∈ s, f i

theorem IsCompactElement.directed_sSup_lt_of_lt E1 #

∀ {α : Type u_5} [inst : CompleteLattice α] {k : α},
  IsCompactElement k → ∀ {s : Set α}, s.Nonempty → DirectedOn (fun x1 x2 ↦ x1 ≤ x2) s → (∀ x ∈ s, x < k) → sSup s < k

A compact element k has the property that any directed set lying strictly below k has its sSup strictly below k.

theorem isCompactElement_finsetSup E1 #

∀ {α : Type u_5} {β : Type u_6} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {f : β → α} (s : Finset β),
  (∀ x ∈ s, IsCompactElement (f x)) → IsCompactElement (s.sup f)

theorem IsCompactElement.iSup E1 #

∀ {ι : Sort u_3} {α : Type u_4} [inst : CompleteLattice α] {f : ι → α} [Finite ι],
  (∀ (i : ι), IsCompactElement (f i)) → IsCompactElement (⨆ i, f i)

theorem IsCompactElement.biSup E1 #

∀ {α : Type u_4} [inst : CompleteLattice α] {ι : Type u_5} {s : Set ι},
  s.Finite → ∀ {f : ι → α}, (∀ i ∈ s, IsCompactElement (f i)) → IsCompactElement (⨆ i ∈ s, f i)

theorem IsCompactElement.sSup E1 #

∀ {α : Type u_4} [inst : CompleteLattice α] {s : Set α},
  s.Finite → (∀ a ∈ s, IsCompactElement a) → IsCompactElement (sSup s)

theorem IsCompactElement.exists_finsetSup_eq_of_isLUB E1 #

∀ {α : Type u_5} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {a : α},
  IsCompactElement a → ∀ {s : Set α}, IsLUB s a → ∃ t, ↑t ⊆ s ∧ t.sup id = a

theorem WellFoundedGT.isSupFiniteCompact E1 #

∀ {α : Type u_4} [inst : CompleteLattice α] [WellFoundedGT α], IsSupFiniteCompact α

theorem IsSupFiniteCompact.isSupClosedCompact E1 #

∀ {α : Type u_4} [inst : CompleteLattice α], IsSupFiniteCompact α → IsSupClosedCompact α

theorem IsSupClosedCompact.wellFoundedGT E1 #

∀ {α : Type u_4} [inst : CompleteLattice α], IsSupClosedCompact α → WellFoundedGT α

theorem isSupFiniteCompact_iff_all_elements_compact E1 #

∀ {α : Type u_4} [inst : CompleteLattice α], IsSupFiniteCompact α ↔ ∀ (k : α), IsCompactElement k

theorem wellFoundedGT_characterisations E1 #

∀ {α : Type u_4} [inst : CompleteLattice α],
  [WellFoundedGT α, IsSupFiniteCompact α, IsSupClosedCompact α, ∀ (k : α), IsCompactElement k].TFAE

theorem wellFoundedGT_iff_isSupFiniteCompact E1 #

∀ {α : Type u_4} [inst : CompleteLattice α], WellFoundedGT α ↔ IsSupFiniteCompact α

theorem isSupFiniteCompact_iff_isSupClosedCompact E1 #

∀ {α : Type u_4} [inst : CompleteLattice α], IsSupFiniteCompact α ↔ IsSupClosedCompact α

theorem isSupClosedCompact_iff_wellFoundedGT E1 #

∀ {α : Type u_4} [inst : CompleteLattice α], IsSupClosedCompact α ↔ WellFoundedGT α

theorem IsSupFiniteCompact.wellFoundedGT E1 #

∀ {α : Type u_4} [inst : CompleteLattice α], IsSupFiniteCompact α → WellFoundedGT α

Alias of the reverse direction of wellFoundedGT_iff_isSupFiniteCompact.

theorem IsSupClosedCompact.isSupFiniteCompact E1 #

∀ {α : Type u_4} [inst : CompleteLattice α], IsSupClosedCompact α → IsSupFiniteCompact α

Alias of the reverse direction of isSupFiniteCompact_iff_isSupClosedCompact.

theorem WellFoundedGT.isSupClosedCompact E1 #

∀ {α : Type u_4} [inst : CompleteLattice α], WellFoundedGT α → IsSupClosedCompact α

Alias of the reverse direction of isSupClosedCompact_iff_wellFoundedGT.

theorem WellFoundedGT.finite_of_sSupIndep E1 #

∀ {α : Type u_4} [inst : CompleteLattice α] [WellFoundedGT α] {s : Set α}, sSupIndep s → s.Finite

theorem WellFoundedGT.finite_ne_bot_of_iSupIndep E1 #

∀ {α : Type u_4} [inst : CompleteLattice α] [WellFoundedGT α] {ι : Type u_5} {t : ι → α},
  iSupIndep t → {i | t i ≠ ⊥}.Finite

theorem WellFoundedGT.finite_of_iSupIndep E1 #

∀ {α : Type u_4} [inst : CompleteLattice α] [WellFoundedGT α] {ι : Type u_5} {t : ι → α},
  iSupIndep t → (∀ (i : ι), t i ≠ ⊥) → Finite ι

theorem WellFoundedLT.finite_of_sSupIndep E1 #

∀ {α : Type u_4} [inst : CompleteLattice α] [WellFoundedLT α] {s : Set α}, sSupIndep s → s.Finite

theorem WellFoundedLT.finite_ne_bot_of_iSupIndep E1 #

∀ {α : Type u_4} [inst : CompleteLattice α] [WellFoundedLT α] {ι : Type u_5} {t : ι → α},
  iSupIndep t → {i | t i ≠ ⊥}.Finite

theorem WellFoundedLT.finite_of_iSupIndep E1 #

∀ {α : Type u_4} [inst : CompleteLattice α] [WellFoundedLT α] {ι : Type u_5} {t : ι → α},
  iSupIndep t → (∀ (i : ι), t i ≠ ⊥) → Finite ι

class IsCompactlyGenerated E3 #

(α : Type u_3) → [Preorder α] → Prop

A complete lattice is said to be compactly generated if any element is the least upper bound of compact elements.

ctor IsCompactlyGenerated.mk E0 #

∀ {α : Type u_3} [inst : Preorder α],
  (∀ (a : α), ∃ s, (∀ x ∈ s, IsCompactElement x) ∧ IsLUB s a) → IsCompactlyGenerated α

theorem IsCompactlyGenerated.exists_isLUB E1 #

∀ {α : Type u_3} {inst : Preorder α} [self : IsCompactlyGenerated α] (a : α),
  ∃ s, (∀ x ∈ s, IsCompactElement x) ∧ IsLUB s a

In a compactly generated complete lattice, every element is the least upper bound of some set of compact elements.

theorem isLUB_setOfPred_le_and_isCompactElement E1 #

∀ {α : Type u_2} [inst : Preorder α] (a : α) [IsCompactlyGenerated α], IsLUB {x | x ≤ a ∧ IsCompactElement x} a

theorem le_iff_forall_isCompactElement E1 #

∀ {α : Type u_2} [inst : Preorder α] {a b : α} [IsCompactlyGenerated α],
  a ≤ b ↔ ∀ (x : α), IsCompactElement x → x ≤ a → x ≤ b

theorem IsCompactlyGenerated.of_wellFoundedGT E1 #

∀ {α : Type u_2} [inst : Preorder α] [WellFoundedGT α], IsCompactlyGenerated α

theorem IsCompactlyGenerated.exists_sSup_eq E0 #

∀ {α : Type u_2} [inst : CompleteLattice α] [IsCompactlyGenerated α] (a : α),
  ∃ s, (∀ x ∈ s, IsCompactElement x) ∧ sSup s = a

theorem sSup_compact_le_eq E0 #

∀ {α : Type u_2} [inst : CompleteLattice α] [IsCompactlyGenerated α] (b : α), sSup {c | IsCompactElement c ∧ c ≤ b} = b

theorem sSup_compact_eq_top E0 #

∀ {α : Type u_2} [inst : CompleteLattice α] [IsCompactlyGenerated α], sSup {a | IsCompactElement a} = ⊤

theorem DirectedOn.inf_sSup_eq E0 #

∀ {α : Type u_2} [inst : CompleteLattice α] [IsCompactlyGenerated α] {a : α} {s : Set α},
  DirectedOn (fun x1 x2 ↦ x1 ≤ x2) s → a ⊓ sSup s = ⨆ b ∈ s, a ⊓ b

This property is sometimes referred to as α being upper continuous.

theorem DirectedOn.sSup_inf_eq E0 #

∀ {α : Type u_2} [inst : CompleteLattice α] [IsCompactlyGenerated α] {a : α} {s : Set α},
  DirectedOn (fun x1 x2 ↦ x1 ≤ x2) s → sSup s ⊓ a = ⨆ b ∈ s, b ⊓ a

This property is sometimes referred to as α being upper continuous.

theorem Directed.inf_iSup_eq E0 #

∀ {ι : Sort u_1} {α : Type u_2} {f : ι → α} [inst : CompleteLattice α] [IsCompactlyGenerated α] {a : α},
  Directed (fun x1 x2 ↦ x1 ≤ x2) f → a ⊓ ⨆ i, f i = ⨆ i, a ⊓ f i

theorem Directed.iSup_inf_eq E0 #

∀ {ι : Sort u_1} {α : Type u_2} {f : ι → α} [inst : CompleteLattice α] [IsCompactlyGenerated α] {a : α},
  Directed (fun x1 x2 ↦ x1 ≤ x2) f → (⨆ i, f i) ⊓ a = ⨆ i, f i ⊓ a

theorem DirectedOn.disjoint_sSup_right E1 #

∀ {α : Type u_2} [inst : CompleteLattice α] [IsCompactlyGenerated α] {a : α} {s : Set α},
  DirectedOn (fun x1 x2 ↦ x1 ≤ x2) s → (Disjoint a (sSup s) ↔ ∀ ⦃b : α⦄, b ∈ s → Disjoint a b)

theorem DirectedOn.disjoint_sSup_left E1 #

∀ {α : Type u_2} [inst : CompleteLattice α] [IsCompactlyGenerated α] {a : α} {s : Set α},
  DirectedOn (fun x1 x2 ↦ x1 ≤ x2) s → (Disjoint (sSup s) a ↔ ∀ ⦃b : α⦄, b ∈ s → Disjoint b a)

theorem Directed.disjoint_iSup_right E1 #

∀ {ι : Sort u_1} {α : Type u_2} {f : ι → α} [inst : CompleteLattice α] [IsCompactlyGenerated α] {a : α},
  Directed (fun x1 x2 ↦ x1 ≤ x2) f → (Disjoint a (⨆ i, f i) ↔ ∀ (i : ι), Disjoint a (f i))

theorem Directed.disjoint_iSup_left E1 #

∀ {ι : Sort u_1} {α : Type u_2} {f : ι → α} [inst : CompleteLattice α] [IsCompactlyGenerated α] {a : α},
  Directed (fun x1 x2 ↦ x1 ≤ x2) f → (Disjoint (⨆ i, f i) a ↔ ∀ (i : ι), Disjoint (f i) a)

theorem inf_sSup_eq_iSup_inf_sup_finset E1 #

∀ {α : Type u_2} [inst : CompleteLattice α] [IsCompactlyGenerated α] {a : α} {s : Set α},
  a ⊓ sSup s = ⨆ t, ⨆ (_ : ↑t ⊆ s), a ⊓ t.sup id

This property is equivalent to α being upper continuous.

theorem sSupIndep_iff_finite E1 #

∀ {α : Type u_2} [inst : CompleteLattice α] [IsCompactlyGenerated α] {s : Set α},
  sSupIndep s ↔ ∀ (t : Finset α), ↑t ⊆ s → sSupIndep ↑t

theorem iSupIndep_iff_supIndep E1 #

∀ {α : Type u_2} [inst : CompleteLattice α] [IsCompactlyGenerated α] {ι : Type u_3} {f : ι → α},
  iSupIndep f ↔ ∀ (s : Finset ι), s.SupIndep f

theorem sSupIndep_iUnion_of_directed E1 #

∀ {α : Type u_2} [inst : CompleteLattice α] [IsCompactlyGenerated α] {η : Type u_3} {s : η → Set α},
  Directed (fun x1 x2 ↦ x1 ⊆ x2) s → (∀ (i : η), sSupIndep (s i)) → sSupIndep (⋃ i, s i)

theorem iSupIndep_sUnion_of_directed E1 #

∀ {α : Type u_2} [inst : CompleteLattice α] [IsCompactlyGenerated α] {s : Set (Set α)},
  DirectedOn (fun x1 x2 ↦ x1 ⊆ x2) s → (∀ a ∈ s, sSupIndep a) → sSupIndep (⋃₀ s)

theorem disjoint_biSup_of_finite_disjoint_biSup E1 #

∀ {α : Type u_2} [inst : CompleteLattice α] [IsCompactlyGenerated α] {ι : Type u_3} {f : ι → α} {s : Set ι} {a : α},
  (∀ t ⊆ s, t.Finite → Disjoint (⨆ i ∈ t, f i) a) → Disjoint (⨆ i ∈ s, f i) a

theorem iSupIndep.disjoint_biSup_biSup E1 #

∀ {α : Type u_2} [inst : CompleteLattice α] [IsCompactlyGenerated α] {ι : Type u_3} [IsModularLattice α] {f : ι → α}
  {s t : Set ι}, iSupIndep f → Disjoint s t → Disjoint (⨆ i ∈ s, f i) (⨆ i ∈ t, f i)

theorem IsAtom.isCompactElement E1 #

∀ {α : Type u_2} [inst : CompleteLattice α] [IsCompactlyGenerated α] {a : α}, IsAtom a → IsCompactElement a

theorem IsCompactElement.exists_finite_isAtom E1 #

∀ {α : Type u_2} [inst : CompleteLattice α] [IsAtomistic α] {a : α},
  IsCompactElement a → ∃ s, s.Finite ∧ (∀ b ∈ s, IsAtom b) ∧ sSup s = a

theorem isCompactElement_iff_exists_finite_isAtom E1 #

∀ {α : Type u_2} [inst : CompleteLattice α] [IsAtomistic α] {a : α} [IsCompactlyGenerated α],
  IsCompactElement a ↔ ∃ s, s.Finite ∧ (∀ b ∈ s, IsAtom b) ∧ sSup s = a

theorem CompleteLattice.Iic_coatomic_of_compact_element E1 #

∀ {α : Type u_2} [inst : CompleteLattice α] {k : α}, IsCompactElement k → IsCoatomic ↑(Set.Iic k)

A compact element k has the property that any b < k lies below a "maximal element below k", which is to say [⊥, k] is coatomic.

theorem CompleteLattice.coatomic_of_top_compact E1 #

∀ {α : Type u_2} [inst : CompleteLattice α], IsCompactElement ⊤ → IsCoatomic α

theorem iSupIndep.iInf E1 #

∀ {α : Type u_2} [inst : CompleteLattice α] [IsModularLattice α] [IsCompactlyGenerated α] {ι : Type u_3}
  {κ : ι → Type u_4} (f : (i : ι) → κ i → α), (∀ (i : ι), iSupIndep (f i)) → iSupIndep fun k ↦ ⨅ i, f i (k i)

If each family f i is iSupIndep, then the family of pointwise infima k ↦ ⨅ i, f i (k i) is also iSupIndep.

instance isAtomic_of_complementedLattice E0 #

∀ {α : Type u_2} [inst : CompleteLattice α] [IsModularLattice α] [IsCompactlyGenerated α] [ComplementedLattice α],
  IsAtomic α

instance isAtomistic_of_complementedLattice E0 #

∀ {α : Type u_2} [inst : CompleteLattice α] [IsModularLattice α] [IsCompactlyGenerated α] [ComplementedLattice α],
  IsAtomistic α

See [Lemma 5.1][calugareanu].

theorem exists_sSupIndep_disjoint_sSup_atoms E1 #

∀ {α : Type u_2} [inst : CompleteLattice α] [IsModularLattice α] [IsCompactlyGenerated α] (b c : α),
  b ≤ c →
    sSup {a | a ≤ c ∧ IsAtom a} = c →
      ∃ s, sSupIndep s ∧ Disjoint b (sSup s) ∧ b ⊔ sSup s = c ∧ ∀ ⦃a : α⦄, a ∈ s → IsAtom a

In an atomic lattice, every element b has a complement of the form sSup s relative to a given element c, where each element of s is an atom. See also complementedLattice_of_sSup_atoms_eq_top.

theorem exists_sSupIndep_isCompl_sSup_atoms E1 #

∀ {α : Type u_2} [inst : CompleteLattice α] [IsModularLattice α] [IsCompactlyGenerated α],
  sSup {a | IsAtom a} = ⊤ → ∀ (b : α), ∃ s, sSupIndep s ∧ IsCompl b (sSup s) ∧ ∀ ⦃a : α⦄, a ∈ s → IsAtom a

In an atomic lattice, every element b has a complement of the form sSup s, where each element of s is an atom. See also complementedLattice_of_sSup_atoms_eq_top.

theorem exists_sSupIndep_of_sSup_atoms E1 #

∀ {α : Type u_2} [inst : CompleteLattice α] [IsModularLattice α] [IsCompactlyGenerated α] (b : α),
  sSup {a | a ≤ b ∧ IsAtom a} = b → ∃ s, sSupIndep s ∧ sSup s = b ∧ ∀ ⦃a : α⦄, a ∈ s → IsAtom a

theorem exists_sSupIndep_of_sSup_atoms_eq_top E1 #

∀ {α : Type u_2} [inst : CompleteLattice α] [IsModularLattice α] [IsCompactlyGenerated α],
  sSup {a | IsAtom a} = ⊤ → ∃ s, sSupIndep s ∧ sSup s = ⊤ ∧ ∀ ⦃a : α⦄, a ∈ s → IsAtom a

theorem complementedLattice_of_sSup_atoms_eq_top E1 #

∀ {α : Type u_2} [inst : CompleteLattice α] [IsModularLattice α] [IsCompactlyGenerated α],
  sSup {a | IsAtom a} = ⊤ → ComplementedLattice α

See [Theorem 6.6][calugareanu].

theorem complementedLattice_of_isAtomistic E1 #

∀ {α : Type u_2} [inst : CompleteLattice α] [IsModularLattice α] [IsCompactlyGenerated α] [IsAtomistic α],
  ComplementedLattice α

See [Theorem 6.6][calugareanu].

theorem complementedLattice_iff_isAtomistic E1 #

∀ {α : Type u_2} [inst : CompleteLattice α] [IsModularLattice α] [IsCompactlyGenerated α],
  ComplementedLattice α ↔ IsAtomistic α

theorem IsAtom.isCompactElement_of_frame E1 #

∀ {α : Type u_3} [inst : Order.Frame α] {x : α}, IsAtom x → IsCompactElement x

instance instIsCompactlyGeneratedOfIsAtomistic E0 #

∀ {α : Type u_3} [inst : Order.Frame α] [IsAtomistic α], IsCompactlyGenerated α

Deprecated aliases

NameNew nameSince
CompleteLattice.isCompactlyGenerated_of_wellFoundedGTIsCompactlyGenerated.of_wellFoundedGT2026-09-17
le_iff_compact_le_imple_iff_forall_isCompactElement2026-09-17