Lean library · module TopologyByExample.Theorems.EllentuckVanDouwen
The Ellentuck space and van Douwen's space Ω
Each space embeds as a closed subspace of the other. In particular, their countable metacompactness questions are equivalent.
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 VanDouwenOmega
TopologyByExample.VanDouwenOmega
Van Douwen's Ω consists of all subsets of the natural numbers.
def VanDouwenOmega
:= Set ℕ
definition val
TopologyByExample.VanDouwenOmega.val
The subset represented by a point of Ω.
def val (A : VanDouwenOmega) : Set ℕ
:= A
definition toEllentuck
TopologyByExample.VanDouwenOmega.toEllentuck
Retain all even numbers and record the complement of the argument on the odd numbers.
def toEllentuck (A : VanDouwenOmega) : Ellentuck
:= Ellentuck.code (val A)ᶜ
instance
instance : TopologicalSpace VanDouwenOmega
Proof
:= .induced toEllentuck inferInstance
definition basic
TopologyByExample.VanDouwenOmega.basic
A basic neighbourhood consists of supersets that miss a specified finite set.
def basic (A : VanDouwenOmega) (s : Finset ℕ) : Set VanDouwenOmega
:=
{B | val A ⊆ val B ∧ (s : Set ℕ) ⊆ (val B)ᶜ}
definition odd
TopologyByExample.VanDouwenOmega.odd
private def odd (n : ℕ) : ℕ
:= 2 * n + 1
theorem odd_injective
TopologyByExample.VanDouwenOmega.odd_injective
private theorem odd_injective : Function.Injective odd
Proof
:= by
intro a b h
unfold odd at h
omega
theorem code_subset_iff
TopologyByExample.VanDouwenOmega.code_subset_iff
private theorem code_subset_iff {A B : Set ℕ} :
Ellentuck.val (Ellentuck.code A) ⊆ Ellentuck.val (Ellentuck.code B) ↔ A ⊆ B
Proof
:= by
constructor
· intro h n hn
exact (Ellentuck.odd_mem_code B n).mp (h ((Ellentuck.odd_mem_code A n).mpr hn))
· intro h
exact union_subset_union_right _ (image_mono h)
theorem stem_subset_iff
TopologyByExample.VanDouwenOmega.stem_subset_iff
private theorem stem_subset_iff {s : Finset ℕ} {A : Set ℕ} :
(s : Set ℕ) ⊆ Ellentuck.val (Ellentuck.code A) ↔
(s.preimage odd odd_injective.injOn : Set ℕ) ⊆ A
Proof
:= by
constructor
· intro h n hn
exact (Ellentuck.odd_mem_code A n).mp (h ((Finset.mem_preimage (f := odd)).mp hn))
· intro h k hk
by_cases he : k % 2 = 0
· exact Or.inl ⟨k / 2, by dsimp; omega⟩
· have ho : odd (k / 2) = k := by unfold odd; omega
rw [← ho]
apply (Ellentuck.odd_mem_code A _).mpr
apply h
apply Finset.mem_preimage.mpr
simpa only [ho, Finset.mem_coe] using hk
theorem preimage_basic
TopologyByExample.VanDouwenOmega.preimage_basic
private theorem preimage_basic (A : VanDouwenOmega) (s : Finset ℕ) :
toEllentuck ⁻¹' Ellentuck.basic s (Ellentuck.val (toEllentuck A)) =
basic A (s.preimage odd odd_injective.injOn)
Proof
:= by
ext B
change (_ ∧ _) ↔ (_ ∧ _)
unfold toEllentuck
rw [stem_subset_iff, code_subset_iff, compl_subset_compl]
exact and_comm
theorem preimage_image_odd
TopologyByExample.VanDouwenOmega.preimage_image_odd
private theorem preimage_image_odd (s : Finset ℕ) :
(s.image odd).preimage odd odd_injective.injOn = s
Proof
:= by
ext k
simp [odd_injective.eq_iff]
theorem hasBasis
TopologyByExample.VanDouwenOmega.hasBasis
The defining neighbourhoods of Ω allow every finite forbidden set disjoint from the point.
theorem hasBasis (A : VanDouwenOmega) :
(𝓝 A).HasBasis (fun s : Finset ℕ ↦ (s : Set ℕ) ⊆ (val A)ᶜ) (basic A)
Proof
:= by
rw [nhds_induced]
have h := (Ellentuck.hasBasis (toEllentuck A)).comap toEllentuck
constructor
intro U
rw [h.mem_iff]
constructor
· rintro ⟨s, hs, hU⟩
exact ⟨_, stem_subset_iff.mp hs, (preimage_basic A s) ▸ hU⟩
· rintro ⟨s, hs, hU⟩
refine ⟨s.image odd, stem_subset_iff.mpr ?_, ?_⟩
· simpa only [preimage_image_odd] using hs
· simpa only [preimage_basic, preimage_image_odd] using hU
theorem range_toEllentuck
TopologyByExample.VanDouwenOmega.range_toEllentuck
private theorem range_toEllentuck :
range toEllentuck = {B | range (fun n : ℕ ↦ 2 * n) ⊆ Ellentuck.val B}
Proof
:= by
ext B
constructor
· rintro ⟨A, rfl⟩
exact subset_union_left
· intro hB
let D : Set ℕ := odd ⁻¹' Ellentuck.val B
refine ⟨(Dᶜ : Set ℕ), Ellentuck.val_injective ?_⟩
change Ellentuck.val (Ellentuck.code Dᶜᶜ) = Ellentuck.val B
rw [compl_compl]
apply subset_antisymm (union_subset hB (image_preimage_subset _ _))
intro k hk
by_cases he : k % 2 = 0
· exact Or.inl ⟨k / 2, by dsimp; omega⟩
· have ho : odd (k / 2) = k := by unfold odd; omega
exact Or.inr ⟨k / 2, show odd (k / 2) ∈ Ellentuck.val B by simpa only [ho] using hk, ho⟩
theorem isClosedEmbedding_toEllentuck
TopologyByExample.VanDouwenOmega.isClosedEmbedding_toEllentuck
The copy of Ω in the Ellentuck space consists of the sets containing all even numbers.
theorem isClosedEmbedding_toEllentuck : IsClosedEmbedding toEllentuck
Proof
:= by
refine ⟨⟨⟨rfl⟩, fun A B h ↦ ?_⟩, ?_⟩
· change val A = val B
exact compl_injective (Ellentuck.code_injective h)
· rw [range_toEllentuck, ← isOpen_compl_iff]
intro B hB
exact ⟨∅, by simp, fun C hC h ↦ hB (h.trans hC.2)⟩
definition ofEllentuck
TopologyByExample.VanDouwenOmega.ofEllentuck
Complement embeds the Ellentuck space into Ω.
def ofEllentuck (B : Ellentuck) : VanDouwenOmega
:= ((Ellentuck.val B)ᶜ : Set ℕ)
theorem preimage_basic_ofEllentuck
TopologyByExample.VanDouwenOmega.preimage_basic_ofEllentuck
private theorem preimage_basic_ofEllentuck (B : Ellentuck) (s : Finset ℕ) :
ofEllentuck ⁻¹' basic (ofEllentuck B) s = Ellentuck.basic s (Ellentuck.val B)
Proof
:= by
ext C
change ((Ellentuck.val B)ᶜ ⊆ (Ellentuck.val C)ᶜ ∧ (s : Set ℕ) ⊆ (Ellentuck.val C)ᶜᶜ) ↔ (_ ∧ _)
rw [compl_compl, compl_subset_compl]
exact and_comm
theorem range_ofEllentuck
TopologyByExample.VanDouwenOmega.range_ofEllentuck
private theorem range_ofEllentuck :
range ofEllentuck = {A | (val A)ᶜ.Infinite}
Proof
:= by
ext A
constructor
· rintro ⟨B, rfl⟩
change (Ellentuck.val B)ᶜᶜ.Infinite
simpa only [compl_compl] using Ellentuck.infinite_val B
· intro hA
refine ⟨⟨(val A)ᶜ, hA⟩, ?_⟩
exact compl_compl (val A)
theorem isClosedEmbedding_ofEllentuck
TopologyByExample.VanDouwenOmega.isClosedEmbedding_ofEllentuck
The copy of the Ellentuck space in Ω consists of the points with infinite complement.
theorem isClosedEmbedding_ofEllentuck : IsClosedEmbedding ofEllentuck
Proof
:= by
refine ⟨⟨isInducing_iff_nhds.mpr fun B ↦ ?_,
fun _ _ h ↦ Ellentuck.val_injective (compl_injective h)⟩, ?_⟩
· apply (Ellentuck.hasBasis B).eq_of_same_basis
have h := (hasBasis (ofEllentuck B)).comap ofEllentuck
simp only [preimage_basic_ofEllentuck] at h
simpa only [ofEllentuck, val, compl_compl] using h
· rw [range_ofEllentuck, ← isOpen_compl_iff, isOpen_iff_mem_nhds]
intro A hA
have hF : (val A)ᶜ.Finite := not_infinite.mp hA
apply (hasBasis A).mem_iff.mpr
refine ⟨∅, by simp, fun B hB ↦ ?_⟩
exact fun h ↦ hF.not_infinite (h.mono (compl_subset_compl.mpr hB.1))
theorem countablyMetacompactSpace_iff
TopologyByExample.VanDouwenOmega.countablyMetacompactSpace_iff
The Ellentuck space is countably metacompact if and only if van Douwen's Ω is.
theorem countablyMetacompactSpace_iff :
CountablyMetacompactSpace Ellentuck ↔ CountablyMetacompactSpace VanDouwenOmega
Proof
:=
⟨fun _ ↦ isClosedEmbedding_toEllentuck.countablyMetacompactSpace,
fun _ ↦ isClosedEmbedding_ofEllentuck.countablyMetacompactSpace⟩
On this site: Ellentuck topology: Countable metacompactness and van Douwen's space; Problem: Is the Ellentuck space countably metacompact?