Lean library · module TopologyByExample.Spaces.ErdosDimension

The small inductive dimension of complete Erdős space

Source file

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.CompleteErdos.sphereCoordinates

The coordinate map on a sphere, with values in the countable coordinate alphabet.

def sphereCoordinates (c : CompleteErdos) (r : ℝ) : sphere c r → (ℕ → coordinates)
:=
  fun x i ↦ ⟨x.val.val i, x.val.property i⟩

theorem continuous_sphereCoordinates

TopologyByExample.CompleteErdos.continuous_sphereCoordinates

The sphere coordinate map is continuous.

theorem continuous_sphereCoordinates (c : CompleteErdos) (r : ℝ) :
    Continuous (sphereCoordinates c r)
Proof
:=
  continuous_pi fun i ↦ ((continuous_coordinate i).comp continuous_subtypeVal).subtype_mk _

theorem isInducing_sphereCoordinates

TopologyByExample.CompleteErdos.isInducing_sphereCoordinates

On a norm sphere the coordinate topology agrees with the norm topology.

theorem isInducing_sphereCoordinates (c : CompleteErdos) (r : ℝ) :
    IsInducing (sphereCoordinates c r)
Proof
:= by
  rw [isInducing_iff_nhds]
  intro z
  apply le_antisymm ((continuous_sphereCoordinates c r).tendsto z).le_comap
  let l := comap (sphereCoordinates c r) (𝓝 (sphereCoordinates c r z))
  have hf : Tendsto (sphereCoordinates c r) l (𝓝 (sphereCoordinates c r z)) := tendsto_comap
  have hcoord : ∀ i, Tendsto (fun y : sphere c r ↦ y.val.val i - c.val i)
      l (𝓝 (z.val.val i - c.val i)) := by
    intro i
    exact (((continuous_subtypeVal.comp (continuous_apply i)).tendsto _).comp hf).sub_const _
  have hnorm : ∀ y : sphere c r, ‖y.val.val - c.val‖ = r := by
    intro y
    simpa only [mem_sphere, Subtype.dist_eq, dist_eq_norm] using y.property
  have hn : Tendsto (fun y : sphere c r ↦ ‖y.val.val - c.val‖)
      l (𝓝 ‖z.val.val - c.val‖) := by
    simpa only [hnorm] using (tendsto_const_nhds (x := r) (f := l))
  have h := tendsto_of_coordinates_and_norm
    (fun y : sphere c r ↦ y.val.val - c.val) (z.val.val - c.val) hcoord hn
  have hv : Tendsto (fun y : sphere c r ↦ y.val.val) l (𝓝 z.val.val) := by
    simpa only [sub_add_cancel] using h.add_const c.val
  have hz : Tendsto (fun y : sphere c r ↦ y) l (𝓝 z) :=
    tendsto_subtype_rng.mpr (tendsto_subtype_rng.mpr hv)
  simpa only [Tendsto, map_id'] using hz

instance sphere_zeroDimensional

TopologyByExample.CompleteErdos.sphere_zeroDimensional

Every sphere in complete Erdős space is zero-dimensional.

instance sphere_zeroDimensional (c : CompleteErdos) (r : ℝ) :
    ZeroDimensionalSpace (sphere c r)
Proof
:= by
  have : ZeroDimensionalSpace coordinates := countable_coordinates.zeroDimensionalSpace
  exact (isInducing_sphereCoordinates c r).hasSmallInductiveDimensionLT inferInstance

On this site: Complete Erdős space: Zero-dimensional metric spheres

instance frontier_ball_zeroDimensional

TopologyByExample.CompleteErdos.frontier_ball_zeroDimensional

Ball frontiers inherit zero-dimensionality from their containing spheres.

instance frontier_ball_zeroDimensional (c : CompleteErdos) (r : ℝ) :
    ZeroDimensionalSpace (frontier (ball c r))
Proof
:=
  (IsEmbedding.inclusion frontier_ball_subset_sphere).isInducing.hasSmallInductiveDimensionLT
    (sphere_zeroDimensional c r)

instance smallInductiveDimensionLE_one

TopologyByExample.CompleteErdos.smallInductiveDimensionLE_one

Complete Erdős space has small inductive dimension at most one.

instance smallInductiveDimensionLE_one : HasSmallInductiveDimensionLE CompleteErdos 1
Proof
:= by
  let B : Set (Set CompleteErdos) := {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.CompleteErdos.smallInductiveDimension_eq_one

Complete Erdős space has small inductive dimension exactly one.

theorem smallInductiveDimension_eq_one : smallInductiveDimension CompleteErdos = 1
Proof
:=
  smallInductiveDimension_eq 1 smallInductiveDimensionLE_one not_zeroDimensionalSpace

On this site: Complete Erdős space: Small inductive dimension one