Lean library · module TopologyByExample.Spaces.ErdosMonotone

Monotone convergence in the real Hilbert sequence space

Source file

This supplies the convergence step in the boundary argument for 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

theorem norm_sq_eq_tsum

TopologyByExample.CompleteErdos.norm_sq_eq_tsum

Squared norms of real ℓ² sequences are sums of coordinate squares.

theorem norm_sq_eq_tsum (x : Ambient) : ‖x‖ ^ 2 = ∑' i, ‖x i‖ ^ 2
Proof
:= by
  simpa using lp.norm_rpow_eq_tsum (by norm_num : 0 < (2 : ℝ≥0∞).toReal) x

theorem tendsto_of_nonneg_le_limit

TopologyByExample.CompleteErdos.tendsto_of_nonneg_le_limit

Pointwise convergence dominated by a nonnegative ℓ² limit is norm convergence.

theorem tendsto_of_nonneg_le_limit (u : ℕ → Ambient) (x : Ambient)
    (h₀ : ∀ n i, 0 ≤ u n i) (hle : ∀ n i, u n i ≤ x i)
    (hlim : ∀ i, Tendsto (fun n ↦ u n i) atTop (𝓝 (x i))) :
    Tendsto u atTop (𝓝 x)
Proof
:= by
  have hsum : Summable (fun i ↦ ‖x i‖ ^ 2) := by
    simpa using (lp.memℓp x).summable (by norm_num : 0 < (2 : ℝ≥0∞).toReal)
  have hs : Tendsto (fun n ↦ ∑' i, ‖u n i - x i‖ ^ 2) atTop (𝓝 0) := by
    simpa using tendsto_tsum_of_dominated_convergence hsum
      (g := fun _ ↦ (0 : ℝ))
      (fun i ↦ by simpa using ((hlim i).sub_const (x i)).norm.pow 2)
      (.of_forall fun n i ↦ by
        have hx : 0 ≤ x i := (h₀ n i).trans (hle n i)
        simp only [Real.norm_eq_abs, abs_pow, sq_abs]
        nlinarith [h₀ n i, hle n i])
  have hn : Tendsto (fun n ↦ ‖u n - x‖ ^ 2) atTop (𝓝 0) := by
    simpa only [norm_sq_eq_tsum, lp.coeFn_sub, Pi.sub_apply] using hs
  apply tendsto_iff_norm_sub_tendsto_zero.mpr
  simpa only [Real.sqrt_sq_eq_abs, abs_norm, Real.sqrt_zero] using hn.sqrt

theorem exists_limit_of_monotone_bounded

TopologyByExample.CompleteErdos.exists_limit_of_monotone_bounded

Nonnegative, coordinatewise increasing, norm-bounded sequences converge in ℓ².

theorem exists_limit_of_monotone_bounded (u : ℕ → Ambient)
    (h₀ : ∀ n i, 0 ≤ u n i) (hmono : ∀ i, Monotone (fun n ↦ u n i))
    (C : ℝ) (hC : ∀ n, ‖u n‖ ≤ C) :
    ∃ x : Ambient, Tendsto u atTop (𝓝 x) ∧ ‖x‖ ≤ C ∧
      (∀ i, 0 ≤ x i) ∧ (∀ n i, u n i ≤ x i)
Proof
:= by
  have hb : ∀ i, BddAbove (range (fun n ↦ u n i)) := by
    intro i
    refine ⟨C, ?_⟩
    rintro _ ⟨n, rfl⟩
    exact (le_abs_self _).trans ((lp.norm_apply_le_norm (by norm_num) (u n) i).trans (hC n))
  let f : ℕ → ℝ := fun i ↦ ⨆ n, u n i
  have hf : ∀ i, Tendsto (fun n ↦ u n i) atTop (𝓝 (f i)) :=
    fun i ↦ tendsto_atTop_ciSup (hmono i) (hb i)
  have hb' : Bornology.IsBounded (range u) :=
    isBounded_iff_forall_norm_le.mpr ⟨C, by rintro _ ⟨n, rfl⟩; exact hC n⟩
  let x : Ambient := ⟨f, lp.memℓp_of_tendsto hb' (tendsto_pi_nhds.mpr hf)⟩
  have hle : ∀ n i, u n i ≤ x i := fun n i ↦ (hmono i).ge_of_tendsto (hf i) n
  refine ⟨x, tendsto_of_nonneg_le_limit u x h₀ hle hf, ?_, ?_, hle⟩
  · exact lp.norm_le_of_tendsto (.of_forall hC) (tendsto_pi_nhds.mpr hf)
  · intro i
    exact (h₀ 0 i).trans (hle 0 i)

On this site: Theorem: Monotone bounded convergence in real ℓ²

theorem tendsto_coordinate_zero

TopologyByExample.CompleteErdos.tendsto_coordinate_zero

Coordinates of an ℓ² sequence tend to zero.

theorem tendsto_coordinate_zero (x : Ambient) : Tendsto x atTop (𝓝 0)
Proof
:= by
  have hs : Summable (fun i ↦ ‖x i‖ ^ 2) := by
    simpa using (lp.memℓp x).summable (by norm_num : 0 < (2 : ℝ≥0∞).toReal)
  have h := hs.tendsto_atTop_zero.sqrt
  apply tendsto_zero_iff_norm_tendsto_zero.mpr
  simpa only [Real.sqrt_sq_eq_abs, abs_norm, Real.sqrt_zero] using h

theorem tendsto_single_zero

TopologyByExample.CompleteErdos.tendsto_single_zero

Changing one coordinate by an amount tending to zero is a vanishing norm perturbation.

theorem tendsto_single_zero (a : ℕ → ℝ) (ha : Tendsto a atTop (𝓝 0)) :
    Tendsto (fun n ↦ lp.single (E := fun _ : ℕ ↦ ℝ) 2 n (a n)) atTop (𝓝 (0 : Ambient))
Proof
:= by
  apply tendsto_zero_iff_norm_tendsto_zero.mpr
  simpa only [lp.norm_single (by norm_num : (0 : ℝ≥0∞) < 2), norm_zero] using ha.norm