Lean library · module TopologyByExample.Theorems.StoneCechRemainder
Countable intersections in the Stone–Čech remainder
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.
theorem infinite_of_mem
TopologyByExample.StoneCechRemainder.infinite_of_mem
A member of a free ultrafilter is infinite.
theorem infinite_of_mem {p : Ultrafilter ℕ} (hp : (p : Filter ℕ) ≤ cofinite)
{A : Set ℕ} (hA : A ∈ p) : A.Infinite
Proof
:= by
intro hf
exact (Ultrafilter.compl_mem_iff_notMem.mp (hp hf.compl_mem_cofinite)) hA
theorem mem_of_almostSubset
TopologyByExample.StoneCechRemainder.mem_of_almostSubset
Almost inclusion preserves membership in a free ultrafilter.
theorem mem_of_almostSubset {p : Ultrafilter ℕ} (hp : (p : Filter ℕ) ≤ cofinite)
{A B : Set ℕ} (hA : A ∈ p) (hAB : AlmostSubset A B) : B ∈ p
Proof
:= by
have hc : (A \ B)ᶜ ∈ p := hp hAB.compl_mem_cofinite
exact mem_of_superset (inter_mem hA hc) fun _ hx ↦ by
by_contra hn
exact hx.2 ⟨hx.1, hn⟩
theorem exists_infinite_common_support
TopologyByExample.StoneCechRemainder.exists_infinite_common_support
Countably many basic neighbourhoods of a free ultrafilter contain a common nonempty basic open subset of the remainder. The subset need not contain that point.
theorem exists_infinite_common_support {p : Ultrafilter ℕ}
(hp : (p : Filter ℕ) ≤ cofinite) {A : ℕ → Set ℕ} (hA : ∀ n, A n ∈ p) :
∃ B : Set ℕ, B.Infinite ∧ ∀ q : Ultrafilter ℕ,
(q : Filter ℕ) ≤ cofinite → B ∈ q → ∀ n, A n ∈ q
Proof
:= by
have hi : ∀ n, (⋂ k ≤ n, A k).Infinite := by
intro n
apply infinite_of_mem hp
exact (biInter_mem (finite_Iic n)).mpr (fun k _ ↦ hA k)
obtain ⟨B, hB, hBA⟩ := exists_infinite_forall_almostSubset_of_nat hi
exact ⟨B, hB, fun q hq hBq n ↦ mem_of_almostSubset hq hBq (hBA n)⟩
theorem exists_almost_separator
TopologyByExample.StoneCechRemainder.exists_almost_separator
Two countable families whose cross-intersections are finite can be separated modulo finite sets by a single subset of the naturals.
theorem exists_almost_separator (A B : ℕ → Set ℕ)
(h : ∀ n m, (A n ∩ B m).Finite) :
∃ C : Set ℕ, (∀ n, AlmostSubset (A n) C) ∧
∀ m, AlmostSubset (B m) Cᶜ
Proof
:= by
classical
let C : Set ℕ := ⋃ n, A n \ ⋃ k ≤ n, B k
refine ⟨C, ?_, ?_⟩
· intro n
have hf : (⋃ k ∈ Iic n, A n ∩ B k).Finite :=
(finite_Iic n).biUnion (fun k _ ↦ h n k)
apply hf.subset
rintro x ⟨hx, hxc⟩
have hm : x ∈ ⋃ k ≤ n, B k := by
by_contra hn
exact hxc (mem_iUnion.mpr ⟨n, hx, hn⟩)
obtain ⟨k, hk, hxb⟩ := mem_iUnion₂.mp hm
exact mem_iUnion₂.mpr ⟨k, hk, hx, hxb⟩
· intro m
have hf : (⋃ n ∈ Iio m, A n ∩ B m).Finite :=
(finite_Iio m).biUnion (fun n _ ↦ h n m)
apply hf.subset
rintro x ⟨hxb, hxc⟩
have hxc' : x ∈ C := Classical.not_not.mp hxc
obtain ⟨n, hxa, hxnot⟩ := mem_iUnion.mp hxc'
have hnm : n < m := by
by_contra hn
exact hxnot (mem_iUnion₂.mpr ⟨m, Nat.le_of_not_gt hn, hxb⟩)
exact mem_iUnion₂.mpr ⟨n, hnm, hxa, hxb⟩
definition Carrier
TopologyByExample.StoneCechRemainder.Carrier
The free-ultrafilter remainder of beta N.
abbrev Carrier
:= {p : Ultrafilter ℕ // (p : Filter ℕ) ≤ cofinite}
definition basic
TopologyByExample.StoneCechRemainder.basic
A basic clopen subset of the remainder.
def basic (A : Set ℕ) : Set Carrier
:= {p | A ∈ p.val}
theorem isClopen_basic
TopologyByExample.StoneCechRemainder.isClopen_basic
The basic sets in the remainder are clopen.
theorem isClopen_basic (A : Set ℕ) : IsClopen (basic A)
Proof
:=
⟨(ultrafilter_isClosed_basic A).preimage continuous_subtypeVal,
(ultrafilter_isOpen_basic A).preimage continuous_subtypeVal⟩
theorem basic_nonempty_iff
TopologyByExample.StoneCechRemainder.basic_nonempty_iff
An infinite support gives a nonempty basic set in the remainder.
theorem basic_nonempty_iff (A : Set ℕ) : (basic A).Nonempty ↔ A.Infinite
Proof
:= by
constructor
· rintro ⟨p, hp⟩
exact infinite_of_mem p.property hp
· intro hA
have := hA.cofinite_inf_principal_neBot
let p := Ultrafilter.of (cofinite ⊓ 𝓟 A)
have hp : (p : Filter ℕ) ≤ cofinite ⊓ 𝓟 A := Ultrafilter.of_le _
exact ⟨⟨p, hp.trans inf_le_left⟩, (hp.trans inf_le_right) (mem_principal_self A)⟩
theorem disjoint_basic_iff
TopologyByExample.StoneCechRemainder.disjoint_basic_iff
Finite cross-intersections characterize disjoint basic sets in the remainder.
theorem disjoint_basic_iff (A B : Set ℕ) :
Disjoint (basic A) (basic B) ↔ (A ∩ B).Finite
Proof
:= by
constructor
· intro hd
by_contra hi
obtain ⟨p, hp⟩ := (basic_nonempty_iff (A ∩ B)).mpr hi
exact disjoint_left.mp hd (mem_of_superset hp inter_subset_left)
(mem_of_superset hp inter_subset_right)
· intro hf
apply disjoint_left.mpr
intro p hA hB
exact infinite_of_mem p.property (inter_mem hA hB) hf
theorem exists_clopen_separator
TopologyByExample.StoneCechRemainder.exists_clopen_separator
Countable disjoint unions of basic sets admit a clopen separator.
theorem exists_clopen_separator (A B : ℕ → Set ℕ)
(hd : Disjoint (⋃ n, basic (A n)) (⋃ n, basic (B n))) :
∃ C : Set Carrier, IsClopen C ∧ (⋃ n, basic (A n)) ⊆ C ∧
(⋃ n, basic (B n)) ⊆ Cᶜ
Proof
:= by
have hi : ∀ n m, (A n ∩ B m).Finite := by
intro n m
apply (disjoint_basic_iff (A n) (B m)).mp
exact hd.mono (subset_iUnion (fun k ↦ basic (A k)) n)
(subset_iUnion (fun k ↦ basic (B k)) m)
obtain ⟨C, hAC, hBC⟩ := exists_almost_separator A B hi
refine ⟨basic C, isClopen_basic C, ?_, ?_⟩
· rintro p hp
obtain ⟨n, hn⟩ := mem_iUnion.mp hp
exact mem_of_almostSubset p.property hn (hAC n)
· rintro p hp
obtain ⟨n, hn⟩ := mem_iUnion.mp hp
exact Ultrafilter.compl_mem_iff_notMem.mp (mem_of_almostSubset p.property hn (hBC n))