Lean library · module TopologyByExample.Theorems.ExtensionBiconnected

Biconnectedness and open extensions

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 biconnectedSpace_of_openExtension

TopologyByExample.OpenExtension.biconnectedSpace_of_openExtension

A connected space whose open extension is biconnected is biconnected.

theorem biconnectedSpace_of_openExtension {X : Type*} [TopologicalSpace X]
    [PreconnectedSpace X] [BiconnectedSpace (OpenExtension X)] : BiconnectedSpace X
Proof
where
  partition_subsingleton s t hs ht hd hu := by
    by_cases hte : t = ∅
    · exact Or.inr (hte ▸ subsingleton_empty)
    have htn : t.Nonempty := Set.ne_empty_iff_nonempty.mp hte
    have hA : IsPreconnected (some '' s : Set (OpenExtension X)) :=
      hs.image _ continuous_some.continuousOn
    have hB : IsPreconnected (insert point (some '' t) : Set (OpenExtension X)) := by
      apply (ht.image _ continuous_some.continuousOn).subset_closure (subset_insert _ _)
      exact insert_subset (point_mem_closure (htn.image some)) subset_closure
    have hdis : Disjoint (some '' s : Set (OpenExtension X)) (insert point (some '' t)) := by
      apply Set.disjoint_left.mpr
      rintro z ⟨x, hx, rfl⟩ hz
      rcases hz with hz | ⟨y, hy, he⟩
      · exact some_ne_point x hz
      · exact Set.disjoint_left.mp hd hx (some_injective he ▸ hy)
    have hcover : (some '' s ∪ insert point (some '' t) : Set (OpenExtension X)) = univ := by
      apply eq_univ_of_forall
      intro z
      induction z using OpenExtension.rec with
      | point => exact Or.inr (mem_insert _ _)
      | coe x =>
        have hx : x ∈ s ∪ t := hu ▸ mem_univ x
        exact hx.elim (fun h ↦ Or.inl ⟨x, h, rfl⟩)
          (fun h ↦ Or.inr (mem_insert_of_mem _ ⟨x, h, rfl⟩))
    rcases BiconnectedSpace.partition_subsingleton _ _ hA hB hdis hcover with h | h
    · exact Or.inl fun x hx y hy ↦ some_injective (h ⟨x, hx, rfl⟩ ⟨y, hy, rfl⟩)
    · exact Or.inr fun x hx y hy ↦ some_injective
        (h (mem_insert_of_mem _ ⟨x, hx, rfl⟩) (mem_insert_of_mem _ ⟨y, hy, rfl⟩))

On this site: Theorem: Biconnectedness descends from the open extension of a connected space