Lean library · module TopologyByExample.Theorems.OriginsMetacompact

Countable metacompactness of lines with several origins

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 closed_gdelta

TopologyByExample.WithOrigins.closed_gdelta

Splitting one point preserves the property that every closed set is a G-delta.

theorem WithOrigins.closed_gdelta {X I : Type*} [TopologicalSpace X] [T1Space X]
    [PerfectlyNormalSpace X] [Nonempty I] {p : X} {A : Set (WithOrigins X p I)}
    (hA : IsClosed A) : IsGδ A
Proof
:= by
  classical
  let i : I := Classical.choice inferInstance
  let D : Set (WithOrigins X p I) := proj ⁻¹' {p}
  have hD : IsGδ D := isClosed_singleton.isGδ.preimage continuous_proj
  have hB : IsGδ (proj ⁻¹' (chart i ⁻¹' A) : Set (WithOrigins X p I)) :=
    (hA.preimage (continuous_chart i)).isGδ.preimage continuous_proj
  have hDc : IsClosed D := isClosed_singleton.preimage continuous_proj
  let T : Set I := {j | origin j ∉ A}
  have hT : IsOpen ((origin '' T : Set (WithOrigins X p I))ᶜ) :=
    (isClosed_origin_image T).isOpen_compl
  have he : A = ((proj ⁻¹' (chart i ⁻¹' A)) ∩ Dᶜ) ∪
      (D ∩ (origin '' T)ᶜ) := by
    ext q
    obtain ⟨x, j, rfl⟩ := exists_mk q
    by_cases hx : x = p
    · subst x
      simp only [mem_union, mem_inter_iff, mem_preimage, proj_mk, mem_compl_iff,
        D, mem_singleton_iff, not_true_eq_false, and_false, false_or, true_and]
      constructor
      · intro ha ⟨k, hk, hkj⟩
        exact hk (hkj ▸ ha)
      · intro ha
        by_contra h
        exact ha ⟨j, h, rfl⟩
    · have hm : mk x i = (mk x j : WithOrigins X p I) := mk_eq_mk_of_ne hx i j
      simp [D, hx, chart, hm]
  rw [he]
  exact (hB.inter hDc.isOpen_compl.isGδ).union (hD.inter hT.isGδ)

theorem countablyMetacompactSpace

TopologyByExample.LineWithOrigins.countablyMetacompactSpace

Every line with an arbitrary set of origins is countably metacompact.

theorem LineWithOrigins.countablyMetacompactSpace {I : Type*} :
    CountablyMetacompactSpace (LineWithOrigins I)
Proof
:= by
  cases isEmpty_or_nonempty I
  · infer_instance
  · exact countablyMetacompactSpace_of_closed_gdelta fun _ h ↦ WithOrigins.closed_gdelta h

On this site: Lines with several origins: the space is countably metacompact