Lean library · module TopologyByExample.Spaces.EllentuckNormality

A closed separable nonnormal subspace of the Ellentuck space

Source file

This file was written by Codex (OpenAI's AI model) working under the direction of David R. MacIver, who reviews it and is responsible for it.

Imports

definition odds

TopologyByExample.Ellentuck.odds

The fixed odd part of the reservoirs.

def odds : Set ℕ
:= {k | k % 2 = 1}

theorem infinite_odds

TopologyByExample.Ellentuck.infinite_odds

The fixed odd part is infinite.

theorem infinite_odds : odds.Infinite
Proof
:= by
  apply (Set.infinite_range_of_injective
    (show Function.Injective (fun n : ℕ ↦ 2 * n + 1) from by intro a b h; dsimp at h; omega)).mono
  rintro _ ⟨n, rfl⟩
  change (2 * n + 1) % 2 = 1
  omega

definition oddSupersets

TopologyByExample.Ellentuck.oddSupersets

The subspace of all reservoirs containing every odd number.

def oddSupersets : Set Ellentuck
:= {B | odds ⊆ val B}

theorem isClosed_oddSupersets

TopologyByExample.Ellentuck.isClosed_oddSupersets

The supersets subspace is closed.

theorem isClosed_oddSupersets : IsClosed oddSupersets
Proof
:= by
  apply isOpen_compl_iff.mp
  intro B hB
  refine ⟨∅, by simp, ?_⟩
  intro C hC hCF
  exact hB (hCF.trans hC.2)

definition finiteExtension

TopologyByExample.Ellentuck.finiteExtension

Add a finite set to the fixed odd part.

def finiteExtension (s : Finset ℕ) : oddSupersets
:=
  ⟨⟨odds ∪ (s : Set ℕ), infinite_odds.mono subset_union_left⟩, subset_union_left⟩

theorem dense_finiteExtension

TopologyByExample.Ellentuck.dense_finiteExtension

Finite extensions of the odd part are dense in its supersets subspace.

theorem dense_finiteExtension : Dense (range finiteExtension)
Proof
:= by
  apply dense_iff_inter_open.mpr
  intro U hU ⟨B, hBU⟩
  obtain ⟨V, hVo, hVU⟩ := isOpen_induced_iff.mp hU
  have hBV : B.val ∈ V := by
    change B ∈ Subtype.val ⁻¹' V
    rw [hVU]
    exact hBU
  obtain ⟨s, hs, hsV⟩ := hVo B.val hBV
  refine ⟨finiteExtension s, ?_, mem_range_self s⟩
  rw [← hVU]
  apply hsV
  exact ⟨subset_union_right, union_subset B.property hs⟩

instance

The supersets subspace is separable.

instance : SeparableSpace oddSupersets
Proof
:=
  ⟨⟨range finiteExtension, countable_range _, dense_finiteExtension⟩⟩

definition choiceReservoir

TopologyByExample.Ellentuck.choiceReservoir

Choose exactly one element of each even pair, retaining all odds.

def choiceReservoir (x : ℕ → Bool) : Ellentuck
:=
  ⟨odds ∪ range (fun n ↦ 4 * n + if x n then 2 else 0), infinite_odds.mono subset_union_left⟩

theorem zero_mem_choice

TopologyByExample.Ellentuck.zero_mem_choice

The zero choice in a pair belongs exactly when the corresponding bit is false.

theorem zero_mem_choice (x : ℕ → Bool) (n : ℕ) :
    4 * n ∈ val (choiceReservoir x) ↔ x n = false
Proof
:= by
  change (4 * n ∈ odds ∪ range (fun m ↦ 4 * m + if x m then 2 else 0)) ↔ _
  constructor
  · rintro (h | ⟨m, hm⟩)
    · change (4 * n) % 2 = 1 at h; omega
    · dsimp at hm
      split_ifs at hm with hx
      · omega
      · have : m = n := by omega
        simpa [this] using hx
  · intro hx
    exact Or.inr ⟨n, by simp [hx]⟩

theorem two_mem_choice

TopologyByExample.Ellentuck.two_mem_choice

The other choice in a pair belongs exactly when the bit is true.

theorem two_mem_choice (x : ℕ → Bool) (n : ℕ) :
    4 * n + 2 ∈ val (choiceReservoir x) ↔ x n = true
Proof
:= by
  change (4 * n + 2 ∈ odds ∪ range (fun m ↦ 4 * m + if x m then 2 else 0)) ↔ _
  constructor
  · rintro (h | ⟨m, hm⟩)
    · change (4 * n + 2) % 2 = 1 at h; omega
    · dsimp at hm
      split_ifs at hm with hx
      · have : m = n := by omega
        simpa [this] using hx
      · omega
  · intro hx
    exact Or.inr ⟨n, by simp [hx]⟩

definition choiceFamily

TopologyByExample.Ellentuck.choiceFamily

The closed family whose even pairs each contain precisely one choice.

def choiceFamily : Set Ellentuck
:=
  {B | B ∈ oddSupersets ∧ ∀ n, (4 * n ∈ val B ↔ 4 * n + 2 ∉ val B)}

theorem choiceReservoir_mem

TopologyByExample.Ellentuck.choiceReservoir_mem

Binary choice reservoirs belong to the family.

theorem choiceReservoir_mem (x : ℕ → Bool) : choiceReservoir x ∈ choiceFamily
Proof
:= by
  refine ⟨subset_union_left, fun n ↦ ?_⟩
  rw [zero_mem_choice, two_mem_choice]
  cases x n <;> simp

theorem isClosed_choiceFamily

TopologyByExample.Ellentuck.isClosed_choiceFamily

The family is closed: a finite stem witnesses failure of the choice conditions.

theorem isClosed_choiceFamily : IsClosed choiceFamily
Proof
:= by
  classical
  apply isOpen_compl_iff.mp
  intro B hB
  by_cases ho : B ∈ oddSupersets
  · have hn : ∃ n, ¬ (4 * n ∈ val B ↔ 4 * n + 2 ∉ val B) := by
      by_contra! h
      exact hB ⟨ho, h⟩
    obtain ⟨n, hn⟩ := hn
    by_cases hzero : 4 * n ∈ val B
    · have htwo : 4 * n + 2 ∈ val B := by tauto
      refine ⟨{4 * n, 4 * n + 2}, ?_, ?_⟩
      · intro k hk
        simp only [Finset.mem_coe, Finset.mem_insert, Finset.mem_singleton] at hk
        rcases hk with rfl | rfl <;> assumption
      · intro C hC hCD
        exact ((hCD.2 n).mp (hC.1 (by simp))) (hC.1 (by simp))
    · have htwo : 4 * n + 2 ∉ val B := by tauto
      refine ⟨∅, by simp, ?_⟩
      intro C hC hCD
      exact hzero (hC.2 ((hCD.2 n).mpr (fun hk ↦ htwo (hC.2 hk))))
  · refine ⟨∅, by simp, ?_⟩
    intro C hC hCD
    exact ho (hCD.1.trans hC.2)

theorem choiceFamily_antichain

TopologyByExample.Ellentuck.choiceFamily_antichain

Two members of the family cannot be properly included in one another.

theorem choiceFamily_antichain {B C : Ellentuck} (hB : B ∈ choiceFamily)
    (hC : C ∈ choiceFamily) (hCB : val C ⊆ val B) : C = B
Proof
:= by
  apply val_injective
  apply subset_antisymm hCB
  intro k hk
  have hc : k % 2 = 1 ∨ k = 4 * (k / 4) ∨ k = 4 * (k / 4) + 2 := by omega
  rcases hc with ho | hz | ht
  · exact hC.1 ho
  · rw [hz] at hk ⊢
    apply (hC.2 _).mpr
    intro hn
    exact ((hB.2 _).mp hk) (hCB hn)
  · rw [ht] at hk ⊢
    by_contra hn
    exact ((hB.2 _).mp (hCB ((hC.2 _).mpr hn))) hk

instance

The family is a discrete subspace.

instance : DiscreteTopology choiceFamily
Proof
:= by
  apply discreteTopology_iff_isOpen_singleton.mpr
  intro B
  have he : ({B} : Set choiceFamily) = Subtype.val ⁻¹' basic ∅ (val B.val) := by
    ext C
    constructor
    · rintro rfl
      exact ⟨by simp, subset_rfl⟩
    · intro hC
      exact Subtype.ext (choiceFamily_antichain B.property C.property hC.2)
  rw [he]
  exact (isOpen_basic _ _).preimage continuous_subtypeVal

theorem choiceReservoir_injective

TopologyByExample.Ellentuck.choiceReservoir_injective

The binary choices can be recovered from their reservoirs.

theorem choiceReservoir_injective : Function.Injective choiceReservoir
Proof
:= by
  intro x y h
  funext n
  have he : (x n = true) ↔ (y n = true) := by
    rw [← two_mem_choice, ← two_mem_choice, h]
  cases hx : x n <;> cases hy : y n <;> simp_all

definition relativeChoices

TopologyByExample.Ellentuck.relativeChoices

The choice family, regarded inside the closed separable subspace.

def relativeChoices : Set oddSupersets
:= Subtype.val ⁻¹' choiceFamily

theorem isClosed_relativeChoices

TopologyByExample.Ellentuck.isClosed_relativeChoices

The relative choice family is closed.

theorem isClosed_relativeChoices : IsClosed relativeChoices
Proof
:=
  isClosed_choiceFamily.preimage continuous_subtypeVal

instance

The relative choice family is discrete.

instance : DiscreteTopology relativeChoices
Proof
:= by
  apply discreteTopology_iff_isOpen_singleton.mpr
  intro B
  have he : ({B} : Set relativeChoices) =
      (fun C : relativeChoices ↦ C.val.val) ⁻¹' basic ∅ (val B.val.val) := by
    ext C
    constructor
    · rintro rfl
      exact ⟨by simp, subset_rfl⟩
    · intro hC
      exact Subtype.ext (Subtype.ext
        (choiceFamily_antichain B.property C.property hC.2))
  rw [he]
  exact (isOpen_basic _ _).preimage (continuous_subtypeVal.comp continuous_subtypeVal)

theorem continuum_le_relativeChoices

TopologyByExample.Ellentuck.continuum_le_relativeChoices

Continuum many binary choices belong to the relative family.

theorem continuum_le_relativeChoices : Cardinal.continuum ≤ Cardinal.mk relativeChoices
Proof
:= by
  let f : (ℕ → Bool) → relativeChoices := fun x ↦
    ⟨⟨choiceReservoir x, (choiceReservoir_mem x).1⟩, choiceReservoir_mem x⟩
  have hf : Function.Injective f := by
    intro x y h
    exact choiceReservoir_injective (congrArg (fun z : relativeChoices ↦ z.val.val) h)
  have hc := Cardinal.mk_le_of_injective hf
  rw [Cardinal.mk_arrow, Cardinal.mk_bool, Cardinal.mk_nat, Cardinal.lift_aleph0,
    Cardinal.lift_ofNat, Cardinal.two_power_aleph0] at hc
  exact hc

theorem not_normalSpace

TopologyByExample.Ellentuck.not_normalSpace

The Ellentuck space is not normal.

theorem not_normalSpace : ¬ NormalSpace Ellentuck
Proof
:= by
  intro h
  let := h
  let : NormalSpace oddSupersets := isClosed_oddSupersets.isClosedEmbedding_subtypeVal.normalSpace
  exact isClosed_relativeChoices.not_normal_of_continuum_le_mk continuum_le_relativeChoices
    inferInstance

On this site: The Ellentuck space is not normal

theorem not_sigmaLocallyFiniteBase

TopologyByExample.Ellentuck.not_sigmaLocallyFiniteBase

No sigma-locally finite base exists on the Ellentuck space.

theorem not_sigmaLocallyFiniteBase : ¬ SigmaLocallyFiniteBase Ellentuck
Proof
:= by
  intro h
  let := h
  let : SecondCountableTopology oddSupersets :=
    secondCountableTopology_of_sigmaLocallyFiniteBase_of_separableSpace
  have hc : Countable relativeChoices := separableSpace_iff_countable.mp inferInstance
  exact (not_le_of_gt Cardinal.aleph0_lt_continuum)
    (continuum_le_relativeChoices.trans (@Cardinal.mk_le_aleph0 relativeChoices hc))

theorem not_countablyParacompactSpace

TopologyByExample.Ellentuck.not_countablyParacompactSpace

The same closed separable subspace excludes countable paracompactness.

theorem not_countablyParacompactSpace : ¬ CountablyParacompactSpace Ellentuck
Proof
:= by
  intro h
  let := h
  let : CountablyParacompactSpace oddSupersets :=
    isClosed_oddSupersets.isClosedEmbedding_subtypeVal.countablyParacompactSpace
  exact isClosed_relativeChoices.not_countablyParacompactSpace_of_continuum_le_mk
    continuum_le_relativeChoices inferInstance

On this site: The Ellentuck space is not countably paracompact