Lean library · module TopologyByExample.Theorems.RealStoneCechSequences

Real sequences in the Stone–Čech compactification

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

theorem tendsto_abs_atTop_of_nonreal_limit

TopologyByExample.tendsto_abs_atTop_of_nonreal_limit

A real sequence converging to a nonreal Stone–Čech point escapes every bounded interval.

theorem tendsto_abs_atTop_of_nonreal_limit {x : ℕ → ℝ} {p : StoneCech ℝ}
    (hp : p ∉ range (stoneCechUnit : ℝ → StoneCech ℝ))
    (hx : Tendsto (stoneCechUnit ∘ x) atTop (𝓝 p)) :
    Tendsto (fun n ↦ |x n|) atTop atTop
Proof
:= by
  apply tendsto_atTop.2
  intro b
  let K := stoneCechUnit '' Icc (-|b|) |b|
  have hK : IsClosed K := (isCompact_Icc.image continuous_stoneCechUnit).isClosed
  have hpK : p ∉ K := fun ⟨y, _, hy⟩ ↦ hp ⟨y, hy⟩
  filter_upwards [hx.eventually (hK.isOpen_compl.mem_nhds hpK)] with n hn
  have hlarge : |b| < |x n| := by
    by_contra h
    exact hn ⟨x n, abs_le.1 (not_lt.1 h), rfl⟩
  exact (le_abs_self b).trans hlarge.le

theorem real_stoneCech_limit_mem

TopologyByExample.real_stoneCech_limit_mem

A convergent sequence of real points has a real limit even in βℝ.

theorem real_stoneCech_limit_mem {x : ℕ → ℝ} {p : StoneCech ℝ}
    (hx : Tendsto (stoneCechUnit ∘ x) atTop (𝓝 p)) :
    p ∈ range (stoneCechUnit : ℝ → StoneCech ℝ)
Proof
:= by
  by_contra hp
  obtain ⟨φ, hφ, hmono⟩ := strictMono_subseq_of_tendsto_atTop
    (tendsto_abs_atTop_of_nonreal_limit hp hx)
  have hinj : Function.Injective (x ∘ φ) := by
    intro i j h
    apply hmono.injective
    exact congrArg abs h
  have hc (ψ : ℕ → ℕ) (hψ : StrictMono ψ) : IsClosed (range (x ∘ φ ∘ ψ)) := by
    apply isClosed_range_of_not_tendsto
    intro l θ hθ ht
    have ha := hx.comp (hφ.tendsto_atTop.comp (hψ.tendsto_atTop.comp hθ.tendsto_atTop))
    have hb := continuous_stoneCechUnit.continuousAt.tendsto.comp ht
    exact hp ⟨l, tendsto_nhds_unique hb ha⟩
  have he : StrictMono (fun n : ℕ ↦ 2 * n) := by intro a b h; dsimp; omega
  have ho : StrictMono (fun n : ℕ ↦ 2 * n + 1) := by intro a b h; dsimp; omega
  have hd : Disjoint (range (x ∘ φ ∘ fun n ↦ 2 * n))
      (range (x ∘ φ ∘ fun n ↦ 2 * n + 1)) := by
    apply disjoint_left.2
    rintro _ ⟨i, rfl⟩ ⟨j, hj⟩
    have hh := hinj hj
    dsimp at hh
    omega
  have hh := disjoint_stoneCech_hulls (hc _ he) (hc _ ho) hd
  have hmem (ψ : ℕ → ℕ) (hψ : StrictMono ψ) :
      p ∈ closure (stoneCechUnit '' range (x ∘ φ ∘ ψ)) := by
    apply mem_closure_of_tendsto (hx.comp (hφ.tendsto_atTop.comp hψ.tendsto_atTop))
    exact Filter.Eventually.of_forall fun n ↦ ⟨x (φ (ψ n)), mem_range_self n, rfl⟩
  exact disjoint_left.1 hh (hmem _ he) (hmem _ ho)

theorem isSeqClosed_real_stoneCech

TopologyByExample.isSeqClosed_real_stoneCech

The real image in βℝ is sequentially closed.

theorem isSeqClosed_real_stoneCech :
    IsSeqClosed (range (stoneCechUnit : ℝ → StoneCech ℝ))
Proof
:= by
  intro x p hx hp
  choose y hy using hx
  have he : stoneCechUnit ∘ y = x := funext hy
  exact real_stoneCech_limit_mem (he.symm ▸ hp)