Lean library · module TopologyByExample.Theorems.LocallyCompactRemainderMetacompact

Countable metacompactness with a locally compact open part

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 countablyMetacompactSpace_of_closed_discrete_locallyCompact_compl

TopologyByExample.countablyMetacompactSpace_of_closed_discrete_locallyCompact_compl

A Hausdorff space with a closed discrete remainder and a locally compact, second-countable open part is countably metacompact.

theorem countablyMetacompactSpace_of_closed_discrete_locallyCompact_compl
    {X : Type*} [TopologicalSpace X] [T2Space X] {D : Set X}
    (hDc : IsClosed D) (hDd : IsDiscrete D)
    [LocallyCompactSpace (Dᶜ : Set X)] [SecondCountableTopology (Dᶜ : Set X)] :
    CountablyMetacompactSpace X
Proof
:= by
  apply countablyMetacompactSpace_of_closed_gdelta
  intro A hA
  let U : Set (Dᶜ : Set X) := Subtype.val ⁻¹' Aᶜ
  have hU : IsOpen U := hA.isOpen_compl.preimage continuous_subtypeVal
  let : LocallyCompactSpace U := hU.locallyCompactSpace
  have hs : IsSigmaCompact U := isSigmaCompact_iff_sigmaCompactSpace.mpr inferInstance
  have hi : Subtype.val '' U = Aᶜ ∩ Dᶜ := by
    ext x
    simp only [mem_image, Subtype.exists, mem_inter_iff]
    constructor
    · rintro ⟨_, hxD, hxU, rfl⟩
      exact ⟨hxU, hxD⟩
    · rintro ⟨hxA, hxD⟩
      exact ⟨x, hxD, hxA, rfl⟩
  have hs' : IsSigmaCompact (Aᶜ ∩ Dᶜ) := by
    rw [← hi]
    exact hs.image continuous_subtypeVal
  obtain ⟨K, hK, hKU⟩ := hs'
  have he : IsClosed (Aᶜ ∩ D) :=
    isClosed_of_subset_discrete_closed inter_subset_right hDd hDc
  have hG : IsGδ ((Aᶜ ∩ D)ᶜ ∩ ⋂ n, (K n)ᶜ) :=
    he.isOpen_compl.isGδ.inter (IsGδ.iInter_of_isOpen fun n ↦ (hK n).isClosed.isOpen_compl)
  convert hG using 1
  rw [← compl_iUnion, hKU]
  ext x
  simp only [mem_inter_iff, mem_compl_iff]
  tauto

On this site: Theorem: A locally compact second countable open part with closed discrete remainder gives countable metacompactness