Lean library · module TopologyByExample.Slices.S3.Complete

The third study (countability and compactness), unconditionally

Source file

TopologyByExample.Slices.S3 proves the decision algorithm of the merged study correct, and complete outside its two open rows, for any base library S3.BaseSpaces. This file supplies the eighteen base spaces from the space files, and so states those results with no hypotheses.

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 S3.realises_* of the section Rows say which values, for an arbitrary space. The spaces are, in the order of S3.data.baseRow: Unit, the Sierpiński space Prop, WithDiscreteTopology ℝ, TopologyByExample.KTopology, TopologyByExample.LexicographicSquare, ℚ, ℕ → TopologyByExample.OmegaOne, ℕ, Ultrafilter ℕ, TopologyByExample.OmegaOne, the Baire space ℕ → ℕ, TopologyByExample.DoubleArrow, TopologyByExample.RationalSequence, OnePoint TopologyByExample.RationalSequence, ClosedExtension OmegaOne, ClosedExtension (ℕ → OmegaOne), and the disjoint sums of TopologyByExample.FranklinRajagopalan and of ℕ → TopologyByExample.FranklinRajagopalan with OnePoint RationalSequence. The last two are base spaces in ZFC although the first countability of the Franklin–Rajagopalan space is independent: the compactification summand is not first countable, so neither sum is.

Main statements

  • S3.solve_correct_library: correctness. On every row of the study, the algorithm S3.data.solveExcept S3.openRows either cites one of the seventeen 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 two open rows.
  • S3.exists_topCat_realises_iff_consistent: completeness outside the open rows. In every universe, a row other than the two open ones is realised by some topological space if and only if it satisfies the seventeen clauses.
  • S3.ncard_setOf_realisable_mem_library: between 86 and 88 of the 2048 rows are realised.
  • S3.realises_pi_nat_rowA, S3.exists_realises_rowA_of_rowB: if a space realises the weakly locally compact open row S3.rowB, its countable power realises the other open row S3.rowA.

The conditional results, under 𝔱 = ℵ₁ or the continuum hypothesis, are in TopologyByExample.Slices.S3.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.S3.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 := [(6, true), (4, true)])
    ⟨iff_of_true ‹CompactSpace X› rfl, iff_of_true ‹MetrizableSpace X› rfl⟩
    (by decide +kernel)

theorem realises_sierpinskiSpace

TopologyByExample.Slices.S3.realises_sierpinskiSpace

A compact, second countable space that is not Hausdorff has the row 11110011111.

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

theorem realises_discreteReals

TopologyByExample.Slices.S3.realises_discreteReals

A metrizable, weakly locally compact space that is not Lindelöf has the row 10001100001.

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

theorem realises_kTopology

TopologyByExample.Slices.S3.realises_kTopology

A second countable, σ-compact Hausdorff space that is not metrizable has the row 11110101000.

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

theorem realises_lexicographicSquare

TopologyByExample.Slices.S3.realises_lexicographicSquare

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

theorem realises_lexicographicSquare [FirstCountableTopology X] [CompactSpace X] [T2Space X]
    (h : ¬SeparableSpace X) : Realises X (data.baseRow 4)
Proof
:=
  data.realises_of_determines valid (cells := [(0, true), (6, true), (5, true), (2, 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_rationals

TopologyByExample.Slices.S3.realises_rationals

A metrizable σ-compact space that is not weakly locally compact has the row 11111101000.

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

theorem realises_omegaOnePower

TopologyByExample.Slices.S3.realises_omegaOnePower

A first countable, sequentially compact Hausdorff space that is neither separable nor weakly locally compact has the row 10000100110.

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

theorem realises_discreteNaturals

TopologyByExample.Slices.S3.realises_discreteNaturals

A second countable, metrizable, weakly locally compact space that is not compact has the row 11111101001.

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

theorem realises_stoneCechNaturals

TopologyByExample.Slices.S3.realises_stoneCechNaturals

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

theorem realises_stoneCechNaturals [CompactSpace X] [T2Space X] [SeparableSpace X]
    (h : ¬SeqCompactSpace X) : Realises X (data.baseRow 8)
Proof
:=
  data.realises_of_determines valid (cells := [(6, true), (5, true), (2, true), (9, 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_omegaOne

TopologyByExample.Slices.S3.realises_omegaOne

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

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

theorem realises_baireSpace

TopologyByExample.Slices.S3.realises_baireSpace

A second countable metrizable space that is not σ-compact has the row 11111100000.

theorem realises_baireSpace [MetrizableSpace X] [SecondCountableTopology X]
    (h : ¬SigmaCompactSpace X) : Realises X (data.baseRow 10)
Proof
:=
  data.realises_of_determines valid (cells := [(4, true), (1, 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_doubleArrow

TopologyByExample.Slices.S3.realises_doubleArrow

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

theorem realises_doubleArrow [FirstCountableTopology X] [SeparableSpace X] [CompactSpace X]
    [T2Space X] (h : ¬SecondCountableTopology X) : Realises X (data.baseRow 11)
Proof
:=
  data.realises_of_determines valid
    (cells := [(0, true), (2, true), (6, true), (5, true), (1, 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_rationalSequenceTopology

TopologyByExample.Slices.S3.realises_rationalSequenceTopology

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

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

theorem realises_rationalSequenceCompactification

TopologyByExample.Slices.S3.realises_rationalSequenceCompactification

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

theorem realises_rationalSequenceCompactification [SeparableSpace X] [CompactSpace X]
    [T2Space X] [SeqCompactSpace X] (h : ¬FirstCountableTopology X) :
    Realises X (data.baseRow 13)
Proof
:=
  data.realises_of_determines valid
    (cells := [(0, false), (2, true), (6, true), (5, true), (9, 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_omegaOneClosedExtension

TopologyByExample.Slices.S3.realises_omegaOneClosedExtension

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

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

theorem realises_omegaOnePowerClosedExtension

TopologyByExample.Slices.S3.realises_omegaOnePowerClosedExtension

A first countable, separable, sequentially compact space that is neither Hausdorff nor weakly locally compact has the row 10100000110.

theorem realises_omegaOnePowerClosedExtension [FirstCountableTopology X] [SeparableSpace X]
    [SeqCompactSpace X] (ht : ¬T2Space X) (hw : ¬WeaklyLocallyCompactSpace X) :
    Realises X (data.baseRow 15)
Proof
:=
  data.realises_of_determines valid
    (cells := [(0, true), (2, true), (5, false), (9, true), (10, false)])
    ⟨iff_of_true ‹FirstCountableTopology X› rfl, iff_of_true ‹SeparableSpace X› rfl,
      iff_of_false ht Bool.false_ne_true, iff_of_true ‹SeqCompactSpace X› rfl,
      iff_of_false hw Bool.false_ne_true⟩
    (by decide +kernel)

theorem realises_franklinRajagopalanPlusCompactification

TopologyByExample.Slices.S3.realises_franklinRajagopalanPlusCompactification

A separable, sequentially compact, weakly locally compact Hausdorff space that is neither first countable nor compact has the row 00100100111.

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

theorem realises_franklinRajagopalanPowerPlusCompactification

TopologyByExample.Slices.S3.realises_franklinRajagopalanPowerPlusCompactification

A separable, sequentially compact Hausdorff space that is neither first countable nor weakly locally compact has the row 00100100110.

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

theorem realises_rowA

TopologyByExample.Slices.S3.realises_rowA

A first countable, separable, sequentially compact Hausdorff space that is not weakly locally compact has the open row S3.rowA, 10100100110.

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

theorem realises_rowB

TopologyByExample.Slices.S3.realises_rowB

A first countable, separable, sequentially compact, weakly locally compact Hausdorff space that is not compact has the open row S3.rowB, 10100100111.

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

The two open rows

The weakly locally compact open row gives the other one by passing to a countable power.

theorem realises_pi_nat_rowA

TopologyByExample.Slices.S3.realises_pi_nat_rowA

If a space realises the open row S3.rowB (first countable, separable, countably compact, weakly locally compact, Hausdorff, not compact), its countable power realises the open row S3.rowA (the same, but not weakly locally compact).

theorem realises_pi_nat_rowA {X : Type u} [TopologicalSpace X] (h : Realises X rowB) :
    Realises (ℕ → X) rowA
Proof
:= by
  have : FirstCountableTopology X := (h 0).2 rfl
  have : SeparableSpace X := (h 2).2 rfl
  have : T2Space X := (h 5).2 rfl
  have : SeqCompactSpace X := (h 9).2 rfl
  have hc : ¬CompactSpace X := fun hc ↦ Bool.false_ne_true ((h 6).1 hc)
  exact realises_rowA (weaklyLocallyCompactSpace_pi_nat_iff.not.2 hc)

theorem exists_realises_rowA_of_rowB

TopologyByExample.Slices.S3.exists_realises_rowA_of_rowB

If some space realises the open row S3.rowB, then some space (in the same universe) realises the open row S3.rowA.

theorem exists_realises_rowA_of_rowB (h : ∃ X : TopCat.{u}, Realises X rowB) :
    ∃ Y : TopCat.{u}, Realises Y rowA
Proof
:=
  let ⟨X, hX⟩ := h
  ⟨TopCat.of (ℕ → X), realises_pi_nat_rowA hX⟩

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

The base spaces

theorem realises_unit

TopologyByExample.Slices.S3.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_prop

TopologyByExample.Slices.S3.realises_prop

The Sierpiński space Prop realises the row 11110011111.

theorem realises_prop : Realises (TopCat.of Prop) (data.baseRow 1)
Proof
:=
  realises_sierpinskiSpace (X := Prop) Sierpinski.not_t2Space

theorem realises_withDiscreteTopology_real

TopologyByExample.Slices.S3.realises_withDiscreteTopology_real

The uncountable discrete space WithDiscreteTopology ℝ realises the row 10001100001.

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

theorem realises_rat

TopologyByExample.Slices.S3.realises_rat

The rational numbers realise the row 11111101000.

theorem realises_rat : Realises (TopCat.of ℚ) (data.baseRow 5)
Proof
:=
  have : SigmaCompactSpace ℚ := sigmaCompactSpace_of_countable
  realises_rationals (X := ℚ) Rationals.not_weaklyLocallyCompactSpace

theorem realises_pi_nat_omegaOne

TopologyByExample.Slices.S3.realises_pi_nat_omegaOne

The countable power ℕ → OmegaOne realises the row 10000100110.

theorem realises_pi_nat_omegaOne : Realises (TopCat.of (ℕ → OmegaOne)) (data.baseRow 6)
Proof
:=
  realises_omegaOnePower (X := ℕ → OmegaOne) OmegaOnePower.not_separableSpace
    OmegaOnePower.not_weaklyLocallyCompactSpace

theorem realises_nat

TopologyByExample.Slices.S3.realises_nat

The countably infinite discrete space ℕ realises the row 11111101001.

theorem realises_nat : Realises (TopCat.of ℕ) (data.baseRow 7)
Proof
:=
  realises_discreteNaturals (X := ℕ) fun _ ↦
    Infinite.not_finite (finite_of_compact_of_discrete (X := ℕ))

theorem realises_ultrafilter_nat

TopologyByExample.Slices.S3.realises_ultrafilter_nat

The space of ultrafilters on ℕ realises the row 00110111101.

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

theorem realises_pi_nat_nat

TopologyByExample.Slices.S3.realises_pi_nat_nat

The Baire space ℕ → ℕ realises the row 11111100000.

theorem realises_pi_nat_nat : Realises (TopCat.of (ℕ → ℕ)) (data.baseRow 10)
Proof
:=
  realises_baireSpace (X := ℕ → ℕ) BaireSpace.not_sigmaCompactSpace

theorem realises_rationalSequence

TopologyByExample.Slices.S3.realises_rationalSequence

The rational sequence topology realises the row 10100100001.

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

theorem realises_onePoint_rationalSequence

TopologyByExample.Slices.S3.realises_onePoint_rationalSequence

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

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

theorem realises_closedExtension_omegaOne

TopologyByExample.Slices.S3.realises_closedExtension_omegaOne

The closed extension of the first uncountable ordinal realises the row 10100000111.

theorem realises_closedExtension_omegaOne :
    Realises (TopCat.of (ClosedExtension OmegaOne)) (data.baseRow 14)
Proof
:=
  realises_omegaOneClosedExtension (X := ClosedExtension OmegaOne) ClosedExtension.not_t2Space
    (ClosedExtension.lindelofSpace_iff.not.2 OmegaOne.not_lindelofSpace)

theorem realises_closedExtension_pi_nat_omegaOne

TopologyByExample.Slices.S3.realises_closedExtension_pi_nat_omegaOne

The closed extension of ℕ → OmegaOne realises the row 10100000110.

theorem realises_closedExtension_pi_nat_omegaOne :
    Realises (TopCat.of (ClosedExtension (ℕ → OmegaOne))) (data.baseRow 15)
Proof
:=
  realises_omegaOnePowerClosedExtension (X := ClosedExtension (ℕ → OmegaOne))
    ClosedExtension.not_t2Space
    (ClosedExtension.weaklyLocallyCompactSpace_iff.not.2
      OmegaOnePower.not_weaklyLocallyCompactSpace)

theorem not_firstCountableTopology_sum_onePoint_rationalSequence

TopologyByExample.Slices.S3.not_firstCountableTopology_sum_onePoint_rationalSequence

The one-point compactification of the rational sequence topology is not first countable, so neither is its disjoint sum with any space.

theorem not_firstCountableTopology_sum_onePoint_rationalSequence (Y : Type*) [TopologicalSpace Y] :
    ¬FirstCountableTopology (Y ⊕ OnePoint RationalSequence)
Proof
:= fun h ↦
  RationalSequence.not_firstCountableTopology_onePoint (firstCountableTopology_sum_iff.1 h).2

theorem realises_sum_franklinRajagopalan_onePoint_rationalSequence

TopologyByExample.Slices.S3.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 00100100111.

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

theorem realises_sum_pi_nat_franklinRajagopalan_onePoint_rationalSequence

TopologyByExample.Slices.S3.realises_sum_pi_nat_franklinRajagopalan_onePoint_rationalSequence

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

theorem realises_sum_pi_nat_franklinRajagopalan_onePoint_rationalSequence :
    Realises (TopCat.of ((ℕ → FranklinRajagopalan) ⊕ OnePoint RationalSequence))
      (data.baseRow 17)
Proof
:=
  have : SeparableSpace ((ℕ → FranklinRajagopalan) ⊕ OnePoint RationalSequence) :=
    separableSpace_sum_iff.2 ⟨inferInstance, inferInstance⟩
  have : SeqCompactSpace ((ℕ → FranklinRajagopalan) ⊕ OnePoint RationalSequence) :=
    seqCompactSpace_sum_iff.2 ⟨inferInstance, inferInstance⟩
  realises_franklinRajagopalanPowerPlusCompactification
    (not_firstCountableTopology_sum_onePoint_rationalSequence _)
    fun h ↦ FranklinRajagopalanPower.not_weaklyLocallyCompactSpace
      (weaklyLocallyCompactSpace_sum_iff.1 h).1

The base library and the main theorems

definition baseSpaces

TopologyByExample.Slices.S3.baseSpaces

The base library of the merged study, from the space files.

def baseSpaces : BaseSpaces
Definition
where
  onePointSpace := TopCat.of Unit
  onePointSpace_realises := realises_unit
  sierpinskiSpace := TopCat.of Prop
  sierpinskiSpace_realises := realises_prop
  discreteReals := TopCat.of (WithDiscreteTopology ℝ)
  discreteReals_realises := realises_withDiscreteTopology_real
  kTopology := TopCat.of KTopology
  kTopology_realises :=
    realises_kTopology (X := KTopology) KTopology.not_metrizableSpace
  lexicographicSquare := TopCat.of LexicographicSquare
  lexicographicSquare_realises :=
    realises_lexicographicSquare (X := LexicographicSquare) LexicographicSquare.not_separableSpace
  rationals := TopCat.of ℚ
  rationals_realises := realises_rat
  omegaOnePower := TopCat.of (ℕ → OmegaOne)
  omegaOnePower_realises := realises_pi_nat_omegaOne
  discreteNaturals := TopCat.of ℕ
  discreteNaturals_realises := realises_nat
  stoneCechNaturals := TopCat.of (Ultrafilter ℕ)
  stoneCechNaturals_realises := realises_ultrafilter_nat
  omegaOne := TopCat.of OmegaOne
  omegaOne_realises :=
    realises_omegaOne (X := OmegaOne) OmegaOne.not_separableSpace OmegaOne.not_lindelofSpace
  baireSpace := TopCat.of (ℕ → ℕ)
  baireSpace_realises := realises_pi_nat_nat
  doubleArrow := TopCat.of DoubleArrow
  doubleArrow_realises :=
    realises_doubleArrow (X := DoubleArrow) DoubleArrow.not_secondCountableTopology
  rationalSequenceTopology := TopCat.of RationalSequence
  rationalSequenceTopology_realises := realises_rationalSequence
  rationalSequenceCompactification := TopCat.of (OnePoint RationalSequence)
  rationalSequenceCompactification_realises := realises_onePoint_rationalSequence
  omegaOneClosedExtension := TopCat.of (ClosedExtension OmegaOne)
  omegaOneClosedExtension_realises := realises_closedExtension_omegaOne
  omegaOnePowerClosedExtension := TopCat.of (ClosedExtension (ℕ → OmegaOne))
  omegaOnePowerClosedExtension_realises := realises_closedExtension_pi_nat_omegaOne
  franklinRajagopalanPlusCompactification :=
    TopCat.of (FranklinRajagopalan ⊕ OnePoint RationalSequence)
  franklinRajagopalanPlusCompactification_realises :=
    realises_sum_franklinRajagopalan_onePoint_rationalSequence
  franklinRajagopalanPowerPlusCompactification :=
    TopCat.of ((ℕ → FranklinRajagopalan) ⊕ OnePoint RationalSequence)
  franklinRajagopalanPowerPlusCompactification_realises :=
    realises_sum_pi_nat_franklinRajagopalan_onePoint_rationalSequence

definition library

TopologyByExample.Slices.S3.library

The base library of the merged 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.S3.solve_correct_library

Correctness of the algorithm of the merged 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 two 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 Countability, metrizability and compactness

theorem exists_topCat_realises_iff_consistent

TopologyByExample.Slices.S3.exists_topCat_realises_iff_consistent

Completeness of the merged study outside the open rows, unconditionally and in every universe. A row other than the two open ones is realised by some topological space if and only if it satisfies the seventeen 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 Countability, metrizability and compactness

theorem ncard_setOf_realisable_mem_library

TopologyByExample.Slices.S3.ncard_setOf_realisable_mem_library

Between 86 and 88 of the 2048 combinations of the eleven properties of the merged study are realised by a topological space (in any universe): the 86 consistent rows other than the two 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 86 88
Proof
:=
  ncard_setOf_realisable_mem baseSpaces

On this site: The number of combinations of Countability, metrizability and compactness that occur

Worked examples

check

A refuted row: Lindelöf, countably compact and Hausdorff, but none of the other eight properties. The algorithm cites the clause "Lindelöf and countably compact ⇒ compact".

example : data.solveExcept openRows
    ![false, false, false, true, false, true, false, false, true, false, false] =
      .refuted ⟨[3, 8], some 6⟩
Proof
:= by
  decide +kernel

check

So no space, in any universe, realises that row.

example (X : Type u) [TopologicalSpace X] :
    ¬Realises X ![false, false, false, true, false, true, false, false, true, false, false]
Proof
:=
  not_realises_of_solveExcept_eq_refuted (c := ⟨[3, 8], some 6⟩) (by decide +kernel) X

check

A witnessed row: separable, Hausdorff, countably, sequentially and weakly locally compact, but neither first countable nor compact. The base spaces above it, other than the top one, are the double arrow space, the one-point compactification of the rational sequence topology and the sum of the Franklin–Rajagopalan space with that compactification, and the algorithm returns their disjoint sum.

example : data.solveExcept openRows
    ![false, false, true, false, false, true, false, false, true, true, true] =
      .witness (((Expr.base 11).node (.base 13)).node (.base 16))
Proof
:= by
  decide +kernel

check

So that sum realises the row.

example : Realises
    ((DoubleArrow ⊕ OnePoint RationalSequence) ⊕
      (FranklinRajagopalan ⊕ OnePoint RationalSequence))
    ![false, false, true, false, false, true, false, false, true, true, true]
Proof
:=
  data.realises_of_solveExcept_eq_witness sumConjunctive library coversExcept
    (e := ((Expr.base 11).node (.base 13)).node (.base 16)) (by decide +kernel)

On this site: Space: Sum of the Franklin–Rajagopalan space and the one-point compactification of the rational sequence topology; Space: Sum of the countable power of the Franklin–Rajagopalan space and the one-point compactification of the rational sequence topology