Lean library · module TopologyByExample.Theorems.ConvexLocalArcs
Local arc connectedness of convex subspaces
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 locallyArcConnectedSpace_of_convex
TopologyByExample.locallyArcConnectedSpace_of_convex
Convex subsets of real normed spaces are locally arc connected.
theorem locallyArcConnectedSpace_of_convex {E : Type*} [NormedAddCommGroup E]
[NormedSpace ℝ E] {s : Set E} (hs : Convex ℝ s) : LocallyArcConnectedSpace s
Proof
:= by
refine ⟨fun x U hU hx => ?_⟩
obtain ⟨r, hr, hsub⟩ := Metric.isOpen_iff.mp hU x hx
refine ⟨Metric.ball x r, Metric.isOpen_ball, Metric.mem_ball_self hr, hsub, ?_⟩
let e := IsEmbedding.subtypeVal.homeomorphImage (Metric.ball x r)
apply (Homeomorph.arcConnectedSpace_iff e).mpr
apply arcConnectedSpace_of_convex
have he : Subtype.val '' Metric.ball x r = s ∩ Metric.ball (x : E) r := by
ext y
constructor
· rintro ⟨z, hz, rfl⟩
exact ⟨z.property, hz⟩
· rintro ⟨hy, hb⟩
exact ⟨⟨y, hy⟩, hb, rfl⟩
rw [he]
exact hs.inter (convex_ball _ _)
theorem arcConnectedSpace_pi_set
TopologyByExample.arcConnectedSpace_pi_set
A product of arc-connected subspaces is arc connected in the product topology.
theorem arcConnectedSpace_pi_set {ι : Type*} {Z : ι → Type*}
[∀ i, TopologicalSpace (Z i)] (D : ∀ i, Set (Z i)) [∀ i, ArcConnectedSpace (D i)] :
ArcConnectedSpace (Set.pi univ D)
Proof
:= by
let e : (∀ i, D i) ≃ₜ Set.pi univ D :=
{ toFun := fun f => ⟨fun i => (f i).val, fun i _ => (f i).property⟩
invFun := fun f i => ⟨f.val i, f.property i (mem_univ i)⟩
left_inv := fun _ => rfl
right_inv := fun _ => rfl
continuous_toFun := (continuous_pi fun i =>
(continuous_apply i).subtypeVal).subtype_mk _
continuous_invFun := continuous_pi fun i =>
((continuous_apply i).comp continuous_subtypeVal).subtype_mk _ }
exact (Homeomorph.arcConnectedSpace_iff e).mp inferInstance
theorem locallyArcConnectedSpace_pi
TopologyByExample.locallyArcConnectedSpace_pi
Products of globally and locally arc-connected factors are locally arc connected.
theorem locallyArcConnectedSpace_pi {ι : Type*} {Z : ι → Type*}
[∀ i, TopologicalSpace (Z i)] [∀ i, ArcConnectedSpace (Z i)]
[∀ i, LocallyArcConnectedSpace (Z i)] : LocallyArcConnectedSpace (∀ i, Z i)
Proof
:= by
classical
refine ⟨fun x U hU hx => ?_⟩
obtain ⟨I, A, hA, hAU⟩ := isOpen_pi_iff.mp hU x hx
have hchoose : ∀ i, ∃ D : Set (Z i), IsOpen D ∧ x i ∈ D ∧
(i ∈ I → D ⊆ A i) ∧ (i ∉ I → D = univ) ∧ ArcConnectedSpace D := by
intro i
by_cases hi : i ∈ I
· obtain ⟨D, hDo, hxD, hDA, hD⟩ :=
LocallyArcConnectedSpace.exists_open (x i) (A i) (hA i hi).1 (hA i hi).2
exact ⟨D, hDo, hxD, fun _ => hDA, fun hn => (hn hi).elim, hD⟩
· refine ⟨univ, isOpen_univ, mem_univ _, fun h => (hi h).elim, fun _ => rfl, ?_⟩
exact (Homeomorph.arcConnectedSpace_iff (Homeomorph.Set.univ (Z i))).mpr inferInstance
choose D hDo hxD hDA hDu hD using hchoose
let : ∀ i, ArcConnectedSpace (D i) := hD
have he : Set.pi univ D = Set.pi (I : Set ι) D := by
ext f
constructor
· exact fun h i _ => h i (mem_univ i)
· intro h i _
by_cases hi : i ∈ I
· exact h i hi
· rw [hDu i hi]
exact mem_univ _
refine ⟨Set.pi univ D, ?_, fun i _ => hxD i, ?_, arcConnectedSpace_pi_set D⟩
· rw [he]
exact isOpen_set_pi I.finite_toSet (fun i _ => hDo i)
· exact fun f hf => hAU (fun i hi => hDA i hi (hf i (mem_univ i)))
On this site: Theorem: Countable powers of arc-connected locally arc-connected spaces are locally arc connected
theorem locallyArcConnectedSpace_unitInterval
TopologyByExample.locallyArcConnectedSpace_unitInterval
The closed unit interval is locally arc connected.
theorem locallyArcConnectedSpace_unitInterval : LocallyArcConnectedSpace unitInterval
Proof
:=
locallyArcConnectedSpace_of_convex (convex_Icc (0 : ℝ) 1)
On this site: The unit interval is locally arc connected
theorem arcConnectedSpace_halfOpenInterval
TopologyByExample.arcConnectedSpace_halfOpenInterval
The half-open unit interval is arc connected.
theorem arcConnectedSpace_halfOpenInterval : ArcConnectedSpace (Ico (0 : ℝ) 1)
Proof
:=
arcConnectedSpace_of_convex (convex_Ico (0 : ℝ) 1)
On this site: The interval \([0, 1)\) is arc connected
theorem locallyArcConnectedSpace_halfOpenInterval
TopologyByExample.locallyArcConnectedSpace_halfOpenInterval
The half-open unit interval is locally arc connected.
theorem locallyArcConnectedSpace_halfOpenInterval : LocallyArcConnectedSpace (Ico (0 : ℝ) 1)
Proof
:=
locallyArcConnectedSpace_of_convex (convex_Ico (0 : ℝ) 1)
On this site: The interval \([0, 1)\) is locally arc connected