Lean library · module TopologyByExample.Spaces.ThomasPlank

The Thomas plank

Source file

The Thomas plank is the product of the Fort space on ℝ (the one-point compactification OnePoint (WithDiscreteTopology ℝ) of the discrete reals) and the convergent sequence [0, ω] = OnePoint ℕ, with its corner (∞, ∞) removed: the subtype ThomasPlank.

Its rows {(x, n)} are copies of the Fort space and its columns {(x, k)} for real x are copies of [0, ω]. It is an open subspace of a compact Hausdorff, zero-dimensional and scattered space, so it is weakly locally compact, totally separated and scattered. It is not first countable, since the Fort space on an uncountable set is not, and it does not satisfy the countable chain condition, since it maps onto that Fort space. It is neither normal nor countably paracompact, by the general argument for deleted products. The function equal to m at the point (m, m) and 0 elsewhere is continuous, since these points are isolated and form a closed set, and it is unbounded; so the plank is not pseudocompact.

Main statements

References

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

Tags

Thomas plank, Fort space, normal, countably paracompact, pseudocompact

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 frechetUrysohnSpace

TopologyByExample.FortSpaces.frechetUrysohnSpace

The Fort space is Fréchet–Urysohn. If ∞ lies in the closure of a set s not containing it, then s has infinitely many points of X (a finite set of them is closed), and an injective sequence of them converges to ∞.

theorem FortSpaces.frechetUrysohnSpace {X : Type*} [TopologicalSpace X] [DiscreteTopology X] :
    FrechetUrysohnSpace (OnePoint X)
Proof
:= by
  refine ⟨fun s z hz ↦ ?_⟩
  by_cases hzs : z ∈ s
  · exact ⟨fun _ ↦ z, fun _ ↦ hzs, tendsto_const_nhds⟩
  induction z using OnePoint.rec with
  | coe x =>
    exact absurd (mem_closure_iff.1 hz _ (FortSpaces.isOpen_singleton_coe x) rfl) fun ⟨w, hw, hws⟩ ↦
      hzs (mem_singleton_iff.1 hw ▸ hws)
  | infty =>
    have hinf : ((↑) ⁻¹' s : Set X).Infinite := by
      intro hfin
      have hsub : s ⊆ (↑) '' ((↑) ⁻¹' s : Set X) := fun w hw ↦ by
        induction w using OnePoint.rec with
        | infty => exact absurd hw hzs
        | coe x => exact ⟨x, hw, rfl⟩
      have := closure_minimal hsub (hfin.image _).isClosed hz
      obtain ⟨x, -, hx⟩ := this
      exact OnePoint.coe_ne_infty x hx
    let e := hinf.natEmbedding
    exact ⟨fun n ↦ ((e n : X) : OnePoint X), fun n ↦ (e n).property,
      FortSpaces.tendsto_infty_of_injective
        (OnePoint.coe_injective.comp (Subtype.val_injective.comp e.injective))⟩

theorem mem_seqClosure_of_isOpenEmbedding

TopologyByExample.mem_seqClosure_of_isOpenEmbedding

A point in the image of an open embedding of a Fréchet–Urysohn space is the limit of a sequence from every set whose closure contains it.

theorem mem_seqClosure_of_isOpenEmbedding {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
    [FrechetUrysohnSpace Y] {f : Y → X} (hf : IsOpenEmbedding f) {s : Set X} {y : Y}
    (h : f y ∈ closure s) : f y ∈ seqClosure s
Proof
:= by
  have h' : f y ∈ closure (s ∩ range f) := by
    rw [mem_closure_iff_nhds] at h ⊢
    intro t ht
    obtain ⟨w, hw⟩ := h (t ∩ range f) (inter_mem ht (hf.isOpen_range.mem_nhds (mem_range_self y)))
    exact ⟨w, hw.1.1, hw.2, hw.1.2⟩
  have hy : y ∈ closure (f ⁻¹' s) := by
    rw [hf.isInducing.closure_eq_preimage_closure_image, image_preimage_eq_inter_range]
    exact h'
  obtain ⟨u, hu, hlim⟩ := FrechetUrysohnSpace.closure_subset_seqClosure _ hy
  exact ⟨f ∘ u, hu, (hf.continuous.tendsto y).comp hlim⟩

theorem continuous_of_isClosed_of_isOpen_singleton

TopologyByExample.continuous_of_isClosed_of_isOpen_singleton

A real function vanishing off a closed set of isolated points is continuous.

theorem continuous_of_isClosed_of_isOpen_singleton {Z : Type*} [TopologicalSpace Z] {S : Set Z}
    (hS : IsClosed S) (hiso : ∀ z ∈ S, IsOpen ({z} : Set Z)) {f : Z → ℝ}
    (hf : ∀ z ∉ S, f z = 0) : Continuous f
Proof
:= by
  refine continuous_iff_continuousAt.2 fun z ↦ ?_
  by_cases hz : z ∈ S
  · rw [ContinuousAt, (isOpen_singleton_iff_nhds_eq_pure z).1 (hiso z hz)]
    exact tendsto_pure_nhds f z
  · exact (continuousAt_const (y := (0 : ℝ))).congr
      (mem_of_superset (hS.isOpen_compl.mem_nhds hz) fun w hw ↦ (hf w hw).symm)

definition ThomasPlank

TopologyByExample.ThomasPlank

The Thomas plank: the product of the Fort space on ℝ with [0, ω] = OnePoint ℕ, with its corner (∞, ∞) removed, as a subspace.

abbrev ThomasPlank : Type
:=
  ↥({(∞, ∞)}ᶜ : Set (OnePoint (WithDiscreteTopology ℝ) × OnePoint ℕ))

On this site: Space: Thomas plank

instance

The discrete reals are uncountable.

instance : Uncountable (WithDiscreteTopology ℝ)
Proof
:= ⟨DiscreteReals.not_countable⟩

definition mkNat

TopologyByExample.ThomasPlank.mkNat

The point (z, n) of the plank, for z in the Fort space and a natural number n.

def mkNat (z : OnePoint (WithDiscreteTopology ℝ)) (n : ℕ) : ThomasPlank
:=
  ⟨(z, (n : OnePoint ℕ)), by simp⟩

theorem continuous_mkNat

TopologyByExample.ThomasPlank.continuous_mkNat

Each row z ↦ (z, n) is continuous.

theorem continuous_mkNat (n : ℕ) : Continuous fun z ↦ mkNat z n
Proof
:=
  (continuous_id.prodMk continuous_const).subtype_mk _

instance

The plank is nonempty.

instance : Nonempty ThomasPlank
Proof
:= ⟨mkNat ∞ 0⟩

instance zeroDimensionalSpace

TopologyByExample.ThomasPlank.zeroDimensionalSpace

The plank is zero-dimensional, as a subspace of a product of two zero-dimensional spaces.

instance zeroDimensionalSpace : ZeroDimensionalSpace ThomasPlank
Proof
:=
  zeroDimensionalSpace_of_isInducing Topology.IsInducing.subtypeVal

instance totallySeparatedSpace

TopologyByExample.ThomasPlank.totallySeparatedSpace

The plank is totally separated, being zero-dimensional and T₀.

instance totallySeparatedSpace : TotallySeparatedSpace ThomasPlank
Proof
:=
  inferInstance

On this site: The Thomas plank is totally separated

instance weaklyLocallyCompactSpace

TopologyByExample.ThomasPlank.weaklyLocallyCompactSpace

The plank is weakly locally compact: it is an open subspace of the compact Hausdorff product, hence locally compact.

instance weaklyLocallyCompactSpace : WeaklyLocallyCompactSpace ThomasPlank
Proof
:=
  have := (isClosed_singleton (x := ((∞, ∞) : OnePoint (WithDiscreteTopology ℝ) × OnePoint ℕ)))
    |>.isOpen_compl.locallyCompactSpace
  inferInstance

On this site: The Thomas plank is weakly locally compact

theorem scatteredSpace

TopologyByExample.ThomasPlank.scatteredSpace

The plank is scattered, as a subspace of a product of two scattered spaces (each a Fort space, which is almost discrete).

theorem scatteredSpace : ScatteredSpace ThomasPlank
Proof
:=
  have : AlmostDiscreteSpace (OnePoint (WithDiscreteTopology ℝ)) := FortSpaces.almostDiscreteSpace
  have : AlmostDiscreteSpace (OnePoint ℕ) := FortSpaces.almostDiscreteSpace
  .of_injective Subtype.val_injective continuous_subtypeVal

On this site: The Thomas plank is scattered

theorem continuous_mkCoe

TopologyByExample.ThomasPlank.continuous_mkCoe

Each column k ↦ (x, k), for a real x, is continuous.

theorem continuous_mkCoe (x : WithDiscreteTopology ℝ) :
    Continuous fun k : OnePoint ℕ ↦
      (⟨((x : OnePoint (WithDiscreteTopology ℝ)), k), by simp⟩ : ThomasPlank)
Proof
:=
  (continuous_const.prodMk continuous_id).subtype_mk _

theorem isOpenEmbedding_mkNat

TopologyByExample.ThomasPlank.isOpenEmbedding_mkNat

Each row is an open embedding of the Fort space on ℝ into the plank.

theorem isOpenEmbedding_mkNat (n : ℕ) : IsOpenEmbedding fun z ↦ mkNat z n
Proof
:= by
  refine ⟨IsEmbedding.of_comp (continuous_mkNat n) (continuous_fst.comp continuous_subtypeVal)
    IsEmbedding.id, ?_⟩
  have : range (fun z ↦ mkNat z n) = {d : ThomasPlank | d.val.2 = (n : OnePoint ℕ)} := by
    ext ⟨⟨z, k⟩, hp⟩
    simp only [mem_range, mem_ofPred_eq]
    constructor
    · rintro ⟨w, hw⟩
      cases hw
      rfl
    · rintro rfl
      exact ⟨z, rfl⟩
  rw [this]
  exact (FortSpaces.isOpen_singleton_coe n).preimage (continuous_snd.comp continuous_subtypeVal)

theorem isOpenEmbedding_mkCoe

TopologyByExample.ThomasPlank.isOpenEmbedding_mkCoe

Each column over a real x is an open embedding of [0, ω] into the plank.

theorem isOpenEmbedding_mkCoe (x : WithDiscreteTopology ℝ) :
    IsOpenEmbedding fun k : OnePoint ℕ ↦
      (⟨((x : OnePoint (WithDiscreteTopology ℝ)), k), by simp⟩ : ThomasPlank)
Proof
:= by
  refine ⟨IsEmbedding.of_comp (continuous_mkCoe x) (continuous_snd.comp continuous_subtypeVal)
    IsEmbedding.id, ?_⟩
  have : range (fun k : OnePoint ℕ ↦
      (⟨((x : OnePoint (WithDiscreteTopology ℝ)), k), by simp⟩ : ThomasPlank)) =
      {d : ThomasPlank | d.val.1 = (x : OnePoint (WithDiscreteTopology ℝ))} := by
    ext ⟨⟨z, k⟩, hp⟩
    simp only [mem_range, mem_ofPred_eq]
    constructor
    · rintro ⟨w, hw⟩
      cases hw
      rfl
    · rintro rfl
      exact ⟨k, rfl⟩
  rw [this]
  exact (FortSpaces.isOpen_singleton_coe x).preimage (continuous_fst.comp continuous_subtypeVal)

theorem frechetUrysohnSpace

TopologyByExample.ThomasPlank.frechetUrysohnSpace

The plank is Fréchet–Urysohn. Every point lies in an open row, a copy of the Fort space on ℝ, or (on the top edge) in an open column, a copy of [0, ω]; both are Fréchet–Urysohn.

theorem frechetUrysohnSpace : FrechetUrysohnSpace ThomasPlank
Proof
:= by
  have : FrechetUrysohnSpace (OnePoint (WithDiscreteTopology ℝ)) := FortSpaces.frechetUrysohnSpace
  have : FrechetUrysohnSpace (OnePoint ℕ) := FortSpaces.frechetUrysohnSpace
  refine ⟨fun s d hd ↦ ?_⟩
  obtain ⟨⟨a, k⟩, hp⟩ := d
  induction k using OnePoint.rec with
  | coe n => exact mem_seqClosure_of_isOpenEmbedding (isOpenEmbedding_mkNat n) (y := a) hd
  | infty =>
    induction a using OnePoint.rec with
    | infty => exact absurd rfl hp
    | coe x => exact mem_seqClosure_of_isOpenEmbedding (isOpenEmbedding_mkCoe x) (y := ∞) hd

On this site: The Thomas plank is Fréchet–Urysohn

theorem isEmbedding_mkNat_zero

TopologyByExample.ThomasPlank.isEmbedding_mkNat_zero

The row of 0 is an embedding of the Fort space into the plank.

theorem isEmbedding_mkNat_zero : IsEmbedding fun z ↦ mkNat z 0
Proof
:=
  IsEmbedding.of_comp (continuous_mkNat 0) (continuous_fst.comp continuous_subtypeVal)
    IsEmbedding.id

theorem not_firstCountableTopology

TopologyByExample.ThomasPlank.not_firstCountableTopology

The plank is not first countable: its row of 0 is a copy of the Fort space on ℝ, which is not first countable.

theorem not_firstCountableTopology : ¬FirstCountableTopology ThomasPlank
Proof
:= fun _ ↦
  FortSpaces.not_firstCountableTopology (X := WithDiscreteTopology ℝ)
    isEmbedding_mkNat_zero.isInducing.firstCountableTopology

On this site: The Thomas plank is not first countable

theorem not_countableChainCondition

TopologyByExample.ThomasPlank.not_countableChainCondition

The plank does not satisfy the countable chain condition: its projection onto the Fort space on ℝ is a continuous surjection, and that Fort space does not satisfy it.

theorem not_countableChainCondition :
    ¬∀ S : Set (Set ThomasPlank), (∀ s ∈ S, IsOpen s ∧ s.Nonempty) →
      S.PairwiseDisjoint id → S.Countable
Proof
:= fun h ↦
  FortSpaces.not_countableChainCondition (X := WithDiscreteTopology ℝ)
    (ccc_of_continuous_surjective (continuous_fst.comp continuous_subtypeVal)
      (fun z ↦ ⟨mkNat z 0, rfl⟩) h)

On this site: The Thomas plank does not satisfy the countable chain condition

theorem not_normalSpace_and_not_countablyParacompactSpace

TopologyByExample.ThomasPlank.not_normalSpace_and_not_countablyParacompactSpace

The plank is neither normal nor countably paracompact, by the general argument for deleted products: countably many neighbourhoods of ∞ in the Fort space on ℝ have a common real point, and the natural numbers form an injective sequence converging to ∞ in [0, ω].

theorem not_normalSpace_and_not_countablyParacompactSpace :
    ¬NormalSpace ThomasPlank ∧ ¬CountablyParacompactSpace ThomasPlank
Proof
:=
  not_normalSpace_and_not_countablyParacompactSpace_compl_singleton_prod
    FortSpaces.exists_ne_infty_forall_mem coe_injective (fun n ↦ coe_ne_infty n)
    TychonoffPlank.tendsto_coe_nat_infty

theorem not_normalSpace

TopologyByExample.ThomasPlank.not_normalSpace

The plank is not normal.

theorem not_normalSpace : ¬NormalSpace ThomasPlank
Proof
:=
  not_normalSpace_and_not_countablyParacompactSpace.1

On this site: The Thomas plank is not normal

theorem not_countablyParacompactSpace

TopologyByExample.ThomasPlank.not_countablyParacompactSpace

The plank is not countably paracompact.

theorem not_countablyParacompactSpace : ¬CountablyParacompactSpace ThomasPlank
Proof
:=
  not_normalSpace_and_not_countablyParacompactSpace.2

On this site: The Thomas plank is not countably paracompact

definition diag

TopologyByExample.ThomasPlank.diag

The diagonal points (eₘ, m), for an injective sequence e of reals.

noncomputable def diag (m : ℕ) : ThomasPlank
:=
  mkNat ((Infinite.natEmbedding (WithDiscreteTopology ℝ) m : WithDiscreteTopology ℝ)) m

theorem diag_injective

TopologyByExample.ThomasPlank.diag_injective

The diagonal points are distinct.

theorem diag_injective : Injective diag
Proof
:= fun _ _ h ↦
  coe_injective (congrArg (fun d : ThomasPlank ↦ d.val.2) h)

theorem isOpen_singleton_diag

TopologyByExample.ThomasPlank.isOpen_singleton_diag

Each diagonal point is isolated.

theorem isOpen_singleton_diag (m : ℕ) : IsOpen ({diag m} : Set ThomasPlank)
Proof
:= by
  have h : IsOpen (({(Infinite.natEmbedding (WithDiscreteTopology ℝ) m :
      OnePoint (WithDiscreteTopology ℝ))} : Set (OnePoint (WithDiscreteTopology ℝ))) ×ˢ
      ({(m : OnePoint ℕ)} : Set (OnePoint ℕ))) :=
    (FortSpaces.isOpen_singleton_coe _).prod (FortSpaces.isOpen_singleton_coe _)
  convert h.preimage continuous_subtypeVal using 1
  ext d
  simp only [mem_singleton_iff, mem_preimage, mem_prod]
  constructor
  · rintro rfl
    exact ⟨rfl, rfl⟩
  · intro hd
    exact Subtype.ext (Prod.ext hd.1 hd.2)

theorem isClosed_range_diag

TopologyByExample.ThomasPlank.isClosed_range_diag

The diagonal points form a closed set: each point of the plank has a neighbourhood (its row, or for a point of the top edge its column) containing at most one of them.

theorem isClosed_range_diag : IsClosed (range diag)
Proof
:= by
  rw [← iUnion_singleton_eq_range]
  refine LocallyFinite.isClosed_iUnion (fun d ↦ ?_) fun _ ↦ isClosed_singleton
  obtain ⟨⟨a, k⟩, hd⟩ := d
  induction k using OnePoint.rec with
  | coe n =>
    refine ⟨{d' : ThomasPlank | d'.val.2 = (n : OnePoint ℕ)},
      ((FortSpaces.isOpen_singleton_coe n).preimage
        (continuous_snd.comp continuous_subtypeVal)).mem_nhds rfl, ?_⟩
    refine (finite_singleton n).subset fun m ⟨_, hm, hm'⟩ ↦ ?_
    rw [mem_singleton_iff.1 hm] at hm'
    exact coe_injective hm'
  | infty =>
    induction a using OnePoint.rec with
    | infty => exact absurd rfl hd
    | coe r =>
      refine ⟨{d' : ThomasPlank | d'.val.1 = (r : OnePoint (WithDiscreteTopology ℝ))},
        ((FortSpaces.isOpen_singleton_coe r).preimage
          (continuous_fst.comp continuous_subtypeVal)).mem_nhds rfl, ?_⟩
      refine Subsingleton.finite fun m ⟨_, hm, hm'⟩ m' ⟨_, hm₂, hm₂'⟩ ↦ ?_
      rw [mem_singleton_iff.1 hm] at hm'
      rw [mem_singleton_iff.1 hm₂] at hm₂'
      exact (Infinite.natEmbedding _).injective (coe_injective (hm'.trans hm₂'.symm))

theorem not_pseudocompactSpace

TopologyByExample.ThomasPlank.not_pseudocompactSpace

The plank is not pseudocompact: the function equal to m at the m-th diagonal point and 0 elsewhere is continuous, since the diagonal points are isolated and form a closed set, and it is unbounded.

theorem not_pseudocompactSpace : ¬PseudocompactSpace ThomasPlank
Proof
:= by
  classical
  intro h
  let g : ThomasPlank → ℝ := fun d ↦ if d ∈ range diag then (invFun diag d : ℕ) else 0
  have hg : Continuous g :=
    continuous_of_isClosed_of_isOpen_singleton isClosed_range_diag
      (by rintro _ ⟨m, rfl⟩; exact isOpen_singleton_diag m)
      fun d hd ↦ by simp only [g, hd, ↓reduceIte]
  obtain ⟨b, hb⟩ := (h.bddAbove_and_bddBelow_range ⟨g, hg⟩).1
  obtain ⟨m, hm⟩ := exists_nat_gt b
  have h1 := hb ⟨diag m, rfl⟩
  have h2 : g (diag m) = m := by
    simp [g, leftInverse_invFun diag_injective m]
  change g (diag m) ≤ b at h1
  linarith

On this site: The Thomas plank is not pseudocompact