Lean library · module TopologyByExample.Theorems.FortSpaces

Fort spaces

Source file

The Fort space on a set X with a point p is X with the topology in which a set not containing p is open, and a set containing p is open if its complement is finite. It is the one-point compactification of the discrete space X ∖ {p}, and that is how we take it: for a discrete space X, the Fort space is OnePoint X, whose point at infinity plays the role of p.

For every discrete X, OnePoint X is compact, Hausdorff and zero-dimensional, and sequentially compact; every injective sequence converges to the point at infinity. If X is infinite, the point at infinity is the only non-isolated point, so the space is almost discrete. It is first countable exactly when X is countable: if X is countable, the cofinite filter on X is countably generated; if the point at infinity has a countable neighbourhood base, then X is σ-compact, and a σ-compact discrete space is countable.

For countably infinite X, the Fort space is the ordinal space ω + 1 (TopologyByExample.FortSpaces.exists_homeomorph_Iio_omega0_add_one).

Main statements

References

  • L. A. Steen and J. A. Seebach, Counterexamples in Topology, Examples 23 and 24.

Tags

Fort space, one-point compactification, discrete space, almost discrete, 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

theorem cofinite_eq_iInf_principal_compl_singleton

Filter.cofinite_eq_iInf_principal_compl_singleton

The cofinite filter is the infimum of the principal filters of the complements of singletons.

theorem cofinite_eq_iInf_principal_compl_singleton (α : Type*) :
    (cofinite : Filter α) = ⨅ x : α, 𝓟 {x}ᶜ
Proof
:= by
  refine le_antisymm (le_iInf fun x ↦ le_principal_iff.2 (finite_singleton x).compl_mem_cofinite)
    fun s hs ↦ ?_
  have hfin : Set.Finite sᶜ := hs
  have : ⋂ x ∈ sᶜ, ({x}ᶜ : Set α) ⊆ s := fun y hy ↦ by
    by_contra h
    exact mem_iInter₂.1 hy y h rfl
  exact mem_of_superset (((Filter.biInter_mem hfin).2 fun x _ ↦
    mem_iInf_of_mem x (mem_principal_self _))) this

instance isCountablyGenerated_cofinite

Filter.isCountablyGenerated_cofinite

On a countable type, the cofinite filter is countably generated.

instance isCountablyGenerated_cofinite {α : Type*} [Countable α] :
    (cofinite : Filter α).IsCountablyGenerated
Proof
:= by
  rw [cofinite_eq_iInf_principal_compl_singleton]
  infer_instance
variable {X : Type*} [TopologicalSpace X] [DiscreteTopology X]

instance t2Space

TopologyByExample.FortSpaces.t2Space

The Fort space OnePoint X of a discrete space X is Hausdorff.

instance t2Space : T2Space (OnePoint X)
Proof
:=
  t2Space_onePoint

On this site: Fort spaces: the space is Hausdorff

instance zeroDimensionalSpace

TopologyByExample.FortSpaces.zeroDimensionalSpace

The Fort space OnePoint X of a discrete space X is zero-dimensional.

instance zeroDimensionalSpace : ZeroDimensionalSpace (OnePoint X)
Proof
:=
  zeroDimensionalSpace_onePoint

On this site: Fort spaces: the space is zero-dimensional

theorem countable

TopologyByExample.FortSpaces.countable

For countable X, the Fort space OnePoint X is countable.

theorem countable {X : Type*} [Countable X] : Countable (OnePoint X)
Proof
:=
  inferInstanceAs (Countable (Option X))

On this site: Fort spaces: the space is countable: the condition that \(X\) is countable

theorem not_finite

TopologyByExample.FortSpaces.not_finite

For infinite X, the Fort space OnePoint X is infinite.

theorem not_finite {X : Type*} [Infinite X] : ¬Finite (OnePoint X)
Proof
:=
  not_finite_iff_infinite.2 (Infinite.of_injective _ OnePoint.coe_injective)

On this site: Fort spaces: the space is not finite: the condition that \(X\) is infinite

theorem isOpen_singleton_coe

TopologyByExample.FortSpaces.isOpen_singleton_coe

In the Fort space, every point of X is isolated.

theorem isOpen_singleton_coe (x : X) : IsOpen ({(x : OnePoint X)} : Set (OnePoint X))
Proof
:= by
  rw [OnePoint.isOpen_iff_of_notMem (by simp)]
  exact isOpen_discrete _

theorem nhds_infty_eq_cofinite

TopologyByExample.FortSpaces.nhds_infty_eq_cofinite

In the neighbourhoods of the point at infinity of the Fort space, the cofinite filter of X.

theorem nhds_infty_eq_cofinite :
    𝓝 (∞ : OnePoint X) = map (↑) (cofinite : Filter X) ⊔ pure ∞
Proof
:= by
  rw [OnePoint.nhds_infty_eq, coclosedCompact_eq_cocompact, cocompact_eq_cofinite]

theorem not_isOpen_singleton_infty

TopologyByExample.FortSpaces.not_isOpen_singleton_infty

For infinite X, the point at infinity of the Fort space is not isolated: {∞} would be a neighbourhood of it, so X would be finite.

theorem not_isOpen_singleton_infty [Infinite X] : ¬IsOpen ({∞} : Set (OnePoint X))
Proof
:= by
  intro h
  have h' : ({∞} : Set (OnePoint X)) ∈ 𝓝 ∞ := h.mem_nhds rfl
  rw [nhds_infty_eq_cofinite, mem_sup, mem_map] at h'
  have : ((↑) ⁻¹' ({∞} : Set (OnePoint X)) : Set X) = ∅ := by ext; simp
  rw [this] at h'
  exact (Filter.cofinite_neBot (α := X)).ne (empty_mem_iff_bot.1 h'.1)

theorem almostDiscreteSpace

TopologyByExample.FortSpaces.almostDiscreteSpace

For infinite X, the Fort space OnePoint X is almost discrete: the point at infinity is its only non-isolated point.

theorem almostDiscreteSpace [Infinite X] : AlmostDiscreteSpace (OnePoint X)
Proof
:=
  ⟨⟨∞, not_isOpen_singleton_infty, fun x hx ↦ by
    cases x with
    | infty => exact absurd rfl hx
    | coe x => exact isOpen_singleton_coe x⟩⟩

On this site: Fort spaces: the space is almost discrete when \(X\) is infinite

theorem not_countableChainCondition

TopologyByExample.FortSpaces.not_countableChainCondition

For uncountable X, the Fort space OnePoint X does not satisfy the countable chain condition: its isolated points are uncountably many pairwise disjoint nonempty open sets.

theorem not_countableChainCondition [Uncountable X] :
    ¬∀ S : Set (Set (OnePoint X)), (∀ s ∈ S, IsOpen s ∧ s.Nonempty) → S.PairwiseDisjoint id →
      S.Countable
Proof
:= fun h ↦ by
  have := (almostDiscreteSpace (X := X)).countable h
  exact not_countable (OnePoint.coe_injective.countable : Countable X)

theorem firstCountableTopology

TopologyByExample.FortSpaces.firstCountableTopology

For countable X, the Fort space OnePoint X is first countable: the neighbourhoods of the point at infinity are generated by the cofinite filter of X, which is countably generated.

theorem firstCountableTopology [Countable X] : FirstCountableTopology (OnePoint X)
Proof
:=
  ⟨fun x ↦ by
    cases x with
    | infty => rw [nhds_infty_eq_cofinite]; infer_instance
    | coe x => rw [OnePoint.nhds_coe_eq, nhds_discrete]; infer_instance⟩

On this site: Fort spaces: the space is first countable when \(X\) is countable

theorem countable_of_sigmaCompactSpace

TopologyByExample.FortSpaces.countable_of_sigmaCompactSpace

A σ-compact discrete space is countable: its compact subsets are finite.

theorem countable_of_sigmaCompactSpace [SigmaCompactSpace X] : Countable X
Proof
:= by
  rw [← countable_univ_iff, ← iUnion_compactCovering]
  exact countable_iUnion fun n ↦ (isCompact_compactCovering X n).finite_of_discrete.countable

theorem not_firstCountableTopology

TopologyByExample.FortSpaces.not_firstCountableTopology

For uncountable X, the Fort space OnePoint X is not first countable: a countable neighbourhood base at the point at infinity would make X σ-compact, hence countable.

theorem not_firstCountableTopology [Uncountable X] : ¬FirstCountableTopology (OnePoint X)
Proof
:=
  fun _ ↦ by
    have := sigmaCompactSpace_of_isCountablyGenerated_nhds_infty (X := X)
    exact not_countable (countable_of_sigmaCompactSpace (X := X))

On this site: Fort spaces: the space is not first countable when \(X\) is uncountable

theorem seqCompactSpace

TopologyByExample.FortSpaces.seqCompactSpace

The Fort space OnePoint X of a discrete space is sequentially compact, as is the one-point compactification of every first countable space.

theorem seqCompactSpace : SeqCompactSpace (OnePoint X)
Proof
:=
  seqCompactSpace_onePoint_of_firstCountableTopology

On this site: Fort spaces: the space is sequentially compact

theorem nhds_infty_le_cofinite

TopologyByExample.FortSpaces.nhds_infty_le_cofinite

The cofinite filter of the Fort space is finer than the neighbourhood filter of the point at infinity: every neighbourhood of the point at infinity has finite complement.

theorem nhds_infty_le_cofinite : (cofinite : Filter (OnePoint X)) ≤ 𝓝 ∞
Proof
:= by
  intro s hs
  rw [nhds_infty_eq_cofinite, mem_sup, mem_map, mem_pure] at hs
  obtain ⟨hs, hinf⟩ := hs
  rw [mem_cofinite]
  refine ((hs : ((↑) ⁻¹' s : Set X)ᶜ.Finite).image ((↑) : X → OnePoint X)).subset ?_
  intro y hy
  cases y with
  | infty => exact absurd hinf hy
  | coe y => exact ⟨y, hy, rfl⟩

theorem tendsto_infty_of_injective

TopologyByExample.FortSpaces.tendsto_infty_of_injective

In the Fort space, every injective sequence converges to the point at infinity.

theorem tendsto_infty_of_injective {u : ℕ → OnePoint X} (hu : u.Injective) :
    Tendsto u atTop (𝓝 ∞)
Proof
:= by
  rw [← Nat.cofinite_eq_atTop]
  exact (hu.tendsto_cofinite).mono_right nhds_infty_le_cofinite

On this site: Fort spaces: Injective sequences converge to \(\infty\)

The countable Fort space is ω + 1

theorem omega0_lt_add_one

TopologyByExample.FortSpaces.omega0_lt_add_one

ω < ω + 1.

theorem omega0_lt_add_one : (ω : Ordinal.{0}) < ω + 1
Proof
:=
  Order.lt_add_one_iff.2 le_rfl

definition withTopNatToIio

TopologyByExample.FortSpaces.withTopNatToIio

The map from ℕ with a top element added to the ordinals < ω + 1: each natural number to itself, and the top element to ω.

noncomputable def withTopNatToIio (x : WithTop ℕ) : Set.Iio (ω + 1 : Ordinal.{0})
:=
  x.recTopCoe ⟨ω, mem_Iio.2 omega0_lt_add_one⟩ fun n ↦
    ⟨n, mem_Iio.2 ((Ordinal.natCast_lt_omega0 n).trans omega0_lt_add_one)⟩

theorem withTopNatToIio_strictMono

TopologyByExample.FortSpaces.withTopNatToIio_strictMono

The map withTopNatToIio is strictly monotone.

theorem withTopNatToIio_strictMono : StrictMono withTopNatToIio
Proof
:= by
  intro a b hab
  induction b using WithTop.recTopCoe with
  | top =>
    induction a using WithTop.recTopCoe with
    | top => exact absurd hab (lt_irrefl _)
    | coe a =>
      change ((a : Ordinal.{0})) < ω
      exact Ordinal.natCast_lt_omega0 a
  | coe b =>
    induction a using WithTop.recTopCoe with
    | top => exact absurd hab (not_lt.2 le_top)
    | coe a =>
      change ((a : Ordinal.{0})) < b
      exact Nat.cast_lt.2 (WithTop.coe_lt_coe.1 hab)

theorem withTopNatToIio_surjective

TopologyByExample.FortSpaces.withTopNatToIio_surjective

The map withTopNatToIio is surjective: every ordinal ≤ ω is a natural number or ω.

theorem withTopNatToIio_surjective : Function.Surjective withTopNatToIio
Proof
:= by
  rintro ⟨o, ho⟩
  rcases (Order.lt_add_one_iff.1 (mem_Iio.1 ho)).lt_or_eq with ho' | rfl
  · obtain ⟨n, rfl⟩ := Ordinal.lt_omega0.1 ho'
    exact ⟨(n : WithTop ℕ), rfl⟩
  · exact ⟨⊤, rfl⟩

definition withTopNatOrderIsoIio

TopologyByExample.FortSpaces.withTopNatOrderIsoIio

ℕ with a greatest element added is order isomorphic to the ordinals < ω + 1.

noncomputable def withTopNatOrderIsoIio : WithTop ℕ ≃o Set.Iio (ω + 1 : Ordinal.{0})
:=
  StrictMono.orderIsoOfSurjective withTopNatToIio withTopNatToIio_strictMono
    withTopNatToIio_surjective

theorem exists_homeomorph_Iio_omega0_add_one

TopologyByExample.FortSpaces.exists_homeomorph_Iio_omega0_add_one

The countably infinite Fort space is ω + 1. For a countably infinite discrete space X, the Fort space OnePoint X is homeomorphic to the space of ordinals < ω + 1, with the order topology, by a map sending the point at infinity to ω.

theorem exists_homeomorph_Iio_omega0_add_one [Countable X] [Infinite X] :
    ∃ e : OnePoint X ≃ₜ Set.Iio (ω + 1 : Ordinal.{0}), (e ∞ : Ordinal.{0}) = ω
Proof
:= by
  obtain ⟨f⟩ : Nonempty (X ≃ ℕ) := nonempty_equiv_of_countable
  let g : X ≃ₜ ℕ := f.toHomeomorphOfContinuousOpen continuous_of_discreteTopology
    fun _ _ ↦ isOpen_discrete _
  refine ⟨g.onePointCongr.trans ((onePointHomeomorphWithTop ℕ).trans
    withTopNatOrderIsoIio.toHomeomorph), ?_⟩
  have h1 : g.onePointCongr ∞ = ∞ := rfl
  simp only [Homeomorph.trans_apply, h1, onePointHomeomorphWithTop_infty,
    OrderIso.coe_toHomeomorph, withTopNatOrderIsoIio, StrictMono.coe_orderIsoOfSurjective]
  rfl

On this site: Fort spaces: The countably infinite Fort space is the ordinal space \(\omega + 1\)

The countable Fort space is a convergent sequence with its limit

definition harmonicSet

TopologyByExample.FortSpaces.harmonicSet

The set {0} ∪ {1 / (n + 1) : n ∈ ℕ} of real numbers.

noncomputable def harmonicSet : Set ℝ
:= insert 0 (range fun n : ℕ ↦ 1 / ((n : ℝ) + 1))

theorem isCompact_harmonicSet

TopologyByExample.FortSpaces.isCompact_harmonicSet

The set {0} ∪ {1 / (n + 1)} is compact: it is a convergent sequence with its limit.

theorem isCompact_harmonicSet : IsCompact harmonicSet
Proof
:= by
  have h := tendsto_one_div_add_atTop_nhds_zero_nat (𝕜 := ℝ)
  rw [← Nat.cofinite_eq_atTop] at h
  exact h.isCompact_insert_range_of_cofinite

definition harmonicMap

TopologyByExample.FortSpaces.harmonicMap

The map from the Fort space on ℕ onto {0} ∪ {1 / (n + 1)}: n ↦ 1 / (n + 1), ∞ ↦ 0.

noncomputable def harmonicMap (p : OnePoint ℕ) : harmonicSet
:=
  p.elim ⟨0, mem_insert _ _⟩ fun n ↦ ⟨1 / ((n : ℝ) + 1), mem_insert_of_mem _ ⟨n, rfl⟩⟩

theorem continuous_harmonicMap

TopologyByExample.FortSpaces.continuous_harmonicMap

The map harmonicMap is continuous, since 1 / (n + 1) → 0.

theorem continuous_harmonicMap : Continuous harmonicMap
Proof
:= by
  rw [OnePoint.continuous_iff_from_nat, tendsto_subtype_rng]
  exact tendsto_one_div_add_atTop_nhds_zero_nat

theorem harmonicMap_bijective

TopologyByExample.FortSpaces.harmonicMap_bijective

The map harmonicMap is a bijection.

theorem harmonicMap_bijective : Function.Bijective harmonicMap
Proof
:= by
  have hpos (n : ℕ) : (0 : ℝ) < 1 / ((n : ℝ) + 1) := by positivity
  refine ⟨fun p q hpq ↦ ?_, ?_⟩
  · have hpq' := congrArg Subtype.val hpq
    cases p with
    | infty =>
      cases q with
      | infty => rfl
      | coe m => exact absurd hpq'.symm (hpos m).ne'
    | coe n =>
      cases q with
      | infty => exact absurd hpq' (hpos n).ne'
      | coe m =>
        simp only [harmonicMap, OnePoint.elim_some, one_div, inv_inj, add_left_inj,
          Nat.cast_inj] at hpq'
        rw [hpq']
  · rintro ⟨x, rfl | ⟨n, rfl⟩⟩
    · exact ⟨∞, rfl⟩
    · exact ⟨n, rfl⟩

theorem exists_homeomorph_harmonicSet

TopologyByExample.FortSpaces.exists_homeomorph_harmonicSet

The countably infinite Fort space is a convergent sequence with its limit. For a countably infinite discrete space X, the Fort space OnePoint X is homeomorphic to the subspace {0} ∪ {1 / (n + 1) : n ∈ ℕ} of the real line, by a map sending the point at infinity to 0.

theorem exists_homeomorph_harmonicSet [Countable X] [Infinite X] :
    ∃ e : OnePoint X ≃ₜ harmonicSet, (e ∞ : ℝ) = 0
Proof
:= by
  obtain ⟨f⟩ : Nonempty (X ≃ ℕ) := nonempty_equiv_of_countable
  let g : X ≃ₜ ℕ := f.toHomeomorphOfContinuousOpen continuous_of_discreteTopology
    fun _ _ ↦ isOpen_discrete _
  have : CompactSpace harmonicSet := isCompact_iff_compactSpace.1 isCompact_harmonicSet
  exact ⟨g.onePointCongr.trans
    (continuous_harmonicMap.homeoOfEquivCompactToT2 (f := Equiv.ofBijective _
      harmonicMap_bijective)), rfl⟩

On this site: Fort spaces: The countably infinite Fort space is a convergent sequence with its limit

On this site: Space: Fort space on an uncountable set; Family: Fort spaces