Lean library · module TopologyByExample.Theorems.CountableExtentRemainders

Countable extent from a countably compact part and Lindelöf remainder

Source file

This file was written by Codex (OpenAI's AI model) working under the direction of David R. MacIver, who reviews it and is responsible for it.

Imports

theorem countableExtent_of_countablyCompact_of_lindelof_compl

TopologyByExample.countableExtent_of_countablyCompact_of_lindelof_compl

A countably compact subset with Lindelöf complement gives countable extent.

theorem countableExtent_of_countablyCompact_of_lindelof_compl {X : Type*}
    [TopologicalSpace X] {K : Set X} (hK : IsCountablyCompact K)
    (hL : IsLindelof Kᶜ) :
    ∀ s : Set X, ¬ s.Countable → ∃ x, AccPt x (𝓟 s)
Proof
:= by
  apply countableExtent_iff.2
  intro s hs hd
  have hf : (s ∩ K).Finite := by
    by_contra h
    obtain ⟨x, _, hx⟩ := hK.exists_accPt_of_infinite inter_subset_right h
    exact isClosed_and_isDiscrete_iff_forall_not_accPt.1 ⟨hs, hd⟩ x
      (hx.mono (principal_mono.mpr inter_subset_left))
  have hc : (Kᶜ ∩ s).Countable :=
    (hL.inter_right hs).countable_of_isDiscrete (hd.mono inter_subset_right)
  have he : s = (s ∩ K) ∪ (Kᶜ ∩ s) := by
    ext x
    simp only [mem_union, mem_inter_iff, mem_compl_iff]
    tauto
  rw [he]
  exact hf.countable.union hc

On this site: Theorem: A countably compact part with Lindelöf remainder gives countable extent