Lean library · module TopologyByExample.Slices.S5
The highlights study: metrizability, normality and compactness
The study metrizability-normality-compactness (Lean name S5) has eleven properties, in this
order:
| index | property | Mathlib |
|---|---|---|
| 0 | Hausdorff | T2Space |
| 1 | regular | RegularSpace |
| 2 | normal | NormalSpace |
| 3 | first countable | FirstCountableTopology |
| 4 | second countable | SecondCountableTopology |
| 5 | separable | TopologicalSpace.SeparableSpace |
| 6 | Lindelöf | LindelofSpace |
| 7 | compact | CompactSpace |
| 8 | countably compact | CountablyCompactSpace |
| 9 | metrizable | TopologicalSpace.MetrizableSpace |
| 10 | sequentially compact | SeqCompactSpace |
Regularity and normality are unbundled, as in Mathlib: they include no separation axiom.
Its theory is twenty Horn clauses (S5.data.clauses). Four consistent rows are open
(S5.openRows): they are the first countable, separable, countably compact regular spaces that
are not compact, split by normality and by the Hausdorff property. Whether such a space exists in
ZFC is a problem of Nyikos. The other 118 consistent rows are the meets of nineteen base rows
(S5.data.baseRow; FR is the Franklin–Rajagopalan space built from a tower of length 𝔱, FR₁
its subspace of the first ω₁ levels, FR⁺ its one-point compactification):
| index | row | base space | field of BaseSpaces |
|---|---|---|---|
| 0 | 11111111111 |
one-point space | onePointSpace |
| 1 | 01111111101 |
two-point indiscrete space | indiscretePair |
| 2 | 00111111101 |
Sierpiński space | sierpinskiSpace |
| 3 | 00011111101 |
cofinite topology on the natural numbers | cofiniteNaturals |
| 4 | 11110111101 |
double arrow space | doubleArrow |
| 5 | 11100111101 |
one-point compactification of 13 | rationalSequenceCompactification |
| 6 | 11110011101 |
lexicographically ordered square | lexicographicSquare |
| 7 | 11100100101 |
sum of FR and 5 | franklinRajagopalanPlusCompactification |
| 8 | 11110000101 |
first uncountable ordinal | omegaOne |
| 9 | 11111110010 |
Baire space ℕ^ℕ |
baireSpace |
| 10 | 11110000010 |
discrete space on the real numbers | discreteReals |
| 11 | 11100111100 |
Stone–Čech compactification of the natural numbers | stoneCechNaturals |
| 12 | 10011110000 |
real line with the K-topology | kTopology |
| 13 | 11010100000 |
rational sequence topology | rationalSequenceTopology |
| 14 | 00110100101 |
left ray topology on ω₁ |
leftRayOmegaOne |
| 15 | 11110100000 |
sum of FR₁ and discrete ℕ |
franklinRajagopalanOmegaOnePlusNaturals |
| 16 | 10000100101 |
FR with a point at infinity | franklinRajagopalanPlusPoint |
| 17 | 11000100101 |
product of FR and FR⁺ | franklinRajagopalanTimesCompactification |
| 18 | 11010000101 |
Vaughan's space | vaughanSpace |
Vaughan's space (J. E. Vaughan, 1979) is first countable, countably compact, Hausdorff, not normal and not separable; it is the only base space realising a consistent row that is regular, first countable and countably compact but neither normal nor separable.
Main statements
For any base library S5.BaseSpaces:
S5.valid,S5.sumConjunctive,S5.coversExcept: the hypotheses of the general theorems ofTopologyByExample.Slices.Open;S5.mem_openRows_iff: the open rows are exactly the consistent rows that are first countable, separable, countably compact and regular but not compact;S5.solve_correct: correctness of the algorithmS5.data.solveExcept S5.openRowson every row;S5.exists_realises_iff_consistent: completeness on every row other than the four open ones, in every universe;S5.exists_realises_iff_consistent_of_open: completeness on every row, given spaces realising the open rows;S5.exists_realises_open_iff_nyikos: some space realises an open row if and only if some space is first countable, separable, countably compact and regular but not compact (this one needs no library);S5.ncard_setOf_realisable_mem: between 118 and 122 of the 2048 rows are realised by a space.
The base spaces are supplied, and these results stated unconditionally, in
TopologyByExample.Slices.S5.Complete.
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 t2
TopologyByExample.Slices.S5.t2
The Hausdorff property (T2Space).
def t2 : SpaceProperty.{u}
:= ⟨fun X _ ↦ T2Space X⟩
definition regular
TopologyByExample.Slices.S5.regular
Regularity (RegularSpace, with no separation axiom).
def regular : SpaceProperty.{u}
:= ⟨fun X _ ↦ RegularSpace X⟩
definition normal
TopologyByExample.Slices.S5.normal
Normality (NormalSpace, with no separation axiom).
def normal : SpaceProperty.{u}
:= ⟨fun X _ ↦ NormalSpace X⟩
definition firstCountable
TopologyByExample.Slices.S5.firstCountable
First countability (FirstCountableTopology).
def firstCountable : SpaceProperty.{u}
:= ⟨fun X _ ↦ FirstCountableTopology X⟩
definition secondCountable
TopologyByExample.Slices.S5.secondCountable
Second countability (SecondCountableTopology).
def secondCountable : SpaceProperty.{u}
:= ⟨fun X _ ↦ SecondCountableTopology X⟩
definition separable
TopologyByExample.Slices.S5.separable
Separability (TopologicalSpace.SeparableSpace).
def separable : SpaceProperty.{u}
:= ⟨fun X _ ↦ SeparableSpace X⟩
definition lindelof
TopologyByExample.Slices.S5.lindelof
The Lindelöf property (LindelofSpace).
def lindelof : SpaceProperty.{u}
:= ⟨fun X _ ↦ LindelofSpace X⟩
definition compact
TopologyByExample.Slices.S5.compact
Compactness (CompactSpace).
def compact : SpaceProperty.{u}
:= ⟨fun X _ ↦ CompactSpace X⟩
definition countablyCompact
TopologyByExample.Slices.S5.countablyCompact
Countable compactness (CountablyCompactSpace).
def countablyCompact : SpaceProperty.{u}
:= ⟨fun X _ ↦ CountablyCompactSpace X⟩
definition metrizable
TopologyByExample.Slices.S5.metrizable
Metrizability (TopologicalSpace.MetrizableSpace).
def metrizable : SpaceProperty.{u}
:= ⟨fun X _ ↦ MetrizableSpace X⟩
definition seqCompact
TopologyByExample.Slices.S5.seqCompact
Sequential compactness (SeqCompactSpace).
def seqCompact : SpaceProperty.{u}
:= ⟨fun X _ ↦ SeqCompactSpace X⟩
definition prop
TopologyByExample.Slices.S5.prop
The properties of S5, in study order.
def prop : Fin 11 → SpaceProperty.{u}
:=
![t2, regular, normal, firstCountable, secondCountable, separable, lindelof, compact,
countablyCompact, metrizable, seqCompact]
definition Realises
TopologyByExample.Slices.S5.Realises
The space X realises the row r of S5.
abbrev Realises (X : Type u) [TopologicalSpace X] (r : Row 11) : Prop
:=
Slices.Realises prop X r
theorem sumConjunctive
TopologyByExample.Slices.S5.sumConjunctive
Every S5 property is sum-conjunctive.
theorem sumConjunctive : ∀ i, (prop.{u} i).SumConjunctive
Proof
:= by
intro i
fin_cases i <;> intro X Y _ _
exacts [t2Space_sum_iff, regularSpace_sum_iff, normalSpace_sum_iff,
firstCountableTopology_sum_iff, secondCountableTopology_sum_iff, separableSpace_sum_iff,
lindelofSpace_sum_iff, compactSpace_sum_iff, countablyCompactSpace_sum_iff,
metrizableSpace_sum_iff, seqCompactSpace_sum_iff]
theorem holds_of_homeomorph
TopologyByExample.Slices.S5.holds_of_homeomorph
The S5 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 : T2Space X := h
exact e.symm.isEmbedding.t2Space
· have : RegularSpace X := h
exact e.symm.isInducing.regularSpace
· have : NormalSpace X := h
exact e.symm.isClosedEmbedding.normalSpace
· 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 : CompactSpace X := h
exact e.symm.isClosedEmbedding.compactSpace
· have : CountablyCompactSpace X := h
exact e.symm.isClosedEmbedding.countablyCompactSpace
· have : MetrizableSpace X := h
exact e.symm.isEmbedding.metrizableSpace
· have : SeqCompactSpace X := h
exact e.symm.isClosedEmbedding.seqCompactSpace
theorem of_homeomorph
TopologyByExample.Slices.S5.Realises.of_homeomorph
Homeomorphic spaces, possibly in different universes, realise the same S5 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.S5.exists_realises_of_exists_realises
A space in Type realising an S5 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 baseRows
TopologyByExample.Slices.S5.baseRows
The nineteen base rows of S5, in the order of the module docstring.
def baseRows : Fin 19 → Row 11
Definition
:=
![![true, true, true, true, true, true, true, true, true, true, true],
![false, true, true, true, true, true, true, true, true, false, true],
![false, false, true, true, true, true, true, true, true, false, true],
![false, false, false, true, true, true, true, true, true, false, true],
![true, true, true, true, false, true, true, true, true, false, true],
![true, true, true, false, false, true, true, true, true, false, true],
![true, true, true, true, false, false, true, true, true, false, true],
![true, true, true, false, false, true, false, false, true, false, true],
![true, true, true, true, false, false, false, false, true, false, true],
![true, true, true, true, true, true, true, false, false, true, false],
![true, true, true, true, false, false, false, false, false, true, false],
![true, true, true, false, false, true, true, true, true, false, false],
![true, false, false, true, true, true, true, false, false, false, false],
![true, true, false, true, false, true, false, false, false, false, false],
![false, false, true, true, false, true, false, false, true, false, true],
![true, true, true, true, false, true, false, false, false, false, false],
![true, false, false, false, false, true, false, false, true, false, true],
![true, true, false, false, false, true, false, false, true, false, true],
![true, true, false, true, false, false, false, false, true, false, true]]
definition data
TopologyByExample.Slices.S5.data
The combinatorial data of S5. The clauses are listed in the order in which the content's
algorithm prefers them (fewest literals, then key; a chain of theorems is keyed by its theorem
ids joined with --), each with its hypotheses in the content's reading order:
compact-implies-countably-compact- the chain
compact-implies-sigma-compact,sigma-compact-implies-lindelof metrizable-implies-first-countable- the chain
metrizable-implies-perfectly-normal,perfectly-normal-implies-completely-normal,completely-normal-implies-normal metrizable-implies-regularmetrizable-implies-t2second-countable-implies-first-countablesecond-countable-implies-lindelofsecond-countable-implies-separablesequentially-compact-implies-countably-compactcompact-t2-implies-normal- the chain
first-countable-implies-frechet-urysohn,frechet-urysohn-implies-sequential,sequential-countably-compact-implies-sequentially-compact lindelof-countably-compact-implies-compactlindelof-metrizable-implies-separablemetrizable-sequentially-compact-implies-compactregular-lindelof-implies-normalseparable-metrizable-implies-second-countable- the chain
t2-implies-t1,t1-implies-r0,normal-r0-implies-completely-regular,completely-regular-implies-regular first-countable-t2-countably-compact-implies-regularregular-t2-second-countable-implies-metrizable
Clause 4 follows from clauses 3, 5 and 17; it is listed because the content's algorithm lists every implication among the study's properties. The top space is the one-point space.
def data : SliceData 11 19
Definition
where
clauses :=
[⟨[7], some 8⟩, ⟨[7], some 6⟩, ⟨[9], some 3⟩, ⟨[9], some 2⟩, ⟨[9], some 1⟩, ⟨[9], some 0⟩,
⟨[4], some 3⟩, ⟨[4], some 6⟩, ⟨[4], some 5⟩, ⟨[10], some 8⟩, ⟨[7, 0], some 2⟩,
⟨[3, 8], some 10⟩, ⟨[6, 8], some 7⟩, ⟨[9, 6], some 5⟩, ⟨[9, 10], some 7⟩,
⟨[1, 6], some 2⟩, ⟨[9, 5], some 4⟩, ⟨[0, 2], some 1⟩, ⟨[3, 0, 8], some 1⟩,
⟨[1, 0, 4], some 9⟩]
baseRow := baseRows
top := 0
theorem valid
TopologyByExample.Slices.S5.valid
The S5 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 | rfl | rfl | rfl
· have : CompactSpace X := h 7 (by simp)
exact (inferInstance : CountablyCompactSpace X)
· -- compact ⇒ σ-compact ⇒ Lindelöf
have : CompactSpace X := h 7 (by simp)
exact (inferInstance : LindelofSpace X)
· have : MetrizableSpace X := h 9 (by simp)
exact (inferInstance : FirstCountableTopology X)
· -- metrizable ⇒ perfectly normal ⇒ completely normal ⇒ normal
have : MetrizableSpace X := h 9 (by simp)
let := pseudoMetrizableSpaceUniformity X
have := pseudoMetrizableSpaceUniformity_countably_generated X
exact (inferInstance : NormalSpace X)
· have : MetrizableSpace X := h 9 (by simp)
exact (inferInstance : RegularSpace X)
· have : MetrizableSpace X := h 9 (by simp)
exact (inferInstance : T2Space X)
· have : SecondCountableTopology X := h 4 (by simp)
exact (inferInstance : FirstCountableTopology X)
· have : SecondCountableTopology X := h 4 (by simp)
exact (inferInstance : LindelofSpace X)
· have : SecondCountableTopology X := h 4 (by simp)
exact (inferInstance : SeparableSpace X)
· have : SeqCompactSpace X := h 10 (by simp)
exact (inferInstance : CountablyCompactSpace X)
· have : CompactSpace X := h 7 (by simp)
have : T2Space X := h 0 (by simp)
exact (inferInstance : NormalSpace X)
· -- first countable ⇒ Fréchet–Urysohn ⇒ sequential, and sequential ∧ countably compact ⇒
-- sequentially compact
have : FirstCountableTopology X := h 3 (by simp)
have : CountablyCompactSpace X := h 8 (by simp)
exact (inferInstance : SeqCompactSpace X)
· have : LindelofSpace X := h 6 (by simp)
have : CountablyCompactSpace X := h 8 (by simp)
exact LindelofSpace.compactSpace
· have : MetrizableSpace X := h 9 (by simp)
have : LindelofSpace X := h 6 (by simp)
exact (inferInstance : SeparableSpace X)
· have : MetrizableSpace X := h 9 (by simp)
have : SeqCompactSpace X := h 10 (by simp)
let := pseudoMetrizableSpaceUniformity X
have := pseudoMetrizableSpaceUniformity_countably_generated X
exact compactSpace_iff_seqCompactSpace.2 inferInstance
· have : RegularSpace X := h 1 (by simp)
have : LindelofSpace X := h 6 (by simp)
exact (inferInstance : NormalSpace X)
· have : MetrizableSpace X := h 9 (by simp)
have : SeparableSpace X := h 5 (by simp)
let := pseudoMetrizableSpaceUniformity X
have := pseudoMetrizableSpaceUniformity_countably_generated X
exact UniformSpace.secondCountable_of_separable X
· -- Hausdorff ⇒ T₁ ⇒ R₀, Urysohn's lemma, and completely regular ⇒ regular
have : T2Space X := h 0 (by simp)
have : NormalSpace X := h 2 (by simp)
have : CompletelyRegularSpace X := NormalSpace.instCompletelyRegularSpace
exact (inferInstance : RegularSpace X)
· have : FirstCountableTopology X := h 3 (by simp)
have : T2Space X := h 0 (by simp)
have : CountablyCompactSpace X := h 8 (by simp)
exact regularSpace_of_firstCountableTopology_of_countablyCompactSpace
· -- Urysohn's metrization theorem
have : RegularSpace X := h 1 (by simp)
have : T2Space X := h 0 (by simp)
have : SecondCountableTopology X := h 4 (by simp)
exact (inferInstance : MetrizableSpace X)
theorem card_consistent
TopologyByExample.Slices.S5.card_consistent
Exactly 122 of the 2048 rows of S5 are consistent.
theorem card_consistent :
((Row.all 11).filter fun r ↦ decide (data.Consistent r)).length = 122
Proof
:= by
decide +kernel
The open rows
definition rowA
TopologyByExample.Slices.S5.rowA
The open row A, 11110100101: Hausdorff, regular, normal, first countable, separable,
countably and sequentially compact, and none of the other four properties.
def rowA : Row 11
:= ![true, true, true, true, false, true, false, false, true, false, true]
definition rowB
TopologyByExample.Slices.S5.rowB
The open row B, 11010100101: row A, but not normal.
def rowB : Row 11
:= ![true, true, false, true, false, true, false, false, true, false, true]
definition rowC
TopologyByExample.Slices.S5.rowC
The open row C, 01110100101: row A, but not Hausdorff.
def rowC : Row 11
:= ![false, true, true, true, false, true, false, false, true, false, true]
definition rowD
TopologyByExample.Slices.S5.rowD
The open row D, 01010100101: row A, but neither Hausdorff nor normal.
def rowD : Row 11
:= ![false, true, false, true, false, true, false, false, true, false, true]
definition openRows
TopologyByExample.Slices.S5.openRows
The rows the study sets aside as open, in the order of Row.all (the order in which the
content's open rows are listed).
def openRows : List (Row 11)
:= [rowD, rowB, rowC, rowA]
definition nyikosCells
TopologyByExample.Slices.S5.nyikosCells
The partial assignment of Nyikos's problem, in its regular form: first countable, separable, countably compact, regular and not compact.
def nyikosCells : List (Fin 11 × Bool)
:= [(3, true), (5, true), (8, true), (1, true), (7, false)]
theorem consistentExtensions_openRows
TopologyByExample.Slices.S5.consistentExtensions_openRows
The open rows are exactly the consistent rows that are first countable, separable, countably compact, regular and not compact.
theorem consistentExtensions_openRows : data.ConsistentExtensions nyikosCells openRows
Proof
:= by
decide +kernel
theorem mem_openRows_iff
TopologyByExample.Slices.S5.mem_openRows_iff
The open rows are exactly the consistent rows that are first countable, separable, countably compact, regular and not compact.
theorem mem_openRows_iff {r : Row 11} :
r ∈ openRows ↔ data.Consistent r ∧ r 3 = true ∧ r 5 = true ∧ r 8 = true ∧ r 1 = true ∧
r 7 = false
Proof
:= by
rw [consistentExtensions_openRows r]
simp [Row.Extends, nyikosCells]
theorem openRows_consistent
TopologyByExample.Slices.S5.openRows_consistent
The four open rows are consistent.
theorem openRows_consistent : ∀ r ∈ openRows, data.Consistent r
Proof
:= by decide +kernel
theorem coversExcept
TopologyByExample.Slices.S5.coversExcept
Every consistent row of S5 other than the four 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_not_mem
TopologyByExample.Slices.S5.card_consistent_not_mem
Exactly 118 of the 2048 rows of S5 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 =
118
Proof
:= by
decide +kernel
theorem exists_realises_open_iff_nyikos
TopologyByExample.Slices.S5.exists_realises_open_iff_nyikos
The open rows are Nyikos's problem. Some space realises one of the four open rows if and only if some space is first countable, separable, countably compact and regular 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 ∧ RegularSpace X ∧ ¬CompactSpace X
Proof
:= by
rw [data.exists_mem_realises_iff valid consistentExtensions_openRows]
simp [nyikosCells, prop, firstCountable, separable, countablyCompact, regular, compact]
The base libraries and the main theorems
structure BaseSpaces
TopologyByExample.Slices.S5.BaseSpaces
A base library of S5: a space in Type realising each of the nineteen base rows. The spaces
are supplied in TopologyByExample.Slices.S5.Complete.
structure BaseSpaces : Type 1 where
/-- The one-point space (row `11111111111`). -/
onePointSpace : TopCat.{0}
onePointSpace_realises : Realises onePointSpace (data.baseRow 0)
/-- The two-point indiscrete space (row `01111111101`). -/
indiscretePair : TopCat.{0}
indiscretePair_realises : Realises indiscretePair (data.baseRow 1)
/-- The Sierpiński space (row `00111111101`). -/
sierpinskiSpace : TopCat.{0}
sierpinskiSpace_realises : Realises sierpinskiSpace (data.baseRow 2)
/-- The cofinite topology on the natural numbers (row `00011111101`). -/
cofiniteNaturals : TopCat.{0}
cofiniteNaturals_realises : Realises cofiniteNaturals (data.baseRow 3)
/-- The double arrow space (row `11110111101`). -/
doubleArrow : TopCat.{0}
doubleArrow_realises : Realises doubleArrow (data.baseRow 4)
/-- The one-point compactification of the rational sequence topology (row `11100111101`). -/
rationalSequenceCompactification : TopCat.{0}
rationalSequenceCompactification_realises :
Realises rationalSequenceCompactification (data.baseRow 5)
/-- The lexicographically ordered square (row `11110011101`). -/
lexicographicSquare : TopCat.{0}
lexicographicSquare_realises : Realises lexicographicSquare (data.baseRow 6)
/-- The sum of the Franklin–Rajagopalan space and the one-point compactification of the
rational sequence topology (row `11100100101`). -/
franklinRajagopalanPlusCompactification : TopCat.{0}
franklinRajagopalanPlusCompactification_realises :
Realises franklinRajagopalanPlusCompactification (data.baseRow 7)
/-- The first uncountable ordinal (row `11110000101`). -/
omegaOne : TopCat.{0}
omegaOne_realises : Realises omegaOne (data.baseRow 8)
/-- The Baire space, the countable power of the discrete natural numbers (row
`11111110010`). -/
baireSpace : TopCat.{0}
baireSpace_realises : Realises baireSpace (data.baseRow 9)
/-- The discrete space on the real numbers (row `11110000010`). -/
discreteReals : TopCat.{0}
discreteReals_realises : Realises discreteReals (data.baseRow 10)
/-- The Stone–Čech compactification of the natural numbers (row `11100111100`). -/
stoneCechNaturals : TopCat.{0}
stoneCechNaturals_realises : Realises stoneCechNaturals (data.baseRow 11)
/-- The real line with the K-topology (row `10011110000`). -/
kTopology : TopCat.{0}
kTopology_realises : Realises kTopology (data.baseRow 12)
/-- The rational sequence topology (row `11010100000`). -/
rationalSequenceTopology : TopCat.{0}
rationalSequenceTopology_realises : Realises rationalSequenceTopology (data.baseRow 13)
/-- The left ray topology on the first uncountable ordinal (row `00110100101`). -/
leftRayOmegaOne : TopCat.{0}
leftRayOmegaOne_realises : Realises leftRayOmegaOne (data.baseRow 14)
/-- The sum of the first `ω₁` levels of the Franklin–Rajagopalan space and the countably
infinite discrete space (row `11110100000`). -/
franklinRajagopalanOmegaOnePlusNaturals : TopCat.{0}
franklinRajagopalanOmegaOnePlusNaturals_realises :
Realises franklinRajagopalanOmegaOnePlusNaturals (data.baseRow 15)
/-- The Franklin–Rajagopalan space with a point at infinity (row `10000100101`). -/
franklinRajagopalanPlusPoint : TopCat.{0}
franklinRajagopalanPlusPoint_realises : Realises franklinRajagopalanPlusPoint (data.baseRow 16)
/-- The product of the Franklin–Rajagopalan space and its one-point compactification (row
`11000100101`). -/
franklinRajagopalanTimesCompactification : TopCat.{0}
franklinRajagopalanTimesCompactification_realises :
Realises franklinRajagopalanTimesCompactification (data.baseRow 17)
/-- Vaughan's space (row `11010000101`). -/
vaughanSpace : TopCat.{0}
vaughanSpace_realises : Realises vaughanSpace (data.baseRow 18)
definition library
TopologyByExample.Slices.S5.BaseSpaces.library
The base library as a SliceData.Library, indexed as in the module docstring.
def BaseSpaces.library (B : BaseSpaces) : data.Library prop.{0}
Definition
where
space := ![B.onePointSpace, B.indiscretePair, B.sierpinskiSpace, B.cofiniteNaturals,
B.doubleArrow, B.rationalSequenceCompactification, B.lexicographicSquare,
B.franklinRajagopalanPlusCompactification, B.omegaOne, B.baireSpace, B.discreteReals,
B.stoneCechNaturals, B.kTopology, B.rationalSequenceTopology, B.leftRayOmegaOne,
B.franklinRajagopalanOmegaOnePlusNaturals, B.franklinRajagopalanPlusPoint,
B.franklinRajagopalanTimesCompactification, B.vaughanSpace]
realises b := by
fin_cases b
exacts [B.onePointSpace_realises, B.indiscretePair_realises, B.sierpinskiSpace_realises,
B.cofiniteNaturals_realises, B.doubleArrow_realises,
B.rationalSequenceCompactification_realises, B.lexicographicSquare_realises,
B.franklinRajagopalanPlusCompactification_realises, B.omegaOne_realises,
B.baireSpace_realises, B.discreteReals_realises, B.stoneCechNaturals_realises,
B.kTopology_realises, B.rationalSequenceTopology_realises, B.leftRayOmegaOne_realises,
B.franklinRajagopalanOmegaOnePlusNaturals_realises,
B.franklinRajagopalanPlusPoint_realises,
B.franklinRajagopalanTimesCompactification_realises, B.vaughanSpace_realises]
theorem not_realises_of_solveExcept_eq_refuted
TopologyByExample.Slices.S5.not_realises_of_solveExcept_eq_refuted
Soundness of S5 refutations. If the algorithm refutes a row, by a clause of S5 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.S5.solve_correct
Correctness of the S5 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 four 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.S5.exists_realises_iff_consistent
Completeness of S5 outside the open rows, for any base library: a row other than the four open ones is realised by some topological space (in any given universe) if and only if it satisfies the twenty 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.S5.exists_realises_iff_consistent_of_open
Completeness of S5, given the open rows: if spaces realising the four 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 twenty 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.S5.ncard_setOf_realisable_mem
Given a base library, between 118 and 122 of the 2048 rows of S5 are realised by a space (in any universe): the 118 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 118 122
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 four open rows.
example : openRows.all (fun r ↦ data.solveExcept openRows r == .open)
Proof
:= by decide +kernel
check
A refuted row: first countable, countably compact and Hausdorff, but not regular (and nothing else). The algorithm cites the new theorem, clause 18.
example : data.solveExcept openRows
![true, false, false, true, false, false, false, false, true, false, true] =
.refuted ⟨[3, 0, 8], some 1⟩
Proof
:= by
decide +kernel