Lean library · module TopologyByExample.Spaces.RationalSequenceCompactification

The one-point compactification of the rational sequence topology

Source file

In this file we study OnePoint RationalSequence, the one-point compactification of the rational sequence topology TopologyByExample.RationalSequence. It is compact (and, the rational sequence topology being Hausdorff and locally compact, Hausdorff), and we show that it is sequentially compact but not first countable at the point at infinity.

Both facts rest on one property of the rational sequence topology: a compact set lies in finitely many basic neighbourhoods {x} ∪ {seq x k | k}.

  • Sequential compactness. Given a sequence, either some point occurs infinitely often (giving a constant subsequence), or some basic neighbourhood {x} ∪ {seq x k | k} contains infinitely many terms (and those terms, taking each value finitely often, converge to x), or every basic neighbourhood contains only finitely many terms, and then the sequence leaves every compact set, so it converges to ∞.
  • No countable neighbourhood basis at ∞. Countably many compact sets meet only countably many irrationals. For an irrational y outside them all, the complement of the compact set {y} ∪ {seq y k | k} is a neighbourhood of ∞ containing none of the corresponding neighbourhoods of ∞.

Main statements

References

  • L. A. Steen and J. A. Seebach, Counterexamples in Topology, Example 65.

Tags

rational sequence topology, one-point compactification, sequentially compact, first countable

This file was written by Claude (Anthropic's AI model) working under the direction of David R. MacIver, who reviews it and is responsible for it.

Imports

instance instSeqCompactSpaceOnePoint

TopologyByExample.RationalSequence.instSeqCompactSpaceOnePoint

The one-point compactification of the rational sequence topology is sequentially compact.

instance instSeqCompactSpaceOnePoint : SeqCompactSpace (OnePoint RationalSequence)
Proof
:= by
  refine ⟨fun v _ ↦ ?_⟩
  -- A point taken infinitely often gives a constant subsequence.
  by_cases hconst : ∃ p, ∃ᶠ k in atTop, v k = p
  · obtain ⟨p, hp⟩ := hconst
    obtain ⟨φ, hφ, hφp⟩ := extraction_of_frequently_atTop hp
    refine ⟨p, mem_univ _, φ, hφ, ?_⟩
    rw [show v ∘ φ = fun _ ↦ p from funext hφp]
    exact tendsto_const_nhds
  push Not at hconst
  have hfin : ∀ p, {k | v k = p}.Finite := fun p ↦ by
    simpa [← Nat.cofinite_eq_atTop, eventually_cofinite] using hconst p
  -- A basic neighbourhood containing infinitely many terms gives a subsequence converging to its
  -- centre.
  by_cases hnbhd : ∃ x, ∃ᶠ k in atTop, v k ∈ ((↑) : RationalSequence → _) '' basicNhd x 0
  · obtain ⟨x, hx⟩ := hnbhd
    obtain ⟨φ, hφ, hφx⟩ := extraction_of_frequently_atTop hx
    choose u hu hvu using hφx
    have hufin : ∀ y, {k | u k = y}.Finite := fun y ↦
      ((hfin y).preimage hφ.injective.injOn).subset fun k hk ↦ by
        change v (φ k) = y
        rw [← hvu]
        exact congrArg _ hk
    refine ⟨x, mem_univ _, φ, hφ, ?_⟩
    have := (continuous_coe.tendsto x).comp (tendsto_of_forall_mem_basicNhd hu hufin)
    rwa [show ((↑) ∘ u : ℕ → OnePoint RationalSequence) = v ∘ φ from funext hvu] at this
  -- Otherwise the sequence leaves every compact set, so it converges to `∞`.
  push Not at hnbhd
  refine ⟨∞, mem_univ _, id, strictMono_id, ?_⟩
  change Tendsto v atTop (𝓝 ∞)
  refine hasBasis_nhds_infty.tendsto_right_iff.2 fun K hK ↦ ?_
  obtain ⟨A, hA, hKA⟩ := exists_finite_subset_biUnion_basicNhd_of_isCompact hK.2
  filter_upwards [(eventually_all_finite hA).2 fun x _ ↦ hnbhd x] with k hk
  generalize v k = p at hk ⊢
  induction p using OnePoint.rec with
  | infty => exact Or.inr rfl
  | coe y =>
    refine Or.inl ⟨y, fun hy ↦ ?_, rfl⟩
    obtain ⟨x, hxA, hyx⟩ := mem_iUnion₂.1 (hKA hy)
    exact hk x hxA ⟨y, hyx, rfl⟩

On this site: The one-point compactification of the rational sequence topology is sequentially compact

theorem not_firstCountableTopology_onePoint

TopologyByExample.RationalSequence.not_firstCountableTopology_onePoint

The one-point compactification of the rational sequence topology is not first countable: it has no countable neighbourhood basis at ∞.

theorem not_firstCountableTopology_onePoint :
    ¬FirstCountableTopology (OnePoint RationalSequence)
Proof
:= by
  intro h
  have := h
  obtain ⟨K, hK, hbasis⟩ := (hasBasis_nhds_infty (X := RationalSequence)).exists_antitone_subbasis
  have hc : (⋃ i, K i ∩ irrationals).Countable :=
    countable_iUnion fun i ↦ (finite_inter_irrationals_of_isCompact (hK i).2).countable
  obtain ⟨y, hyI, hyK⟩ : ∃ y ∈ irrationals, y ∉ ⋃ i, K i ∩ irrationals := by
    by_contra! H
    exact not_countable_irrationals (hc.mono H)
  have hmem : (↑) '' (basicNhd y 0)ᶜ ∪ {∞} ∈ 𝓝 (∞ : OnePoint RationalSequence) :=
    hasBasis_nhds_infty.mem_of_mem
      ⟨(isCompact_basicNhd y 0).isClosed, isCompact_basicNhd y 0⟩
  obtain ⟨i, -, hi⟩ := hbasis.toHasBasis.mem_iff.1 hmem
  refine hyK (mem_iUnion.2 ⟨i, ?_, hyI⟩)
  by_contra hyKi
  rcases hi (Or.inl ⟨y, hyKi, rfl⟩) with ⟨z, hz, hzy⟩ | h
  · exact hz (coe_injective hzy ▸ mem_basicNhd_self y 0)
  · exact coe_ne_infty y h

On this site: The one-point compactification of the rational sequence topology is not first countable

On this site: Space: One-point compactification of the rational sequence topology