Lean library · module TopologyByExample.Theorems.PathToArc

Extracting an arc from a Hausdorff path

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] [T2Space X] {x y : X}

theorem injective_path_of_interval_fibres

TopologyByExample.PathLoopErasure.injective_path_of_interval_fibres

A path with interval fibres and distinct endpoints admits an injective reparametrisation.

theorem injective_path_of_interval_fibres (p : Path x y) (hxy : x ≠ y)
    (hinterval : ∀ s r t : unitInterval, s ≤ r → r ≤ t → p s = p t → p r = p s) :
    ∃ r : Path x y, Function.Injective r ∧ range r ⊆ range p
Proof
:= by
  classical
  obtain ⟨h, hc, hm, he⟩ := path_monotone_parameter p hinterval
  choose inv hinv using (fun z : range h ↦ z.property)
  let k : range h → X := fun z ↦ p (inv z)
  have hkval (t : unitInterval) : k ⟨h t, mem_range_self t⟩ = p t :=
    (he _ _).mp (hinv _)
  have hk : Continuous k := by
    have hquot := IsQuotientMap.of_surjective_continuous
      (Set.rangeFactorization_surjective (f := h))
      (hc.subtype_mk (fun t ↦ mem_range_self t))
    apply hquot.continuous_iff.mpr
    convert p.continuous using 1
    exact funext hkval
  have hki : Function.Injective k := by
    intro a b hab
    apply Subtype.ext
    exact (hinv a).symm.trans (((he _ _).mpr hab).trans (hinv b))
  have h01 : h 0 < h 1 := lt_of_le_of_ne (hm (show (0 : unitInterval) ≤ 1 from bot_le)) (by
    intro hh
    exact hxy (p.source.symm.trans (((he 0 1).mp hh).trans p.target)))
  let seg := Path.segment (h 0) (h 1)
  have hmem (t : unitInterval) : seg t ∈ range h := by
    apply (isPreconnected_range hc).ordConnected.out (mem_range_self 0) (mem_range_self 1)
    rw [← segment_eq_Icc h01.le, ← Path.range_segment]
    exact mem_range_self t
  let r : Path x y :=
    { toFun := fun t ↦ k ⟨seg t, hmem t⟩
      continuous_toFun := hk.comp (seg.continuous.subtype_mk hmem)
      source' := by
        simpa only [seg.source] using (hkval 0).trans p.source
      target' := by
        simpa only [seg.target] using (hkval 1).trans p.target }
  refine ⟨r, ?_, ?_⟩
  · intro s t hst
    have hs : seg s = seg t := congrArg Subtype.val (hki hst)
    exact Path.segment_injective_of_ne (ne_of_lt h01) hs
  · rintro _ ⟨t, rfl⟩
    exact ⟨inv ⟨seg t, hmem t⟩, rfl⟩

theorem path_contains_injective

TopologyByExample.PathLoopErasure.path_contains_injective

Every Hausdorff path between distinct points contains an injective path with those endpoints.

theorem path_contains_injective (p : Path x y) (hxy : x ≠ y) :
    ∃ r : Path x y, Function.Injective r ∧ range r ⊆ range p
Proof
:= by
  obtain ⟨q, hqp, hq⟩ := path_with_interval_fibres p
  obtain ⟨r, hr, hrq⟩ := injective_path_of_interval_fibres q hxy hq
  exact ⟨r, hr, hrq.trans hqp⟩

On this site: Theorem: A Hausdorff path contains an arc between its endpoints

theorem arcConnectedSpace_of_t2_pathPreconnected

TopologyByExample.arcConnectedSpace_of_t2_pathPreconnected

A Hausdorff path-preconnected space is arc connected.

theorem arcConnectedSpace_of_t2_pathPreconnected {X : Type*} [TopologicalSpace X]
    [T2Space X] [PathPreconnectedSpace X] : ArcConnectedSpace X
Proof
:= by
  refine ⟨fun x y hxy ↦ ?_⟩
  obtain ⟨p⟩ := PathPreconnectedSpace.joined x y
  obtain ⟨r, hr, _⟩ := PathLoopErasure.path_contains_injective p hxy
  exact ⟨r, hr⟩

On this site: Theorem: Hausdorff path connected spaces are arc connected

theorem locallyArcConnectedSpace_of_t2_locallyPathConnected

TopologyByExample.locallyArcConnectedSpace_of_t2_locallyPathConnected

A locally path-connected Hausdorff space is locally arc connected.

theorem locallyArcConnectedSpace_of_t2_locallyPathConnected {X : Type*} [TopologicalSpace X]
    [T2Space X] [LocallyPathConnectedSpace X] : LocallyArcConnectedSpace X
Proof
:= by
  refine ⟨fun x U hU hx ↦ ?_⟩
  let V := pathComponentIn U x
  have hV : IsPathConnected V := isPathConnected_pathComponentIn hx
  let : PathConnectedSpace V := isPathConnected_iff_pathConnectedSpace.mp hV
  exact ⟨V, hU.pathComponentIn x, mem_pathComponentIn_self hx,
    pathComponentIn_subset, arcConnectedSpace_of_t2_pathPreconnected⟩

On this site: Theorem: Hausdorff locally path connected spaces are locally arc connected