Lean library · module TopologyByExample.Spaces.EllentuckBaire
Fusion in the Ellentuck topology
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
structure FusionState
TopologyByExample.Ellentuck.FusionState
A nonempty basic neighborhood, with its stem and reservoir.
structure FusionState where
/-- The finite set that every point of the neighborhood must contain. -/
stem : Finset ℕ
/-- The infinite upper bound for points in the neighborhood. -/
reservoir : Ellentuck
/-- The stem is contained in the reservoir. -/
subset : (stem : Set ℕ) ⊆ val reservoir
theorem exists_fusion_step
TopologyByExample.Ellentuck.exists_fusion_step
A dense open set admits a refinement with an enlarged stem.
theorem exists_fusion_step (q : FusionState) (n : ℕ) {U : Set Ellentuck}
(ho : IsOpen U) (hd : Dense U) :
∃ r : FusionState, q.stem ⊆ r.stem ∧ val r.reservoir ⊆ val q.reservoir ∧
basic r.stem (val r.reservoir) ⊆ U ∧ ∃ k ∈ r.stem, n < k
Proof
:= by
classical
obtain ⟨C, hCU, hC⟩ := hd.exists_mem_open (isOpen_basic q.stem (val q.reservoir))
⟨q.reservoir, q.subset, subset_rfl⟩
obtain ⟨t, ht, htU⟩ := ho C hCU
obtain ⟨k, hk, hnk⟩ := (infinite_val C).exists_gt n
refine ⟨⟨insert k (q.stem ∪ t), C, ?_⟩, ?_, hC.2, ?_, k, by simp, hnk⟩
· intro j hj
simp only [Finset.mem_coe, Finset.mem_insert, Finset.mem_union] at hj
rcases hj with rfl | hj | hj
· exact hk
· exact hC.1 hj
· exact ht hj
· intro j hj
simp [hj]
· intro B hB
exact htU ⟨fun j hj ↦ hB.1 (by simp [hj]), hB.2⟩
theorem fusion_meets
TopologyByExample.Ellentuck.fusion_meets
Every countable intersection of dense open sets meets every basic neighborhood.
theorem fusion_meets (q₀ : FusionState) (U : ℕ → Set Ellentuck)
(ho : ∀ n, IsOpen (U n)) (hd : ∀ n, Dense (U n)) :
∃ B ∈ basic q₀.stem (val q₀.reservoir), ∀ n, B ∈ U n
Proof
:= by
classical
choose step hstep using fun n q ↦ exists_fusion_step q n (ho n) (hd n)
let q : ℕ → FusionState := fun n ↦ Nat.rec q₀ (fun n r ↦ step n r) n
have hq (n : ℕ) : q (n + 1) = step n (q n) := rfl
have hs (n : ℕ) : (q n).stem ⊆ (q (n + 1)).stem := by
rw [hq]; exact (hstep n (q n)).1
have hr (n : ℕ) : val (q (n + 1)).reservoir ⊆ val (q n).reservoir := by
rw [hq]; exact (hstep n (q n)).2.1
have hsm : Monotone (fun n ↦ (q n).stem) := monotone_nat_of_le_succ hs
have hrm : Antitone (fun n ↦ val (q n).reservoir) := antitone_nat_of_succ_le hr
let A : Set ℕ := ⋃ n, ((q n).stem : Set ℕ)
have hAi : A.Infinite := by
apply Set.infinite_of_forall_exists_gt
intro n
obtain ⟨k, hk, hnk⟩ := (hstep n (q n)).2.2.2
exact ⟨k, mem_iUnion.mpr ⟨n + 1, by simpa only [hq, Finset.mem_coe] using hk⟩, hnk⟩
let B : Ellentuck := ⟨A, hAi⟩
have hBs (n : ℕ) : ((q n).stem : Set ℕ) ⊆ val B := fun k hk ↦
mem_iUnion.mpr ⟨n, hk⟩
have hBr (n : ℕ) : val B ⊆ val (q n).reservoir := by
intro k hk
obtain ⟨m, hm⟩ := mem_iUnion.mp hk
rcases le_total m n with hmn | hnm
· exact (q n).subset (hsm hmn hm)
· exact hrm hnm ((q m).subset hm)
refine ⟨B, ⟨hBs 0, hBr 0⟩, fun n ↦ ?_⟩
apply (hstep n (q n)).2.2.1
rw [← hq]
exact ⟨hBs (n + 1), hBr (n + 1)⟩
instance instBaireSpace
TopologyByExample.Ellentuck.instBaireSpace
The Ellentuck topology is a Baire space.
instance instBaireSpace : BaireSpace Ellentuck
Proof
where
baire_property U ho hd := by
apply dense_iff_inter_open.mpr
intro V hVo ⟨C, hCV⟩
obtain ⟨s, hs, hsV⟩ := hVo C hCV
obtain ⟨B, hB, hBU⟩ := fusion_meets ⟨s, C, hs⟩ U ho hd
exact ⟨B, hsV hB, mem_iInter.mpr hBU⟩
On this site: The Ellentuck space is a Baire space