Lean library · module TopologyByExample.Theorems.CollapseDispersion

Dispersion points in collapse quotients

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
variable {X : Type*} [TopologicalSpace X] {A : Set X}

theorem isOpenEmbedding_compl

TopologyByExample.Collapse.isOpenEmbedding_compl

Away from a closed collapsed set, the quotient map is an open embedding.

theorem isOpenEmbedding_compl (hA : IsClosed A) :
    IsOpenEmbedding (fun x : ↥(Aᶜ) => mk A x.val)
Proof
:= by
  refine .of_continuous_injective_isOpenMap
    (continuous_mk.comp continuous_subtypeVal) ?_ ?_
  · intro x y h
    exact Subtype.ext (eq_of_mk_eq_mk_of_notMem h x.property)
  · intro U hU
    have ho := hA.isOpen_compl.isOpenEmbedding_subtypeVal.isOpenMap U hU
    have hs : ∀ x ∈ Subtype.val '' U, x ∈ A → A ⊆ Subtype.val '' U := by
      rintro x ⟨y, _, rfl⟩ hx
      exact (y.property hx).elim
    simpa only [Set.image_image] using isOpen_image_mk ho hs
omit [TopologicalSpace X] in

theorem range_compl

TopologyByExample.Collapse.range_compl

The image of the uncollapsed points is the complement of the collapsed point.

theorem range_compl {p : X} (hp : p ∈ A) :
    Set.range (fun x : ↥(Aᶜ) => mk A x.val) = ({mk A p} : Set (Collapse A))ᶜ
Proof
:= by
  ext y
  constructor
  · rintro ⟨x, rfl⟩ h
    exact x.property (mem_of_mk_eq_mk_of_mem h hp)
  · intro hy
    obtain ⟨x, rfl⟩ := surjective_mk y
    have hx : x ∉ A := fun hx => hy (mk_eq_mk_of_mem hx hp)
    exact ⟨⟨x, hx⟩, rfl⟩

theorem isTotallyDisconnected_compl_collapsed

TopologyByExample.Collapse.isTotallyDisconnected_compl_collapsed

Collapsing a closed set containing a dispersion point preserves that property.

theorem isTotallyDisconnected_compl_collapsed (hA : IsClosed A) {p : X}
    (hp : p ∈ A) (hd : IsTotallyDisconnected ({p}ᶜ : Set X)) :
    IsTotallyDisconnected ({mk A p}ᶜ : Set (Collapse A))
Proof
:= by
  have hsub : Aᶜ ⊆ ({p}ᶜ : Set X) := by
    intro x hx he
    exact hx (he ▸ hp)
  have htd : TotallyDisconnectedSpace ↥(Aᶜ) :=
    totallyDisconnectedSpace_subtype_iff.mpr (fun t ht hc => hd t (ht.trans hsub) hc)
  rw [← range_compl hp]
  exact (isOpenEmbedding_compl hA).isEmbedding.isTotallyDisconnected_range.mpr htd