Lean library · module TopologyByExample.Spaces.ErdosCardinality
Cardinality of 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 binaryPoint
TopologyByExample.ErdosSpace.binaryPoint
Binary sequences encoded by geometrically decreasing rational coordinates.
def binaryPoint (b : ℕ → Bool) : ErdosSpace
Definition
:= by
let q : ℕ → ℚ := fun n ↦ if b n then (1 / 2 : ℚ) ^ n else 0
have hq : ∀ n, ‖q n‖ ≤ (1 / 2 : ℝ) ^ n := by
intro n
dsimp [q]
split_ifs
· rw [← Rat.norm_cast_real]
norm_num [norm_pow]
· simp only [norm_zero]; positivity
exact ⟨⟨fun n ↦ (q n : ℝ), memℓp_of_geometric_bound q hq⟩, fun n ↦ ⟨q n, rfl⟩⟩
theorem binaryPoint_apply
TopologyByExample.ErdosSpace.binaryPoint_apply
@[simp] theorem binaryPoint_apply (b : ℕ → Bool) (n : ℕ) :
inclusion (binaryPoint b) n = if b n then (1 / 2 : ℝ) ^ n else 0
Proof
:= by
dsimp [binaryPoint, inclusion]
split_ifs <;> simp_all
theorem binaryPoint_injective
TopologyByExample.ErdosSpace.binaryPoint_injective
Distinct binary sequences give distinct points.
theorem binaryPoint_injective : Function.Injective binaryPoint
Proof
:= by
intro b c h
funext n
have he := congrArg (fun x : ErdosSpace ↦ inclusion x n) h
simp only [binaryPoint_apply] at he
cases hb : b n <;> cases hc : c n
· rfl
· have he' : (0 : ℝ) = (1 / 2 : ℝ) ^ n := by simpa [hb, hc] using he
exact False.elim ((pow_ne_zero n (by norm_num : (1 / 2 : ℝ) ≠ 0)) he'.symm)
· simp [hb, hc] at he
· rfl
theorem cardinalityContinuum
TopologyByExample.ErdosSpace.cardinalityContinuum
Erdős space has cardinality continuum.
theorem cardinalityContinuum : CardinalityContinuum ErdosSpace
Proof
:= by
apply le_antisymm cardinal_mk_le_continuum_of_secondCountable_t0
have h := Cardinal.mk_le_of_injective binaryPoint_injective
simpa only [Cardinal.mk_arrow, Cardinal.mk_bool, Cardinal.mk_nat,
Cardinal.lift_ofNat, Cardinal.lift_aleph0, Cardinal.two_power_aleph0] using h
On this site: Erdős space has cardinality equal to \(\mathfrak{c}\)