Lean library · module TopologyByExample.Theorems.HalfDiscArcs

Local arcs in the half-disc topology

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

theorem arcConnectedSpace_disc

TopologyByExample.HalfDisc.arcConnectedSpace_disc

Each open half-disc is arc connected.

theorem arcConnectedSpace_disc (x : ℝ) {r : ℝ} (hr : 0 < r) : ArcConnectedSpace (disc x r)
Proof
:= by
  have he : disc x r = ofPlane '' planeDisc x r := by
    ext p
    exact ⟨fun hp ↦ ⟨p.toPlane, hp, ofPlane_toPlane p⟩,
      by rintro ⟨q, hq, rfl⟩; exact (ofPlane_mem_disc_iff hq.2.le).mpr hq⟩
  rw [he]
  apply arcConnectedSpace_image_of_continuousOn
    (continuousOn_ofPlane (V := planeDisc x r) (fun q hq ↦ hq.2))
  · intro z hz w hw h
    simpa only [toPlane_ofPlane hz.2.le, toPlane_ofPlane hw.2.le] using congrArg toPlane h
  · exact arcConnectedSpace_of_starConvex (starConvex_planeDisc x hr)

theorem arcConnectedSpace_insert_disc

TopologyByExample.HalfDisc.arcConnectedSpace_insert_disc

The open half-disc with its centre adjoined is arc connected.

theorem arcConnectedSpace_insert_disc (x : ℝ) {r : ℝ} (hr : 0 < r) :
    ArcConnectedSpace (insert (axisPt x) (disc x r) : Set HalfDisc)
Proof
:= by
  let S : Set HalfDisc := insert (axisPt x) (disc x r)
  have hc : ofPlane (x, r / 2) ∈ disc x r := ofPlane_mem_disc (half_pos hr) (by linarith)
  let c : S := ⟨_, mem_insert_of_mem _ hc⟩
  have hub (y : S) : ArcJoined y c := by
    rcases y.property with hy | hy
    · let f (t : unitInterval) := ofPlane (x, r / 2 * t)
      have hf : Continuous f := (continuous_ofPlane_vertical x).comp (by fun_prop)
      have hm (t : unitInterval) : f t ∈ S := by
        rcases (unitInterval.nonneg t).eq_or_lt with ht | ht
        · left
          simp only [f, ← ht, mul_zero, axisPt]
        · right
          exact ofPlane_mem_disc (by positivity) (by nlinarith [unitInterval.le_one t])
      let γ : Path y c :=
        { toFun := fun t ↦ ⟨f t, hm t⟩
          continuous_toFun := hf.subtype_mk _
          source' := Subtype.ext (by simpa [f, axisPt] using hy.symm)
          target' := Subtype.ext (by simp [f, c]) }
      intro _
      refine ⟨γ, fun s t h ↦ Subtype.ext ?_⟩
      have he := congrArg (fun w : S ↦ w.val.toPlane.2) h
      change (ofPlane (x, r / 2 * (s : ℝ))).toPlane.2 =
        (ofPlane (x, r / 2 * (t : ℝ))).toPlane.2 at he
      rw [toPlane_ofPlane (mul_nonneg (half_pos hr).le s.property.1),
        toPlane_ofPlane (mul_nonneg (half_pos hr).le t.property.1)] at he
      exact mul_left_cancel₀ (half_pos hr).ne' he
    · have harc : ArcJoined (⟨y.val, hy⟩ : disc x r) ⟨_, hc⟩ :=
        (arcConnectedSpace_disc x hr).exists_injective_path _ _
      exact harc.map (f := Set.inclusion (subset_insert (axisPt x) (disc x r)))
        (by fun_prop) (Set.inclusion_injective _)
  exact ⟨fun y z ↦ (hub y).trans (hub z).symm⟩

theorem locallyArcConnectedSpace

TopologyByExample.HalfDisc.locallyArcConnectedSpace

The half-disc topology is locally arc connected.

theorem locallyArcConnectedSpace : LocallyArcConnectedSpace HalfDisc
Proof
:= by
  refine ⟨fun p U hU hp ↦ ?_⟩
  by_cases h : p.toPlane.2 = 0
  · obtain ⟨x, rfl⟩ : ∃ x, p = axisPt x := ⟨_, eq_axisPt h⟩
    obtain ⟨r, hr, hrs⟩ := (hasBasis_nhds_axisPt x).mem_iff.mp (hU.mem_nhds hp)
    exact ⟨_, isOpen_insert_disc x hr, mem_insert _ _, hrs, arcConnectedSpace_insert_disc x hr⟩
  · let : LocallyArcConnectedSpace (ℝ × ℝ) := locallyArcConnectedSpace_of_normedSpace
    let : LocallyArcConnectedSpace {q : ℝ × ℝ // 0 < q.2} :=
      locallyArcConnectedSpace_open (isOpen_lt continuous_const continuous_snd)
    let q : {q : ℝ × ℝ // 0 < q.2} := ⟨p.toPlane, p.snd_nonneg.lt_of_ne (Ne.symm h)⟩
    have he : ofUpper q = p := ofPlane_toPlane p
    exact he ▸ LocallyArcConnectedSpace.exists_open_image isOpenEmbedding_ofUpper q hU (he ▸ hp)

On this site: Half-disc topology is locally arc connected