Lean library · module TopologyByExample.Spaces.LambdaRemainderDiagonal

Diagonal neighbourhoods of the natural-number hull

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_nat_neighbourhood_avoiding_sequence

TopologyByExample.GillmanJerisonLambda.exists_nat_neighbourhood_avoiding_sequence

A sequence of nonreal points outside the natural hull admits a real neighbourhood of all naturals whose Stone–Čech closure misses every term.

theorem exists_nat_neighbourhood_avoiding_sequence (q : ℕ → StoneCech ℝ)
    (hqreal : ∀ i, q i ∉ range (stoneCechUnit : ℝ → StoneCech ℝ))
    (hqnat : ∀ i, q i ∉ closure (range lambdaNat)) :
    ∃ O : Set ℝ, IsOpen O ∧ range (Nat.cast : ℕ → ℝ) ⊆ O ∧
      ∀ i, q i ∉ closure (stoneCechUnit '' O)
Proof
:= by
  have hex (i : ℕ) : ∃ T : Set (StoneCech ℝ), IsOpen T ∧
      closure (range lambdaNat) ⊆ T ∧ q i ∉ closure T := by
    obtain ⟨T, hTo, hNT, hTc⟩ := normal_exists_closure_subset (t := ({q i} : Set (StoneCech ℝ))ᶜ)
      isClosed_closure isClosed_singleton.isOpen_compl (by
        intro p hp hn
        exact hqnat i (mem_singleton_iff.1 hn ▸ hp))
    exact ⟨T, hTo, hNT, fun h ↦ hTc h (mem_singleton (q i))⟩
  choose T hTo hNT hTq using hex
  let V (n : ℕ) : Set ℝ := Ioo ((n : ℝ) - 1) (n + 1) ∩
    ⋂ i ∈ Iic n, (stoneCechUnit : ℝ → StoneCech ℝ) ⁻¹' T i
  let O := ⋃ n, V n
  have hVo (n : ℕ) : IsOpen (V n) := isOpen_Ioo.inter
    ((finite_Iic n).isOpen_biInter fun i _ ↦ (hTo i).preimage continuous_stoneCechUnit)
  have hNO : range (Nat.cast : ℕ → ℝ) ⊆ O := by
    rintro _ ⟨n, rfl⟩
    refine mem_iUnion.2 ⟨n, ⟨by constructor <;> linarith, ?_⟩⟩
    exact mem_iInter₂.2 fun i _ ↦ hNT i (subset_closure (mem_range_self n))
  refine ⟨O, isOpen_iUnion hVo, hNO, ?_⟩
  intro i
  let K := stoneCechUnit '' Icc (-1 : ℝ) (i + 1)
  have hK : IsClosed K := (isCompact_Icc.image continuous_stoneCechUnit).isClosed
  have hsub : stoneCechUnit '' O ⊆ T i ∪ K := by
    rintro _ ⟨x, hx, rfl⟩
    obtain ⟨n, hn⟩ := mem_iUnion.1 hx
    by_cases hi : i ≤ n
    · exact Or.inl (mem_iInter₂.1 hn.2 i hi)
    · right
      refine ⟨x, ⟨?_, ?_⟩, rfl⟩
      · have := Nat.cast_nonneg (α := ℝ) n
        linarith [hn.1.1]
      · have hh : (n : ℝ) ≤ i := by exact_mod_cast (le_of_lt (lt_of_not_ge hi))
        linarith [hn.1.2]
  have hc : closure (stoneCechUnit '' O) ⊆ closure (T i) ∪ K := by
    apply closure_minimal
    · exact hsub.trans (union_subset_union subset_closure Subset.rfl)
    · exact isClosed_closure.union hK
  intro hq
  rcases hc hq with ht | ⟨x, _, hx⟩
  · exact hTq i ht
  · exact hqreal i ⟨x, hx⟩

theorem disjoint_closure_sequence_naturalHull

TopologyByExample.GillmanJerisonLambda.disjoint_closure_sequence_naturalHull

The closure of a sequence of retained nonreal points avoids the natural hull.

theorem disjoint_closure_sequence_naturalHull (q : ℕ → StoneCech ℝ)
    (hqreal : ∀ i, q i ∉ range (stoneCechUnit : ℝ → StoneCech ℝ))
    (hqnat : ∀ i, q i ∉ closure (range lambdaNat)) :
    Disjoint (closure (range q)) (closure (range lambdaNat))
Proof
:= by
  obtain ⟨O, hO, hNO, hqO⟩ := exists_nat_neighbourhood_avoiding_sequence q hqreal hqnat
  have hall : closure (stoneCechUnit '' O) ∪
      closure ((stoneCechUnit : ℝ → StoneCech ℝ) '' Oᶜ) = univ := by
    rw [← closure_union, ← image_union, union_compl_self, image_univ,
      denseRange_stoneCechUnit.closure_eq]
  have hsub : closure (range q) ⊆ closure (stoneCechUnit '' Oᶜ) := by
    apply closure_minimal _ isClosed_closure
    rintro _ ⟨n, rfl⟩
    have hmem : q n ∈ closure (stoneCechUnit '' O) ∪ closure (stoneCechUnit '' Oᶜ) :=
      hall.symm ▸ mem_univ (q n)
    exact hmem.resolve_left (hqO n)
  have hd : Disjoint Oᶜ (range (Nat.cast : ℕ → ℝ)) :=
    disjoint_left.2 fun _ hx hn ↦ hx (hNO hn)
  have hh := disjoint_stoneCech_hulls hO.isClosed_compl
    Nat.isClosedEmbedding_coe_real.isClosed_range hd
  have he : stoneCechUnit '' range (Nat.cast : ℕ → ℝ) = range lambdaNat := by
    rw [← range_comp]
    rfl
  rw [he] at hh
  exact hh.mono_left hsub

theorem exists_compact_remainder_superset

TopologyByExample.GillmanJerisonLambda.exists_compact_remainder_superset

Every sequence in the retained remainder is contained in a compact subset of it.

theorem exists_compact_remainder_superset (x : ℕ → GillmanJerisonLambda)
    (hx : ∀ n, x n ∉ range real) :
    ∃ K : Set GillmanJerisonLambda, IsCompact K ∧ range x ⊆ K ∧ K ⊆ (range real)ᶜ
Proof
:= by
  let q := inclusion ∘ x
  have hqr (n : ℕ) : q n ∉ range (stoneCechUnit : ℝ → StoneCech ℝ) := by
    have he := preimage_range_real_unit
    exact fun h ↦ hx n (he ▸ h)
  have hqn (n : ℕ) : q n ∉ closure (range lambdaNat) := by
    intro h
    apply (x n).property
    refine ⟨h, ?_⟩
    rintro ⟨k, hk⟩
    exact hqr n ⟨(k : ℝ), hk⟩
  have hd := disjoint_closure_sequence_naturalHull q hqr hqn
  have hret : closure (range q) ⊆ range inclusion := by
    intro p hp
    exact ⟨⟨p, fun h ↦ disjoint_left.1 hd hp h.1⟩, rfl⟩
  have hreal : closure (range q) ⊆ (range (stoneCechUnit : ℝ → StoneCech ℝ))ᶜ :=
    closure_minimal (by rintro _ ⟨n, rfl⟩; exact hqr n) isOpen_range_real_unit.isClosed_compl
  refine ⟨inclusion ⁻¹' closure (range q),
    isEmbedding_inclusion.isInducing.isCompact_preimage' isClosed_closure.isCompact hret, ?_, ?_⟩
  · rintro _ ⟨n, rfl⟩
    exact subset_closure (mem_range_self n)
  · intro p hp hr
    exact hreal hp (by
      change p ∈ inclusion ⁻¹' range (stoneCechUnit : ℝ → StoneCech ℝ)
      rw [preimage_range_real_unit]
      exact hr)

theorem isCountablyCompact_remainder

TopologyByExample.GillmanJerisonLambda.isCountablyCompact_remainder

The retained remainder of Λ is countably compact.

theorem isCountablyCompact_remainder : IsCountablyCompact ((range real)ᶜ)
Proof
:= by
  apply IsCountablyCompact.of_seq_clusterPt
  intro x hx
  obtain ⟨N, hN⟩ := eventually_atTop.1 hx
  let y (n : ℕ) := if N ≤ n then x n else x N
  have hy (n : ℕ) : y n ∉ range real := by
    dsimp [y]
    split_ifs with h
    · exact hN n h
    · exact hN N le_rfl
  obtain ⟨K, hK, hyK, hKr⟩ := exists_compact_remainder_superset y hy
  obtain ⟨p, hp, hpy⟩ := hK.exists_mapClusterPt (f := atTop) (u := y)
    (Filter.tendsto_principal.2 (Filter.Eventually.of_forall fun n ↦ hyK (mem_range_self n)))
  refine ⟨p, hKr hp, hpy.congrFun ?_⟩
  filter_upwards [eventually_ge_atTop N] with n hn
  simp [y, hn]

On this site: Gillman–Jerison’s Λ: Countable compactness of the retained remainder