Lean library · module TopologyByExample.Spaces.Sierpinski

The Sierpiński space is not Hausdorff

Source file

Mathlib's Sierpiński space is Prop with the topology sierpinskiSpace, whose open sets are ∅, {True} and Set.univ. The only neighbourhood of False is the whole space, so False and True cannot be separated by disjoint open sets.

Its countability properties (it is finite, so second countable) are found by instance search.

Separation axioms

Connectedness

Every point lies in the closure of True, so the space is path connected and locally path connected (TopologyByExample.Sierpinski.pathPreconnectedSpace, TopologyByExample.Sierpinski.locallyPathConnectedSpace).

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_t2Space

TopologyByExample.Sierpinski.not_t2Space

The Sierpiński space Prop is not Hausdorff.

theorem not_t2Space : ¬T2Space Prop
Proof
:= by
  intro _
  have := (disjoint_nhds_nhds (X := Prop)).2 true_ne_false
  rw [nhds_true, nhds_false, disjoint_top] at this
  exact (pure_neBot (α := Prop)).ne this

Separation axioms

theorem t0Space

TopologyByExample.Sierpinski.t0Space

The Sierpiński space is T₀ (Mathlib: its topology is the upper topology of the order on Prop).

theorem t0Space : T0Space Prop
Proof
:= inferInstance

theorem not_t1Space

TopologyByExample.Sierpinski.not_t1Space

The Sierpiński space is not T₁: the only neighbourhood of False is the whole space, so True specializes to False.

theorem not_t1Space : ¬T1Space Prop
Proof
:= fun _ ↦
  true_ne_false (specializes_iff_nhds.2 (nhds_false ▸ le_top : 𝓝 True ≤ 𝓝 False)).eq

On this site: The Sierpiński space is not T₁

Connectedness

theorem true_specializes

TopologyByExample.Sierpinski.true_specializes

Every point of the Sierpiński space Prop lies in the closure of True.

theorem true_specializes (p : Prop) : True ⤳ p
Proof
:= by
  rcases Classical.propComplete p with rfl | rfl
  · exact specializes_rfl
  · rw [specializes_iff_nhds, nhds_false]
    exact le_top

theorem pathPreconnectedSpace

TopologyByExample.Sierpinski.pathPreconnectedSpace

The Sierpiński space is path connected.

theorem pathPreconnectedSpace : PathPreconnectedSpace Prop
Proof
:=
  pathPreconnectedSpace_of_forall_specializes True true_specializes

On this site: The Sierpiński space is path connected

theorem locallyPathConnectedSpace

TopologyByExample.Sierpinski.locallyPathConnectedSpace

The Sierpiński space is locally path connected.

theorem locallyPathConnectedSpace : LocallyPathConnectedSpace Prop
Proof
:=
  locallyPathConnectedSpace_of_forall_specializes True true_specializes

On this site: The Sierpiński space is locally path connected

Further properties

theorem preirreducibleSpace

TopologyByExample.Sierpinski.preirreducibleSpace

The Sierpiński space is hyperconnected: its open point True lies in every nonempty open set.

theorem preirreducibleSpace : PreirreducibleSpace Prop
Proof
:=
  preirreducibleSpace_of_forall_specializes True true_specializes

On this site: The Sierpiński space is hyperconnected