Skip to content

Commit 85dcf29

Browse files
feat(Topology/Compactness): add missing instances for countably compact (leanprover-community#37460)
Co-authored-by: Batixx <s59fpern@uni-bonn.de>
1 parent 08fd130 commit 85dcf29

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Mathlib/Topology/Compactness/CountablyCompact.lean

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,18 +167,35 @@ theorem isCountablyCompact_iff_countable_open_cover' :
167167
theorem IsCompact.isCountablyCompact (hA : IsCompact A) : IsCountablyCompact A :=
168168
fun _ _ _ hle => hA hle
169169

170+
/-- A compact space is countably compact. -/
171+
instance CompactSpace.CountablyCompactSpace
172+
{X : Type*} [TopologicalSpace X] [CompactSpace X] :
173+
CountablyCompactSpace X where
174+
isCountablyCompact_univ := isCompact_univ.isCountablyCompact
175+
170176
/-- A sequentially compact set is countably compact. -/
171177
theorem IsSeqCompact.isCountablyCompact (hA : IsSeqCompact A) :
172178
IsCountablyCompact A := IsCountablyCompact.of_seq_clusterPt fun x hx => by
173179
obtain ⟨a, ha, φ, hφ, hφa⟩ := hA.subseq_of_frequently_in hx.frequently
174180
exact ⟨a, ha, hφa.mapClusterPt.of_comp hφ.tendsto_atTop⟩
175181

182+
/-- A sequentially compact space is countably compact. -/
183+
instance SeqCompactSpace.CountablyCompactSpace
184+
{X : Type*} [TopologicalSpace X] [SeqCompactSpace X] :
185+
CountablyCompactSpace X where
186+
isCountablyCompact_univ := isSeqCompact_univ.isCountablyCompact
187+
176188
/-- In a first-countable space, a countably compact set is sequentially compact. -/
177189
theorem IsCountablyCompact.isSeqCompact [FirstCountableTopology E]
178190
(hA : IsCountablyCompact A) : IsSeqCompact A := fun x hx =>
179191
let ⟨a, haA, hac⟩ := IsCountablyCompact.seq_clusterPt hA x (Eventually.of_forall hx)
180192
⟨a, haA, TopologicalSpace.FirstCountableTopology.tendsto_subseq hac⟩
181193

194+
/-- In a first-countable countably compact space is sequentially compact. -/
195+
instance CountablyCompactSpace.SeqCompactSpace {X : Type*} [TopologicalSpace X]
196+
[FirstCountableTopology X] [CountablyCompactSpace X] : SeqCompactSpace X where
197+
isSeqCompact_univ := isCountablyCompact_univ.isSeqCompact
198+
182199
/-- In a first-countable space, a set is countably compact iff it is sequentially compact. -/
183200
theorem isCountablyCompact_iff_isSeqCompact [FirstCountableTopology E] :
184201
IsCountablyCompact A ↔ IsSeqCompact A :=
@@ -231,6 +248,11 @@ theorem IsLindelof.isCompact (hA : IsCountablyCompact A) (hl : IsLindelof A) :
231248
exact ⟨t.image f, by simp_all⟩
232249
· exact ⟨∅, by simp_all⟩
233250

251+
/-- A countably compact Lindelöf space is compact. -/
252+
theorem LindelofSpace.CompactSpace {X : Type*} [TopologicalSpace X]
253+
[LindelofSpace X] [h : CountablyCompactSpace X] : CompactSpace X where
254+
isCompact_univ := isLindelof_univ.isCompact h.isCountablyCompact_univ
255+
234256
/-- In a Hereditarily Lindelöf space, a countably compact set is compact. -/
235257
theorem IsCountablyCompact.isCompact [HereditarilyLindelofSpace E]
236258
(hA : IsCountablyCompact A) : IsCompact A :=

0 commit comments

Comments
 (0)