Lean library · module TopologyByExample.Theorems.ArcPathTools
Injective paths on the circle
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.
theorem circle_chart_at_infinity
TopologyByExample.circle_chart_at_infinity
A circle point may be prescribed as the point at infinity in a real-line chart.
theorem circle_chart_at_infinity (c : Circle) :
∃ h : OnePoint ℝ ≃ₜ Circle, h ∞ = c
Proof
:= by
let e := Circle.nonempty_onePoint_real_homeomorph.some
refine ⟨e.trans (Homeomorph.mulLeft (c * (e ∞)⁻¹)), ?_⟩
simp
instance arcConnectedSpace_circle
TopologyByExample.arcConnectedSpace_circle
Any two distinct circle points lie in a common injective real-line chart.
instance arcConnectedSpace_circle : ArcConnectedSpace Circle
Proof
:= by
let : Infinite Circle := Circle.infinite
refine ⟨fun u v huv ↦ ?_⟩
obtain ⟨c, hc⟩ := (Set.toFinite ({u, v} : Set Circle)).exists_notMem
have hcu : u ≠ c := fun h ↦ hc (by simp [← h])
have hcv : v ≠ c := fun h ↦ hc (by simp [← h])
obtain ⟨h, hInf⟩ := circle_chart_at_infinity c
have huInf : h.symm u ≠ ∞ := fun he ↦ hcu (by rw [← hInf, ← he]; simp)
have hvInf : h.symm v ≠ ∞ := fun he ↦ hcv (by rw [← hInf, ← he]; simp)
obtain ⟨r, hr⟩ := OnePoint.ne_infty_iff_exists.mp huInf
obtain ⟨s, hs⟩ := OnePoint.ne_infty_iff_exists.mp hvInf
have hru : h (r : OnePoint ℝ) = u := by rw [hr]; simp
have hsv : h (s : OnePoint ℝ) = v := by rw [hs]; simp
have hrs : r ≠ s := fun he ↦ huv (by rw [← hru, ← hsv, he])
let f : ℝ → Circle := fun t ↦ h (t : OnePoint ℝ)
have hf : Continuous f := h.continuous.comp OnePoint.continuous_coe
have hinj : Function.Injective f := h.injective.comp OnePoint.coe_injective
let p : Path (f r) (f s) := (Path.segment r s).map hf
have hp : Function.Injective p := hinj.comp (Path.segment_injective_of_ne hrs)
exact ⟨p.cast hru.symm hsv.symm, hp⟩
On this site: The circle is arc connected
theorem injective_path_trans
TopologyByExample.injective_path_trans
Concatenation preserves injectivity when the two arcs meet only at their common endpoint.
theorem injective_path_trans {X : Type*} [TopologicalSpace X] {x y z : X}
(p : Path x y) (q : Path y z) (hp : Function.Injective p) (hq : Function.Injective q)
(hmeet : ∀ s t, p s = q t → s = 1 ∧ t = 0) : Function.Injective (p.trans q)
Proof
:= by
intro s t h
rw [Path.trans_apply, Path.trans_apply] at h
split_ifs at h with hs ht ht
· have he := congrArg Subtype.val (hp h)
apply Subtype.ext
change 2 * (s : ℝ) = 2 * (t : ℝ) at he
linarith
· obtain ⟨h1, h0⟩ := hmeet _ _ h
have he1 := congrArg Subtype.val h1
have he0 := congrArg Subtype.val h0
apply Subtype.ext
change 2 * (s : ℝ) = 1 at he1
change 2 * (t : ℝ) - 1 = 0 at he0
linarith
· obtain ⟨h1, h0⟩ := hmeet _ _ h.symm
have he1 := congrArg Subtype.val h1
have he0 := congrArg Subtype.val h0
apply Subtype.ext
change 2 * (t : ℝ) = 1 at he1
change 2 * (s : ℝ) - 1 = 0 at he0
linarith
· have he := congrArg Subtype.val (hq h)
apply Subtype.ext
change 2 * (s : ℝ) - 1 = 2 * (t : ℝ) - 1 at he
linarith
theorem arcConnectedSpace_of_section
TopologyByExample.arcConnectedSpace_of_section
Arc-connected fibers attached to an arc-connected section give arc connectedness, provided the fiber arcs stay in their fibers.
theorem arcConnectedSpace_of_section {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
[ArcConnectedSpace Y] (d : X → Y) (e : Y → X) (he : Continuous e)
(hde : ∀ u, d (e u) = u)
(hrad : ∀ x y, d x = d y → x ≠ y →
∃ p : Path x y, Function.Injective p ∧ ∀ t, d (p t) = d x) : ArcConnectedSpace X
Proof
:= by
have hinj : Function.Injective e := by
intro u v h
simpa only [hde] using congrArg d h
refine ⟨fun x y hxy ↦ ?_⟩
by_cases hdir : d x = d y
· obtain ⟨p, hp, _⟩ := hrad x y hdir hxy
exact ⟨p, hp⟩
obtain ⟨c, hc⟩ := ArcConnectedSpace.exists_injective_path (d x) (d y) hdir
let q : Path (e (d x)) (e (d y)) := c.map he
have hq : Function.Injective q := hinj.comp hc
have hqb : ∀ t, e (d (q t)) = q t := by
intro t
change e (d (e (c t))) = e (c t)
rw [hde]
have hk : ∃ k : Path x (e (d y)), Function.Injective k ∧
∀ t, d (k t) = d x ∨ e (d (k t)) = k t := by
by_cases hx : x = e (d x)
· exact ⟨q.cast hx rfl, hq, fun t ↦ Or.inr (hqb t)⟩
· obtain ⟨p, hp, hpdir⟩ := hrad x (e (d x)) (hde _).symm hx
have hmeet : ∀ s t, p s = q t → s = 1 ∧ t = 0 := by
intro s t h
have hb : e (d (p s)) = p s := by rw [h]; exact hqb t
have hps : p s = e (d x) := by rw [hpdir s] at hb; exact hb.symm
exact ⟨hp (hps.trans p.target.symm), hq (h.symm.trans (hps.trans q.source.symm))⟩
refine ⟨p.trans q, injective_path_trans p q hp hq hmeet, fun t ↦ ?_⟩
rw [Path.trans_apply]
split_ifs
· exact Or.inl (hpdir _)
· exact Or.inr (hqb _)
obtain ⟨k, hk, hkind⟩ := hk
by_cases hy : y = e (d y)
· exact ⟨k.cast rfl hy, hk⟩
obtain ⟨p, hp, hpdir⟩ := hrad (e (d y)) y (hde _) (Ne.symm hy)
have hpdir' : ∀ t, d (p t) = d y := by intro t; rw [hpdir t, hde]
have hmeet : ∀ s t, k s = p t → s = 1 ∧ t = 0 := by
intro s t h
have hb : e (d (k s)) = k s := by
rcases hkind s with hd | hb
· exact (hdir (hd.symm.trans ((congrArg d h).trans (hpdir' t)))).elim
· exact hb
have hpt : p t = e (d y) := by
rw [h, hpdir' t] at hb
exact hb.symm
exact ⟨hk (h.trans (hpt.trans k.target.symm)), hp (hpt.trans p.source.symm)⟩
exact ⟨k.trans p, injective_path_trans k p hk hp hmeet⟩
theorem arcConnectedSpace_of_continuous_bijective
TopologyByExample.arcConnectedSpace_of_continuous_bijective
A continuous bijection transports injective paths.
theorem arcConnectedSpace_of_continuous_bijective {X Y : Type*}
[TopologicalSpace X] [TopologicalSpace Y] [ArcConnectedSpace X]
{f : X → Y} (hf : Continuous f) (hinj : Function.Injective f) (hsurj : Function.Surjective f) :
ArcConnectedSpace Y
Proof
:= by
refine ⟨fun y z hyz ↦ ?_⟩
obtain ⟨x, rfl⟩ := hsurj y
obtain ⟨w, rfl⟩ := hsurj z
obtain ⟨p, hp⟩ := ArcConnectedSpace.exists_injective_path x w (fun h ↦ hyz (congrArg f h))
exact ⟨p.map hf, hinj.comp hp⟩
theorem arcConnectedSpace_image
TopologyByExample.arcConnectedSpace_image
An injective continuous map preserves arc connectedness on its image.
theorem arcConnectedSpace_image {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
{f : X → Y} (hf : Continuous f) (hinj : Function.Injective f)
(s : Set X) [ArcConnectedSpace s] : ArcConnectedSpace (f '' s)
Proof
:= by
let g : s → f '' s := fun x ↦ ⟨f x, mem_image_of_mem f x.property⟩
apply arcConnectedSpace_of_continuous_bijective (f := g)
((hf.comp continuous_subtypeVal).subtype_mk _)
· intro x y h
exact Subtype.ext (hinj (congrArg Subtype.val h))
· rintro ⟨y, x, hx, rfl⟩
exact ⟨⟨x, hx⟩, rfl⟩
instance locallyArcConnectedSpace_circle
TopologyByExample.locallyArcConnectedSpace_circle
Real-line charts give an open arc-connected neighborhood basis on the circle.
instance locallyArcConnectedSpace_circle : LocallyArcConnectedSpace Circle
Proof
:= by
let : Infinite Circle := Circle.infinite
let : LocallyArcConnectedSpace ℝ := locallyArcConnectedSpace_of_normedSpace
refine ⟨fun x U hU hx ↦ ?_⟩
obtain ⟨c, hc⟩ := (Set.finite_singleton x).exists_notMem
have hxc : x ≠ c := fun h ↦ hc (h ▸ mem_singleton x)
obtain ⟨h, hInf⟩ := circle_chart_at_infinity c
have hxInf : h.symm x ≠ ∞ := fun he ↦ hxc (by rw [← hInf, ← he]; simp)
obtain ⟨r, hr⟩ := OnePoint.ne_infty_iff_exists.mp hxInf
let f : ℝ → Circle := fun t ↦ h (t : OnePoint ℝ)
have hfr : f r = x := by change h (r : OnePoint ℝ) = x; rw [hr]; simp
have hf : Continuous f := h.continuous.comp OnePoint.continuous_coe
have hfi : Function.Injective f := h.injective.comp OnePoint.coe_injective
have hfo : IsOpenMap f := h.isOpenMap.comp OnePoint.isOpenEmbedding_coe.isOpenMap
obtain ⟨W, hWo, hrW, hWU, hWa⟩ := LocallyArcConnectedSpace.exists_open r (f ⁻¹' U)
(hU.preimage hf) (by change f r ∈ U; rw [hfr]; exact hx)
let : ArcConnectedSpace W := hWa
exact ⟨f '' W, hfo W hWo, ⟨r, hrW, hfr⟩, image_subset_iff.mpr hWU,
arcConnectedSpace_image hf hfi W⟩
On this site: The circle is locally arc connected
theorem locallyArcConnectedSpace_open
TopologyByExample.locallyArcConnectedSpace_open
Local arc connectedness passes to open subspaces.
theorem locallyArcConnectedSpace_open {X : Type*} [TopologicalSpace X]
[LocallyArcConnectedSpace X] {s : Set X} (hs : IsOpen s) :
LocallyArcConnectedSpace s
Proof
:= by
refine ⟨fun x U hU hx ↦ ?_⟩
have ho : IsOpen (Subtype.val '' U : Set X) := hs.isOpenEmbedding_subtypeVal.isOpenMap U hU
obtain ⟨V, hVo, hxV, hVU, hVa⟩ := LocallyArcConnectedSpace.exists_open (x : X)
(Subtype.val '' U) ho ⟨x, hx, rfl⟩
have hVs : V ⊆ s := hVU.trans (by rintro _ ⟨y, _, rfl⟩; exact y.property)
let f : V → (Subtype.val ⁻¹' V : Set s) := fun y ↦ ⟨⟨y, hVs y.property⟩, y.property⟩
let : ArcConnectedSpace V := hVa
refine ⟨Subtype.val ⁻¹' V, hVo.preimage continuous_subtypeVal, hxV, ?_, ?_⟩
· intro y hy
obtain ⟨z, hz, he⟩ := hVU hy
exact (Subtype.ext he : z = y) ▸ hz
· apply arcConnectedSpace_of_continuous_bijective (f := f)
((continuous_subtypeVal.subtype_mk _).subtype_mk _)
· intro y z h
exact Subtype.ext (congrArg (fun w ↦ (w.val : X)) h)
· intro y
exact ⟨⟨y.val, y.property⟩, rfl⟩