Lean library · module TopologyByExample.Spaces.WheelAdditionalProperties
Additional properties of the wheel without its hub
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
definition innerSpoke
TopologyByExample.WheelWithoutHub.innerSpoke
An inner segment of the positive real spoke.
noncomputable def innerSpoke : Set WheelWithoutHub
:= radialInterval 1 0 (1 / 2)
theorem isPathConnected_innerSpoke
TopologyByExample.WheelWithoutHub.isPathConnected_innerSpoke
The inner spoke is path connected.
theorem isPathConnected_innerSpoke : IsPathConnected innerSpoke
Proof
:= by
let f : Ioo (0 : ℝ) (1 / 2) → WheelWithoutHub := fun r ↦
radius (1 : Circle) ⟨r, r.property.1, by linarith [r.property.2]⟩
have hf : Continuous f := (continuous_radius 1).comp (continuous_subtypeVal.subtype_mk _)
have he : f '' Set.univ = innerSpoke := by
ext z
constructor
· rintro ⟨r, _, rfl⟩
exact ⟨r, r.property.1, r.property.2, rfl⟩
· rintro ⟨r, hr, hrh, he⟩
refine ⟨⟨r, hr, hrh⟩, mem_univ _, ?_⟩
exact val_injective he.symm
let : PathConnectedSpace (Ioo (0 : ℝ) (1 / 2)) :=
isPathConnected_iff_pathConnectedSpace.mp
((convex_Ioo (0 : ℝ) (1 / 2)).isPathConnected ⟨1 / 4, by norm_num⟩)
rw [← he]
exact isPathConnected_univ.image hf
theorem rim_mem_compl_innerSpoke
TopologyByExample.WheelWithoutHub.rim_mem_compl_innerSpoke
The rim is disjoint from the inner spoke.
theorem rim_mem_compl_innerSpoke (u : Circle) : rim u ∈ innerSpokeᶜ
theorem joinedIn_compl_innerSpoke_rim
TopologyByExample.WheelWithoutHub.joinedIn_compl_innerSpoke_rim
Moving outward along a radius stays outside the inner spoke if it starts outside.
theorem joinedIn_compl_innerSpoke_rim {z : WheelWithoutHub} (hz : z ∈ innerSpokeᶜ) :
JoinedIn innerSpokeᶜ z (rim (direction z))
Proof
:= by
let J := Icc ‖val z‖ (1 : ℝ)
let f : J → WheelWithoutHub := fun r ↦
radius (direction z) ⟨r, lt_of_lt_of_le z.property.1 r.property.1, r.property.2⟩
have hf : Continuous f := (continuous_radius _).comp (continuous_subtypeVal.subtype_mk _)
let : PathConnectedSpace J := isPathConnected_iff_pathConnectedSpace.mp
((convex_Icc ‖val z‖ (1 : ℝ)).isPathConnected ⟨1, z.property.2, le_rfl⟩)
let p : J := ⟨‖val z‖, le_rfl, z.property.2⟩
let q : J := ⟨1, z.property.2, le_rfl⟩
have hj := (joinedIn_univ.mpr (PathConnectedSpace.joined p q)).map hf.continuousOn
have hsub : f '' Set.univ ⊆ innerSpokeᶜ := by
rintro _ ⟨r, _, rfl⟩ ⟨s, hs, hsh, he⟩
have hEq : (r : ℝ) • (direction z : ℂ) = s • (1 : ℂ) := he
obtain ⟨hrs, hdir⟩ := radial_unique (by simp) (by simp)
(lt_of_lt_of_le z.property.1 r.property.1) hs hEq
apply hz
refine ⟨‖val z‖, z.property.1, ?_, ?_⟩
· linarith [r.property.1]
· have hrec := congrArg val (radius_direction z)
change ‖val z‖ • (direction z : ℂ) = val z at hrec
rw [hdir] at hrec
exact hrec.symm
have h := hj.mono hsub
simpa only [f, p, q, radius_direction, rim] using h
theorem isPathConnected_compl_innerSpoke
TopologyByExample.WheelWithoutHub.isPathConnected_compl_innerSpoke
The complement of the inner spoke is path connected through the rim.
theorem isPathConnected_compl_innerSpoke : IsPathConnected innerSpokeᶜ
Proof
:= by
refine ⟨rim 1, rim_mem_compl_innerSpoke 1, fun z hz ↦ ?_⟩
have hj := (joinedIn_univ.mpr (PathConnectedSpace.joined (1 : Circle) (direction z))).map
continuous_rim.continuousOn
have hsub : rim '' Set.univ ⊆ innerSpokeᶜ := by
rintro _ ⟨u, _, rfl⟩; exact rim_mem_compl_innerSpoke u
exact (hj.mono hsub).trans (joinedIn_compl_innerSpoke_rim hz).symm
theorem not_biconnectedSpace
TopologyByExample.WheelWithoutHub.not_biconnectedSpace
The wheel partitions into two nondegenerate connected sets, so it is not biconnected.
theorem not_biconnectedSpace : ¬ BiconnectedSpace WheelWithoutHub
Proof
:= by
apply not_biconnectedSpace_of_partition
isPathConnected_innerSpoke.isConnected.isPreconnected
isPathConnected_compl_innerSpoke.isConnected.isPreconnected
disjoint_compl_right (union_compl_self _)
· intro h
let x := ofInterval ⟨1 / 4, by norm_num⟩
let y := ofInterval ⟨1 / 3, by norm_num⟩
have hx : x ∈ innerSpoke := ⟨1 / 4, by norm_num, by norm_num, by simp [x, ofInterval, val]⟩
have hy : y ∈ innerSpoke := ⟨1 / 3, by norm_num, by norm_num, by simp [y, ofInterval, val]⟩
have he := congrArg (fun z ↦ (val z).re) (h hx hy)
norm_num [x, y, ofInterval, val] at he
· intro h
have he := congrArg val (h (rim_mem_compl_innerSpoke 1) (rim_mem_compl_innerSpoke (-1)))
norm_num [rim, radius, val] at he
theorem not_hasDispersionPoint
TopologyByExample.WheelWithoutHub.not_hasDispersionPoint
The wheel has no dispersion point.
theorem not_hasDispersionPoint : ¬ HasDispersionPoint WheelWithoutHub
Proof
:= by
intro h
exact not_biconnectedSpace inferInstance
theorem radius_injective
TopologyByExample.WheelWithoutHub.radius_injective
Radial parametrisations are injective.
theorem radius_injective (u : Circle) : Function.Injective (radius u)
theorem eq_rim_of_norm_eq_one
TopologyByExample.WheelWithoutHub.eq_rim_of_norm_eq_one
A point of norm one is its own rim point.
theorem eq_rim_of_norm_eq_one {z : WheelWithoutHub} (hz : ‖val z‖ = 1) :
z = rim (direction z)
Proof
:= by
apply val_injective
have he := congrArg val (radius_direction z)
change ‖val z‖ • (direction z : ℂ) = val z at he
rw [hz, one_smul] at he
change val z = (1 : ℝ) • (direction z : ℂ)
rw [one_smul]
exact he.symm
theorem direction_rim
TopologyByExample.WheelWithoutHub.direction_rim
The direction of a rim point is its circle coordinate.
theorem direction_rim (u : Circle) : direction (rim u) = u
Proof
:= direction_radius u _
theorem rim_injective
TopologyByExample.WheelWithoutHub.rim_injective
The rim inclusion is injective.
theorem rim_injective : Function.Injective rim
Proof
:= by
intro u v he
simpa only [direction_rim] using congrArg direction he
theorem exists_injective_radial_path
TopologyByExample.WheelWithoutHub.exists_injective_radial_path
Distinct points on the same radius can be joined by an injective radial path.
theorem exists_injective_radial_path {x y : WheelWithoutHub}
(hdir : direction x = direction y) (hxy : x ≠ y) :
∃ p : Path x y, Function.Injective p ∧ ∀ t, direction (p t) = direction x
Proof
:= by
let r : Ioc (0 : ℝ) 1 := ⟨‖val x‖, x.property⟩
let s : Ioc (0 : ℝ) 1 := ⟨‖val y‖, y.property⟩
have hrx : radius (direction x) r = x := radius_direction x
have hsy : radius (direction x) s = y := by rw [hdir]; exact radius_direction y
have hrs : r ≠ s := fun he ↦ hxy (by rw [← hrx, ← hsy, he])
let : ArcConnectedSpace (Ioc (0 : ℝ) 1) := arcConnectedSpace_of_convex (convex_Ioc (0 : ℝ) 1)
obtain ⟨p, hp⟩ := ArcConnectedSpace.exists_injective_path r s hrs
let q : Path x y := (p.map (continuous_radius (direction x))).cast hrx.symm hsy.symm
refine ⟨q, (radius_injective _).comp hp, fun t ↦ ?_⟩
exact direction_radius _ _
instance
Every pair of distinct wheel points can be joined by an injective path.
instance : ArcConnectedSpace WheelWithoutHub
Proof
:= by
refine ⟨fun x y hxy ↦ ?_⟩
by_cases hdir : direction x = direction y
· obtain ⟨p, hp, _⟩ := exists_injective_radial_path hdir hxy
exact ⟨p, hp⟩
obtain ⟨c, hc⟩ := ArcConnectedSpace.exists_injective_path (direction x) (direction y) hdir
let q : Path (rim (direction x)) (rim (direction y)) := c.map continuous_rim
have hq : Function.Injective q := rim_injective.comp hc
have hqrim : ∀ t, ‖val (q t)‖ = 1 := by
intro t
change ‖val (rim (c t))‖ = 1
simp [rim, radius, val]
have hk : ∃ k : Path x (rim (direction y)), Function.Injective k ∧
∀ t, direction (k t) = direction x ∨ ‖val (k t)‖ = 1 := by
by_cases hx : ‖val x‖ = 1
· refine ⟨q.cast (eq_rim_of_norm_eq_one hx) rfl, hq, fun t ↦ Or.inr (hqrim t)⟩
· have hxne : x ≠ rim (direction x) := by
intro he
apply hx
rw [he]
simp [rim, radius, val]
obtain ⟨p, hp, hpdir⟩ := exists_injective_radial_path (direction_rim _).symm hxne
have hmeet : ∀ s t, p s = q t → s = 1 ∧ t = 0 := by
intro s t he
have hnorm : ‖val (p s)‖ = 1 := he ▸ hqrim t
have hps : p s = rim (direction x) := by
rw [eq_rim_of_norm_eq_one hnorm, hpdir s]
exact ⟨hp (hps.trans p.target.symm), hq (he.symm.trans (hps.trans q.source.symm))⟩
refine ⟨p.trans q, injective_path_trans p q hp hq hmeet, fun t ↦ ?_⟩
rw [Path.trans_apply]
split_ifs
· exact Or.inl (hpdir _)
· exact Or.inr (hqrim _)
obtain ⟨k, hk, hkind⟩ := hk
by_cases hy : ‖val y‖ = 1
· exact ⟨k.cast rfl (eq_rim_of_norm_eq_one hy), hk⟩
have hyne : rim (direction y) ≠ y := by
intro he
apply hy
rw [← he]
simp [rim, radius, val]
obtain ⟨p, hp, hpdir⟩ := exists_injective_radial_path (direction_rim _) hyne
have hpdir' : ∀ t, direction (p t) = direction y := by
intro t
rw [hpdir t, direction_rim]
have hmeet : ∀ s t, k s = p t → s = 1 ∧ t = 0 := by
intro s t he
have hnorm : ‖val (k s)‖ = 1 := by
rcases hkind s with hd | hn
· exact (hdir (hd.symm.trans ((congrArg direction he).trans (hpdir' t)))).elim
· exact hn
have hpt : p t = rim (direction y) := by
have hn : ‖val (p t)‖ = 1 := he ▸ hnorm
rw [eq_rim_of_norm_eq_one hn, hpdir' t]
exact ⟨hk (he.trans (hpt.trans k.target.symm)), hp (hpt.trans p.source.symm)⟩
exact ⟨k.trans p, injective_path_trans k p hk hp hmeet⟩
theorem arcConnectedSpace_collar
TopologyByExample.WheelWithoutHub.arcConnectedSpace_collar
Collars over arc-connected parts of the rim are arc connected.
theorem arcConnectedSpace_collar {a : ℝ} (ha : 0 ≤ a) (ha1 : a < 1)
{V : Set Circle} [ArcConnectedSpace V] : ArcConnectedSpace (collar a V)
Proof
:= by
let d : collar a V → V := fun x ↦ ⟨direction x.val, x.property.2⟩
have hmem : ∀ u ∈ V, rim u ∈ collar a V := by
intro u hu
exact ⟨by simpa [rim, radius, val] using ha1, by simpa [direction_rim] using hu⟩
let e : V → collar a V := fun u ↦ ⟨rim u, hmem u u.property⟩
apply arcConnectedSpace_of_section d e
((continuous_rim.comp continuous_subtypeVal).subtype_mk _)
· intro u
exact Subtype.ext (direction_rim u)
· intro x y hdir hxy
have hd : direction x.val = direction y.val := congrArg Subtype.val hdir
let f : Ioc a (1 : ℝ) → collar a V := fun r ↦
⟨radiusTail (direction x.val) a ha r, by
constructor
· change a < ‖(r : ℝ) • (direction x.val : ℂ)‖
simpa only [norm_smul, Real.norm_eq_abs,
abs_of_pos (lt_of_le_of_lt ha r.property.1), Circle.norm_coe, mul_one]
using r.property.1
· change direction (radius (direction x.val) _) ∈ V
rw [direction_radius]
exact x.property.2⟩
have hf : Continuous f := (continuous_radiusTail _ a ha).subtype_mk _
have hfi : Function.Injective f := by
intro r s h
have he := radius_injective (direction x.val) (congrArg Subtype.val h)
exact Subtype.ext (congrArg (fun r : Ioc (0 : ℝ) 1 ↦ (r : ℝ)) he)
let r : Ioc a (1 : ℝ) := ⟨‖val x.val‖, x.property.1, x.val.property.2⟩
let s : Ioc a (1 : ℝ) := ⟨‖val y.val‖, y.property.1, y.val.property.2⟩
have hfr : f r = x := Subtype.ext (radius_direction x.val)
have hfs : f s = y := by
apply Subtype.ext
change radius (direction x.val) _ = y.val
rw [hd]
exact radius_direction y.val
let : ArcConnectedSpace (Ioc a (1 : ℝ)) := arcConnectedSpace_of_convex (convex_Ioc a 1)
obtain ⟨p, hp⟩ := ArcConnectedSpace.exists_injective_path r s
(fun h ↦ hxy (hfr.symm.trans ((congrArg f h).trans hfs)))
let q : Path x y := (p.map hf).cast hfr.symm hfs.symm
refine ⟨q, hfi.comp hp, fun t ↦ ?_⟩
apply Subtype.ext
change direction (radius (direction x.val) _) = direction x.val
exact direction_radius _ _
theorem exists_arcConnected_nhds_interior
TopologyByExample.WheelWithoutHub.exists_arcConnected_nhds_interior
Interior points have arbitrarily small open arc-connected radial neighborhoods.
theorem exists_arcConnected_nhds_interior {z : WheelWithoutHub} (hz : ‖val z‖ < 1)
{U : Set WheelWithoutHub} (hU : IsOpen U) (hzU : z ∈ U) :
∃ W : Set WheelWithoutHub, IsOpen W ∧ z ∈ W ∧ W ⊆ U ∧ ArcConnectedSpace W
Proof
:= by
let r : Ioo (0 : ℝ) 1 := ⟨‖val z‖, z.property.1, hz⟩
have he : radiusOpen (direction z) r = z := radius_direction z
let : LocallyArcConnectedSpace ℝ := locallyArcConnectedSpace_of_normedSpace
let : LocallyArcConnectedSpace (Ioo (0 : ℝ) 1) := locallyArcConnectedSpace_open isOpen_Ioo
obtain ⟨W, hWo, hrW, hWU, hWa⟩ := LocallyArcConnectedSpace.exists_open r
(radiusOpen (direction z) ⁻¹' U) (hU.preimage (continuous_radiusOpen _))
(by change radiusOpen (direction z) r ∈ U; rw [he]; exact hzU)
let : ArcConnectedSpace W := hWa
have hinj : Function.Injective (radiusOpen (direction z)) := by
intro x y h
exact Subtype.ext (congrArg (fun r : Ioc (0 : ℝ) 1 ↦ (r : ℝ)) (radius_injective _ h))
exact ⟨radiusOpen (direction z) '' W, isOpenMap_radiusOpen _ W hWo, ⟨r, hrW, he⟩,
image_subset_iff.mpr hWU, arcConnectedSpace_image (continuous_radiusOpen _) hinj W⟩
theorem exists_arcConnected_nhds_rim
TopologyByExample.WheelWithoutHub.exists_arcConnected_nhds_rim
Rim points have arbitrarily small open arc-connected collars.
theorem exists_arcConnected_nhds_rim {z : WheelWithoutHub} (hz : ‖val z‖ = 1)
{U : Set WheelWithoutHub} (hU : IsOpen U) (hzU : z ∈ U) :
∃ W : Set WheelWithoutHub, IsOpen W ∧ z ∈ W ∧ W ⊆ U ∧ ArcConnectedSpace W
Proof
:= by
obtain ⟨O, hO, hzO, hOU⟩ := exists_euclidean_nhds_of_rim hU z hz hzU
obtain ⟨ε, hε, hεO⟩ := Metric.isOpen_iff.mp hO (val z) hzO
obtain ⟨V, hVo, hzV, hVB, hVa⟩ := LocallyArcConnectedSpace.exists_open (direction z)
(Metric.ball (direction z) (ε / 2)) Metric.isOpen_ball
(Metric.mem_ball_self (by positivity))
let : ArcConnectedSpace V := hVa
let a : ℝ := max 0 (1 - ε / 2)
have ha : 0 ≤ a := le_max_left _ _
have ha1 : a < 1 := max_lt_iff.mpr ⟨by norm_num, by linarith⟩
have haε : 1 - ε / 2 ≤ a := le_max_right _ _
refine ⟨collar a V, isOpen_collar hVo, ⟨by rw [hz]; exact ha1, hzV⟩,
?_, arcConnectedSpace_collar ha ha1⟩
intro w hw
apply hOU
apply hεO
have hwε : 1 - ‖val w‖ < ε / 2 := by linarith [hw.1]
have hd : dist (direction w : ℂ) (direction z : ℂ) < ε / 2 := hVB hw.2
have hzw : val z = (direction z : ℂ) := by
have he := congrArg val (radius_direction z)
change ‖val z‖ • (direction z : ℂ) = val z at he
simpa only [hz, one_smul] using he.symm
have hwd : dist (val w) (direction w : ℂ) = 1 - ‖val w‖ := by
rw [dist_eq_norm]
have he := congrArg val (radius_direction w)
change ‖val w‖ • (direction w : ℂ) = val w at he
have hsub : val w - (direction w : ℂ) = (‖val w‖ - 1) • (direction w : ℂ) := by
rw [sub_smul, one_smul, he]
rw [hsub, norm_smul, Real.norm_eq_abs, Circle.norm_coe, mul_one,
abs_of_nonpos (sub_nonpos.mpr (show ‖val w‖ ≤ 1 from w.property.2))]
ring
change dist (val w) (val z) < ε
rw [hzw]
have ht := dist_triangle (val w) (direction w : ℂ) (direction z : ℂ)
rw [hwd] at ht
linarith
instance
Radial intervals and arc-connected collars give local arc connectedness.
instance : LocallyArcConnectedSpace WheelWithoutHub
Proof
:= by
refine ⟨fun z U hU hzU ↦ ?_⟩
by_cases hz : ‖val z‖ = 1
· exact exists_arcConnected_nhds_rim hz hU hzU
· exact exists_arcConnected_nhds_interior (lt_of_le_of_ne z.property.2 hz) hU hzU