Lean library · module TopologyByExample.Spaces.IntegerBroom
The integer broom
Let T be the set of the numbers 0 and 1 / n, n ≥ 1, a convergent sequence with its limit.
The integer broom is the set of points of the plane with polar coordinates (n, θ), n a
nonnegative integer and θ ∈ T, all the points with n = 0 being the origin. Its open sets are the
whole space and the unions of the sets U × V of points (n, θ) with n ≥ 1, where U is open in
the right order topology of the positive integers (a set {n : n ≥ k} or the empty set) and V
is open in T. So the only neighbourhood of the origin is the whole space.
In other words, the integer broom is the open extension (TopologyByExample.OpenExtension) of the
product of the right order topology on the positive integers with T. In this file the positive
integers are indexed from 0 (the index m stands for the radius m + 1), so the space is
OpenExtension (WithUpper ℕ × T), with T the subspace CombSpace.teeth of ℝ.
The product Y = WithUpper ℕ × T is not completely normal: the point (1, 0) and the set of
points (0, 1 / (k + 1)) are separated, but a neighbourhood of (1, 0) contains points
(1, 1 / (k + 1)), which lie in every open set containing (0, 1 / (k + 1)). It is not
semiregular: every regular open set containing (1, 0) contains (0, 0), since the closure of a
nonempty open set W × V contains WithUpper ℕ × V. It is not locally connected at (0, 0), since
a connected set has a single second coordinate, and it is meagre, each point being nowhere dense.
The open extension inherits these failures.
Main definitions
TopologyByExample.IntegerBroom: the integer broom.
Main statements
TopologyByExample.IntegerBroom.t0Space,TopologyByExample.IntegerBroom.firstCountableTopology,TopologyByExample.IntegerBroom.countable,TopologyByExample.IntegerBroom.not_completelyNormalSpace,TopologyByExample.IntegerBroom.not_semiregularSpace,TopologyByExample.IntegerBroom.not_locallyConnectedSpace,TopologyByExample.IntegerBroom.not_not_isMeagre_univ; compactness and ultraconnectedness are instances of every open extension.
Tags
integer broom, open extension, right order topology, completely normal, semiregular
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 Spokes
TopologyByExample.IntegerBroom.Spokes
The part of the integer broom without the origin: the right order topology on the positive
integers (indexed from 0) times the convergent sequence {0} ∪ {1 / (k + 1)}.
abbrev IntegerBroom.Spokes : Type
:= WithUpper ℕ × CombSpace.teeth
definition IntegerBroom
TopologyByExample.IntegerBroom
The integer broom: the open extension of IntegerBroom.Spokes, the new point being the
origin.
abbrev IntegerBroom : Type
:= OpenExtension IntegerBroom.Spokes
On this site: Space: Integer broom
definition zero
TopologyByExample.IntegerBroom.zero
The limit 0 of the angles.
noncomputable def zero : CombSpace.teeth
:= ⟨0, CombSpace.zero_mem_teeth⟩
definition angle
TopologyByExample.IntegerBroom.angle
The angle 1 / (k + 1).
noncomputable def angle (k : ℕ) : CombSpace.teeth
:=
⟨1 / ((k : ℝ) + 1), CombSpace.one_div_succ_mem_teeth k⟩
theorem tendsto_angle
TopologyByExample.IntegerBroom.tendsto_angle
theorem tendsto_angle : Tendsto angle atTop (𝓝 zero)
Proof
:=
tendsto_subtype_rng.2 tendsto_one_div_add_atTop_nhds_zero_nat
theorem angle_ne_zero
TopologyByExample.IntegerBroom.angle_ne_zero
theorem angle_ne_zero (k : ℕ) : angle k ≠ zero
theorem specializes_of_le
TopologyByExample.IntegerBroom.specializes_of_le
In the right order topology, a point a ≥ b lies in every neighbourhood of b.
theorem specializes_of_le {a b : WithUpper ℕ} (h : b ≤ a) (v : CombSpace.teeth) :
((a, v) : Spokes) ⤳ (b, v)
Proof
:=
(Topology.IsUpper.specializes_iff.2 h).prod specializes_rfl
instance
The spokes are nonempty.
instance : Nonempty Spokes
instance
The spokes are countable.
instance : Countable Spokes
Proof
:=
have : Countable CombSpace.teeth := CombSpace.countable_teeth.to_subtype
have : Countable (WithUpper ℕ) := RightOrderTopologies.countable
inferInstance
instance
The spokes are first countable.
instance : FirstCountableTopology Spokes
Proof
:=
have := RightOrderTopologies.firstCountableTopology (X := ℕ)
RightOrderTopologies.countableCofinalBelow_of_countable
inferInstance
theorem not_completelyNormalSpace_spokes
TopologyByExample.IntegerBroom.not_completelyNormalSpace_spokes
The spokes are not completely normal: the point (1, 0) and the set of the points
(0, 1 / (k + 1)) are separated but have no disjoint neighbourhoods.
theorem not_completelyNormalSpace_spokes : ¬CompletelyNormalSpace Spokes
Proof
:= by
intro h
set a : WithUpper ℕ := WithUpper.toUpper 1
set b : WithUpper ℕ := WithUpper.toUpper 0
have hba : b ≤ a := by simp [a, b]
have hab : ¬a ≤ b := by simp [a, b]
set s : Set Spokes := {(a, zero)}
set t : Set Spokes := range fun k ↦ (b, angle k)
have h1 : Disjoint (closure s) t := by
have hcl : closure s ⊆ univ ×ˢ {zero} :=
closure_minimal (by simp [s]) (isClosed_univ.prod isClosed_singleton)
refine Set.disjoint_left.2 fun p hp hpt ↦ ?_
obtain ⟨k, rfl⟩ := hpt
exact angle_ne_zero k (hcl hp).2
have h2 : Disjoint s (closure t) := by
have hcl : closure t ⊆ Iic b ×ˢ univ :=
closure_minimal (by rintro _ ⟨k, rfl⟩; exact ⟨mem_Iic.2 le_rfl, mem_univ _⟩)
(isClosed_Iic.prod isClosed_univ)
refine Set.disjoint_left.2 fun p hp hpt ↦ ?_
rw [mem_singleton_iff.1 hp] at hpt
exact hab (hcl hpt).1
obtain ⟨U, V, hU, hV, hsU, htV, hUV⟩ := (separatedNhds_iff_disjoint.2 (h.completely_normal h1 h2))
have hUn : U ∈ 𝓝 ((a, zero) : Spokes) := hU.mem_nhds (hsU rfl)
have hq : Tendsto (fun k ↦ ((a, angle k) : Spokes)) atTop (𝓝 (a, zero)) :=
tendsto_const_nhds.prodMk_nhds tendsto_angle
obtain ⟨k, hk⟩ := (hq.eventually hUn).exists
exact Set.disjoint_left.1 hUV hk ((specializes_of_le hba (angle k)).mem_open hV
(htV ⟨k, rfl⟩))
theorem not_semiregularSpace_spokes
TopologyByExample.IntegerBroom.not_semiregularSpace_spokes
The spokes are not semiregular: every regular open set containing (1, 0) contains (0, 0),
so the open set of points with first coordinate at least 1 contains no regular open
neighbourhood of (1, 0).
theorem not_semiregularSpace_spokes : ¬SemiregularSpace Spokes
Proof
:= by
intro h
set a : WithUpper ℕ := WithUpper.toUpper 1
set b : WithUpper ℕ := WithUpper.toUpper 0
have hab : ¬a ≤ b := by simp [a, b]
have hO : IsOpen (Ioi b ×ˢ (univ : Set CombSpace.teeth)) := isOpen_Ioi.prod isOpen_univ
obtain ⟨R, hR, haR, hRO⟩ := h.isTopologicalBasis.exists_subset_of_mem_open
(show ((a, zero) : Spokes) ∈ Ioi b ×ˢ univ from ⟨lt_of_not_ge hab, mem_univ _⟩) hO
obtain ⟨W, V, hWo, haW, hVo, hzV, hWV⟩ :=
mem_nhds_prod_iff'.1 (h.isTopologicalBasis.isOpen hR |>.mem_nhds haR)
-- every point lies in the closure of `W`
have hWd : closure W = univ := by
refine eq_univ_of_forall fun c ↦ mem_closure_iff_nhds.2 fun N hN ↦ ?_
refine ⟨max a c, Topology.IsUpper.mem_of_mem_nhds_of_le hN (le_max_right _ _),
Topology.IsUpper.mem_of_mem_nhds_of_le (hWo.mem_nhds haW) (le_max_left _ _)⟩
have hsub : (univ : Set (WithUpper ℕ)) ×ˢ V ⊆ R := by
have h1 : (univ : Set (WithUpper ℕ)) ×ˢ V ⊆ closure R := by
calc (univ : Set (WithUpper ℕ)) ×ˢ V ⊆ closure W ×ˢ closure V :=
prod_mono hWd.ge subset_closure
_ = closure (W ×ˢ V) := closure_prod_eq.symm
_ ⊆ closure R := closure_mono hWV
have h2 := interior_maximal h1 (isOpen_univ.prod hVo)
rwa [show interior (closure R) = R from hR] at h2
exact (lt_irrefl b) (hRO (hsub (show ((b, zero) : Spokes) ∈ univ ×ˢ V from ⟨mem_univ b, hzV⟩))).1
theorem not_locallyConnectedSpace_spokes
TopologyByExample.IntegerBroom.not_locallyConnectedSpace_spokes
The spokes are not locally connected at (0, 0): a connected set has a single second
coordinate, the angles forming a countable subset of ℝ, but every neighbourhood of (0, 0)
contains the points (0, 1 / (k + 1)) for large k.
theorem not_locallyConnectedSpace_spokes : ¬LocallyConnectedSpace Spokes
Proof
:= by
intro h
set b : WithUpper ℕ := WithUpper.toUpper 0
obtain ⟨V, hV, hVc, -⟩ :=
locallyConnectedSpace_iff_connected_subsets.1 h ((b, zero) : Spokes) univ univ_mem
have hq : Tendsto (fun k ↦ ((b, angle k) : Spokes)) atTop (𝓝 (b, zero)) :=
tendsto_const_nhds.prodMk_nhds tendsto_angle
obtain ⟨k, hk⟩ := (hq.eventually hV).exists
have hcont : Continuous fun p : Spokes ↦ ((p.2 : CombSpace.teeth) : ℝ) :=
continuous_subtypeVal.comp continuous_snd
have := CombSpace.countable_teeth.isTotallyDisconnected _
(by rintro _ ⟨p, -, rfl⟩; exact p.2.property)
(hVc.image _ hcont.continuousOn) (mem_image_of_mem _ hk)
(mem_image_of_mem _ (mem_of_mem_nhds hV))
exact angle_ne_zero k (Subtype.ext this)
theorem isNowhereDense_singleton_spokes
TopologyByExample.IntegerBroom.isNowhereDense_singleton_spokes
Each point of the spokes is nowhere dense: its closure lies in the set of points with smaller first coordinate, which contains no nonempty open set.
theorem isNowhereDense_singleton_spokes (p : Spokes) : IsNowhereDense ({p} : Set Spokes)
Proof
:= by
rw [IsNowhereDense, eq_empty_iff_forall_notMem]
intro x hx
have hcl : closure ({p} : Set Spokes) ⊆ Iic p.1 ×ˢ univ :=
closure_minimal (by simp) (isClosed_Iic.prod isClosed_univ)
set c : WithUpper ℕ := WithUpper.toUpper (WithUpper.ofUpper p.1 + 1)
have hc : x.1 ≤ max x.1 c := le_max_left _ _
have hmem : ((max x.1 c, x.2) : Spokes) ∈ interior (closure {p}) :=
(specializes_of_le hc x.2).mem_open isOpen_interior hx
have := (hcl (interior_subset hmem)).1
have hcp : c ≤ p.1 := (le_max_right _ _).trans this
have hcp' : WithUpper.ofUpper p.1 + 1 ≤ WithUpper.ofUpper p.1 := hcp
omega
theorem isMeagre_univ_spokes
TopologyByExample.IntegerBroom.isMeagre_univ_spokes
The spokes are meagre in themselves: a countable union of nowhere dense points.
theorem isMeagre_univ_spokes : IsMeagre (univ : Set Spokes)
Proof
:= by
rw [← iUnion_of_singleton]
exact isMeagre_iUnion fun p ↦ (isNowhereDense_singleton_spokes p).isMeagre
The integer broom
instance
The integer broom is nonempty.
instance : Nonempty IntegerBroom
Proof
:= ⟨OpenExtension.point⟩
theorem t0Space
TopologyByExample.IntegerBroom.t0Space
The integer broom is T₀.
theorem t0Space : T0Space IntegerBroom
Proof
:= inferInstance
On this site: Integer broom is T₀
theorem compactSpace
TopologyByExample.IntegerBroom.compactSpace
The integer broom is compact: the only neighbourhood of the origin is the whole space.
theorem compactSpace : CompactSpace IntegerBroom
Proof
:= inferInstance
On this site: Integer broom is compact
theorem ultraconnectedSpace
TopologyByExample.IntegerBroom.ultraconnectedSpace
The integer broom is ultraconnected: the origin lies in the closure of every point.
theorem ultraconnectedSpace : UltraconnectedSpace IntegerBroom
Proof
:= inferInstance
On this site: Integer broom is ultraconnected
theorem countable
TopologyByExample.IntegerBroom.countable
The integer broom is countable.
theorem countable : Countable IntegerBroom
Proof
:= inferInstance
On this site: Integer broom is countable
theorem firstCountableTopology
TopologyByExample.IntegerBroom.firstCountableTopology
The integer broom is first countable.
theorem firstCountableTopology : FirstCountableTopology IntegerBroom
Proof
:= inferInstance
On this site: Integer broom is first countable
theorem not_completelyNormalSpace
TopologyByExample.IntegerBroom.not_completelyNormalSpace
The integer broom is not completely normal.
theorem not_completelyNormalSpace : ¬CompletelyNormalSpace IntegerBroom
Proof
:= fun h ↦
not_completelyNormalSpace_spokes (OpenExtension.completelyNormalSpace_iff.1 h)
On this site: Integer broom is not completely normal
theorem not_semiregularSpace
TopologyByExample.IntegerBroom.not_semiregularSpace
The integer broom is not semiregular.
theorem not_semiregularSpace : ¬SemiregularSpace IntegerBroom
On this site: Integer broom is not semiregular
theorem not_locallyConnectedSpace
TopologyByExample.IntegerBroom.not_locallyConnectedSpace
The integer broom is not locally connected.
theorem not_locallyConnectedSpace : ¬LocallyConnectedSpace IntegerBroom
Proof
:= fun h ↦
not_locallyConnectedSpace_spokes (OpenExtension.locallyConnectedSpace_iff.1 h)
On this site: Integer broom is not locally connected
theorem not_not_isMeagre_univ
TopologyByExample.IntegerBroom.not_not_isMeagre_univ
The integer broom is not of second category in itself: it is meagre.
theorem not_not_isMeagre_univ : ¬¬IsMeagre (univ : Set IntegerBroom)
Proof
:= fun h ↦
OpenExtension.not_isMeagre_univ_iff.1 h isMeagre_univ_spokes
On this site: Integer broom is not of second category