Lean library · module TopologyByExample.Theorems.AlexandroffCountablyMetacompact

Countable metacompactness of the Alexandroff plank

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 isSigmaCompact_compl_bottom

TopologyByExample.AlexandroffPlank.isSigmaCompact_compl_bottom

The complement of the bottom edge is sigma-compact.

theorem isSigmaCompact_compl_bottom : IsSigmaCompact bottomᶜ
Proof
:= by
  let K (n : ℕ) : Set Base := {z | 1 / ((n : ℝ) + 1) ≤ |(z.2 : ℝ)|}
  have hKc (n : ℕ) : IsCompact (K n) :=
    (isClosed_le continuous_const ((continuous_subtypeVal.comp continuous_snd).abs)).isCompact
  have havoid (n : ℕ) (z : K n) : (z : Base) ≠ corner := by
    intro hz
    have hp := z.property
    change 1 / ((n : ℝ) + 1) ≤ |((z : Base).2 : ℝ)| at hp
    rw [hz] at hp
    norm_num [corner, zero] at hp
    linarith [show (0 : ℝ) < (n : ℝ) + 1 by positivity]
  have hcont (n : ℕ) : ContinuousOn ofP (K n) := by
    rw [continuousOn_iff_continuous_domRestrict]
    exact continuous_ofP_comp continuous_subtypeVal (havoid n)
  have hI (n : ℕ) : IsCompact (ofP '' K n) := (hKc n).image_of_continuousOn (hcont n)
  have he : bottomᶜ = {ofP corner} ∪ ⋃ n, ofP '' K n := by
    ext x
    constructor
    · intro hx
      by_cases hy : (toP x).2 = zero
      · left
        have hx1 : (toP x).1 = ∞ := by
          by_contra h
          exact hx ⟨hy, h⟩
        exact congrArg ofP (Prod.ext hx1 hy)
      · right
        have hy' : (0 : ℝ) < |((toP x).2 : ℝ)| := abs_pos.mpr (by
          intro h
          apply hy
          exact Subtype.ext h)
        obtain ⟨n, hn⟩ := exists_nat_one_div_lt hy'
        exact mem_iUnion.mpr ⟨n, toP x, hn.le, ofP_toP x⟩
    · rintro (hx | hx)
      · rw [mem_singleton_iff] at hx
        rw [hx]
        exact not_separated.2.1
      · obtain ⟨n, z, hz, rfl⟩ := mem_iUnion.mp hx
        intro hb
        have hzy : z.2 = zero := hb.1
        have h0 : |(z.2 : ℝ)| = 0 := by rw [hzy]; norm_num [zero]
        change 1 / ((n : ℝ) + 1) ≤ |(z.2 : ℝ)| at hz
        rw [h0] at hz
        exact (not_le.mpr (by positivity : (0 : ℝ) < 1 / ((n : ℝ) + 1))) hz
  rw [he]
  exact ⟨fun n ↦ {ofP corner} ∪ ofP '' K n,
    fun n ↦ isCompact_singleton.union (hI n), by rw [iUnion_union_distrib, iUnion_const]⟩

theorem countablyMetacompactSpace

TopologyByExample.AlexandroffPlank.countablyMetacompactSpace

The Alexandroff plank is countably metacompact.

theorem countablyMetacompactSpace : CountablyMetacompactSpace AlexandroffPlank
Proof
:= by
  let : SigmaCompactSpace ↥(bottomᶜ : Set AlexandroffPlank) :=
    isSigmaCompact_iff_sigmaCompactSpace.mp isSigmaCompact_compl_bottom
  let : MetacompactSpace ↥(bottomᶜ : Set AlexandroffPlank) :=
    metacompactSpace_of_sigmaCompactSpace_of_t2Space
  apply countablyMetacompactSpace_of_open_of_countablyCompact_compl
    not_separated.1.isOpen_compl
  rw [compl_compl]
  have he : bottom = (fun x : OmegaOne ↦ col x zero) '' univ := by
    ext z
    constructor
    · rintro ⟨hy, hx⟩
      obtain ⟨x, hx⟩ := OnePoint.ne_infty_iff_exists.mp hx
      refine ⟨x, mem_univ _, ?_⟩
      rw [← ofP_toP z]
      exact congrArg ofP (Prod.ext hx hy.symm)
    · rintro ⟨x, _, rfl⟩
      exact ⟨rfl, coe_ne_infty x⟩
  rw [he]
  exact CountablyCompactSpace.isCountablyCompact_univ.image
    isClosedEmbedding_bottom.continuous

On this site: The Alexandroff plank is countably metacompact