Lean library · module TopologyByExample.Theorems.IndiscreteCardinality

Cardinalities of indiscrete examples

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 countable

TopologyByExample.IndiscreteCardinality.countable

Giving a countable set the indiscrete topology preserves its countability.

theorem countable (X : Type*) [Countable X] : Countable (WithTopology X ⊤)
Proof
:=
  (WithTopology.equiv X ⊤).injective.countable

On this site: The three-point indiscrete space is countable; The countably infinite indiscrete space is countable

theorem real_continuum

TopologyByExample.IndiscreteCardinality.real_continuum

The indiscrete real line has continuum cardinality.

theorem real_continuum : CardinalityContinuum (WithTopology ℝ ⊤)
Proof
:= by
  unfold CardinalityContinuum
  rw [Cardinal.mk_congr (WithTopology.equiv ℝ ⊤), Cardinal.mk_real]

On this site: The indiscrete real line has cardinality equal to \(\mathfrak{c}\)

theorem real_not_countable

TopologyByExample.IndiscreteCardinality.real_not_countable

The indiscrete real line is uncountable.

theorem real_not_countable : ¬ Countable (WithTopology ℝ ⊤)
Proof
:= by
  intro h
  have : Countable ℝ := (WithTopology.equiv ℝ ⊤).symm.injective.countable
  exact not_countable this

On this site: The indiscrete real line is not countable

On this site: Space: Three-point indiscrete space; Space: Countably infinite indiscrete space; Space: Indiscrete real line