Lean library · module TopologyByExample.Spaces.DiscreteNat

The countably infinite discrete space

Source file

Mathlib's ℕ carries the discrete topology. Most of its properties are Mathlib instances; this file records two negative facts.

Main statements

Tags

discrete space, natural numbers

This file was written by Claude (Anthropic's AI model) working under the direction of David R. MacIver, who reviews it and is responsible for it.

Imports

theorem not_preconnectedSpace

TopologyByExample.DiscreteNat.not_preconnectedSpace

The discrete space ℕ is not connected.

theorem not_preconnectedSpace : ¬PreconnectedSpace ℕ
Proof
:= not_preconnectedSpace_of_nontrivial

theorem not_countablyCompactSpace

TopologyByExample.DiscreteNat.not_countablyCompactSpace

The discrete natural numbers are not countably compact: they are Lindelöf and not compact.

theorem not_countablyCompactSpace : ¬CountablyCompactSpace ℕ
Proof
:= fun _ ↦
  not_compactSpace_iff.2 (inferInstance : NoncompactSpace ℕ) LindelofSpace.compactSpace

On this site: Space: Countably infinite discrete space