Lean library · module TopologyByExample.Spaces.ErdosSigmaCompact

Failure of sigma-compactness in 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

theorem continuous_rat_coordinate

TopologyByExample.ErdosSpace.continuous_rat_coordinate

Rational coordinates are continuous as rational-valued maps.

theorem continuous_rat_coordinate (n : ℕ) : Continuous (fun x ↦ coordinate x n)
Proof
:=
  Rat.isEmbedding_coe_real.isInducing.continuous_iff.mpr (by
    simpa only [Function.comp_def, coordinate_cast] using continuous_coordinate n)

theorem memℓp_of_geometric_bound

TopologyByExample.ErdosSpace.memℓp_of_geometric_bound

A rational sequence dominated by a geometric sequence defines an Erdős point.

theorem memℓp_of_geometric_bound (q : ℕ → ℚ)
    (hq : ∀ n, ‖q n‖ ≤ (1 / 2 : ℝ) ^ n) : Memℓp (fun n ↦ (q n : ℝ)) 2
Proof
:= by
  have hs : Summable (fun n ↦ ‖(q n : ℝ)‖) :=
    (summable_geometric_of_lt_one (by norm_num : (0 : ℝ) ≤ 1 / 2)
      (by norm_num : (1 / 2 : ℝ) < 1)).of_nonneg_of_le (fun _ ↦ norm_nonneg _)
        (fun n ↦ by simpa only [Rat.norm_cast_real] using hq n)
  have hm : Memℓp (fun n ↦ (q n : ℝ)) 1 := by
    apply memℓp_gen
    simpa using hs
  exact hm.of_exponent_ge (by norm_num)

theorem exists_outside_compacts

TopologyByExample.ErdosSpace.exists_outside_compacts

Every sequence of compact subsets misses an Erdős point.

theorem exists_outside_compacts (K : ℕ → Set ErdosSpace) (hK : ∀ n, IsCompact (K n)) :
    ∃ x : ErdosSpace, ∀ n, x ∉ K n
Proof
:= by
  have hex : ∀ n, ∃ q : ℚ, q ∉ (fun x ↦ coordinate x n) '' K n ∧
      ‖q‖ < (1 / 2 : ℝ) ^ n := by
    intro n
    have hc := (hK n).image (continuous_rat_coordinate n)
    obtain ⟨q, hq, hb⟩ := (Rat.dense_compl_compact hc).exists_mem_open
      (Metric.isOpen_ball (x := (0 : ℚ)) (ε := (1 / 2 : ℝ) ^ n))
      ⟨0, Metric.mem_ball_self (by positivity)⟩
    exact ⟨q, hq, by simpa only [Metric.mem_ball, dist_zero_right] using hb⟩
  choose q hq hbound using hex
  let x : ErdosSpace :=
    ⟨⟨fun n ↦ (q n : ℝ), memℓp_of_geometric_bound q (fun n ↦ (hbound n).le)⟩,
      fun n ↦ ⟨q n, rfl⟩⟩
  refine ⟨x, fun n hx ↦ hq n ?_⟩
  refine ⟨x, hx, ?_⟩
  apply Rat.cast_injective (α := ℝ)
  exact coordinate_cast x n

theorem not_sigmaCompactSpace

TopologyByExample.ErdosSpace.not_sigmaCompactSpace

Erdős space is not sigma-compact.

theorem not_sigmaCompactSpace : ¬SigmaCompactSpace ErdosSpace
Proof
:= by
  intro h
  obtain ⟨K, hK, hcover⟩ := SigmaCompactSpace.exists_compact_covering (X := ErdosSpace)
  obtain ⟨x, hx⟩ := exists_outside_compacts K hK
  have hm : x ∈ ⋃ n, K n := hcover ▸ mem_univ x
  obtain ⟨n, hn⟩ := mem_iUnion.mp hm
  exact hx n hn

On this site: Erdős space is not σ-compact