Lean library · module TopologyByExample.Spaces.SimpleProducts
Products of simple spaces: the Sierpiński square, Hjalmar Ekdal and others
This file collects what is needed about several products of spaces we already have, and the
homeomorphisms between some of them and the spaces the literature defines directly. (The products
whose properties all follow from the transfer theorems need nothing here beyond their types:
ℝ × WithTopology Bool ⊤, ℚ × WithDiscreteTopology ℝ, ℝ × ℕ.)
- The product of the right order topology on
ℝwith the discrete spaceℝis limit point compact: below any point(d, x)of a nonempty set lies the accumulation point(d, x - 1). - The product of the discrete space
ℕwith Sierpiński space (Prop) is not limit point compact: the closed points(n, False)form an infinite set with no accumulation point. - The product topology on
Prop × Propis the upper set (Alexandrov) topology of the product order: the Sierpiński square is the diamond poset with its Alexandrov topology. It is not completely normal:{(True, False)}and{(False, True)}are separated, but every open set containing either point contains(True, True). - The Hjalmar Ekdal topology on
ℕ(a set is open if, with any even number2k, it contains2k + 1) is homeomorphic toℕ × Prop.
Main statements
TopologyByExample.RightOrderRealsTimesDiscreteReals.limitPointCompactTopologyByExample.CountableSumSierpinski.not_limitPointCompactTopologyByExample.SierpinskiSquare.isUpperSet,TopologyByExample.SierpinskiSquare.not_completelyNormalSpaceTopologyByExample.isOpen_hjalmarEkdalTopology_iff,TopologyByExample.nonempty_homeomorph_hjalmarEkdalTopology
Tags
Hjalmar Ekdal topology, diamond poset, Sierpiński space, limit point compact, completely normal
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
The right order topology on ℝ times the discrete ℝ
theorem limitPointCompact
TopologyByExample.RightOrderRealsTimesDiscreteReals.limitPointCompact
The product of the right order topology on ℝ with the discrete space ℝ is limit point
compact: below a point (d, x) of a set lies the accumulation point (d, x - 1).
theorem RightOrderRealsTimesDiscreteReals.limitPointCompact :
∀ s : Set (Topology.WithUpper ℝ × WithDiscreteTopology ℝ), s.Infinite →
∃ x, AccPt x (𝓟 s)
Proof
:= by
intro s hs
obtain ⟨p, hp⟩ := hs.nonempty
set q : Topology.WithUpper ℝ × WithDiscreteTopology ℝ :=
(Topology.WithUpper.toUpper (Topology.WithUpper.ofUpper p.1 - 1), p.2)
have hpq : p ⤳ q := specializes_prod.2
⟨Topology.IsUpper.specializes_iff.2 (show Topology.WithUpper.ofUpper p.1 - 1 ≤
Topology.WithUpper.ofUpper p.1 by linarith), specializes_rfl⟩
refine ⟨q, accPt_iff_nhds.2 fun U hU ↦ ⟨p, ⟨mem_of_mem_nhds (hpq hU), hp⟩, ?_⟩⟩
intro h
have : Topology.WithUpper.ofUpper p.1 = Topology.WithUpper.ofUpper p.1 - 1 :=
congrArg (fun r ↦ Topology.WithUpper.ofUpper r.1) h
linarith
On this site: The product of the right order reals and the discrete reals is limit point compact
The countable sum of Sierpiński spaces
theorem not_limitPointCompact
TopologyByExample.CountableSumSierpinski.not_limitPointCompact
The product of the discrete space ℕ with Sierpiński space is not limit point compact: the
points (n, False) form an infinite set with no accumulation point.
theorem CountableSumSierpinski.not_limitPointCompact :
¬∀ s : Set (ℕ × Prop), s.Infinite → ∃ x, AccPt x (𝓟 s)
Proof
:= by
intro h
obtain ⟨⟨m, q⟩, hx⟩ := h (range fun n : ℕ ↦ (n, False))
(infinite_range_of_injective fun a b hab ↦ congrArg Prod.fst hab)
have hU : ({m} ×ˢ Ici q : Set (ℕ × Prop)) ∈ 𝓝 (m, q) := by
rw [nhds_prod_eq, nhds_discrete, Topology.IsUpperSet.nhds_eq_principal_Ici]
exact prod_mem_prod rfl (mem_principal_self _)
obtain ⟨y, ⟨⟨hy₁, hy₂ : q ≤ y.2⟩, ⟨n, rfl⟩⟩, hne⟩ := accPt_iff_nhds.1 hx _ hU
obtain rfl : n = m := hy₁
exact hne (by simp only [Prod.mk.injEq, true_and]; exact propext ⟨fun h ↦ h.elim,
fun h ↦ hy₂ h⟩)
On this site: The Hjalmar Ekdal topology is not limit point compact
The Sierpiński square
theorem isUpperSet
TopologyByExample.SierpinskiSquare.isUpperSet
The product topology on the square of Sierpiński space is the upper set (Alexandrov) topology
of the product order: the open sets of Prop × Prop are exactly its upper sets. So the square of
Sierpiński space is the diamond poset {0, a, b, 1} with its Alexandrov topology.
theorem SierpinskiSquare.isUpperSet : Topology.IsUpperSet (Prop × Prop)
Proof
:=
Topology.IsUpperSet.prod
On this site: Square of the Sierpiński space: The Alexandrov topology of the diamond
theorem not_completelyNormalSpace
TopologyByExample.SierpinskiSquare.not_completelyNormalSpace
The square of Sierpiński space is not completely normal: {(True, False)} and
{(False, True)} are separated, but every neighbourhood of either contains (True, True).
theorem SierpinskiSquare.not_completelyNormalSpace : ¬CompletelyNormalSpace (Prop × Prop)
Proof
:= by
have := SierpinskiSquare.isUpperSet
intro h
have key := h.completely_normal (s := {(True, False)}) (t := {(False, True)})
(by
rw [Topology.IsUpperSet.closure_eq_lowerClosure, lowerClosure_singleton,
disjoint_singleton_right]
simp)
(by
rw [Topology.IsUpperSet.closure_eq_lowerClosure, lowerClosure_singleton,
disjoint_singleton_left]
simp)
rw [nhdsSet_singleton, nhdsSet_singleton, Topology.IsUpperSet.nhds_eq_principal_Ici,
Topology.IsUpperSet.nhds_eq_principal_Ici, disjoint_principal_principal] at key
exact Set.disjoint_left.1 key (show ((True, True) : Prop × Prop) ∈ Ici (True, False) by simp)
(show ((True, True) : Prop × Prop) ∈ Ici (False, True) by simp)
On this site: The square of the Sierpiński space is not completely normal
The Hjalmar Ekdal topology
definition hjalmarEkdalEquiv
TopologyByExample.hjalmarEkdalEquiv
The bijection ℕ ≃ ℕ × Prop sending 2k to (k, False) and 2k + 1 to (k, True).
noncomputable def hjalmarEkdalEquiv : ℕ ≃ ℕ × Prop
Definition
where
toFun n := (n / 2, n % 2 = 1)
invFun p := by classical exact 2 * p.1 + if p.2 then 1 else 0
left_inv n := by
rcases Nat.mod_two_eq_zero_or_one n with h | h <;> (simp [h]; omega)
right_inv := by
rintro ⟨k, p⟩
by_cases hp : p
· simp [hp]
omega
· simp [hp]
theorem hjalmarEkdalEquiv_two_mul
TopologyByExample.hjalmarEkdalEquiv_two_mul
The even number 2k corresponds to (k, False).
@[simp]
theorem hjalmarEkdalEquiv_two_mul (k : ℕ) : hjalmarEkdalEquiv (2 * k) = (k, False)
Proof
:= by
simp [hjalmarEkdalEquiv]
theorem hjalmarEkdalEquiv_two_mul_add_one
TopologyByExample.hjalmarEkdalEquiv_two_mul_add_one
The odd number 2k + 1 corresponds to (k, True).
@[simp]
theorem hjalmarEkdalEquiv_two_mul_add_one (k : ℕ) :
hjalmarEkdalEquiv (2 * k + 1) = (k, True)
Proof
:= by
simp [hjalmarEkdalEquiv]
omega
definition hjalmarEkdalTopology
TopologyByExample.hjalmarEkdalTopology
The Hjalmar Ekdal topology on ℕ: a set is open if, whenever it contains an even number
2k, it contains 2k + 1. It is induced from ℕ × Prop by hjalmarEkdalEquiv.
@[instance_reducible]
noncomputable def hjalmarEkdalTopology : TopologicalSpace ℕ
:=
.induced hjalmarEkdalEquiv inferInstance
theorem isOpen_hjalmarEkdalTopology_iff
TopologyByExample.isOpen_hjalmarEkdalTopology_iff
A set is open in the Hjalmar Ekdal topology if and only if, whenever it contains an even
number 2k, it contains 2k + 1.
theorem isOpen_hjalmarEkdalTopology_iff {s : Set ℕ} :
IsOpen[hjalmarEkdalTopology] s ↔ ∀ k, 2 * k ∈ s → 2 * k + 1 ∈ s
Proof
:= by
rw [hjalmarEkdalTopology, isOpen_induced_iff]
constructor
· rintro ⟨t, ht, rfl⟩ k hk
simpa using isOpen_prod_prop_iff.1 ht k (by simpa using hk)
· intro h
refine ⟨hjalmarEkdalEquiv.symm ⁻¹' s, isOpen_prod_prop_iff.2 fun k hk ↦ ?_, ?_⟩
· have h1 : hjalmarEkdalEquiv.symm (k, False) = 2 * k := by
rw [Equiv.symm_apply_eq, hjalmarEkdalEquiv_two_mul]
have h2 : hjalmarEkdalEquiv.symm (k, True) = 2 * k + 1 := by
rw [Equiv.symm_apply_eq, hjalmarEkdalEquiv_two_mul_add_one]
simp only [mem_preimage, h1, h2] at hk ⊢
exact h k hk
· exact hjalmarEkdalEquiv.preimage_symm_preimage s
theorem nonempty_homeomorph_hjalmarEkdalTopology
TopologyByExample.nonempty_homeomorph_hjalmarEkdalTopology
The Hjalmar Ekdal topology on ℕ is homeomorphic to the product of the discrete space ℕ
with Sierpiński space.
theorem nonempty_homeomorph_hjalmarEkdalTopology :
Nonempty (WithTopology ℕ hjalmarEkdalTopology ≃ₜ ℕ × Prop)
Proof
:=
⟨homeomorphOfInduced hjalmarEkdalEquiv⟩
On this site: Hjalmar Ekdal topology: The topology on \(\mathbb{N}\) of the pairs \(\{2k, 2k + 1\}\)
On this site: Space: Hjalmar Ekdal topology; Space: Double pointed reals; Space: Rationals times the discrete reals; Space: Real line times the natural numbers; Space: Right order reals times the discrete reals; Space: Square of the Sierpiński space