Lean library · module TopologyByExample.Slices.S2.Complete
The second study (compactness), unconditionally
TopologyByExample.Slices.S2 proves the decision algorithm of the second study correct and
complete for any base library S2.BaseSpaces. This file supplies the three base spaces that
structure leaves as fields, from the space files, and so states both results with no hypotheses.
The base library is S2.baseSpaces: the one-point space Unit, the Sierpiński space Prop, the
rationals ℚ, the discrete natural numbers ℕ and the Stone–Čech compactification
Ultrafilter ℕ (the structure's defaults), the Sorgenfrey line
TopologyByExample.SorgenfreyLine, the first uncountable ordinal TopologyByExample.OmegaOne
and its countable power ℕ → TopologyByExample.OmegaOne.
Main statements
S2.solve_correct_library: correctness. On every row of the study, the algorithmS2.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.S2.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 seven clauses.S2.ncard_setOf_realisable: exactly 22 of the 128 rows 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.S2.baseSpaces
The base library of the second study, from the space files. The one-point space, the
Sierpiński space, the rationals, the discrete natural numbers and the Stone–Čech
compactification of ℕ are the defaults of BaseSpaces.
def baseSpaces : BaseSpaces
Definition
where
sorgenfreyLine := TopCat.of SorgenfreyLine
sorgenfreyLine_realises :=
realises_sorgenfreyLine (X := SorgenfreyLine) SorgenfreyLine.not_sigmaCompactSpace
omegaOnePower := TopCat.of (ℕ → OmegaOne)
omegaOnePower_realises :=
realises_omegaOnePower (X := ℕ → OmegaOne) OmegaOnePower.not_lindelofSpace
OmegaOnePower.not_weaklyLocallyCompactSpace
omegaOne := TopCat.of OmegaOne
omegaOne_realises := realises_omegaOne (X := OmegaOne) OmegaOne.not_lindelofSpace
definition library
TopologyByExample.Slices.S2.library
The base library of the second study as a SliceData.Library, indexed in the content's
order.
abbrev library : data.Library prop.{0}
:= baseSpaces.library
theorem solve_correct_library
TopologyByExample.Slices.S2.solve_correct_library
Correctness of the algorithm of the second 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 7) : (data.solve r).Correct data prop library.space r
Proof
:=
solve_correct baseSpaces r
On this site: The correctness of the decision procedure for Compactness and its variants
theorem exists_topCat_realises_iff_consistent
TopologyByExample.Slices.S2.exists_topCat_realises_iff_consistent
Completeness of the second study, unconditionally and in every universe. A row is realised by some topological space if and only if it satisfies the seven implications:
- compact ⇒ σ-compact, countably compact, weakly locally compact;
- σ-compact ⇒ Lindelöf;
- sequentially compact ⇒ countably compact;
- Lindelöf and countably compact ⇒ compact;
- Lindelöf and weakly locally compact ⇒ σ-compact.
theorem exists_topCat_realises_iff_consistent (r : Row 7) :
(∃ 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 Compactness and its variants
theorem ncard_setOf_realisable
TopologyByExample.Slices.S2.ncard_setOf_realisable
Exactly 22 of the 128 combinations of the seven properties of the second study are realised by a topological space (in any universe).
theorem ncard_setOf_realisable : {r : Row 7 | ∃ X : TopCat.{u}, Realises X r}.ncard = 22
Proof
:= by
have : {r : Row 7 | ∃ X : TopCat.{u}, Realises X r} =
↑(Finset.univ.filter fun r : Row 7 ↦ 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 Compactness and its variants that occur
Worked examples
check
A refuted row: Lindelöf, countably compact, sequentially compact and Hausdorff, but neither compact, σ-compact nor weakly locally compact. The algorithm cites the clause "Lindelöf and countably compact ⇒ compact".
example : data.solve ![false, false, true, true, true, false, true] =
.refuted ⟨[2, 3], some 0⟩
Proof
:= by
decide
check
So no space, in any universe, realises that row.
example (X : Type u) [TopologicalSpace X] :
¬Realises X ![false, false, true, true, true, false, true]
Proof
:=
not_realises_of_solve_eq_refuted (c := ⟨[2, 3], some 0⟩) (by decide) X
check
A witnessed row: countably compact and Hausdorff, but none of the other five properties. The
base spaces above it are ω₁^ℕ, the Stone–Čech compactification of ℕ and ω₁, and the
algorithm returns their disjoint sum.
example : data.solve ![false, false, false, true, false, false, true] =
.witness (((Expr.base 4).node (.base 6)).node (.base 7))
Proof
:= by
decide
check
So that sum is countably compact and Hausdorff, and neither compact, σ-compact, Lindelöf, sequentially compact nor weakly locally compact.
example : Realises (((ℕ → OmegaOne) ⊕ Ultrafilter ℕ) ⊕ OmegaOne)
![false, false, false, true, false, false, true]
Proof
:=
data.realises_of_solve_eq_witness sumConjunctive library covers
(e := ((Expr.base 4).node (.base 6)).node (.base 7)) (by decide)