Lean library · module TopologyByExample.Spaces.MisraSparseStageDisconnectedness

Total disconnectedness of finite sparse stages

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

instance

Attaching copies of E₀ preserves total disconnectedness of the old space.

instance {X ι : Type*} [TopologicalSpace X] [TotallyDisconnectedSpace X]
    (t : ι → Bool → X) : TotallyDisconnectedSpace (Space t)
Proof
:= by
  constructor
  intro C _ hC
  by_cases hsub : C ⊆ range (base t)
  · exact ((isEmbedding_base t).isTotallyDisconnected_range.2 inferInstance) C hsub hC
  · obtain ⟨x, hxC, hx⟩ := not_subset.1 hsub
    rcases base_or_new t x with ⟨a, rfl⟩ | ⟨i, y, hy, rfl⟩
    · exact False.elim (hx ⟨a, rfl⟩)
    · have heq (z : Space t) (hzC : z ∈ C) : copy t i y = z := by
        by_contra hne
        obtain ⟨W, hW, hyW, hzW⟩ := exists_clopen_separator_new t i hy hne
        rcases hC.subset_or_subset hW.isOpen hW.isClosed.isOpen_compl
          disjoint_compl_right (by simp) with h | h
        · exact hzW (h hzC)
        · exact h hxC hyW
      exact fun a ha b hb ↦ (heq a ha).symm.trans (heq b hb)

instance

Every finite sparse stage is totally disconnected.

instance (e : OmegaOne → OmegaOne) (n : ℕ) : TotallyDisconnectedSpace (Stage e n)
Proof
:= by
  induction n with
  | zero => exact inferInstanceAs (TotallyDisconnectedSpace MisraE0)
  | succ n ih =>
    let := ih
    exact inferInstanceAs
      (TotallyDisconnectedSpace (MisraAttachment.Space (attachment e (layer e n))))