Lean library · module TopologyByExample.Theorems.TangentDiscArcs

Local arcs in the tangent disc topologies

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_insert_of_arcJoined

TopologyByExample.arcConnectedSpace_insert_of_arcJoined

An arc-connected subset stays arc connected when a point is adjoined that can be joined to it by an arc in the enlarged subspace.

theorem arcConnectedSpace_insert_of_arcJoined {X : Type*} [TopologicalSpace X] [T2Space X]
    {D : Set X} (hD : ArcConnectedSpace D) {x z : X} (hz : z ∈ D)
    (h : ArcJoined (⟨x, mem_insert x D⟩ : (insert x D : Set X)) ⟨z, mem_insert_of_mem _ hz⟩) :
    ArcConnectedSpace (insert x D : Set X)
Proof
:= by
  let c : (insert x D : Set X) := ⟨z, mem_insert_of_mem _ hz⟩
  have hub (y : (insert x D : Set X)) : ArcJoined y c := by
    rcases y.property with hy | hy
    · exact (Subtype.ext hy : y = ⟨x, mem_insert _ _⟩) ▸ h
    · have hA : ArcJoined (⟨y.val, hy⟩ : D) ⟨z, hz⟩ := hD.exists_injective_path _ _
      exact hA.map (f := Set.inclusion (subset_insert x D)) (by fun_prop)
        (Set.inclusion_injective _)
  exact ⟨fun y w ↦ (hub y).trans (hub w).symm⟩

theorem arcConnectedSpace_disc

TopologyByExample.Niemytzki.arcConnectedSpace_disc

Each open tangent 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
    refine ⟨fun hp ↦ ⟨p.toPlane, hp, ofPlane_toPlane p⟩, ?_⟩
    rintro ⟨q, hq, rfl⟩
    exact (ofPlane_mem_disc_iff (pos_of_mem_planeDisc hq hr.le).le).mpr hq
  rw [he]
  have hp (q) (hq : q ∈ planeDisc x r) := pos_of_mem_planeDisc hq hr.le
  apply arcConnectedSpace_image_of_continuousOn (continuousOn_ofPlane hp)
  · intro z hz w hw h
    simpa only [toPlane_ofPlane (hp _ hz).le, toPlane_ofPlane (hp _ hw).le] using congrArg toPlane h
  · exact arcConnectedSpace_of_starConvex (starConvex_planeDisc x r)

theorem arcConnectedSpace_insert_disc

TopologyByExample.Niemytzki.arcConnectedSpace_insert_disc

Adding the point of tangency to a disc preserves its arc connectedness.

theorem arcConnectedSpace_insert_disc (x : ℝ) {r : ℝ} (hr : 0 < r) :
    ArcConnectedSpace (insert (axisPt x) (disc x r) : Set Niemytzki)
Proof
:= by
  let S : Set Niemytzki := insert (axisPt x) (disc x r)
  have hc : ofPlane (x, r) ∈ disc x r := ofPlane_mem_disc hr (by linarith)
  apply arcConnectedSpace_insert_of_arcJoined (arcConnectedSpace_disc x hr) hc
  let f (t : unitInterval) := ofPlane (x, r * t)
  have hm (t : unitInterval) : f t ∈ S := by
    rcases t.property.1.eq_or_lt with ht | ht
    · left
      simp only [f, ← ht, mul_zero, axisPt]
    · right
      exact ofPlane_mem_disc (mul_pos hr ht) (by nlinarith [t.property.2])
  have hf : Continuous f := (continuous_ofPlane_vertical x).comp (by fun_prop)
  let γ : Path (⟨axisPt x, mem_insert _ _⟩ : S) ⟨ofPlane (x, r), mem_insert_of_mem _ hc⟩ :=
    { toFun := fun t ↦ ⟨f t, hm t⟩
      continuous_toFun := hf.subtype_mk _
      source' := Subtype.ext (by simp [f, axisPt])
      target' := Subtype.ext (by simp [f]) }
  intro _
  refine ⟨γ, fun s t h ↦ Subtype.ext ?_⟩
  have he := congrArg (fun w : S ↦ w.val.toPlane.2) h
  change (ofPlane (x, r * (s : ℝ))).toPlane.2 = (ofPlane (x, r * (t : ℝ))).toPlane.2 at he
  rw [toPlane_ofPlane (mul_nonneg hr.le s.property.1),
    toPlane_ofPlane (mul_nonneg hr.le t.property.1)] at he
  exact mul_left_cancel₀ hr.ne' he

theorem locallyArcConnectedSpace

TopologyByExample.Niemytzki.locallyArcConnectedSpace

The Niemytzki plane is locally arc connected.

theorem locallyArcConnectedSpace : LocallyArcConnectedSpace Niemytzki
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: The Niemytzki plane is locally arc connected

theorem isOpen_carrier

TopologyByExample.RationalTangentDisc.isOpen_carrier

The open upper half-plane together with the rational points of the axis is open in the Niemytzki plane.

theorem isOpen_carrier : IsOpen carrier
Proof
:= by
  rw [isOpen_iff_mem_nhds]
  intro p hp
  by_cases h : p.toPlane.2 = 0
  · obtain ⟨q, rfl⟩ := exists_rat_of_mem_carrier hp h
    exact Filter.mem_of_superset ((Niemytzki.hasBasis_nhds_axisPt q).mem_of_mem one_pos)
      (insert_disc_subset_carrier q 1)
  · exact Filter.mem_of_superset (Niemytzki.isOpen_compl_axis.mem_nhds h)
      fun z hz ↦ mem_carrier_of_pos (z.snd_nonneg.lt_of_ne (Ne.symm hz))

theorem locallyArcConnectedSpace

TopologyByExample.RationalTangentDisc.locallyArcConnectedSpace

The rational tangent disc space is locally arc connected.

theorem locallyArcConnectedSpace : LocallyArcConnectedSpace RationalTangentDisc
Proof
:= by
  let := Niemytzki.locallyArcConnectedSpace
  exact locallyArcConnectedSpace_open isOpen_carrier

On this site: The rational tangent disc topology is locally arc connected