Lean library · module TopologyByExample.Sanity
Toolchain sanity check
A few trivial facts about familiar spaces, each proved by instance search alone. This file exists only to show that the Lean toolchain and Mathlib are set up correctly end to end.
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.
check
The real line is Hausdorff.
example : T2Space ℝ
Proof
:= inferInstance
check
The real line is second countable.
example : SecondCountableTopology ℝ
Proof
:= inferInstance
check
The real line is locally compact.
example : LocallyCompactSpace ℝ
Proof
:= inferInstance
check
The Sierpiński space (Prop with sierpinskiSpace) is T₀; Mathlib finds this through the
Scott topology on Prop.
example : T0Space Prop
Proof
:= inferInstance