Lean library · module TopologyByExample.Spaces.LambdaNaturalHull

The natural-number hull in the Stone–Čech compactification of the real line

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 exists_interval_extension

TopologyByExample.GillmanJerisonLambda.exists_interval_extension

Every interval-valued function on the naturals extends continuously to the real line.

theorem exists_interval_extension (f : ℕ → I) : ∃ g : C(ℝ, I), ∀ n : ℕ, g n = f n
Proof
:= by
  let F : C(ℕ, ℝ) := ⟨fun n ↦ (f n : ℝ), continuous_of_discreteTopology⟩
  obtain ⟨g, hg, he⟩ := F.exists_extension_forall_mem_of_isClosedEmbedding
    (fun n ↦ (f n).property) (show (Icc (0 : ℝ) 1).Nonempty from ⟨0, by simp⟩)
    Nat.isClosedEmbedding_coe_real
  refine ⟨⟨fun x ↦ ⟨g x, hg x⟩, g.continuous.subtype_mk _⟩, ?_⟩
  intro n
  apply Subtype.ext
  exact congrFun he n

definition naturalHullMap

TopologyByExample.GillmanJerisonLambda.naturalHullMap

Extend the natural-number inclusion to its ultrafilter compactification.

noncomputable def naturalHullMap : Ultrafilter ℕ → StoneCech ℝ
:= Ultrafilter.extend lambdaNat

theorem continuous_naturalHullMap

TopologyByExample.GillmanJerisonLambda.continuous_naturalHullMap

The hull map is continuous.

theorem continuous_naturalHullMap : Continuous naturalHullMap
Proof
:=
  continuous_ultrafilter_extend lambdaNat

theorem naturalHullMap_pure

TopologyByExample.GillmanJerisonLambda.naturalHullMap_pure

The hull map extends the prescribed natural-number inclusion.

theorem naturalHullMap_pure (n : ℕ) : naturalHullMap (pure n) = lambdaNat n
Proof
:=
  ultrafilter_extend_pure lambdaNat n

theorem range_naturalHullMap

TopologyByExample.GillmanJerisonLambda.range_naturalHullMap

The hull map has range exactly the closed natural-number hull.

theorem range_naturalHullMap : range naturalHullMap = closure (range lambdaNat)
Proof
:= by
  apply le_antisymm
  · have h := image_closure_subset_closure_image continuous_naturalHullMap
      (s := range (pure : ℕ → Ultrafilter ℕ))
    rw [denseRange_pure.closure_eq, image_univ, ← range_comp] at h
    simpa only [naturalHullMap, ultrafilter_extend_extends] using h
  · apply closure_minimal
    · rintro _ ⟨n, rfl⟩
      exact ⟨pure n, naturalHullMap_pure n⟩
    · exact isCompact_range continuous_naturalHullMap |>.isClosed

theorem exists_hull_extension

TopologyByExample.GillmanJerisonLambda.exists_hull_extension

Continuous interval-valued functions on βℕ extend along the hull map to βℝ.

theorem exists_hull_extension {f : Ultrafilter ℕ → I} (hf : Continuous f) :
    ∃ g : StoneCech ℝ → I, Continuous g ∧ g ∘ naturalHullMap = f
Proof
:= by
  obtain ⟨g, hg⟩ := exists_interval_extension (fun n ↦ f (pure n))
  refine ⟨stoneCechExtend g.continuous, continuous_stoneCechExtend g.continuous, ?_⟩
  apply denseRange_pure.equalizer
    ((continuous_stoneCechExtend g.continuous).comp continuous_naturalHullMap) hf
  funext n
  change stoneCechExtend g.continuous (naturalHullMap (pure n)) = f (pure n)
  rw [naturalHullMap_pure]
  change stoneCechExtend g.continuous (stoneCechUnit (n : ℝ)) = f (pure n)
  rw [stoneCechExtend_stoneCechUnit]
  exact hg n

theorem injective_naturalHullMap

TopologyByExample.GillmanJerisonLambda.injective_naturalHullMap

The hull map does not identify distinct ultrafilters.

theorem injective_naturalHullMap : Function.Injective naturalHullMap
Proof
:= by
  intro u v huv
  by_contra hne
  obtain ⟨f, hf, hsep⟩ := separatesPoints_continuous_of_t35Space_Icc hne
  obtain ⟨g, _, hg⟩ := exists_hull_extension hf
  apply hsep
  rw [← congrFun hg u, ← congrFun hg v]
  exact congrArg g huv

theorem isClosedEmbedding_naturalHullMap

TopologyByExample.GillmanJerisonLambda.isClosedEmbedding_naturalHullMap

βℕ embeds as a closed subspace of βℝ by the natural-number inclusion.

theorem isClosedEmbedding_naturalHullMap : IsClosedEmbedding naturalHullMap
Proof
:=
  continuous_naturalHullMap.isClosedEmbedding injective_naturalHullMap

definition naturalHullHomeomorph

TopologyByExample.GillmanJerisonLambda.naturalHullHomeomorph

The closed natural-number hull is homeomorphic to the ultrafilter model of βℕ.

noncomputable def naturalHullHomeomorph :
    Ultrafilter ℕ ≃ₜ closure (range lambdaNat)
:=
  isClosedEmbedding_naturalHullMap.isEmbedding.toHomeomorph.trans
    (Homeomorph.setCongr range_naturalHullMap)

On this site: Gillman–Jerison’s Λ: The natural-number hull

theorem image_natural_remainder

TopologyByExample.GillmanJerisonLambda.image_natural_remainder

The deleted part of the hull is exactly the image of the nonprincipal ultrafilters.

theorem image_natural_remainder :
    naturalHullMap '' (range (pure : ℕ → Ultrafilter ℕ))ᶜ =
      closure (range lambdaNat) \ range lambdaNat
Proof
:= by
  ext p
  constructor
  · rintro ⟨u, hu, rfl⟩
    refine ⟨range_naturalHullMap ▸ mem_range_self u, ?_⟩
    rintro ⟨n, hn⟩
    apply hu
    refine ⟨n, injective_naturalHullMap ?_⟩
    exact (naturalHullMap_pure n).trans hn
  · rintro ⟨hp, hn⟩
    rw [← range_naturalHullMap] at hp
    obtain ⟨u, rfl⟩ := hp
    refine ⟨u, ?_, rfl⟩
    rintro ⟨n, rfl⟩
    exact hn ⟨n, (naturalHullMap_pure n).symm⟩

theorem exists_natural_interval_extension

TopologyByExample.GillmanJerisonLambda.exists_natural_interval_extension

Every interval-valued function on the natural-number subspace extends to Λ.

theorem exists_natural_interval_extension (f : ℕ → I) :
    ∃ g : GillmanJerisonLambda → I, Continuous g ∧ ∀ n, g (natural n) = f n
Proof
:= by
  obtain ⟨g, hg⟩ := exists_interval_extension f
  refine ⟨stoneCechExtend g.continuous ∘ inclusion,
    (continuous_stoneCechExtend g.continuous).comp isEmbedding_inclusion.continuous, ?_⟩
  intro n
  change stoneCechExtend g.continuous (stoneCechUnit (n : ℝ)) = f n
  rw [stoneCechExtend_stoneCechUnit]
  exact hg n

On this site: Gillman–Jerison’s Λ: Interval-valued extension from the naturals

theorem naturalHullHomeomorph_val

TopologyByExample.GillmanJerisonLambda.naturalHullHomeomorph_val

The hull homeomorphism agrees with the ambient hull map.

theorem naturalHullHomeomorph_val (u : Ultrafilter ℕ) :
    (naturalHullHomeomorph u : StoneCech ℝ) = naturalHullMap u
Proof
:= rfl

theorem exists_natural_bounded_extension

TopologyByExample.GillmanJerisonLambda.exists_natural_bounded_extension

Every bounded continuous real function on the naturals extends continuously to Λ.

theorem exists_natural_bounded_extension (f : ℕ →ᵇ ℝ) :
    ∃ g : GillmanJerisonLambda → ℝ, Continuous g ∧
      (∀ x, |g x| ≤ ‖f‖) ∧ ∀ n, g (natural n) = f n
Proof
:= by
  obtain ⟨g, hnorm, hg⟩ := f.exists_extension_norm_eq_of_isClosedEmbedding
    Nat.isClosedEmbedding_coe_real
  let G : ℝ → Icc (-‖g‖) ‖g‖ := fun x ↦ ⟨g x, abs_le.1 (g.norm_coe_le_norm x)⟩
  have hG : Continuous G := g.continuous.subtype_mk _
  refine ⟨fun x ↦ ((stoneCechExtend hG (inclusion x) : Icc (-‖g‖) ‖g‖) : ℝ),
    continuous_subtypeVal.comp ((continuous_stoneCechExtend hG).comp
      isEmbedding_inclusion.continuous), ?_, ?_⟩
  · intro x
    have hb := abs_le.2 (stoneCechExtend hG (inclusion x)).property
    simpa only [hnorm] using hb
  intro n
  change ((stoneCechExtend hG (stoneCechUnit (n : ℝ)) : Icc (-‖g‖) ‖g‖) : ℝ) = f n
  rw [stoneCechExtend_stoneCechUnit]
  exact congrFun hg n

On this site: Gillman–Jerison’s Λ: Bounded extension from the naturals