Lean library · module TopologyByExample.Spaces.ErdosBoundaryStep

The coordinate step in the Erdős boundary construction

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 insertReciprocal

TopologyByExample.CompleteErdos.insertReciprocal

Replace a zero coordinate with a positive reciprocal.

def insertReciprocal (x : CompleteErdos) (i : ℕ) (hi : x.val i = 0)
    (n : ℕ) : CompleteErdos
Definition
:=
  ⟨x.val + lp.single 2 i (1 / ((n : ℝ) + 1)), by
    intro j
    by_cases hj : i = j
    · subst j
      simpa only [lp.coeFn_add, Pi.add_apply, lp.single_apply, Pi.single_eq_same, hi, zero_add]
        using (show (1 / ((n : ℝ) + 1)) ∈ coordinates from Or.inr ⟨n, rfl⟩)
    · simpa only [lp.coeFn_add, Pi.add_apply, lp.single_apply, Pi.single_eq_of_ne (Ne.symm hj),
        add_zero] using x.property j⟩

theorem insertReciprocal_at

TopologyByExample.CompleteErdos.insertReciprocal_at

The inserted coordinate has its prescribed value.

theorem insertReciprocal_at (x : CompleteErdos) (i : ℕ) (hi : x.val i = 0) (n : ℕ) :
    (insertReciprocal x i hi n).val i = 1 / ((n : ℝ) + 1)
Proof
:= by
  simp [insertReciprocal, hi]

theorem insertReciprocal_away

TopologyByExample.CompleteErdos.insertReciprocal_away

All other coordinates are unchanged.

theorem insertReciprocal_away (x : CompleteErdos) (i : ℕ) (hi : x.val i = 0)
    (n j : ℕ) (hj : j ≠ i) : (insertReciprocal x i hi n).val j = x.val j
Proof
:= by
  simp [insertReciprocal, lp.single_apply, Ne.symm hj]

theorem tendsto_insertReciprocal

TopologyByExample.CompleteErdos.tendsto_insertReciprocal

Small reciprocal insertions converge to the original point in norm.

theorem tendsto_insertReciprocal (x : CompleteErdos) (i : ℕ) (hi : x.val i = 0) :
    Tendsto (insertReciprocal x i hi) atTop (𝓝 x)
Proof
:= by
  apply tendsto_subtype_rng.mpr
  have h := (lp.isometry_single (E := fun _ : ℕ ↦ ℝ) (p := 2) i).continuous
    |>.continuousAt.tendsto.comp (tendsto_one_div_add_atTop_nhds_zero_nat (𝕜 := ℝ))
  simpa [insertReciprocal] using tendsto_const_nhds.add h

theorem exists_insertReciprocal_mem

TopologyByExample.CompleteErdos.exists_insertReciprocal_mem

An open neighbourhood admits some reciprocal insertion at a zero coordinate.

theorem exists_insertReciprocal_mem {U : Set CompleteErdos} (hU : IsOpen U)
    (x : CompleteErdos) (hx : x ∈ U) (i : ℕ) (hi : x.val i = 0) :
    ∃ n, insertReciprocal x i hi n ∈ U
Proof
:=
  ((tendsto_insertReciprocal x i hi).eventually (hU.mem_nhds hx)).exists

theorem exists_boundary_step

TopologyByExample.CompleteErdos.exists_boundary_step

Inside the unit ball, the least successful denominator is not the denominator one.

theorem exists_boundary_step {U : Set CompleteErdos} (hU : IsOpen U)
    (hbound : ∀ y ∈ U, ‖y.val‖ < 1) (x : CompleteErdos) (hx : x ∈ U)
    (i : ℕ) (hi : x.val i = 0) :
    ∃ n : ℕ, 0 < n ∧ insertReciprocal x i hi n ∈ U ∧
      insertReciprocal x i hi (n - 1) ∉ U
Proof
:= by
  classical
  have hex := exists_insertReciprocal_mem hU x hx i hi
  let n := Nat.find hex
  have hn : insertReciprocal x i hi n ∈ U := Nat.find_spec hex
  have hpos : 0 < n := by
    by_contra h
    have hn0 : n = 0 := Nat.eq_zero_of_not_pos h
    have hnorm := lp.norm_apply_le_norm (by norm_num : (2 : ℝ≥0∞) ≠ 0)
      (insertReciprocal x i hi n).val i
    rw [insertReciprocal_at, hn0] at hnorm
    norm_num at hnorm
    exact (not_lt_of_ge hnorm) (hbound _ (hn0 ▸ hn))
  exact ⟨n, hpos, hn, Nat.find_min hex (Nat.sub_lt hpos (by decide))⟩