Lean library · module TopologyByExample.Slices.S5.Complete

The highlights study: the base spaces and the unconditional results

Source file

TopologyByExample.Slices.S5 proves the decision algorithm of the highlights study correct, and complete outside its four open rows, for any base library S5.BaseSpaces. This file supplies the nineteen base spaces from the space files and states both results unconditionally.

The base spaces

For each base row, a few values proved for its space determine the rest of the row through the clauses (SliceData.realises_of_determines); the lemmas S5.realises_* of the section Rows say which values, for an arbitrary space. The spaces are, in the order of S5.data.baseRow: Unit, the two-point indiscrete space WithTopology Bool ⊤, the Sierpiński space Prop, CofiniteTopology ℕ, TopologyByExample.DoubleArrow, OnePoint TopologyByExample.RationalSequence, TopologyByExample.LexicographicSquare, TopologyByExample.FranklinRajagopalan ⊕ OnePoint RationalSequence, TopologyByExample.OmegaOne, the Baire space ℕ → ℕ, WithDiscreteTopology ℝ, Ultrafilter ℕ, TopologyByExample.KTopology, TopologyByExample.RationalSequence, TopologyByExample.LeftRay, TopologyByExample.FranklinRajagopalanInitial ⊕ ℕ, TopologyByExample.FranklinRajagopalanPoint and FranklinRajagopalan × OnePoint FranklinRajagopalan and TopologyByExample.VaughanSpace.

Main statements

  • S5.solve_correct_library: correctness. On every row the algorithm S5.data.solveExcept S5.openRows either cites one of the twenty 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, or answers open, which it does exactly on the four open rows.
  • S5.exists_topCat_realises_iff_consistent: completeness outside the four open rows, in every universe.
  • S5.ncard_setOf_realisable_mem_library: between 118 and 122 of the 2048 rows are realised.

On the open rows:

  • S5.realises_sum_withTopology_bool_top_rowC, S5.realises_sum_withTopology_bool_top_rowD: the sum of a space realising the Hausdorff open row S5.rowA (or S5.rowB) with the two-point indiscrete space realises the non-Hausdorff open row S5.rowC (or S5.rowD);
  • S5.exists_realises_open_iff_nyikos_t2: an open row is realised if and only if some space is first countable, separable, countably compact and Hausdorff but not compact (Nyikos's question in its usual form).

The conditional results, under 𝔱 = ℵ₁, are in TopologyByExample.Slices.S5.Conditional.

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

Completing the base rows

For each base row, a few of its values determine the rest through the clauses.

variable {X : Type u} [TopologicalSpace X]

theorem realises_onePointSpace

TopologyByExample.Slices.S5.realises_onePointSpace

A compact metrizable space has the row 11111111111.

theorem realises_onePointSpace [CompactSpace X] [MetrizableSpace X] :
    Realises X (data.baseRow 0)
Proof
:=
  data.realises_of_determines valid (cells := [(7, true), (9, true)])
    ⟨iff_of_true ‹CompactSpace X› rfl, iff_of_true ‹MetrizableSpace X› rfl⟩
    (by decide +kernel)

theorem realises_indiscretePair

TopologyByExample.Slices.S5.realises_indiscretePair

A regular, normal, second countable compact space that is not Hausdorff has the row 01111111101.

theorem realises_indiscretePair [RegularSpace X] [NormalSpace X] [SecondCountableTopology X]
    [CompactSpace X] (h : ¬T2Space X) : Realises X (data.baseRow 1)
Proof
:=
  data.realises_of_determines valid
    (cells := [(0, false), (1, true), (2, true), (4, true), (7, true)])
    ⟨iff_of_false h Bool.false_ne_true, iff_of_true ‹RegularSpace X› rfl,
      iff_of_true ‹NormalSpace X› rfl, iff_of_true ‹SecondCountableTopology X› rfl,
      iff_of_true ‹CompactSpace X› rfl⟩
    (by decide +kernel)

theorem realises_sierpinskiSpace

TopologyByExample.Slices.S5.realises_sierpinskiSpace

A normal, second countable compact space that is not regular has the row 00111111101.

theorem realises_sierpinskiSpace [NormalSpace X] [SecondCountableTopology X] [CompactSpace X]
    (h : ¬RegularSpace X) : Realises X (data.baseRow 2)
Proof
:=
  data.realises_of_determines valid (cells := [(1, false), (2, true), (4, true), (7, true)])
    ⟨iff_of_false h Bool.false_ne_true, iff_of_true ‹NormalSpace X› rfl,
      iff_of_true ‹SecondCountableTopology X› rfl, iff_of_true ‹CompactSpace X› rfl⟩
    (by decide +kernel)

theorem realises_cofiniteNaturals

TopologyByExample.Slices.S5.realises_cofiniteNaturals

A second countable compact space that is not normal has the row 00011111101.

theorem realises_cofiniteNaturals [SecondCountableTopology X] [CompactSpace X]
    (h : ¬NormalSpace X) : Realises X (data.baseRow 3)
Proof
:=
  data.realises_of_determines valid (cells := [(2, false), (4, true), (7, true)])
    ⟨iff_of_false h Bool.false_ne_true, iff_of_true ‹SecondCountableTopology X› rfl,
      iff_of_true ‹CompactSpace X› rfl⟩
    (by decide +kernel)

theorem realises_doubleArrow

TopologyByExample.Slices.S5.realises_doubleArrow

A first countable, separable compact Hausdorff space that is not second countable has the row 11110111101.

theorem realises_doubleArrow [FirstCountableTopology X] [SeparableSpace X] [CompactSpace X]
    [T2Space X] (h : ¬SecondCountableTopology X) : Realises X (data.baseRow 4)
Proof
:=
  data.realises_of_determines valid
    (cells := [(3, true), (5, true), (7, true), (0, true), (4, false)])
    ⟨iff_of_true ‹FirstCountableTopology X› rfl, iff_of_true ‹SeparableSpace X› rfl,
      iff_of_true ‹CompactSpace X› rfl, iff_of_true ‹T2Space X› rfl,
      iff_of_false h Bool.false_ne_true⟩
    (by decide +kernel)

theorem realises_rationalSequenceCompactification

TopologyByExample.Slices.S5.realises_rationalSequenceCompactification

A separable, compact, sequentially compact Hausdorff space that is not first countable has the row 11100111101.

theorem realises_rationalSequenceCompactification [SeparableSpace X] [CompactSpace X]
    [T2Space X] [SeqCompactSpace X] (h : ¬FirstCountableTopology X) :
    Realises X (data.baseRow 5)
Proof
:=
  data.realises_of_determines valid
    (cells := [(3, false), (5, true), (7, true), (0, true), (10, true)])
    ⟨iff_of_false h Bool.false_ne_true, iff_of_true ‹SeparableSpace X› rfl,
      iff_of_true ‹CompactSpace X› rfl, iff_of_true ‹T2Space X› rfl,
      iff_of_true ‹SeqCompactSpace X› rfl⟩
    (by decide +kernel)

theorem realises_lexicographicSquare

TopologyByExample.Slices.S5.realises_lexicographicSquare

A first countable compact Hausdorff space that is not separable has the row 11110011101.

theorem realises_lexicographicSquare [FirstCountableTopology X] [CompactSpace X] [T2Space X]
    (h : ¬SeparableSpace X) : Realises X (data.baseRow 6)
Proof
:=
  data.realises_of_determines valid (cells := [(3, true), (7, true), (0, true), (5, false)])
    ⟨iff_of_true ‹FirstCountableTopology X› rfl, iff_of_true ‹CompactSpace X› rfl,
      iff_of_true ‹T2Space X› rfl, iff_of_false h Bool.false_ne_true⟩
    (by decide +kernel)

theorem realises_franklinRajagopalanPlusCompactification

TopologyByExample.Slices.S5.realises_franklinRajagopalanPlusCompactification

A normal, separable, sequentially compact Hausdorff space that is neither first countable nor compact has the row 11100100101.

theorem realises_franklinRajagopalanPlusCompactification [T2Space X] [NormalSpace X]
    [SeparableSpace X] [SeqCompactSpace X] (hf : ¬FirstCountableTopology X)
    (hc : ¬CompactSpace X) : Realises X (data.baseRow 7)
Proof
:=
  data.realises_of_determines valid
    (cells := [(0, true), (2, true), (5, true), (10, true), (3, false), (7, false)])
    ⟨iff_of_true ‹T2Space X› rfl, iff_of_true ‹NormalSpace X› rfl,
      iff_of_true ‹SeparableSpace X› rfl, iff_of_true ‹SeqCompactSpace X› rfl,
      iff_of_false hf Bool.false_ne_true, iff_of_false hc Bool.false_ne_true⟩
    (by decide +kernel)

theorem realises_omegaOne

TopologyByExample.Slices.S5.realises_omegaOne

A normal, first countable, sequentially compact Hausdorff space that is neither separable nor Lindelöf has the row 11110000101.

theorem realises_omegaOne [T2Space X] [NormalSpace X] [FirstCountableTopology X]
    [SeqCompactSpace X] (hs : ¬SeparableSpace X) (hl : ¬LindelofSpace X) :
    Realises X (data.baseRow 8)
Proof
:=
  data.realises_of_determines valid
    (cells := [(0, true), (2, true), (3, true), (10, true), (5, false), (6, false)])
    ⟨iff_of_true ‹T2Space X› rfl, iff_of_true ‹NormalSpace X› rfl,
      iff_of_true ‹FirstCountableTopology X› rfl, iff_of_true ‹SeqCompactSpace X› rfl,
      iff_of_false hs Bool.false_ne_true, iff_of_false hl Bool.false_ne_true⟩
    (by decide +kernel)

theorem realises_baireSpace

TopologyByExample.Slices.S5.realises_baireSpace

A second countable metrizable space that is not compact has the row 11111110010.

theorem realises_baireSpace [MetrizableSpace X] [SecondCountableTopology X]
    (h : ¬CompactSpace X) : Realises X (data.baseRow 9)
Proof
:=
  data.realises_of_determines valid (cells := [(9, true), (4, true), (7, false)])
    ⟨iff_of_true ‹MetrizableSpace X› rfl, iff_of_true ‹SecondCountableTopology X› rfl,
      iff_of_false h Bool.false_ne_true⟩
    (by decide +kernel)

theorem realises_discreteReals

TopologyByExample.Slices.S5.realises_discreteReals

A metrizable space that is not Lindelöf has the row 11110000010.

theorem realises_discreteReals [MetrizableSpace X] (h : ¬LindelofSpace X) :
    Realises X (data.baseRow 10)
Proof
:=
  data.realises_of_determines valid (cells := [(9, true), (6, false)])
    ⟨iff_of_true ‹MetrizableSpace X› rfl, iff_of_false h Bool.false_ne_true⟩
    (by decide +kernel)

theorem realises_stoneCechNaturals

TopologyByExample.Slices.S5.realises_stoneCechNaturals

A separable compact Hausdorff space that is not sequentially compact has the row 11100111100.

theorem realises_stoneCechNaturals [CompactSpace X] [T2Space X] [SeparableSpace X]
    (h : ¬SeqCompactSpace X) : Realises X (data.baseRow 11)
Proof
:=
  data.realises_of_determines valid (cells := [(7, true), (0, true), (5, true), (10, false)])
    ⟨iff_of_true ‹CompactSpace X› rfl, iff_of_true ‹T2Space X› rfl,
      iff_of_true ‹SeparableSpace X› rfl, iff_of_false h Bool.false_ne_true⟩
    (by decide +kernel)

theorem realises_kTopology

TopologyByExample.Slices.S5.realises_kTopology

A second countable Hausdorff space that is not regular has the row 10011110000.

theorem realises_kTopology [SecondCountableTopology X] [T2Space X] (h : ¬RegularSpace X) :
    Realises X (data.baseRow 12)
Proof
:=
  data.realises_of_determines valid (cells := [(4, true), (0, true), (1, false)])
    ⟨iff_of_true ‹SecondCountableTopology X› rfl, iff_of_true ‹T2Space X› rfl,
      iff_of_false h Bool.false_ne_true⟩
    (by decide +kernel)

theorem realises_rationalSequenceTopology

TopologyByExample.Slices.S5.realises_rationalSequenceTopology

A regular, first countable, separable Hausdorff space that is neither normal nor countably compact has the row 11010100000.

theorem realises_rationalSequenceTopology [T2Space X] [RegularSpace X] [FirstCountableTopology X]
    [SeparableSpace X] (hn : ¬NormalSpace X) (hc : ¬CountablyCompactSpace X) :
    Realises X (data.baseRow 13)
Proof
:=
  data.realises_of_determines valid
    (cells := [(0, true), (1, true), (3, true), (5, true), (2, false), (8, false)])
    ⟨iff_of_true ‹T2Space X› rfl, iff_of_true ‹RegularSpace X› rfl,
      iff_of_true ‹FirstCountableTopology X› rfl, iff_of_true ‹SeparableSpace X› rfl,
      iff_of_false hn Bool.false_ne_true, iff_of_false hc Bool.false_ne_true⟩
    (by decide +kernel)

theorem realises_leftRayOmegaOne

TopologyByExample.Slices.S5.realises_leftRayOmegaOne

A normal, first countable, separable, sequentially compact space that is neither regular nor Lindelöf has the row 00110100101.

theorem realises_leftRayOmegaOne [NormalSpace X] [FirstCountableTopology X] [SeparableSpace X]
    [SeqCompactSpace X] (hr : ¬RegularSpace X) (hl : ¬LindelofSpace X) :
    Realises X (data.baseRow 14)
Proof
:=
  data.realises_of_determines valid
    (cells := [(1, false), (2, true), (3, true), (5, true), (6, false), (10, true)])
    ⟨iff_of_false hr Bool.false_ne_true, iff_of_true ‹NormalSpace X› rfl,
      iff_of_true ‹FirstCountableTopology X› rfl, iff_of_true ‹SeparableSpace X› rfl,
      iff_of_false hl Bool.false_ne_true, iff_of_true ‹SeqCompactSpace X› rfl⟩
    (by decide +kernel)

theorem realises_franklinRajagopalanOmegaOnePlusNaturals

TopologyByExample.Slices.S5.realises_franklinRajagopalanOmegaOnePlusNaturals

A normal, first countable, separable Hausdorff space that is neither Lindelöf nor countably compact has the row 11110100000.

theorem realises_franklinRajagopalanOmegaOnePlusNaturals [T2Space X] [NormalSpace X]
    [FirstCountableTopology X] [SeparableSpace X] (hl : ¬LindelofSpace X)
    (hc : ¬CountablyCompactSpace X) : Realises X (data.baseRow 15)
Proof
:=
  data.realises_of_determines valid
    (cells := [(0, true), (2, true), (3, true), (5, true), (6, false), (8, false)])
    ⟨iff_of_true ‹T2Space X› rfl, iff_of_true ‹NormalSpace X› rfl,
      iff_of_true ‹FirstCountableTopology X› rfl, iff_of_true ‹SeparableSpace X› rfl,
      iff_of_false hl Bool.false_ne_true, iff_of_false hc Bool.false_ne_true⟩
    (by decide +kernel)

theorem realises_franklinRajagopalanPlusPoint

TopologyByExample.Slices.S5.realises_franklinRajagopalanPlusPoint

A separable, sequentially compact Hausdorff space that is neither regular nor compact has the row 10000100101.

theorem realises_franklinRajagopalanPlusPoint [T2Space X] [SeparableSpace X] [SeqCompactSpace X]
    (hr : ¬RegularSpace X) (hc : ¬CompactSpace X) : Realises X (data.baseRow 16)
Proof
:=
  data.realises_of_determines valid
    (cells := [(0, true), (1, false), (5, true), (10, true), (7, false)])
    ⟨iff_of_true ‹T2Space X› rfl, iff_of_false hr Bool.false_ne_true,
      iff_of_true ‹SeparableSpace X› rfl, iff_of_true ‹SeqCompactSpace X› rfl,
      iff_of_false hc Bool.false_ne_true⟩
    (by decide +kernel)

theorem realises_franklinRajagopalanTimesCompactification

TopologyByExample.Slices.S5.realises_franklinRajagopalanTimesCompactification

A regular, separable, sequentially compact Hausdorff space that is neither normal nor first countable has the row 11000100101.

theorem realises_franklinRajagopalanTimesCompactification [T2Space X] [RegularSpace X]
    [SeparableSpace X] [SeqCompactSpace X] (hn : ¬NormalSpace X)
    (hf : ¬FirstCountableTopology X) : Realises X (data.baseRow 17)
Proof
:=
  data.realises_of_determines valid
    (cells := [(0, true), (1, true), (2, false), (3, false), (5, true), (10, true)])
    ⟨iff_of_true ‹T2Space X› rfl, iff_of_true ‹RegularSpace X› rfl,
      iff_of_false hn Bool.false_ne_true, iff_of_false hf Bool.false_ne_true,
      iff_of_true ‹SeparableSpace X› rfl, iff_of_true ‹SeqCompactSpace X› rfl⟩
    (by decide +kernel)

theorem realises_vaughanSpace

TopologyByExample.Slices.S5.realises_vaughanSpace

A first countable, countably compact Hausdorff space that is neither normal nor separable has Vaughan's row 11010000101.

theorem realises_vaughanSpace [T2Space X] [FirstCountableTopology X] [CountablyCompactSpace X]
    (hn : ¬NormalSpace X) (hs : ¬SeparableSpace X) : Realises X (data.baseRow 18)
Proof
:=
  data.realises_of_determines valid
    (cells := [(0, true), (3, true), (8, true), (2, false), (5, false)])
    ⟨iff_of_true ‹T2Space X› rfl, iff_of_true ‹FirstCountableTopology X› rfl,
      iff_of_true ‹CountablyCompactSpace X› rfl, iff_of_false hn Bool.false_ne_true,
      iff_of_false hs Bool.false_ne_true⟩
    (by decide +kernel)

theorem realises_rowA

TopologyByExample.Slices.S5.realises_rowA

A normal, first countable, separable, sequentially compact Hausdorff space that is not compact has the open row S5.rowA, 11110100101.

theorem realises_rowA [T2Space X] [NormalSpace X] [FirstCountableTopology X] [SeparableSpace X]
    [SeqCompactSpace X] (h : ¬CompactSpace X) : Realises X rowA
Proof
:=
  data.realises_of_determines valid
    (cells := [(0, true), (2, true), (3, true), (5, true), (10, true), (7, false)])
    ⟨iff_of_true ‹T2Space X› rfl, iff_of_true ‹NormalSpace X› rfl,
      iff_of_true ‹FirstCountableTopology X› rfl, iff_of_true ‹SeparableSpace X› rfl,
      iff_of_true ‹SeqCompactSpace X› rfl, iff_of_false h Bool.false_ne_true⟩
    (by decide +kernel)

theorem realises_rowB

TopologyByExample.Slices.S5.realises_rowB

A first countable, separable, sequentially compact Hausdorff space that is neither normal nor compact has the open row S5.rowB, 11010100101.

theorem realises_rowB [T2Space X] [FirstCountableTopology X] [SeparableSpace X]
    [SeqCompactSpace X] (hn : ¬NormalSpace X) (hc : ¬CompactSpace X) : Realises X rowB
Proof
:=
  data.realises_of_determines valid
    (cells := [(0, true), (2, false), (3, true), (5, true), (10, true), (7, false)])
    ⟨iff_of_true ‹T2Space X› rfl, iff_of_false hn Bool.false_ne_true,
      iff_of_true ‹FirstCountableTopology X› rfl, iff_of_true ‹SeparableSpace X› rfl,
      iff_of_true ‹SeqCompactSpace X› rfl, iff_of_false hc Bool.false_ne_true⟩
    (by decide +kernel)

The base spaces

theorem realises_unit

TopologyByExample.Slices.S5.realises_unit

The one-point space Unit realises the row 11111111111.

theorem realises_unit : Realises (TopCat.of Unit) (data.baseRow 0)
Proof
:=
  realises_onePointSpace (X := Unit)

theorem realises_withTopology_bool_top

TopologyByExample.Slices.S5.realises_withTopology_bool_top

The two-point indiscrete space realises the row 01111111101: it is perfectly normal, so normal and (being R₀) completely regular and regular, it is finite, and it is not T₀.

theorem realises_withTopology_bool_top :
    Realises (TopCat.of (WithTopology Bool ⊤)) (data.baseRow 1)
Proof
:=
  have : PerfectlyNormalSpace (WithTopology Bool ⊤) := IndiscretePair.perfectlyNormalSpace
  have : CompletelyRegularSpace (WithTopology Bool ⊤) := NormalSpace.instCompletelyRegularSpace
  realises_indiscretePair (X := WithTopology Bool ⊤) fun _ ↦
    IndiscretePair.not_t0Space inferInstance

theorem realises_prop

TopologyByExample.Slices.S5.realises_prop

The Sierpiński space Prop realises the row 00111111101: it is completely normal and finite, and it is T₀ but not Hausdorff, so not regular.

theorem realises_prop : Realises (TopCat.of Prop) (data.baseRow 2)
Proof
:=
  realises_sierpinskiSpace (X := Prop) fun _ ↦ Sierpinski.not_t2Space inferInstance

theorem realises_cofiniteTopology_nat

TopologyByExample.Slices.S5.realises_cofiniteTopology_nat

The cofinite topology on ℕ realises the row 00011111101: it is T₁ but not Hausdorff, so not normal.

theorem realises_cofiniteTopology_nat :
    Realises (TopCat.of (CofiniteTopology ℕ)) (data.baseRow 3)
Proof
:=
  have : SecondCountableTopology (CofiniteTopology ℕ) := CofiniteNat.secondCountableTopology
  realises_cofiniteNaturals (X := CofiniteTopology ℕ) fun _ ↦
    CofiniteNat.not_t2Space inferInstance

theorem realises_doubleArrow_space

TopologyByExample.Slices.S5.realises_doubleArrow_space

The double arrow space realises the row 11110111101.

theorem realises_doubleArrow_space : Realises (TopCat.of DoubleArrow) (data.baseRow 4)
Proof
:=
  realises_doubleArrow (X := DoubleArrow) DoubleArrow.not_secondCountableTopology

theorem realises_onePoint_rationalSequence

TopologyByExample.Slices.S5.realises_onePoint_rationalSequence

The one-point compactification of the rational sequence topology realises the row 11100111101.

theorem realises_onePoint_rationalSequence :
    Realises (TopCat.of (OnePoint RationalSequence)) (data.baseRow 5)
Proof
:=
  realises_rationalSequenceCompactification (X := OnePoint RationalSequence)
    RationalSequence.not_firstCountableTopology_onePoint

theorem realises_lexicographicSquare_space

TopologyByExample.Slices.S5.realises_lexicographicSquare_space

The lexicographically ordered square realises the row 11110011101.

theorem realises_lexicographicSquare_space :
    Realises (TopCat.of LexicographicSquare) (data.baseRow 6)
Proof
:=
  realises_lexicographicSquare (X := LexicographicSquare) LexicographicSquare.not_separableSpace

theorem realises_sum_franklinRajagopalan_onePoint_rationalSequence

TopologyByExample.Slices.S5.realises_sum_franklinRajagopalan_onePoint_rationalSequence

The disjoint sum of the Franklin–Rajagopalan space and the one-point compactification of the rational sequence topology realises the row 11100100101.

theorem realises_sum_franklinRajagopalan_onePoint_rationalSequence :
    Realises (TopCat.of (FranklinRajagopalan ⊕ OnePoint RationalSequence)) (data.baseRow 7)
Proof
:=
  have : SeparableSpace (FranklinRajagopalan ⊕ OnePoint RationalSequence) :=
    separableSpace_sum_iff.2 ⟨inferInstance, inferInstance⟩
  have : SeqCompactSpace (FranklinRajagopalan ⊕ OnePoint RationalSequence) :=
    seqCompactSpace_sum_iff.2 ⟨inferInstance, inferInstance⟩
  realises_franklinRajagopalanPlusCompactification
    (fun h ↦ RationalSequence.not_firstCountableTopology_onePoint
      (firstCountableTopology_sum_iff.1 h).2)
    fun h ↦ FranklinRajagopalan.not_compactSpace (compactSpace_sum_iff.1 h).1

theorem realises_omegaOne_space

TopologyByExample.Slices.S5.realises_omegaOne_space

The first uncountable ordinal realises the row 11110000101.

theorem realises_omegaOne_space : Realises (TopCat.of OmegaOne) (data.baseRow 8)
Proof
:=
  realises_omegaOne (X := OmegaOne) OmegaOne.not_separableSpace OmegaOne.not_lindelofSpace

theorem realises_pi_nat_nat

TopologyByExample.Slices.S5.realises_pi_nat_nat

The Baire space ℕ → ℕ realises the row 11111110010: it is not even σ-compact.

theorem realises_pi_nat_nat : Realises (TopCat.of (ℕ → ℕ)) (data.baseRow 9)
Proof
:=
  realises_baireSpace (X := ℕ → ℕ) fun _ ↦ BaireSpace.not_sigmaCompactSpace inferInstance

theorem realises_withDiscreteTopology_real

TopologyByExample.Slices.S5.realises_withDiscreteTopology_real

The uncountable discrete space WithDiscreteTopology ℝ realises the row 11110000010.

theorem realises_withDiscreteTopology_real :
    Realises (TopCat.of (WithDiscreteTopology ℝ)) (data.baseRow 10)
Proof
:=
  realises_discreteReals (X := WithDiscreteTopology ℝ) DiscreteReals.not_lindelofSpace

theorem realises_ultrafilter_nat

TopologyByExample.Slices.S5.realises_ultrafilter_nat

The space of ultrafilters on ℕ realises the row 11100111100.

theorem realises_ultrafilter_nat : Realises (TopCat.of (Ultrafilter ℕ)) (data.baseRow 11)
Proof
:=
  have := StoneCechNaturals.separableSpace
  realises_stoneCechNaturals (X := Ultrafilter ℕ) StoneCechNaturals.not_seqCompactSpace

theorem realises_kTopology_space

TopologyByExample.Slices.S5.realises_kTopology_space

The K-topology realises the row 10011110000.

theorem realises_kTopology_space : Realises (TopCat.of KTopology) (data.baseRow 12)
Proof
:=
  realises_kTopology (X := KTopology) KTopology.not_regularSpace

theorem realises_rationalSequence

TopologyByExample.Slices.S5.realises_rationalSequence

The rational sequence topology realises the row 11010100000: it is locally compact and Hausdorff, so regular.

theorem realises_rationalSequence :
    Realises (TopCat.of RationalSequence) (data.baseRow 13)
Proof
:=
  realises_rationalSequenceTopology (X := RationalSequence) RationalSequence.not_normalSpace
    RationalSequence.not_countablyCompactSpace

theorem realises_leftRay

TopologyByExample.Slices.S5.realises_leftRay

The left ray topology on ω₁ realises the row 00110100101.

theorem realises_leftRay : Realises (TopCat.of LeftRay) (data.baseRow 14)
Proof
:=
  realises_leftRayOmegaOne (X := LeftRay) LeftRay.not_regularSpace LeftRay.not_lindelofSpace

theorem realises_sum_franklinRajagopalanInitial_nat

TopologyByExample.Slices.S5.realises_sum_franklinRajagopalanInitial_nat

The disjoint sum of the first ω₁ levels of the Franklin–Rajagopalan space and the countably infinite discrete space realises the row 11110100000.

theorem realises_sum_franklinRajagopalanInitial_nat :
    Realises (TopCat.of (FranklinRajagopalanInitial ⊕ ℕ)) (data.baseRow 15)
Proof
:=
  realises_franklinRajagopalanOmegaOnePlusNaturals
    FranklinRajagopalanInitial.not_lindelofSpace_sum_nat
    FranklinRajagopalanInitial.not_countablyCompactSpace_sum_nat

theorem realises_franklinRajagopalanPoint

TopologyByExample.Slices.S5.realises_franklinRajagopalanPoint

The Franklin–Rajagopalan space with a point at infinity realises the row 10000100101.

theorem realises_franklinRajagopalanPoint :
    Realises (TopCat.of FranklinRajagopalanPoint) (data.baseRow 16)
Proof
:=
  realises_franklinRajagopalanPlusPoint (X := FranklinRajagopalanPoint)
    FranklinRajagopalanPoint.not_regularSpace FranklinRajagopalanPoint.not_compactSpace

theorem realises_prod_franklinRajagopalan_onePoint

TopologyByExample.Slices.S5.realises_prod_franklinRajagopalan_onePoint

The product of the Franklin–Rajagopalan space and its one-point compactification realises the row 11000100101.

theorem realises_prod_franklinRajagopalan_onePoint :
    Realises (TopCat.of (FranklinRajagopalan × OnePoint FranklinRajagopalan)) (data.baseRow 17)
Proof
:=
  have := FranklinRajagopalan.t2Space_prod_onePoint
  have := FranklinRajagopalan.completelyRegularSpace_prod_onePoint
  have := FranklinRajagopalan.separableSpace_prod_onePoint
  have := FranklinRajagopalan.seqCompactSpace_prod_onePoint
  realises_franklinRajagopalanTimesCompactification
    FranklinRajagopalan.not_normalSpace_prod_onePoint
    FranklinRajagopalan.not_firstCountableTopology_prod_onePoint

theorem realises_vaughanSpace_space

TopologyByExample.Slices.S5.realises_vaughanSpace_space

Vaughan's space realises the row 11010000101: it is first countable, countably compact and Hausdorff, but neither normal nor separable.

theorem realises_vaughanSpace_space : Realises (TopCat.of VaughanSpace) (data.baseRow 18)
Proof
:=
  realises_vaughanSpace (X := VaughanSpace) VaughanSpace.not_normalSpace
    VaughanSpace.not_separableSpace

The base library and the main theorems

definition baseSpaces

TopologyByExample.Slices.S5.baseSpaces

The nineteen base spaces of the highlights study, from the space files.

def baseSpaces : BaseSpaces
Definition
where
  onePointSpace := TopCat.of Unit
  onePointSpace_realises := realises_unit
  indiscretePair := TopCat.of (WithTopology Bool ⊤)
  indiscretePair_realises := realises_withTopology_bool_top
  sierpinskiSpace := TopCat.of Prop
  sierpinskiSpace_realises := realises_prop
  cofiniteNaturals := TopCat.of (CofiniteTopology ℕ)
  cofiniteNaturals_realises := realises_cofiniteTopology_nat
  doubleArrow := TopCat.of DoubleArrow
  doubleArrow_realises := realises_doubleArrow_space
  rationalSequenceCompactification := TopCat.of (OnePoint RationalSequence)
  rationalSequenceCompactification_realises := realises_onePoint_rationalSequence
  lexicographicSquare := TopCat.of LexicographicSquare
  lexicographicSquare_realises := realises_lexicographicSquare_space
  franklinRajagopalanPlusCompactification :=
    TopCat.of (FranklinRajagopalan ⊕ OnePoint RationalSequence)
  franklinRajagopalanPlusCompactification_realises :=
    realises_sum_franklinRajagopalan_onePoint_rationalSequence
  omegaOne := TopCat.of OmegaOne
  omegaOne_realises := realises_omegaOne_space
  baireSpace := TopCat.of (ℕ → ℕ)
  baireSpace_realises := realises_pi_nat_nat
  discreteReals := TopCat.of (WithDiscreteTopology ℝ)
  discreteReals_realises := realises_withDiscreteTopology_real
  stoneCechNaturals := TopCat.of (Ultrafilter ℕ)
  stoneCechNaturals_realises := realises_ultrafilter_nat
  kTopology := TopCat.of KTopology
  kTopology_realises := realises_kTopology_space
  rationalSequenceTopology := TopCat.of RationalSequence
  rationalSequenceTopology_realises := realises_rationalSequence
  leftRayOmegaOne := TopCat.of LeftRay
  leftRayOmegaOne_realises := realises_leftRay
  franklinRajagopalanOmegaOnePlusNaturals := TopCat.of (FranklinRajagopalanInitial ⊕ ℕ)
  franklinRajagopalanOmegaOnePlusNaturals_realises := realises_sum_franklinRajagopalanInitial_nat
  franklinRajagopalanPlusPoint := TopCat.of FranklinRajagopalanPoint
  franklinRajagopalanPlusPoint_realises := realises_franklinRajagopalanPoint
  franklinRajagopalanTimesCompactification :=
    TopCat.of (FranklinRajagopalan × OnePoint FranklinRajagopalan)
  franklinRajagopalanTimesCompactification_realises := realises_prod_franklinRajagopalan_onePoint
  vaughanSpace := TopCat.of VaughanSpace
  vaughanSpace_realises := realises_vaughanSpace_space

definition library

TopologyByExample.Slices.S5.library

The base library of the highlights study.

abbrev library : data.Library prop.{0}
:= baseSpaces.library

theorem solve_correct_library

TopologyByExample.Slices.S5.solve_correct_library

Correctness of the algorithm of the highlights 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; or answers open, which it does exactly when r is one of the four open rows.

theorem solve_correct_library (r : Row 11) :
    (data.solveExcept openRows r).Correct data openRows prop library.space r
Proof
:=
  solve_correct baseSpaces r

On this site: The correctness of the decision procedure for Metrizability, normality and compactness

theorem exists_topCat_realises_iff_consistent

TopologyByExample.Slices.S5.exists_topCat_realises_iff_consistent

Completeness of the highlights study outside the open rows, unconditionally and in every universe: a row other than the four open ones is realised by some topological space if and only if it satisfies the twenty clauses.

theorem exists_topCat_realises_iff_consistent {r : Row 11} (hr : r ∉ openRows) :
    (∃ X : TopCat.{u}, Realises X r) ↔ data.Consistent r
Proof
:=
  exists_realises_iff_consistent baseSpaces hr

On this site: The completeness of the decision procedure for Metrizability, normality and compactness

theorem ncard_setOf_realisable_mem_library

TopologyByExample.Slices.S5.ncard_setOf_realisable_mem_library

Between 118 and 122 of the 2048 combinations of the eleven properties of the highlights study are realised by a topological space (in any universe): the 118 consistent rows other than the open ones, and possibly the open ones.

theorem ncard_setOf_realisable_mem_library :
    {r : Row 11 | ∃ X : TopCat.{u}, Realises X r}.ncard ∈ Set.Icc 118 122
Proof
:=
  ncard_setOf_realisable_mem baseSpaces

On this site: The number of combinations of Metrizability, normality and compactness that occur

The open rows

theorem realises_sum_withTopology_bool_top

TopologyByExample.Slices.S5.realises_sum_withTopology_bool_top

The disjoint sum of a space with the two-point indiscrete space realises the meet of the space's row with 01111111101: the sum is neither Hausdorff nor metrizable, and has each of the other nine properties exactly when the space has it.

theorem realises_sum_withTopology_bool_top {X : Type} [TopologicalSpace X] {r : Row 11}
    (h : Realises X r) : Realises (X ⊕ WithTopology Bool ⊤) (r ⊓ data.baseRow 1)
Proof
:=
  h.sum sumConjunctive realises_withTopology_bool_top

theorem realises_sum_withTopology_bool_top_rowC

TopologyByExample.Slices.S5.realises_sum_withTopology_bool_top_rowC

If a space realises the Hausdorff normal open row S5.rowA, its sum with the two-point indiscrete space realises the non-Hausdorff normal open row S5.rowC.

theorem realises_sum_withTopology_bool_top_rowC {X : Type} [TopologicalSpace X]
    (h : Realises X rowA) : Realises (X ⊕ WithTopology Bool ⊤) rowC
Proof
:= by
  have := realises_sum_withTopology_bool_top h
  rwa [show rowA ⊓ data.baseRow 1 = rowC by decide] at this

On this site: Problem: Nyikos's Problem 1: a separable, first countable, countably compact, noncompact Hausdorff space in ZFC

theorem realises_sum_withTopology_bool_top_rowD

TopologyByExample.Slices.S5.realises_sum_withTopology_bool_top_rowD

If a space realises the Hausdorff non-normal open row S5.rowB, its sum with the two-point indiscrete space realises the non-Hausdorff non-normal open row S5.rowD.

theorem realises_sum_withTopology_bool_top_rowD {X : Type} [TopologicalSpace X]
    (h : Realises X rowB) : Realises (X ⊕ WithTopology Bool ⊤) rowD
Proof
:= by
  have := realises_sum_withTopology_bool_top h
  rwa [show rowB ⊓ data.baseRow 1 = rowD by decide] at this

On this site: Problem: Vaughan's question: a separable, first countable, countably compact, regular space that is not normal, in ZFC

theorem nyikos_separationQuotient

TopologyByExample.Slices.S5.nyikos_separationQuotient

The separation quotient (the T₀ quotient) of a first countable, separable, countably compact regular space that is not compact is a first countable, separable, countably compact Hausdorff space that is not compact.

theorem nyikos_separationQuotient {X : Type u} [TopologicalSpace X] [FirstCountableTopology X]
    [SeparableSpace X] [CountablyCompactSpace X] [RegularSpace X] (h : ¬CompactSpace X) :
    FirstCountableTopology (SeparationQuotient X) ∧ SeparableSpace (SeparationQuotient X) ∧
      CountablyCompactSpace (SeparationQuotient X) ∧ T2Space (SeparationQuotient X) ∧
      ¬CompactSpace (SeparationQuotient X)
Proof
:=
  ⟨inferInstance, inferInstance, inferInstance, inferInstance,
    SeparationQuotient.compactSpace_iff.not.2 h⟩

On this site: Problem: Nyikos's Problem 1: a separable, first countable, countably compact, noncompact Hausdorff space in ZFC; Problem: Vaughan's question: a separable, first countable, countably compact, regular space that is not normal, in ZFC

theorem exists_realises_open_iff_nyikos_t2

TopologyByExample.Slices.S5.exists_realises_open_iff_nyikos_t2

Nyikos's question, in its usual form. Some space realises one of the four open rows if and only if some space is first countable, separable, countably compact and Hausdorff but not compact. A space of the second kind is regular (first countable countably compact Hausdorff spaces are), and the separation quotient of a space of the first kind is one of the second.

theorem exists_realises_open_iff_nyikos_t2 :
    (∃ r ∈ openRows, ∃ X : TopCat.{u}, Realises X r) ↔
      ∃ X : TopCat.{u}, FirstCountableTopology X ∧ SeparableSpace X ∧
        CountablyCompactSpace X ∧ T2Space X ∧ ¬CompactSpace X
Proof
:= by
  rw [exists_realises_open_iff_nyikos]
  constructor
  · rintro ⟨X, _, _, _, _, h⟩
    obtain ⟨h₁, h₂, h₃, h₄, h₅⟩ := nyikos_separationQuotient h
    exact ⟨TopCat.of (SeparationQuotient X), h₁, h₂, h₃, h₄, h₅⟩
  · rintro ⟨X, _, _, _, _, h⟩
    exact ⟨X, inferInstance, inferInstance, inferInstance,
      regularSpace_of_firstCountableTopology_of_countablyCompactSpace, h⟩

On this site: Problem: Nyikos's Problem 1: a separable, first countable, countably compact, noncompact Hausdorff space in ZFC