Lean library · module TopologyByExample.Theorems.EarringArcs
Arc-connected neighbourhoods in the Hawaiian earring
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 arcConnectedSpace_left
TopologyByExample.HawaiianEarring.arcConnectedSpace_left
private theorem arcConnectedSpace_left {δ : ℝ} (hδ : 0 < δ) :
ArcConnectedSpace {p : HawaiianEarring | p.val.1 < δ}
Proof
:= by
let B := {p : HawaiianEarring | p.val.1 < δ}
let o : B := ⟨origin, hδ⟩
suffices h : ∀ y : B, ArcJoined o y from ⟨fun a b ↦ (h a).symm.trans (h b)⟩
intro y
obtain ⟨n, hn⟩ := mem_iUnion.mp y.val.property
obtain ⟨σ, hσ, he⟩ := exists_arc hn
have hx := fst_mem_Icc hn
let f : Icc 0 y.val.val.1 → B := fun t ↦
⟨⟨arc (radius n) σ t, mem_iUnion.mpr ⟨n, arc_mem_circle hσ ⟨t.property.1,
t.property.2.trans hx.2⟩⟩⟩, t.property.2.trans_lt y.property⟩
have hf : Continuous f :=
(((continuous_arc _ _).comp continuous_subtypeVal).subtype_mk _).subtype_mk _
have hi : Function.Injective f := fun a b h ↦ Subtype.ext
(congrArg (fun z : B ↦ z.val.val.1) h)
let a : Icc 0 y.val.val.1 := ⟨0, le_rfl, hx.1⟩
let b : Icc 0 y.val.val.1 := ⟨_, hx.1, le_rfl⟩
have hab : ArcJoined a b :=
(arcConnectedSpace_of_convex (convex_Icc (0 : ℝ) y.val.val.1)).exists_injective_path a b
have h := hab.map hf hi
have ho : f a = o := Subtype.ext (Subtype.ext (arc_zero _ _))
have hy : f b = y := Subtype.ext (Subtype.ext he.symm)
rwa [ho, hy] at h
definition circleChart
TopologyByExample.HawaiianEarring.circleChart
private noncomputable def circleChart (n : ℕ) (r : ℝ) : HawaiianEarring
:=
⟨lineMap n r, mem_iUnion.mpr ⟨n, lineMap_mem_circle n r⟩⟩
theorem inv_chart
TopologyByExample.HawaiianEarring.inv_chart
private theorem inv_chart (n : ℕ) (r : ℝ) :
inversion (circleChart n r) = (((n : ℝ) + 1) / 2, r)
Proof
:=
inversion_inversion (fun h ↦ by
have he := congrArg Prod.fst h
change ((n : ℝ) + 1) / 2 = 0 at he
linarith [Nat.cast_nonneg (α := ℝ) n])
theorem chart_ne_zero
TopologyByExample.HawaiianEarring.chart_ne_zero
private theorem chart_ne_zero (n : ℕ) (r : ℝ) : (circleChart n r).val ≠ (0, 0)
Proof
:= by
intro h
have he := congrArg Prod.fst (inv_chart n r)
rw [h] at he
simp only [inversion, zero_pow, ne_eq, OfNat.ofNat_ne_zero, not_false_eq_true,
add_zero, div_zero] at he
linarith [Nat.cast_nonneg (α := ℝ) n]
theorem isOpenEmbedding_circleChart
TopologyByExample.HawaiianEarring.isOpenEmbedding_circleChart
private theorem isOpenEmbedding_circleChart (n : ℕ) : IsOpenEmbedding (circleChart n)
Proof
:= by
have hf : Continuous (circleChart n) := (continuous_lineMap n).subtype_mk _
have hi : Function.Injective (circleChart n) := by
intro a b h
have he := congrArg (fun z : HawaiianEarring ↦ (inversion z).2) h
simpa only [inv_chart] using he
refine IsOpenEmbedding.of_continuous_injective_isOpenMap hf hi ?_
intro A hA
rw [isOpen_iff_mem_nhds]
rintro z ⟨r, hr, rfl⟩
have hn0 := chart_ne_zero n r
have hc : ContinuousAt (fun p : HawaiianEarring ↦ inversion p.val) (circleChart n r) :=
(continuousAt_inversion hn0).comp continuous_subtypeVal.continuousAt
let c := ((n : ℝ) + 1) / 2
have ht : ∀ᶠ z : HawaiianEarring in 𝓝 (circleChart n r),
z.val ≠ (0, 0) ∧ (inversion z).1 ∈ ball c (1 / 4) ∧ (inversion z).2 ∈ A := by
apply Filter.Eventually.and ((isOpen_ne.preimage continuous_subtypeVal).mem_nhds hn0)
apply Filter.Eventually.and
· apply hc.fst.preimage_mem_nhds
rw [inv_chart]
exact ball_mem_nhds _ (by norm_num)
· apply hc.snd.preimage_mem_nhds
rw [inv_chart]
exact hA.mem_nhds hr
filter_upwards [ht] with z hz
obtain ⟨m, hm⟩ := mem_iUnion.mp z.property
have hclose := hz.2.1
rw [mem_ball, inversion_fst hm hz.1, Real.dist_eq, abs_lt] at hclose
have hm' : (m : ℝ) < n + 1 := by dsimp [c] at hclose; linarith
have hn' : (n : ℝ) < m + 1 := by dsimp [c] at hclose; linarith
have hm'' : m < n + 1 := by exact_mod_cast hm'
have hn'' : n < m + 1 := by exact_mod_cast hn'
have : m = n := by omega
subst m
exact ⟨_, hz.2.2, Subtype.ext (eq_lineMap hm hz.1).symm⟩
theorem locallyArcConnectedSpace
TopologyByExample.HawaiianEarring.locallyArcConnectedSpace
The Hawaiian earring is locally arc connected.
theorem locallyArcConnectedSpace : LocallyArcConnectedSpace HawaiianEarring
Proof
:= by
let : LocallyArcConnectedSpace ℝ := locallyArcConnectedSpace_of_normedSpace
refine ⟨fun p U hU hp ↦ ?_⟩
by_cases h : p.val = (0, 0)
· obtain ⟨V, hV, hVU⟩ := (mem_nhds_subtype _ _ _).mp (hU.mem_nhds hp)
rw [h] at hV
obtain ⟨ε, hε, hball⟩ := Metric.mem_nhds_iff.mp hV
let δ := min ε (ε ^ 2 / 2)
have hδ : 0 < δ := lt_min hε (by positivity)
refine ⟨_, isOpen_lt (continuous_fst.comp continuous_subtypeVal) continuous_const,
by simpa [h] using hδ, ?_, arcConnectedSpace_left hδ⟩
intro y hy
have hscale : 2 * δ ≤ ε ^ 2 := by
have := min_le_right ε (ε ^ 2 / 2)
dsimp [δ]
linarith
exact hVU (hball (dist_zero_lt y.property hε (min_le_left _ _) hscale hy))
· obtain ⟨n, hn⟩ := mem_iUnion.mp p.property
have he : p = circleChart n (inversion p).2 := Subtype.ext (eq_lineMap hn h)
exact he ▸ LocallyArcConnectedSpace.exists_open_image (isOpenEmbedding_circleChart n)
(inversion p).2 hU (he ▸ hp)
On this site: The Hawaiian earring is locally arc connected