Lean library · module TopologyByExample.Theorems.StoneCechClosedCopies

Copies of βℕ in its infinite closed subsets

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

theorem continuous_map_nat

TopologyByExample.StoneCechNaturals.continuous_map_nat

Mapping ultrafilters by any map of discrete carriers is continuous.

theorem continuous_map_nat (q : ℕ → ℕ) : Continuous (fun u : Ultrafilter ℕ ↦ u.map q)
Proof
:= by
  apply ultrafilterBasis_is_basis.continuous_iff.2
  rintro _ ⟨A, rfl⟩
  exact ultrafilter_isOpen_basic (q ⁻¹' A)

theorem exists_disjoint_supports

TopologyByExample.StoneCechNaturals.exists_disjoint_supports

An infinite subspace has a sequence of points supported on disjoint sets of naturals.

theorem exists_disjoint_supports {K : Set (Ultrafilter ℕ)} (hK : K.Infinite) :
    ∃ (p : ℕ → K) (B : ℕ → Set ℕ), (∀ n, B n ∈ (p n).val) ∧
      Pairwise (fun m n ↦ Disjoint (B m) (B n))
Proof
:= by
  classical
  let := hK.to_subtype
  obtain ⟨U, hUi, hUo, hd⟩ := exists_seq_infinite_isOpen_pairwise_disjoint K
  choose p hp using fun n ↦ (hUi n).nonempty
  have hb := ultrafilterBasis_is_basis.induced (Subtype.val : K → Ultrafilter ℕ)
  have hA (n : ℕ) : ∃ A : Set ℕ, A ∈ (p n).val ∧
      (Subtype.val : K → Ultrafilter ℕ) ⁻¹' {u | A ∈ u} ⊆ U n := by
    obtain ⟨V, ⟨W, ⟨A, rfl⟩, rfl⟩, hm, hs⟩ :=
      hb.mem_nhds_iff.1 ((hUo n).mem_nhds (hp n))
    exact ⟨A, hm, hs⟩
  choose A hmem hsub using hA
  have hnot (m n : ℕ) (hmn : m ≠ n) : A m ∉ (p n).val := by
    intro hm
    exact disjoint_left.1 (hd hmn) (hsub m hm) (hp n)
  let B := fun n ↦ A n \ ⋃ i ∈ Iio n, A i
  refine ⟨p, B, ?_, ?_⟩
  · intro n
    apply ((p n).val.sdiff_mem_iff).2
    refine ⟨hmem n, ?_⟩
    intro h
    obtain ⟨i, hi, hm⟩ := ((p n).val.finite_biUnion_mem_iff (s := A) (finite_Iio n)).1 h
    exact hnot i n (ne_of_lt hi) hm
  · intro m n hmn
    refine disjoint_left.2 fun k hkm hkn ↦ ?_
    rcases lt_or_gt_of_ne hmn with hlt | hgt
    · exact hkn.2 (mem_iUnion.2 ⟨m, mem_iUnion.2 ⟨hlt, hkm.1⟩⟩)
    · exact hkm.2 (mem_iUnion.2 ⟨n, mem_iUnion.2 ⟨hgt, hkn.1⟩⟩)

theorem exists_closedEmbedding_of_infinite_isClosed

TopologyByExample.StoneCechNaturals.exists_closedEmbedding_of_infinite_isClosed

Every infinite closed subspace of βℕ contains a closed copy of βℕ.

theorem exists_closedEmbedding_of_infinite_isClosed {K : Set (Ultrafilter ℕ)}
    (hK : K.Infinite) (hclosed : IsClosed K) :
    ∃ g : Ultrafilter ℕ → K, IsClosedEmbedding g
Proof
:= by
  classical
  let : CompactSpace K := isCompact_iff_compactSpace.1 hclosed.isCompact
  obtain ⟨p, B, hB, hd⟩ := exists_disjoint_supports hK
  let q : ℕ → ℕ := fun k ↦ if h : ∃ n, k ∈ B n then h.choose else 0
  have hq (n : ℕ) {k : ℕ} (hk : k ∈ B n) : q k = n := by
    have hex : ∃ m, k ∈ B m := ⟨n, hk⟩
    dsimp only [q]
    rw [dite_eq_left hex]
    by_contra hne
    exact disjoint_left.1 (hd hne) hex.choose_spec hk
  have hpq (n : ℕ) : (p n).val.map q = pure n := by
    apply Ultrafilter.eq_of_le
    change ((p n).val.map q : Filter ℕ) ≤ (pure n : Filter ℕ)
    apply Filter.le_pure_iff.2
    exact Ultrafilter.mem_map.2 (mem_of_superset (hB n) (fun k hk ↦ hq n hk))
  let g : Ultrafilter ℕ → K := Ultrafilter.extend p
  have hg : Continuous g := continuous_ultrafilter_extend p
  have hleft : (fun u ↦ (g u).val.map q) = id := by
    apply denseRange_pure.equalizer
      ((continuous_map_nat q).comp (continuous_subtypeVal.comp hg)) continuous_id
    funext n
    have hext := congrFun (ultrafilter_extend_extends p) n
    change g (pure n) = p n at hext
    change (g (pure n)).val.map q = pure n
    rw [hext]
    exact hpq n
  refine ⟨g, hg.isClosedEmbedding ?_⟩
  intro u v huv
  have heq := congrArg (fun z : K ↦ z.val.map q) huv
  change (fun u ↦ (g u).val.map q) u = (fun u ↦ (g u).val.map q) v at heq
  exact (congrFun hleft u).symm.trans (heq.trans (congrFun hleft v))

On this site: Theorem: Infinite closed subsets of βℕ contain βℕ

theorem not_injective_of_tendsto

TopologyByExample.StoneCechNaturals.not_injective_of_tendsto

No injective sequence converges in βℕ.

theorem not_injective_of_tendsto {f : ℕ → Ultrafilter ℕ} {u : Ultrafilter ℕ}
    (hf : Tendsto f atTop (𝓝 u)) : ¬Function.Injective f
Proof
:= by
  let := extremallyDisconnected
  let := SequentiallyDiscreteSpace.of_extremallyDisconnected (X := Ultrafilter ℕ)
  obtain ⟨N, hN⟩ := eventually_atTop.1
    (SequentiallyDiscreteSpace.eventually_eq_of_tendsto f u hf)
  intro hinj
  have h := hinj ((hN N le_rfl).trans (hN (N + 1) (by omega)).symm)
  omega

On this site: Theorem: No injective sequence converges in βℕ

theorem exists_closed_not_extremallyDisconnected

TopologyByExample.StoneCechNaturals.exists_closed_not_extremallyDisconnected

βℕ has a closed subspace which is not extremally disconnected.

theorem exists_closed_not_extremallyDisconnected :
    ∃ K : Set (Ultrafilter ℕ), IsClosed K ∧ ¬ExtremallyDisconnected K
Proof
:= by
  refine ⟨(range (pure : ℕ → Ultrafilter ℕ))ᶜ,
    StoneCechRemainder.isOpen_range_pure.isClosed_compl, ?_⟩
  exact StoneCechRemainder.not_extremallyDisconnected

On this site: Theorem: A closed subspace of βℕ that is not extremally disconnected