Lean library · module TopologyByExample.Spaces.FranklinRajagopalanPoint

The Franklin–Rajagopalan space with a point at infinity on the integers

Source file

Let FR be the Franklin–Rajagopalan space TopologyByExample.FranklinRajagopalan: the natural numbers, all isolated, together with the indices of a tower T of least length 𝔱, where a neighbourhood of an index i contains almost all natural numbers of a piece cotower i \ cotower g of the complements of the tower (g < i). We adjoin one new point infty, whose neighbourhoods are the sets containing infty and almost all of some member T i of the tower: the basic neighbourhoods are {infty} ∪ (T i \ F) with F finite. Since the tower is almost decreasing these sets form a filter base, and every member is infinite.

The point infty is attached to the natural numbers only. Its basic neighbourhood {infty} ∪ T i misses the compact open set downSet i (the indices j ≤ i and the natural numbers in cotower i), so downSet i stays clopen; with the singletons of natural numbers these clopen sets separate any two points, and the space is totally separated, hence Hausdorff and Urysohn. The natural numbers are still dense, so the space is separable; and it is the union of FR, which is sequentially compact, and one point, so it is sequentially compact, hence countably compact. The indices still form a closed set, which is not compact, so the space is not compact.

It is not regular. If s is a neighbourhood of infty, containing almost all of T α, and β > α, every neighbourhood of β contains infinitely many natural numbers of cotower β \ cotower α, a subset of T α, so β lies in the closure of s: the closure of every neighbourhood of infty contains a final segment of the indices. So infty cannot be separated from the closed set of indices.

It is not first countable, in ZFC: countably many basic neighbourhoods of infty come from indices below some β, and none of them lies in {infty} ∪ T β, since the tower is strictly almost decreasing. (Unlike FR itself, whose first countability is equivalent to 𝔱 = ℵ₁.) This is as it must be: a first countable, countably compact Hausdorff space is regular. Nor is it weakly locally compact: a weakly locally compact Hausdorff space is regular. So it is the separable analogue of the classical countably compact Hausdorff spaces that are not regular: in the "Hausdorff, countably compact implies regular" direction, first countability cannot be dropped.

Main definitions

Main statements

Tags

Franklin–Rajagopalan space, tower, countably compact, sequentially compact, Urysohn, not regular

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 towerFilter

TopologyByExample.FranklinRajagopalan.towerFilter

The filter on ℕ of the sets almost containing some member of the (shifted) tower: the sets A with shiftedTower i ⊆* A for some index i.

def towerFilter : Filter ℕ
Definition
where
  sets := {A | ∃ i, shiftedTower i ⊆* A}
  univ_sets := ⟨Classical.arbitrary _, almostSubset_of_subset (subset_univ _)⟩
  sets_of_superset := fun ⟨i, hi⟩ h ↦ ⟨i, hi.trans_subset h⟩
  inter_sets := by
    rintro A B ⟨i, hi⟩ ⟨j, hj⟩
    refine ⟨max i j, ?_⟩
    have hA := (isTower_shiftedTower.almostSubset_of_le (le_max_left i j)).trans hi
    have hB := (isTower_shiftedTower.almostSubset_of_le (le_max_right i j)).trans hj
    rw [almostSubset_iff] at hA hB ⊢
    exact (hA.union hB).subset fun n hn ↦ by
      by_cases h : n ∈ A
      · exact Or.inr ⟨hn.1, fun h' ↦ hn.2 ⟨h, h'⟩⟩
      · exact Or.inl ⟨hn.1, h⟩

theorem mem_towerFilter

TopologyByExample.FranklinRajagopalan.mem_towerFilter

Membership in towerFilter.

theorem mem_towerFilter {A : Set ℕ} : A ∈ towerFilter ↔ ∃ i, shiftedTower i ⊆* A
Proof
:=
  Iff.rfl

theorem hasBasis_towerFilter

TopologyByExample.FranklinRajagopalan.hasBasis_towerFilter

The sets shiftedTower i \ F, for an index i and a finite set F, are a basis of towerFilter.

theorem hasBasis_towerFilter :
    towerFilter.HasBasis (fun _ : Index × Finset ℕ ↦ True) fun p ↦ shiftedTower p.1 \ p.2
Proof
:= by
  refine ⟨fun A ↦ ⟨fun ⟨i, hi⟩ ↦ ?_, fun ⟨p, _, hp⟩ ↦ ⟨p.1, ?_⟩⟩⟩
  · rw [almostSubset_iff] at hi
    refine ⟨(i, hi.toFinset), trivial, fun n hn ↦ ?_⟩
    by_contra h
    exact hn.2 (by simpa using (⟨hn.1, h⟩ : n ∈ shiftedTower i \ A))
  · rw [almostSubset_iff]
    refine p.2.finite_toSet.subset fun n hn ↦ ?_
    by_contra h
    exact hn.2 (hp ⟨hn.1, h⟩)

instance

towerFilter is a proper filter: every member of the tower is infinite.

instance : towerFilter.NeBot
Proof
:= by
  refine hasBasis_towerFilter.neBot_iff.2 fun {p} _ ↦ ?_
  exact ((isTower_shiftedTower.infinite p.1).sdiff p.2.finite_toSet).nonempty

theorem infinite_of_mem_towerFilter

TopologyByExample.FranklinRajagopalan.infinite_of_mem_towerFilter

Every set in towerFilter is infinite.

theorem infinite_of_mem_towerFilter {A : Set ℕ} (hA : A ∈ towerFilter) : A.Infinite
Proof
:= by
  obtain ⟨i, hi⟩ := hA
  exact hi.infinite (isTower_shiftedTower.infinite i)

definition FranklinRajagopalanPoint

TopologyByExample.FranklinRajagopalanPoint

The Franklin–Rajagopalan space with one point at infinity on the integers: the points of FranklinRajagopalan, together with a new point FranklinRajagopalanPoint.infty whose neighbourhoods are the sets containing it together with all but finitely many of the natural numbers in some member shiftedTower i of the tower. The topology is the instance FranklinRajagopalanPoint.instTopologicalSpace.

def FranklinRajagopalanPoint : Type
:= Option FranklinRajagopalan

On this site: Space: Franklin–Rajagopalan space with a point at infinity

definition infty

TopologyByExample.FranklinRajagopalanPoint.infty

The point at infinity.

@[match_pattern] def infty : FranklinRajagopalanPoint
:= Option.none

definition some

TopologyByExample.FranklinRajagopalanPoint.some

The inclusion of the Franklin–Rajagopalan space.

@[coe, match_pattern] def some : FranklinRajagopalan → FranklinRajagopalanPoint
:= Option.some

instance

The points of the Franklin–Rajagopalan space are points of the new space.

instance : CoeTC FranklinRajagopalan FranklinRajagopalanPoint
Proof
:= ⟨some⟩

instance

The space is nonempty.

instance : Inhabited FranklinRajagopalanPoint
Proof
:= ⟨infty⟩

definition rec

TopologyByExample.FranklinRajagopalanPoint.rec

Recursor for FranklinRajagopalanPoint using the forms infty and ↑x.

@[elab_as_elim, induction_eliminator, cases_eliminator]
protected def rec {C : FranklinRajagopalanPoint → Sort*} (infty : C infty)
    (coe : ∀ x : FranklinRajagopalan, C x) : ∀ z : FranklinRajagopalanPoint, C z
  | Option.none => infty
  | Option.some x => coe x

theorem some_injective

TopologyByExample.FranklinRajagopalanPoint.some_injective

The inclusion is injective.

theorem some_injective : Function.Injective some
Proof
:= Option.some_injective _

theorem some_inj

TopologyByExample.FranklinRajagopalanPoint.some_inj

The inclusion is injective.

@[simp, norm_cast]
theorem some_inj {x y : FranklinRajagopalan} : (x : FranklinRajagopalanPoint) = y ↔ x = y
Proof
:=
  some_injective.eq_iff

theorem some_ne_infty

TopologyByExample.FranklinRajagopalanPoint.some_ne_infty

A point of the Franklin–Rajagopalan space is not the point at infinity.

@[simp]
theorem some_ne_infty (x : FranklinRajagopalan) : (x : FranklinRajagopalanPoint) ≠ infty
Proof
:=
  nofun

theorem infty_ne_some

TopologyByExample.FranklinRajagopalanPoint.infty_ne_some

The point at infinity is not a point of the Franklin–Rajagopalan space.

@[simp]
theorem infty_ne_some (x : FranklinRajagopalan) : infty ≠ (x : FranklinRajagopalanPoint)
Proof
:=
  nofun

theorem range_some

TopologyByExample.FranklinRajagopalanPoint.range_some

The points other than infty are those of the Franklin–Rajagopalan space.

theorem range_some : range some = {infty}ᶜ
Proof
:= by
  ext z
  cases z with
  | infty => simp
  | coe x => simp

The topology

definition nhdsFilter

TopologyByExample.FranklinRajagopalanPoint.nhdsFilter

The neighbourhood filters: those of the Franklin–Rajagopalan space at its points, and at infty the filter of sets containing infty and the image of a member of towerFilter.

def nhdsFilter : FranklinRajagopalanPoint → Filter FranklinRajagopalanPoint
  | Option.none => pure infty ⊔ map (some ∘ nat) towerFilter
  | Option.some x => map some (𝓝 x)

instance instTopologicalSpace

TopologyByExample.FranklinRajagopalanPoint.instTopologicalSpace

The topology, given by its neighbourhood filters.

instance instTopologicalSpace : TopologicalSpace FranklinRajagopalanPoint
Proof
:=
  .mkOfNhds nhdsFilter

theorem nhds_eq_nhdsFilter

TopologyByExample.FranklinRajagopalanPoint.nhds_eq_nhdsFilter

The neighbourhood filters of the space are the filters nhdsFilter z.

theorem nhds_eq_nhdsFilter (z : FranklinRajagopalanPoint) : 𝓝 z = nhdsFilter z
Proof
:= by
  refine TopologicalSpace.nhds_mkOfNhds _ _ (fun z ↦ ?_) fun z s hs ↦ ?_
  · cases z with
    | infty => exact le_sup_left
    | coe x =>
      change pure (some x) ≤ map some (𝓝 x)
      rw [← map_pure]
      exact map_mono (pure_le_nhds x)
  · cases z with
    | infty =>
      simp only [nhdsFilter, mem_sup, mem_pure, mem_map] at hs
      simp only [nhdsFilter, eventually_sup, eventually_pure, eventually_map]
      refine ⟨by simpa [nhdsFilter] using hs, ?_⟩
      filter_upwards [hs.2] with n hn
      simpa [nhdsFilter, nhds_nat] using hn
    | coe x =>
      simp only [nhdsFilter, mem_map] at hs
      simp only [nhdsFilter, eventually_map]
      filter_upwards [eventually_mem_nhds_iff.2 hs] with y hy
      simpa [nhdsFilter] using hy

theorem nhds_some

TopologyByExample.FranklinRajagopalanPoint.nhds_some

The neighbourhoods of a point of the Franklin–Rajagopalan space are the images of its neighbourhoods there.

theorem nhds_some (x : FranklinRajagopalan) :
    𝓝 (x : FranklinRajagopalanPoint) = map some (𝓝 x)
Proof
:=
  nhds_eq_nhdsFilter _

theorem nhds_infty

TopologyByExample.FranklinRajagopalanPoint.nhds_infty

The neighbourhoods of infty: the sets containing infty and the image of a member of towerFilter.

theorem nhds_infty : 𝓝 infty = pure infty ⊔ map (some ∘ nat) towerFilter
Proof
:=
  nhds_eq_nhdsFilter _

theorem nhds_some_nat

TopologyByExample.FranklinRajagopalanPoint.nhds_some_nat

A natural number is an isolated point.

theorem nhds_some_nat (n : ℕ) : 𝓝 (nat n : FranklinRajagopalanPoint) = pure ↑(nat n)
Proof
:= by
  rw [nhds_some, FranklinRajagopalan.nhds_nat, map_pure]

definition nbhdInfty

TopologyByExample.FranklinRajagopalanPoint.nbhdInfty

The basic neighbourhood nbhdInfty i F of infty: infty together with the natural numbers in shiftedTower i but not in the finite set F.

def nbhdInfty (i : Index) (F : Finset ℕ) : Set FranklinRajagopalanPoint
:=
  insert infty (some ∘ nat '' (shiftedTower i \ F))

theorem infty_mem_nbhdInfty

TopologyByExample.FranklinRajagopalanPoint.infty_mem_nbhdInfty

infty lies in its basic neighbourhoods.

@[simp]
theorem infty_mem_nbhdInfty (i : Index) (F : Finset ℕ) : infty ∈ nbhdInfty i F
Proof
:=
  mem_insert _ _

theorem some_nat_mem_nbhdInfty

TopologyByExample.FranklinRajagopalanPoint.some_nat_mem_nbhdInfty

A natural number lies in nbhdInfty i F iff it lies in shiftedTower i and not in F.

@[simp]
theorem some_nat_mem_nbhdInfty {i : Index} {F : Finset ℕ} {n : ℕ} :
    ↑(nat n) ∈ nbhdInfty i F ↔ n ∈ shiftedTower i ∧ n ∉ F
Proof
:= by
  simp [nbhdInfty, some_injective.eq_iff, nat_injective.eq_iff]

theorem some_index_notMem_nbhdInfty

TopologyByExample.FranklinRajagopalanPoint.some_index_notMem_nbhdInfty

No index lies in a basic neighbourhood of infty.

@[simp]
theorem some_index_notMem_nbhdInfty (i j : Index) (F : Finset ℕ) :
    ↑(index j) ∉ nbhdInfty i F
Proof
:= by
  simp [nbhdInfty, some_injective.eq_iff]

theorem hasBasis_nhds_infty

TopologyByExample.FranklinRajagopalanPoint.hasBasis_nhds_infty

The sets nbhdInfty i F form a basis of the neighbourhoods of infty.

theorem hasBasis_nhds_infty :
    (𝓝 infty).HasBasis (fun _ : Index × Finset ℕ ↦ True) fun p ↦ nbhdInfty p.1 p.2
Proof
:= by
  rw [nhds_infty]
  refine ⟨fun s ↦ ?_⟩
  rw [mem_sup, mem_pure, mem_map, hasBasis_towerFilter.mem_iff]
  constructor
  · rintro ⟨hs, p, -, hp⟩
    refine ⟨p, trivial, insert_subset hs ?_⟩
    rintro _ ⟨n, hn, rfl⟩
    exact hp hn
  · rintro ⟨p, -, hp⟩
    exact ⟨hp (infty_mem_nbhdInfty _ _), p, trivial,
      fun n hn ↦ hp (mem_insert_of_mem _ ⟨n, hn, rfl⟩)⟩

theorem nbhdInfty_mem_nhds

TopologyByExample.FranklinRajagopalanPoint.nbhdInfty_mem_nhds

A basic neighbourhood of infty is a neighbourhood of infty.

theorem nbhdInfty_mem_nhds (i : Index) (F : Finset ℕ) : nbhdInfty i F ∈ 𝓝 infty
Proof
:=
  hasBasis_nhds_infty.mem_of_mem (i := (i, F)) trivial

theorem isOpenEmbedding_some

TopologyByExample.FranklinRajagopalanPoint.isOpenEmbedding_some

The Franklin–Rajagopalan space is an open subspace.

theorem isOpenEmbedding_some : IsOpenEmbedding some
Proof
:= by
  refine ⟨⟨isInducing_iff_nhds.2 fun x ↦ ?_, some_injective⟩, isOpen_iff_mem_nhds.2 ?_⟩
  · rw [nhds_some, comap_map some_injective]
  · rintro _ ⟨x, rfl⟩
    rw [nhds_some]
    exact mem_of_superset (image_mem_map univ_mem) (image_subset_range _ _)

On this site: Franklin–Rajagopalan space with a point at infinity: The Franklin–Rajagopalan space is an open subspace

theorem continuous_some

TopologyByExample.FranklinRajagopalanPoint.continuous_some

The inclusion is continuous.

theorem continuous_some : Continuous some
Proof
:=
  isOpenEmbedding_some.continuous

theorem isOpen_image_some

TopologyByExample.FranklinRajagopalanPoint.isOpen_image_some

The image of an open set of the Franklin–Rajagopalan space is open.

theorem isOpen_image_some {s : Set FranklinRajagopalan} (hs : IsOpen s) :
    IsOpen (some '' s)
Proof
:=
  isOpenEmbedding_some.isOpenMap s hs

theorem isClosed_image_some

TopologyByExample.FranklinRajagopalanPoint.isClosed_image_some

The image of a closed set of the Franklin–Rajagopalan space is closed, provided its natural numbers lie almost inside some cotower i, i.e. almost miss some member of the tower.

theorem isClosed_image_some {K : Set FranklinRajagopalan} (hK : IsClosed K) {i : Index}
    (hi : {n | nat n ∈ K} ⊆* cotower i) : IsClosed (some '' K)
Proof
:= by
  refine isOpen_compl_iff.1 (isOpen_iff_mem_nhds.2 fun z hz ↦ ?_)
  cases z with
  | infty =>
    rw [almostSubset_iff] at hi
    refine mem_of_superset (nbhdInfty_mem_nhds i hi.toFinset) ?_
    rintro _ (rfl | ⟨n, hn, rfl⟩) ⟨y, hy, hyz⟩
    · exact some_ne_infty y hyz
    · rw [Function.comp_apply, some_inj] at hyz
      subst hyz
      exact hn.2 (by simpa using (⟨hy, fun h ↦ h hn.1⟩ : n ∈ {n | nat n ∈ K} \ cotower i))
  | coe x =>
    have hx : x ∉ K := fun h ↦ hz ⟨x, h, rfl⟩
    rw [nhds_some]
    refine mem_of_superset (image_mem_map (hK.isOpen_compl.mem_nhds hx)) ?_
    rintro _ ⟨y, hy, rfl⟩ ⟨y', hy', h⟩
    exact hy (some_injective h ▸ hy')

theorem isClopen_image_basic

TopologyByExample.FranklinRajagopalanPoint.isClopen_image_basic

The image of a basic set is clopen.

theorem isClopen_image_basic (g : WithBot Index) (i : Index) (F : Finset ℕ) :
    IsClopen (some '' basic g i F)
Proof
:= by
  refine ⟨isClosed_image_some (i := i) (isClopen_basic g i F).isClosed ?_,
    isOpen_image_some (isOpen_basic g i F)⟩
  exact almostSubset_of_subset fun n hn ↦ (nat_mem_basic.1 hn).1

theorem isClopen_image_downSet

TopologyByExample.FranklinRajagopalanPoint.isClopen_image_downSet

The image of downSet i is clopen.

theorem isClopen_image_downSet (i : Index) : IsClopen (some '' downSet i)
Proof
:=
  isClopen_image_basic _ _ _

On this site: Franklin–Rajagopalan space with a point at infinity: The sets \(D_\alpha\) are open and closed

theorem isClopen_singleton_some_nat

TopologyByExample.FranklinRajagopalanPoint.isClopen_singleton_some_nat

A natural number is a clopen point.

theorem isClopen_singleton_some_nat (n : ℕ) :
    IsClopen ({↑(nat n)} : Set FranklinRajagopalanPoint)
Proof
:= by
  rw [← image_singleton]
  refine ⟨isClosed_image_some (i := Classical.arbitrary _) isClosed_singleton ?_,
    isOpen_image_some (isOpen_singleton_nat n)⟩
  exact ((finite_singleton n).subset fun m hm ↦ by simpa using hm).almostSubset _

Separation

theorem exists_isClopen_mem_notMem

TopologyByExample.FranklinRajagopalanPoint.exists_isClopen_mem_notMem

Two distinct points are separated by a clopen set.

theorem exists_isClopen_mem_notMem {z w : FranklinRajagopalanPoint} (h : z ≠ w) :
    ∃ s, IsClopen s ∧ z ∈ s ∧ w ∉ s
Proof
:= by
  have symm {z w : FranklinRajagopalanPoint} (h : ∃ s, IsClopen s ∧ w ∈ s ∧ z ∉ s) :
      ∃ s, IsClopen s ∧ z ∈ s ∧ w ∉ s := by
    obtain ⟨s, hs, hw, hz⟩ := h
    exact ⟨sᶜ, hs.compl, hz, not_not.2 hw⟩
  -- Each point of the Franklin–Rajagopalan space has a clopen neighbourhood missing `infty`.
  have hpt (x : FranklinRajagopalan) : ∃ s, IsClopen s ∧ (x : FranklinRajagopalanPoint) ∈ s ∧
      infty ∉ s := by
    cases x with
    | nat n => exact ⟨_, isClopen_singleton_some_nat n, rfl, by simp⟩
    | index i => exact ⟨_, isClopen_image_downSet i, ⟨_, index_mem_downSet_self i, rfl⟩, by simp⟩
  cases z with
  | infty =>
    cases w with
    | infty => exact absurd rfl h
    | coe y => exact symm (hpt y)
  | coe x =>
    cases w with
    | infty => exact hpt x
    | coe y =>
      have hxy : x ≠ y := fun h' ↦ h (congrArg _ h')
      cases x with
      | nat m =>
        exact ⟨_, isClopen_singleton_some_nat m, rfl, fun h' ↦ hxy (some_injective h'.symm)⟩
      | index i =>
        cases y with
        | nat n => exact symm ⟨_, isClopen_singleton_some_nat n, rfl,
            fun h' ↦ hxy (some_injective h')⟩
        | index j =>
          rcases lt_or_gt_of_ne fun h' ↦ hxy (congrArg index h') with hij | hij
          · refine ⟨_, isClopen_image_downSet i, ⟨_, index_mem_downSet_self i, rfl⟩, ?_⟩
            rintro ⟨y, hy, hyj⟩
            rw [some_inj] at hyj
            subst hyj
            exact hij.not_ge (index_mem_downSet.1 hy)
          · refine symm ⟨_, isClopen_image_downSet j, ⟨_, index_mem_downSet_self j, rfl⟩, ?_⟩
            rintro ⟨y, hy, hyi⟩
            rw [some_inj] at hyi
            subst hyi
            exact hij.not_ge (index_mem_downSet.1 hy)

instance instTotallySeparatedSpace

TopologyByExample.FranklinRajagopalanPoint.instTotallySeparatedSpace

The space is totally separated: two distinct points are separated by a clopen set.

instance instTotallySeparatedSpace : TotallySeparatedSpace FranklinRajagopalanPoint
Proof
:=
  totallySeparatedSpace_iff_exists_isClopen.2 fun _ _ h ↦ exists_isClopen_mem_notMem h

On this site: The Franklin–Rajagopalan space with a point at infinity is totally separated

instance instT2Space

TopologyByExample.FranklinRajagopalanPoint.instT2Space

The space is Hausdorff.

instance instT2Space : T2Space FranklinRajagopalanPoint
Proof
:= inferInstance

instance instT25Space

TopologyByExample.FranklinRajagopalanPoint.instT25Space

The space is Urysohn (T₂½).

instance instT25Space : T25Space FranklinRajagopalanPoint
Proof
:=
  TotallySeparatedSpace.t25Space

check

The space is T₀.

example : T0Space FranklinRajagopalanPoint
Proof
:= inferInstance

check

The space is T₁.

example : T1Space FranklinRajagopalanPoint
Proof
:= inferInstance

Density

theorem exists_nat_mem_nbhdInfty

TopologyByExample.FranklinRajagopalanPoint.exists_nat_mem_nbhdInfty

Every basic neighbourhood of infty contains a natural number.

theorem exists_nat_mem_nbhdInfty (i : Index) (F : Finset ℕ) :
    ∃ n, ↑(nat n) ∈ nbhdInfty i F
Proof
:= by
  obtain ⟨n, hn⟩ := ((isTower_shiftedTower.infinite i).sdiff F.finite_toSet).nonempty
  exact ⟨n, some_nat_mem_nbhdInfty.2 hn⟩

theorem dense_range_some_nat

TopologyByExample.FranklinRajagopalanPoint.dense_range_some_nat

The natural numbers are dense.

theorem dense_range_some_nat : Dense (range (some ∘ nat))
Proof
:= by
  intro z
  cases z with
  | infty =>
    refine (mem_closure_iff_nhds_basis hasBasis_nhds_infty).2 fun p _ ↦ ?_
    obtain ⟨n, hn⟩ := exists_nat_mem_nbhdInfty p.1 p.2
    exact ⟨_, ⟨n, rfl⟩, hn⟩
  | coe x =>
    rw [range_comp]
    exact mem_closure_image continuous_some.continuousAt (dense_range_nat x)

theorem denseRange_some

TopologyByExample.FranklinRajagopalanPoint.denseRange_some

The Franklin–Rajagopalan space is an open dense subspace.

theorem denseRange_some : DenseRange some
Proof
:=
  dense_range_some_nat.mono (range_comp_subset_range _ _)

On this site: Franklin–Rajagopalan space with a point at infinity: The Franklin–Rajagopalan space is dense

instance instSeparableSpace

TopologyByExample.FranklinRajagopalanPoint.instSeparableSpace

The space is separable: the natural numbers are a countable dense set.

instance instSeparableSpace : SeparableSpace FranklinRajagopalanPoint
Proof
:=
  ⟨⟨_, countable_range _, dense_range_some_nat⟩⟩

On this site: The Franklin–Rajagopalan space with a point at infinity is separable

Compactness

instance instSeqCompactSpace

TopologyByExample.FranklinRajagopalanPoint.instSeqCompactSpace

The space is sequentially compact: a sequence either takes the value infty infinitely often, or has a subsequence in the Franklin–Rajagopalan space, which is sequentially compact.

instance instSeqCompactSpace : SeqCompactSpace FranklinRajagopalanPoint
Proof
:= by
  refine isSeqCompact_univ_iff.1 ?_
  have h : univ = some '' univ ∪ {infty} := by
    ext z
    cases z with
    | infty => simp
    | coe x => simp
  rw [h]
  exact (isSeqCompact_univ.image continuous_some.seqContinuous).union isSeqCompact_singleton

On this site: The Franklin–Rajagopalan space with a point at infinity is sequentially compact

instance instCountablyCompactSpace

TopologyByExample.FranklinRajagopalanPoint.instCountablyCompactSpace

The space is countably compact.

instance instCountablyCompactSpace : CountablyCompactSpace FranklinRajagopalanPoint
Proof
:=
  inferInstance

theorem isClosed_range_some_index

TopologyByExample.FranklinRajagopalanPoint.isClosed_range_some_index

The indices form a closed set.

theorem isClosed_range_some_index : IsClosed (range (some ∘ index))
Proof
:= by
  rw [range_comp]
  refine isClosed_image_some (i := Classical.arbitrary _) isClosed_range_index ?_
  exact almostSubset_of_subset fun n ⟨i, hi⟩ ↦ absurd hi (index_ne_nat n i)

theorem not_compactSpace

TopologyByExample.FranklinRajagopalanPoint.not_compactSpace

The space is not compact: the indices form a closed set which is not compact.

theorem not_compactSpace : ¬CompactSpace FranklinRajagopalanPoint
Proof
:= fun _ ↦ by
  have h := isClosed_range_some_index.isCompact
  rw [range_comp, ← isOpenEmbedding_some.isInducing.isCompact_preimage_iff
    (image_subset_range _ _), preimage_image_eq _ some_injective] at h
  exact not_isCompact_range_index h

Failure of regularity

theorem exists_forall_some_index_mem_closure

TopologyByExample.FranklinRajagopalanPoint.exists_forall_some_index_mem_closure

The closure of every neighbourhood of infty contains a final segment of the indices.

theorem exists_forall_some_index_mem_closure {s : Set FranklinRajagopalanPoint}
    (hs : s ∈ 𝓝 infty) : ∃ α, ∀ β, α < β → ↑(index β) ∈ closure s
Proof
:= by
  obtain ⟨p, -, hp⟩ := hasBasis_nhds_infty.mem_iff.1 hs
  refine ⟨p.1, fun β hβ ↦ mem_closure_iff_nhds.2 fun t ht ↦ ?_⟩
  rw [nhds_some, mem_map] at ht
  obtain ⟨q, hq, hqt⟩ := (hasBasis_nhds_index β).mem_iff.1 ht
  set g : WithBot Index := max q.1 p.1
  have hg : g < β := max_lt hq (WithBot.coe_lt_coe.2 hβ)
  obtain ⟨F', -, hF'⟩ := exists_basic_subset (le_max_left q.1 (p.1 : WithBot Index)) le_rfl q.2
    (i := β)
  have hfin : (cotower p.1 \ lowCotower g).Finite := by
    simpa [almostSubset_iff] using lowCotower_almostSubset (le_max_right q.1 (p.1 : WithBot Index))
  classical
  obtain ⟨n, hn⟩ := exists_nat_mem_basic hg (F' ∪ p.2 ∪ hfin.toFinset)
  have hn' := nat_mem_basic.1 hn
  simp only [Finset.mem_union, Finite.mem_toFinset, Set.mem_sdiff, not_or, not_and, not_not] at hn'
  obtain ⟨-, hng, ⟨hnF', hnp⟩, hnfin⟩ := hn'
  refine ⟨_, hqt (hF' (basic_anti Finset.subset_union_left
    (basic_anti Finset.subset_union_left hn))), hp ?_⟩
  exact some_nat_mem_nbhdInfty.2 ⟨of_not_not fun h ↦ hng (hnfin h), hnp⟩

On this site: Franklin–Rajagopalan space with a point at infinity: The closure of every neighbourhood of \(\infty\) contains a final segment of the indices

theorem not_disjoint_nhds_infty_nhdsSet_range_index

TopologyByExample.FranklinRajagopalanPoint.not_disjoint_nhds_infty_nhdsSet_range_index

infty and the closed set of indices have no disjoint neighbourhoods.

theorem not_disjoint_nhds_infty_nhdsSet_range_index :
    ¬Disjoint (𝓝 infty) (𝓝ˢ (range (some ∘ index)))
Proof
:= by
  intro h
  obtain ⟨s, hs, t, ht, hst⟩ := Filter.disjoint_iff.1 h
  obtain ⟨α, hα⟩ := exists_forall_some_index_mem_closure hs
  obtain ⟨β, hβ⟩ := exists_gt α
  have ht' : t ∈ 𝓝 (↑(index β) : FranklinRajagopalanPoint) :=
    mem_nhdsSet_iff_forall.1 ht _ ⟨β, rfl⟩
  obtain ⟨z, hzt, hzs⟩ := mem_closure_iff_nhds.1 (hα β hβ) t ht'
  exact hst.ne_of_mem hzs hzt rfl

On this site: Franklin–Rajagopalan space with a point at infinity: The point \(\infty\) and the set of indices cannot be separated

theorem not_regularSpace

TopologyByExample.FranklinRajagopalanPoint.not_regularSpace

The space is not regular: infty cannot be separated from the closed set of indices.

theorem not_regularSpace : ¬RegularSpace FranklinRajagopalanPoint
Proof
:= fun _ ↦ by
  refine not_disjoint_nhds_infty_nhdsSet_range_index (disjoint_nhds_nhdsSet.2 ?_)
  rw [isClosed_range_some_index.closure_eq]
  rintro ⟨i, hi⟩
  exact some_ne_infty _ hi

On this site: The Franklin–Rajagopalan space with a point at infinity is not regular

First countability

theorem not_firstCountableTopology

TopologyByExample.FranklinRajagopalanPoint.not_firstCountableTopology

The space is not first countable, in ZFC: countably many basic neighbourhoods of infty come from indices bounded by some β, and none of them lies in nbhdInfty β ∅, since the tower is strictly almost decreasing.

theorem not_firstCountableTopology : ¬FirstCountableTopology FranklinRajagopalanPoint
Proof
:= by
  intro _
  obtain ⟨U, hU⟩ := (𝓝 infty).exists_antitone_basis
  choose p _ hp using fun k ↦ hasBasis_nhds_infty.mem_iff.1 (hU.mem k)
  obtain ⟨β, hβ⟩ := exists_forall_lt_of_countable_towerLength (countable_range fun k ↦ (p k).1)
  obtain ⟨k, -, hk⟩ := hU.toHasBasis.mem_iff.1 (nbhdInfty_mem_nhds β ∅)
  have hsub : shiftedTower (p k).1 \ shiftedTower β ⊆ (p k).2 := by
    intro n hn
    by_contra h
    exact hn.2 (some_nat_mem_nbhdInfty.1 (hk (hp k (some_nat_mem_nbhdInfty.2 ⟨hn.1, h⟩)))).1
  exact isTower_shiftedTower.infinite_sdiff_of_lt (hβ _ ⟨k, rfl⟩) ((p k).2.finite_toSet.subset hsub)

Weak local compactness

check

A Hausdorff weakly locally compact space is regular (Mathlib's instances).

example {X : Type*} [TopologicalSpace X] [T2Space X] [WeaklyLocallyCompactSpace X] :
    RegularSpace X
Proof
:= inferInstance

theorem not_weaklyLocallyCompactSpace

TopologyByExample.FranklinRajagopalanPoint.not_weaklyLocallyCompactSpace

The space is not weakly locally compact: it is Hausdorff but not regular.

theorem not_weaklyLocallyCompactSpace : ¬WeaklyLocallyCompactSpace FranklinRajagopalanPoint
Proof
:=
  fun _ ↦ not_regularSpace inferInstance

theorem not_exists_isCompact_mem_nhds_infty

TopologyByExample.FranklinRajagopalanPoint.not_exists_isCompact_mem_nhds_infty

infty has no compact neighbourhood; every other point has one.

theorem not_exists_isCompact_mem_nhds_infty :
    ¬∃ K : Set FranklinRajagopalanPoint, IsCompact K ∧ K ∈ 𝓝 infty
Proof
:= by
  rintro ⟨K, hK, hKn⟩
  refine not_weaklyLocallyCompactSpace ⟨fun z ↦ ?_⟩
  cases z with
  | infty => exact ⟨K, hK, hKn⟩
  | coe x =>
    obtain ⟨L, hL, hLn⟩ := exists_compact_mem_nhds x
    exact ⟨_, hL.image continuous_some, isOpenEmbedding_some.isOpenMap.image_mem_nhds hLn⟩

On this site: Franklin–Rajagopalan space with a point at infinity: The point \(\infty\) has no compact neighbourhood

The remaining properties

theorem not_normalSpace

TopologyByExample.FranklinRajagopalanPoint.not_normalSpace

The space is not normal: a normal T₁ space is regular.

theorem not_normalSpace : ¬NormalSpace FranklinRajagopalanPoint
Proof
:= fun _ ↦
  not_regularSpace regularSpace_of_t1Space_of_normalSpace

theorem not_completelyRegularSpace

TopologyByExample.FranklinRajagopalanPoint.not_completelyRegularSpace

The space is not completely regular.

theorem not_completelyRegularSpace : ¬CompletelyRegularSpace FranklinRajagopalanPoint
Proof
:= fun _ ↦
  not_regularSpace inferInstance

theorem not_completelyNormalSpace

TopologyByExample.FranklinRajagopalanPoint.not_completelyNormalSpace

The space is not completely normal.

theorem not_completelyNormalSpace : ¬CompletelyNormalSpace FranklinRajagopalanPoint
Proof
:= fun _ ↦
  not_normalSpace inferInstance

theorem not_perfectlyNormalSpace

TopologyByExample.FranklinRajagopalanPoint.not_perfectlyNormalSpace

The space is not perfectly normal.

theorem not_perfectlyNormalSpace : ¬PerfectlyNormalSpace FranklinRajagopalanPoint
Proof
:= fun _ ↦
  not_normalSpace inferInstance

theorem not_metrizableSpace

TopologyByExample.FranklinRajagopalanPoint.not_metrizableSpace

The space is not metrizable.

theorem not_metrizableSpace : ¬MetrizableSpace FranklinRajagopalanPoint
Proof
:= fun _ ↦
  not_regularSpace inferInstance

theorem not_lindelofSpace

TopologyByExample.FranklinRajagopalanPoint.not_lindelofSpace

The space is not Lindelöf: a countably compact Lindelöf space is compact.

theorem not_lindelofSpace : ¬LindelofSpace FranklinRajagopalanPoint
Proof
:= fun _ ↦
  not_compactSpace LindelofSpace.compactSpace

theorem not_sigmaCompactSpace

TopologyByExample.FranklinRajagopalanPoint.not_sigmaCompactSpace

The space is not σ-compact.

theorem not_sigmaCompactSpace : ¬SigmaCompactSpace FranklinRajagopalanPoint
Proof
:= fun _ ↦
  not_lindelofSpace inferInstance

theorem not_secondCountableTopology

TopologyByExample.FranklinRajagopalanPoint.not_secondCountableTopology

The space is not second countable.

theorem not_secondCountableTopology : ¬SecondCountableTopology FranklinRajagopalanPoint
Proof
:=
  fun _ ↦ not_firstCountableTopology inferInstance

The point at infinity

instance instScatteredSpace

TopologyByExample.FranklinRajagopalanPoint.instScatteredSpace

The space is scattered: a set meeting the Franklin–Rajagopalan space, an open scattered subspace, has a point isolated in it, and otherwise it is {infty}.

instance instScatteredSpace : ScatteredSpace FranklinRajagopalanPoint
Proof
:= by
  refine scatteredSpace_iff_exists_isolated.2 fun s hs ↦ ?_
  by_cases h : (s ∩ range some).Nonempty
  · exact ScatteredSpace.exists_isolated_of_isOpenEmbedding isOpenEmbedding_some h
  · obtain ⟨z, hz⟩ := hs
    have hinf : s ⊆ {infty} := fun w hw ↦ by
      cases w with
      | infty => rfl
      | coe x => exact absurd ⟨_, hw, x, rfl⟩ h
    exact ⟨z, hz, univ, univ_mem, fun w hw ↦ (hinf hw.2).trans (hinf hz).symm⟩

On this site: The Franklin–Rajagopalan space with a point at infinity is scattered

theorem not_semiregularSpace

TopologyByExample.FranklinRajagopalanPoint.not_semiregularSpace

The space is not semiregular. If V is regular open and contains infty, it contains a basic neighbourhood nbhdInfty α F of infty, and its closure contains every index above some α'. For an index β above both, a basic set at β with lower bound max α' α, less finitely many natural numbers, has its indices in the closure of V and its natural numbers in nbhdInfty α F; so β lies in the interior of the closure of V, which is V. Since a basic neighbourhood of infty contains no index, no regular open set containing infty lies inside one.

theorem not_semiregularSpace : ¬SemiregularSpace FranklinRajagopalanPoint
Proof
:= by
  intro hX
  let α₀ : Index := Classical.arbitrary _
  obtain ⟨v, hv, hinf, hvN⟩ :=
    (semiregularSpace_iff_isRegularOpen.1 hX).mem_nhds_iff.1 (nbhdInfty_mem_nhds α₀ ∅)
  have hv' : IsRegularOpen v := hv
  have hvn : v ∈ 𝓝 infty := hv'.isOpen.mem_nhds hinf
  obtain ⟨p, -, hp⟩ := hasBasis_nhds_infty.mem_iff.1 hvn
  obtain ⟨α, hα⟩ := exists_forall_some_index_mem_closure hvn
  obtain ⟨β, hβ⟩ := exists_gt (max α p.1)
  have hfin : (shiftedTower (max α p.1) \ shiftedTower p.1).Finite :=
    almostSubset_iff.1 (isTower_shiftedTower.almostSubset_of_le (le_max_right α p.1))
  classical
  have hsub : basic (max α p.1 : Index) β (p.2 ∪ hfin.toFinset) ⊆ some ⁻¹' closure v := by
    intro x hx
    cases x with
    | nat n =>
      rw [nat_mem_basic, lowCotower_coe] at hx
      obtain ⟨-, hng, hnF⟩ := hx
      have hn : n ∈ shiftedTower (max α p.1) := by simpa [cotower] using hng
      have h₁ : n ∉ p.2 := fun h ↦ hnF (Finset.mem_union_left _ h)
      have h₂ : n ∈ shiftedTower p.1 := by_contra fun h ↦
        hnF (Finset.mem_union_right _ (hfin.mem_toFinset.2 ⟨hn, h⟩))
      exact subset_closure (hp (some_nat_mem_nbhdInfty.2 ⟨h₂, h₁⟩))
    | index j =>
      rw [index_mem_basic, WithBot.coe_lt_coe] at hx
      exact hα j ((le_max_left α p.1).trans_lt hx.1)
  have hmem : (↑(index β) : FranklinRajagopalanPoint) ∈ interior (closure v) := by
    rw [mem_interior_iff_mem_nhds, nhds_some, mem_map]
    exact mem_of_superset (basic_mem_nhds (WithBot.coe_lt_coe.2 hβ) _) hsub
  rw [isRegularOpen_iff.1 hv'] at hmem
  exact some_index_notMem_nbhdInfty α₀ β ∅ (hvN hmem)

On this site: The Franklin–Rajagopalan space with a point at infinity is not semiregular