Lean library · module TopologyByExample.Spaces.RationalErdosDimension
The small inductive dimension of rational-coordinate Erdős space
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 sphereCoordinates
TopologyByExample.ErdosSpace.sphereCoordinates
The rational coordinates of a point on a metric sphere.
def sphereCoordinates (c : ErdosSpace) (r : ℝ) : sphere c r → (ℕ → ℚ)
:=
fun x i ↦ coordinate x.val i
theorem continuous_sphereCoordinates
TopologyByExample.ErdosSpace.continuous_sphereCoordinates
The rational-coordinate map on a sphere is continuous.
theorem continuous_sphereCoordinates (c : ErdosSpace) (r : ℝ) :
Continuous (sphereCoordinates c r)
Proof
:= by
apply continuous_pi
intro i
apply Rat.isEmbedding_coe_real.isInducing.continuous_iff.mpr
simpa only [Function.comp_def, sphereCoordinates, coordinate_cast] using
(continuous_coordinate i).comp continuous_subtypeVal
theorem isInducing_sphereCoordinates
TopologyByExample.ErdosSpace.isInducing_sphereCoordinates
On a metric sphere, rational coordinates determine the norm topology.
theorem isInducing_sphereCoordinates (c : ErdosSpace) (r : ℝ) :
IsInducing (sphereCoordinates c r)
Proof
:= by
let g : (ℕ → ℚ) → (ℕ → ℝ) × ℝ :=
fun v ↦ (fun i ↦ (v i : ℝ) - inclusion c i, r)
have hgcoord (i : ℕ) : Continuous (fun v : ℕ → ℚ ↦ (v i : ℝ) - inclusion c i) :=
(Rat.isEmbedding_coe_real.continuous.comp (continuous_apply i)).sub continuous_const
have hg : Continuous g := (continuous_pi hgcoord).prodMk continuous_const
have hi : Isometry (fun x : sphere c r ↦ inclusion x.val - inclusion c) := by
apply Isometry.of_dist_eq
intro x y
rw [dist_sub_right]
rfl
have he : g ∘ sphereCoordinates c r =
HilbertNormGraph.graph ∘ (fun x : sphere c r ↦ inclusion x.val - inclusion c) := by
funext x
apply Prod.ext
· ext i
simp [g, sphereCoordinates, HilbertNormGraph.graph]
· change r = ‖x.val - c‖
simpa only [mem_sphere, dist_eq_norm] using x.property.symm
exact IsInducing.of_comp (continuous_sphereCoordinates c r) hg
(he ▸ (HilbertNormGraph.isEmbedding_graph.comp hi.isEmbedding).isInducing)
instance sphere_zeroDimensional
TopologyByExample.ErdosSpace.sphere_zeroDimensional
Every metric sphere in rational-coordinate Erdős space is zero-dimensional.
instance sphere_zeroDimensional (c : ErdosSpace) (r : ℝ) :
ZeroDimensionalSpace (sphere c r)
Proof
:=
(isInducing_sphereCoordinates c r).hasSmallInductiveDimensionLT inferInstance
On this site: Erdős space: Zero-dimensional metric spheres
instance frontier_ball_zeroDimensional
TopologyByExample.ErdosSpace.frontier_ball_zeroDimensional
The frontier of a metric ball in Erdős space is zero-dimensional.
instance frontier_ball_zeroDimensional (c : ErdosSpace) (r : ℝ) :
ZeroDimensionalSpace (frontier (ball c r))
Proof
:=
(IsEmbedding.inclusion frontier_ball_subset_sphere).isInducing.hasSmallInductiveDimensionLT
(sphere_zeroDimensional c r)
instance smallInductiveDimensionLE_one
TopologyByExample.ErdosSpace.smallInductiveDimensionLE_one
Rational-coordinate Erdős space has small inductive dimension at most one.
instance smallInductiveDimensionLE_one : HasSmallInductiveDimensionLE ErdosSpace 1
Proof
:= by
let B : Set (Set ErdosSpace) := {U | ∃ c r, U = ball c r}
have hB : IsTopologicalBasis B := by
apply isTopologicalBasis_of_isOpen_of_nhds
· rintro U ⟨c, r, rfl⟩
exact isOpen_ball
· intro x U hx hU
obtain ⟨r, hr, hsub⟩ := Metric.mem_nhds_iff.mp (hU.mem_nhds hx)
exact ⟨ball x r, ⟨x, r, rfl⟩, mem_ball_self hr, hsub⟩
exact .succ 1 B hB (by rintro U ⟨c, r, rfl⟩; infer_instance)
theorem smallInductiveDimension_eq_one
TopologyByExample.ErdosSpace.smallInductiveDimension_eq_one
Rational-coordinate Erdős space has small inductive dimension exactly one.
theorem smallInductiveDimension_eq_one : smallInductiveDimension ErdosSpace = 1
Proof
:=
smallInductiveDimension_eq 1 smallInductiveDimensionLE_one not_zeroDimensionalSpace
On this site: Erdős space: Small inductive dimension one