Lean library · module TopologyByExample.Theorems.DoubledCircleArcs

Injective paths on the circle with a multiplied point

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 {ι : Type*}

definition loop

TopologyByExample.WithOrigins.loop

private noncomputable def loop (t : unitInterval)
:= Circle.exp (2 * π * t.val)

theorem loop_zero

TopologyByExample.WithOrigins.loop_zero

private theorem loop_zero : loop 0 = 1
Proof
:= by simp [loop]

theorem loop_one

TopologyByExample.WithOrigins.loop_one

private theorem loop_one : loop 1 = 1
Proof
:= by simp [loop]

theorem continuous_loop

TopologyByExample.WithOrigins.continuous_loop

private theorem continuous_loop : Continuous loop
Proof
:= by unfold loop; fun_prop

theorem loop_injective_except_one

TopologyByExample.WithOrigins.loop_injective_except_one

private theorem loop_injective_except_one {s t : unitInterval} (hs : s ≠ 1) (ht : t ≠ 1)
    (he : loop s = loop t) : s = t
Proof
:= by
  have hpi : 0 < 2 * π := by positivity
  have hlt {u : unitInterval} (hu : u ≠ 1) : u.val < 1 :=
    lt_of_le_of_ne u.property.2 (fun he ↦ hu (Subtype.ext he))
  have hmem {u : unitInterval} (hu : u ≠ 1) : 2 * π * u.val ∈ Ico 0 (2 * π) :=
    ⟨mul_nonneg hpi.le u.property.1, by nlinarith [mul_lt_mul_of_pos_left (hlt hu) hpi]⟩
  have hh := Circle.exp_injOn_Ico (a := 0) (b := 2 * π) (by simp) (hmem hs) (hmem ht) he
  exact Subtype.ext (mul_left_cancel₀ hpi.ne' hh)

theorem arc_between_origins

TopologyByExample.WithOrigins.arc_between_origins

private theorem arc_between_origins (i j : ι) (hij : i ≠ j) :
    ∃ p : Path (origin i : WithOrigins Circle 1 ι) (origin j), Function.Injective p
Proof
:= by
  classical
  let f (t : unitInterval) : WithOrigins Circle 1 ι :=
    if t = 1 then origin j else chart i (loop t)
  have hf : Continuous f := by
    apply continuous_iff_continuousAt.mpr
    intro t
    by_cases h1 : t = 1
    · subst t
      apply ((continuous_chart j).comp continuous_loop).continuousAt.congr_of_eventuallyEq
      filter_upwards [isOpen_ne.mem_nhds (show (1 : unitInterval) ≠ 0 by simp)] with s hs
      by_cases h : s = 1
      · subst s
        simp [f, loop_one, chart_apply, origin]
      · have hn : loop s ≠ 1 := fun he ↦ hs
          (loop_injective_except_one h (by simp) (he.trans loop_zero.symm))
        simpa [f, h, Function.comp_def, chart_apply] using mk_eq_mk_of_ne hn i j
    · apply ((continuous_chart i).comp continuous_loop).continuousAt.congr_of_eventuallyEq
      filter_upwards [isOpen_ne.mem_nhds h1] with s hs
      simp [f, hs]
  let p : Path (origin i) (origin j) :=
    ⟨⟨f, hf⟩, by simp [f, loop_zero, chart_apply, origin], by simp [f]⟩
  refine ⟨p, fun s t he ↦ ?_⟩
  change f s = f t at he
  by_cases hs : s = 1
  · subst s
    by_contra hn
    have ht : t ≠ 1 := Ne.symm hn
    have hr : (origin j : WithOrigins Circle 1 ι) ∈ range (chart i) :=
      ⟨loop t, by simpa [f, ht] using he.symm⟩
    exact hij (origin_mem_range_chart_iff.mp hr).symm
  · by_cases ht : t = 1
    · subst t
      have hr : (origin j : WithOrigins Circle 1 ι) ∈ range (chart i) :=
        ⟨loop s, by simpa [f, hs] using he⟩
      exact (hij (origin_mem_range_chart_iff.mp hr).symm).elim
    · exact loop_injective_except_one hs ht (chart_injective i (by simpa [f, hs, ht] using he))

theorem arcConnectedSpace_circle

TopologyByExample.WithOrigins.arcConnectedSpace_circle

Replacing the point one of a circle by any number of origins preserves arc connectedness.

theorem arcConnectedSpace_circle : ArcConnectedSpace (WithOrigins Circle 1 ι)
Proof
:= by
  refine ⟨fun a b hab ↦ ?_⟩
  obtain ⟨x, i, rfl⟩ := exists_mk a
  obtain ⟨y, j, rfl⟩ := exists_mk b
  have inChart {x y : Circle} (k : ι) (hne : x ≠ y) :
      ∃ p : Path (mk x k : WithOrigins Circle 1 ι) (mk y k), Function.Injective p := by
    obtain ⟨p, hp⟩ := ArcConnectedSpace.exists_injective_path x y hne
    exact ⟨p.map (continuous_chart k), (chart_injective k).comp hp⟩
  by_cases hx : x = 1
  · subst x
    by_cases hy : y = 1
    · subst y
      exact arc_between_origins i j (fun h ↦ hab (h ▸ rfl))
    · obtain ⟨p, hp⟩ := inChart i (Ne.symm hy)
      exact ⟨p.cast rfl (mk_eq_mk_of_ne hy j i), hp⟩
  · have hxy : x ≠ y := by
      rintro rfl
      exact hab (mk_eq_mk_of_ne hx i j)
    obtain ⟨p, hp⟩ := inChart j hxy
    exact ⟨p.cast (mk_eq_mk_of_ne hx i j) rfl, hp⟩

On this site: The circle with two origins is arc connected