Lean library · module TopologyByExample.Theorems.CardinalitySpaceCoverage

Countability of further spaces

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 cantor_not_countable

TopologyByExample.CardinalitySpaceCoverage.cantor_not_countable

The Cantor space is uncountable.

theorem cantor_not_countable : ¬ Countable (ℕ → Bool)
Proof
:= by
  intro h
  have hc := mk_le_aleph0 (α := ℕ → Bool)
  rw [← power_def, mk_bool, mk_nat, two_power_aleph0] at hc
  exact (not_le_of_gt aleph0_lt_continuum) hc

On this site: The Cantor set is not countable

theorem primeIdeal_countable

TopologyByExample.CardinalitySpaceCoverage.primeIdeal_countable

The prime spectrum of the integers is countable.

theorem primeIdeal_countable : Countable (PrimeSpectrum ℤ)
Proof
:= by
  have h : Function.Injective (fun I : Ideal ℤ => Submodule.IsPrincipal.generator I) := by
    intro I J hij
    change Submodule.IsPrincipal.generator I = Submodule.IsPrincipal.generator J at hij
    rw [← Ideal.span_singleton_generator I, ← Ideal.span_singleton_generator J, hij]
  let : Countable (Ideal ℤ) := h.countable
  exact (show Function.Injective (fun p : PrimeSpectrum ℤ => p.asIdeal) from
    fun _ _ h => PrimeSpectrum.ext h).countable

On this site: The prime ideal topology is countable

theorem interlocking_not_countable

TopologyByExample.CardinalitySpaceCoverage.interlocking_not_countable

The interlocking interval space is uncountable.

theorem interlocking_not_countable : ¬ Countable InterlockingInterval
Proof
:= by
  intro h
  let f : Ioo (0 : ℝ) 1 → InterlockingInterval :=
    fun x => InterlockingInterval.mk x 0 (by simpa using x.property.1)
      (by simpa using x.property.2)
  have hf : Function.Injective f := by
    intro x y hxy
    exact Subtype.ext (congrArg InterlockingInterval.toReal hxy)
  let : Countable (Ioo (0 : ℝ) 1) := hf.countable
  have hc := mk_le_aleph0 (α := Ioo (0 : ℝ) 1)
  rw [mk_Ioo_real (by norm_num)] at hc
  exact (not_le_of_gt aleph0_lt_continuum) hc

On this site: The interlocking interval topology is not countable

theorem rightOrderReals_not_countable

TopologyByExample.CardinalitySpaceCoverage.rightOrderReals_not_countable

The right order topology on the reals has an uncountable underlying set.

theorem rightOrderReals_not_countable : ¬ Countable (Topology.WithUpper ℝ)
Proof
:= by
  change ¬ Countable ℝ
  exact not_countable (α := ℝ)

On this site: The right order topology on a set of reals with no least and no greatest element is not countable

theorem rightOrderBounded_countable

TopologyByExample.CardinalitySpaceCoverage.rightOrderBounded_countable

The chosen bounded right order example has countably many points.

theorem rightOrderBounded_countable : Countable (Topology.WithUpper (WithTop ℕ))
Proof
:= by
  change Countable (WithTop ℕ)
  infer_instance

On this site: The right order topology on a set of reals with a least and a greatest element, not conversely well-ordered is countable

theorem openExtensionPair_countable

TopologyByExample.CardinalitySpaceCoverage.openExtensionPair_countable

The open extension of the indiscrete pair is countable.

theorem openExtensionPair_countable : Countable (OpenExtension (WithTopology Bool ⊤))
Proof
:= by
  let : Countable (WithTopology Bool ⊤) :=
    (WithTopology.equiv Bool ⊤).injective.countable
  infer_instance

On this site: Three-point space with open sets ∅, {0, 1} and the whole space is countable

theorem closedExtensionPair_countable

TopologyByExample.CardinalitySpaceCoverage.closedExtensionPair_countable

The closed extension of the indiscrete pair is countable.

theorem closedExtensionPair_countable : Countable (ClosedExtension (WithTopology Bool ⊤))
Proof
:= by
  let : Countable (WithTopology Bool ⊤) :=
    (WithTopology.equiv Bool ⊤).injective.countable
  infer_instance

On this site: Three-point space with open sets ∅, {0} and the whole space is countable