Lean library · module TopologyByExample.Theorems.BiconnectedStrong

Real-valued functions and biconnected spaces

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 D : Type*} [TopologicalSpace X] [TopologicalSpace D]

theorem eq_comp_of_continuous

TopologyByExample.BiconnectedSpace.eq_comp_of_continuous

Real-valued functions are constant on continuous images of locally connected preconnected spaces in a biconnected space.

theorem BiconnectedSpace.eq_comp_of_continuous [BiconnectedSpace X]
    [LocallyConnectedSpace D] [PreconnectedSpace D] {f : X → ℝ} {g : D → X}
    (hf : Continuous f) (hg : Continuous g) (x y : D) : f (g x) = f (g y)
Proof
:= by
  by_contra hxy
  obtain ⟨u, v, hu, hv, hxu, hyv, hd⟩ := t2_separation hxy
  have small {x y : D} {u : Set ℝ} (hne : f (g x) ≠ f (g y))
      (hu : IsOpen u) (hx : f (g x) ∈ u) :
      ∃ a ⊆ f ⁻¹' u, IsPreconnected a ∧ ¬a.Subsingleton := by
    by_contra hn
    push Not at hn
    let F := (f ∘ g) ⁻¹' {f (g x)}
    have hclosed : IsClosed F := isClosed_singleton.preimage (hf.comp hg)
    have hopen : IsOpen F := by
      apply isOpen_iff_mem_nhds.mpr
      intro t ht
      have he : f (g t) = f (g x) := ht
      have htu : f (g t) ∈ u := he ▸ hx
      obtain ⟨a, has, hao, hta, hac⟩ := locallyConnectedSpace_iff_subsets_isOpen_isConnected.mp
        ‹LocallyConnectedSpace D› t _ (((hu.preimage hf).preimage hg).mem_nhds htu)
      have hs := hn (g '' a) (image_subset_iff.mpr has)
        (hac.isPreconnected.image g hg.continuousOn)
      exact Filter.mem_of_superset (hao.mem_nhds hta) fun z hz ↦
        (congrArg f (hs (mem_image_of_mem g hz) (mem_image_of_mem g hta))).trans he
    have hall : F = univ := IsClopen.eq_univ ⟨hclosed, hopen⟩ ⟨x, rfl⟩
    exact hne (show f (g y) = f (g x) from (hall ▸ mem_univ y : y ∈ F)).symm
  obtain ⟨a, hau, hac, han⟩ := small hxy hu hxu
  obtain ⟨b, hbv, hbc, hbn⟩ := small (Ne.symm hxy) hv hyv
  exact (BiconnectedSpace.subsingleton_or_subsingleton hac hbc
    ((hd.preimage f).mono hau hbv)).elim han hbn

On this site: Theorem: Real functions on images of locally connected spaces in biconnected spaces

theorem stronglyConnectedSpace_of_locallyConnectedSpace_of_biconnectedSpace

TopologyByExample.stronglyConnectedSpace_of_locallyConnectedSpace_of_biconnectedSpace

A locally connected space with a biconnected topology is strongly connected.

theorem stronglyConnectedSpace_of_locallyConnectedSpace_of_biconnectedSpace
    [BiconnectedSpace X] [LocallyConnectedSpace X] : StronglyConnectedSpace X
Proof
:= by
  refine ⟨fun f x y ↦ ?_⟩
  exact BiconnectedSpace.eq_comp_of_continuous f.continuous continuous_id x y

On this site: Theorem: Locally connected biconnected spaces are strongly connected

theorem stronglyConnectedSpace_of_pathPreconnectedSpace_of_biconnectedSpace

TopologyByExample.stronglyConnectedSpace_of_pathPreconnectedSpace_of_biconnectedSpace

A path-connected space with a biconnected topology is strongly connected.

theorem stronglyConnectedSpace_of_pathPreconnectedSpace_of_biconnectedSpace
    [BiconnectedSpace X] [PathPreconnectedSpace X] : StronglyConnectedSpace X
Proof
:= by
  refine ⟨fun f x y ↦ ?_⟩
  obtain ⟨p⟩ := PathPreconnectedSpace.joined x y
  let : LocallyPathConnectedSpace unitInterval := (convex_Icc (0 : ℝ) 1).locallyPathConnectedSpace
  simpa using BiconnectedSpace.eq_comp_of_continuous f.continuous p.continuous 0 1

On this site: Theorem: Path-connected biconnected spaces are strongly connected