Lean library · module TopologyByExample.Theorems.RealCardinalities

Cardinalities of real lines and planes with different topologies

Source file

Changing the topology on the reals or adjoining finitely many points preserves their cardinality. The real plane has the same cardinality as the real line.

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 withTopology_real

TopologyByExample.RealCardinalities.withTopology_real

The real numbers with any specified topology have continuum cardinality.

theorem withTopology_real {t : TopologicalSpace ℝ} : CardinalityContinuum (WithTopology ℝ t)
Proof
:=
  (mk_congr (WithTopology.equiv _ _)).trans mk_real

On this site: The cofinite topology on a set of at least continuum size has cardinality equal to \(\mathfrak{c}\); The cocountable topology on an uncountable set has cardinality equal to \(\mathfrak{c}\)

theorem option

TopologyByExample.RealCardinalities.option

Adjoining a single point preserves continuum cardinality.

theorem option {X : Type*} (h : CardinalityContinuum X) : CardinalityContinuum (Option X)
Proof
:= by
  change #(Option X) = 𝔠
  rw [mk_option, show #X = 𝔠 from h]
  exact continuum_add_nat 1

On this site: The fortissimo space on an uncountable set has cardinality equal to \(\mathfrak{c}\); The excluded point topology on an uncountable set has cardinality equal to \(\mathfrak{c}\); The uncountable Fort space has cardinality equal to \(\mathfrak{c}\); The uncountable particular point topology has cardinality equal to \(\mathfrak{c}\); The real line with a cocountable point has cardinality equal to \(\mathfrak{c}\)

theorem sum_bool

TopologyByExample.RealCardinalities.sum_bool

Adjoining two points preserves continuum cardinality.

theorem sum_bool {X : Type} (h : CardinalityContinuum X) : CardinalityContinuum (X ⊕ Bool)
Proof
:= by
  change #(X ⊕ Bool) = 𝔠
  rw [mk_sum, lift_id, lift_id, mk_bool, show #X = 𝔠 from h]
  exact continuum_add_ofNat

On this site: The modified Fort space has cardinality equal to \(\mathfrak{c}\)

theorem real_plane

TopologyByExample.RealCardinalities.real_plane

The Cartesian plane has continuum cardinality.

theorem real_plane : CardinalityContinuum (ℝ × ℝ)
Proof
:= by
  change #(ℝ × ℝ) = 𝔠
  rw [mk_prod, lift_id, mk_real, continuum_mul_self]

On this site: Radial plane has cardinality equal to \(\mathfrak{c}\); The rational extension of the plane has cardinality equal to \(\mathfrak{c}\)