Lean library Β· module TopologyByExample.Spaces.RadialInterval

The radial interval topology

Source file

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

Main statements

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

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
Proof
  | .vertical => I_ne_zero
  | .slope s => fun h ↦ by
    have := congrArg Complex.re h
    simp [dir] at this

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
Proof
:=
  Collapse.metrizable_collapse isClosed_zeroSet

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
Proof
:=
  (Homeomorph.baireSpace_iff homeomorphWedge).2
    (Collapse.baireSpace isClosed_zeroSet interior_zeroSet)

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}\)