Lean library · module TopologyByExample.Slices.S1.Complete
The slice S1, unconditionally
TopologyByExample.Slices.S1 proves the decision algorithm of the slice S1 correct and complete
for any base library S1.BaseSpaces. This file supplies the library, from the space files, and
so states both results with no hypotheses.
The base library is S1.baseSpaces: the one-point space Unit, the Sierpiński space Prop, the
discrete reals WithDiscreteTopology ℝ (the structure's defaults), the K-topology
TopologyByExample.KTopology, the Sorgenfrey line TopologyByExample.SorgenfreyLine, the
Sorgenfrey plane SorgenfreyLine × SorgenfreyLine, the lexicographically ordered unit square
TopologyByExample.LexicographicSquare and the Arens–Fort space TopologyByExample.ArensFort.
Main statements
S1.solve_correct_library: correctness. On every row of S1, the algorithmS1.data.solveeither cites one of the seven 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.S1.exists_topCat_realises_iff_consistent: completeness. In every universe, a row of S1 is realised by some topological space if and only if it satisfies the seven clauses.S1.ncard_setOf_realisable: exactly 20 of the 64 rows of S1 are realised by a space.
The file ends with a worked refutation and a worked witness.
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
definition baseSpaces
TopologyByExample.Slices.S1.baseSpaces
The base library of S1, from the space files. The one-point space, the Sierpiński space and
the discrete reals are the defaults of BaseSpaces.
def baseSpaces : BaseSpaces
Definition
where
kTopology := TopCat.of KTopology
kTopology_realises := realises_kTopology (X := KTopology) KTopology.not_metrizableSpace
sorgenfreyLine := TopCat.of SorgenfreyLine
sorgenfreyLine_realises :=
realises_sorgenfreyLine (X := SorgenfreyLine) SorgenfreyLine.not_secondCountableTopology
sorgenfreyPlane := TopCat.of (SorgenfreyLine × SorgenfreyLine)
sorgenfreyPlane_realises :=
realises_sorgenfreyPlane (X := SorgenfreyLine × SorgenfreyLine)
SorgenfreyLine.not_lindelofSpace_prod
lexicographicSquare := TopCat.of LexicographicSquare
lexicographicSquare_realises :=
realises_lexicographicSquare (X := LexicographicSquare) LexicographicSquare.not_separableSpace
arensFortSpace := TopCat.of ArensFort
arensFortSpace_realises :=
realises_arensFortSpace (X := ArensFort) ArensFort.not_firstCountableTopology
definition library
TopologyByExample.Slices.S1.library
The base library of S1 as a SliceData.Library, indexed in the content's order.
abbrev library : data.Library prop.{0}
:= baseSpaces.library
theorem solve_correct_library
TopologyByExample.Slices.S1.solve_correct_library
Correctness of the S1 algorithm, unconditionally. On every row r, the algorithm either
returns a clause of S1 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 6) : (data.solve r).Correct data prop library.space r
Proof
:=
solve_correct baseSpaces r
On this site: The correctness of the decision procedure for Countability, metrizability and the Hausdorff property
theorem exists_topCat_realises_iff_consistent
TopologyByExample.Slices.S1.exists_topCat_realises_iff_consistent
Completeness of S1, unconditionally and in every universe. A row of S1 is realised by some topological space if and only if it satisfies the seven implications of S1:
- second countable ⇒ first countable, separable, Lindelöf;
- metrizable ⇒ first countable, Hausdorff;
- metrizable and separable ⇒ second countable;
- metrizable and Lindelöf ⇒ separable.
theorem exists_topCat_realises_iff_consistent (r : Row 6) :
(∃ 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 Countability, metrizability and the Hausdorff property
theorem ncard_setOf_realisable
TopologyByExample.Slices.S1.ncard_setOf_realisable
Exactly 20 of the 64 combinations of the six S1 properties are realised by a topological space (in any universe).
theorem ncard_setOf_realisable : {r : Row 6 | ∃ X : TopCat.{u}, Realises X r}.ncard = 20
Proof
:= by
have : {r : Row 6 | ∃ X : TopCat.{u}, Realises X r} =
↑(Finset.univ.filter fun r : Row 6 ↦ data.Consistent r) := by
ext r
simp [exists_topCat_realises_iff_consistent]
rw [this, Set.ncard_coe_finset]
decide
On this site: The number of combinations of Countability, metrizability and the Hausdorff property that occur
Worked examples
check
A refuted row: first countable, Lindelöf, metrizable and Hausdorff, but neither second countable nor separable. The algorithm cites the clause "metrizable and Lindelöf ⇒ separable".
example : data.solve ![true, false, false, true, true, true] = .refuted ⟨[4, 3], some 2⟩
Proof
:= by
decide
check
So no space, in any universe, realises that row.
example (X : Type u) [TopologicalSpace X] : ¬Realises X ![true, false, false, true, true, true]
Proof
:=
not_realises_of_solve_eq_refuted (c := ⟨[4, 3], some 2⟩) (by decide) X
check
A witnessed row: separable and Hausdorff, but none of the other four properties. The base spaces above it are the K-topology, the Sorgenfrey line, the Sorgenfrey plane and the Arens–Fort space, and the algorithm returns their disjoint sum.
example : data.solve ![false, false, true, false, false, true] =
.witness ((((Expr.base 3).node (.base 4)).node (.base 5)).node (.base 7))
Proof
:= by
decide
check
So that sum is separable and Hausdorff, and neither first countable, second countable, Lindelöf nor metrizable.
example : Realises (((KTopology ⊕ SorgenfreyLine) ⊕ SorgenfreyLine × SorgenfreyLine) ⊕ ArensFort)
![false, false, true, false, false, true]
Proof
:=
data.realises_of_solve_eq_witness sumConjunctive library covers
(e := (((Expr.base 3).node (.base 4)).node (.base 5)).node (.base 7)) (by decide)