Lean library · module TopologyByExample.Spaces.ArensFort

The Arens–Fort space

Source file

In this file we define TopologyByExample.ArensFort, the Arens–Fort space. Its underlying set is ℕ × ℕ. Write p = (0, 0) (ArensFort.basePoint) and call {m} × ℕ the m-th column. A set s is open if p ∉ s, or if p ∈ s and, for all but finitely many m, all but finitely many points of the m-th column lie in s.

The topology is nhdsAdjoint p F, where F (ArensFort.columnFilter) is the image of the curried filter cofinite.curry cofinite on ℕ × ℕ: every point other than p is isolated, and the neighbourhood filter of p is pure p ⊔ F.

It is a countable Hausdorff space (so separable and Lindelöf), and it is regular and normal, but it is not weakly locally compact (so not compact) and not first countable. In fact it is not even a sequential space: no sequence of points other than p converges to p, so {p}ᶜ is sequentially closed, but it is not closed.

Main definitions

Main results

Separation axioms

References

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

Tags

Arens–Fort space, counterexample, first countable, sequential space, locally compact

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

definition ArensFort

TopologyByExample.ArensFort

The Arens–Fort space: ℕ × ℕ, in which a set is open if it does not contain (0, 0), or if it contains (0, 0) and all but finitely many points of all but finitely many columns {m} × ℕ.

def ArensFort : Type
:= ℕ × ℕ

On this site: Space: Arens–Fort space

definition equivProd

TopologyByExample.ArensFort.equivProd

The identity equivalence between the Arens–Fort space and ℕ × ℕ.

def equivProd : ArensFort ≃ ℕ × ℕ
:= Equiv.refl _

instance

instance : Countable ArensFort
Proof
:= inferInstanceAs (Countable (ℕ × ℕ))

instance

instance : DecidableEq ArensFort
Proof
:= inferInstanceAs (DecidableEq (ℕ × ℕ))

instance

instance : Nonempty ArensFort
Proof
:= inferInstanceAs (Nonempty (ℕ × ℕ))

definition basePoint

TopologyByExample.ArensFort.basePoint

The special point (0, 0) of the Arens–Fort space, the only point that is not isolated.

def basePoint : ArensFort
:= equivProd.symm (0, 0)

definition columnFilter

TopologyByExample.ArensFort.columnFilter

The filter on the Arens–Fort space of sets containing all but finitely many points of all but finitely many columns.

def columnFilter : Filter ArensFort
:= map equivProd.symm (cofinite.curry cofinite)

theorem mem_columnFilter

TopologyByExample.ArensFort.mem_columnFilter

theorem mem_columnFilter {s : Set ArensFort} :
    s ∈ columnFilter ↔ ∀ᶠ m in cofinite, ∀ᶠ n in cofinite, equivProd.symm (m, n) ∈ s
Proof
:=
  mem_map.trans mem_curry_iff

instance

instance : TopologicalSpace ArensFort
Proof
:= nhdsAdjoint basePoint columnFilter

theorem nhds_basePoint

TopologyByExample.ArensFort.nhds_basePoint

theorem nhds_basePoint : 𝓝 basePoint = pure basePoint ⊔ columnFilter
Proof
:=
  nhds_nhdsAdjoint_same _ _

theorem nhds_of_ne

TopologyByExample.ArensFort.nhds_of_ne

theorem nhds_of_ne {x : ArensFort} (hx : x ≠ basePoint) : 𝓝 x = pure x
Proof
:=
  nhds_nhdsAdjoint_of_ne _ hx

theorem isOpen_singleton_of_ne

TopologyByExample.ArensFort.isOpen_singleton_of_ne

theorem isOpen_singleton_of_ne {x : ArensFort} (hx : x ≠ basePoint) : IsOpen {x}
Proof
:=
  isOpen_singleton_nhdsAdjoint _ hx

theorem columnFilter_le_nhds

TopologyByExample.ArensFort.columnFilter_le_nhds

theorem columnFilter_le_nhds : columnFilter ≤ 𝓝 basePoint
Proof
:=
  nhds_basePoint ▸ le_sup_right

theorem isOpen_iff

TopologyByExample.ArensFort.isOpen_iff

A set is open in the Arens–Fort space if and only if, when it contains the base point, it contains all but finitely many points of all but finitely many columns.

theorem isOpen_iff {s : Set ArensFort} :
    IsOpen s ↔ (basePoint ∈ s → ∀ᶠ m in cofinite, ∀ᶠ n in cofinite, equivProd.symm (m, n) ∈ s)
Proof
:=
  imp_congr_right fun _ ↦ mem_columnFilter

theorem isOpen_iff_finite

TopologyByExample.ArensFort.isOpen_iff_finite

A set is open in the Arens–Fort space if and only if, when it contains the base point, only finitely many columns {m} × ℕ have infinitely many points outside it.

theorem isOpen_iff_finite {s : Set ArensFort} :
    IsOpen s ↔
      (basePoint ∈ s → {m | {n | equivProd.symm (m, n) ∉ s}.Infinite}.Finite)
Proof
:= by
  rw [isOpen_iff, eventually_cofinite]
  simp_rw [eventually_cofinite]
  rfl

theorem isClosed_of_basePoint_mem

TopologyByExample.ArensFort.isClosed_of_basePoint_mem

Every set containing the base point is closed.

theorem isClosed_of_basePoint_mem {s : Set ArensFort} (hs : basePoint ∈ s) : IsClosed s
Proof
:=
  ⟨fun h ↦ absurd hs h⟩

On this site: Arens–Fort space: Every set containing \(p\) is closed

theorem compl_singleton_mem_columnFilter

TopologyByExample.ArensFort.compl_singleton_mem_columnFilter

The complement of a point lies in the column filter.

theorem compl_singleton_mem_columnFilter (x : ArensFort) : {x}ᶜ ∈ columnFilter
Proof
:=
  mem_columnFilter.2 <| .of_forall fun _ ↦
    (finite_singleton (equivProd x).2).eventually_cofinite_notMem.mono fun _ hn h ↦
      hn (congrArg Prod.snd (congrArg equivProd h))

instance instT2Space

TopologyByExample.ArensFort.instT2Space

instance instT2Space : T2Space ArensFort
Proof
:= by
  refine t2Space_iff_disjoint_nhds.2 fun x y hxy ↦ ?_
  wlog hy : y ≠ basePoint generalizing x y
  · exact (this y x hxy.symm fun h ↦ hxy (h.trans (not_not.1 hy).symm)).symm
  rw [nhds_of_ne hy, ← principal_singleton, disjoint_principal_right]
  rcases eq_or_ne x basePoint with rfl | hx
  · rw [nhds_basePoint]
    exact ⟨hxy, compl_singleton_mem_columnFilter y⟩
  · rw [nhds_of_ne hx]
    exact hxy

On this site: The Arens–Fort space is Hausdorff

instance instRegularSpace

TopologyByExample.ArensFort.instRegularSpace

The Arens–Fort space is regular: a neighbourhood of a point that contains the base point is closed, and every other point is isolated.

instance instRegularSpace : RegularSpace ArensFort
Proof
:= by
  refine .of_exists_mem_nhds_isClosed_subset fun x s hs ↦ ?_
  by_cases hp : basePoint ∈ s
  · exact ⟨s, hs, isClosed_of_basePoint_mem hp, subset_rfl⟩
  · have hx : x ≠ basePoint := fun h ↦ hp (h ▸ mem_of_mem_nhds hs)
    exact ⟨{x}, (isOpen_singleton_of_ne hx).mem_nhds rfl, isClosed_singleton,
      singleton_subset_iff.2 (mem_of_mem_nhds hs)⟩

On this site: The Arens–Fort space is regular

theorem isDiscrete_compl_basePoint

TopologyByExample.ArensFort.isDiscrete_compl_basePoint

The set of points other than the base point is discrete.

theorem isDiscrete_compl_basePoint : IsDiscrete ({basePoint}ᶜ : Set ArensFort)
Proof
:=
  isDiscrete_iff_forall_mem_exists_isOpen.2 fun y hy ↦
    ⟨{y}, isOpen_singleton_of_ne hy, inter_eq_left.2 (singleton_subset_iff.2 hy)⟩

theorem not_compactSpace

TopologyByExample.ArensFort.not_compactSpace

The points (m + 1, 0) form an infinite closed discrete set, so the Arens–Fort space is not compact.

theorem not_compactSpace : ¬CompactSpace ArensFort
Proof
:= by
  intro _
  set S := range fun m : ℕ ↦ equivProd.symm (m + 1, 0)
  have hS : IsClosed S := by
    refine isOpen_compl_iff.1 (isOpen_iff.2 fun _ ↦ .of_forall fun m ↦ ?_)
    refine (finite_singleton 0).eventually_cofinite_notMem.mono fun n hn ⟨k, hk⟩ ↦ hn ?_
    exact (congrArg Prod.snd (equivProd.symm.injective hk)).symm
  have hSp : S ⊆ {basePoint}ᶜ := by
    rintro _ ⟨k, rfl⟩ h
    exact k.succ_ne_zero (congrArg Prod.fst (equivProd.symm.injective h))
  refine infinite_range_of_injective (fun a b h ↦ ?_) (hS.isCompact.finite
    (isDiscrete_compl_basePoint.mono hSp))
  exact Nat.succ_injective (congrArg Prod.fst (equivProd.symm.injective h))

theorem not_weaklyLocallyCompactSpace

TopologyByExample.ArensFort.not_weaklyLocallyCompactSpace

The base point has no compact neighbourhood, so the Arens–Fort space is not weakly locally compact. A neighbourhood K of the base point meets infinitely many columns {m} × ℕ with m ≠ 0; one point of K from each of them forms an infinite closed discrete subset of K.

theorem not_weaklyLocallyCompactSpace : ¬WeaklyLocallyCompactSpace ArensFort
Proof
:= by
  intro _
  obtain ⟨K, hK, hKn⟩ := exists_compact_mem_nhds basePoint
  rw [nhds_basePoint] at hKn
  set M := {m : ℕ | m ≠ 0 ∧ ∀ᶠ n in cofinite, equivProd.symm (m, n) ∈ K}
  have hM : M ∈ cofinite :=
    (finite_singleton 0).eventually_cofinite_notMem.and (mem_columnFilter.1 hKn.2)
  choose f hf using fun m : M ↦ m.property.2.exists
  set D := range fun m : M ↦ equivProd.symm (m.val, f m)
  have hD : IsClosed D := by
    refine isOpen_compl_iff.1 (isOpen_iff.2 fun _ ↦ .of_forall fun m ↦ ?_)
    have : {n | equivProd.symm (m, n) ∈ D}.Subsingleton := by
      rintro _ ⟨k, hk⟩ _ ⟨l, hl⟩
      obtain ⟨rfl, rfl⟩ := Prod.ext_iff.1 (equivProd.symm.injective hk)
      obtain ⟨hkl, rfl⟩ := Prod.ext_iff.1 (equivProd.symm.injective hl)
      rw [Subtype.ext hkl]
    exact eventually_cofinite.2 (by simpa using this.finite)
  have hDp : D ⊆ {basePoint}ᶜ := by
    rintro _ ⟨k, rfl⟩ h
    exact k.property.1 (congrArg Prod.fst (equivProd.symm.injective h))
  have hinj : Function.Injective fun m : M ↦ equivProd.symm (m.val, f m) := fun a b h ↦
    Subtype.ext (congrArg Prod.fst (equivProd.symm.injective h))
  have : Infinite M := (compl_compl M ▸ (mem_cofinite.1 hM).infinite_compl).to_subtype
  refine infinite_range_of_injective hinj ((hK.of_isClosed_subset hD ?_).finite
    (isDiscrete_compl_basePoint.mono hDp))
  rintro _ ⟨k, rfl⟩
  exact hf k

instance instSeparableSpace

TopologyByExample.ArensFort.instSeparableSpace

The Arens–Fort space is separable, since it is countable.

instance instSeparableSpace : TopologicalSpace.SeparableSpace ArensFort
Proof
:= inferInstance

instance instLindelofSpace

TopologyByExample.ArensFort.instLindelofSpace

The Arens–Fort space is Lindelöf, since it is countable.

instance instLindelofSpace : LindelofSpace ArensFort
Proof
:= inferInstance

instance instNormalSpace

TopologyByExample.ArensFort.instNormalSpace

The Arens–Fort space is normal, being regular and Lindelöf.

instance instNormalSpace : NormalSpace ArensFort
Proof
:= inferInstance

On this site: Arens–Fort space: The space is normal

theorem not_tendsto_basePoint

TopologyByExample.ArensFort.not_tendsto_basePoint

No sequence of points other than the base point converges to the base point.

theorem not_tendsto_basePoint {x : ℕ → ArensFort} (hx : ∀ k, x k ≠ basePoint) :
    ¬Tendsto x atTop (𝓝 basePoint)
Proof
:= by
  intro h
  -- Each column is visited only finitely often, since its complement together with the base point
  -- is a neighbourhood of the base point.
  have hcol (m : ℕ) : {k | (equivProd (x k)).1 = m}.Finite := by
    have hU : {y | y = basePoint ∨ (equivProd y).1 ≠ m} ∈ 𝓝 basePoint := by
      rw [nhds_basePoint]
      refine ⟨Or.inl rfl, mem_columnFilter.2 ?_⟩
      exact (finite_singleton m).eventually_cofinite_notMem.mono fun _ hm' ↦ .of_forall
        fun _ ↦ Or.inr hm'
    have := (h.eventually hU).mono fun k hk ↦ hk.resolve_left (hx k)
    rw [← Nat.cofinite_eq_atTop, eventually_cofinite] at this
    simpa using this
  -- Hence the complement of the range of `x` is a neighbourhood of the base point.
  have hV : (range x)ᶜ ∈ 𝓝 basePoint := by
    rw [nhds_basePoint]
    refine ⟨fun ⟨k, hk⟩ ↦ hx k hk, mem_columnFilter.2 (.of_forall fun m ↦ ?_)⟩
    refine ((hcol m).image fun k ↦ (equivProd (x k)).2).eventually_cofinite_notMem.mono ?_
    rintro n hn ⟨k, hk⟩
    exact hn ⟨k, by simp only [mem_ofPred_eq, hk, Equiv.apply_symm_apply],
      by simp only [hk, Equiv.apply_symm_apply]⟩
  obtain ⟨k, hk⟩ := (h.eventually hV).exists
  exact hk ⟨k, rfl⟩

On this site: Arens–Fort space: No sequence of other points converges to \(p\)

theorem basePoint_mem_closure_compl

TopologyByExample.ArensFort.basePoint_mem_closure_compl

The base point lies in the closure of the set of all other points.

theorem basePoint_mem_closure_compl : basePoint ∈ closure {basePoint}ᶜ
Proof
:= by
  have : columnFilter.NeBot := by
    rw [columnFilter, map_neBot_iff, ← forall_mem_nonempty_iff_neBot]
    intro s hs
    obtain ⟨m, hm⟩ := (mem_curry_iff.1 hs).exists
    obtain ⟨n, hn⟩ := hm.exists
    exact ⟨_, hn⟩
  exact mem_closure_of_tendsto (tendsto_id'.2 columnFilter_le_nhds)
    (compl_singleton_mem_columnFilter basePoint)

theorem isSeqClosed_compl_basePoint

TopologyByExample.ArensFort.isSeqClosed_compl_basePoint

The set of points other than the base point is sequentially closed.

theorem isSeqClosed_compl_basePoint : IsSeqClosed ({basePoint}ᶜ : Set ArensFort)
Proof
:=
  fun _ _ hx h hp ↦ not_tendsto_basePoint hx (hp ▸ h)

theorem not_sequentialSpace

TopologyByExample.ArensFort.not_sequentialSpace

The Arens–Fort space is not a sequential space.

theorem not_sequentialSpace : ¬SequentialSpace ArensFort
Proof
:= fun _ ↦
  (isSeqClosed_compl_basePoint.isClosed.closure_eq ▸ basePoint_mem_closure_compl) rfl

On this site: The Arens–Fort space is not sequential

theorem not_frechetUrysohnSpace

TopologyByExample.ArensFort.not_frechetUrysohnSpace

The Arens–Fort space is not a Fréchet–Urysohn space.

theorem not_frechetUrysohnSpace : ¬FrechetUrysohnSpace ArensFort
Proof
:= fun _ ↦
  not_sequentialSpace inferInstance

theorem not_firstCountableTopology

TopologyByExample.ArensFort.not_firstCountableTopology

The Arens–Fort space is not first countable.

theorem not_firstCountableTopology : ¬FirstCountableTopology ArensFort
Proof
:= fun _ ↦
  not_frechetUrysohnSpace inferInstance

Perfect normality

instance instPerfectlyNormalSpace

TopologyByExample.ArensFort.instPerfectlyNormalSpace

The Arens–Fort space is perfectly normal, being a countable normal T₁ space.

instance instPerfectlyNormalSpace : PerfectlyNormalSpace ArensFort
Proof
:=
  perfectlyNormalSpace_of_countable

Further properties

theorem scatteredSpace

TopologyByExample.ArensFort.scatteredSpace

The Arens–Fort space is scattered: every point other than the base point is isolated.

theorem scatteredSpace : ScatteredSpace ArensFort
Proof
:=
  scatteredSpace_of_forall_ne_isOpen_singleton basePoint fun _ ↦ isOpen_singleton_of_ne

On this site: The Arens–Fort space is scattered

theorem not_extremallyDisconnected

TopologyByExample.ArensFort.not_extremallyDisconnected

The Arens–Fort space is not extremally disconnected. The points of the even columns other than column 0 form an open set E; its closure contains the base point (every neighbourhood of the base point meets almost every column) but no point of an odd column (those points are isolated), so it is not open.

theorem not_extremallyDisconnected : ¬ExtremallyDisconnected ArensFort
Proof
:= by
  intro hED
  set E : Set ArensFort := {x | Even (equivProd x).1 ∧ (equivProd x).1 ≠ 0}
  have hEo : IsOpen E := isOpen_iff.2 fun h ↦ absurd rfl h.2
  have hp : basePoint ∈ closure E := by
    refine mem_closure_iff_nhds.2 fun U hU ↦ ?_
    rw [nhds_basePoint] at hU
    have h2 : Function.Injective fun k : ℕ ↦ 2 * k + 2 := fun a b h ↦ by simp only at h; omega
    obtain ⟨k, hk⟩ := (h2.tendsto_cofinite.eventually (mem_columnFilter.1 hU.2)).exists
    obtain ⟨n, hn⟩ := hk.exists
    refine ⟨_, hn, ?_⟩
    simp only [E, mem_ofPred_eq, Equiv.apply_symm_apply]
    exact ⟨⟨k + 1, by omega⟩, by omega⟩
  have hodd (m n : ℕ) (hm : Odd m) : equivProd.symm (m, n) ∉ closure E := by
    have hne : equivProd.symm (m, n) ≠ basePoint := fun h ↦ by
      have := congrArg (fun x ↦ (equivProd x).1) h
      simp only [Equiv.apply_symm_apply, basePoint] at this
      exact Nat.not_even_iff_odd.2 hm (by rw [this]; exact ⟨0, rfl⟩)
    intro hc
    obtain ⟨y, hy, hyE⟩ :=
      mem_closure_iff.1 hc _ (isOpen_singleton_of_ne hne) (mem_singleton _)
    rw [mem_singleton_iff] at hy
    subst hy
    exact Nat.not_even_iff_odd.2 hm (by simpa using hyE.1)
  have hfin := isOpen_iff_finite.1 (hED.open_closure E hEo) hp
  refine (infinite_range_of_injective (f := fun k : ℕ ↦ 2 * k + 1)
    (fun a b h ↦ by simp only at h; omega)) (hfin.subset ?_)
  rintro _ ⟨k, rfl⟩
  have : {n | equivProd.symm (2 * k + 1, n) ∉ closure E} = univ :=
    eq_univ_of_forall fun n ↦ hodd _ n (odd_two_mul_add_one k)
  simp only [mem_ofPred_eq, this]
  exact infinite_univ

On this site: The Arens–Fort space is not extremally disconnected

theorem isClosed_of_finite_columns

TopologyByExample.ArensFort.isClosed_of_finite_columns

A set of points other than the base point that meets all but finitely many columns in finite sets is closed.

theorem isClosed_of_finite_columns {D : Set ArensFort}
    (hD : ∀ᶠ m in cofinite, {n | equivProd.symm (m, n) ∈ D}.Finite) : IsClosed D
Proof
:=
  isOpen_compl_iff.1 (isOpen_iff.2 fun _ ↦ hD.mono fun _ hm ↦ by simpa [eventually_cofinite])

theorem finite_of_isCompact

TopologyByExample.ArensFort.finite_of_isCompact

Every compact subset of the Arens–Fort space is finite. If a compact set met some column in infinitely many points, or met infinitely many columns, it would contain an infinite closed discrete set.

theorem finite_of_isCompact {K : Set ArensFort} (hK : IsCompact K) : K.Finite
Proof
:= by
  have hdisc (D : Set ArensFort) (hDK : D ⊆ K) (hDp : basePoint ∉ D)
      (hD : ∀ᶠ m in cofinite, {n | equivProd.symm (m, n) ∈ D}.Finite) : D.Finite :=
    (hK.of_isClosed_subset (isClosed_of_finite_columns hD) hDK).finite
      (isDiscrete_compl_basePoint.mono fun _ hx h ↦ hDp (h ▸ hx))
  by_cases hA : ∃ m, {n | equivProd.symm (m, n) ∈ K \ {basePoint}}.Infinite
  · obtain ⟨m, hm⟩ := hA
    set D := {x | x ∈ K \ {basePoint} ∧ (equivProd x).1 = m}
    have hfin : D.Finite := by
      refine hdisc D (fun _ h ↦ h.1.1) (fun h ↦ h.1.2 rfl)
        ((finite_singleton m).eventually_cofinite_notMem.mono fun k hk ↦ ?_)
      exact finite_empty.subset fun n hn ↦ hk (by simpa [D] using hn.2)
    have hinj : Function.Injective fun n ↦ equivProd.symm (m, n) := fun a b h ↦ by
      simpa using equivProd.symm.injective h
    refine absurd ((hfin.preimage hinj.injOn).subset fun n hn ↦ ?_) hm
    exact ⟨hn, by simp⟩
  · push Not at hA
    refine ((hdisc (K \ {basePoint}) sdiff_subset (fun h ↦ h.2 rfl)
      (.of_forall hA)).insert basePoint).subset fun x hx ↦ ?_
    by_cases h : x = basePoint
    · exact Or.inl h
    · exact Or.inr ⟨hx, h⟩

On this site: One-point compactification of the Arens–Fort space: Compact subsets of the Arens–Fort space are finite

theorem columnFilter_le_cofinite

TopologyByExample.ArensFort.columnFilter_le_cofinite

Every cofinite set belongs to the column filter.

theorem columnFilter_le_cofinite : columnFilter ≤ cofinite
Proof
:=
  le_cofinite_iff_compl_singleton_mem.2 compl_singleton_mem_columnFilter

instance columnFilter_neBot

TopologyByExample.ArensFort.columnFilter_neBot

The column filter is not trivial.

instance columnFilter_neBot : columnFilter.NeBot
Proof
:= by
  rw [columnFilter, map_neBot_iff, ← forall_mem_nonempty_iff_neBot]
  intro s hs
  obtain ⟨m, hm⟩ := (mem_curry_iff.1 hs).exists
  obtain ⟨n, hn⟩ := hm.exists
  exact ⟨_, hn⟩