Lean library Β· module TopologyByExample.Spaces.RadialInterval
The radial interval topology
The plane, here the complex numbers, in which a set is open when it meets every line through the origin in a set open in that line (with its usual topology). Equivalently, the topology generated by the open intervals of lines through the origin that miss the origin, together with the unions over all lines through the origin of an open interval of each line about the origin.
We show that it is the wedge of π lines: the space obtained from β Γ D, where D is the
set of lines through the origin with the discrete topology, by collapsing {0} Γ D to a point.
The values of the space then follow from the theorems on collapsing a closed set
(TopologyByExample.Theorems.CollapseQuotient).
Main definitions
TopologyByExample.RadialInterval: the space.TopologyByExample.RadialInterval.lineMap u: the mapt β¦ t uonto the line through the origin in directionu.TopologyByExample.RadialInterval.Slope: the lines through the origin, as a discrete space (named by their slopes, and the vertical line).TopologyByExample.RadialInterval.Wedge: the wedge of these lines.
Main statements
TopologyByExample.RadialInterval.homeomorphWedge: the space is homeomorphic to the wedge.- Instances:
T1Space,PerfectlyNormalSpace,ParacompactSpace,BaireSpace,LocallyPathConnectedSpace,PathPreconnectedSpace. TopologyByExample.RadialInterval.not_firstCountableTopology: the origin has no countable neighbourhood base.TopologyByExample.RadialInterval.exists_closed_discrete_continuum_le: the vertical line through1is closed and discrete.
This file was written by Claude (Anthropic's AI model) working under the direction of David R. MacIver, who reviews it and is responsible for it.
Imports
- Mathlib.Analysis.Complex.Basic
- Mathlib.Analysis.Convex.PathConnected
- Mathlib.Analysis.Normed.Module.Convex
- Mathlib.Analysis.Real.Cardinality
- Mathlib.Topology.Connected.LocallyPathConnected
- TopologyByExample.Theorems.Connectedness
- TopologyByExample.Theorems.HomeomorphInvariance
- TopologyByExample.Theorems.CollapseQuotient
definition RadialInterval
TopologyByExample.RadialInterval
The radial interval topology on the plane β.
def RadialInterval : Type
:= β
On this site: Space: Radial interval topology
definition toRI
TopologyByExample.RadialInterval.toRI
The identification of the plane with the space.
def toRI : β β RadialInterval
:= Equiv.refl β
instance
The space is nonempty.
instance : Nonempty RadialInterval
Proof
:= β¨toRI 0β©
theorem toRI_symm_toRI
TopologyByExample.RadialInterval.toRI_symm_toRI
@[simp] theorem toRI_symm_toRI (z : β) : toRI.symm (toRI z) = z
Proof
:= rfl
definition lineMap
TopologyByExample.RadialInterval.lineMap
The map t β¦ t u from the real line onto the line through the origin in direction u.
def lineMap (u : β) (t : β) : RadialInterval
:= toRI (t * u)
instance
The radial interval topology: the finest topology making each map t β¦ t u, u β 0,
continuous. A set is open exactly when it meets every line through the origin in an open set of
the line.
instance : TopologicalSpace RadialInterval
Proof
:=
β¨ u : {u : β // u β 0}, coinduced (lineMap u) inferInstance
theorem isOpen_iff
TopologyByExample.RadialInterval.isOpen_iff
theorem isOpen_iff {s : Set RadialInterval} :
IsOpen s β β u : β, u β 0 β IsOpen (lineMap u β»ΒΉ' s)
Proof
:= by
change IsOpen[β¨ u : {u : β // u β 0}, coinduced (lineMap u) inferInstance] s β _
rw [isOpen_iSup_iff]
simp only [isOpen_coinduced, Subtype.forall]
theorem continuous_lineMap
TopologyByExample.RadialInterval.continuous_lineMap
theorem continuous_lineMap {u : β} (hu : u β 0) : Continuous (lineMap u)
Proof
:=
continuous_iff_coinduced_le.2 (le_iSup (fun u : {u : β // u β 0} β¦
coinduced (lineMap u) inferInstance) β¨u, huβ©)
theorem continuous_of_lineMap
TopologyByExample.RadialInterval.continuous_of_lineMap
A map out of the space is continuous when its composite with each t β¦ t u is.
theorem continuous_of_lineMap {Y : Type*} [TopologicalSpace Y] {g : RadialInterval β Y}
(h : β u : β, u β 0 β Continuous (g β lineMap u)) : Continuous g
Proof
:=
continuous_iSup_dom.2 fun u β¦ continuous_coinduced_dom.2 (h u u.property)
Lines through the origin
inductive type Slope
TopologyByExample.RadialInterval.Slope
The lines through the origin: the line of slope s, and the vertical line.
inductive Slope : Type
/-- The vertical line. -/
| vertical : Slope
/-- The line of slope `s`. -/
| slope (s : β) : Slope
instance
The lines through the origin form a discrete space.
instance : TopologicalSpace Slope
Proof
:= β₯
instance
instance : DiscreteTopology Slope
Proof
:= β¨rflβ©
theorem injective_slope
TopologyByExample.RadialInterval.injective_slope
theorem injective_slope : Function.Injective Slope.slope
Proof
:= fun _ _ h β¦ Slope.slope.inj h
instance
A discrete space is locally path connected.
instance : LocallyPathConnectedSpace Slope
Proof
:=
LocallyPathConnectedSpace.of_bases (fun x β¦ (nhds_discrete Slope).symm βΈ hasBasis_pure x)
fun _ _ _ β¦ isPathConnected_singleton _
instance
instance : Infinite Slope
Proof
:= Infinite.of_injective _ injective_slope
definition dir
TopologyByExample.RadialInterval.dir
A direction vector of each line through the origin.
def dir : Slope β β
| .vertical => I
| .slope s => 1 + s * I
theorem dir_ne_zero
TopologyByExample.RadialInterval.dir_ne_zero
theorem dir_ne_zero : β d : Slope, dir d β 0
definition zeroSet
TopologyByExample.RadialInterval.zeroSet
The set {0} Γ D of β Γ D collapsed in the wedge.
def zeroSet : Set (β Γ Slope)
:= {p | p.1 = 0}
theorem mem_zeroSet
TopologyByExample.RadialInterval.mem_zeroSet
@[simp] theorem mem_zeroSet {p : β Γ Slope} : p β zeroSet β p.1 = 0
Proof
:= Iff.rfl
theorem zeroSet_eq
TopologyByExample.RadialInterval.zeroSet_eq
theorem zeroSet_eq : zeroSet = {0} ΓΛ’ (Set.univ : Set Slope)
Proof
:= by
ext p
simp
theorem isClosed_zeroSet
TopologyByExample.RadialInterval.isClosed_zeroSet
theorem isClosed_zeroSet : IsClosed zeroSet
Proof
:= by
rw [zeroSet_eq]
exact isClosed_singleton.prod isClosed_univ
theorem interior_zeroSet
TopologyByExample.RadialInterval.interior_zeroSet
theorem interior_zeroSet : interior zeroSet = β
Proof
:= by
rw [zeroSet_eq, interior_prod_eq, interior_singleton, Set.empty_prod]
theorem infinite_zeroSet
TopologyByExample.RadialInterval.infinite_zeroSet
theorem infinite_zeroSet : zeroSet.Infinite
Proof
:= by
have : Function.Injective fun d : Slope β¦ ((0 : β), d) := fun _ _ h β¦ (Prod.mk.inj h).2
refine (infinite_range_of_injective this).mono ?_
rintro _ β¨d, rflβ©
rfl
theorem isDiscrete_zeroSet
TopologyByExample.RadialInterval.isDiscrete_zeroSet
theorem isDiscrete_zeroSet : IsDiscrete zeroSet
Proof
:= by
rw [isDiscrete_iff_discreteTopology, discreteTopology_iff_isOpen_singleton]
rintro β¨β¨t, dβ©, htβ©
rw [mem_zeroSet] at ht
refine isOpen_induced_iff.2 β¨Set.univ ΓΛ’ {d}, isOpen_univ.prod (isOpen_discrete _), ?_β©
ext β¨β¨t', d'β©, ht'β©
rw [mem_zeroSet] at ht'
simp only [mem_preimage, mem_prod, mem_univ, mem_singleton_iff, true_and, Subtype.mk.injEq,
Prod.mk.injEq]
dsimp only at ht ht'
rw [ht, ht']
simp
definition Wedge
TopologyByExample.RadialInterval.Wedge
The wedge of π lines: β Γ D, D the discrete space of lines through the origin, with
{0} Γ D collapsed to a point.
abbrev Wedge : Type
:= Collapse zeroSet
definition toPlane
TopologyByExample.RadialInterval.toPlane
The map β Γ D β β, (t, d) β¦ t Β· dir d.
def toPlane (p : β Γ Slope) : RadialInterval
:= lineMap (dir p.2) p.1
theorem continuous_toPlane
TopologyByExample.RadialInterval.continuous_toPlane
theorem continuous_toPlane : Continuous toPlane
Proof
:=
continuous_prod_of_discrete_right.2 fun d β¦ continuous_lineMap (dir_ne_zero d)
definition fromWedge
TopologyByExample.RadialInterval.fromWedge
The map from the wedge to the plane.
def fromWedge : Wedge β RadialInterval
Definition
:=
Quotient.lift toPlane fun p q h β¦ by
rcases h with rfl | β¨hp, hqβ©
Β· rfl
Β· rw [mem_zeroSet] at hp hq
simp [toPlane, lineMap, hp, hq]
definition toWedge
TopologyByExample.RadialInterval.toWedge
The map from the plane to the wedge.
noncomputable def toWedge (z : RadialInterval) : Wedge
Definition
:= by
classical
exact if (toRI.symm z).re = 0 then Collapse.mk zeroSet ((toRI.symm z).im, .vertical)
else Collapse.mk zeroSet ((toRI.symm z).re, .slope ((toRI.symm z).im / (toRI.symm z).re))
theorem fromWedge_mk
TopologyByExample.RadialInterval.fromWedge_mk
theorem fromWedge_mk (p : β Γ Slope) : fromWedge (Collapse.mk zeroSet p) = toPlane p
Proof
:= rfl
theorem toWedge_toRI
TopologyByExample.RadialInterval.toWedge_toRI
theorem toWedge_toRI (z : β) : toWedge (toRI z) = if z.re = 0 then
Collapse.mk zeroSet (z.im, .vertical) else Collapse.mk zeroSet (z.re, .slope (z.im / z.re))
Proof
:=
rfl
theorem toWedge_lineMap
TopologyByExample.RadialInterval.toWedge_lineMap
theorem toWedge_lineMap {u : β} (t : β) :
toWedge (lineMap u t) = if u.re = 0 then Collapse.mk zeroSet (t * u.im, .vertical)
else Collapse.mk zeroSet (t * u.re, .slope (u.im / u.re))
Proof
:= by
have h0 : β d, Collapse.mk zeroSet ((0 : β), Slope.vertical) = Collapse.mk zeroSet (0, d) :=
fun d β¦ Collapse.mk_eq_mk_of_mem rfl rfl
rw [lineMap, toWedge_toRI, re_ofReal_mul, im_ofReal_mul]
by_cases hre : u.re = 0
Β· simp [hre]
Β· simp only [hre, ite_false]
by_cases ht : t = 0
Β· subst ht
simpa using h0 _
Β· simp only [mul_eq_zero, ht, hre, or_self, ite_false]
congr 3
field_simp
definition homeomorphWedge
TopologyByExample.RadialInterval.homeomorphWedge
The radial interval topology is homeomorphic to the wedge of π lines.
noncomputable def homeomorphWedge : RadialInterval ββ Wedge
Definition
where
toFun := toWedge
invFun := fromWedge
left_inv z := by
obtain β¨z, rflβ© := toRI.surjective z
rw [toWedge_toRI]
split_ifs with h
Β· rw [fromWedge_mk, toPlane, lineMap]
congr 1
apply Complex.ext <;> simp [dir, h]
Β· rw [fromWedge_mk, toPlane, lineMap]
congr 1
apply Complex.ext <;> simp [dir]
field_simp
right_inv q := by
obtain β¨β¨t, dβ©, rflβ© := Collapse.surjective_mk q
rw [fromWedge_mk, toPlane, toWedge_lineMap]
cases d with
| vertical => simp [dir]
| slope s => simp [dir]
continuous_toFun := by
refine continuous_of_lineMap fun u hu β¦ ?_
have : toWedge β lineMap u = fun t β¦ if u.re = 0 then
Collapse.mk zeroSet (t * u.im, .vertical)
else Collapse.mk zeroSet (t * u.re, .slope (u.im / u.re)) :=
funext toWedge_lineMap
rw [this]
split_ifs
Β· exact Collapse.continuous_mk.comp (by fun_prop)
Β· exact Collapse.continuous_mk.comp (by fun_prop)
continuous_invFun := Collapse.isQuotientMap_mk.continuous_iff.2 continuous_toPlane
theorem nonempty_homeomorph_wedge
TopologyByExample.RadialInterval.nonempty_homeomorph_wedge
The radial interval topology is homeomorphic to the wedge of the lines through the origin.
theorem nonempty_homeomorph_wedge : Nonempty (RadialInterval ββ Wedge)
Proof
:= β¨homeomorphWedgeβ©
On this site: Radial interval topology: The radial interval topology is the wedge of the lines through the origin
The wedge
instance
instance : MetrizableSpace (β Γ Slope)
Proof
:= inferInstance
theorem wedge_props
TopologyByExample.RadialInterval.wedge_props
theorem wedge_props :
T1Space Wedge β§ PerfectlyNormalSpace Wedge β§ ParacompactSpace Wedge
Values
instance
The space is Tβ.
instance : T1Space RadialInterval
Proof
:=
(Homeomorph.t1Space_iff homeomorphWedge).2 wedge_props.1
instance
The space is perfectly normal.
instance : PerfectlyNormalSpace RadialInterval
Proof
:=
(Homeomorph.perfectlyNormalSpace_iff homeomorphWedge).2 wedge_props.2.1
instance
The space is paracompact.
instance : ParacompactSpace RadialInterval
Proof
:=
(Homeomorph.paracompactSpace_iff homeomorphWedge).2 wedge_props.2.2
instance
The space is a Baire space.
instance : BaireSpace RadialInterval
instance
The space is locally path connected.
instance : LocallyPathConnectedSpace RadialInterval
Proof
:=
have : LocallyPathConnectedSpace β :=
LocallyPathConnectedSpace.of_bases (fun _ β¦ Metric.nhds_basis_ball)
fun x _ hr β¦ (convex_ball x _).isPathConnected (Metric.nonempty_ball.2 hr)
(Homeomorph.locallyPathConnectedSpace_iff homeomorphWedge).2
(inferInstanceAs (LocallyPathConnectedSpace (Quotient (collapseSetoid zeroSet))))
instance
The space is path connected: each point is joined to the origin along its line.
instance : PathPreconnectedSpace RadialInterval
Proof
:= by
have h : β z : RadialInterval, Joined z (toRI 0) := fun z β¦ by
obtain β¨z, rflβ© := toRI.surjective z
by_cases hz : z = 0
Β· rw [hz]
Β· let Ξ³ : Path (toRI 0) (toRI z) :=
{ toFun := fun t β¦ lineMap z t
continuous_toFun := (continuous_lineMap hz).comp continuous_subtypeVal
source' := by simp [lineMap]
target' := by simp [lineMap] }
exact β¨Ξ³.symmβ©
exact β¨fun x y β¦ (h x).trans (h y).symmβ©
theorem not_firstCountableTopology
TopologyByExample.RadialInterval.not_firstCountableTopology
The origin has no countable neighbourhood base.
theorem not_firstCountableTopology : Β¬FirstCountableTopology RadialInterval
Proof
:= fun h β¦
Collapse.not_firstCountableTopology isClosed_zeroSet subset_rfl infinite_zeroSet
isClosed_zeroSet isDiscrete_zeroSet (by rw [interior_zeroSet]; exact disjoint_empty _)
((Homeomorph.firstCountableTopology_iff homeomorphWedge).1 h)
On this site: The radial interval topology is not first countable
theorem isClosed_of_subsingleton
TopologyByExample.RadialInterval.isClosed_of_subsingleton
A set meeting every line through the origin in at most one point is closed.
theorem isClosed_of_subsingleton {s : Set RadialInterval}
(hs : β u : β, u β 0 β (lineMap u β»ΒΉ' s).Subsingleton) : IsClosed s
Proof
:= by
rw [β isOpen_compl_iff, isOpen_iff]
intro u hu
rw [preimage_compl, isOpen_compl_iff]
exact (hs u hu).isClosed
theorem subsingleton_preimage_line
TopologyByExample.RadialInterval.subsingleton_preimage_line
The vertical line through 1 meets every line through the origin in at most one point.
theorem subsingleton_preimage_line {u : β} (hu : u β 0) :
(lineMap u β»ΒΉ' range fun t : β β¦ toRI (1 + t * I)).Subsingleton
Proof
:= by
have := hu
rintro s β¨a, haβ© t β¨b, hbβ©
have ha' := congrArg Complex.re (toRI.injective ha)
have hb' := congrArg Complex.re (toRI.injective hb)
simp only [add_re, one_re, mul_re, ofReal_re, I_re, mul_zero, ofReal_im, I_im, mul_one,
sub_self, add_zero] at ha' hb'
have hre : u.re β 0 := by
intro h
rw [h] at hb'
linarith
exact mul_right_cancelβ hre (by linarith)
theorem exists_closed_discrete_continuum_le
TopologyByExample.RadialInterval.exists_closed_discrete_continuum_le
The vertical line through 1 is a closed discrete set of cardinality π .
theorem exists_closed_discrete_continuum_le :
β s : Set RadialInterval, IsClosed s β§ IsDiscrete s β§ π β€ #s
Proof
:= by
set s := range fun t : β β¦ toRI (1 + t * I)
have hsub : β t β s, IsClosed t := fun t hts β¦
isClosed_of_subsingleton fun u hu β¦ (subsingleton_preimage_line hu).anti
(preimage_mono hts)
refine β¨s, hsub s subset_rfl, ?_, ?_β©
Β· rw [isDiscrete_iff_discreteTopology, discreteTopology_iff_isOpen_singleton]
intro p
refine isOpen_induced_iff.2 β¨(s \ {p.val})αΆ, (hsub _ sdiff_subset).isOpen_compl, ?_β©
ext q
simp [Subtype.ext_iff]
Β· have hinj : Function.Injective fun t : β β¦ toRI (1 + t * I) := fun a b h β¦ by
simpa using congrArg Complex.im (toRI.injective h)
rw [mk_range_eq _ hinj, mk_real]
On this site: The radial interval topology has a closed discrete subset of cardinality \(\mathfrak{c}\)