Lean library · module TopologyByExample.Spaces.ErdosClopen
The clopen obstruction in 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.
definition initialSum
TopologyByExample.ErdosSpace.initialSum
A finite initial segment of rational coordinates.
def initialSum (q : ℕ → ℚ) (n : ℕ) : ErdosSpace
:=
∑ i ∈ Finset.range n, single i (q i)
theorem partial_zero
TopologyByExample.ErdosSpace.partial_zero
@[simp] theorem partial_zero (q : ℕ → ℚ) : initialSum q 0 = 0
Proof
:= by simp [initialSum]
theorem partial_succ
TopologyByExample.ErdosSpace.partial_succ
@[simp] theorem partial_succ (q : ℕ → ℚ) (n : ℕ) :
initialSum q (n + 1) = initialSum q n + single n (q n)
Proof
:= by
simp [initialSum, Finset.sum_range_succ]
theorem partial_apply
TopologyByExample.ErdosSpace.partial_apply
Coordinates of a finite initial segment.
theorem partial_apply (q : ℕ → ℚ) (n k : ℕ) :
inclusion (initialSum q n) k = if k < n then (q k : ℝ) else 0
Proof
:= by
unfold initialSum
rw [inclusion_sum]
simp only [inclusion_single, lp.coeFn_sum, Finset.sum_apply, lp.single_apply]
simp
theorem exists_limit_of_bounded_partial
TopologyByExample.ErdosSpace.exists_limit_of_bounded_partial
Bounded rational initial segments converge in the norm to a rational-coordinate point.
theorem exists_limit_of_bounded_partial (q : ℕ → ℚ) (C : ℝ)
(hC : ∀ n, ‖initialSum q n‖ ≤ C) :
∃ x : ErdosSpace, (∀ k, inclusion x k = q k) ∧
Tendsto (initialSum q) atTop (𝓝 x)
Proof
:= by
have hp : Tendsto (fun n ↦ (inclusion (initialSum q n) : ℕ → ℝ))
atTop (𝓝 (fun k ↦ (q k : ℝ))) := by
apply tendsto_pi_nhds.mpr
intro k
apply tendsto_const_nhds.congr'
filter_upwards [eventually_gt_atTop k] with n hn
simp [partial_apply, hn]
have hb : Bornology.IsBounded (range (fun n ↦ inclusion (initialSum q n))) := by
apply isBounded_iff_forall_norm_le.mpr
exact ⟨C, forall_mem_range.mpr hC⟩
have hm : Memℓp (fun k ↦ (q k : ℝ)) 2 := lp.memℓp_of_tendsto hb hp
let x : ErdosSpace := ⟨⟨fun k ↦ (q k : ℝ), hm⟩, fun k ↦ ⟨q k, rfl⟩⟩
have hx : ∀ k, inclusion x k = (q k : ℝ) := fun _ ↦ rfl
refine ⟨x, hx, ?_⟩
apply isometry_inclusion.isEmbedding.tendsto_nhds_iff.mpr
simpa only [Function.comp_def, initialSum, inclusion_sum, inclusion_single, hx] using
(lp.hasSum_single (p := 2) (by norm_num) (inclusion x)).tendsto_sum_nat
theorem exists_dyadic_append
TopologyByExample.ErdosSpace.exists_dyadic_append
A positive dyadic coordinate can be appended inside any open neighbourhood.
theorem exists_dyadic_append {U : Set ErdosSpace} (hU : IsOpen U)
{x : ErdosSpace} (hx : x ∈ U) (n : ℕ) :
∃ m : ℕ, x + single n ((1 / 2 : ℚ) ^ m) ∈ U
Proof
:= by
have ht : Tendsto (fun m : ℕ ↦ (1 / 2 : ℚ) ^ m) atTop (𝓝 0) :=
tendsto_pow_atTop_nhds_zero_of_lt_one (by norm_num) (by norm_num)
have hl := (continuous_line x n).continuousAt.tendsto.comp ht
have hh : ∀ᶠ m in atTop, x + single n ((1 / 2 : ℚ) ^ m) ∈ U := by
apply hl.eventually
simpa using hU.mem_nhds hx
exact hh.exists
theorem single_add
TopologyByExample.ErdosSpace.single_add
@[simp] theorem single_add (n : ℕ) (q r : ℚ) :
single n (q + r) = single n q + single n r
Proof
:= by
apply isometry_inclusion.injective
simp only [inclusion_single, inclusion_add, Rat.cast_add, lp.single_add]
theorem not_clopen_small
TopologyByExample.ErdosSpace.not_clopen_small
A clopen neighbourhood of zero cannot be contained in the unit ball.
theorem not_clopen_small {U : Set ErdosSpace} (hU : IsClopen U) (h0 : 0 ∈ U)
(hb : ∀ x ∈ U, ‖x‖ < 1) : False
Proof
:= by
classical
let pick (n : ℕ) (x : U) := Nat.find (exists_dyadic_append hU.isOpen x.property n)
let next (n : ℕ) (x : U) : U :=
⟨x.val + single n ((1 / 2 : ℚ) ^ pick n x),
Nat.find_spec (exists_dyadic_append hU.isOpen x.property n)⟩
let u : ℕ → U := fun n ↦ Nat.rec ⟨0, h0⟩ next n
let m : ℕ → ℕ := fun n ↦ pick n (u n)
let q : ℕ → ℚ := fun n ↦ (1 / 2 : ℚ) ^ m n
have hu : ∀ n, (u n).val = initialSum q n := by
intro n
induction n with
| zero => simp [u]
| succ n ih =>
change (u n).val + single n (q n) = initialSum q (n + 1)
rw [ih, partial_succ]
have hm : ∀ n, m n ≠ 0 := by
intro n hn
have hc : inclusion (initialSum q (n + 1)) n = 1 := by
simp [partial_apply, q, hn]
have hlt : ‖initialSum q (n + 1)‖ < 1 := by
rw [← hu (n + 1)]
exact hb (u (n + 1)).val (u (n + 1)).property
have he : ‖inclusion (initialSum q (n + 1))‖ = ‖initialSum q (n + 1)‖ := by
simpa only [dist_zero_right, inclusion_zero] using
isometry_inclusion.dist_eq (initialSum q (n + 1)) 0
have hnorm : 1 ≤ ‖initialSum q (n + 1)‖ := by
rw [← he]
have h := lp.norm_apply_le_norm (p := 2) (by norm_num)
(inclusion (initialSum q (n + 1))) n
rw [hc, norm_one] at h
exact h
exact (not_lt_of_ge hnorm) hlt
have hout : ∀ n, initialSum q n + single n (2 * q n) ∉ U := by
intro n
obtain ⟨k, hk⟩ := Nat.exists_eq_succ_of_ne_zero (hm n)
have hp : (1 / 2 : ℚ) ^ k = 2 * q n := by
dsimp [q]
rw [hk, pow_succ]
ring
have hf := Nat.find_min (exists_dyadic_append hU.isOpen (u n).property n)
(show k < pick n (u n) by change k < m n; omega)
simpa only [hu, hp] using hf
obtain ⟨x, _, hlim⟩ := exists_limit_of_bounded_partial q 1
(fun n ↦ (hu n ▸ hb (u n).val (u n).property).le)
have hx : x ∈ U := hU.isClosed.mem_of_tendsto hlim
(Eventually.of_forall fun n ↦ hu n ▸ (u n).property)
have hshift : Tendsto (fun n ↦ initialSum q (n + 1)) atTop (𝓝 x) :=
hlim.comp (tendsto_add_atTop_nat 1)
have hterm : Tendsto (fun n ↦ single n (q n)) atTop (𝓝 0) := by
simpa only [partial_succ, add_sub_cancel_left, sub_self] using hshift.sub hlim
have hlim' : Tendsto (fun n ↦ initialSum q n + single n (2 * q n)) atTop (𝓝 x) := by
have he : ∀ n, initialSum q n + single n (2 * q n) =
initialSum q (n + 1) + single n (q n) := by
intro n
rw [two_mul, single_add, partial_succ, add_assoc]
simpa only [he, add_zero] using hshift.add hterm
exact (hU.isOpen.isClosed_compl.mem_of_tendsto hlim'
(Eventually.of_forall hout)) hx
theorem not_zeroDimensionalSpace
TopologyByExample.ErdosSpace.not_zeroDimensionalSpace
Erdős space is not zero-dimensional.
theorem not_zeroDimensionalSpace : ¬ZeroDimensionalSpace ErdosSpace
Proof
:= by
intro h
obtain ⟨U, hU, h0, hsub⟩ := exists_isClopen_mem_of_isOpen Metric.isOpen_ball
(Metric.mem_ball_self (by norm_num : (0 : ℝ) < 1) : (0 : ErdosSpace) ∈ Metric.ball 0 1)
exact not_clopen_small hU h0 fun x hx ↦ by
simpa [Metric.mem_ball, dist_zero_right] using hsub hx
On this site: Erdős space is not zero-dimensional