Lean library · module TopologyByExample.Theorems.NovakUltrafilterEmbedding

Extending a sequence of ultrafilters

Source file

Disjoint supports make the extension injective, a step toward finding a copy of beta N in each infinite closed subset of beta N.

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
variable {α β : Type u}

definition extension

TopologyByExample.NovakUltrafilterEmbedding.extension

Extend a family of ultrafilters by taking ultrafilter limits.

def extension (p : α → Ultrafilter β) (u : Ultrafilter α) : Ultrafilter β
:= u >>= p

theorem mem_extension

TopologyByExample.NovakUltrafilterEmbedding.mem_extension

Membership in the extension is decided by membership along the family.

theorem mem_extension (p : α → Ultrafilter β) (u : Ultrafilter α) (s : Set β) :
    s ∈ extension p u ↔ {a | s ∈ p a} ∈ u
Proof
:= Iff.rfl

theorem continuous_extension

TopologyByExample.NovakUltrafilterEmbedding.continuous_extension

The extension is continuous.

theorem continuous_extension (p : α → Ultrafilter β) : Continuous (extension p)
Proof
:= by
  apply ultrafilterBasis_is_basis.continuous_iff.mpr
  rintro _ ⟨s, rfl⟩
  exact ultrafilter_isOpen_basic {a | s ∈ p a}

theorem extension_pure

TopologyByExample.NovakUltrafilterEmbedding.extension_pure

The extension agrees with the original family on principal ultrafilters.

theorem extension_pure (p : α → Ultrafilter β) (a : α) : extension p (pure a) = p a
Proof
:=
  pure_bind a p

theorem union_mem_iff

TopologyByExample.NovakUltrafilterEmbedding.union_mem_iff

Disjoint supports let a union encode an arbitrary set of indices.

theorem union_mem_iff (p : α → Ultrafilter β) (A : α → Set β)
    (hA : Pairwise (fun a b ↦ Disjoint (A a) (A b))) (hp : ∀ a, A a ∈ p a) (s : Set α) (a : α) :
    (⋃ b ∈ s, A b) ∈ p a ↔ a ∈ s
Proof
:= by
  classical
  constructor
  · intro hu
    by_contra ha
    have hd : Disjoint (A a) (⋃ b ∈ s, A b) := by
      simp only [disjoint_iUnion_right]
      intro b hb
      exact hA (fun he ↦ ha (he ▸ hb))
    have he := inter_mem (hp a) hu
    rw [hd.eq_bot] at he
    exact (empty_notMem (p a).toFilter) he
  · intro ha
    exact mem_of_superset (hp a) (subset_iUnion₂_of_subset a ha subset_rfl)

theorem extension_injective

TopologyByExample.NovakUltrafilterEmbedding.extension_injective

A family with pairwise disjoint supports extends injectively.

theorem extension_injective (p : α → Ultrafilter β) (A : α → Set β)
    (hA : Pairwise (fun a b ↦ Disjoint (A a) (A b))) (hp : ∀ a, A a ∈ p a) :
    Function.Injective (extension p)
Proof
:= by
  intro u v huv
  ext s
  have hm (w : Ultrafilter α) : (⋃ b ∈ s, A b) ∈ extension p w ↔ s ∈ w := by
    rw [mem_extension]
    have he : {a | (⋃ b ∈ s, A b) ∈ p a} = s := by
      ext a
      exact union_mem_iff p A hA hp s a
    rw [he]
  exact (hm u).symm.trans ((congrArg (fun w ↦ (⋃ b ∈ s, A b) ∈ w) huv).to_iff.trans (hm v))

theorem extension_mem

TopologyByExample.NovakUltrafilterEmbedding.extension_mem

If the original family lies in a closed set, so does its extension.

theorem extension_mem (p : α → Ultrafilter β) {S : Set (Ultrafilter β)}
    (hS : IsClosed S) (hp : ∀ a, p a ∈ S) (u : Ultrafilter α) : extension p u ∈ S
Proof
:= by
  refine denseRange_pure.induction_on (p := fun u ↦ extension p u ∈ S) u
    (hS.preimage (continuous_extension p)) ?_
  intro a
  rw [extension_pure]
  exact hp a

theorem cardinal_closed_of_disjoint_supports

TopologyByExample.NovakUltrafilterEmbedding.cardinal_closed_of_disjoint_supports

Disjointly supported points in a closed subset of beta N give the full cardinality.

theorem cardinal_closed_of_disjoint_supports {S : Set (Ultrafilter ℕ)} (hS : IsClosed S)
    (p : ℕ → Ultrafilter ℕ) (hpS : ∀ n, p n ∈ S) (A : ℕ → Set ℕ)
    (hA : Pairwise (fun a b ↦ Disjoint (A a) (A b))) (hpA : ∀ n, A n ∈ p n) :
    Cardinal.mk S = 2 ^ Cardinal.continuum
Proof
:= by
  have hc : Cardinal.mk (Ultrafilter ℕ) = 2 ^ Cardinal.continuum := by
    rw [Cardinal.mk_ultrafilter_of_infinite, Cardinal.mk_nat, Cardinal.two_power_aleph0]
  apply le_antisymm
  · exact hc ▸ Cardinal.mk_subtype_le (fun x ↦ x ∈ S)
  · rw [← hc]
    let f : Ultrafilter ℕ → S := fun u ↦ ⟨extension p u, extension_mem p hS hpS u⟩
    exact Cardinal.mk_le_of_injective (f := f) fun u v he ↦
      extension_injective p A hA hpA (congrArg Subtype.val he)