Lean library · module TopologyByExample.Spaces.SequentialFan
The sequential fan
In this file we define TopologyByExample.SequentialFan, the sequential fan S_ω. Its underlying
set is Option (ℕ × ℕ): the point none is the vertex (SequentialFan.vertex) and
some (m, n) is the n-th point of the m-th spine (SequentialFan.pt m n). Every point other
than the vertex is isolated, and a set containing the vertex is a neighbourhood of it when it
contains all but finitely many points of every spine. So the space is obtained from countably many
convergent sequences by identifying their limits.
The topology is nhdsAdjoint vertex spineFilter, where spineFilter is the supremum over m of
the images of the cofinite filter under pt m.
Main definitions
TopologyByExample.SequentialFan: the sequential fan.TopologyByExample.SequentialFan.vertex,TopologyByExample.SequentialFan.pt: its points.TopologyByExample.SequentialFan.spineFilter: the filter of sets containing all but finitely many points of every spine.
Main results
TopologyByExample.SequentialFan.isOpen_iff: the open sets.- Instances:
Countable,AlmostDiscreteSpace,ZeroDimensionalSpace,TotallySeparatedSpace,FrechetUrysohnSpace. TopologyByExample.SequentialFan.not_firstCountableTopology: the vertex has no countable neighbourhood base.TopologyByExample.SequentialFan.exists_spine_bound_of_isCompact: a compact set meets only finitely many spines.TopologyByExample.SequentialFan.isCompact_initialSpines: the vertex together with finitely many spines is compact.
References
- K. Eda, G. Gruenhage, P. Koszmider, K. Tamano and S. Todorčević, Sequential fans in topology
Tags
sequential fan, Fréchet–Urysohn space, first countable, counterexample
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 SequentialFan
TopologyByExample.SequentialFan
The sequential fan: the vertex none together with the points some (m, n), the n-th point
of the m-th spine. Points other than the vertex are isolated, and the neighbourhoods of the
vertex are the sets containing it and all but finitely many points of every spine.
def SequentialFan : Type
:= Option (ℕ × ℕ)
On this site: Space: Sequential fan
instance
The sequential fan is countable.
instance : Countable SequentialFan
Proof
:= inferInstanceAs (Countable (Option (ℕ × ℕ)))
instance
Equality of points of the sequential fan is decidable.
instance : DecidableEq SequentialFan
Proof
:= inferInstanceAs (DecidableEq (Option (ℕ × ℕ)))
definition vertex
TopologyByExample.SequentialFan.vertex
The vertex of the sequential fan, the only point that is not isolated.
def vertex : SequentialFan
:= (none : Option (ℕ × ℕ))
instance
The vertex is the default point of the sequential fan.
instance : Inhabited SequentialFan
Proof
:= ⟨vertex⟩
definition pt
TopologyByExample.SequentialFan.pt
The n-th point of the m-th spine of the sequential fan.
def pt (m n : ℕ) : SequentialFan
:= (some (m, n) : Option (ℕ × ℕ))
theorem pt_ne_vertex
TopologyByExample.SequentialFan.pt_ne_vertex
A point of a spine is not the vertex.
theorem pt_ne_vertex (m n : ℕ) : pt m n ≠ vertex
Proof
:= Option.some_ne_none _
theorem vertex_ne_pt
TopologyByExample.SequentialFan.vertex_ne_pt
The vertex is not a point of a spine.
theorem vertex_ne_pt (m n : ℕ) : vertex ≠ pt m n
Proof
:= (pt_ne_vertex m n).symm
theorem pt_inj
TopologyByExample.SequentialFan.pt_inj
Two points of the spines are equal exactly when their indices are.
@[simp]
theorem pt_inj {m n m' n' : ℕ} : pt m n = pt m' n' ↔ m = m' ∧ n = n'
Proof
:=
Option.some_inj.trans Prod.ext_iff
theorem pt_injective
TopologyByExample.SequentialFan.pt_injective
Each spine is injectively indexed by ℕ.
theorem pt_injective (m : ℕ) : Function.Injective (pt m)
Proof
:= fun _ _ h ↦ (pt_inj.1 h).2
theorem eq_vertex_or_exists_pt
TopologyByExample.SequentialFan.eq_vertex_or_exists_pt
Every point of the sequential fan is the vertex or a point of a spine.
theorem eq_vertex_or_exists_pt (x : SequentialFan) : x = vertex ∨ ∃ m n, x = pt m n
Proof
:= by
rcases (x : Option (ℕ × ℕ)) with _ | ⟨m, n⟩
· exact Or.inl rfl
· exact Or.inr ⟨m, n, rfl⟩
theorem exists_pt_of_ne
TopologyByExample.SequentialFan.exists_pt_of_ne
A point other than the vertex lies on a spine.
theorem exists_pt_of_ne {x : SequentialFan} (hx : x ≠ vertex) : ∃ m n, x = pt m n
Proof
:=
(eq_vertex_or_exists_pt x).resolve_left hx
definition spineFilter
TopologyByExample.SequentialFan.spineFilter
The filter of sets containing all but finitely many points of every spine.
def spineFilter : Filter SequentialFan
:= ⨆ m, map (pt m) cofinite
theorem mem_spineFilter
TopologyByExample.SequentialFan.mem_spineFilter
A set belongs to the spine filter if and only if it contains all but finitely many points of every spine.
theorem mem_spineFilter {s : Set SequentialFan} :
s ∈ spineFilter ↔ ∀ m, {n | pt m n ∉ s}.Finite
Proof
:= by
simp only [spineFilter, mem_iSup, mem_map, mem_cofinite]
rfl
instance
The topology of the sequential fan: every point other than the vertex is isolated, and the neighbourhoods of the vertex are given by the spine filter.
instance : TopologicalSpace SequentialFan
Proof
:= nhdsAdjoint vertex spineFilter
theorem nhds_vertex
TopologyByExample.SequentialFan.nhds_vertex
The neighbourhood filter of the vertex.
theorem nhds_vertex : 𝓝 vertex = pure vertex ⊔ spineFilter
Proof
:=
nhds_nhdsAdjoint_same _ _
theorem isOpen_iff
TopologyByExample.SequentialFan.isOpen_iff
A set is open if and only if, when it contains the vertex, it contains all but finitely many points of every spine.
theorem isOpen_iff {s : Set SequentialFan} :
IsOpen s ↔ (vertex ∈ s → ∀ m, {n | pt m n ∉ s}.Finite)
Proof
:=
imp_congr_right fun _ ↦ mem_spineFilter
theorem isOpen_singleton_of_ne
TopologyByExample.SequentialFan.isOpen_singleton_of_ne
Every point other than the vertex is isolated.
theorem isOpen_singleton_of_ne {x : SequentialFan} (hx : x ≠ vertex) : IsOpen {x}
Proof
:=
isOpen_singleton_nhdsAdjoint _ hx
theorem isOpen_singleton_pt
TopologyByExample.SequentialFan.isOpen_singleton_pt
Every point of a spine is isolated.
theorem isOpen_singleton_pt (m n : ℕ) : IsOpen {pt m n}
Proof
:=
isOpen_singleton_of_ne (pt_ne_vertex m n)
theorem isClosed_of_vertex_mem
TopologyByExample.SequentialFan.isClosed_of_vertex_mem
Every set containing the vertex is closed.
theorem isClosed_of_vertex_mem {s : Set SequentialFan} (hs : vertex ∈ s) : IsClosed s
Proof
:=
⟨fun h ↦ absurd hs h⟩
theorem isOpen_of_vertex_mem
TopologyByExample.SequentialFan.isOpen_of_vertex_mem
A set that contains the vertex and meets every spine in a cofinite set is open.
theorem isOpen_of_vertex_mem {s : Set SequentialFan}
(hs : ∀ m, {n | pt m n ∉ s}.Finite) : IsOpen s
Proof
:=
isOpen_iff.2 fun _ ↦ hs
theorem isOpen_compl_singleton_pt
TopologyByExample.SequentialFan.isOpen_compl_singleton_pt
The complement of a point other than the vertex is open.
theorem isOpen_compl_singleton_pt (m n : ℕ) : IsOpen ({pt m n}ᶜ : Set SequentialFan)
Proof
:= by
refine isOpen_of_vertex_mem fun m' ↦ (finite_singleton n).subset fun n' hn' ↦ ?_
simp only [mem_ofPred_eq, mem_compl_iff, mem_singleton_iff, not_not, pt_inj] at hn'
exact hn'.2
theorem isClopen_singleton_pt
TopologyByExample.SequentialFan.isClopen_singleton_pt
Every point other than the vertex is open and closed.
theorem isClopen_singleton_pt (m n : ℕ) : IsClopen {pt m n}
Proof
:=
⟨isOpen_compl_iff.1 (isOpen_compl_singleton_pt m n), isOpen_singleton_pt m n⟩
theorem not_isOpen_singleton_vertex
TopologyByExample.SequentialFan.not_isOpen_singleton_vertex
The vertex is not isolated.
theorem not_isOpen_singleton_vertex : ¬IsOpen ({vertex} : Set SequentialFan)
Proof
:= by
intro h
have := isOpen_iff.1 h rfl 0
refine infinite_univ (α := ℕ) (this.subset fun n _ ↦ ?_)
simpa using pt_ne_vertex 0 n
instance instAlmostDiscreteSpace
TopologyByExample.SequentialFan.instAlmostDiscreteSpace
The sequential fan is almost discrete: the vertex is its only non-isolated point.
instance instAlmostDiscreteSpace : AlmostDiscreteSpace SequentialFan
Proof
:=
⟨⟨vertex, not_isOpen_singleton_vertex, fun _ ↦ isOpen_singleton_of_ne⟩⟩
On this site: The sequential fan is almost discrete
instance instZeroDimensionalSpace
TopologyByExample.SequentialFan.instZeroDimensionalSpace
The sequential fan is zero-dimensional: an open set containing the vertex is closed, and every other point is open and closed.
instance instZeroDimensionalSpace : ZeroDimensionalSpace SequentialFan
Proof
:= by
refine ZeroDimensionalSpace.of_isTopologicalBasis (u := {s | IsClopen s}) (fun _ h ↦ h)
(isTopologicalBasis_of_isOpen_of_nhds (fun _ h ↦ h.isOpen) fun x u hx hu ↦ ?_)
rcases eq_vertex_or_exists_pt x with rfl | ⟨m, n, rfl⟩
· exact ⟨u, ⟨isClosed_of_vertex_mem hx, hu⟩, hx, subset_rfl⟩
· exact ⟨{pt m n}, isClopen_singleton_pt m n, rfl, singleton_subset_iff.2 hx⟩
On this site: The sequential fan is zero-dimensional
instance instTotallySeparatedSpace
TopologyByExample.SequentialFan.instTotallySeparatedSpace
The sequential fan is totally separated: a point other than the vertex is open and closed.
instance instTotallySeparatedSpace : TotallySeparatedSpace SequentialFan
Proof
:= by
refine totallySeparatedSpace_iff_exists_isClopen.2 fun x y hxy ↦ ?_
rcases eq_vertex_or_exists_pt x with rfl | ⟨m, n, rfl⟩
· obtain ⟨m, n, rfl⟩ := exists_pt_of_ne hxy.symm
exact ⟨{pt m n}ᶜ, (isClopen_singleton_pt m n).compl, hxy, fun h ↦ h rfl⟩
· exact ⟨{pt m n}, isClopen_singleton_pt m n, rfl, Ne.symm hxy⟩
theorem spineFilter_le_nhds
TopologyByExample.SequentialFan.spineFilter_le_nhds
The spine filter lies below the neighbourhood filter of the vertex.
theorem spineFilter_le_nhds : spineFilter ≤ 𝓝 vertex
Proof
:=
nhds_vertex ▸ le_sup_right
theorem tendsto_pt_vertex
TopologyByExample.SequentialFan.tendsto_pt_vertex
An injective sequence along the m-th spine converges to the vertex.
theorem tendsto_pt_vertex (m : ℕ) {u : ℕ → ℕ} (hu : Function.Injective u) :
Tendsto (fun k ↦ pt m (u k)) atTop (𝓝 vertex)
Proof
:= by
refine Tendsto.mono_right (fun s hs ↦ ?_) spineFilter_le_nhds
have := hu.tendsto_cofinite.eventually (mem_spineFilter.1 hs m).eventually_cofinite_notMem
rw [Nat.cofinite_eq_atTop] at this
exact this.mono fun k hk ↦ not_not.1 hk
instance instFrechetUrysohnSpace
TopologyByExample.SequentialFan.instFrechetUrysohnSpace
The sequential fan is a Fréchet–Urysohn space. A point other than the vertex is isolated; if
the vertex lies in the closure of a set s not containing it, then some spine meets s in
infinitely many points, and these points, in order, converge to the vertex.
instance instFrechetUrysohnSpace : FrechetUrysohnSpace SequentialFan
Proof
:= by
refine ⟨fun s x hx ↦ ?_⟩
rcases eq_vertex_or_exists_pt x with rfl | ⟨m, n, rfl⟩
· by_cases hv : vertex ∈ s
· exact subset_seqClosure hv
obtain ⟨m, hm⟩ : ∃ m, {n | pt m n ∈ s}.Infinite := by
by_contra! h
have ho : IsOpen sᶜ := isOpen_of_vertex_mem fun m ↦ by simpa using h m
obtain ⟨y, hy, hys⟩ := mem_closure_iff.1 hx sᶜ ho hv
exact hy hys
have := hm.to_subtype
let e := Infinite.natEmbedding {n | pt m n ∈ s}
exact ⟨fun k ↦ pt m (e k), fun k ↦ (e k).property,
tendsto_pt_vertex m (Subtype.val_injective.comp e.injective)⟩
· obtain ⟨y, hy, hys⟩ := mem_closure_iff.1 hx _ (isOpen_singleton_pt m n) rfl
exact subset_seqClosure ((mem_singleton_iff.1 hy) ▸ hys)
On this site: The sequential fan is Fréchet–Urysohn
theorem not_firstCountableTopology
TopologyByExample.SequentialFan.not_firstCountableTopology
The sequential fan is not first countable. Given countably many neighbourhoods U k of the
vertex, choose a point of the k-th spine in U k; the complement of the set of chosen points is
a neighbourhood of the vertex containing no U k.
theorem not_firstCountableTopology : ¬FirstCountableTopology SequentialFan
Proof
:= by
intro _
obtain ⟨U, hU⟩ := (𝓝 vertex).exists_antitone_basis
have hmem (k : ℕ) : ∃ n, pt k n ∈ U k := by
have h := hU.mem k
rw [nhds_vertex] at h
obtain ⟨n, hn⟩ := (mem_spineFilter.1 h.2 k).infinite_compl.nonempty
exact ⟨n, not_not.1 hn⟩
choose f hf using hmem
have hV : (range fun k ↦ pt k (f k))ᶜ ∈ 𝓝 vertex := by
rw [nhds_vertex]
refine ⟨fun ⟨k, hk⟩ ↦ pt_ne_vertex _ _ hk, mem_spineFilter.2 fun m ↦ ?_⟩
refine (finite_singleton (f m)).subset fun n hn ↦ ?_
simp only [mem_ofPred_eq, mem_compl_iff, not_not, mem_range, pt_inj] at hn
obtain ⟨k, rfl, rfl⟩ := hn
rfl
obtain ⟨k, -, hk⟩ := hU.toHasBasis.mem_iff.1 hV
exact hk (hf k) ⟨k, rfl⟩
On this site: The sequential fan is not first countable
Compact sets
definition initialSpines
TopologyByExample.SequentialFan.initialSpines
The vertex together with the spines numbered below N.
def initialSpines (N : ℕ) : Set SequentialFan
:= {x | ∀ m n, x = pt m n → m < N}
theorem vertex_mem_initialSpines
TopologyByExample.SequentialFan.vertex_mem_initialSpines
The vertex lies in every set initialSpines N.
theorem vertex_mem_initialSpines (N : ℕ) : vertex ∈ initialSpines N
Proof
:=
fun _ _ h ↦ absurd h.symm (pt_ne_vertex _ _)
theorem pt_mem_initialSpines
TopologyByExample.SequentialFan.pt_mem_initialSpines
A point of the m-th spine lies in initialSpines N exactly when m < N.
@[simp]
theorem pt_mem_initialSpines {N m n : ℕ} : pt m n ∈ initialSpines N ↔ m < N
Proof
:=
⟨fun h ↦ h m n rfl, fun h _ _ e ↦ (pt_inj.1 e).1 ▸ h⟩
theorem isCompact_initialSpines
TopologyByExample.SequentialFan.isCompact_initialSpines
The vertex together with finitely many spines is compact.
theorem isCompact_initialSpines (N : ℕ) : IsCompact (initialSpines N)
Proof
:= by
have heq : initialSpines N = insert vertex (range fun p : Fin N × ℕ ↦ pt p.1 p.2) := by
ext x
rcases eq_vertex_or_exists_pt x with rfl | ⟨m, n, rfl⟩
· simp [vertex_mem_initialSpines]
· simp only [pt_mem_initialSpines, mem_insert_iff, pt_ne_vertex, mem_range, pt_inj,
Prod.exists, false_or]
exact ⟨fun h ↦ ⟨⟨m, h⟩, n, rfl, rfl⟩, fun ⟨i, k, h1, _⟩ ↦ h1 ▸ i.isLt⟩
rw [heq]
refine Tendsto.isCompact_insert_range_of_cofinite
(Tendsto.mono_right (fun s hs ↦ mem_cofinite.2 ?_) spineFilter_le_nhds)
refine (finite_iUnion fun i : Fin N ↦ ((mem_spineFilter.1 hs i).image (Prod.mk i))).subset ?_
rintro ⟨i, n⟩ h
exact mem_iUnion.2 ⟨i, n, h, rfl⟩
theorem isDiscrete_compl_vertex
TopologyByExample.SequentialFan.isDiscrete_compl_vertex
The set of points other than the vertex is discrete.
theorem isDiscrete_compl_vertex : IsDiscrete ({vertex}ᶜ : Set SequentialFan)
Proof
:=
isDiscrete_iff_forall_mem_exists_isOpen.2 fun y hy ↦
⟨{y}, isOpen_singleton_of_ne hy, inter_eq_left.2 (singleton_subset_iff.2 hy)⟩
theorem exists_spine_bound_of_isCompact
TopologyByExample.SequentialFan.exists_spine_bound_of_isCompact
A compact subset of the sequential fan meets only finitely many spines. Otherwise, one point from each of infinitely many spines gives an infinite closed discrete subset.
theorem exists_spine_bound_of_isCompact {K : Set SequentialFan} (hK : IsCompact K) :
∃ N, K ⊆ initialSpines N
Proof
:= by
by_contra! h
set M := {m | ∃ n, pt m n ∈ K}
have hM : M.Infinite := by
refine infinite_of_forall_exists_gt fun N ↦ ?_
obtain ⟨x, hxK, hx⟩ := not_subset.1 (h (N + 1))
simp only [initialSpines, mem_ofPred_eq, not_forall, not_lt] at hx
obtain ⟨m, n, rfl, hm⟩ := hx
exact ⟨m, ⟨n, hxK⟩, by omega⟩
have := hM.to_subtype
choose g hg using fun m : M ↦ m.property
set D := range fun m : M ↦ pt m (g m)
have hD : IsClosed D := by
refine isOpen_compl_iff.1 (isOpen_of_vertex_mem fun m ↦ ?_)
refine Subsingleton.finite fun n hn n' hn' ↦ ?_
simp only [mem_ofPred_eq, mem_compl_iff, not_not, D, mem_range, pt_inj] at hn hn'
obtain ⟨k, hk, rfl⟩ := hn
obtain ⟨l, hl, rfl⟩ := hn'
rw [Subtype.ext (hk.trans hl.symm)]
have hinj : Function.Injective fun m : M ↦ pt m (g m) := fun a b hab ↦
Subtype.ext (pt_inj.1 hab).1
have hDv : D ⊆ {vertex}ᶜ := by
rintro _ ⟨k, rfl⟩
exact pt_ne_vertex _ _
refine infinite_range_of_injective hinj ((hK.of_isClosed_subset hD ?_).finite
(isDiscrete_compl_vertex.mono hDv))
rintro _ ⟨k, rfl⟩
exact hg k
On this site: Sequential fan: Compact subsets meet finitely many spines