Lean library · module TopologyByExample.Spaces.RadialPlane
The radial plane
In this file we define TopologyByExample.RadialPlane, the plane with the radial (or core)
topology: a set U is open if it meets every line L in a set open in L with its Euclidean
topology; equivalently, every point of U lies, on each line through it, in an open segment
contained in U. It is the finest topology for which every map t ↦ p + t • v from ℝ is
continuous, and we define it as such: the supremum of the topologies coinduced by these maps.
Main results
TopologyByExample.RadialPlane.continuous_line: every line is continuous.TopologyByExample.RadialPlane.continuous_toPlane: the topology is finer than the Euclidean one, so the space is submetrizable, hence Hausdorff.TopologyByExample.RadialPlane.baireSpace: the radial plane is a Baire space, byTopologyByExample.baireSpace_of_continuous_horizontal_vertical.TopologyByExample.RadialPlane.isClosed_isDiscrete_of_finite_line: a set meeting every line in a finite set is closed and discrete; so the unit circle is a closed discrete set of cardinality𝔠.TopologyByExample.RadialPlane.dense_image_prod: a product of dense sets of reals is dense; so the space is separable.TopologyByExample.RadialPlane.not_frechetUrysohnSpace: the origin is in the closure of the dense set of points(a, √2 + r),a, rrational,a ≠ 0, but is not the limit of a sequence of them: each line through the origin contains at most one of them, so the range of a sequence of them tending to the origin in the Euclidean plane is closed.TopologyByExample.RadialPlane.not_semiregularSpace: by the Baire category theorem for the slopes of the lines through the origin, the closure of an open set containing the origin contains an open sector at the origin; but a sequence of points tending to the origin along distinct lines with a dense set of slopes is closed and meets every such sector.- Path connectedness and local path connectedness, through segments.
References
- π-Base, space S000175 (Radial plane).
Tags
radial plane, radial topology, core topology, Baire space, counterexample
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.Algebra.Polynomial.Degree.SmallDegree
- Mathlib.Algebra.Polynomial.Roots
- Mathlib.Analysis.Real.Cardinality
- Mathlib.NumberTheory.Real.Irrational
- Mathlib.Order.Interval.Set.Infinite
- Mathlib.Topology.Connected.LocallyPathConnected
- Mathlib.Topology.Sequences
- TopologyByExample.Theorems.Connectedness
- TopologyByExample.Theorems.GridProperties
- TopologyByExample.Theorems.PlaneBaire
- TopologyByExample.Theorems.Submetrizable
definition radialTopology
TopologyByExample.radialTopology
The radial topology on the plane: the finest topology in which every map t ↦ p + t • v from
ℝ is continuous. A set is open in it iff it meets every line in a relatively open set.
@[instance_reducible]
def radialTopology : TopologicalSpace (ℝ × ℝ)
:=
⨆ (p : ℝ × ℝ) (v : ℝ × ℝ), coinduced (fun t : ℝ ↦ p + t • v) inferInstance
definition RadialPlane
TopologyByExample.RadialPlane
The radial plane: the plane with the radial topology, in which a set is open iff it meets every line in a set open in that line.
def RadialPlane : Type
:= ℝ × ℝ
On this site: Space: Radial plane
instance
The radial topology.
instance : TopologicalSpace RadialPlane
Proof
:= radialTopology
definition toPlane
TopologyByExample.RadialPlane.toPlane
The point of the plane under a point of the radial plane.
def toPlane (p : RadialPlane) : ℝ × ℝ
:= p
definition ofPlane
TopologyByExample.RadialPlane.ofPlane
The point of the radial plane over a point of the plane.
def ofPlane (q : ℝ × ℝ) : RadialPlane
:= q
theorem toPlane_ofPlane
TopologyByExample.RadialPlane.toPlane_ofPlane
@[simp]
theorem toPlane_ofPlane (q : ℝ × ℝ) : toPlane (ofPlane q) = q
Proof
:= rfl
theorem ofPlane_toPlane
TopologyByExample.RadialPlane.ofPlane_toPlane
@[simp]
theorem ofPlane_toPlane (p : RadialPlane) : ofPlane (toPlane p) = p
Proof
:= rfl
theorem ofPlane_injective
TopologyByExample.RadialPlane.ofPlane_injective
ofPlane is injective.
theorem ofPlane_injective : Injective ofPlane
Proof
:= fun _ _ h ↦ h
instance
The radial plane is nonempty.
instance : Nonempty RadialPlane
Proof
:= ⟨ofPlane 0⟩
definition line
TopologyByExample.RadialPlane.line
The line through p in the direction v, as a map from ℝ into the radial plane.
def line (p v : ℝ × ℝ) (t : ℝ) : RadialPlane
:= ofPlane (p + t • v)
theorem toPlane_line
TopologyByExample.RadialPlane.toPlane_line
The point of the plane under a point of a line.
@[simp]
theorem toPlane_line (p v : ℝ × ℝ) (t : ℝ) : toPlane (line p v t) = p + t • v
Proof
:= rfl
theorem isOpen_iff
TopologyByExample.RadialPlane.isOpen_iff
A set is open iff it meets every line in an open set.
theorem isOpen_iff {U : Set RadialPlane} : IsOpen U ↔ ∀ p v : ℝ × ℝ, IsOpen (line p v ⁻¹' U)
Proof
:= by
exact isOpen_iSup_iff.trans (forall_congr' fun _ ↦ isOpen_iSup_iff.trans
(forall_congr' fun _ ↦ isOpen_coinduced))
theorem isClosed_iff
TopologyByExample.RadialPlane.isClosed_iff
A set is closed iff it meets every line in a closed set.
theorem isClosed_iff {F : Set RadialPlane} :
IsClosed F ↔ ∀ p v : ℝ × ℝ, IsClosed (line p v ⁻¹' F)
Proof
:= by
simp only [← isOpen_compl_iff, isOpen_iff, preimage_compl]
theorem continuous_line
TopologyByExample.RadialPlane.continuous_line
Every line is continuous: t ↦ p + t • v is continuous into the radial plane.
theorem continuous_line (p v : ℝ × ℝ) : Continuous (line p v)
Proof
:=
continuous_iSup_rng (i := p) (continuous_iSup_rng (i := v) continuous_coinduced_rng)
On this site: Radial plane: Every line is continuous
theorem le_euclidean
TopologyByExample.RadialPlane.le_euclidean
The radial topology is finer than the Euclidean one.
theorem le_euclidean : radialTopology ≤ (instTopologicalSpaceProd : TopologicalSpace (ℝ × ℝ))
Proof
:=
iSup_le fun _ ↦ iSup_le fun _ ↦ continuous_iff_coinduced_le.1 (by fun_prop)
theorem continuous_toPlane
TopologyByExample.RadialPlane.continuous_toPlane
The topology is finer than the Euclidean one: the map to the Euclidean plane is continuous.
theorem continuous_toPlane : Continuous toPlane
Proof
:= by
have h := (continuous_id_iff_le (t := radialTopology) (t' := instTopologicalSpaceProd)).2
le_euclidean
exact h
On this site: Radial plane: The topology is finer than the Euclidean topology
theorem isOpen_preimage_toPlane
TopologyByExample.RadialPlane.isOpen_preimage_toPlane
The preimage of a Euclidean open set is open.
theorem isOpen_preimage_toPlane {V : Set (ℝ × ℝ)} (hV : IsOpen V) : IsOpen (toPlane ⁻¹' V)
Proof
:=
hV.preimage continuous_toPlane
instance
The radial plane is Hausdorff.
instance : T2Space RadialPlane
Proof
:=
.of_injective_continuous (f := toPlane) (fun _ _ h ↦ h) continuous_toPlane
theorem submetrizableSpace
TopologyByExample.RadialPlane.submetrizableSpace
The radial plane is submetrizable: its topology is finer than the Euclidean one.
theorem submetrizableSpace : SubmetrizableSpace RadialPlane
Proof
:=
@SubmetrizableSpace.of_le RadialPlane radialTopology instTopologicalSpaceProd le_euclidean
(inferInstanceAs (SubmetrizableSpace (ℝ × ℝ)))
On this site: Radial plane is submetrizable
theorem continuous_horizontal
TopologyByExample.RadialPlane.continuous_horizontal
The horizontal line at height b is continuous.
theorem continuous_horizontal (b : ℝ) : Continuous fun a : ℝ ↦ ofPlane (a, b)
Proof
:=
(continuous_line (0, b) (1, 0)).congr fun a ↦ by
simp only [line]
congr 1
ext <;> simp
theorem continuous_vertical
TopologyByExample.RadialPlane.continuous_vertical
The vertical line at abscissa a is continuous.
theorem continuous_vertical (a : ℝ) : Continuous fun b : ℝ ↦ ofPlane (a, b)
Proof
:=
(continuous_line (a, 0) (0, 1)).congr fun b ↦ by
simp only [line]
congr 1
ext <;> simp
theorem baireSpace
TopologyByExample.RadialPlane.baireSpace
The radial plane is a Baire space: its topology is finer than the Euclidean one, and every horizontal and vertical line is continuous.
theorem baireSpace : BaireSpace RadialPlane
Proof
:=
baireSpace_of_continuous_horizontal_vertical ⟨ofPlane, toPlane, fun _ ↦ rfl, fun _ ↦ rfl⟩
continuous_toPlane continuous_horizontal continuous_vertical
On this site: Radial plane is a Baire space
theorem not_pseudocompactSpace
TopologyByExample.RadialPlane.not_pseudocompactSpace
The radial plane is not pseudocompact: the first coordinate is an unbounded continuous function.
theorem not_pseudocompactSpace : ¬PseudocompactSpace RadialPlane
Proof
:= by
intro h
obtain ⟨⟨M, hM⟩, -⟩ := h.bddAbove_and_bddBelow_range
⟨fun p ↦ (toPlane p).1, continuous_fst.comp continuous_toPlane⟩
have := hM (mem_range_self (ofPlane (M + 1, 0)))
simp only [ContinuousMap.coe_mk, toPlane_ofPlane] at this
linarith
On this site: Radial plane is not pseudocompact
Path connectedness
theorem joined
TopologyByExample.RadialPlane.joined
Two points are joined by the segment between them.
theorem joined (p q : ℝ × ℝ) : Joined (ofPlane p) (ofPlane q)
Proof
:=
(JoinedIn.ofLine (F := univ) (f := line p (q - p)) (continuous_line _ _).continuousOn
(by simp [line]) (by simp [line]) (subset_univ _)).joined
theorem pathPreconnectedSpace
TopologyByExample.RadialPlane.pathPreconnectedSpace
The radial plane is path connected: any two points are joined by a segment.
theorem pathPreconnectedSpace : PathPreconnectedSpace RadialPlane
theorem isOpen_pathComponentIn
TopologyByExample.RadialPlane.isOpen_pathComponentIn
The path component of a point in an open set is open: on each line through a point of it, the open set contains a segment about the point, and each point of that segment is joined to it by a segment inside the open set.
theorem isOpen_pathComponentIn {U : Set RadialPlane} (hU : IsOpen U) (x : RadialPlane) :
IsOpen (pathComponentIn U x)
Proof
:= by
refine isOpen_iff.2 fun p v ↦ Metric.isOpen_iff.2 fun t₀ ht₀ ↦ ?_
have hU₀ : line p v t₀ ∈ U := pathComponentIn_subset ht₀
obtain ⟨ε, hε, hball⟩ := Metric.isOpen_iff.1 (isOpen_iff.1 hU p v) t₀ hU₀
refine ⟨ε, hε, fun t ht ↦ ?_⟩
refine JoinedIn.trans ht₀ (JoinedIn.ofLine (f := fun u ↦ line p v (t₀ + u * (t - t₀)))
((continuous_line p v).comp (by fun_prop)).continuousOn (by simp) (by simp) ?_)
rintro _ ⟨u, ⟨hu0, hu1⟩, rfl⟩
refine hball ?_
rw [Metric.mem_ball, Real.dist_eq, add_sub_cancel_left, abs_mul, abs_of_nonneg hu0]
rw [Metric.mem_ball, Real.dist_eq] at ht
nlinarith [abs_nonneg (t - t₀)]
theorem locallyPathConnectedSpace
TopologyByExample.RadialPlane.locallyPathConnectedSpace
The radial plane is locally path connected: the path component of a point in an open set is an open path connected neighbourhood of it.
theorem locallyPathConnectedSpace : LocallyPathConnectedSpace RadialPlane
Proof
:= by
refine ⟨fun x ↦ ⟨fun s ↦ ⟨fun hs ↦ ?_, fun ⟨t, ⟨ht, _⟩, hts⟩ ↦ mem_of_superset ht hts⟩⟩⟩
have hx : x ∈ interior s := mem_interior_iff_mem_nhds.2 hs
refine ⟨pathComponentIn (interior s) x, ⟨?_, isPathConnected_pathComponentIn hx⟩,
pathComponentIn_subset.trans interior_subset⟩
exact (isOpen_pathComponentIn isOpen_interior x).mem_nhds (mem_pathComponentIn_self hx)
Closed sets meeting lines in few points
theorem isClosed_of_finite_line
TopologyByExample.RadialPlane.isClosed_of_finite_line
A set meeting every line in finitely many points is closed.
theorem isClosed_of_finite_line {T : Set RadialPlane}
(h : ∀ p v : ℝ × ℝ, v ≠ 0 → (line p v ⁻¹' T).Finite) : IsClosed T
Proof
:= by
refine isClosed_iff.2 fun p v ↦ ?_
rcases eq_or_ne v 0 with rfl | hv
· by_cases hp : ofPlane p ∈ T
· convert isClosed_univ
exact eq_univ_of_forall fun t ↦ by simpa [line] using hp
· convert isClosed_empty
exact eq_empty_of_forall_notMem fun t ht ↦ hp (by simpa [line] using ht)
· exact (h p v hv).isClosed
theorem isClosed_isDiscrete_of_finite_line
TopologyByExample.RadialPlane.isClosed_isDiscrete_of_finite_line
A set meeting every line in finitely many points is closed and discrete: each of its subsets meets every line in finitely many points, so is closed.
theorem isClosed_isDiscrete_of_finite_line {T : Set RadialPlane}
(h : ∀ p v : ℝ × ℝ, v ≠ 0 → (line p v ⁻¹' T).Finite) : IsClosed T ∧ IsDiscrete T
Proof
:=
⟨isClosed_of_finite_line h, isDiscrete_iff_forall_mem_exists_isClosed.2 fun s hs ↦
⟨s, isClosed_of_finite_line fun p v hv ↦ (h p v hv).subset (preimage_mono hs),
inter_eq_left.2 hs⟩⟩
On this site: Radial plane: A set meeting every line in finitely many points is closed and discrete
definition circle
TopologyByExample.RadialPlane.circle
The unit circle.
def circle : Set RadialPlane
:= {z | (toPlane z).1 ^ 2 + (toPlane z).2 ^ 2 = 1}
theorem finite_line_preimage_circle
TopologyByExample.RadialPlane.finite_line_preimage_circle
Every line meets the unit circle in finitely many points: their parameters are roots of a nonzero quadratic polynomial.
theorem finite_line_preimage_circle (p v : ℝ × ℝ) (hv : v ≠ 0) : (line p v ⁻¹' circle).Finite
Proof
:= by
open Polynomial in
set P : ℝ[X] := C (v.1 ^ 2 + v.2 ^ 2) * X ^ 2 + C (2 * (p.1 * v.1 + p.2 * v.2)) * X +
C (p.1 ^ 2 + p.2 ^ 2 - 1)
have hvv : v.1 ^ 2 + v.2 ^ 2 ≠ 0 := by
intro h0
refine hv (Prod.ext ?_ ?_)
· exact pow_eq_zero_iff two_ne_zero |>.1 (by nlinarith [sq_nonneg v.1, sq_nonneg v.2])
· exact pow_eq_zero_iff two_ne_zero |>.1 (by nlinarith [sq_nonneg v.1, sq_nonneg v.2])
have hP : P ≠ 0 := fun h0 ↦ hvv (by
rw [← Polynomial.leadingCoeff_quadratic hvv (b := 2 * (p.1 * v.1 + p.2 * v.2))
(c := p.1 ^ 2 + p.2 ^ 2 - 1)]
simp only [P] at h0
rw [h0, Polynomial.leadingCoeff_zero])
refine (Polynomial.finite_setOfPred_isRoot hP).subset fun t ht ↦ ?_
simp only [mem_preimage, circle, mem_ofPred_eq, toPlane_line, Prod.fst_add, Prod.smul_fst,
smul_eq_mul, Prod.snd_add, Prod.smul_snd] at ht
simp only [mem_ofPred_eq, Polynomial.IsRoot, P, Polynomial.eval_add, Polynomial.eval_mul,
Polynomial.eval_C, Polynomial.eval_pow, Polynomial.eval_X]
linear_combination ht
theorem isClosed_isDiscrete_mk_circle
TopologyByExample.RadialPlane.isClosed_isDiscrete_mk_circle
The unit circle is closed, discrete and of cardinality 𝔠: every line meets it in at most
finitely many points.
theorem isClosed_isDiscrete_mk_circle : IsClosed circle ∧ IsDiscrete circle ∧ 𝔠 ≤ #circle
Proof
:= by
refine ⟨(isClosed_isDiscrete_of_finite_line finite_line_preimage_circle).1,
(isClosed_isDiscrete_of_finite_line finite_line_preimage_circle).2, ?_⟩
rw [← Cardinal.mk_Ioo_real (by norm_num : (-1 : ℝ) < 1)]
refine Cardinal.mk_le_of_injective (f := fun x : Ioo (-1 : ℝ) 1 ↦
(⟨ofPlane (x, √(1 - x ^ 2)), ?_⟩ : circle)) fun x y hxy ↦ Subtype.ext ?_
· have hx := x.property
have : 0 ≤ 1 - (x : ℝ) ^ 2 := by nlinarith [hx.1, hx.2]
simp only [circle, mem_ofPred_eq, toPlane_ofPlane, Real.sq_sqrt this]
ring
· have := congrArg (fun z : circle ↦ (toPlane z.val).1) hxy
simpa using this
On this site: Radial plane: The unit circle is closed, discrete, of cardinality at least continuum
theorem exists_closed_discrete_continuum_le
TopologyByExample.RadialPlane.exists_closed_discrete_continuum_le
Some closed discrete subset has cardinality at least 𝔠: the unit circle.
theorem exists_closed_discrete_continuum_le :
∃ s : Set RadialPlane, IsClosed s ∧ IsDiscrete s ∧ 𝔠 ≤ #s
Proof
:=
⟨circle, isClosed_isDiscrete_mk_circle⟩
On this site: Radial plane has a closed discrete subset of cardinality \(\mathfrak{c}\)
theorem isClosed_of_subsingleton_line
TopologyByExample.RadialPlane.isClosed_of_subsingleton_line
A criterion for a set to be closed: if the set S ∪ {x} is
closed in the Euclidean plane, and every line through x meets S in at most one point, then S
is closed. A line through x meets it in a closed set, having at most one point; a line missing x
meets it where it meets S ∪ {x}, a closed set.
theorem isClosed_of_subsingleton_line {S : Set RadialPlane} {x : ℝ × ℝ}
(hcl : IsClosed (insert x (toPlane '' S))) (hline : ∀ v, (line x v ⁻¹' S).Subsingleton) :
IsClosed S
Proof
:= by
refine isClosed_iff.2 fun p v ↦ ?_
by_cases hpass : ∃ t₀ : ℝ, p + t₀ • v = x
· obtain ⟨t₀, ht₀⟩ := hpass
have : line p v ⁻¹' S = (fun t ↦ t - t₀) ⁻¹' (line x v ⁻¹' S) := by
ext t
simp only [mem_preimage, line, ← ht₀, sub_smul, add_assoc, add_sub_cancel]
rw [this]
exact ((hline v).preimage (sub_left_injective)).finite.isClosed
· push Not at hpass
have : line p v ⁻¹' S = (fun t : ℝ ↦ p + t • v) ⁻¹' insert x (toPlane '' S) := by
ext t
simp only [mem_preimage, mem_insert_iff, hpass t, false_or]
exact ⟨fun h ↦ ⟨_, h, rfl⟩, fun ⟨z, hz, hzt⟩ ↦ by
change ofPlane (p + t • v) ∈ S
rw [← hzt]
exact hz⟩
rw [this]
exact hcl.preimage (by fun_prop)
Density, separability, and the failure of the Fréchet–Urysohn property
theorem dense_image_prod
TopologyByExample.RadialPlane.dense_image_prod
A product of dense sets of reals is dense: its closure contains every horizontal line at a height in the second set, as the closure of the first set is everything, and then every vertical line.
theorem dense_image_prod {D₁ D₂ : Set ℝ} (h₁ : Dense D₁) (h₂ : Dense D₂) :
Dense (ofPlane '' (D₁ ×ˢ D₂))
Proof
:= by
have hrow : ∀ y ∈ D₂, ∀ x : ℝ, ofPlane (x, y) ∈ closure (ofPlane '' (D₁ ×ˢ D₂)) :=
fun y hy x ↦ map_mem_closure (f := fun a ↦ ofPlane (a, y)) (x := x) (continuous_horizontal y)
(h₁ x) fun x' hx' ↦ ⟨(x', y), ⟨hx', hy⟩, rfl⟩
intro z
have := map_mem_closure (f := fun b ↦ ofPlane ((toPlane z).1, b)) (x := (toPlane z).2)
(continuous_vertical (toPlane z).1) (h₂ (toPlane z).2) fun y hy ↦ hrow y hy (toPlane z).1
rwa [closure_closure] at this
theorem separableSpace
TopologyByExample.RadialPlane.separableSpace
The radial plane is separable: the points with rational coordinates are dense.
theorem separableSpace : SeparableSpace RadialPlane
Proof
:=
⟨⟨_, ((countable_range ((↑) : ℚ → ℝ)).prod (countable_range ((↑) : ℚ → ℝ))).image ofPlane,
dense_image_prod Rat.denseRange_cast Rat.denseRange_cast⟩⟩
On this site: Radial plane is separable
definition sqrtTwoSet
TopologyByExample.RadialPlane.sqrtTwoSet
The points (a, √2 + r) with a, r rational and a ≠ 0.
def sqrtTwoSet : Set RadialPlane
:=
ofPlane '' ({x | ∃ a : ℚ, a ≠ 0 ∧ (a : ℝ) = x} ×ˢ range fun r : ℚ ↦ √2 + r)
theorem dense_sqrtTwoSet
TopologyByExample.RadialPlane.dense_sqrtTwoSet
The points (a, √2 + r) are dense.
theorem dense_sqrtTwoSet : Dense sqrtTwoSet
Proof
:= by
refine dense_image_prod ?_ ?_
· refine (Rat.denseRange_cast.inter_of_isOpen_right (dense_compl_singleton (0 : ℝ))
isOpen_compl_singleton).mono ?_
rintro _ ⟨⟨a, rfl⟩, ha⟩
exact ⟨a, by simpa using ha, rfl⟩
· exact (Homeomorph.addLeft (√2)).surjective.denseRange.comp Rat.denseRange_cast
(Homeomorph.addLeft (√2)).continuous
theorem zero_notMem_sqrtTwoSet
TopologyByExample.RadialPlane.zero_notMem_sqrtTwoSet
The origin is not one of the points (a, √2 + r), since √2 + r ≠ 0.
theorem zero_notMem_sqrtTwoSet : ofPlane 0 ∉ sqrtTwoSet
Proof
:= by
rintro ⟨z, ⟨-, r, hr⟩, hz⟩
have h2 : z.2 = 0 := congrArg Prod.snd hz
rw [← hr] at h2
exact (irrational_sqrt_two.add_ratCast r).ne_rat 0 (by simpa using h2)
theorem subsingleton_line_sqrtTwoSet
TopologyByExample.RadialPlane.subsingleton_line_sqrtTwoSet
Each line through the origin contains at most one of the points (a, √2 + r): two of them,
(a₁, √2 + r₁) and (a₂, √2 + r₂), on one line through the origin satisfy
a₁ (√2 + r₂) = a₂ (√2 + r₁), so a₁ = a₂ since √2 is irrational.
theorem subsingleton_line_sqrtTwoSet (v : ℝ × ℝ) : (line 0 v ⁻¹' sqrtTwoSet).Subsingleton
Proof
:= by
rintro t₁ ⟨z₁, ⟨⟨a₁, ha₁, h₁⟩, r₁, hr₁⟩, hz₁⟩ t₂ ⟨z₂, ⟨⟨a₂, ha₂, h₂⟩, r₂, hr₂⟩, hz₂⟩
have e₁ : z₁ = t₁ • v := by simpa [line] using congrArg toPlane hz₁
have e₂ : z₂ = t₂ • v := by simpa [line] using congrArg toPlane hz₂
simp only at hr₁ hr₂
have x₁ : t₁ * v.1 = a₁ := by rw [h₁, e₁]; rfl
have y₁ : t₁ * v.2 = √2 + r₁ := by rw [hr₁, e₁]; rfl
have x₂ : t₂ * v.1 = a₂ := by rw [h₂, e₂]; rfl
have y₂ : t₂ * v.2 = √2 + r₂ := by rw [hr₂, e₂]; rfl
have hcross : (a₁ : ℝ) * (√2 + r₂) = a₂ * (√2 + r₁) := by
rw [← x₁, ← y₂, ← x₂, ← y₁]; ring
have ha : a₁ = a₂ := by
by_contra hne
have hq : ((a₁ - a₂ : ℚ) : ℝ) * √2 = ((a₂ * r₁ - a₁ * r₂ : ℚ) : ℝ) := by
push_cast; linear_combination hcross
exact (irrational_sqrt_two.ratCast_mul (sub_ne_zero.2 hne)).ne_rat _ hq
have hv : v.1 ≠ 0 := fun h ↦ ha₁ (by
have : (a₁ : ℝ) = 0 := by rw [← x₁, h, mul_zero]
exact_mod_cast this)
have : t₁ * v.1 = t₂ * v.1 := by rw [x₁, x₂, ha]
exact mul_right_cancel₀ hv this
theorem not_frechetUrysohnSpace
TopologyByExample.RadialPlane.not_frechetUrysohnSpace
The radial plane is not Fréchet–Urysohn: the origin lies in the closure of the dense set of
points (a, √2 + r), but no sequence of them tends to it. If one did, its range, together with the
origin, would be closed in the Euclidean plane, and each line through the origin meets the range in
at most one point, so the range would be closed and contain the origin.
theorem not_frechetUrysohnSpace : ¬FrechetUrysohnSpace RadialPlane
Proof
:= by
intro h
obtain ⟨u, huA, hu⟩ := h.closure_subset_seqClosure sqrtTwoSet
(dense_sqrtTwoSet.closure_eq ▸ mem_univ (ofPlane 0))
have hcl : IsClosed (insert 0 (toPlane '' range u)) := by
rw [← range_comp]
exact ((continuous_toPlane.tendsto _).comp hu).isCompact_insert_range.isClosed
have hS : IsClosed (range u) :=
isClosed_of_subsingleton_line (x := 0) hcl
fun v ↦ (subsingleton_line_sqrtTwoSet v).anti (preimage_mono (by
rintro _ ⟨n, rfl⟩; exact huA n))
obtain ⟨n, hn⟩ := hS.mem_of_tendsto hu (Eventually.of_forall fun n ↦ mem_range_self n)
exact zero_notMem_sqrtTwoSet (hn ▸ huA n)
On this site: Radial plane is not Fréchet–Urysohn
Semiregularity
definition slope
TopologyByExample.RadialPlane.slope
The j-th slope: an enumeration of the rationals.
def slope (j : ℕ) : ℝ
:= ((Denumerable.eqv ℚ).symm j : ℚ)
definition pencilAbscissa
TopologyByExample.RadialPlane.pencilAbscissa
The abscissa of the j-th point of the pencil sequence.
def pencilAbscissa (j : ℕ) : ℝ
:= 1 / ((j + 1) * (1 + |slope j|))
definition pencilPt
TopologyByExample.RadialPlane.pencilPt
The j-th point of the pencil sequence: on the line through the origin of slope slope j, at
abscissa pencilAbscissa j.
def pencilPt (j : ℕ) : ℝ × ℝ
:= (pencilAbscissa j, slope j * pencilAbscissa j)
theorem pencilAbscissa_pos
TopologyByExample.RadialPlane.pencilAbscissa_pos
theorem pencilAbscissa_pos (j : ℕ) : 0 < pencilAbscissa j
Proof
:= by
unfold pencilAbscissa; positivity
theorem pencilAbscissa_le
TopologyByExample.RadialPlane.pencilAbscissa_le
theorem pencilAbscissa_le (j : ℕ) : pencilAbscissa j ≤ 1 / (j + 1)
Proof
:= by
unfold pencilAbscissa
exact one_div_le_one_div_of_le (by positivity) (le_mul_of_one_le_right (by positivity)
(le_add_of_nonneg_right (abs_nonneg _)))
theorem abs_slope_mul_le
TopologyByExample.RadialPlane.abs_slope_mul_le
theorem abs_slope_mul_le (j : ℕ) : |slope j * pencilAbscissa j| ≤ 1 / (j + 1)
Proof
:= by
rw [abs_mul, abs_of_pos (pencilAbscissa_pos j)]
unfold pencilAbscissa
rw [mul_one_div, div_le_div_iff₀ (by positivity) (by positivity)]
nlinarith [abs_nonneg (slope j)]
theorem tendsto_pencilPt
TopologyByExample.RadialPlane.tendsto_pencilPt
The pencil sequence tends to the origin.
theorem tendsto_pencilPt : Tendsto pencilPt atTop (𝓝 0)
Proof
:= by
have h := tendsto_one_div_add_atTop_nhds_zero_nat (𝕜 := ℝ)
refine Tendsto.prodMk_nhds ?_ ?_
· exact squeeze_zero_norm (fun j ↦ by
rw [Real.norm_eq_abs, abs_of_pos (pencilAbscissa_pos j)]; exact pencilAbscissa_le j) h
· exact squeeze_zero_norm (fun j ↦ by rw [Real.norm_eq_abs]; exact abs_slope_mul_le j) h
definition pencilSet
TopologyByExample.RadialPlane.pencilSet
The points of the pencil sequence, in the radial plane.
def pencilSet : Set RadialPlane
:= ofPlane '' range pencilPt
theorem subsingleton_line_pencilSet
TopologyByExample.RadialPlane.subsingleton_line_pencilSet
Each line through the origin contains at most one point of the pencil sequence, since the slopes are distinct.
theorem subsingleton_line_pencilSet (v : ℝ × ℝ) : (line 0 v ⁻¹' pencilSet).Subsingleton
Proof
:= by
rintro t₁ ⟨_, ⟨i, rfl⟩, h₁⟩ t₂ ⟨_, ⟨j, rfl⟩, h₂⟩
have e₁ : pencilPt i = t₁ • v := by simpa [line] using congrArg toPlane h₁
have e₂ : pencilPt j = t₂ • v := by simpa [line] using congrArg toPlane h₂
have x₁ : t₁ * v.1 = pencilAbscissa i := (congrArg Prod.fst e₁).symm
have y₁ : t₁ * v.2 = slope i * pencilAbscissa i := (congrArg Prod.snd e₁).symm
have x₂ : t₂ * v.1 = pencilAbscissa j := (congrArg Prod.fst e₂).symm
have y₂ : t₂ * v.2 = slope j * pencilAbscissa j := (congrArg Prod.snd e₂).symm
have hcross : pencilAbscissa i * pencilAbscissa j * (slope j - slope i) = 0 := by
have : (t₁ * v.1) * (t₂ * v.2) = (t₂ * v.1) * (t₁ * v.2) := by ring
rw [x₁, y₂, x₂, y₁] at this
linear_combination this
have hs : slope i = slope j := by
have := (mul_eq_zero.1 hcross).resolve_left
(mul_pos (pencilAbscissa_pos i) (pencilAbscissa_pos j)).ne'
linarith
have hij : i = j := by
have : ((Denumerable.eqv ℚ).symm i : ℚ) = (Denumerable.eqv ℚ).symm j :=
Rat.cast_injective (α := ℝ) hs
exact (Denumerable.eqv ℚ).symm.injective this
subst hij
have hv : v.1 ≠ 0 := fun h ↦ (pencilAbscissa_pos i).ne' (by rw [← x₁, h, mul_zero])
exact mul_right_cancel₀ hv (x₁.trans x₂.symm)
theorem isClosed_pencilSet
TopologyByExample.RadialPlane.isClosed_pencilSet
The pencil sequence is closed.
theorem isClosed_pencilSet : IsClosed pencilSet
Proof
:= by
refine isClosed_of_subsingleton_line (x := 0) ?_ subsingleton_line_pencilSet
have : toPlane '' pencilSet = range pencilPt := by
ext z; exact ⟨fun ⟨_, ⟨w, hw, rfl⟩, h⟩ ↦ h ▸ hw, fun hz ↦ ⟨_, ⟨z, hz, rfl⟩, rfl⟩⟩
rw [this]
exact tendsto_pencilPt.isCompact_insert_range.isClosed
theorem zero_notMem_pencilSet
TopologyByExample.RadialPlane.zero_notMem_pencilSet
The origin is not a point of the pencil sequence.
theorem zero_notMem_pencilSet : ofPlane 0 ∉ pencilSet
Proof
:= by
rintro ⟨_, ⟨j, rfl⟩, h⟩
exact (pencilAbscissa_pos j).ne' (congrArg Prod.fst h)
theorem exists_slope_mem
TopologyByExample.RadialPlane.exists_slope_mem
Between any two rationals there are slopes of arbitrarily large index.
theorem exists_slope_mem {c d : ℚ} (hcd : c < d) (k : ℕ) :
∃ j, k < j ∧ (c : ℝ) < slope j ∧ slope j < d
Proof
:= by
have hinf : ((Denumerable.eqv ℚ) '' Ioo c d).Infinite :=
(Set.Ioo_infinite hcd).image (Denumerable.eqv ℚ).injective.injOn
obtain ⟨j, ⟨q, hq, rfl⟩, hj⟩ := hinf.exists_gt k
refine ⟨_, hj, ?_, ?_⟩ <;> simp only [slope, Equiv.symm_apply_apply]
· exact_mod_cast hq.1
· exact_mod_cast hq.2
theorem not_semiregularSpace
TopologyByExample.RadialPlane.not_semiregularSpace
The radial plane is not semiregular. Let V be a regular open set containing the origin and
missing the closed pencil sequence. For each slope m, the line through the origin of slope m
meets V in a segment of some length 1 / (k + 1); by the Baire category theorem, the slopes with
one k are dense in an interval (c, d). Then the closure of V contains the open sector of the
points (x, y) with 0 < x < 1 / (k + 1) and c x < y < d x (along vertical lines), so V, being
the interior of its closure, contains it, and so a point of the pencil sequence.
theorem not_semiregularSpace : ¬SemiregularSpace RadialPlane
Proof
:= by
intro h
obtain ⟨V, hVreg, h0V, hVW⟩ := h.isTopologicalBasis.exists_subset_of_mem_open
zero_notMem_pencilSet isClosed_pencilSet.isOpen_compl
have hVreg' : interior (closure V) = V := hVreg
have hVo : IsOpen V := hVreg' ▸ isOpen_interior
have hM : ∀ m : ℝ, ∃ k : ℕ, ∀ t : ℝ, |t| < 1 / ((k : ℝ) + 1) → ofPlane (t, m * t) ∈ V := by
intro m
obtain ⟨ε, hε, hball⟩ := Metric.isOpen_iff.1 (isOpen_iff.1 hVo 0 (1, m)) 0
(by simpa [line] using h0V)
obtain ⟨k, hk⟩ := exists_nat_one_div_lt hε
refine ⟨k, fun t ht ↦ ?_⟩
have := hball (show t ∈ Metric.ball 0 ε by
rw [Metric.mem_ball, Real.dist_eq, sub_zero]; linarith)
have e : line 0 (1, m) t = ofPlane (t, m * t) := by
simp only [line]; congr 1; ext <;> simp [mul_comm]
rwa [mem_preimage, e] at this
choose K hK using hM
obtain ⟨k, W, hW, hWne, hWM⟩ := exists_subset_of_isOpen_subset_iUnion isOpen_univ univ_nonempty
(C := fun k : ℕ ↦ closure {m | K m = k}) (fun _ ↦ isClosed_closure)
fun m _ ↦ mem_iUnion.2 ⟨K m, subset_closure rfl⟩
obtain ⟨c, d, hcd, hcdW⟩ := exists_rat_Ioo_subset hW hWne
set ρ : ℝ := 1 / ((k : ℝ) + 1)
set S' : Set (ℝ × ℝ) := {z | 0 < z.1 ∧ z.1 < ρ ∧ c * z.1 < z.2 ∧ z.2 < d * z.1}
have hS'o : IsOpen S' :=
(isOpen_lt continuous_const continuous_fst).inter ((isOpen_lt continuous_fst
continuous_const).inter ((isOpen_lt (by fun_prop) continuous_snd).inter
(isOpen_lt continuous_snd (by fun_prop))))
have hS'cl : toPlane ⁻¹' S' ⊆ closure V := by
intro w ⟨hz0, hzρ, hzc, hzd⟩
set z := toPlane w
have hm0 : z.2 / z.1 ∈ closure {m | K m = k} :=
hWM (hcdW ⟨(lt_div_iff₀ hz0).2 hzc, (div_lt_iff₀ hz0).2 hzd⟩)
have := map_mem_closure (f := fun m : ℝ ↦ line (z.1, 0) (0, z.1) m) (x := z.2 / z.1)
(t := V) (continuous_line _ _) hm0 fun m hm ↦ by
have := hK m z.1 (by rw [show K m = k from hm, abs_of_pos hz0]; exact hzρ)
convert this using 1
simp only [line]; congr 1; ext <;> simp
convert this using 1
change toPlane w = (z.1, 0) + (z.2 / z.1) • ((0 : ℝ), z.1)
have hne : z.1 ≠ 0 := hz0.ne'
refine Prod.ext ?_ ?_
· simp [z]
· simp [div_mul_cancel₀ _ hne, z]
have hS'int : toPlane ⁻¹' S' ⊆ V :=
hVreg' ▸ interior_maximal hS'cl (isOpen_preimage_toPlane hS'o)
obtain ⟨j, hkj, hcj, hjd⟩ := exists_slope_mem hcd k
have hr := pencilAbscissa_pos j
have hjρ : pencilAbscissa j < ρ := (pencilAbscissa_le j).trans_lt
(one_div_lt_one_div_of_lt (by positivity) (by exact_mod_cast Nat.succ_lt_succ hkj))
have hjS : ofPlane (pencilPt j) ∈ toPlane ⁻¹' S' :=
⟨hr, hjρ, by simp only [toPlane_ofPlane, pencilPt]; nlinarith,
by simp only [toPlane_ofPlane, pencilPt]; nlinarith⟩
exact hVW (hS'int hjS) ⟨_, mem_range_self j, rfl⟩
On this site: Radial plane is not semiregular