Lean library · module TopologyByExample.Theorems.SigmaCompactZeroDimensional

Zero-dimensionality from a countable compact cover

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

structure ClosedDisjointPair

TopologyByExample.SigmaCompactSeparation.ClosedDisjointPair

private structure ClosedDisjointPair (X : Type*) [TopologicalSpace X] where
  left : Set X
  right : Set X
  closed_left : IsClosed left
  closed_right : IsClosed right
  disjoint : Disjoint left right

theorem extend_closed_pair

TopologyByExample.SigmaCompactSeparation.extend_closed_pair

private theorem extend_closed_pair {X : Type*} [TopologicalSpace X] [NormalSpace X]
    [T2Space X] [TotallyDisconnectedSpace X]
    (p : ClosedDisjointPair X) (D : Set X) (hD : IsCompact D) :
    ∃ q : ClosedDisjointPair X, p.left ⊆ interior q.left ∧
      p.right ⊆ interior q.right ∧ D ⊆ interior q.left ∪ interior q.right
Proof
:= by
  have : CompactSpace D := isCompact_iff_compactSpace.mp hD
  obtain ⟨C, hC, hAC, hCB⟩ := exists_clopen_of_closed_subset_open (X := D)
    (p.closed_left.preimage continuous_subtypeVal)
    (p.closed_right.preimage continuous_subtypeVal).isOpen_compl
    (fun y hy hz ↦ p.disjoint.le_bot ⟨hy, hz⟩)
  let L := p.left ∪ (Subtype.val '' C)
  let R := p.right ∪ (Subtype.val '' Cᶜ)
  have hL : IsClosed L := p.closed_left.union
    (hC.isClosed.isCompact.image continuous_subtypeVal).isClosed
  have hR : IsClosed R := p.closed_right.union
    (hC.compl.isClosed.isCompact.image continuous_subtypeVal).isClosed
  have hdis : Disjoint L R := by
    apply disjoint_left.mpr
    intro x hx hy
    rcases hx with hx | hx <;> rcases hy with hy | hy
    · exact p.disjoint.le_bot ⟨hx, hy⟩
    · obtain ⟨y, hy, rfl⟩ := hy
      exact hy (hAC hx)
    · obtain ⟨y, hx, rfl⟩ := hx
      exact hCB hx hy
    · obtain ⟨y, hCy, hye⟩ := hx
      obtain ⟨z, hz, hze⟩ := hy
      exact hz ((Subtype.ext (hye.trans hze.symm)) ▸ hCy)
  obtain ⟨U, V, hU, hV, hLU, hRV, hUV⟩ := normal_separation hL hR hdis
  obtain ⟨U', hU', hLU', hU'U⟩ := normal_exists_closure_subset hL hU hLU
  obtain ⟨V', hV', hRV', hV'V⟩ := normal_exists_closure_subset hR hV hRV
  refine ⟨⟨closure U', closure V', isClosed_closure, isClosed_closure,
    hUV.mono hU'U hV'V⟩, ?_, ?_, ?_⟩
  · exact subset_union_left.trans (hLU'.trans hU'.subset_interior_closure)
  · exact subset_union_left.trans (hRV'.trans hV'.subset_interior_closure)
  · intro x hx
    by_cases hxc : (⟨x, hx⟩ : D) ∈ C
    · exact Or.inl (hU'.subset_interior_closure (hLU' (Or.inr ⟨⟨x, hx⟩, hxc, rfl⟩)))
    · exact Or.inr (hV'.subset_interior_closure (hRV' (Or.inr ⟨⟨x, hx⟩, hxc, rfl⟩)))

theorem exists_isClopen_separator_of_compact_cover

TopologyByExample.SigmaCompactSeparation.exists_isClopen_separator_of_compact_cover

A normal Hausdorff totally disconnected space with a compact cover indexed by the natural numbers separates disjoint closed sets by clopen sets.

theorem exists_isClopen_separator_of_compact_cover {X : Type*}
    [TopologicalSpace X] [NormalSpace X] [T2Space X] [TotallyDisconnectedSpace X]
    (D : ℕ → Set X) (hD : ∀ n, IsCompact (D n)) (hcover : ⋃ n, D n = univ)
    {A B : Set X} (hA : IsClosed A) (hB : IsClosed B) (hAB : Disjoint A B) :
    ∃ U : Set X, IsClopen U ∧ A ⊆ U ∧ Disjoint U B
Proof
:= by
  classical
  choose next hnext using fun (n : ℕ) (p : ClosedDisjointPair X) ↦
    extend_closed_pair p (D n) (hD n)
  let S : ℕ → ClosedDisjointPair X := Nat.rec ⟨A, B, hA, hB, hAB⟩ next
  have hstep (n : ℕ) : (S n).left ⊆ interior (S (n + 1)).left ∧
      (S n).right ⊆ interior (S (n + 1)).right ∧
      D n ⊆ interior (S (n + 1)).left ∪ interior (S (n + 1)).right := hnext n (S n)
  have hmonoL : Monotone (fun n ↦ (S n).left) :=
    monotone_nat_of_le_succ fun n ↦ (hstep n).1.trans interior_subset
  have hmonoR : Monotone (fun n ↦ (S n).right) :=
    monotone_nat_of_le_succ fun n ↦ (hstep n).2.1.trans interior_subset
  let U := ⋃ n, interior (S n).left
  let V := ⋃ n, interior (S n).right
  have hUV : Disjoint U V := by
    apply disjoint_left.mpr
    intro x hxU hxV
    obtain ⟨n, hn⟩ := mem_iUnion.mp hxU
    obtain ⟨m, hm⟩ := mem_iUnion.mp hxV
    exact (S (max n m)).disjoint.le_bot
      ⟨hmonoL (le_max_left _ _) (interior_subset hn),
        hmonoR (le_max_right _ _) (interior_subset hm)⟩
  have hfull : U ∪ V = univ := by
    apply eq_univ_of_forall
    intro x
    have hx : x ∈ ⋃ n, D n := hcover.symm ▸ mem_univ x
    obtain ⟨n, hn⟩ := mem_iUnion.mp hx
    rcases (hstep n).2.2 hn with h | h
    · exact Or.inl (mem_iUnion.mpr ⟨n + 1, h⟩)
    · exact Or.inr (mem_iUnion.mpr ⟨n + 1, h⟩)
  have hcomp : Uᶜ = V := by
    ext x
    have hf : x ∈ U ∪ V := hfull.symm ▸ mem_univ x
    exact ⟨fun hx ↦ hf.resolve_left hx, fun hx hxu ↦ hUV.le_bot ⟨hxu, hx⟩⟩
  have hBU : B ⊆ V := fun x hx ↦ mem_iUnion.mpr ⟨1, (hstep 0).2.1 hx⟩
  refine ⟨U, ⟨?_, isOpen_iUnion fun _ ↦ isOpen_interior⟩, ?_, hUV.mono_right hBU⟩
  · rw [← isOpen_compl_iff, hcomp]
    exact isOpen_iUnion fun _ ↦ isOpen_interior
  · exact fun x hx ↦ mem_iUnion.mpr ⟨1, (hstep 0).1 hx⟩

theorem zeroDimensionalSpace_of_sigmaCompactSpace

TopologyByExample.SigmaCompactSeparation.zeroDimensionalSpace_of_sigmaCompactSpace

A normal Hausdorff sigma-compact totally disconnected space is zero-dimensional.

theorem zeroDimensionalSpace_of_sigmaCompactSpace {X : Type*}
    [TopologicalSpace X] [NormalSpace X] [T2Space X] [TotallyDisconnectedSpace X]
    [SigmaCompactSpace X] : ZeroDimensionalSpace X
Proof
:= by
  obtain ⟨D, hD, hcover⟩ := SigmaCompactSpace.exists_compact_covering (X := X)
  rw [zeroDimensionalSpace_iff_isTopologicalBasis_isClopen]
  apply isTopologicalBasis_of_isOpen_of_nhds (fun _ h ↦ IsClopen.isOpen h)
  intro x U hx hU
  obtain ⟨V, hV, hxV, hVU⟩ := exists_isClopen_separator_of_compact_cover
    D hD hcover isClosed_singleton hU.isClosed_compl
    (by simpa using hx : Disjoint ({x} : Set X) Uᶜ)
  exact ⟨V, hV, hxV (mem_singleton x), fun y hy ↦ by
    by_contra hyU
    exact hVU.le_bot ⟨hy, hyU⟩⟩

On this site: Theorem: Normal Hausdorff sigma-compact totally disconnected spaces are zero-dimensional