Lean library · module TopologyByExample.Theorems.MultipleOriginArcs

Local arcs and obstructions at multiple origins

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

theorem exists_open_arc_of_openEmbedding

TopologyByExample.exists_open_arc_of_openEmbedding

An open embedding transfers an arc-connected neighborhood basis at each point in its range.

private theorem exists_open_arc_of_openEmbedding [LocallyArcConnectedSpace X] {f : X → Y}
    (hf : IsOpenEmbedding f) (x : X) (U : Set Y) (hU : IsOpen U) (hx : f x ∈ U) :
    ∃ V : Set Y, IsOpen V ∧ f x ∈ V ∧ V ⊆ U ∧ ArcConnectedSpace V
Proof
:= by
  obtain ⟨W, ho, hw, hs, hArc⟩ := LocallyArcConnectedSpace.exists_open x (f ⁻¹' U)
    (hU.preimage hf.continuous) hx
  exact ⟨f '' W, hf.isOpenMap W ho, mem_image_of_mem f hw, image_subset_iff.mpr hs,
    (Homeomorph.arcConnectedSpace_iff (hf.isEmbedding.homeomorphImage W)).mp hArc⟩

theorem locallyArcConnectedSpace

TopologyByExample.WithOrigins.locallyArcConnectedSpace

Multiplying a point preserves local arc connectedness in a T₁ space.

theorem WithOrigins.locallyArcConnectedSpace {ι : Type*} {p : X} [T1Space X]
    [LocallyArcConnectedSpace X] : LocallyArcConnectedSpace (WithOrigins X p ι)
Proof
:= by
  refine ⟨fun q U hU hq ↦ ?_⟩
  obtain ⟨x, i, rfl⟩ := exists_mk q
  exact exists_open_arc_of_openEmbedding (isOpenEmbedding_chart i) x U hU hq

On this site: Theorem: Multiplying a point preserves local arc connectedness; The circle with two origins is locally arc connected

theorem locallyArcConnectedSpace

TopologyByExample.EverywhereDoubledLine.locallyArcConnectedSpace

Each of the charts of the everywhere doubled line transfers the real line's local arcs.

theorem EverywhereDoubledLine.locallyArcConnectedSpace :
    LocallyArcConnectedSpace EverywhereDoubledLine
Proof
:= by
  let : LocallyArcConnectedSpace ℝ := locallyArcConnectedSpace_of_normedSpace
  refine ⟨fun q U hU hq ↦ ?_⟩
  simpa using exists_open_arc_of_openEmbedding (isOpenEmbedding_chart q) (coord q) U hU
    (by simpa using hq)

On this site: The everywhere doubled line is locally arc connected

theorem not_biconnected

TopologyByExample.ModifiedTelophase.not_biconnected

The modified telophase space contains an injective path in its ordinary half-line.

theorem ModifiedTelophase.not_biconnected : ¬ BiconnectedSpace ModifiedTelophase
Proof
:= by
  intro _
  let f (t : unitInterval) : ModifiedTelophase := emb ⟨t.val, t.property.1⟩
  have hcont : Continuous f := continuous_emb.comp (continuous_subtypeVal.subtype_mk _)
  let p : Path (f 0) (f 1) := ⟨⟨f, hcont⟩, rfl, rfl⟩
  apply BiconnectedSpace.not_injective_path p
  exact fun _ _ he ↦ Subtype.ext (congrArg (fun r : ℝ≥0 ↦ (r : ℝ)) (emb_injective he))

On this site: The modified telophase space is not biconnected

theorem injective_path_constant_coord

TopologyByExample.injective_path_constant_coord

An injective path with equal endpoint coordinates must remain in their fiber if all other fibers are singletons.

private theorem injective_path_constant_coord {x y : X} (p : Path x y) (hp : Function.Injective p)
    (f : X → ℝ) (hf : Continuous f) (he : f x = f y)
    (huniq : ∀ a b, f a ≠ f x → f a = f b → a = b) (t : unitInterval) :
    f (p t) = f x
Proof
:= by
  by_contra hn
  let g := f ∘ p
  let m := (f x + f (p t)) / 2
  have h₀ : g 0 = f x := by simp [g]
  have h₁ : g 1 = f x := by simp [g, he]
  have hgt : g t = f (p t) := rfl
  have hmid : m ∈ uIcc (f x) (f (p t)) := by
    rw [mem_uIcc]
    rcases lt_or_gt_of_ne hn with h | h
    · right; constructor <;> dsimp [m] <;> linarith
    · left; constructor <;> dsimp [m] <;> linarith
  have hmi : m ≠ f x := by dsimp [m]; intro h; apply hn; linarith
  have hmt : m ≠ f (p t) := by dsimp [m]; intro h; apply hn; linarith
  have hcont : Continuous g := hf.comp p.continuous
  obtain ⟨a, ha, haf⟩ := intermediate_value_uIcc (a := 0) (b := t) hcont.continuousOn
    (h₀.symm ▸ hmid : m ∈ uIcc (g 0) (g t))
  obtain ⟨b, hb, hbf⟩ := intermediate_value_uIcc (a := t) (b := 1) hcont.continuousOn
    (show m ∈ uIcc (g t) (g 1) by rwa [h₁, hgt, uIcc_comm])
  have hsame : a = b := hp (huniq _ _ (fun ha ↦ hmi (haf.symm.trans ha)) (haf.trans hbf.symm))
  rw [uIcc_of_le (show 0 ≤ t from bot_le)] at ha
  rw [uIcc_of_le (show t ≤ 1 from le_top)] at hb
  have hat : a = t := le_antisymm ha.2 (hsame ▸ hb.1)
  exact hmt (haf.symm.trans (congrArg g hat))

theorem not_arcConnectedSpace

TopologyByExample.WithOrigins.not_arcConnectedSpace

When the base embeds continuously in the real line, two different origins cannot be joined by an injective path.

theorem WithOrigins.not_arcConnectedSpace {ι : Type*} [Nontrivial ι] {p : X} [T1Space X]
    (f : X → ℝ) (hf : Continuous f) (hi : Function.Injective f) :
    ¬ ArcConnectedSpace (WithOrigins X p ι)
Proof
:= by
  intro ha
  obtain ⟨i, j, hij⟩ := exists_pair_ne ι
  obtain ⟨q, hq⟩ := ha.exists_injective_path (origin i) (origin j) (origin_injective.ne hij)
  have huniq (a b : WithOrigins X p ι) (hne : f (proj a) ≠ f p)
      (he : f (proj a) = f (proj b)) : a = b := by
    obtain ⟨a, k, rfl⟩ := exists_mk a
    obtain ⟨b, l, rfl⟩ := exists_mk b
    have hab : a = b := hi he
    subst b
    exact mk_eq_mk_of_ne (fun e ↦ hne (congrArg f e)) _ _
  have hall (t : unitInterval) : proj (q t) = p :=
    hi (injective_path_constant_coord q hq (f ∘ proj) (hf.comp continuous_proj) rfl huniq t)
  let A := q ⁻¹' {origin i}
  have hAc : IsClosed A := isClosed_singleton.preimage q.continuous
  have hAo : IsOpen A := by
    have he : A = q ⁻¹' range (chart i : X → WithOrigins X p ι) := by
      ext t
      constructor
      · intro h
        exact ⟨p, (show q t = origin i from h).symm⟩
      · rintro ⟨z, hz⟩
        have hzp : z = p := (congrArg proj hz).trans (hall t)
        exact hz.symm.trans (congrArg (chart i) hzp)
    rw [he]
    exact (isOpen_range_chart i).preimage q.continuous
  have hfull := IsClopen.eq_univ ⟨hAc, hAo⟩ ⟨0, by simp [A]⟩
  have h1 : (1 : unitInterval) ∈ A := hfull ▸ trivial
  exact hij (origin_injective (by simpa [A] using h1 : origin j = origin i)).symm

On this site: Theorem: Multiplying a point in a space with a continuous injection into the line obstructs arc connectedness

theorem locallyArcConnectedSpace_lineWithOrigins

TopologyByExample.locallyArcConnectedSpace_lineWithOrigins

The line with any number of origins is locally arc connected.

theorem locallyArcConnectedSpace_lineWithOrigins {ι : Type*} :
    LocallyArcConnectedSpace (LineWithOrigins ι)
Proof
:= by
  let : LocallyArcConnectedSpace ℝ := locallyArcConnectedSpace_of_normedSpace
  exact WithOrigins.locallyArcConnectedSpace

On this site: Lines with several origins: the space is locally arc connected

theorem not_arcConnectedSpace_lineWithOrigins

TopologyByExample.not_arcConnectedSpace_lineWithOrigins

The line with at least two origins is not arc connected.

theorem not_arcConnectedSpace_lineWithOrigins {ι : Type*} [Nontrivial ι] :
    ¬ ArcConnectedSpace (LineWithOrigins ι)
Proof
:=
  WithOrigins.not_arcConnectedSpace id continuous_id Function.injective_id

On this site: Lines with several origins: the space is not arc connected when \(I\) has at least two elements

theorem locallyArcConnectedSpace

TopologyByExample.Telophase.locallyArcConnectedSpace

The telophase space is locally arc connected.

theorem Telophase.locallyArcConnectedSpace : LocallyArcConnectedSpace Telophase
Proof
:= by
  let : LocallyArcConnectedSpace unitInterval := locallyArcConnectedSpace_unitInterval
  exact WithOrigins.locallyArcConnectedSpace

On this site: The telophase space is locally arc connected

theorem not_arcConnectedSpace

TopologyByExample.Telophase.not_arcConnectedSpace

The two copies of the endpoint prevent arc connectedness of the telophase space.

theorem Telophase.not_arcConnectedSpace : ¬ ArcConnectedSpace Telophase
Proof
:=
  WithOrigins.not_arcConnectedSpace Subtype.val continuous_subtypeVal Subtype.val_injective

On this site: The telophase space is not arc connected