Lean library · module TopologyByExample.Spaces.CofiniteReal
The cofinite topology on the real line
Mathlib's CofiniteTopology ℝ is the set of real 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.
The general facts about cofinite topologies it relies on are in
TopologyByExample.Theorems.CofiniteTopology: Mathlib provides that the space is T₁ and compact
(indeed Noetherian); since ℝ is uncountable and has the cardinality of the continuum, it is
moreover not first countable, separable, sequentially compact, not Hausdorff, path connected and
locally path connected. This is where the reals differ from the cofinite topology on the natural
numbers, which is connected but not path connected.
Main statements
TopologyByExample.CofiniteReal.t1Space,TopologyByExample.CofiniteReal.compactSpace,TopologyByExample.CofiniteReal.not_t2Space,TopologyByExample.CofiniteReal.not_firstCountableTopology,TopologyByExample.CofiniteReal.separableSpace,TopologyByExample.CofiniteReal.seqCompactSpace,TopologyByExample.CofiniteReal.joined,TopologyByExample.CofiniteReal.locallyPathConnectedSpace,TopologyByExample.CofiniteReal.preconnectedSpace.TopologyByExample.CofiniteReal.continuous_of_injective: every injective map from a T₁ space, such as an interval, is continuous.TopologyByExample.CofiniteReal.nonempty_inter: two nonempty open sets meet.TopologyByExample.CofiniteReal.isPathConnected_of_isOpen: every nonempty open set is path connected.
Tags
cofinite topology, finite complement topology, counterexample, path connected, T₁, not Hausdorff
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.
theorem continuum_le
TopologyByExample.CofiniteReal.continuum_le
The reals have the cardinality of the continuum.
theorem continuum_le : 𝔠 ≤ #ℝ
Proof
:= mk_real.ge
theorem t1Space
TopologyByExample.CofiniteReal.t1Space
The cofinite topology on ℝ is T₁.
theorem t1Space : T1Space (_root_.CofiniteTopology ℝ)
Proof
:= inferInstance
theorem compactSpace
TopologyByExample.CofiniteReal.compactSpace
The cofinite topology on ℝ is compact.
theorem compactSpace : CompactSpace (_root_.CofiniteTopology ℝ)
Proof
:= inferInstance
theorem preconnectedSpace
TopologyByExample.CofiniteReal.preconnectedSpace
The cofinite topology on ℝ is connected.
theorem preconnectedSpace : PreconnectedSpace (_root_.CofiniteTopology ℝ)
Proof
:= inferInstance
theorem nonempty_inter
TopologyByExample.CofiniteReal.nonempty_inter
In the cofinite topology on ℝ, two nonempty open sets meet.
theorem nonempty_inter {U V : Set (_root_.CofiniteTopology ℝ)} (hU : IsOpen U) (hV : IsOpen V)
(hU' : U.Nonempty) (hV' : V.Nonempty) : (U ∩ V).Nonempty
Proof
:=
CofiniteTopology.nonempty_inter hU hV hU' hV'
theorem not_t2Space
TopologyByExample.CofiniteReal.not_t2Space
The cofinite topology on ℝ is not Hausdorff.
theorem not_t2Space : ¬T2Space (_root_.CofiniteTopology ℝ)
Proof
:= CofiniteTopology.not_t2Space
theorem not_firstCountableTopology
TopologyByExample.CofiniteReal.not_firstCountableTopology
The cofinite topology on ℝ is not first countable.
theorem not_firstCountableTopology : ¬FirstCountableTopology (_root_.CofiniteTopology ℝ)
theorem separableSpace
TopologyByExample.CofiniteReal.separableSpace
The cofinite topology on ℝ is separable.
theorem separableSpace : SeparableSpace (_root_.CofiniteTopology ℝ)
Proof
:=
CofiniteTopology.separableSpace
theorem seqCompactSpace
TopologyByExample.CofiniteReal.seqCompactSpace
The cofinite topology on ℝ is sequentially compact.
theorem seqCompactSpace : SeqCompactSpace (_root_.CofiniteTopology ℝ)
Proof
:=
CofiniteTopology.seqCompactSpace
theorem continuous_of_injective
TopologyByExample.CofiniteReal.continuous_of_injective
Every injective map from a T₁ space, such as an interval, to the cofinite topology on ℝ is
continuous.
theorem continuous_of_injective {Y : Type*} [TopologicalSpace Y] [T1Space Y]
{f : Y → _root_.CofiniteTopology ℝ} (hf : Function.Injective f) : Continuous f
Proof
:=
CofiniteTopology.continuous_of_injective hf
theorem joined
TopologyByExample.CofiniteReal.joined
Any two points of the cofinite topology on ℝ are joined by a path.
theorem joined (x y : _root_.CofiniteTopology ℝ) : Joined x y
Proof
:=
CofiniteTopology.joined continuum_le x y
theorem isPathConnected_of_isOpen
TopologyByExample.CofiniteReal.isPathConnected_of_isOpen
In the cofinite topology on ℝ, every nonempty open set is path connected.
theorem isPathConnected_of_isOpen {U : Set (_root_.CofiniteTopology ℝ)} (hU : IsOpen U)
(hne : U.Nonempty) : IsPathConnected U
Proof
:=
CofiniteTopology.isPathConnected_of_finite_compl continuum_le
(_root_.CofiniteTopology.isOpen_iff.1 hU hne) hne
theorem locallyPathConnectedSpace
TopologyByExample.CofiniteReal.locallyPathConnectedSpace
The cofinite topology on ℝ is locally path connected.
theorem locallyPathConnectedSpace : LocallyPathConnectedSpace (_root_.CofiniteTopology ℝ)
On this site: Space: Cofinite topology on a set of at least continuum size