Lean library · module TopologyByExample.Spaces.SingleUltrafilter
The single ultrafilter space
Let F be an ultrafilter on ℕ. The single ultrafilter space
TopologyByExample.SingleUltrafilter F is ℕ with one extra point p
(SingleUltrafilter.point): every natural number is isolated, and the neighbourhoods of p are
the sets containing p whose trace on ℕ belongs to F. Its topology is nhdsAdjoint p F', where
F' is the image of F under the inclusion of ℕ.
When F is free ((F : Filter ℕ) ≤ cofinite), the space is the subspace of the Stone–Čech
compactification Ultrafilter ℕ consisting of the principal ultrafilters and F
(SingleUltrafilter.isEmbedding_toUltrafilter). Every value is proved for an arbitrary free
ultrafilter, then stated for the particular free ultrafilter Filter.hyperfilter ℕ.
Main definitions
TopologyByExample.SingleUltrafilter F: the space, a type synonym forOption ℕ.TopologyByExample.SingleUltrafilter.nat,TopologyByExample.SingleUltrafilter.point: its points.TopologyByExample.SingleUltrafilter.toUltrafilter: the map toUltrafilter ℕ.
Main results
TopologyByExample.exists_infinite_subset_notMem: an infinite set has an infinite subset outside any given ultrafilter.
For every ultrafilter F:
TopologyByExample.SingleUltrafilter.isOpen_iff: the open sets.TopologyByExample.SingleUltrafilter.almostDiscreteSpace: onlypis not isolated.TopologyByExample.SingleUltrafilter.extremallyDisconnected;TopologyByExample.SingleUltrafilter.anticompactSpace: every compact set is finite.
For every free ultrafilter F:
TopologyByExample.SingleUltrafilter.totallySeparatedSpace;TopologyByExample.SingleUltrafilter.not_weaklyLocallyCompactSpace;TopologyByExample.SingleUltrafilter.isEmbedding_toUltrafilter: the space is a subspace ofUltrafilter ℕ.
The statements at Filter.hyperfilter ℕ carry the suffix _hyperfilter.
References
- L. A. Steen and J. A. Seebach, Counterexamples in Topology, Example 114.
Tags
ultrafilter, Stone–Čech compactification, extremally disconnected, 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
theorem exists_infinite_subset_notMem
TopologyByExample.exists_infinite_subset_notMem
Every infinite set A has an infinite subset that does not belong to a given ultrafilter:
split A into two disjoint infinite sets; they cannot both belong to it.
theorem exists_infinite_subset_notMem {α : Type*} {A : Set α} (hA : A.Infinite)
(u : Ultrafilter α) : ∃ B ⊆ A, B.Infinite ∧ B ∉ u
Proof
:= by
set e : ℕ → α := fun k ↦ hA.natEmbedding A k
have he : Function.Injective e := fun a b h ↦ (hA.natEmbedding A).injective (Subtype.ext h)
have heA (k : ℕ) : e k ∈ A := (hA.natEmbedding A k).property
-- The images of the even and of the odd numbers are disjoint, so one of them is not in `u`.
set E := range fun k ↦ e (2 * k)
set O := range fun k ↦ e (2 * k + 1)
have hE : E.Infinite := infinite_range_of_injective fun a b h ↦ by
have := he h; omega
have hO : O.Infinite := infinite_range_of_injective fun a b h ↦ by
have := he h; omega
by_cases hEu : E ∈ u
· refine ⟨O, ?_, hO, fun hOu ↦ u.empty_notMem ?_⟩
· rintro _ ⟨k, rfl⟩
exact heA _
· have hEO : E ∩ O = ∅ := by
refine eq_empty_of_forall_notMem ?_
rintro _ ⟨⟨a, rfl⟩, ⟨b, hb⟩⟩
have := he hb; omega
exact hEO ▸ inter_mem hEu hOu
· refine ⟨E, ?_, hE, hEu⟩
rintro _ ⟨k, rfl⟩
exact heA _
definition SingleUltrafilter
TopologyByExample.SingleUltrafilter
The single ultrafilter space of an ultrafilter F on ℕ: ℕ together with one new point,
every natural number isolated, the neighbourhoods of the new point being the sets containing it
whose trace on ℕ lies in F.
@[nolint unusedArguments]
def SingleUltrafilter (_F : Ultrafilter ℕ) : Type
:= Option ℕ
variable {F : Ultrafilter ℕ}
definition equivOption
TopologyByExample.SingleUltrafilter.equivOption
The identity equivalence between the single ultrafilter space and Option ℕ.
def equivOption (F : Ultrafilter ℕ) : SingleUltrafilter F ≃ Option ℕ
:= Equiv.refl _
instance
The single ultrafilter space is countable.
instance : Countable (SingleUltrafilter F)
Proof
:= inferInstanceAs (Countable (Option ℕ))
definition nat
TopologyByExample.SingleUltrafilter.nat
The natural number n as a point of the single ultrafilter space.
def nat (F : Ultrafilter ℕ) (n : ℕ) : SingleUltrafilter F
:= (equivOption F).symm (some n)
definition point
TopologyByExample.SingleUltrafilter.point
The point of the single ultrafilter space that is not a natural number.
def point (F : Ultrafilter ℕ) : SingleUltrafilter F
:= (equivOption F).symm none
theorem nat_injective
TopologyByExample.SingleUltrafilter.nat_injective
Distinct natural numbers are distinct points.
theorem nat_injective : Function.Injective (nat F)
Proof
:= Option.some_injective ℕ
theorem nat_ne_point
TopologyByExample.SingleUltrafilter.nat_ne_point
No natural number is the point point F.
theorem nat_ne_point (n : ℕ) : nat F n ≠ point F
Proof
:= Option.some_ne_none n
theorem eq_point_or_exists_nat
TopologyByExample.SingleUltrafilter.eq_point_or_exists_nat
Every point is point F or a natural number.
theorem eq_point_or_exists_nat (x : SingleUltrafilter F) : x = point F ∨ ∃ n, x = nat F n
Proof
:= by
rcases x with _ | n
exacts [Or.inl rfl, Or.inr ⟨n, rfl⟩]
instance
The topology of the single ultrafilter space: the natural numbers are isolated, and the
neighbourhood filter of point F is pure (point F) ⊔ map (nat F) F.
instance : TopologicalSpace (SingleUltrafilter F)
theorem isOpen_iff
TopologyByExample.SingleUltrafilter.isOpen_iff
A set is open if and only if, when it contains point F, its trace on ℕ lies in F.
theorem isOpen_iff {s : Set (SingleUltrafilter F)} :
IsOpen s ↔ (point F ∈ s → nat F ⁻¹' s ∈ F)
Proof
:=
Iff.rfl
theorem nhds_point
TopologyByExample.SingleUltrafilter.nhds_point
The neighbourhood filter of point F.
theorem nhds_point : 𝓝 (point F) = pure (point F) ⊔ map (nat F) F
Proof
:=
nhds_nhdsAdjoint_same _ _
theorem isOpen_singleton_of_ne
TopologyByExample.SingleUltrafilter.isOpen_singleton_of_ne
Every point other than point F is isolated.
theorem isOpen_singleton_of_ne {x : SingleUltrafilter F} (hx : x ≠ point F) : IsOpen {x}
Proof
:=
isOpen_singleton_nhdsAdjoint _ hx
theorem isOpen_singleton_nat
TopologyByExample.SingleUltrafilter.isOpen_singleton_nat
Every natural number is isolated.
theorem isOpen_singleton_nat (n : ℕ) : IsOpen {nat F n}
Proof
:=
isOpen_singleton_of_ne (nat_ne_point n)
theorem not_isOpen_singleton_point
TopologyByExample.SingleUltrafilter.not_isOpen_singleton_point
The point point F is not isolated.
theorem not_isOpen_singleton_point : ¬IsOpen {point F}
Proof
:= fun h ↦ by
have : nat F ⁻¹' {point F} = ∅ := eq_empty_of_forall_notMem fun n hn ↦ nat_ne_point n hn
exact F.empty_notMem (this ▸ isOpen_iff.1 h rfl)
theorem almostDiscreteSpace
TopologyByExample.SingleUltrafilter.almostDiscreteSpace
The single ultrafilter space is almost discrete: point F is its only non-isolated point.
theorem almostDiscreteSpace : AlmostDiscreteSpace (SingleUltrafilter F)
Proof
:=
⟨⟨point F, not_isOpen_singleton_point, fun _ ↦ isOpen_singleton_of_ne⟩⟩
theorem isClosed_of_preimage_notMem
TopologyByExample.SingleUltrafilter.isClosed_of_preimage_notMem
A set whose trace on ℕ is not in F is closed.
theorem isClosed_of_preimage_notMem {s : Set (SingleUltrafilter F)} (hs : nat F ⁻¹' s ∉ F) :
IsClosed s
Proof
:=
⟨isOpen_iff.2 fun _ ↦ by rwa [preimage_compl, Ultrafilter.compl_mem_iff_notMem]⟩
theorem extremallyDisconnected
TopologyByExample.SingleUltrafilter.extremallyDisconnected
The single ultrafilter space is extremally disconnected, for every ultrafilter F. If the
trace of an open set U on ℕ lies in F, so does the trace of its closure, which is therefore
open; otherwise U is closed.
theorem extremallyDisconnected : ExtremallyDisconnected (SingleUltrafilter F)
Proof
:= by
refine ⟨fun U hU ↦ ?_⟩
by_cases h : nat F ⁻¹' U ∈ F
· exact isOpen_iff.2 fun _ ↦ mem_of_superset h (preimage_mono subset_closure)
· rwa [(isClosed_of_preimage_notMem h).closure_eq]
theorem isDiscrete_compl_point
TopologyByExample.SingleUltrafilter.isDiscrete_compl_point
The set of natural numbers is discrete.
theorem isDiscrete_compl_point : IsDiscrete ({point F}ᶜ : Set (SingleUltrafilter F))
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)⟩
Free ultrafilters
variable (hF : (F : Filter ℕ) ≤ cofinite)
include hF
theorem notMem_of_finite
TopologyByExample.SingleUltrafilter.notMem_of_finite
For a free ultrafilter, no finite set of natural numbers lies in F.
theorem notMem_of_finite {s : Set ℕ} (hs : s.Finite) : s ∉ F
Proof
:= fun h ↦
F.compl_notMem_iff.2 h (hF hs.compl_mem_cofinite)
theorem isClopen_singleton_of_ne
TopologyByExample.SingleUltrafilter.isClopen_singleton_of_ne
For a free ultrafilter, every natural number is closed (and open).
theorem isClopen_singleton_of_ne {x : SingleUltrafilter F} (hx : x ≠ point F) : IsClopen {x}
Proof
:= by
refine ⟨isClosed_of_preimage_notMem (notMem_of_finite hF ?_), isOpen_singleton_of_ne hx⟩
exact (subsingleton_singleton.preimage nat_injective).finite
theorem totallySeparatedSpace
TopologyByExample.SingleUltrafilter.totallySeparatedSpace
For a free ultrafilter, the single ultrafilter space is totally separated: the natural numbers are clopen points.
theorem totallySeparatedSpace : TotallySeparatedSpace (SingleUltrafilter F)
Proof
:= by
refine totallySeparatedSpace_iff_exists_isClopen.2 fun x y hxy ↦ ?_
by_cases hx : x = point F
· have hy : y ≠ point F := hx ▸ hxy.symm
exact ⟨{y}ᶜ, (isClopen_singleton_of_ne hF hy).compl, hxy, by simp⟩
· exact ⟨{x}, isClopen_singleton_of_ne hF hx, rfl, hxy.symm⟩
omit hF in
theorem anticompactSpace
TopologyByExample.SingleUltrafilter.anticompactSpace
Every compact subset of the single ultrafilter space is finite. If a
set K contains infinitely many natural numbers, split them into two disjoint infinite sets; one
of them is not in F, so it is closed, and it is discrete, so it is not compact.
theorem anticompactSpace : AnticompactSpace (SingleUltrafilter F)
Proof
:= by
refine ⟨fun K hK ↦ ?_⟩
by_contra hKi
set A := nat F ⁻¹' K
have hA : A.Infinite := by
refine fun hfin ↦ hKi ((hfin.image (nat F)).insert (point F) |>.subset fun x hx ↦ ?_)
rcases eq_point_or_exists_nat x with rfl | ⟨n, rfl⟩
exacts [mem_insert _ _, mem_insert_of_mem _ ⟨n, hx, rfl⟩]
obtain ⟨B, hBA, hBi, hBF⟩ := exists_infinite_subset_notMem hA F
set D := nat F '' B
have hD : IsClosed D :=
isClosed_of_preimage_notMem (by rwa [preimage_image_eq _ nat_injective])
have hDK : D ⊆ K := by
rintro _ ⟨n, hn, rfl⟩
exact hBA hn
have hDp : D ⊆ {point F}ᶜ := by
rintro _ ⟨n, -, rfl⟩
exact nat_ne_point n
exact (hBi.image nat_injective.injOn)
((hK.of_isClosed_subset hD hDK).finite (isDiscrete_compl_point.mono hDp))
theorem not_weaklyLocallyCompactSpace
TopologyByExample.SingleUltrafilter.not_weaklyLocallyCompactSpace
For a free ultrafilter, the single ultrafilter space is not weakly locally compact: a compact
neighbourhood of point F would be finite, but its trace on ℕ lies in F.
theorem not_weaklyLocallyCompactSpace : ¬WeaklyLocallyCompactSpace (SingleUltrafilter F)
Proof
:= by
intro _
obtain ⟨K, hK, hKn⟩ := exists_compact_mem_nhds (point F)
rw [nhds_point] at hKn
have hfin := anticompactSpace.finite_of_isCompact K hK
exact notMem_of_finite hF (hfin.preimage nat_injective.injOn) (mem_map.1 hKn.2)
The single ultrafilter space as a subspace of βℕ
omit hF in
definition toUltrafilter
TopologyByExample.SingleUltrafilter.toUltrafilter
The map from the single ultrafilter space to the space of ultrafilters on ℕ: n goes to
the principal ultrafilter at n, and point F to F.
def toUltrafilter (F : Ultrafilter ℕ) (x : SingleUltrafilter F) : Ultrafilter ℕ
:=
Option.elim ((equivOption F) x) F pure
omit hF in
theorem toUltrafilter_nat
TopologyByExample.SingleUltrafilter.toUltrafilter_nat
A natural number goes to its principal ultrafilter.
theorem toUltrafilter_nat (n : ℕ) : toUltrafilter F (nat F n) = pure n
Proof
:= rfl
omit hF in
theorem toUltrafilter_point
TopologyByExample.SingleUltrafilter.toUltrafilter_point
The point point F goes to F.
theorem toUltrafilter_point : toUltrafilter F (point F) = F
Proof
:= rfl
omit hF in
theorem continuous_toUltrafilter
TopologyByExample.SingleUltrafilter.continuous_toUltrafilter
The map to the space of ultrafilters is continuous.
theorem continuous_toUltrafilter : Continuous (toUltrafilter F)
Proof
:= by
refine ultrafilterBasis_is_basis.continuous_iff.2 ?_
rintro _ ⟨s, rfl⟩
exact isOpen_iff.2 fun h ↦ h
theorem isEmbedding_toUltrafilter
TopologyByExample.SingleUltrafilter.isEmbedding_toUltrafilter
For a free ultrafilter F, the single ultrafilter space is homeomorphic to its image in the
space of ultrafilters on ℕ: the subspace of the principal ultrafilters and F.
theorem isEmbedding_toUltrafilter : Topology.IsEmbedding (toUltrafilter F)
Proof
:= by
have hpure (n : ℕ) : toUltrafilter F (point F) ≠ pure n := fun h ↦
notMem_of_finite hF (finite_singleton n) (by
rw [toUltrafilter_point] at h
rw [h]
exact Ultrafilter.mem_pure.2 rfl)
refine ⟨Topology.isInducing_iff_nhds.2 fun x ↦ le_antisymm ?_ ?_, fun x y h ↦ ?_⟩
· exact (continuous_toUltrafilter.tendsto x).le_comap
· rcases eq_point_or_exists_nat x with rfl | ⟨n, rfl⟩
· intro s hs
rw [nhds_point] at hs
refine ⟨{u | nat F ⁻¹' s ∈ u}, (ultrafilter_isOpen_basic _).mem_nhds hs.2, ?_⟩
intro y hy
rcases eq_point_or_exists_nat y with rfl | ⟨m, rfl⟩
· exact hs.1
· exact hy
· intro s hs
refine ⟨{u | {n} ∈ u}, (ultrafilter_isOpen_basic _).mem_nhds
(Ultrafilter.mem_pure.2 rfl), ?_⟩
intro y hy
rcases eq_point_or_exists_nat y with rfl | ⟨m, rfl⟩
· exact absurd hy (notMem_of_finite hF (finite_singleton n))
· have : m = n := Ultrafilter.mem_pure.1 hy
subst this
exact mem_of_mem_nhds hs
· rcases eq_point_or_exists_nat x with rfl | ⟨m, rfl⟩ <;>
rcases eq_point_or_exists_nat y with rfl | ⟨n, rfl⟩
· rfl
· exact absurd h (hpure n)
· exact absurd h.symm (hpure m)
· exact congrArg _ (Ultrafilter.pure_injective h)
The space at the hyperfilter
theorem totallySeparatedSpace_hyperfilter
TopologyByExample.SingleUltrafilter.totallySeparatedSpace_hyperfilter
The single ultrafilter space of the hyperfilter is totally separated.
theorem totallySeparatedSpace_hyperfilter :
TotallySeparatedSpace (SingleUltrafilter (hyperfilter ℕ))
Proof
:=
totallySeparatedSpace hyperfilter_le_cofinite
On this site: The single ultrafilter space is totally separated
theorem extremallyDisconnected_hyperfilter
TopologyByExample.SingleUltrafilter.extremallyDisconnected_hyperfilter
The single ultrafilter space of the hyperfilter is extremally disconnected.
theorem extremallyDisconnected_hyperfilter :
ExtremallyDisconnected (SingleUltrafilter (hyperfilter ℕ))
Proof
:=
extremallyDisconnected
On this site: The single ultrafilter space is extremally disconnected
theorem almostDiscreteSpace_hyperfilter
TopologyByExample.SingleUltrafilter.almostDiscreteSpace_hyperfilter
The single ultrafilter space of the hyperfilter is almost discrete.
theorem almostDiscreteSpace_hyperfilter :
AlmostDiscreteSpace (SingleUltrafilter (hyperfilter ℕ))
Proof
:=
almostDiscreteSpace
On this site: The single ultrafilter space is almost discrete
theorem anticompactSpace_hyperfilter
TopologyByExample.SingleUltrafilter.anticompactSpace_hyperfilter
The single ultrafilter space of the hyperfilter is anticompact.
theorem anticompactSpace_hyperfilter : AnticompactSpace (SingleUltrafilter (hyperfilter ℕ))
Proof
:=
anticompactSpace
On this site: The single ultrafilter space is anticompact
theorem not_weaklyLocallyCompactSpace_hyperfilter
TopologyByExample.SingleUltrafilter.not_weaklyLocallyCompactSpace_hyperfilter
The single ultrafilter space of the hyperfilter is not weakly locally compact.
theorem not_weaklyLocallyCompactSpace_hyperfilter :
¬WeaklyLocallyCompactSpace (SingleUltrafilter (hyperfilter ℕ))
Proof
:=
not_weaklyLocallyCompactSpace hyperfilter_le_cofinite
On this site: The single ultrafilter space is not weakly locally compact
theorem isEmbedding_toUltrafilter_hyperfilter
TopologyByExample.SingleUltrafilter.isEmbedding_toUltrafilter_hyperfilter
The single ultrafilter space of the hyperfilter embeds in the space of ultrafilters on ℕ.
theorem isEmbedding_toUltrafilter_hyperfilter :
Topology.IsEmbedding (toUltrafilter (hyperfilter ℕ))
Proof
:=
isEmbedding_toUltrafilter hyperfilter_le_cofinite
On this site: Single ultrafilter space: A subspace of \(\beta\mathbb{N}\)
On this site: Space: Single ultrafilter space