Lean library · module TopologyByExample.Slices.S4.Complete
The separation study, unconditionally
The companion file proves the decision algorithm of the separation study (S4) correct and
complete for any base library S4.BaseSpaces. This file supplies the six base spaces that
structure leaves as fields, from the space files, and so states both results with no hypotheses.
The base library is S4.baseSpaces: the one-point space Unit, the countable Hausdorff space
TopologyByExample.NonUrysohn that is not Urysohn, the cofinite topology CofiniteTopology ℕ and
the two-point indiscrete space WithTopology Bool ⊤ (the structure's defaults), the first
uncountable ordinal TopologyByExample.OmegaOne, the one-point compactification
OnePoint TopologyByExample.RationalSequence of the rational sequence topology
TopologyByExample.RationalSequence, Mysior's space TopologyByExample.Mysior, the K-topology
TopologyByExample.KTopology and the Sierpiński space Prop.
Main statements
S4.solve_correct_library: correctness. On every row of the study, the algorithmS4.data.solveeither cites one of the ten clauses that the row violates, and no topological space (in any universe) realises the row, or returns a sum of base spaces that realises the row.S4.exists_topCat_realises_iff_consistent: completeness. In every universe, a row of the study is realised by some topological space if and only if it satisfies the ten clauses.S4.ncard_setOf_realisable: exactly 19 of the 512 rows are realised by a space.
The file ends with a worked refutation and two worked witnesses, sums of two and of three base spaces.
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
- Mathlib.Topology.Order.T5
- Mathlib.Topology.Separation.LinearUpperLowerSetTopology
- TopologyByExample.Operators.OnePoint
- TopologyByExample.Slices.S4
- TopologyByExample.Spaces.KTopology
- TopologyByExample.Spaces.Mysior
- TopologyByExample.Spaces.OmegaOne
- TopologyByExample.Spaces.RationalSequenceCompactification
- TopologyByExample.Spaces.Sierpinski
theorem realises_omegaOne_space
TopologyByExample.Slices.S4.realises_omegaOne_space
ω₁ realises the row 111111110: it is a linearly ordered space, so completely normal, and
it is not perfectly normal.
theorem realises_omegaOne_space : Realises (TopCat.of OmegaOne) (data.baseRow 1)
Proof
:=
realises_omegaOne (X := OmegaOne) OmegaOne.not_perfectlyNormalSpace
theorem realises_onePoint_rationalSequence
TopologyByExample.Slices.S4.realises_onePoint_rationalSequence
The one-point compactification of the rational sequence topology realises the row
111111100: it is compact and Hausdorff, so normal, and it contains the rational sequence
topology, which is not normal, as a subspace.
theorem realises_onePoint_rationalSequence :
Realises (TopCat.of (OnePoint RationalSequence)) (data.baseRow 2)
theorem realises_rationalSequence
TopologyByExample.Slices.S4.realises_rationalSequence
The rational sequence topology realises the row 111111000: it is Hausdorff and locally
compact, so completely regular, and it is not normal.
theorem realises_rationalSequence :
Realises (TopCat.of RationalSequence) (data.baseRow 3)
theorem realises_mysior
TopologyByExample.Slices.S4.realises_mysior
Mysior's space realises the row 111110000: it is T₁ and regular, but not completely
regular.
theorem realises_mysior : Realises (TopCat.of Mysior) (data.baseRow 4)
Proof
:=
realises_mysiorSpace (X := Mysior) Mysior.not_completelyRegularSpace
theorem realises_kTopology_space
TopologyByExample.Slices.S4.realises_kTopology_space
The K-topology realises the row 111100000: it is Urysohn, but not regular.
theorem realises_kTopology_space : Realises (TopCat.of KTopology) (data.baseRow 5)
Proof
:=
realises_kTopology (X := KTopology) KTopology.not_regularSpace
theorem realises_prop
TopologyByExample.Slices.S4.realises_prop
The Sierpiński space Prop realises the row 100000110: it is T₀ and completely normal, but
not T₁.
theorem realises_prop : Realises (TopCat.of Prop) (data.baseRow 8)
Proof
:=
realises_sierpinskiSpace (X := Prop) Sierpinski.not_t1Space
definition baseSpaces
TopologyByExample.Slices.S4.baseSpaces
The base library of the separation study, from the space files. The one-point space, the
countable non-Urysohn space, the cofinite topology on ℕ and the two-point indiscrete space are
the defaults of BaseSpaces.
def baseSpaces : BaseSpaces
Definition
where
omegaOne := TopCat.of OmegaOne
omegaOne_realises := realises_omegaOne_space
rationalSequenceCompactification := TopCat.of (OnePoint RationalSequence)
rationalSequenceCompactification_realises := realises_onePoint_rationalSequence
rationalSequenceTopology := TopCat.of RationalSequence
rationalSequenceTopology_realises := realises_rationalSequence
mysiorSpace := TopCat.of Mysior
mysiorSpace_realises := realises_mysior
kTopology := TopCat.of KTopology
kTopology_realises := realises_kTopology_space
sierpinskiSpace := TopCat.of Prop
sierpinskiSpace_realises := realises_prop
definition library
TopologyByExample.Slices.S4.library
The base library of the separation study as a SliceData.Library.
abbrev library : data.Library prop.{0}
:= baseSpaces.library
theorem solve_correct_library
TopologyByExample.Slices.S4.solve_correct_library
Correctness of the algorithm of the separation study, unconditionally. On every row r,
the algorithm either returns a clause of the study that r violates, and no topological space in
any universe realises r, or returns an expression, a disjoint sum of base spaces, whose space
realises r.
theorem solve_correct_library (r : Row 9) : (data.solve r).Correct data prop library.space r
Proof
:=
solve_correct baseSpaces r
On this site: The correctness of the decision procedure for Separation axioms
theorem exists_topCat_realises_iff_consistent
TopologyByExample.Slices.S4.exists_topCat_realises_iff_consistent
Completeness of the separation study, unconditionally and in every universe. A row is realised by some topological space if and only if it satisfies the ten implications:
- T₁ ⇒ T₀; Hausdorff ⇒ T₁; Urysohn ⇒ Hausdorff;
- completely regular ⇒ regular; completely normal ⇒ normal; perfectly normal ⇒ completely normal;
- perfectly normal ⇒ completely regular;
- T₀ and regular ⇒ Urysohn;
- regular and normal ⇒ completely regular;
- T₁ and normal ⇒ regular.
theorem exists_topCat_realises_iff_consistent (r : Row 9) :
(∃ X : TopCat.{u}, Realises X r) ↔ data.Consistent r
Proof
:=
exists_realises_iff_consistent baseSpaces r
On this site: The completeness of the decision procedure for Separation axioms
theorem ncard_setOf_realisable
TopologyByExample.Slices.S4.ncard_setOf_realisable
Exactly 19 of the 512 combinations of the nine separation properties are realised by a topological space (in any universe).
theorem ncard_setOf_realisable : {r : Row 9 | ∃ X : TopCat.{u}, Realises X r}.ncard = 19
Proof
:= by
have : {r : Row 9 | ∃ X : TopCat.{u}, Realises X r} =
↑(Finset.univ.filter fun r : Row 9 ↦ data.Consistent r) := by
ext r
simp [exists_topCat_realises_iff_consistent]
rw [this, Set.ncard_coe_finset]
decide +kernel
On this site: The number of combinations of Separation axioms that occur
Worked examples
check
A refuted row: T₀, T₁ and normal, but none of the other six properties. The algorithm cites the clause "T₁ and normal ⇒ regular" (the chain through R₀ and Urysohn's lemma).
example : data.solve ![true, true, false, false, false, false, true, false, false] =
.refuted ⟨[1, 6], some 4⟩
Proof
:= by
decide +kernel
check
So no space, in any universe, realises that row.
example (X : Type u) [TopologicalSpace X] :
¬Realises X ![true, true, false, false, false, false, true, false, false]
Proof
:=
not_realises_of_solve_eq_refuted (c := ⟨[1, 6], some 4⟩) (by decide +kernel) X
check
A witnessed row: regular, completely regular, normal and completely normal, but neither T₀,
T₁, Hausdorff, Urysohn nor perfectly normal. The base spaces above it are ω₁ and the two-point
indiscrete space, and the algorithm returns their sum.
example : data.solve ![false, false, false, false, true, true, true, true, false] =
.witness ((Expr.base 1).node (.base 9))
Proof
:= by
decide +kernel
check
So the sum of ω₁ and the two-point indiscrete space has that row.
example : Realises (OmegaOne ⊕ WithTopology Bool ⊤)
![false, false, false, false, true, true, true, true, false]
Proof
:=
data.realises_of_solve_eq_witness sumConjunctive library covers
(e := (Expr.base 1).node (.base 9)) (by decide +kernel)
check
A witnessed row: T₀ and normal, and none of the other seven properties. The base spaces above
it are ω₁, the one-point compactification of the rational sequence topology and the Sierpiński
space, and the algorithm returns their disjoint sum.
example : data.solve ![true, false, false, false, false, false, true, false, false] =
.witness (((Expr.base 1).node (.base 2)).node (.base 8))
Proof
:= by
decide +kernel
check
So that sum is T₀ and normal, and neither T₁, Hausdorff, Urysohn, regular, completely regular, completely normal nor perfectly normal.
example : Realises ((OmegaOne ⊕ OnePoint RationalSequence) ⊕ Prop)
![true, false, false, false, false, false, true, false, false]
Proof
:=
data.realises_of_solve_eq_witness sumConjunctive library covers
(e := ((Expr.base 1).node (.base 2)).node (.base 8)) (by decide +kernel)