Lean library · module TopologyByExample.Spaces.CofiniteNat
The cofinite topology on the natural numbers
Mathlib's CofiniteTopology ℕ is the set of natural numbers with the cofinite topology: a set
is open if it is empty or its complement is finite. Its closed sets are the finite sets and the
whole space, so its points are closed and it is T₁. Any two nonempty open sets meet, since each
omits only finitely many points of an infinite set; so it is not Hausdorff, and it is irreducible
and connected. Every subset is compact (Mathlib: the space is Noetherian). It is countable, and the
neighbourhoods of a point are generated by the countably many cofinite sets containing it, so it is
first and second countable.
Main statements
TopologyByExample.CofiniteNat.countable: the space is countable (by the instanceWithTopology.instCountable).TopologyByExample.CofiniteNat.not_t2Space: the space is not Hausdorff.TopologyByExample.CofiniteNat.secondCountableTopology: the space is second countable.TopologyByExample.CofiniteNat.nonempty_inter: two nonempty open sets meet.TopologyByExample.CofiniteNat.dense_of_infinite: every infinite subset is dense.TopologyByExample.CofiniteNat.isCompact: every subset is compact.TopologyByExample.CofiniteNat.tendsto_of_injective: an injective sequence converges to every point.TopologyByExample.CofiniteNat.eq_of_continuous: every continuous map to a Hausdorff space is constant.TopologyByExample.CofiniteNat.locallyConnectedSpace: the space is locally connected (any two nonempty open sets meet, so every open set is connected).TopologyByExample.CofiniteNat.not_forall_joined,TopologyByExample.CofiniteNat.not_pathConnectedSpace,TopologyByExample.CofiniteNat.pathComponent_eq_singleton: the space is not path connected; indeed its path components are points, by Sierpiński's theorem (a countable T₁ space has only constant paths).
Tags
cofinite topology, finite complement topology, counterexample, T₁, not Hausdorff, irreducible
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 countable
TopologyByExample.CofiniteNat.countable
The cofinite topology on ℕ is countable.
theorem countable : Countable (CofiniteTopology ℕ)
Proof
:= inferInstance
theorem nonempty_inter
TopologyByExample.CofiniteNat.nonempty_inter
In the cofinite topology on ℕ, two nonempty open sets meet.
theorem nonempty_inter {U V : Set (CofiniteTopology ℕ)} (hU : IsOpen U) (hV : IsOpen V)
(hU' : U.Nonempty) (hV' : V.Nonempty) : (U ∩ V).Nonempty
Proof
:=
TopologyByExample.CofiniteTopology.nonempty_inter hU hV hU' hV'
theorem not_t2Space
TopologyByExample.CofiniteNat.not_t2Space
The cofinite topology on ℕ is not Hausdorff: two nonempty open sets always meet.
theorem not_t2Space : ¬T2Space (CofiniteTopology ℕ)
instance firstCountableTopology
TopologyByExample.CofiniteNat.firstCountableTopology
The neighbourhood filter of a point in the cofinite topology on ℕ is countably
generated.
instance firstCountableTopology : FirstCountableTopology (CofiniteTopology ℕ)
theorem secondCountableTopology
TopologyByExample.CofiniteNat.secondCountableTopology
The cofinite topology on ℕ is second countable: it is countable and first countable.
theorem secondCountableTopology : SecondCountableTopology (CofiniteTopology ℕ)
Proof
:= inferInstance
theorem compactSpace
TopologyByExample.CofiniteNat.compactSpace
The cofinite topology on ℕ is compact.
theorem compactSpace : CompactSpace (CofiniteTopology ℕ)
Proof
:= inferInstance
theorem isCompact
TopologyByExample.CofiniteNat.isCompact
In the cofinite topology on ℕ, every subset is compact.
theorem isCompact (s : Set (CofiniteTopology ℕ)) : IsCompact s
Proof
:=
NoetherianSpace.isCompact s
theorem connectedSpace
TopologyByExample.CofiniteNat.connectedSpace
The cofinite topology on ℕ is connected.
theorem connectedSpace : ConnectedSpace (CofiniteTopology ℕ)
Proof
:= inferInstance
theorem dense_of_infinite
TopologyByExample.CofiniteNat.dense_of_infinite
In the cofinite topology on ℕ, every infinite subset is dense.
theorem dense_of_infinite {s : Set (CofiniteTopology ℕ)} (hs : s.Infinite) : Dense s
theorem tendsto_of_injective
TopologyByExample.CofiniteNat.tendsto_of_injective
In the cofinite topology on ℕ, an injective sequence converges to every point.
theorem tendsto_of_injective {u : ℕ → CofiniteTopology ℕ} (hu : Function.Injective u)
(x : CofiniteTopology ℕ) : Tendsto u atTop (𝓝 x)
Proof
:=
TopologyByExample.CofiniteTopology.tendsto_of_injective hu x
theorem eq_of_continuous
TopologyByExample.CofiniteNat.eq_of_continuous
Every continuous map from the cofinite topology on ℕ to a Hausdorff space is constant.
theorem eq_of_continuous {Y : Type*} [TopologicalSpace Y] [T2Space Y]
{f : CofiniteTopology ℕ → Y} (hf : Continuous f) (x y : CofiniteTopology ℕ) : f x = f y
Proof
:=
TopologyByExample.CofiniteTopology.eq_of_continuous hf x y
Connectedness and paths
theorem locallyConnectedSpace
TopologyByExample.CofiniteNat.locallyConnectedSpace
The cofinite topology on ℕ is locally connected: any two nonempty open sets meet, so every
open set is connected.
theorem locallyConnectedSpace : LocallyConnectedSpace (CofiniteTopology ℕ)
theorem not_forall_joined
TopologyByExample.CofiniteNat.not_forall_joined
The cofinite topology on ℕ is not path connected: not every two points are joined by a
path.
theorem not_forall_joined : ¬∀ x y : CofiniteTopology ℕ, Joined x y
theorem not_pathConnectedSpace
TopologyByExample.CofiniteNat.not_pathConnectedSpace
The cofinite topology on ℕ is not a path-connected space.
theorem not_pathConnectedSpace : ¬PathConnectedSpace (CofiniteTopology ℕ)
Proof
:= fun h ↦
not_forall_joined h.joined
theorem pathComponent_eq_singleton
TopologyByExample.CofiniteNat.pathComponent_eq_singleton
In the cofinite topology on ℕ, the path component of a point is that point alone.
theorem pathComponent_eq_singleton (x : CofiniteTopology ℕ) : pathComponent x = {x}
Proof
:=
pathComponent_eq_singleton_of_countable x
On this site: Space: Cofinite topology on a countably infinite set