Lean library · module TopologyByExample.Slices.S3
The third study: countability, metrizability and compactness
The study countability-and-compactness (Lean name S3) has the eleven properties of the first
two studies, in this order:
| index | property | Mathlib |
|---|---|---|
| 0 | first countable | FirstCountableTopology |
| 1 | second countable | SecondCountableTopology |
| 2 | separable | TopologicalSpace.SeparableSpace |
| 3 | Lindelöf | LindelofSpace |
| 4 | metrizable | TopologicalSpace.MetrizableSpace |
| 5 | Hausdorff | T2Space |
| 6 | compact | CompactSpace |
| 7 | σ-compact | SigmaCompactSpace |
| 8 | countably compact | CountablyCompactSpace |
| 9 | sequentially compact | SeqCompactSpace |
| 10 | weakly locally compact | WeaklyLocallyCompactSpace |
Its theory is seventeen Horn clauses (S3.data.clauses). Two consistent rows, S3.rowA
(10100100110) and S3.rowB (10100100111), are open: they are the first countable,
separable, countably compact Hausdorff spaces that are not compact, and whether such a space
exists in ZFC is a problem of Nyikos. The study sets them aside (S3.openRows). The other 86
consistent rows are the meets of eighteen base rows (S3.data.baseRow), in the order of the
content's base_spaces (FR is the Franklin–Rajagopalan space built from a tower of length 𝔱):
| index | row | base space | field of BaseSpaces |
|---|---|---|---|
| 0 | 11111111111 |
one-point space | onePointSpace |
| 1 | 11110011111 |
Sierpiński space | sierpinskiSpace |
| 2 | 10001100001 |
discrete space on the real numbers | discreteReals |
| 3 | 11110101000 |
real line with the K-topology | kTopology |
| 4 | 10010111111 |
lexicographically ordered square | lexicographicSquare |
| 5 | 11111101000 |
rational numbers | rationals |
| 6 | 10000100110 |
countable power of the first uncountable ordinal | omegaOnePower |
| 7 | 11111101001 |
countably infinite discrete space | discreteNaturals |
| 8 | 00110111101 |
Stone–Čech compactification of the natural numbers | stoneCechNaturals |
| 9 | 10000100111 |
first uncountable ordinal | omegaOne |
| 10 | 11111100000 |
Baire space ℕ^ℕ |
baireSpace |
| 11 | 10110111111 |
double arrow space | doubleArrow |
| 12 | 10100100001 |
rational sequence topology | rationalSequenceTopology |
| 13 | 00110111111 |
one-point compactification of 12 | rationalSequenceCompactification |
| 14 | 10100000111 |
closed extension of ω₁ |
omegaOneClosedExtension |
| 15 | 10100000110 |
closed extension of ω₁^ℕ |
omegaOnePowerClosedExtension |
| 16 | 00100100111 |
sum of FR and 13 | franklinRajagopalanPlusCompactification |
| 17 | 00100100110 |
sum of FR^ℕ and 13 | franklinRajagopalanPowerPlusCompactification |
Main statements
For any base library S3.BaseSpaces (a space in Type realising each base row):
S3.valid,S3.sumConjunctive,S3.coversExcept: the hypotheses of the general theorems ofTopologyByExample.Slices.Open;S3.mem_openRows_iff: the open rows are exactly the consistent rows that are first countable, separable, countably compact, Hausdorff and not compact;S3.solve_correct: correctness of the algorithmS3.data.solveExcept S3.openRowson every row;S3.exists_realises_iff_consistent: completeness on every row other than the two open ones, in every universe;S3.exists_realises_iff_consistent_of_open: completeness on every row, given spaces realising the two open rows;S3.exists_realises_open_iff_nyikos: some space realises an open row if and only if some space is first countable, separable, countably compact and Hausdorff but not compact (this one needs no library);S3.ncard_setOf_realisable_mem: between 86 and 88 of the 2048 rows are realised by a space.
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
The properties
definition firstCountable
TopologyByExample.Slices.S3.firstCountable
First countability (FirstCountableTopology).
def firstCountable : SpaceProperty.{u}
:= ⟨fun X _ ↦ FirstCountableTopology X⟩
definition secondCountable
TopologyByExample.Slices.S3.secondCountable
Second countability (SecondCountableTopology).
def secondCountable : SpaceProperty.{u}
:= ⟨fun X _ ↦ SecondCountableTopology X⟩
definition separable
TopologyByExample.Slices.S3.separable
Separability (TopologicalSpace.SeparableSpace).
def separable : SpaceProperty.{u}
:= ⟨fun X _ ↦ SeparableSpace X⟩
definition lindelof
TopologyByExample.Slices.S3.lindelof
The Lindelöf property (LindelofSpace).
def lindelof : SpaceProperty.{u}
:= ⟨fun X _ ↦ LindelofSpace X⟩
definition metrizable
TopologyByExample.Slices.S3.metrizable
Metrizability (TopologicalSpace.MetrizableSpace).
def metrizable : SpaceProperty.{u}
:= ⟨fun X _ ↦ MetrizableSpace X⟩
definition t2
TopologyByExample.Slices.S3.t2
The Hausdorff property (T2Space).
def t2 : SpaceProperty.{u}
:= ⟨fun X _ ↦ T2Space X⟩
definition compact
TopologyByExample.Slices.S3.compact
Compactness (CompactSpace).
def compact : SpaceProperty.{u}
:= ⟨fun X _ ↦ CompactSpace X⟩
definition sigmaCompact
TopologyByExample.Slices.S3.sigmaCompact
σ-compactness (SigmaCompactSpace).
def sigmaCompact : SpaceProperty.{u}
:= ⟨fun X _ ↦ SigmaCompactSpace X⟩
definition countablyCompact
TopologyByExample.Slices.S3.countablyCompact
Countable compactness (CountablyCompactSpace).
def countablyCompact : SpaceProperty.{u}
:= ⟨fun X _ ↦ CountablyCompactSpace X⟩
definition seqCompact
TopologyByExample.Slices.S3.seqCompact
Sequential compactness (SeqCompactSpace).
def seqCompact : SpaceProperty.{u}
:= ⟨fun X _ ↦ SeqCompactSpace X⟩
definition weaklyLocallyCompact
TopologyByExample.Slices.S3.weaklyLocallyCompact
Weak local compactness (WeaklyLocallyCompactSpace).
def weaklyLocallyCompact : SpaceProperty.{u}
:= ⟨fun X _ ↦ WeaklyLocallyCompactSpace X⟩
definition prop
TopologyByExample.Slices.S3.prop
The properties of S3, in study order.
def prop : Fin 11 → SpaceProperty.{u}
:=
![firstCountable, secondCountable, separable, lindelof, metrizable, t2, compact, sigmaCompact,
countablyCompact, seqCompact, weaklyLocallyCompact]
definition Realises
TopologyByExample.Slices.S3.Realises
The space X realises the row r of S3.
abbrev Realises (X : Type u) [TopologicalSpace X] (r : Row 11) : Prop
:=
Slices.Realises prop X r
theorem sumConjunctive
TopologyByExample.Slices.S3.sumConjunctive
Every S3 property is sum-conjunctive.
theorem sumConjunctive : ∀ i, (prop.{u} i).SumConjunctive
Proof
:= by
intro i
fin_cases i <;> intro X Y _ _
exacts [firstCountableTopology_sum_iff, secondCountableTopology_sum_iff,
separableSpace_sum_iff, lindelofSpace_sum_iff, metrizableSpace_sum_iff, t2Space_sum_iff,
compactSpace_sum_iff, sigmaCompactSpace_sum_iff, countablyCompactSpace_sum_iff,
seqCompactSpace_sum_iff, weaklyLocallyCompactSpace_sum_iff]
theorem holds_of_homeomorph
TopologyByExample.Slices.S3.holds_of_homeomorph
The S3 properties are invariant under homeomorphisms, also between universes.
theorem holds_of_homeomorph {X : Type u} {Y : Type v} [TopologicalSpace X] [TopologicalSpace Y]
(e : X ≃ₜ Y) (i : Fin 11) (h : (prop.{u} i).Holds X) : (prop.{v} i).Holds Y
Proof
:= by
fin_cases i
· have : FirstCountableTopology X := h
exact e.symm.isEmbedding.firstCountableTopology
· have : SecondCountableTopology X := h
exact e.symm.isEmbedding.isInducing.secondCountableTopology
· have : SeparableSpace X := h
exact e.surjective.denseRange.separableSpace e.continuous
· have : LindelofSpace X := h
exact e.symm.isClosedEmbedding.LindelofSpace
· have : MetrizableSpace X := h
exact e.symm.isEmbedding.metrizableSpace
· have : T2Space X := h
exact e.symm.isEmbedding.t2Space
· have : CompactSpace X := h
exact e.symm.isClosedEmbedding.compactSpace
· have : SigmaCompactSpace X := h
exact e.symm.isClosedEmbedding.sigmaCompactSpace
· have : CountablyCompactSpace X := h
exact e.symm.isClosedEmbedding.countablyCompactSpace
· have : SeqCompactSpace X := h
exact e.symm.isClosedEmbedding.seqCompactSpace
· have : WeaklyLocallyCompactSpace X := h
exact e.symm.isClosedEmbedding.weaklyLocallyCompactSpace
theorem of_homeomorph
TopologyByExample.Slices.S3.Realises.of_homeomorph
Homeomorphic spaces, possibly in different universes, realise the same S3 rows.
theorem Realises.of_homeomorph {X : Type u} {Y : Type v} [TopologicalSpace X]
[TopologicalSpace Y] (e : X ≃ₜ Y) {r : Row 11} (h : Realises X r) : Realises Y r
Proof
:=
fun i ↦ ⟨fun hY ↦ (h i).1 (holds_of_homeomorph e.symm i hY),
fun hr ↦ holds_of_homeomorph e i ((h i).2 hr)⟩
theorem exists_realises_of_exists_realises
TopologyByExample.Slices.S3.exists_realises_of_exists_realises
A space in Type realising an S3 row gives one in every universe.
theorem exists_realises_of_exists_realises {r : Row 11}
(h : ∃ X : TopCat.{0}, Realises X r) : ∃ X : TopCat.{u}, Realises X r
Proof
:= by
obtain ⟨X, hX⟩ := h
exact ⟨TopCat.of (ULift.{u} X), Realises.of_homeomorph Homeomorph.ulift.symm hX⟩
The combinatorial data
definition data
TopologyByExample.Slices.S3.data
The combinatorial data of S3. The clauses are listed in the order in which the content's
algorithm prefers them (fewest literals, then theorem id; a chain of theorems is keyed by its
theorem ids joined with --):
compact-implies-countably-compactcompact-implies-sigma-compactcompact-implies-weakly-locally-compactmetrizable-implies-first-countablemetrizable-implies-t2second-countable-implies-first-countablesecond-countable-implies-lindelofsecond-countable-implies-separablesequentially-compact-implies-countably-compactsigma-compact-implies-lindelof- the chain
first-countable-implies-frechet-urysohn,frechet-urysohn-implies-sequential,sequential-countably-compact-implies-sequentially-compact lindelof-countably-compact-implies-compactlindelof-metrizable-implies-separablelindelof-weakly-locally-compact-implies-sigma-compactmetrizable-sequentially-compact-implies-compactseparable-metrizable-implies-second-countable- the chain
t2-weakly-locally-compact-implies-regular,regular-t2-second-countable-implies-metrizable
The base rows are those of the base spaces in the content's order, and the top space is the one-point space.
def data : SliceData 11 18
Definition
where
clauses :=
[⟨[6], some 8⟩, ⟨[6], some 7⟩, ⟨[6], some 10⟩, ⟨[4], some 0⟩, ⟨[4], some 5⟩,
⟨[1], some 0⟩, ⟨[1], some 3⟩, ⟨[1], some 2⟩, ⟨[9], some 8⟩, ⟨[7], some 3⟩,
⟨[0, 8], some 9⟩, ⟨[3, 8], some 6⟩, ⟨[4, 3], some 2⟩, ⟨[3, 10], some 7⟩,
⟨[4, 9], some 6⟩, ⟨[4, 2], some 1⟩, ⟨[5, 10, 1], some 4⟩]
baseRow :=
![![true, true, true, true, true, true, true, true, true, true, true],
![true, true, true, true, false, false, true, true, true, true, true],
![true, false, false, false, true, true, false, false, false, false, true],
![true, true, true, true, false, true, false, true, false, false, false],
![true, false, false, true, false, true, true, true, true, true, true],
![true, true, true, true, true, true, false, true, false, false, false],
![true, false, false, false, false, true, false, false, true, true, false],
![true, true, true, true, true, true, false, true, false, false, true],
![false, false, true, true, false, true, true, true, true, false, true],
![true, false, false, false, false, true, false, false, true, true, true],
![true, true, true, true, true, true, false, false, false, false, false],
![true, false, true, true, false, true, true, true, true, true, true],
![true, false, true, false, false, true, false, false, false, false, true],
![false, false, true, true, false, true, true, true, true, true, true],
![true, false, true, false, false, false, false, false, true, true, true],
![true, false, true, false, false, false, false, false, true, true, false],
![false, false, true, false, false, true, false, false, true, true, true],
![false, false, true, false, false, true, false, false, true, true, false]]
top := 0
theorem valid
TopologyByExample.Slices.S3.valid
The S3 clauses are theorems, for spaces in every universe.
theorem valid : data.Valid prop.{u}
Proof
:= by
intro c hc X _ h
simp only [data, List.mem_cons, List.not_mem_nil, or_false] at hc
rcases hc with rfl | rfl | rfl | rfl | rfl | rfl | rfl | rfl | rfl | rfl | rfl | rfl | rfl |
rfl | rfl | rfl | rfl
· have : CompactSpace X := h 6 (by simp)
exact (inferInstance : CountablyCompactSpace X)
· have : CompactSpace X := h 6 (by simp)
exact (inferInstance : SigmaCompactSpace X)
· have : CompactSpace X := h 6 (by simp)
exact (inferInstance : WeaklyLocallyCompactSpace X)
· have : MetrizableSpace X := h 4 (by simp)
exact (inferInstance : FirstCountableTopology X)
· have : MetrizableSpace X := h 4 (by simp)
exact (inferInstance : T2Space X)
· have : SecondCountableTopology X := h 1 (by simp)
exact (inferInstance : FirstCountableTopology X)
· have : SecondCountableTopology X := h 1 (by simp)
exact (inferInstance : LindelofSpace X)
· have : SecondCountableTopology X := h 1 (by simp)
exact (inferInstance : SeparableSpace X)
· have : SeqCompactSpace X := h 9 (by simp)
exact (inferInstance : CountablyCompactSpace X)
· have : SigmaCompactSpace X := h 7 (by simp)
exact (inferInstance : LindelofSpace X)
· -- first countable ⇒ Fréchet–Urysohn ⇒ sequential, and sequential ∧ countably compact ⇒
-- sequentially compact
have : FirstCountableTopology X := h 0 (by simp)
have : CountablyCompactSpace X := h 8 (by simp)
exact (inferInstance : SeqCompactSpace X)
· have : LindelofSpace X := h 3 (by simp)
have : CountablyCompactSpace X := h 8 (by simp)
exact LindelofSpace.compactSpace
· have : MetrizableSpace X := h 4 (by simp)
have : LindelofSpace X := h 3 (by simp)
exact (inferInstance : SeparableSpace X)
· have : LindelofSpace X := h 3 (by simp)
have : WeaklyLocallyCompactSpace X := h 10 (by simp)
exact sigmaCompactSpace_of_lindelofSpace_of_weaklyLocallyCompactSpace
· have : MetrizableSpace X := h 4 (by simp)
have : SeqCompactSpace X := h 9 (by simp)
let := pseudoMetrizableSpaceUniformity X
have := pseudoMetrizableSpaceUniformity_countably_generated X
exact compactSpace_iff_seqCompactSpace.2 inferInstance
· have : MetrizableSpace X := h 4 (by simp)
have : SeparableSpace X := h 2 (by simp)
let := pseudoMetrizableSpaceUniformity X
have := pseudoMetrizableSpaceUniformity_countably_generated X
exact UniformSpace.secondCountable_of_separable X
· -- Hausdorff ∧ weakly locally compact ⇒ regular, and Urysohn's metrization theorem
have : T2Space X := h 5 (by simp)
have : WeaklyLocallyCompactSpace X := h 10 (by simp)
have : SecondCountableTopology X := h 1 (by simp)
exact (inferInstance : MetrizableSpace X)
The open rows
definition rowA
TopologyByExample.Slices.S3.rowA
The open row A, 10100100110: first countable, separable, Hausdorff, countably and
sequentially compact, and none of the other six properties.
def rowA : Row 11
:= ![true, false, true, false, false, true, false, false, true, true, false]
definition rowB
TopologyByExample.Slices.S3.rowB
The open row B, 10100100111: row A, but weakly locally compact.
def rowB : Row 11
:= ![true, false, true, false, false, true, false, false, true, true, true]
definition openRows
TopologyByExample.Slices.S3.openRows
The rows the study sets aside as open.
def openRows : List (Row 11)
:= [rowA, rowB]
definition nyikosCells
TopologyByExample.Slices.S3.nyikosCells
The partial assignment of Nyikos's problem: first countable, separable, countably compact, Hausdorff and not compact.
def nyikosCells : List (Fin 11 × Bool)
:= [(0, true), (2, true), (8, true), (5, true), (6, false)]
theorem consistentExtensions_openRows
TopologyByExample.Slices.S3.consistentExtensions_openRows
The open rows are exactly the consistent rows that are first countable, separable, countably compact, Hausdorff and not compact.
theorem consistentExtensions_openRows : data.ConsistentExtensions nyikosCells openRows
Proof
:= by
decide +kernel
theorem mem_openRows_iff
TopologyByExample.Slices.S3.mem_openRows_iff
The open rows are exactly the consistent rows that are first countable, separable, countably compact, Hausdorff and not compact.
theorem mem_openRows_iff {r : Row 11} :
r ∈ openRows ↔ data.Consistent r ∧ r 0 = true ∧ r 2 = true ∧ r 8 = true ∧ r 5 = true ∧
r 6 = false
Proof
:= by
rw [consistentExtensions_openRows r]
simp [Row.Extends, nyikosCells]
theorem openRows_consistent
TopologyByExample.Slices.S3.openRows_consistent
Both open rows are consistent.
theorem openRows_consistent : ∀ r ∈ openRows, data.Consistent r
Proof
:= by decide +kernel
theorem coversExcept
TopologyByExample.Slices.S3.coversExcept
Every consistent row of S3 other than the two open ones is the row of its witness expression: the meet of the base rows above it. Checked by kernel evaluation over all 2048 rows.
theorem coversExcept : data.CoversExcept openRows
Proof
:= by decide +kernel
theorem card_consistent
TopologyByExample.Slices.S3.card_consistent
Exactly 88 of the 2048 rows of S3 are consistent.
theorem card_consistent :
((Row.all 11).filter fun r ↦ decide (data.Consistent r)).length = 88
Proof
:= by
decide +kernel
theorem card_consistent_not_mem
TopologyByExample.Slices.S3.card_consistent_not_mem
Exactly 86 of the 2048 rows of S3 are consistent and not open.
theorem card_consistent_not_mem :
((Row.all 11).filter fun r ↦ decide (data.Consistent r) && !Row.memB openRows r).length =
86
Proof
:= by
decide +kernel
theorem exists_realises_open_iff_nyikos
TopologyByExample.Slices.S3.exists_realises_open_iff_nyikos
The open rows are Nyikos's problem. Some space realises one of the two open rows if and only if some space is first countable, separable, countably compact and Hausdorff but not compact.
theorem exists_realises_open_iff_nyikos :
(∃ r ∈ openRows, ∃ X : TopCat.{u}, Realises X r) ↔
∃ X : TopCat.{u}, FirstCountableTopology X ∧ SeparableSpace X ∧
CountablyCompactSpace X ∧ T2Space X ∧ ¬CompactSpace X
Proof
:= by
rw [data.exists_mem_realises_iff valid consistentExtensions_openRows]
simp [nyikosCells, prop, firstCountable, separable, countablyCompact, t2, compact]
The base library and the main theorems
structure BaseSpaces
TopologyByExample.Slices.S3.BaseSpaces
A base library of S3: a space in Type realising each base row. The spaces are supplied in
TopologyByExample.Slices.S3.Complete.
structure BaseSpaces : Type 1 where
/-- The one-point space (row `11111111111`). -/
onePointSpace : TopCat.{0}
onePointSpace_realises : Realises onePointSpace (data.baseRow 0)
/-- The Sierpiński space (row `11110011111`). -/
sierpinskiSpace : TopCat.{0}
sierpinskiSpace_realises : Realises sierpinskiSpace (data.baseRow 1)
/-- The discrete space on the real numbers (row `10001100001`). -/
discreteReals : TopCat.{0}
discreteReals_realises : Realises discreteReals (data.baseRow 2)
/-- The real line with the K-topology (row `11110101000`). -/
kTopology : TopCat.{0}
kTopology_realises : Realises kTopology (data.baseRow 3)
/-- The lexicographically ordered square (row `10010111111`). -/
lexicographicSquare : TopCat.{0}
lexicographicSquare_realises : Realises lexicographicSquare (data.baseRow 4)
/-- The rational numbers (row `11111101000`). -/
rationals : TopCat.{0}
rationals_realises : Realises rationals (data.baseRow 5)
/-- The countable power of the first uncountable ordinal (row `10000100110`). -/
omegaOnePower : TopCat.{0}
omegaOnePower_realises : Realises omegaOnePower (data.baseRow 6)
/-- The countably infinite discrete space (row `11111101001`). -/
discreteNaturals : TopCat.{0}
discreteNaturals_realises : Realises discreteNaturals (data.baseRow 7)
/-- The Stone–Čech compactification of the natural numbers (row `00110111101`). -/
stoneCechNaturals : TopCat.{0}
stoneCechNaturals_realises : Realises stoneCechNaturals (data.baseRow 8)
/-- The first uncountable ordinal (row `10000100111`). -/
omegaOne : TopCat.{0}
omegaOne_realises : Realises omegaOne (data.baseRow 9)
/-- The Baire space, the countable power of the discrete natural numbers (row `11111100000`). -/
baireSpace : TopCat.{0}
baireSpace_realises : Realises baireSpace (data.baseRow 10)
/-- The double arrow space (row `10110111111`). -/
doubleArrow : TopCat.{0}
doubleArrow_realises : Realises doubleArrow (data.baseRow 11)
/-- The rational sequence topology (row `10100100001`). -/
rationalSequenceTopology : TopCat.{0}
rationalSequenceTopology_realises : Realises rationalSequenceTopology (data.baseRow 12)
/-- The one-point compactification of the rational sequence topology (row `00110111111`). -/
rationalSequenceCompactification : TopCat.{0}
rationalSequenceCompactification_realises :
Realises rationalSequenceCompactification (data.baseRow 13)
/-- The closed extension of the first uncountable ordinal (row `10100000111`). -/
omegaOneClosedExtension : TopCat.{0}
omegaOneClosedExtension_realises : Realises omegaOneClosedExtension (data.baseRow 14)
/-- The closed extension of the countable power of the first uncountable ordinal (row
`10100000110`). -/
omegaOnePowerClosedExtension : TopCat.{0}
omegaOnePowerClosedExtension_realises : Realises omegaOnePowerClosedExtension (data.baseRow 15)
/-- The sum of the Franklin–Rajagopalan space and the one-point compactification of the rational
sequence topology (row `00100100111`). -/
franklinRajagopalanPlusCompactification : TopCat.{0}
franklinRajagopalanPlusCompactification_realises :
Realises franklinRajagopalanPlusCompactification (data.baseRow 16)
/-- The sum of the countable power of the Franklin–Rajagopalan space and the one-point
compactification of the rational sequence topology (row `00100100110`). -/
franklinRajagopalanPowerPlusCompactification : TopCat.{0}
franklinRajagopalanPowerPlusCompactification_realises :
Realises franklinRajagopalanPowerPlusCompactification (data.baseRow 17)
definition library
TopologyByExample.Slices.S3.BaseSpaces.library
The base library as a SliceData.Library, indexed in the content's order.
def BaseSpaces.library (B : BaseSpaces) : data.Library prop.{0}
Definition
where
space := ![B.onePointSpace, B.sierpinskiSpace, B.discreteReals, B.kTopology,
B.lexicographicSquare, B.rationals, B.omegaOnePower, B.discreteNaturals,
B.stoneCechNaturals, B.omegaOne, B.baireSpace, B.doubleArrow, B.rationalSequenceTopology,
B.rationalSequenceCompactification, B.omegaOneClosedExtension, B.omegaOnePowerClosedExtension,
B.franklinRajagopalanPlusCompactification, B.franklinRajagopalanPowerPlusCompactification]
realises b := by
fin_cases b
exacts [B.onePointSpace_realises, B.sierpinskiSpace_realises, B.discreteReals_realises,
B.kTopology_realises, B.lexicographicSquare_realises, B.rationals_realises,
B.omegaOnePower_realises, B.discreteNaturals_realises, B.stoneCechNaturals_realises,
B.omegaOne_realises, B.baireSpace_realises, B.doubleArrow_realises,
B.rationalSequenceTopology_realises, B.rationalSequenceCompactification_realises,
B.omegaOneClosedExtension_realises, B.omegaOnePowerClosedExtension_realises,
B.franklinRajagopalanPlusCompactification_realises,
B.franklinRajagopalanPowerPlusCompactification_realises]
theorem not_realises_of_solveExcept_eq_refuted
TopologyByExample.Slices.S3.not_realises_of_solveExcept_eq_refuted
Soundness of S3 refutations. If the algorithm refutes a row, by a clause of S3 the row violates, then no topological space, in any universe, realises the row.
theorem not_realises_of_solveExcept_eq_refuted {r : Row 11} {c : Clause 11}
(h : data.solveExcept openRows r = .refuted c) (X : Type u) [TopologicalSpace X] :
¬Realises X r
theorem solve_correct
TopologyByExample.Slices.S3.solve_correct
Correctness of the S3 algorithm, for any base library: on every row it cites a clause
the row violates (and no space realises the row), returns a sum of base spaces realising the
row, or answers open, which it does exactly for the two open rows.
theorem solve_correct (B : BaseSpaces) (r : Row 11) :
(data.solveExcept openRows r).Correct data openRows prop B.library.space r
Proof
:=
data.solveExcept_correct valid sumConjunctive B.library coversExcept r
theorem exists_realises_iff_consistent
TopologyByExample.Slices.S3.exists_realises_iff_consistent
Completeness of S3 outside the open rows, for any base library: a row other than the two open ones is realised by some topological space (in any given universe) if and only if it satisfies the seventeen clauses.
theorem exists_realises_iff_consistent (B : BaseSpaces) {r : Row 11} (hr : r ∉ openRows) :
(∃ X : TopCat.{u}, Realises X r) ↔ data.Consistent r
Proof
:=
⟨fun ⟨_, hX⟩ ↦ valid.consistent hX, fun hc ↦ exists_realises_of_exists_realises
((data.exists_realises_iff_consistent_of_not_mem valid sumConjunctive B.library coversExcept
hr).2 hc)⟩
theorem exists_realises_iff_consistent_of_open
TopologyByExample.Slices.S3.exists_realises_iff_consistent_of_open
Completeness of S3, given the open rows: if spaces realising the two open rows exist
(in Type), then every row is realised by some topological space (in any given universe) if
and only if it satisfies the seventeen clauses.
theorem exists_realises_iff_consistent_of_open (B : BaseSpaces)
(hO : ∀ r ∈ openRows, ∃ X : TopCat.{0}, Realises X r) (r : Row 11) :
(∃ X : TopCat.{u}, Realises X r) ↔ data.Consistent r
Proof
:=
⟨fun ⟨_, hX⟩ ↦ valid.consistent hX, fun hc ↦ exists_realises_of_exists_realises
((data.exists_realises_iff_consistent_of_open valid sumConjunctive B.library coversExcept
hO r).2 hc)⟩
theorem ncard_setOf_realisable_mem
TopologyByExample.Slices.S3.ncard_setOf_realisable_mem
Given a base library, between 86 and 88 of the 2048 rows of S3 are realised by a space (in any universe): the 86 consistent rows other than the open ones, and possibly the open ones.
theorem ncard_setOf_realisable_mem (B : BaseSpaces) :
{r : Row 11 | ∃ X : TopCat.{u}, Realises X r}.ncard ∈ Set.Icc 86 88
Proof
:= by
have := data.ncard_mem_Icc (O := openRows) (S := {r | ∃ X : TopCat.{u}, Realises X r})
(fun r hr hO ↦ (exists_realises_iff_consistent B hO).2 hr) fun _ ⟨_, hX⟩ ↦ valid.consistent hX
rwa [card_consistent, card_consistent_not_mem] at this
Worked examples
check
The algorithm answers open on the two open rows.
example : data.solveExcept openRows rowA = .open ∧ data.solveExcept openRows rowB = .open
Proof
:= by
decide +kernel
check
A refuted row: first countable, countably compact and not sequentially compact (all other properties false). The algorithm cites the chain through sequential spaces.
example : data.solveExcept openRows
![true, false, false, false, false, false, false, false, true, false, false] =
.refuted ⟨[0, 8], some 9⟩
Proof
:= by
decide +kernel
check
A witnessed row: second countable and metrizable but not σ-compact, so neither compact nor weakly locally compact. The base spaces above it, other than the top one, are the rationals, the discrete natural numbers and the Baire space, and the algorithm returns their sum.
example : data.solveExcept openRows
![true, true, true, true, true, true, false, false, false, false, false] =
.witness (((Expr.base 5).node (.base 7)).node (.base 10))
Proof
:= by
decide +kernel