Lean library · module TopologyByExample.Theorems.Disconnectedness
Discrete, scattered, extremally disconnected and totally path disconnected spaces
This file proves the implications between the extreme forms of disconnectedness and the other
properties of spaces. How these properties behave under disjoint sums, products, countable powers,
the one-point compactification and the closed extension is proved with the other transfers, in the
files TopologyByExample.Operators.Sum, .Product, .CountablePower, .OnePoint and
.ClosedExtension. No separation axiom is assumed anywhere unless it is stated.
A subset s has an isolated point x ∈ s if some neighbourhood of x meets s in x alone;
a space is scattered exactly when every nonempty subset has one
(TopologyByExample.scatteredSpace_iff_exists_isolated). Most of the arguments about scattered
spaces go through this form.
Main statements
TopologyByExample.DiscreteTopology.scatteredSpace,TopologyByExample.DiscreteTopology.extremallyDisconnected: a discrete space is scattered and extremally disconnected.TopologyByExample.ScatteredSpace.t0Space: a scattered space is T₀;TopologyByExample.ScatteredSpace.totallyDisconnectedSpace: a scattered T₁ space is totally disconnected;TopologyByExample.ScatteredSpace.of_finite: a finite T₀ space is scattered.TopologyByExample.ScatteredSpace.countable: a hereditarily Lindelöf scattered space is countable.TopologyByExample.TotallyDisconnectedSpace.totallyPathDisconnectedSpace,TopologyByExample.TotallyPathDisconnectedSpace.t1Space,TopologyByExample.TotallyPathDisconnectedSpace.subsingleton,TopologyByExample.TotallyPathDisconnectedSpace.discreteTopology,TopologyByExample.TotallyPathDisconnectedSpace.of_countable: total path disconnectedness.TopologyByExample.SequentiallyDiscreteSpace.of_extremallyDisconnected: an extremally disconnected Hausdorff space has no nontrivial convergent sequences;TopologyByExample.SequentiallyDiscreteSpace.discreteTopologyandTopologyByExample.SequentiallyDiscreteSpace.finite: such a space is discrete if it is Fréchet–Urysohn, and finite if it is sequentially compact.TopologyByExample.ExtremallyDisconnected.totallySeparatedSpace: an extremally disconnected Hausdorff space is totally separated (Mathlib's instance).TopologyByExample.scatteredSpace_of_forall_ne_isOpen_singleton,TopologyByExample.scatteredSpace_of_isOpen_Iic: a space in which every point but one is isolated, and a well-ordered space in which everyIic ais open, are scattered.
Implementation notes
The proof that an extremally disconnected Hausdorff space is sequentially discrete takes a sequence
yₖ → x with every yₖ ≠ x, separates each yₖ from x by disjoint open sets Pₖ ∋ yₖ and
Qₖ ∋ x, and picks a subsequence so that the sets Pₙ₍ⱼ₊₁₎ ∩ Q₀ ∩ ⋯ ∩ Qₙ₍ⱼ₎ are pairwise
disjoint. The unions of the even-indexed and of the odd-indexed ones are disjoint open sets whose
closures both contain x, which is impossible in an extremally disconnected space.
That a hereditarily Lindelöf scattered space is countable is proved without Cantor–Bendixson derivatives: the points with a countable neighbourhood form a countable set, by the Lindelöf property of that set, and the remaining points (the condensation points) form a set with no isolated point, which is therefore empty.
Tags
scattered, discrete, extremally disconnected, totally path disconnected, sequentially discrete
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
variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
Scattered spaces and isolated points
theorem scatteredSpace_iff_exists_isolated
TopologyByExample.scatteredSpace_iff_exists_isolated
A space is scattered if and only if every nonempty subset s has a point x with a
neighbourhood meeting s in x alone.
theorem scatteredSpace_iff_exists_isolated :
ScatteredSpace X ↔ ∀ s : Set X, s.Nonempty → ∃ x ∈ s, ∃ U ∈ 𝓝 x, U ∩ s ⊆ {x}
Proof
:= by
rw [scatteredSpace_iff]
refine forall_congr' fun s ↦ ⟨fun h hs ↦ ?_, fun h hs ↦ ?_⟩
· by_contra! H
refine hs.ne_empty (h (preperfect_iff_nhds.2 fun x hx U hU ↦ ?_))
obtain ⟨y, hy, hyx⟩ := not_subset.1 (H x hx U hU)
exact ⟨y, hy, hyx⟩
· by_contra hne
obtain ⟨x, hx, U, hU, hUs⟩ := h (ne_empty_iff_nonempty.1 hne)
obtain ⟨y, hy, hyx⟩ := preperfect_iff_nhds.1 hs x hx U hU
exact hyx (hUs hy)
theorem exists_isolated
TopologyByExample.ScatteredSpace.exists_isolated
In a scattered space every nonempty subset has an isolated point.
theorem exists_isolated [ScatteredSpace X] {s : Set X} (hs : s.Nonempty) :
∃ x ∈ s, ∃ U ∈ 𝓝 x, U ∩ s ⊆ {x}
Proof
:=
scatteredSpace_iff_exists_isolated.1 ‹_› s hs
theorem of_injective
TopologyByExample.ScatteredSpace.of_injective
A space with a continuous injection into a scattered space is scattered. In particular every subspace of a scattered space is scattered.
theorem of_injective [ScatteredSpace Y] {f : X → Y} (hinj : Injective f) (hf : Continuous f) :
ScatteredSpace X
Proof
:= by
refine scatteredSpace_iff_exists_isolated.2 fun s hs ↦ ?_
obtain ⟨_, ⟨x, hx, rfl⟩, U, hU, hUs⟩ := exists_isolated (hs.image f)
exact ⟨x, hx, f ⁻¹' U, hf.continuousAt.preimage_mem_nhds hU,
fun y hy ↦ hinj (hUs ⟨hy.1, mem_image_of_mem f hy.2⟩)⟩
On this site: Theorem: A space mapping injectively and continuously into a scattered space is scattered
theorem exists_isolated_of_isEmbedding
TopologyByExample.ScatteredSpace.exists_isolated_of_isEmbedding
If f embeds a scattered space, every nonempty set inside its range has an isolated point.
theorem exists_isolated_of_isEmbedding [ScatteredSpace X] {f : X → Y} (hf : IsEmbedding f)
{s : Set Y} (hsf : s ⊆ range f) (hs : s.Nonempty) : ∃ y ∈ s, ∃ U ∈ 𝓝 y, U ∩ s ⊆ {y}
Proof
:= by
obtain ⟨y₀, hy₀⟩ := hs
obtain ⟨x₀, rfl⟩ := hsf hy₀
obtain ⟨x, hx, U, hU, hUs⟩ := exists_isolated (s := f ⁻¹' s) ⟨x₀, hy₀⟩
rw [hf.isInducing.nhds_eq_comap] at hU
obtain ⟨V, hV, hVU⟩ := Filter.mem_comap.1 hU
refine ⟨f x, hx, V, hV, fun y hy ↦ ?_⟩
obtain ⟨z, rfl⟩ := hsf hy.2
have hz : z = x := hUs ⟨hVU hy.1, hy.2⟩
rw [hz]
rfl
theorem exists_isolated_of_isOpenEmbedding
TopologyByExample.ScatteredSpace.exists_isolated_of_isOpenEmbedding
If f is an open embedding of a scattered space, every set meeting its range has an isolated
point.
theorem exists_isolated_of_isOpenEmbedding [ScatteredSpace X] {f : X → Y} (hf : IsOpenEmbedding f)
{s : Set Y} (hs : (s ∩ range f).Nonempty) : ∃ y ∈ s, ∃ U ∈ 𝓝 y, U ∩ s ⊆ {y}
Proof
:= by
obtain ⟨y, hy, U, hU, hUs⟩ :=
exists_isolated_of_isEmbedding hf.isEmbedding inter_subset_right hs
exact ⟨y, hy.1, U ∩ range f, inter_mem hU (hf.isOpen_range.mem_nhds hy.2),
fun z hz ↦ hUs ⟨hz.1.1, hz.2, hz.1.2⟩⟩
instance t0Space
TopologyByExample.ScatteredSpace.t0Space
A scattered space is T₀: two inseparable points would form a nonempty set without an isolated point.
instance (priority := 100) t0Space [ScatteredSpace X] : T0Space X
Proof
:= by
refine (t0Space_iff_inseparable X).2 fun x y hxy ↦ ?_
by_contra hne
obtain ⟨z, hz, U, hU, hUs⟩ := exists_isolated (s := {x, y}) (insert_nonempty _ _)
rcases hz with rfl | hz
· have hyU : y ∈ U := mem_of_mem_nhds (hxy.nhds_eq ▸ hU)
exact hne (hUs ⟨hyU, Or.inr rfl⟩).symm
· rw [mem_singleton_iff] at hz
subst hz
have hxU : x ∈ U := mem_of_mem_nhds (hxy.nhds_eq.symm ▸ hU)
exact hne (hUs ⟨hxU, Or.inl rfl⟩)
instance totallyDisconnectedSpace
TopologyByExample.ScatteredSpace.totallyDisconnectedSpace
A scattered T₁ space is totally disconnected: in a T₁ space an isolated point of a set is relatively clopen in it, so a preconnected set with an isolated point has only that point.
instance (priority := 100) totallyDisconnectedSpace [ScatteredSpace X] [T1Space X] :
TotallyDisconnectedSpace X
Proof
:= by
refine ⟨fun s _ hs x hx y hy ↦ ?_⟩
by_contra hxy
obtain ⟨z, hz, U, hU, hUs⟩ := exists_isolated ⟨x, hx⟩
obtain ⟨V, hVU, hV, hzV⟩ := mem_nhds_iff.1 hU
have hcover : s ⊆ V ∪ {z}ᶜ := fun w _ ↦ by
by_cases h : w = z
· exact Or.inl (h ▸ hzV)
· exact Or.inr h
have hother : (s ∩ {z}ᶜ).Nonempty := by
by_cases hxz : x = z
· exact ⟨y, hy, fun h ↦ hxy (hxz.trans h.symm)⟩
· exact ⟨x, hx, hxz⟩
obtain ⟨w, hws, hwV, hwz⟩ := hs V {z}ᶜ hV isOpen_compl_singleton hcover ⟨z, hz, hzV⟩ hother
exact hwz (hUs ⟨hVU hwV, hws⟩)
instance of_finite
TopologyByExample.ScatteredSpace.of_finite
A finite T₀ space is scattered: in a nonempty set, a point minimal for specialization has a neighbourhood missing the finitely many other points.
instance (priority := 100) of_finite [Finite X] [T0Space X] : ScatteredSpace X
Proof
:= by
refine scatteredSpace_iff_exists_isolated.2 fun s hs ↦ ?_
let r : X → X → Prop := fun a b ↦ a ⤳ b ∧ a ≠ b
have : IsTrans X r := ⟨fun a b c hab hbc ↦ ⟨hab.1.trans hbc.1, fun hac ↦ by
subst hac
exact hab.2 (hab.1.antisymm hbc.1).eq⟩⟩
have : Std.Irrefl r := ⟨fun a h ↦ h.2 rfl⟩
obtain ⟨x, hx, hmin⟩ := (Finite.wellFounded_of_trans_of_irrefl r).has_min s hs
have hev : ∀ᶠ z in 𝓝 x, ∀ y ∈ s \ {x}, z ≠ y := by
refine (toFinite _).eventually_all.2 fun y hy ↦ ?_
have hyx : ¬y ⤳ x := fun h ↦ hmin y hy.1 ⟨h, hy.2⟩
obtain ⟨S, hS, hxS, hyS⟩ := not_specializes_iff_exists_open.1 hyx
exact mem_of_superset (hS.mem_nhds hxS) fun z hz hzy ↦ hyS (hzy ▸ hz)
refine ⟨x, hx, _, hev, fun z hz ↦ ?_⟩
by_contra hzx
exact hz.1 z ⟨hz.2, hzx⟩ rfl
theorem countable
TopologyByExample.ScatteredSpace.countable
A hereditarily Lindelöf scattered space is countable. The points with a countable neighbourhood form a countable set, being Lindelöf; every neighbourhood of any other point is uncountable and so contains other such points, so these points form a set without isolated points, which is empty.
theorem countable [HereditarilyLindelofSpace X] [ScatteredSpace X] : Countable X
Proof
:= by
classical
let C : Set X := {x | ∀ U ∈ 𝓝 x, ¬U.Countable}
have hex : ∀ x, ∃ W ∈ 𝓝 x, x ∈ Cᶜ → W.Countable := fun x ↦ by
by_cases hx : x ∈ Cᶜ
· obtain ⟨W, hW, hWc⟩ : ∃ W ∈ 𝓝 x, W.Countable := by simpa [C] using hx
exact ⟨W, hW, fun _ ↦ hWc⟩
· exact ⟨univ, univ_mem, fun h ↦ absurd h hx⟩
choose V hVn hVc using hex
have hV : ∀ x ∈ Cᶜ, V x ∈ 𝓝 x ∧ (V x).Countable := fun x hx ↦ ⟨hVn x, hVc x hx⟩
obtain ⟨t, htc, htC, hcov⟩ :=
(HereditarilyLindelofSpace.isLindelof Cᶜ).elim_nhds_subcover V fun x hx ↦ (hV x hx).1
have hCc : Cᶜ.Countable := (htc.biUnion fun x hx ↦ (hV x (htC x hx)).2).mono hcov
have hpre : Preperfect C := by
refine preperfect_iff_nhds.2 fun x hx U hU ↦ ?_
by_contra! h
refine hx U hU ((hCc.union (countable_singleton x)).mono fun y hy ↦ ?_)
by_cases hyC : y ∈ C
· exact Or.inr (h y ⟨hy, hyC⟩)
· exact Or.inl hyC
rw [eq_empty_of_preperfect C hpre, compl_empty] at hCc
exact countable_univ_iff.1 hCc
On this site: Theorem: Hereditarily Lindelöf scattered spaces are countable
Discrete spaces
instance scatteredSpace
TopologyByExample.DiscreteTopology.scatteredSpace
A discrete space is scattered: every point of a set is isolated in it.
instance (priority := 100) scatteredSpace [DiscreteTopology X] : ScatteredSpace X
Proof
:=
scatteredSpace_iff_exists_isolated.2 fun _ ⟨x, hx⟩ ↦
⟨x, hx, {x}, (isOpen_discrete _).mem_nhds rfl, inter_subset_left⟩
instance extremallyDisconnected
TopologyByExample.DiscreteTopology.extremallyDisconnected
A discrete space is extremally disconnected: every set is open.
instance (priority := 100) extremallyDisconnected [DiscreteTopology X] :
ExtremallyDisconnected X
Proof
:=
⟨fun _ _ ↦ isOpen_discrete _⟩
Totally path disconnected spaces
instance of_totallyDisconnectedSpace
TopologyByExample.TotallyPathDisconnectedSpace.of_totallyDisconnectedSpace
A totally disconnected space is totally path disconnected: the image of a path is connected.
instance (priority := 100) of_totallyDisconnectedSpace [TotallyDisconnectedSpace X] :
TotallyPathDisconnectedSpace X
Proof
:=
⟨fun x y h ↦ by
obtain ⟨γ⟩ := h
have := (isPreconnected_range γ.continuous).subsingleton (mem_range_self 0) (mem_range_self 1)
simpa using this⟩
instance t1Space
TopologyByExample.TotallyPathDisconnectedSpace.t1Space
A totally path disconnected space is T₁: if x specializes to y, there is a path from x
to y.
instance (priority := 100) t1Space [TotallyPathDisconnectedSpace X] : T1Space X
Proof
:=
t1Space_iff_specializes_imp_eq.2 fun x y h ↦
eq_of_joined x y (h.joinedIn (mem_univ x) (mem_univ y)).joined
theorem subsingleton
TopologyByExample.TotallyPathDisconnectedSpace.subsingleton
A totally path disconnected, path connected space has at most one point.
theorem subsingleton [TotallyPathDisconnectedSpace X] [PathPreconnectedSpace X] :
Subsingleton X
Proof
:=
⟨fun x y ↦ eq_of_joined x y (PathPreconnectedSpace.joined x y)⟩
On this site: Theorem: A totally path disconnected, path connected space has at most one point
theorem discreteTopology
TopologyByExample.TotallyPathDisconnectedSpace.discreteTopology
A totally path disconnected, locally path connected space is discrete: its path components are open, and they are points.
theorem discreteTopology [TotallyPathDisconnectedSpace X] [LocallyPathConnectedSpace X] :
DiscreteTopology X
Proof
:= by
refine discreteTopology_iff_isOpen_singleton.2 fun x ↦ ?_
convert IsOpen.pathComponent x
ext y
rw [mem_pathComponent_iff, mem_singleton_iff]
exact ⟨fun h ↦ h ▸ Joined.refl x, fun h ↦ (eq_of_joined x y h).symm⟩
On this site: Theorem: Totally path disconnected, locally path connected spaces are discrete
instance of_countable
TopologyByExample.TotallyPathDisconnectedSpace.of_countable
A countable T₁ space is totally path disconnected (by Sierpiński's theorem: the unit interval is not a countable union of disjoint nonempty closed sets).
instance (priority := 100) of_countable [T1Space X] [Countable X] :
TotallyPathDisconnectedSpace X
Proof
:=
⟨fun _ _ h ↦ h.eq_of_countable⟩
theorem of_injective
TopologyByExample.TotallyPathDisconnectedSpace.of_injective
A space with a continuous injection into a totally path disconnected space is totally path disconnected.
theorem of_injective [TotallyPathDisconnectedSpace Y] {f : X → Y} (hinj : Injective f)
(hf : Continuous f) : TotallyPathDisconnectedSpace X
Proof
:=
⟨fun _ _ h ↦ hinj (eq_of_joined _ _ (h.map hf))⟩
Extremally disconnected spaces and sequences
theorem totallySeparatedSpace
TopologyByExample.ExtremallyDisconnected.totallySeparatedSpace
An extremally disconnected Hausdorff space is totally separated (Mathlib's instance).
theorem ExtremallyDisconnected.totallySeparatedSpace [ExtremallyDisconnected X] [T2Space X] :
TotallySeparatedSpace X
Proof
:=
inferInstance
On this site: Theorem: Extremally disconnected Hausdorff spaces are totally separated
theorem of_isOpenEmbedding
TopologyByExample.ExtremallyDisconnected.of_isOpenEmbedding
An open subspace of an extremally disconnected space is extremally disconnected.
theorem ExtremallyDisconnected.of_isOpenEmbedding [ExtremallyDisconnected Y] {f : X → Y}
(hf : IsOpenEmbedding f) : ExtremallyDisconnected X
Proof
:= by
refine ⟨fun U hU ↦ ?_⟩
have h : closure U = f ⁻¹' closure (f '' U) := by
rw [hf.isOpenMap.preimage_closure_eq_closure_preimage hf.continuous,
hf.injective.preimage_image]
rw [h]
exact (ExtremallyDisconnected.open_closure _ (hf.isOpenMap U hU)).preimage hf.continuous
theorem of_extremallyDisconnected
TopologyByExample.SequentiallyDiscreteSpace.of_extremallyDisconnected
An extremally disconnected Hausdorff space is sequentially discrete: every convergent sequence is eventually equal to its limit.
theorem of_extremallyDisconnected [ExtremallyDisconnected X] [T2Space X] :
SequentiallyDiscreteSpace X
Proof
:= by
refine ⟨fun u x hu ↦ ?_⟩
by_contra hne
rw [not_eventually] at hne
obtain ⟨φ, hφ, hφx⟩ := extraction_of_frequently_atTop hne
set y := u ∘ φ with hy_def
have hy : Tendsto y atTop (𝓝 x) := hu.comp hφ.tendsto_atTop
have hsep : ∀ k, ∃ P Q : Set X, IsOpen P ∧ IsOpen Q ∧ y k ∈ P ∧ x ∈ Q ∧ Disjoint P Q :=
fun k ↦ t2_separation (hφx k)
choose P Q hPo hQo hyP hxQ hPQ using hsep
let Q' : ℕ → Set X := fun k ↦ ⋂ i ∈ Iic k, Q i
have hQ'o : ∀ k, IsOpen (Q' k) := fun k ↦ (finite_Iic k).isOpen_biInter fun i _ ↦ hQo i
have hxQ' : ∀ k, x ∈ Q' k := fun k ↦ mem_iInter₂.2 fun i _ ↦ hxQ i
have hQ'Q : ∀ k, Q' k ⊆ Q k := fun k ↦ biInter_subset_of_mem (mem_Iic.2 le_rfl)
have hQ'anti : Antitone Q' := fun j k hjk ↦
biInter_subset_biInter_left (Iic_subset_Iic.2 hjk)
have hnext : ∀ k, ∃ m, k < m ∧ y m ∈ Q' k := fun k ↦
(((hy.eventually ((hQ'o k).mem_nhds (hxQ' k))).and (eventually_gt_atTop k)).exists).imp
fun _ hm ↦ ⟨hm.2, hm.1⟩
choose next hnext_gt hnext_mem using hnext
let n : ℕ → ℕ := fun j ↦ Nat.rec 0 (fun _ k ↦ next k) j
have hn_succ : ∀ j, n (j + 1) = next (n j) := fun _ ↦ rfl
have hn : StrictMono n := strictMono_nat_of_lt_succ fun j ↦ by
rw [hn_succ]
exact hnext_gt (n j)
let O : ℕ → Set X := fun j ↦ P (n (j + 1)) ∩ Q' (n j)
have hOo : ∀ j, IsOpen (O j) := fun j ↦ (hPo _).inter (hQ'o _)
have hyO : ∀ j, y (n (j + 1)) ∈ O j := fun j ↦
⟨hyP _, by rw [hn_succ]; exact hnext_mem (n j)⟩
have hlt : ∀ i j, i < j → Disjoint (O i) (O j) := fun i j hij ↦
(hPQ (n (i + 1))).mono inter_subset_left
(inter_subset_right.trans ((hQ'anti (hn.monotone hij)).trans (hQ'Q _)))
have hOd : ∀ i j, i ≠ j → Disjoint (O i) (O j) := fun i j hij ↦ by
rcases hij.lt_or_gt with h | h
· exact hlt i j h
· exact (hlt j i h).symm
let U := ⋃ j, O (2 * j)
let V := ⋃ j, O (2 * j + 1)
have hUV : Disjoint U V :=
disjoint_iUnion_left.2 fun i ↦ disjoint_iUnion_right.2 fun j ↦
hOd (2 * i) (2 * j + 1) (by omega)
have hUo : IsOpen U := isOpen_iUnion fun j ↦ hOo (2 * j)
have hVo : IsOpen V := isOpen_iUnion fun j ↦ hOo (2 * j + 1)
have hw : Tendsto (fun j ↦ y (n (j + 1))) atTop (𝓝 x) :=
hy.comp ((hn.comp (strictMono_id.add_const 1)).tendsto_atTop)
have hxU : x ∈ closure U := by
refine mem_closure_of_tendsto (hw.comp (strictMono_id.const_mul two_pos).tendsto_atTop)
(Eventually.of_forall fun j ↦ ?_)
exact mem_iUnion.2 ⟨j, hyO (2 * j)⟩
have hxV : x ∈ closure V := by
refine mem_closure_of_tendsto
(hw.comp ((strictMono_id.const_mul two_pos).add_const 1).tendsto_atTop)
(Eventually.of_forall fun j ↦ ?_)
exact mem_iUnion.2 ⟨j, hyO (2 * j + 1)⟩
exact disjoint_left.1 (ExtremallyDisconnected.disjoint_closure_of_disjoint_isOpen hUV hUo hVo)
hxU hxV
On this site: Theorem: Extremally disconnected Hausdorff spaces are sequentially discrete
theorem discreteTopology
TopologyByExample.SequentiallyDiscreteSpace.discreteTopology
A sequentially discrete Fréchet–Urysohn space is discrete: a point in the closure of the other points would be the limit of a sequence of other points.
theorem discreteTopology [SequentiallyDiscreteSpace X] [FrechetUrysohnSpace X] :
DiscreteTopology X
Proof
:= by
refine discreteTopology_iff_isOpen_singleton.2 fun x ↦ ?_
rw [← isClosed_compl_iff, ← closure_subset_iff_isClosed]
intro y hy hyx
rw [mem_singleton_iff] at hyx
subst hyx
obtain ⟨u, hu, hux⟩ := mem_closure_iff_seq_limit.1 hy
obtain ⟨k, hk⟩ := (eventually_eq_of_tendsto u y hux).exists
exact hu k hk
On this site: Theorem: Sequentially discrete Fréchet–Urysohn spaces are discrete
theorem finite
TopologyByExample.SequentiallyDiscreteSpace.finite
A sequentially discrete, sequentially compact space is finite: an injective sequence would have a convergent subsequence, which would be eventually constant.
theorem finite [SequentiallyDiscreteSpace X] [SeqCompactSpace X] : Finite X
Proof
:= by
by_contra h
rw [not_finite_iff_infinite] at h
let e := Infinite.natEmbedding X
obtain ⟨a, φ, hφ, ha⟩ := SeqCompactSpace.tendsto_subseq (fun k ↦ e k)
obtain ⟨N, hN⟩ := eventually_atTop.1 (eventually_eq_of_tendsto _ a ha)
have h1 : e (φ N) = e (φ (N + 1)) := (hN N le_rfl).trans (hN (N + 1) (Nat.le_succ N)).symm
exact (hφ (Nat.lt_succ_self N)).ne (e.injective h1)
On this site: Theorem: Sequentially discrete, sequentially compact spaces are finite
Criteria for scatteredness
theorem scatteredSpace_of_forall_ne_isOpen_singleton
TopologyByExample.scatteredSpace_of_forall_ne_isOpen_singleton
A space in which every point other than p is isolated is scattered: a nonempty set has a
point other than p, which is isolated, or is {p}.
theorem scatteredSpace_of_forall_ne_isOpen_singleton (p : X)
(h : ∀ x, x ≠ p → IsOpen ({x} : Set X)) : ScatteredSpace X
Proof
:= by
refine scatteredSpace_iff_exists_isolated.2 fun s hs ↦ ?_
by_cases hq : ∃ x ∈ s, x ≠ p
· obtain ⟨x, hx, hxp⟩ := hq
exact ⟨x, hx, {x}, (h x hxp).mem_nhds rfl, inter_subset_left⟩
· push Not at hq
obtain ⟨x, hx⟩ := hs
exact ⟨x, hx, univ, univ_mem, fun y hy ↦ (hq y hy.2).trans (hq x hx).symm⟩
On this site: Theorem: A space in which every point but one is isolated is scattered
theorem scatteredSpace_of_isOpen_Iic
TopologyByExample.scatteredSpace_of_isOpen_Iic
A well-ordered space in which every initial segment Iic a is open is scattered: the least
element of a nonempty set is isolated in it.
theorem scatteredSpace_of_isOpen_Iic [LinearOrder X] [WellFoundedLT X]
(h : ∀ a : X, IsOpen (Iic a)) : ScatteredSpace X
Proof
:= by
refine scatteredSpace_iff_exists_isolated.2 fun s hs ↦ ?_
obtain ⟨a, ha, hmin⟩ := wellFounded_lt.has_min s hs
exact ⟨a, ha, Iic a, (h a).mem_nhds le_rfl, fun x hx ↦
le_antisymm hx.1 (not_lt.1 (hmin x hx.2))⟩
On this site: Theorem: A well-ordered space whose closed initial rays are open is scattered