Lean library · module TopologyByExample.Spaces.AlexandroffPlank

The Alexandroff plank

Source file

The Alexandroff plank is the set [0, ω₁] × [-1, 1], modelled as OnePoint OmegaOne × Set.Icc (-1 : ℝ) 1, with the product topology refined at the single point c = (ω₁, 0) (the corner): the sets U α n = {c} ∪ (α, ω₁] × (0, 1 / (n + 2)) are made open. A set is open when it is a neighbourhood in the product of each of its points other than c, and contains some U α n if it contains c. The type synonym is AlexandroffPlank, with the identifications AlexandroffPlank.toP and AlexandroffPlank.ofP with the product.

Away from c the neighbourhoods are those of the product (AlexandroffPlank.mem_nhds_ofP_iff), and at c they are generated by the sets U α n (AlexandroffPlank.mem_nhds_corner_iff). The topology is finer than the product topology, so the plank is functionally Hausdorff, but c cannot be separated from the closed set ω₁ × {0}, so the plank is not regular. Each U α n is regular open, and away from c the regular open sets of the product serve, so the plank is semiregular.

The countable ordinals with [-1, 1] form a dense subspace in which every countable set lies in a compact set [0, α] × [-1, 1], so every continuous real function is bounded: the plank is pseudocompact. But the points (ω₁, -1 / (m + 2)) give decreasing closed sets with empty intersection whose open neighbourhoods all accumulate at points (β, 0), so the plank is not countably paracompact, and hence not countably compact.

Main statements

References

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

Tags

Alexandroff plank, pseudocompact, countably paracompact, semiregular, first uncountable ordinal

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 AlexandroffPlank

TopologyByExample.AlexandroffPlank

The Alexandroff plank: [0, ω₁] × [-1, 1], as a type synonym of OnePoint OmegaOne × Set.Icc (-1 : ℝ) 1, with the product topology refined at (ω₁, 0) (the topology is AlexandroffPlank.instTopologicalSpace).

def AlexandroffPlank : Type
:= OnePoint OmegaOne × Set.Icc (-1 : ℝ) 1

On this site: Space: Alexandroff plank

definition Base

TopologyByExample.AlexandroffPlank.Base

The underlying product [0, ω₁] × [-1, 1], with its product topology.

abbrev Base : Type
:= OnePoint OmegaOne × Set.Icc (-1 : ℝ) 1

definition toP

TopologyByExample.AlexandroffPlank.toP

The identification of the plank with the product.

def toP : AlexandroffPlank → Base
:= id

definition ofP

TopologyByExample.AlexandroffPlank.ofP

The identification of the product with the plank.

def ofP : Base → AlexandroffPlank
:= id

theorem toP_ofP

TopologyByExample.AlexandroffPlank.toP_ofP

toP undoes ofP.

@[simp] theorem toP_ofP (x : Base) : toP (ofP x) = x
Proof
:= rfl

theorem ofP_toP

TopologyByExample.AlexandroffPlank.ofP_toP

ofP undoes toP.

@[simp] theorem ofP_toP (x : AlexandroffPlank) : ofP (toP x) = x
Proof
:= rfl

definition zero

TopologyByExample.AlexandroffPlank.zero

The point 0 of [-1, 1].

def zero : Set.Icc (-1 : ℝ) 1
:= ⟨0, by norm_num, by norm_num⟩

definition one

TopologyByExample.AlexandroffPlank.one

The point 1 of [-1, 1].

def one : Set.Icc (-1 : ℝ) 1
:= ⟨1, by norm_num, by norm_num⟩

definition corner

TopologyByExample.AlexandroffPlank.corner

The corner c = (ω₁, 0), the one point at which the topology is refined.

def corner : Base
:= (∞, zero)

definition U

TopologyByExample.AlexandroffPlank.U

The basic neighbourhood {c} ∪ (α, ω₁] × (0, 1 / (n + 2)) of the corner.

def U (α : OmegaOne) (n : ℕ) : Set Base
:=
  insert corner ({z | z ∉ ((↑) '' Iic α : Set (OnePoint OmegaOne))} ×ˢ
    {v : Set.Icc (-1 : ℝ) 1 | 0 < (v : ℝ) ∧ (v : ℝ) < 1 / ((n : ℝ) + 2)})

definition IsPlankOpen

TopologyByExample.AlexandroffPlank.IsPlankOpen

A set of the product is plank-open if it is a neighbourhood in the product of each of its points other than the corner, and contains some U α n if it contains the corner.

def IsPlankOpen (s : Set Base) : Prop
:=
  ∀ x ∈ s, (x ≠ corner → s ∈ 𝓝 x) ∧ (x = corner → ∃ α n, U α n ⊆ s)

theorem U_anti

TopologyByExample.AlexandroffPlank.U_anti

The sets U α n shrink as α and n grow.

theorem U_anti {α β : OmegaOne} {n m : ℕ} (hαβ : α ≤ β) (hnm : n ≤ m) : U β m ⊆ U α n
Proof
:= by
  rintro x (rfl | ⟨hz, hv0, hvn⟩)
  · exact mem_insert _ _
  · refine Or.inr ⟨fun h ↦ hz (image_mono (Iic_subset_Iic.2 hαβ) h), hv0, hvn.trans_le ?_⟩
    gcongr

instance instTopologicalSpace

TopologyByExample.AlexandroffPlank.instTopologicalSpace

The plank topology.

instance instTopologicalSpace : TopologicalSpace AlexandroffPlank
Proof
where
  IsOpen s := IsPlankOpen (ofP ⁻¹' s)
  isOpen_univ x _ := ⟨fun _ ↦ univ_mem, fun _ ↦ ⟨⊥, 0, subset_univ _⟩⟩
  isOpen_inter s t hs ht x hx := by
    refine ⟨fun hxc ↦ inter_mem ((hs x hx.1).1 hxc) ((ht x hx.2).1 hxc), fun hxc ↦ ?_⟩
    obtain ⟨α, n, hα⟩ := (hs x hx.1).2 hxc
    obtain ⟨β, m, hβ⟩ := (ht x hx.2).2 hxc
    exact ⟨max α β, max n m, subset_inter
      ((U_anti (le_max_left _ _) (le_max_left _ _)).trans hα)
      ((U_anti (le_max_right _ _) (le_max_right _ _)).trans hβ)⟩
  isOpen_sUnion S hS x hx := by
    obtain ⟨s, hsS, hxs⟩ := mem_sUnion.1 hx
    refine ⟨fun hxc ↦ mem_of_superset ((hS s hsS x hxs).1 hxc) (subset_sUnion_of_mem hsS),
      fun hxc ↦ ?_⟩
    obtain ⟨α, n, h⟩ := (hS s hsS x hxs).2 hxc
    exact ⟨α, n, h.trans (subset_sUnion_of_mem hsS)⟩

theorem isOpen_iff

TopologyByExample.AlexandroffPlank.isOpen_iff

A set is open in the plank if and only if it is plank-open.

theorem isOpen_iff {s : Set AlexandroffPlank} : IsOpen s ↔ IsPlankOpen (ofP ⁻¹' s)
Proof
:=
  Iff.rfl

theorem isOpen_compl_image_Iic

TopologyByExample.AlexandroffPlank.isOpen_compl_image_Iic

The set (α, ω₁] is open in [0, ω₁].

theorem isOpen_compl_image_Iic (α : OmegaOne) :
    IsOpen {z | z ∉ ((↑) '' Iic α : Set (OnePoint OmegaOne))}
Proof
:=
  ((OmegaOne.isCompact_Iic α).image continuous_coe).isClosed.isOpen_compl

theorem isOpen_U_diff

TopologyByExample.AlexandroffPlank.isOpen_U_diff

The product part (α, ω₁] × (0, 1 / (n + 2)) of U α n is open in the product.

theorem isOpen_U_diff (α : OmegaOne) (n : ℕ) :
    IsOpen ({z | z ∉ ((↑) '' Iic α : Set (OnePoint OmegaOne))} ×ˢ
      {v : Set.Icc (-1 : ℝ) 1 | 0 < (v : ℝ) ∧ (v : ℝ) < 1 / ((n : ℝ) + 2)})
Proof
:=
  (isOpen_compl_image_Iic α).prod
    ((isOpen_Ioo (a := (0 : ℝ)) (b := 1 / ((n : ℝ) + 2))).preimage continuous_subtypeVal)

theorem isPlankOpen_U

TopologyByExample.AlexandroffPlank.isPlankOpen_U

Each U α n is plank-open.

theorem isPlankOpen_U (α : OmegaOne) (n : ℕ) : IsPlankOpen (U α n)
Proof
:= by
  rintro x hx
  refine ⟨fun hxc ↦ ?_, fun _ ↦ ⟨α, n, subset_rfl⟩⟩
  rcases hx with rfl | hx
  · exact absurd rfl hxc
  · exact mem_of_superset ((isOpen_U_diff α n).mem_nhds hx) (subset_insert _ _)

theorem isOpen_U

TopologyByExample.AlexandroffPlank.isOpen_U

Each U α n is open in the plank.

theorem isOpen_U (α : OmegaOne) (n : ℕ) : IsOpen (ofP '' U α n)
Proof
:= by
  rw [isOpen_iff]
  convert isPlankOpen_U α n
  ext x
  refine ⟨fun ⟨y, hy, hyx⟩ ↦ ?_, fun hx ↦ ⟨x, hx, rfl⟩⟩
  have : y = x := hyx
  exact this ▸ hy

theorem exists_U_subset_of_mem_nhds

TopologyByExample.AlexandroffPlank.exists_U_subset_of_mem_nhds

Every neighbourhood of the corner in the product contains some U α n.

theorem exists_U_subset_of_mem_nhds {s : Set Base} (hs : s ∈ 𝓝 corner) :
    ∃ α n, U α n ⊆ s
Proof
:= by
  obtain ⟨u, hu, v, hv, huv⟩ := mem_nhds_prod_iff.1 hs
  obtain ⟨b, hb⟩ := TychonoffPlank.exists_forall_lt_mem_of_mem_nhds_infty hu
  obtain ⟨ε, hε, hεv⟩ := Metric.mem_nhds_iff.1 hv
  obtain ⟨n, hn⟩ := exists_nat_one_div_lt hε
  refine ⟨b, n, ?_⟩
  rintro x (rfl | ⟨hz, hv0, hvn⟩)
  · exact mem_of_mem_nhds hs
  · obtain ⟨z, w⟩ := x
    refine huv ⟨?_, hεv ?_⟩
    · induction z using OnePoint.rec with
      | infty => exact mem_of_mem_nhds hu
      | coe j => exact hb j (lt_of_not_ge fun h ↦ hz ⟨j, h, rfl⟩)
    · rw [Metric.mem_ball, Subtype.dist_eq, Real.dist_eq]
      have h2 : 1 / ((n : ℝ) + 2) ≤ 1 / ((n : ℝ) + 1) := by gcongr; linarith
      change |(w : ℝ) - 0| < ε
      rw [sub_zero, abs_of_pos hv0]
      linarith

theorem continuous_toP

TopologyByExample.AlexandroffPlank.continuous_toP

An open set of the product is open in the plank: the plank topology is finer.

theorem continuous_toP : Continuous toP
Proof
:= by
  refine continuous_def.2 fun s hs x hx ↦ ⟨fun _ ↦ hs.mem_nhds hx, fun hxc ↦ ?_⟩
  subst hxc
  exact exists_U_subset_of_mem_nhds (hs.mem_nhds hx)

theorem mem_nhds_ofP_iff

TopologyByExample.AlexandroffPlank.mem_nhds_ofP_iff

Away from the corner the plank has the neighbourhoods of the product.

theorem mem_nhds_ofP_iff {x : Base} (hx : x ≠ corner) {t : Set AlexandroffPlank} :
    t ∈ 𝓝 (ofP x) ↔ ofP ⁻¹' t ∈ 𝓝 x
Proof
:= by
  constructor
  · intro ht
    obtain ⟨s, hst, hs, hxs⟩ := mem_nhds_iff.1 ht
    exact mem_of_superset ((hs x hxs).1 hx) (preimage_mono hst)
  · intro ht
    exact continuous_toP.continuousAt.preimage_mem_nhds (x := ofP x) ht

theorem mem_nhds_corner_iff

TopologyByExample.AlexandroffPlank.mem_nhds_corner_iff

The neighbourhoods of the corner are the sets containing some U α n.

theorem mem_nhds_corner_iff {t : Set AlexandroffPlank} :
    t ∈ 𝓝 (ofP corner) ↔ ∃ α n, U α n ⊆ ofP ⁻¹' t
Proof
:= by
  constructor
  · intro ht
    obtain ⟨s, hst, hs, hcs⟩ := mem_nhds_iff.1 ht
    obtain ⟨α, n, h⟩ := (hs corner hcs).2 rfl
    exact ⟨α, n, h.trans hst⟩
  · rintro ⟨α, n, h⟩
    refine mem_of_superset ((isOpen_U α n).mem_nhds ⟨corner, mem_insert _ _, rfl⟩) ?_
    rintro _ ⟨y, hy, rfl⟩
    exact h hy

theorem continuous_ofP_comp

TopologyByExample.AlexandroffPlank.continuous_ofP_comp

A continuous map into the product avoiding the corner is continuous into the plank.

theorem continuous_ofP_comp {Z : Type*} [TopologicalSpace Z] {g : Z → Base} (hg : Continuous g)
    (hc : ∀ z, g z ≠ corner) : Continuous (ofP ∘ g)
Proof
:=
  continuous_iff_continuousAt.2 fun z _ ht ↦
    hg.continuousAt.preimage_mem_nhds ((mem_nhds_ofP_iff (hc z)).1 ht)

definition row

TopologyByExample.AlexandroffPlank.row

The row through a height v ≠ 0, as a map from [0, ω₁] into the plank.

def row (v : Set.Icc (-1 : ℝ) 1) (z : OnePoint OmegaOne) : AlexandroffPlank
:= ofP (z, v)

theorem continuous_row

TopologyByExample.AlexandroffPlank.continuous_row

Each row at a height other than 0 is continuous into the plank.

theorem continuous_row {v : Set.Icc (-1 : ℝ) 1} (hv : v ≠ zero) : Continuous (row v)
Proof
:=
  continuous_ofP_comp (continuous_id.prodMk continuous_const)
    fun _ h ↦ hv (congrArg Prod.snd h)

definition col

TopologyByExample.AlexandroffPlank.col

The point (β, v) for a countable ordinal β.

def col (β : OmegaOne) (v : Set.Icc (-1 : ℝ) 1) : AlexandroffPlank
:= ofP (β, v)

theorem continuous_col

TopologyByExample.AlexandroffPlank.continuous_col

Each column over a countable ordinal is continuous into the plank.

theorem continuous_col (β : OmegaOne) : Continuous (col β)
Proof
:=
  continuous_ofP_comp (continuous_const.prodMk continuous_id)
    fun _ h ↦ coe_ne_infty β (congrArg Prod.fst h)

theorem continuous_col_uncurry

TopologyByExample.AlexandroffPlank.continuous_col_uncurry

The points with countable first coordinate depend continuously on both coordinates.

theorem continuous_col_uncurry : Continuous fun p : OmegaOne × Set.Icc (-1 : ℝ) 1 ↦ col p.1 p.2
Proof
:=
  continuous_ofP_comp ((continuous_coe.comp continuous_fst).prodMk continuous_snd)
    fun p h ↦ coe_ne_infty p.1 (congrArg Prod.fst h)

instance

The plank is nonempty.

instance : Nonempty AlexandroffPlank
Proof
:= ⟨ofP corner⟩

Points of [-1, 1] near a given point

theorem exists_gt_mem_of_mem_nhds

TopologyByExample.AlexandroffPlank.exists_gt_mem_of_mem_nhds

A neighbourhood of a point v < 1 of [-1, 1] contains points just above v.

theorem exists_gt_mem_of_mem_nhds {v : Set.Icc (-1 : ℝ) 1} {S : Set (Set.Icc (-1 : ℝ) 1)}
    (hS : S ∈ 𝓝 v) (hv : (v : ℝ) < 1) {δ : ℝ} (hδ : 0 < δ) :
    ∃ w ∈ S, (v : ℝ) < w ∧ (w : ℝ) < v + δ
Proof
:= by
  obtain ⟨ε, hε, hεS⟩ := Metric.mem_nhds_iff.1 hS
  set η := min (min δ ε) (1 - v) with hη
  have hη0 : 0 < η := lt_min (lt_min hδ hε) (by linarith)
  have hηδ : η ≤ δ := (min_le_left _ _).trans (min_le_left _ _)
  have hηε : η ≤ ε := (min_le_left _ _).trans (min_le_right _ _)
  have hη1 : η ≤ 1 - v := min_le_right _ _
  refine ⟨⟨v + η / 2, by linarith [v.property.1], by linarith⟩, hεS ?_, by simp; linarith,
    by simp; linarith⟩
  rw [Metric.mem_ball, Subtype.dist_eq, Real.dist_eq]
  simp only
  rw [add_sub_cancel_left, abs_of_pos (by linarith)]
  linarith

theorem exists_lt_mem_of_mem_nhds

TopologyByExample.AlexandroffPlank.exists_lt_mem_of_mem_nhds

A neighbourhood of a point v > -1 of [-1, 1] contains points just below v.

theorem exists_lt_mem_of_mem_nhds {v : Set.Icc (-1 : ℝ) 1} {S : Set (Set.Icc (-1 : ℝ) 1)}
    (hS : S ∈ 𝓝 v) (hv : -1 < (v : ℝ)) : ∃ w ∈ S, (w : ℝ) < v
Proof
:= by
  obtain ⟨ε, hε, hεS⟩ := Metric.mem_nhds_iff.1 hS
  set η := min ε (v + 1) with hη
  have hη0 : 0 < η := lt_min hε (by linarith)
  have hηε : η ≤ ε := min_le_left _ _
  have hη1 : η ≤ v + 1 := min_le_right _ _
  refine ⟨⟨v - η / 2, by linarith, by linarith [v.property.2]⟩, hεS ?_, by simp; linarith⟩
  rw [Metric.mem_ball, Subtype.dist_eq, Real.dist_eq]
  simp only
  rw [sub_sub_cancel_left, abs_neg, abs_of_pos (by linarith)]
  linarith

Separation

instance functionallyHausdorffSpace

TopologyByExample.AlexandroffPlank.functionallyHausdorffSpace

The plank is functionally Hausdorff: its topology is finer than that of the compact Hausdorff product, whose continuous functions separate points.

instance functionallyHausdorffSpace : FunctionallyHausdorffSpace AlexandroffPlank
Proof
:=
  FunctionallyHausdorffSpace.of_injective_continuous (f := toP) (fun _ _ h ↦ h) continuous_toP

On this site: The Alexandroff plank is functionally Hausdorff

definition bottom

TopologyByExample.AlexandroffPlank.bottom

The bottom edge ω₁ × {0}: the points (β, 0) with β a countable ordinal.

def bottom : Set AlexandroffPlank
:= {d | (toP d).2 = zero ∧ (toP d).1 ≠ ∞}

theorem not_separated

TopologyByExample.AlexandroffPlank.not_separated

The corner cannot be separated from the bottom edge. The bottom edge ω₁ × {0} is closed and does not contain the corner (ω₁, 0), yet every neighbourhood of the corner meets every open set containing it.

theorem not_separated :
    IsClosed bottom ∧ ofP corner ∉ bottom ∧
      ∀ N ∈ 𝓝 (ofP corner), ∀ V : Set AlexandroffPlank, IsOpen V → bottom ⊆ V →
        (N ∩ V).Nonempty
Proof
:= by
  refine ⟨?_, fun h ↦ h.2 rfl, fun N hN V hV hbV ↦ ?_⟩
  · rw [← isOpen_compl_iff, isOpen_iff]
    intro x hx
    refine ⟨fun hxc ↦ ?_, fun hxc ↦ ⟨⊥, 0, ?_⟩⟩
    · have hx' : x ∉ ({p : Base | p.2 = zero}) := fun h ↦ by
        refine hx ⟨h, fun h1 ↦ hxc ?_⟩
        exact Prod.ext h1 h
      refine mem_of_superset ((isClosed_singleton.preimage continuous_snd).isOpen_compl.mem_nhds
        hx') fun y hy hyb ↦ hy hyb.1
    · rintro y (rfl | ⟨-, hv0, -⟩) hyb
      · exact hyb.2 rfl
      · exact (ne_of_gt hv0) (congrArg Subtype.val hyb.1)
  · obtain ⟨α, n, hαn⟩ := mem_nhds_corner_iff.1 hN
    obtain ⟨β, hβ⟩ := exists_gt α
    have hq : col β zero ∈ V := hbV ⟨rfl, coe_ne_infty β⟩
    have hS : col β ⁻¹' V ∈ 𝓝 zero := (continuous_col β).continuousAt.preimage_mem_nhds
      (hV.mem_nhds hq)
    obtain ⟨w, hwV, hw0, hwn⟩ := exists_gt_mem_of_mem_nhds hS (by simp [zero])
      (δ := 1 / ((n : ℝ) + 2)) (by positivity)
    have hmem : ((β : OnePoint OmegaOne), w) ∈ U α n := by
      refine Or.inr ⟨fun ⟨j, hj, hjβ⟩ ↦ ?_, ?_, ?_⟩
      · exact (not_le.2 hβ) (coe_injective hjβ ▸ hj)
      · simpa [zero] using hw0
      · simpa [zero] using hwn
    exact ⟨col β w, hαn hmem, hwV⟩

On this site: Alexandroff plank: The corner cannot be separated from the bottom edge

theorem not_regularSpace

TopologyByExample.AlexandroffPlank.not_regularSpace

The plank is not regular: the corner and the closed bottom edge have no disjoint neighbourhoods.

theorem not_regularSpace : ¬RegularSpace AlexandroffPlank
Proof
:= by
  intro _
  obtain ⟨hcl, hc, h⟩ := not_separated
  obtain ⟨V, hV, N, hN, hVN⟩ := Filter.disjoint_iff.1 (RegularSpace.regular hcl hc)
  obtain ⟨V', hV'o, hbV', hV'V⟩ := mem_nhdsSet_iff_exists.1 hV
  obtain ⟨y, hyN, hyV⟩ := h N hN V' hV'o hbV'
  exact disjoint_left.1 hVN (hV'V hyV) hyN

On this site: The Alexandroff plank is not regular

theorem exists_regularOpen

TopologyByExample.AlexandroffPlank.exists_regularOpen

A point with a closed neighbourhood inside an open set t lies in a regular open subset of t.

theorem exists_regularOpen {X : Type*} [TopologicalSpace X] {x : X} {W t : Set X}
    (hW : W ∈ 𝓝 x) (hWc : IsClosed W) (hWt : W ⊆ t) :
    ∃ r ∈ {s : Set X | interior (closure s) = s}, x ∈ r ∧ r ⊆ t
Proof
:=
  ⟨interior (closure (interior W)), interior_closure_idem,
    isOpen_interior.subset_interior_closure (mem_interior_iff_mem_nhds.2 hW),
    fun _ hy ↦ hWt (hWc.closure_interior_subset (interior_subset hy))⟩

instance semiregularSpace

TopologyByExample.AlexandroffPlank.semiregularSpace

The plank is semiregular. At the corner the sets U α n are regular open; at any other point the plank is locally the regular product.

instance semiregularSpace : SemiregularSpace AlexandroffPlank
Proof
:= by
  refine ⟨TopologicalSpace.isTopologicalBasis_of_isOpen_of_nhds (fun r hr ↦ hr ▸ isOpen_interior)
    fun x t hx ht ↦ ?_⟩
  by_cases hxc : toP x = corner
  · obtain ⟨α, n, hαn⟩ := mem_nhds_corner_iff.1 (hxc ▸ ht.mem_nhds hx : t ∈ 𝓝 (ofP corner))
    refine ⟨ofP '' U α n, ?_, ⟨corner, mem_insert _ _, hxc.symm⟩,
      by rintro _ ⟨y, hy, rfl⟩; exact hαn hy⟩
    -- `U α n` lies in the closed set `A`, whose interior points other than the corner are in it
    let A : Set Base := {z | z ∉ ((↑) '' Iic α : Set (OnePoint OmegaOne))} ×ˢ
      {v : Set.Icc (-1 : ℝ) 1 | 0 ≤ (v : ℝ) ∧ (v : ℝ) ≤ 1 / ((n : ℝ) + 2)}
    have hAc : IsClosed A :=
      (isOpenEmbedding_coe.isOpenMap _ (OmegaOne.isOpen_Iic α)).isClosed_compl.prod
        (isClosed_Icc.preimage continuous_subtypeVal)
    have hUA : ofP '' U α n ⊆ toP ⁻¹' A := by
      rintro _ ⟨y, (rfl | ⟨hz, hv0, hvn⟩), rfl⟩
      · exact ⟨fun ⟨j, _, hj⟩ ↦ coe_ne_infty j hj, show (0 : ℝ) ≤ 0 from le_rfl,
          show (0 : ℝ) ≤ 1 / ((n : ℝ) + 2) by positivity⟩
      · exact ⟨hz, hv0.le, hvn.le⟩
    have hb : 1 / ((n : ℝ) + 2) < 1 := by
      rw [div_lt_one (by positivity)]
      linarith [(Nat.cast_nonneg n : (0 : ℝ) ≤ n)]
    refine subset_antisymm (fun y hy ↦ ?_) (isOpen_U α n).subset_interior_closure
    have hy' : y ∈ interior (toP ⁻¹' A) :=
      interior_mono (closure_minimal hUA (hAc.preimage continuous_toP)) hy
    by_cases hyc : toP y = corner
    · exact ⟨corner, mem_insert _ _, hyc.symm⟩
    have hAy : A ∈ 𝓝 (toP y) := (mem_nhds_ofP_iff hyc).1 (mem_interior_iff_mem_nhds.1 hy')
    obtain ⟨hz, hv0, hvb⟩ := mem_of_mem_nhds hAy
    have hS : {w : Set.Icc (-1 : ℝ) 1 | ((toP y).1, w) ∈ A} ∈ 𝓝 (toP y).2 :=
      (continuous_const.prodMk continuous_id).continuousAt.preimage_mem_nhds hAy
    have hv0' : 0 < ((toP y).2 : ℝ) := by
      refine lt_of_le_of_ne hv0 fun h ↦ ?_
      obtain ⟨w, hw, hwv⟩ := exists_lt_mem_of_mem_nhds hS (by rw [← h]; norm_num)
      exact absurd hw.2.1 (not_le.2 (h ▸ hwv))
    have hvb' : ((toP y).2 : ℝ) < 1 / ((n : ℝ) + 2) := by
      refine lt_of_le_of_ne hvb fun h ↦ ?_
      obtain ⟨w, hw, hwv, -⟩ := exists_gt_mem_of_mem_nhds hS (by rw [h]; exact hb) one_pos
      exact absurd hw.2.2 (not_le.2 (h ▸ hwv))
    exact ⟨toP y, Or.inr ⟨hz, hv0', hvb'⟩, rfl⟩
  · have ht' : ofP ⁻¹' t ∩ {corner}ᶜ ∈ 𝓝 (toP x) :=
      inter_mem ((mem_nhds_ofP_iff hxc).1 (ht.mem_nhds hx)) (isOpen_compl_singleton.mem_nhds hxc)
    obtain ⟨F, hF, hFc, hFt⟩ := exists_mem_nhds_isClosed_subset ht'
    refine exists_regularOpen (W := toP ⁻¹' F) ((mem_nhds_ofP_iff hxc).2 hF)
      (hFc.preimage continuous_toP) fun y hy ↦ (hFt hy).1

On this site: The Alexandroff plank is semiregular

Category

theorem baireSpace

TopologyByExample.AlexandroffPlank.baireSpace

The plank is a Baire space: the identity onto the compact Hausdorff product is a continuous surjection, and every nonempty open set of the plank contains a nonempty open set of the product.

theorem baireSpace : BaireSpace AlexandroffPlank
Proof
:= by
  refine baireSpace_of_continuous_of_surjective continuous_toP (fun x ↦ ⟨ofP x, rfl⟩)
    fun W hW ⟨x, hx⟩ ↦ ?_
  have hW' : IsPlankOpen (ofP ⁻¹' W) := isOpen_iff.1 hW
  by_cases hxc : toP x = corner
  · obtain ⟨α, n, h⟩ := (hW' (toP x) hx).2 hxc
    obtain ⟨β, hβ⟩ := exists_gt α
    refine ⟨_, isOpen_U_diff α n, ⟨((β : OnePoint OmegaOne),
      ⟨1 / ((n : ℝ) + 3), ?_, ?_⟩), ?_, ?_, ?_⟩, fun y hy ↦ h (Or.inr hy)⟩
    · have : (0 : ℝ) ≤ 1 / ((n : ℝ) + 3) := by positivity
      linarith
    · rw [div_le_one (by positivity)]
      linarith [(Nat.cast_nonneg n : (0 : ℝ) ≤ n)]
    · exact fun ⟨j, hj, hjβ⟩ ↦ (not_le.2 hβ) (coe_injective hjβ ▸ hj)
    · change (0 : ℝ) < 1 / ((n : ℝ) + 3)
      positivity
    · change 1 / ((n : ℝ) + 3) < 1 / ((n : ℝ) + 2)
      gcongr
      linarith
  · exact ⟨interior (ofP ⁻¹' W), isOpen_interior,
      ⟨toP x, mem_interior_iff_mem_nhds.2 ((hW' (toP x) hx).1 hxc)⟩,
      fun y hy ↦ (interior_subset (s := ofP ⁻¹' W) (a := toP y) hy : toP y ∈ ofP ⁻¹' W)⟩

On this site: The Alexandroff plank is a Baire space

Countability and compactness

theorem not_lindelofSpace

TopologyByExample.AlexandroffPlank.not_lindelofSpace

The plank is not Lindelöf: its bottom edge is closed and is a copy of ω₁, which is not Lindelöf.

theorem not_lindelofSpace : ¬LindelofSpace AlexandroffPlank
Proof
:= by
  intro _
  have h := (not_separated.1.isLindelof).image ((continuous_fst.comp continuous_toP))
  have himg : (Prod.fst ∘ toP) '' bottom = range ((↑) : OmegaOne → OnePoint OmegaOne) := by
    ext z
    constructor
    · rintro ⟨d, ⟨-, hd⟩, rfl⟩
      exact OnePoint.ne_infty_iff_exists.1 hd
    · rintro ⟨β, rfl⟩
      exact ⟨col β zero, ⟨rfl, coe_ne_infty β⟩, rfl⟩
  rw [himg, ← image_univ, ← isOpenEmbedding_coe.isInducing.isLindelof_iff] at h
  exact OmegaOne.not_lindelofSpace ⟨h⟩

On this site: The Alexandroff plank is not Lindelöf

theorem not_countableChainCondition

TopologyByExample.AlexandroffPlank.not_countableChainCondition

The plank does not satisfy the countable chain condition: it maps continuously onto [0, ω₁], which contains ω₁ as an open subspace.

theorem not_countableChainCondition :
    ¬∀ S : Set (Set AlexandroffPlank), (∀ s ∈ S, IsOpen s ∧ s.Nonempty) →
      S.PairwiseDisjoint id → S.Countable
Proof
:= fun h ↦
  OmegaOne.not_countableChainCondition (ccc_of_isOpenEmbedding isOpenEmbedding_coe
    (ccc_of_continuous_surjective (continuous_fst.comp continuous_toP)
      (fun z ↦ ⟨ofP (z, zero), rfl⟩) h))

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

theorem isEmbedding_row_one

TopologyByExample.AlexandroffPlank.isEmbedding_row_one

The row at height 1 is an embedding of [0, ω₁] into the plank.

theorem isEmbedding_row_one : IsEmbedding (row one)
Proof
:=
  IsEmbedding.of_comp (continuous_row fun h ↦ by
    have := congrArg Subtype.val h
    norm_num [one, zero] at this) (continuous_fst.comp continuous_toP) IsEmbedding.id

theorem not_firstCountableTopology

TopologyByExample.AlexandroffPlank.not_firstCountableTopology

The plank is not first countable: the row at height 1 is a copy of [0, ω₁], which is not first countable at ω₁.

theorem not_firstCountableTopology : ¬FirstCountableTopology AlexandroffPlank
Proof
:= fun _ ↦
  OmegaOnePlusOne.not_firstCountableTopology isEmbedding_row_one.isInducing.firstCountableTopology

On this site: The Alexandroff plank is not first countable

definition lower

TopologyByExample.AlexandroffPlank.lower

The decreasing closed sets {(ω₁, -1 / (m + 2)) : m ≥ n}.

noncomputable def lower (m : ℕ) : Set.Icc (-1 : ℝ) 1
Definition
:=
  ⟨-(1 / ((m : ℝ) + 2)), by
    have : 1 / ((m : ℝ) + 2) ≤ 1 := by
      rw [div_le_one (by positivity)]
      linarith [(Nat.cast_nonneg m : (0 : ℝ) ≤ m)]
    linarith, by
    have : (0 : ℝ) ≤ 1 / ((m : ℝ) + 2) := by positivity
    linarith⟩

theorem lower_ne_zero

TopologyByExample.AlexandroffPlank.lower_ne_zero

The heights -1 / (m + 2) are not 0.

theorem lower_ne_zero (m : ℕ) : lower m ≠ zero
Proof
:= fun h ↦ by
  have := congrArg Subtype.val h
  simp only [lower, zero, neg_eq_zero, one_div, inv_eq_zero] at this
  linarith [(Nat.cast_nonneg m : (0 : ℝ) ≤ m)]

theorem lower_neg

TopologyByExample.AlexandroffPlank.lower_neg

The heights -1 / (m + 2) are negative.

theorem lower_neg (m : ℕ) : (lower m : ℝ) < 0
Proof
:= by
  change -(1 / ((m : ℝ) + 2)) < 0
  have : (0 : ℝ) < 1 / ((m : ℝ) + 2) := by positivity
  linarith

theorem lower_injective

TopologyByExample.AlexandroffPlank.lower_injective

The heights -1 / (m + 2) are distinct.

theorem lower_injective : Injective lower
Proof
:= fun m k h ↦ by
  have := congrArg Subtype.val h
  simp only [lower, neg_inj, one_div, inv_inj, add_left_inj, Nat.cast_inj] at this
  exact this

theorem tendsto_lower

TopologyByExample.AlexandroffPlank.tendsto_lower

The heights -1 / (m + 2) converge to 0.

theorem tendsto_lower : Tendsto lower atTop (𝓝 zero)
Proof
:= by
  rw [tendsto_subtype_rng, show ((zero : Set.Icc (-1 : ℝ) 1) : ℝ) = 0 from rfl]
  have h : Tendsto (fun m : ℕ ↦ ((m : ℝ) + 2)) atTop atTop :=
    tendsto_atTop_add_const_right _ 2 tendsto_natCast_atTop_atTop
  have := (h.inv_tendsto_atTop).neg
  simp only [neg_zero] at this
  convert this using 2 with m
  simp [lower]

theorem not_countablyParacompactSpace

TopologyByExample.AlexandroffPlank.not_countablyParacompactSpace

The plank is not countably paracompact. The sets Fₙ = {(ω₁, -1 / (m + 2)) : m ≥ n} are closed, decreasing, with empty intersection. If open sets Gₙ ⊇ Fₙ decrease, there is a countable ordinal β with (β, -1 / (m + 2)) ∈ Gₘ for every m; these points converge to (β, 0), which therefore lies in the closure of every Gₙ.

theorem not_countablyParacompactSpace : ¬CountablyParacompactSpace AlexandroffPlank
Proof
:= by
  intro hX
  let F : ℕ → Set AlexandroffPlank := fun n ↦
    {d | (toP d).1 = ∞ ∧ (toP d).2 ∈ insert zero (range fun m ↦ lower (n + m))} \
      ofP '' U ⊥ 0
  have hFc (n : ℕ) : IsClosed (F n) := by
    have htail : Tendsto (fun m ↦ lower (n + m)) atTop (𝓝 zero) :=
      tendsto_lower.comp (tendsto_atTop_atTop_of_monotone (fun _ _ h ↦ Nat.add_le_add_left h n)
        fun m ↦ ⟨m, Nat.le_add_left m n⟩)
    exact ((isClosed_singleton.preimage (continuous_fst.comp continuous_toP)).inter
      (htail.isCompact_insert_range.isClosed.preimage (continuous_snd.comp continuous_toP))).sdiff
      (isOpen_U ⊥ 0)
  have hFa : Antitone F := by
    intro n k hnk d ⟨⟨hd1, hd2⟩, hd3⟩
    refine ⟨⟨hd1, ?_⟩, hd3⟩
    rcases hd2 with hd2 | ⟨m, hm⟩
    · exact Or.inl hd2
    · refine Or.inr ⟨k - n + m, ?_⟩
      simp only at hm ⊢
      rw [← hm]
      congr 1
      omega
  have hF : ⋂ n, F n = ∅ := by
    refine eq_empty_of_forall_notMem fun d hd ↦ ?_
    rw [mem_iInter] at hd
    have hq : (toP d).2 ≠ zero := fun h ↦ (hd 0).2 ⟨toP d, by
      rw [show toP d = corner from Prod.ext (hd 0).1.1 h]; exact mem_insert _ _, rfl⟩
    obtain ⟨m₀, hm₀⟩ := (hd 0).1.2.resolve_left hq
    obtain ⟨m₁, hm₁⟩ := (hd (m₀ + 1)).1.2.resolve_left hq
    have := lower_injective (hm₀.trans hm₁.symm)
    omega
  obtain ⟨G, hGo, hFG, hGa, hG⟩ := hX.exists_open_iInter_closure_eq_empty hFc hFa hF
  have hmem (m : ℕ) : row (lower m) ∞ ∈ G m := by
    refine hFG m ⟨⟨rfl, Or.inr ⟨0, by simp only [add_zero]; rfl⟩⟩, ?_⟩
    rintro ⟨y, (rfl | ⟨-, hv0, -⟩), hy⟩
    · exact lower_ne_zero m (congrArg Prod.snd hy).symm
    · have : (y.2 : ℝ) = lower m := congrArg (fun p : Base ↦ (p.2 : ℝ)) hy
      linarith [lower_neg m]
  choose b hb using fun m ↦ TychonoffPlank.exists_forall_lt_mem_of_mem_nhds_infty
    ((hGo m).preimage (continuous_row (lower_ne_zero m)) |>.mem_nhds (hmem m))
  obtain ⟨β, -, hβ⟩ := OmegaOne.exists_gt_and_forall_gt ⊥ b
  have hT : Tendsto (fun m ↦ col β (lower m)) atTop (𝓝 (col β zero)) :=
    ((continuous_col β).tendsto zero).comp tendsto_lower
  have hcl (n : ℕ) : col β zero ∈ closure (G n) :=
    mem_closure_of_tendsto hT (eventually_atTop.2 ⟨n, fun m hm ↦ hGa hm (hb m β (hβ m))⟩)
  have : col β zero ∈ ⋂ n, closure (G n) := mem_iInter.2 hcl
  rwa [hG] at this

On this site: The Alexandroff plank is not countably paracompact

theorem dense_range_col

TopologyByExample.AlexandroffPlank.dense_range_col

The points (β, v) with β a countable ordinal are dense in the plank.

theorem dense_range_col : Dense (range fun p : OmegaOne × Set.Icc (-1 : ℝ) 1 ↦ col p.1 p.2)
Proof
:= by
  refine dense_iff_inter_open.2 fun W hW ⟨x, hx⟩ ↦ ?_
  by_cases hxc : toP x = corner
  · obtain ⟨α, n, h⟩ := (hW (toP x) hx).2 hxc
    obtain ⟨β, hβ⟩ := exists_gt α
    let w : Set.Icc (-1 : ℝ) 1 := ⟨1 / ((n : ℝ) + 3), by
      have : (0 : ℝ) ≤ 1 / ((n : ℝ) + 3) := by positivity
      linarith, by
      rw [div_le_one (by positivity)]
      linarith [(Nat.cast_nonneg n : (0 : ℝ) ≤ n)]⟩
    have hmem : ((β : OnePoint OmegaOne), w) ∈ U α n := by
      refine Or.inr ⟨fun ⟨j, hj, hjβ⟩ ↦ (not_le.2 hβ) (coe_injective hjβ ▸ hj), ?_, ?_⟩
      · change (0 : ℝ) < 1 / ((n : ℝ) + 3)
        positivity
      · change 1 / ((n : ℝ) + 3) < 1 / ((n : ℝ) + 2)
        gcongr
        linarith
    exact ⟨col β w, h hmem, ⟨(β, w), rfl⟩⟩
  by_cases hz : (toP x).1 = ∞
  · have hv : (toP x).2 ≠ zero := fun h ↦ hxc (Prod.ext hz h)
    have hxr : x = row (toP x).2 ∞ := by
      change toP x = ((∞ : OnePoint OmegaOne), (toP x).2)
      rw [← hz]
    obtain ⟨b, hb⟩ := TychonoffPlank.exists_forall_lt_mem_of_mem_nhds_infty
      ((hW.preimage (continuous_row hv)).mem_nhds (show row (toP x).2 ∞ ∈ W from hxr ▸ hx))
    obtain ⟨j, hj⟩ := exists_gt b
    exact ⟨col j (toP x).2, hb j hj, ⟨(j, (toP x).2), rfl⟩⟩
  · obtain ⟨β, hβ⟩ := OnePoint.ne_infty_iff_exists.1 hz
    refine ⟨x, hx, ⟨(β, (toP x).2), ?_⟩⟩
    change (((β : OnePoint OmegaOne), (toP x).2) : Base) = toP x
    rw [hβ]

theorem bddAbove_range

TopologyByExample.AlexandroffPlank.bddAbove_range

Every continuous real function on the plank is bounded above.

theorem bddAbove_range (f : C(AlexandroffPlank, ℝ)) : BddAbove (range f)
Proof
:= by
  by_contra hf
  have hex (k : ℕ) : ∃ p : OmegaOne × Set.Icc (-1 : ℝ) 1, (k : ℝ) < f (col p.1 p.2) := by
    obtain ⟨_, ⟨x, rfl⟩, hx⟩ := not_bddAbove_iff.1 hf k
    obtain ⟨_, hy, ⟨p, rfl⟩⟩ := dense_range_col.inter_open_nonempty _
      (isOpen_lt continuous_const f.continuous) ⟨x, hx⟩
    exact ⟨p, hy⟩
  choose p hp using hex
  obtain ⟨α, -, hα⟩ := OmegaOne.exists_gt_and_forall_gt ⊥ fun k ↦ (p k).1
  have hK : IsCompact ((fun q : OmegaOne × Set.Icc (-1 : ℝ) 1 ↦ f (col q.1 q.2)) ''
      (Iic α ×ˢ univ)) :=
    ((OmegaOne.isCompact_Iic α).prod isCompact_univ).image
      (f.continuous.comp continuous_col_uncurry)
  obtain ⟨M, hM⟩ := hK.bddAbove
  obtain ⟨k, hk⟩ := exists_nat_gt M
  have := hM ⟨p k, ⟨(hα k).le, trivial⟩, rfl⟩
  linarith [hp k]

theorem pseudocompactSpace

TopologyByExample.AlexandroffPlank.pseudocompactSpace

The plank is pseudocompact: every continuous real function is bounded, since its values on the dense set of points (β, v) with β countable are bounded (any countably many of them lie in a compact set [0, α] × [-1, 1]).

theorem pseudocompactSpace : PseudocompactSpace AlexandroffPlank
Proof
:= by
  refine ⟨fun f ↦ ⟨bddAbove_range f, ?_⟩⟩
  obtain ⟨M, hM⟩ := bddAbove_range (-f)
  refine ⟨-M, ?_⟩
  rintro _ ⟨x, rfl⟩
  have := hM ⟨x, rfl⟩
  simp only [ContinuousMap.neg_apply] at this
  linarith

On this site: The Alexandroff plank is pseudocompact

theorem pseudocompactSpace_and_not_countablyCompactSpace

TopologyByExample.AlexandroffPlank.pseudocompactSpace_and_not_countablyCompactSpace

The plank is pseudocompact but not countably compact.

theorem pseudocompactSpace_and_not_countablyCompactSpace :
    PseudocompactSpace AlexandroffPlank ∧ ¬CountablyCompactSpace AlexandroffPlank
Proof
:=
  ⟨pseudocompactSpace, fun _ ↦ not_countablyParacompactSpace inferInstance⟩

On this site: Alexandroff plank: Pseudocompact but not countably compact

Connectedness

theorem isClopen_col_bot

TopologyByExample.AlexandroffPlank.isClopen_col_bot

The first column {0} × [-1, 1] is clopen.

theorem isClopen_col_bot :
    IsClopen {d : AlexandroffPlank | (toP d).1 = ((⊥ : OmegaOne) : OnePoint OmegaOne)}
Proof
:= by
  have h : IsOpen ({((⊥ : OmegaOne) : OnePoint OmegaOne)} : Set (OnePoint OmegaOne)) := by
    have := isOpenEmbedding_coe.isOpenMap _ (OmegaOne.isOpen_Iic (⊥ : OmegaOne))
    rwa [Iic_bot, image_singleton] at this
  exact ⟨isClosed_singleton.preimage (continuous_fst.comp continuous_toP),
    h.preimage (continuous_fst.comp continuous_toP)⟩

theorem not_preconnectedSpace

TopologyByExample.AlexandroffPlank.not_preconnectedSpace

The plank is not connected: the first column is a nonempty proper clopen set.

theorem not_preconnectedSpace : ¬PreconnectedSpace AlexandroffPlank
Proof
:= by
  intro _
  rcases isClopen_iff.1 isClopen_col_bot with h | h
  · exact (h ▸ (show col ⊥ zero ∈ _ from rfl) : col ⊥ zero ∈ (∅ : Set AlexandroffPlank))
  · have : ofP corner ∈ {d : AlexandroffPlank | (toP d).1 = ((⊥ : OmegaOne) : OnePoint OmegaOne)} :=
      h ▸ mem_univ _
    exact coe_ne_infty _ this.symm

On this site: The Alexandroff plank is not connected

theorem not_totallyPathDisconnectedSpace

TopologyByExample.AlexandroffPlank.not_totallyPathDisconnectedSpace

The plank is not totally path-disconnected: the first column is a copy of [-1, 1].

theorem not_totallyPathDisconnectedSpace : ¬TotallyPathDisconnectedSpace AlexandroffPlank
Proof
:= by
  intro h
  have : PathConnectedSpace (Set.Icc (-1 : ℝ) 1) :=
    isPathConnected_iff_pathConnectedSpace.1 ((convex_Icc (-1 : ℝ) 1).isPathConnected
      ⟨0, by norm_num, by norm_num⟩)
  obtain ⟨γ⟩ := PathConnectedSpace.joined zero one
  have := h.eq_of_joined _ _ ⟨γ.map (continuous_col ⊥)⟩
  have := congrArg (fun d : AlexandroffPlank ↦ ((toP d).2 : ℝ)) this
  norm_num [col, zero, one] at this

On this site: The Alexandroff plank is not totally path disconnected

theorem totallyDisconnectedSpace_onePoint

TopologyByExample.AlexandroffPlank.totallyDisconnectedSpace_onePoint

[0, ω₁] is totally disconnected.

theorem totallyDisconnectedSpace_onePoint : TotallyDisconnectedSpace (OnePoint OmegaOne)
Proof
:=
  have : TotallySeparatedSpace (WithTop OmegaOne) := totallySeparatedSpace_of_wellFoundedLT
  have : TotallySeparatedSpace (OnePoint OmegaOne) :=
    totallySeparatedSpace_of_injective (onePointHomeomorphWithTop OmegaOne).continuous
      (onePointHomeomorphWithTop OmegaOne).injective
  inferInstance

theorem not_locallyConnectedSpace

TopologyByExample.AlexandroffPlank.not_locallyConnectedSpace

The plank is not locally connected. The component of the point (ω₁, 1) lies in the column {ω₁} × [-1, 1], as [0, ω₁] is totally disconnected; but every neighbourhood of (ω₁, 1) contains points (β, 1) with β countable.

theorem not_locallyConnectedSpace : ¬LocallyConnectedSpace AlexandroffPlank
Proof
:= by
  intro _
  have := totallyDisconnectedSpace_onePoint
  set p := row one ∞
  have hC := isOpen_connectedComponent (x := p)
  have hsub : (fun d ↦ (toP d).1) '' connectedComponent p ⊆ {∞} := by
    have := (isPreconnected_connectedComponent (x := p)).image _
      (continuous_fst.comp continuous_toP).continuousOn
    rintro _ ⟨d, hd, rfl⟩
    exact this.subsingleton ⟨d, hd, rfl⟩ ⟨p, mem_connectedComponent, rfl⟩
  have hne : one ≠ zero := fun h ↦ by
    have := congrArg Subtype.val h
    norm_num [one, zero] at this
  obtain ⟨b, hb⟩ := TychonoffPlank.exists_forall_lt_mem_of_mem_nhds_infty
    ((hC.preimage (continuous_row hne)).mem_nhds mem_connectedComponent)
  obtain ⟨j, hj⟩ := exists_gt b
  exact coe_ne_infty j (hsub ⟨row one j, hb j hj, rfl⟩)

On this site: The Alexandroff plank is not locally connected