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 / V13. General topology

Mathlib.Topology.Compactness.CountablyCompact

46 declarations and 1 deprecated aliases. Mathlib docs · Source

Countably compact sets

A set A in a topological space is countably compact if every countably generated proper filter contained in A has a cluster point in A. Equivalently, every sequence in A has a cluster point in A, and every countable open cover of A admits a finite subcover.

Main definitions

  • IsCountablyCompact A: A is countably compact (every countably generated proper filter contained in A has a cluster point in A).
  • CountablyCompactSpace E: the whole space E is countably compact.

Main results

  • IsCountablyCompact.elim_directed_cover: for every countable open directed cover of a countably compact set, some single element of the cover contains the set.
  • IsCountablyCompact.elim_finite_subcover: a countably compact set has a finite subcover for any countable open cover.
  • isCountablyCompact_iff_countable_open_cover: countable compactness is equivalent to the finite subcover property for countable covers.
  • IsCompact.isCountablyCompact: compact sets are countably compact.
  • IsSeqCompact.isCountablyCompact: sequentially compact sets are countably compact.
  • IsCountablyCompact.isSeqCompact: in a first-countable space, countable compactness implies sequential compactness.
  • IsCountablyCompact.exists_accPt_of_infinite: every infinite subset of a countably compact set has an accumulation point in the set.
  • isCountablyCompact_iff_infinite_subset_has_accPt: in a T₁ space, countable compactness is equivalent to the Bolzano–Weierstrass property (every infinite subset has an accumulation point).
  • IsLindelof.isCompact: a countably compact Lindelöf set is compact.
  • IsCountablyCompact.image: the continuous image of a countably compact set is countably compact.

References

  • [Engelking, General Topology][engelking1989]

def IsCountablyCompact E1 #

{E : Type u_2} → [TopologicalSpace E] → Set E → Prop

A set A is countably compact if every countably generated proper filter f with f ≤ 𝓟 A has a cluster point in A.

class CountablyCompactSpace E1 #

(E : Type u_4) → [TopologicalSpace E] → Prop

A topological space is countably compact if every countably generated proper filter has a cluster point.

ctor CountablyCompactSpace.mk E0 #

∀ {E : Type u_4} [inst : TopologicalSpace E], IsCountablyCompact Set.univ → CountablyCompactSpace E

theorem CountablyCompactSpace.isCountablyCompact_univ E1 #

∀ {E : Type u_4} {inst : TopologicalSpace E} [self : CountablyCompactSpace E], IsCountablyCompact Set.univ

theorem isCountablyCompact_empty E1 #

∀ {E : Type u_2} [inst : TopologicalSpace E], IsCountablyCompact ∅

The empty set is countably compact.

theorem isCountablyCompact_singleton E1 #

∀ {E : Type u_2} [inst : TopologicalSpace E] {x : E}, IsCountablyCompact {x}

A singleton set is countably compact.

theorem IsCountablyCompact.of_isClosed_subset E1 #

∀ {E : Type u_2} [inst : TopologicalSpace E] {A B : Set E},
  IsCountablyCompact A → IsClosed B → B ⊆ A → IsCountablyCompact B

A closed subset of a countably compact set is countably compact.

theorem IsClosed.isCountablyCompact E1 #

∀ {E : Type u_2} [inst : TopologicalSpace E] {A : Set E} [CountablyCompactSpace E], IsClosed A → IsCountablyCompact A

A closed subset of a countably compact space is countably compact.

theorem isCountablyCompact_iff_seq_clusterPt E1 #

∀ {E : Type u_2} [inst : TopologicalSpace E] {A : Set E},
  IsCountablyCompact A ↔ ∀ (x : ℕ → E), (∀ᶠ (n : ℕ) in Filter.atTop, x n ∈ A) → ∃ a ∈ A, MapClusterPt a Filter.atTop x

A set is countably compact if and only if every sequence eventually in it has a cluster point in it.

theorem IsCountablyCompact.of_seq_clusterPt E1 #

∀ {E : Type u_2} [inst : TopologicalSpace E] {A : Set E},
  (∀ (x : ℕ → E), (∀ᶠ (n : ℕ) in Filter.atTop, x n ∈ A) → ∃ a ∈ A, MapClusterPt a Filter.atTop x) → IsCountablyCompact A

Alias of the reverse direction of isCountablyCompact_iff_seq_clusterPt.


A set is countably compact if and only if every sequence eventually in it has a cluster point in it.

theorem IsCountablyCompact.seq_clusterPt E1 #

∀ {E : Type u_2} [inst : TopologicalSpace E] {A : Set E},
  IsCountablyCompact A → ∀ (x : ℕ → E), (∀ᶠ (n : ℕ) in Filter.atTop, x n ∈ A) → ∃ a ∈ A, MapClusterPt a Filter.atTop x

Alias of the forward direction of isCountablyCompact_iff_seq_clusterPt.


A set is countably compact if and only if every sequence eventually in it has a cluster point in it.

theorem IsCountablyCompact.elim_directed_cover E3 #

∀ {ι : Type u_1} {E : Type u_2} [inst : TopologicalSpace E] {A : Set E} [Countable ι] [Nonempty ι],
  IsCountablyCompact A →
    ∀ (U : ι → Set E), (∀ (i : ι), IsOpen (U i)) → A ⊆ ⋃ i, U i → Directed (fun x1 x2 ↦ x1 ⊆ x2) U → ∃ i, A ⊆ U i

For every countable open directed cover of a countably compact set, there exists a single element of the cover which itself includes the set.

theorem IsCountablyCompact.elim_finite_subcover E3 #

∀ {ι : Type u_1} {E : Type u_2} [inst : TopologicalSpace E] {A : Set E},
  IsCountablyCompact A →
    ∀ [Countable ι] {U : ι → Set E}, (∀ (i : ι), IsOpen (U i)) → A ⊆ ⋃ i, U i → ∃ t, A ⊆ ⋃ i ∈ t, U i

A countably compact set has a finite subcover for any countable open cover.

theorem isCountablyCompact_iff_countable_open_cover E3 #

∀ {E : Type u_2} [inst : TopologicalSpace E] {A : Set E},
  IsCountablyCompact A ↔ ∀ (U : ℕ → Set E), (∀ (i : ℕ), IsOpen (U i)) → A ⊆ ⋃ i, U i → ∃ t, A ⊆ ⋃ i ∈ t, U i

A set is countably compact if and only if every countable open cover has a finite subcover.

theorem IsCountablyCompact.elim_finite_subcover_image E1 #

∀ {ι : Type u_1} {E : Type u_2} [inst : TopologicalSpace E] {A : Set E},
  IsCountablyCompact A →
    ∀ {b : Set ι},
      b.Countable → ∀ {U : ι → Set E}, (∀ i ∈ b, IsOpen (U i)) → A ⊆ ⋃ i ∈ b, U i → ∃ t ⊆ b, t.Finite ∧ A ⊆ ⋃ i ∈ t, U i

A countably compact set has a finite subcover for any countable open cover indexed by a subset.

theorem isCountablyCompact_iff_countable_open_cover' E1 #

∀ {E : Type u_2} [inst : TopologicalSpace E] {A : Set E},
  IsCountablyCompact A ↔ ∀ (U : ℕ → Set E), (∀ (i : ℕ), IsOpen (U i)) → A ⊆ ⋃ i, U i → ∃ t, t.Finite ∧ A ⊆ ⋃ i ∈ t, U i

Variant of isCountablyCompact_iff_countable_open_cover with Set ℕ instead of Finset ℕ.

theorem IsCompact.isCountablyCompact E3 #

∀ {E : Type u_2} [inst : TopologicalSpace E] {A : Set E}, IsCompact A → IsCountablyCompact A

A compact set is countably compact.

instance instCompactSpaceCountablyCompactSpace E0 #

∀ {X : Type u_4} [inst : TopologicalSpace X] [CompactSpace X], CountablyCompactSpace X

A compact space is countably compact.

theorem IsSeqCompact.isCountablyCompact E3 #

∀ {E : Type u_2} [inst : TopologicalSpace E] {A : Set E}, IsSeqCompact A → IsCountablyCompact A

A sequentially compact set is countably compact.

theorem IsCountablyCompact.image E3 #

∀ {E : Type u_2} {F : Type u_3} [inst : TopologicalSpace E] [inst_1 : TopologicalSpace F] {A : Set E},
  IsCountablyCompact A → ∀ {f : E → F}, Continuous f → IsCountablyCompact (f '' A)

The continuous image of a countably compact set is countably compact.

theorem Topology.IsInducing.isCountablyCompact_iff E0 #

∀ {E : Type u_2} {F : Type u_3} [inst : TopologicalSpace E] [inst_1 : TopologicalSpace F] {A : Set E} {f : E → F},
  Topology.IsInducing f → (IsCountablyCompact A ↔ IsCountablyCompact (f '' A))

If f : X → Y is an inducing map, the image f '' s of a set s is countably compact if and only if s is countably compact.

theorem Topology.IsEmbedding.isCountablyCompact_iff E0 #

∀ {E : Type u_2} {F : Type u_3} [inst : TopologicalSpace E] [inst_1 : TopologicalSpace F] {A : Set E} {f : E → F},
  Topology.IsEmbedding f → (IsCountablyCompact A ↔ IsCountablyCompact (f '' A))

If f : X → Y is an embedding, the image f '' s of a set s is countably compact if and only if s is countably compact.

theorem Subtype.isCountablyCompact_iff E0 #

∀ {E : Type u_2} [inst : TopologicalSpace E] {p : E → Prop} {A : Set { x // p x }},
  IsCountablyCompact A ↔ IsCountablyCompact (Subtype.val '' A)

theorem isCountablyCompact_iff_isCountablyCompact_univ E1 #

∀ {E : Type u_2} [inst : TopologicalSpace E] {A : Set E}, IsCountablyCompact A ↔ IsCountablyCompact Set.univ

theorem isCountablyCompact_univ_iff E0 #

∀ {E : Type u_2} [inst : TopologicalSpace E], IsCountablyCompact Set.univ ↔ CountablyCompactSpace E

theorem isCountablyCompact_iff_countablyCompactSpace E1 #

∀ {E : Type u_2} [inst : TopologicalSpace E] {A : Set E}, IsCountablyCompact A ↔ CountablyCompactSpace ↑A

instance instSeqCompactSpaceOfSequentialSpaceOfCountablyCompactSpace E0 #

∀ {E : Type u_2} [inst : TopologicalSpace E] [SequentialSpace E] [CountablyCompactSpace E], SeqCompactSpace E

If a sequential space is countably compact, then it is sequentially compact. We follow the proof in [kremsater1972sequential].

theorem Topology.IsInducing.isSeqCompact_iff E0 #

∀ {E : Type u_2} {F : Type u_3} [inst : TopologicalSpace E] [inst_1 : TopologicalSpace F] {A : Set E} {f : E → F},
  Topology.IsInducing f → (IsSeqCompact A ↔ IsSeqCompact (f '' A))

If f : X → Y is an inducing map, the image f '' s of a set s is sequentially compact if and only if s is sequentially compact.

theorem Subtype.isSeqCompact_iff E0 #

∀ {E : Type u_2} [inst : TopologicalSpace E] {p : E → Prop} {A : Set { x // p x }},
  IsSeqCompact A ↔ IsSeqCompact (Subtype.val '' A)

theorem isSeqCompact_iff_isSeqCompact_univ E1 #

∀ {E : Type u_2} [inst : TopologicalSpace E] {A : Set E}, IsSeqCompact A ↔ IsSeqCompact Set.univ

theorem isSeqCompact_univ_iff E0 #

∀ {E : Type u_2} [inst : TopologicalSpace E], IsSeqCompact Set.univ ↔ SeqCompactSpace E

theorem isSeqCompact_iff_seqCompactSpace E1 #

∀ {E : Type u_2} [inst : TopologicalSpace E] {A : Set E}, IsSeqCompact A ↔ SeqCompactSpace ↑A

instance instSeqCompactSpaceCountablyCompactSpace E0 #

∀ {X : Type u_4} [inst : TopologicalSpace X] [SeqCompactSpace X], CountablyCompactSpace X

A sequentially compact space is countably compact.

theorem IsCountablyCompact.isSeqCompact E3 #

∀ {E : Type u_2} [inst : TopologicalSpace E] {A : Set E} [FirstCountableTopology E],
  IsCountablyCompact A → IsSeqCompact A

In a first-countable space, a countably compact set is sequentially compact.

instance instCountablyCompactSpaceSeqCompactSpace E0 #

∀ {X : Type u_4} [inst : TopologicalSpace X] [FirstCountableTopology X] [CountablyCompactSpace X], SeqCompactSpace X

A first-countable countably compact space is sequentially compact.

theorem isCountablyCompact_iff_isSeqCompact E1 #

∀ {E : Type u_2} [inst : TopologicalSpace E] {A : Set E} [FirstCountableTopology E],
  IsCountablyCompact A ↔ IsSeqCompact A

In a first-countable space, a set is countably compact iff it is sequentially compact.

theorem IsCountablyCompact.exists_accPt_of_infinite E3 #

∀ {E : Type u_2} [inst : TopologicalSpace E] {A B : Set E},
  IsCountablyCompact A → B ⊆ A → B.Infinite → ∃ a ∈ A, AccPt a (Filter.principal B)

Every infinite subset of a countably compact set has an accumulation point in the set.

theorem isCountablyCompact_iff_infinite_subset_has_accPt E3 #

∀ {E : Type u_2} [inst : TopologicalSpace E] [T1Space E] {A : Set E},
  IsCountablyCompact A ↔ ∀ B ⊆ A, B.Infinite → ∃ a ∈ A, AccPt a (Filter.principal B)

In a T₁ space, a set is countably compact if and only if every infinite subset has an accumulation point in the set.

theorem IsLindelof.isCompact E3 #

∀ {E : Type u_2} [inst : TopologicalSpace E] {A : Set E}, IsCountablyCompact A → IsLindelof A → IsCompact A

A countably compact Lindelöf set is compact.

theorem LindelofSpace.compactSpace E1 #

∀ {X : Type u_4} [inst : TopologicalSpace X] [LindelofSpace X] [h : CountablyCompactSpace X], CompactSpace X

A countably compact Lindelöf space is compact.

theorem IsCountablyCompact.isCompact E1 #

∀ {E : Type u_2} [inst : TopologicalSpace E] {A : Set E} [HereditarilyLindelofSpace E],
  IsCountablyCompact A → IsCompact A

In a Hereditarily Lindelöf space, a countably compact set is compact.

theorem IsCountablyCompact.union E1 #

∀ {E : Type u_2} [inst : TopologicalSpace E] {A B : Set E},
  IsCountablyCompact A → IsCountablyCompact B → IsCountablyCompact (A ∪ B)

The union of two countably compact sets is countably compact.

theorem Finset.isCountablyCompact_biUnion E1 #

∀ {ι : Type u_1} {E : Type u_2} [inst : TopologicalSpace E] (s : Finset ι) {f : ι → Set E},
  (∀ i ∈ s, IsCountablyCompact (f i)) → IsCountablyCompact (⋃ i ∈ s, f i)

A finite union of countably compact sets is countably compact.

theorem Set.Finite.isCountablyCompact_biUnion E1 #

∀ {ι : Type u_1} {E : Type u_2} [inst : TopologicalSpace E] {s : Set ι} {f : ι → Set E},
  s.Finite → (∀ i ∈ s, IsCountablyCompact (f i)) → IsCountablyCompact (⋃ i ∈ s, f i)

A finite union of countably compact sets is countably compact.

theorem Set.Finite.isCountablyCompact_sUnion E1 #

∀ {E : Type u_2} [inst : TopologicalSpace E] {S : Set (Set E)},
  S.Finite → (∀ s ∈ S, IsCountablyCompact s) → IsCountablyCompact (⋃₀ S)

A finite union of countably compact sets is countably compact.

theorem isCountablyCompact_iUnion E1 #

∀ {E : Type u_2} [inst : TopologicalSpace E] {ι : Sort u_4} {f : ι → Set E} [Finite ι],
  (∀ (i : ι), IsCountablyCompact (f i)) → IsCountablyCompact (⋃ i, f i)

A finite union of countably compact sets is countably compact.

Deprecated aliases

NameNew nameSince
LindelofSpace.CompactSpaceLindelofSpace.compactSpace2026-05-19