Lean library · module TopologyByExample.Theorems.RadialMetricArcs

Arc-connected balls for the radial metric

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_ball

TopologyByExample.RadialMetric.arcConnectedSpace_ball

A ball with all its points collinear with its centre in the radial metric is arc connected.

private theorem arcConnectedSpace_ball {c : ℂ} {r : ℝ} (hr : 0 < r)
    (hc : ∀ y, toRad y ∈ ball (toRad c) r → Coll c y) :
    ArcConnectedSpace (ball (toRad c) r)
Proof
:= by
  let o : ball (toRad c) r := ⟨toRad c, mem_ball_self hr⟩
  suffices h : ∀ y : ball (toRad c) r, ArcJoined o y from
    ⟨fun x y ↦ (h x).symm.trans (h y)⟩
  rintro ⟨v, hv⟩
  obtain ⟨y, rfl⟩ := toRad.surjective v
  intro h
  have hne : y ≠ c := by rintro rfl; exact h rfl
  have hcol := hc _ hv
  let p := segPath hcol
  have hp (t : unitInterval) : p t ∈ ball (toRad c) r := by
    rw [segPath_apply, Metric.mem_ball, dist_comm, show toRad c = toRad (seg c y 0) by simp [seg],
      dist_seg hcol, zero_sub, abs_neg, abs_of_nonneg t.property.1]
    rw [Metric.mem_ball, dist_comm, dist_eq, rdist_of_coll hcol, norm_sub_rev] at hv
    exact (mul_le_of_le_one_left (norm_nonneg _) t.property.2).trans_lt hv
  let q : Path o ⟨_, hv⟩ :=
    { toFun := fun t ↦ ⟨p t, hp t⟩
      continuous_toFun := p.continuous.subtype_mk _
      source' := Subtype.ext p.source
      target' := Subtype.ext p.target }
  refine ⟨q, fun s t hst ↦ Subtype.ext ?_⟩
  have he : p s = p t := congrArg Subtype.val hst
  have hd : dist (p s) (p t) = 0 := dist_eq_zero.mpr he
  rw [segPath_apply, segPath_apply, dist_seg hcol, mul_eq_zero] at hd
  have hy : ‖y - c‖ ≠ 0 := norm_ne_zero_iff.mpr (sub_ne_zero.mpr hne)
  exact sub_eq_zero.mp (abs_eq_zero.mp (hd.resolve_right hy))

theorem locallyArcConnectedSpace

TopologyByExample.RadialMetric.locallyArcConnectedSpace

Small balls give an arc-connected neighbourhood basis for the radial metric.

theorem locallyArcConnectedSpace : LocallyArcConnectedSpace RadialMetric
Proof
:= by
  refine ⟨fun x U hU hx ↦ ?_⟩
  obtain ⟨c, rfl⟩ := toRad.surjective x
  obtain ⟨ε, hε, hsub⟩ := Metric.mem_nhds_iff.mp (hU.mem_nhds hx)
  by_cases hc : c = 0
  · subst c
    exact ⟨_, isOpen_ball, mem_ball_self hε, hsub,
      arcConnectedSpace_ball hε (fun y _ ↦ coll_zero_left y)⟩
  · let r := min ε ‖c‖
    have hr : 0 < r := lt_min hε (norm_pos_iff.mpr hc)
    refine ⟨_, isOpen_ball, mem_ball_self hr, (ball_subset_ball (min_le_left _ _)).trans hsub,
      arcConnectedSpace_ball hr ?_⟩
    intro y hy
    by_contra hn
    rw [mem_ball, dist_comm, dist_eq, rdist_of_not_coll hn] at hy
    exact (not_lt_of_ge ((min_le_right ε ‖c‖).trans (le_add_of_nonneg_right (norm_nonneg y)))) hy

On this site: The radial metric space is locally arc connected