Lean library · module TopologyByExample.Theorems.SineCurveArcs
Arcs in the extended sine curve and the Warsaw circle
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_union
TopologyByExample.arcConnectedSpace_union
Two intersecting arc-connected subsets of a Hausdorff space have arc-connected union.
theorem arcConnectedSpace_union {X : Type*} [TopologicalSpace X] [T2Space X] {s t : Set X}
(hs : ArcConnectedSpace s) (ht : ArcConnectedSpace t) (hne : (s ∩ t).Nonempty) :
ArcConnectedSpace (s ∪ t : Set X)
Proof
:= by
obtain ⟨u, hus, hut⟩ := hne
let o : (s ∪ t : Set X) := ⟨u, Or.inl hus⟩
have liftArc {a : Set X} (ha : a ⊆ s ∪ t) (hA : ArcConnectedSpace a) (hu : u ∈ a)
(z : (s ∪ t : Set X)) (hz : z.val ∈ a) : ArcJoined o z := by
have h : ArcJoined (⟨u, hu⟩ : a) ⟨z.val, hz⟩ := hA.exists_injective_path _ _
exact h.map (continuous_inclusion ha) (inclusion_injective ha)
have h (z : (s ∪ t : Set X)) : ArcJoined o z := z.property.elim
(liftArc subset_union_left hs hus z) (liftArc subset_union_right ht hut z)
exact ⟨fun x y ↦ (h x).symm.trans (h y)⟩
On this site: Theorem: The union of two intersecting arc connected subspaces of a Hausdorff space is arc connected
theorem arcConnectedSpace_graph
TopologyByExample.arcConnectedSpace_graph
private theorem arcConnectedSpace_graph : ArcConnectedSpace graph
Proof
:=
arcConnectedSpace_image_of_continuousOn (continuousOn_graphMap.mono Ioc_subset_Ioi_self)
(fun _ _ _ _ h ↦ congrArg Prod.fst h) (arcConnectedSpace_of_convex (convex_Ioc _ _))
theorem arcConnectedSpace
TopologyByExample.ExtendedTopologistsSineCurve.arcConnectedSpace
The extended topologist's sine curve is arc connected.
theorem ExtendedTopologistsSineCurve.arcConnectedSpace :
ArcConnectedSpace ExtendedTopologistsSineCurve
Proof
:= by
have hseg : ArcConnectedSpace (limitSegment ∪ topSegment : Set (ℝ × ℝ)) :=
arcConnectedSpace_union
(arcConnectedSpace_of_convex ((convex_singleton _).prod (convex_Icc _ _)))
(arcConnectedSpace_of_convex ((convex_Icc _ _).prod (convex_singleton _)))
⟨(0, 1), ⟨rfl, by norm_num, le_rfl⟩, ⟨le_rfl, zero_le_one⟩, rfl⟩
have hpi : 2 / π ∈ Ioc (0 : ℝ) 1 := ⟨by positivity, (div_le_one pi_pos).2 two_le_pi⟩
have hsin : sin (2 / π)⁻¹ = 1 := by rw [inv_div, sin_pi_div_two]
change ArcConnectedSpace ((graph ∪ limitSegment) ∪ topSegment : Set (ℝ × ℝ))
rw [union_assoc]
exact arcConnectedSpace_union arcConnectedSpace_graph hseg ⟨(2 / π, 1),
hsin ▸ mk_mem_graph hpi, Or.inr ⟨⟨hpi.1.le, hpi.2⟩, rfl⟩⟩
On this site: The extended topologist's sine curve is arc connected
theorem arcConnectedSpace
TopologyByExample.WarsawCircle.arcConnectedSpace
The Warsaw circle is arc connected.
theorem WarsawCircle.arcConnectedSpace : ArcConnectedSpace WarsawCircle
Proof
:= by
have hsin : (-2 : ℝ) ≤ sin 1 := by linarith [neg_one_le_sin 1]
have h1 : ArcConnectedSpace ({0} ×ˢ Icc (-2) 1 : Set (ℝ × ℝ)) :=
arcConnectedSpace_of_convex ((convex_singleton _).prod (convex_Icc _ _))
have h2 : ArcConnectedSpace (Icc 0 1 ×ˢ {-2} : Set (ℝ × ℝ)) :=
arcConnectedSpace_of_convex ((convex_Icc _ _).prod (convex_singleton _))
have h3 : ArcConnectedSpace ({1} ×ˢ Icc (-2) (sin 1) : Set (ℝ × ℝ)) :=
arcConnectedSpace_of_convex ((convex_singleton _).prod (convex_Icc _ _))
have harc : ArcConnectedSpace warsawArc :=
arcConnectedSpace_union (arcConnectedSpace_union h1 h2
⟨(0, -2), ⟨rfl, le_rfl, by norm_num⟩, ⟨le_rfl, zero_le_one⟩, rfl⟩) h3
⟨(1, -2), Or.inr ⟨⟨zero_le_one, le_rfl⟩, rfl⟩, rfl, le_rfl, hsin⟩
change ArcConnectedSpace warsawCircle
rw [warsawCircle_eq]
exact arcConnectedSpace_union arcConnectedSpace_graph harc ⟨(1, sin (1 : ℝ)⁻¹),
mk_mem_graph ⟨one_pos, le_rfl⟩, Or.inr ⟨rfl, by rw [inv_one]; exact hsin, by rw [inv_one]⟩⟩
On this site: The Warsaw circle is arc connected