Separation properties of topological spaces. #
This file defines the predicate SeparatedNhds
, and common separation axioms
(under the Kolmogorov classification).
Main definitions #
SeparatedNhds
: TwoSet
s are separated by neighbourhoods if they are contained in disjoint open sets.HasSeparatingCover
: A set has a countable cover that can be used withhasSeparatingCovers_iff_separatedNhds
to witness when twoSet
s haveSeparatedNhds
.T0Space
: A T₀/Kolmogorov space is a space where, for every two pointsx ≠ y
, there is an open set that contains one, but not the other.R0Space
: An R₀ space (sometimes called a symmetric space) is a topological space such that theSpecializes
relation is symmetric.T1Space
: A T₁/Fréchet space is a space where every singleton set is closed. This is equivalent to, for every pairx ≠ y
, there existing an open set containingx
but noty
(t1Space_iff_exists_open
shows that these conditions are equivalent.) T₁ implies T₀ and R₀.R1Space
: An R₁/preregular space is a space where any two topologically distinguishable points have disjoint neighbourhoods. R₁ implies R₀.T2Space
: A T₂/Hausdorff space is a space where, for every two pointsx ≠ y
, there is two disjoint open sets, one containingx
, and the othery
. T₂ implies T₁ and R₁.T25Space
: A T₂.₅/Urysohn space is a space where, for every two pointsx ≠ y
, there is two open sets, one containingx
, and the othery
, whose closures are disjoint. T₂.₅ implies T₂.RegularSpace
: A regular space is one where, given any closedC
andx ∉ C
, there are disjoint open sets containingx
andC
respectively. Such a space is not necessarily Hausdorff.T3Space
: A T₃ space is a regular T₀ space. T₃ implies T₂.₅.NormalSpace
: A normal space, is one where given two disjoint closed sets, we can find two open sets that separate them. Such a space is not necessarily Hausdorff, even if it is T₀.T4Space
: A T₄ space is a normal T₁ space. T₄ implies T₃.CompletelyNormalSpace
: A completely normal space is one in which for any two setss
,t
such that if bothclosure s
is disjoint witht
, ands
is disjoint withclosure t
, then there exist disjoint neighbourhoods ofs
andt
.Embedding.completelyNormalSpace
allows us to conclude that this is equivalent to all subspaces being normal. Such a space is not necessarily Hausdorff or regular, even if it is T₀.T5Space
: A T₅ space is a completely normal T₁ space. T₅ implies T₄.
See Mathlib.Topology.Separation.GDelta
for the definitions of PerfectlyNormalSpace
and
T6Space
.
Note that mathlib
adopts the modern convention that m ≤ n
if and only if T_m → T_n
, but
occasionally the literature swaps definitions for e.g. T₃ and regular.
Main results #
T₀ spaces #
IsClosed.exists_closed_singleton
: Given a closed setS
in a compact T₀ space, there is somex ∈ S
such that{x}
is closed.exists_isOpen_singleton_of_isOpen_finite
: Given an open finite setS
in a T₀ space, there is somex ∈ S
such that{x}
is open.
T₁ spaces #
isClosedMap_const
: The constant map is a closed map.Finite.instDiscreteTopology
: A finite T₁ space must have the discrete topology.
T₂ spaces #
t2_iff_nhds
: A space is T₂ iff the neighbourhoods of distinct points generate the bottom filter.t2_iff_isClosed_diagonal
: A space is T₂ iff thediagonal
ofX
(that is, the set of all points of the form(a, a) : X × X
) is closed under the product topology.separatedNhds_of_finset_finset
: Any two disjoint finsets areSeparatedNhds
.- Most topological constructions preserve Hausdorffness;
these results are part of the typeclass inference system (e.g.
Topology.IsEmbedding.t2Space
) Set.EqOn.closure
: If two functions are equal on some sets
, they are equal on its closure.IsCompact.isClosed
: All compact sets are closed.WeaklyLocallyCompactSpace.locallyCompactSpace
: If a topological space is both weakly locally compact (i.e., each point has a compact neighbourhood) and is T₂, then it is locally compact.totallySeparatedSpace_of_t1_of_basis_clopen
: IfX
has a clopen basis, then it is aTotallySeparatedSpace
.loc_compact_t2_tot_disc_iff_tot_sep
: A locally compact T₂ space is totally disconnected iff it is totally separated.t2Quotient
: the largest T2 quotient of a given topological space.
If the space is also compact:
normalOfCompactT2
: A compact T₂ space is aNormalSpace
.connectedComponent_eq_iInter_isClopen
: The connected component of a point is the intersection of all its clopen neighbourhoods.compact_t2_tot_disc_iff_tot_sep
: Being aTotallyDisconnectedSpace
is equivalent to being aTotallySeparatedSpace
.ConnectedComponents.t2
:ConnectedComponents X
is T₂ forX
T₂ and compact.
Regular spaces #
If the space is also Lindelöf:
NormalSpace.of_regularSpace_lindelofSpace
: every regular Lindelöf space is normal.
T₃ spaces #
disjoint_nested_nhds
: Given two pointsx ≠ y
, we can find neighbourhoodsx ∈ V₁ ⊆ U₁
andy ∈ V₂ ⊆ U₂
, with theVₖ
closed and theUₖ
open, such that theUₖ
are disjoint.
References #
SeparatedNhds
is a predicate on pairs of subSet
s of a topological space. It holds if the two
subSet
s are contained in disjoint open sets.
Equations
Instances For
Alias of the forward direction of separatedNhds_iff_disjoint
.
Used to prove that a regular topological space with Lindelöf topology is a normal space, and a perfectly normal space is a completely normal space.
A T₀ space, also known as a Kolmogorov space, is a topological space such that for every pair
x ≠ y
, there is an open set containing one but not the other. We formulate the definition in terms
of the Inseparable
relation.
- t0 : ∀ ⦃x y : X⦄, Inseparable x y → x = y
Two inseparable points in a T₀ space are equal.
Instances
A topology inducing map from a T₀ space is injective.
Alias of Topology.IsInducing.injective
.
A topology inducing map from a T₀ space is injective.
A topology inducing map from a T₀ space is a topological embedding.
Alias of Topology.IsInducing.isEmbedding
.
A topology inducing map from a T₀ space is a topological embedding.
Alias of Topology.IsInducing.isEmbedding
.
A topology inducing map from a T₀ space is a topological embedding.
Alias of isEmbedding_iff_isInducing
.
Alias of isEmbedding_iff_isInducing
.
Specialization forms a partial order on a t0 topological space.
Equations
Instances For
Equations
- ⋯ = ⋯
Given a closed set S
in a compact T₀ space, there is some x ∈ S
such that {x}
is
closed.
Given an open finite set S
in a T₀ space, there is some x ∈ S
such that {x}
is open.
Alias of Topology.IsEmbedding.t0Space
.
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
A topological space is called an R₀ space, if Specializes
relation is symmetric.
In other words, given two points x y : X
,
if every neighborhood of y
contains x
, then every neighborhood of x
contains y
.
- specializes_symmetric : Symmetric Specializes
In an R₀ space, the
Specializes
relation is symmetric.
Instances
In an R₀ space, the Specializes
relation is symmetric, dot notation version.
In an R₀ space, the Specializes
relation is symmetric, Iff
version.
In an R₀ space, Specializes
is equivalent to Inseparable
.
In an R₀ space, Specializes
implies Inseparable
.
Alias of Topology.IsInducing.r0Space
.
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
In an R₀ space, the closure of a singleton is a compact set.
In an R₀ space, relatively compact sets form a bornology.
Its cobounded filter is Filter.coclosedCompact
.
See also Bornology.inCompact
the bornology of sets contained in a compact set.
Equations
- Bornology.relativelyCompact X = { cobounded' := Filter.coclosedCompact X, le_cofinite' := ⋯ }
Instances For
In an R₀ space, the closure of a finite set is a compact set.
A T₁ space, also known as a Fréchet space, is a topological space
where every singleton set is closed. Equivalently, for every pair
x ≠ y
, there is an open set containing x
and not y
.
- t1 : ∀ (x : X), IsClosed {x}
A singleton in a T₁ space is a closed set.
Instances
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Alias of Topology.IsEmbedding.t1Space
.
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
If t
is a subset of s
, except for one point,
then insert x s
is a neighborhood of x
within t
.
Removing a non-isolated point from a dense set, one still obtains a dense set.
Removing a finset from a dense set in a space without isolated points, one still obtains a dense set.
Removing a finite set from a dense set in a space without isolated points, one still obtains a dense set.
If a function to a T1Space
tends to some limit y
at some point x
, then necessarily
y = f x
.
Alias of the reverse direction of continuousWithinAt_insert
.
Alias of the forward direction of continuousWithinAt_insert
.
See also continuousWithinAt_diff_self
for the case y = x
but not requiring T1Space
.
If two sets coincide locally around x
, except maybe at y
, then it is equivalent to be
continuous at x
within one set or the other.
To prove a function to a T1Space
is continuous at some point x
, it suffices to prove that
f
admits some limit at x
.
A point with a finite neighborhood has to be isolated.
If the punctured neighborhoods of a point form a nontrivial filter, then any neighborhood is infinite.
Equations
- ⋯ = ⋯
A non-trivial connected T1 space has no isolated points.
Equations
- ⋯ = ⋯
The neighbourhoods filter of x
within s
, under the discrete topology, is equal to
the pure x
filter (which is the principal filter at the singleton {x}
.)
A point x
in a discrete subset s
of a topological space admits a neighbourhood
that only meets s
at x
.
Let x
be a point in a discrete subset s
of a topological space, then there exists an open
set that only meets s
at x
.
For point x
in a discrete subset s
of a topological space, there is a set U
such that
U
is a punctured neighborhood ofx
(ie.U ∪ {x}
is a neighbourhood ofx
),U
is disjoint froms
.
Alias of isClosedEmbedding_update
.
R₁ (preregular) spaces #
Equations
- ⋯ = ⋯
Limits are unique up to separability.
A weaker version of tendsto_nhds_unique
for R1Space
.
In an R₁ space, a point belongs to the closure of a compact set K
if and only if it is topologically inseparable from some point of K
.
In an R₁ space, the closure of a compact set is the union of the closures of its points.
The closure of a compact set in an R₁ space is a compact set.
If K
and L
are disjoint compact sets in an R₁ topological space
and L
is also closed, then K
and L
have disjoint neighborhoods.
If a compact set is covered by two open sets, then we can cover it by two compact subsets.
For every finite open cover Uᵢ
of a compact set, there exists a compact cover Kᵢ ⊆ Uᵢ
.
Alias of Topology.IsInducing.r1Space
.
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
If a point in an R₁ space has a compact neighborhood, then it has a basis of compact closed neighborhoods.
In an R₁ space, the filters coclosedCompact
and cocompact
are equal.
In an R₁ space, the bornologies relativelyCompact
and inCompact
are equal.
Lemmas about a weakly locally compact R₁ space #
In fact, a space with these properties is locally compact and regular. Some lemmas are formulated using the latter assumptions below.
In a (weakly) locally compact R₁ space, compact closed neighborhoods of a point x
form a basis of neighborhoods of x
.
In a (weakly) locally compact R₁ space, each point admits a compact closed neighborhood.
A weakly locally compact R₁ space is locally compact.
Equations
- ⋯ = ⋯
In a weakly locally compact R₁ space, every compact set has an open neighborhood with compact closure.
In a weakly locally compact R₁ space, every point has an open neighborhood with compact closure.
A T₂ space, also known as a Hausdorff space, is one in which for every
x ≠ y
there exists disjoint open sets around x
and y
. This is
the most widely used of the separation axioms.
- t2 : Pairwise fun (x y : X) => ∃ (u : Set X) (v : Set X), IsOpen u ∧ IsOpen v ∧ x ∈ u ∧ y ∈ v ∧ Disjoint u v
Every two points in a Hausdorff space admit disjoint open neighbourhoods.
Instances
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
A space is T₂ iff the neighbourhoods of distinct points generate the bottom filter.
If s
and t
are compact sets in a T₂ space, then the set neighborhoods filter of s ∩ t
is the infimum of set neighborhoods filters for s
and t
.
For general sets, only the ≤
inequality holds, see nhdsSet_inter_le
.
In a T2Space X
, for a compact set t
and a point x
outside t
, there are open sets U
,
V
that separate t
and x
.
If a function f
is
- injective on a compact set
s
; - continuous at every point of this set;
- injective on a neighborhood of each point of this set,
then it is injective on a neighborhood of this set.
If a function f
is
- injective on a compact set
s
; - continuous at every point of this set;
- injective on a neighborhood of each point of this set,
then it is injective on an open neighborhood of this set.
Properties of lim
and limUnder
#
In this section we use explicit Nonempty X
instances for lim
and limUnder
. This way the lemmas
are useful without a Nonempty X
instance.
T2Space
constructions #
We use two lemmas to prove that various standard constructions generate Hausdorff spaces from Hausdorff spaces:
separated_by_continuous
says that two pointsx y : X
can be separated by open neighborhoods provided that there exists a continuous mapf : X → Y
with a Hausdorff codomain such thatf x ≠ f y
. We use this lemma to prove that topological spaces defined usinginduced
are Hausdorff spaces.separated_by_isOpenEmbedding
says that for an open embeddingf : X → Y
of a Hausdorff spaceX
, the images of two distinct pointsx y : X
,x ≠ y
can be separated by open neighborhoods. We use this lemma to prove that topological spaces defined usingcoinduced
are Hausdorff spaces.
Equations
- ⋯ = ⋯
Alias of separated_by_isOpenEmbedding
.
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
If the codomain of an injective continuous function is a Hausdorff space, then so is its domain.
If the codomain of a topological embedding is a Hausdorff space, then so is its domain.
See also T2Space.of_continuous_injective
.
Alias of Topology.IsEmbedding.t2Space
.
If the codomain of a topological embedding is a Hausdorff space, then so is its domain.
See also T2Space.of_continuous_injective
.
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
The largest T2 quotient of a topological space. This construction is left-adjoint to the inclusion of T2 spaces into all topological spaces.
Equations
- t2Quotient X = Quotient (t2Setoid X)
Instances For
Equations
- t2Quotient.instTopologicalSpace = inferInstanceAs (TopologicalSpace (Quotient (t2Setoid X)))
The map from a topological space to its largest T2 quotient.
Equations
- t2Quotient.mk = Quotient.mk (t2Setoid X)
Instances For
The largest T2 quotient of a topological space is indeed T2.
Equations
- ⋯ = ⋯
The universal property of the largest T2 quotient of a topological space X
: any continuous
map from X
to a T2 space Y
uniquely factors through t2Quotient X
. This declaration builds the
factored map. Its continuity is t2Quotient.continuous_lift
, the fact that it indeed factors the
original map is t2Quotient.lift_mk
and uniquenes is t2Quotient.unique_lift
.
Equations
- t2Quotient.lift hf = Quotient.lift f ⋯
Instances For
If functions f
and g
are continuous on a closed set s
,
then the set of points x ∈ s
such that f x = g x
is a closed set.
If two continuous maps are equal on s
, then they are equal on the closure of s
. See also
Set.EqOn.of_subset_closure
for a more general version.
If two continuous functions are equal on a dense set, then they are equal.
If f x = g x
for all x ∈ s
and f
, g
are continuous on t
, s ⊆ t ⊆ closure s
, then
f x = g x
for all x ∈ t
. See also Set.EqOn.closure
.
Alias of Function.LeftInverse.isClosed_range
.
Alias of Function.LeftInverse.isClosedEmbedding
.
In a T2Space X
, for disjoint closed sets s t
such that closure sᶜ
is compact,
there are neighbourhoods that separate s
and t
.
In a T2Space
, every compact set is closed.
If V : ι → Set X
is a decreasing family of compact sets then any neighborhood of
⋂ i, V i
contains some V i
. This is a version of exists_subset_nhds_of_isCompact'
where we
don't need to assume each V i
closed because it follows from compactness since X
is
assumed to be Hausdorff.
A continuous map from a compact space to a Hausdorff space is a closed map.
A continuous injective map from a compact space to a Hausdorff space is a closed embedding.
Alias of Continuous.isClosedEmbedding
.
A continuous injective map from a compact space to a Hausdorff space is a closed embedding.
A continuous surjective map from a compact space to a Hausdorff space is a quotient map.
Alias of IsQuotientMap.of_surjective_continuous
.
A continuous surjective map from a compact space to a Hausdorff space is a quotient map.
There does not exist a nontrivial preirreducible T₂ space.
A topological space is called a regular space if for any closed set s
and a ∉ s
, there
exist disjoint open sets U ⊇ s
and V ∋ a
. We formulate this condition in terms of Disjoint
ness
of filters 𝓝ˢ s
and 𝓝 a
.
If
a
is a point that does not belong to a closed sets
, thena
ands
admit disjoint neighborhoods.
Instances
Alias of RegularSpace.of_lift'_closure
.
Alias of RegularSpace.of_hasBasis
.
A weakly locally compact R₁ space is regular.
Equations
- ⋯ = ⋯
Alias of Topology.IsInducing.regularSpace
.
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
In a regular space, if a compact set and a closed set are disjoint, then they have disjoint neighborhoods.
This technique to witness HasSeparatingCover
in regular Lindelöf topological spaces
will be used to prove regular Lindelöf spaces are normal.
In a (possibly non-Hausdorff) locally compact regular space, for every containment K ⊆ U
of
a compact set K
in an open set U
, there is a compact closed neighborhood L
such that K ⊆ L ⊆ U
: equivalently, there is a compact closed set L
such
that K ⊆ interior L
and L ⊆ U
.
In a locally compact regular space, given a compact set K
inside an open set U
, we can find
an open set V
between these sets with compact closure: K ⊆ V
and the closure of V
is
inside U
.
A T₂.₅ space, also known as a Urysohn space, is a topological space
where for every pair x ≠ y
, there are two open sets, with the intersection of closures
empty, one containing x
and the other y
.
Given two distinct points in a T₂.₅ space, their filters of closed neighborhoods are disjoint.
Instances
Equations
- ⋯ = ⋯
Alias of Topology.IsEmbedding.t25Space
.
Equations
- ⋯ = ⋯
A T₃ space is a T₀ space which is a regular space. Any T₃ space is a T₁ space, a T₂ space, and a T₂.₅ space.
- t0 : ∀ ⦃x y : X⦄, Inseparable x y → x = y
Instances
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Alias of Topology.IsEmbedding.t3Space
.
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Given two points x ≠ y
, we can find neighbourhoods x ∈ V₁ ⊆ U₁
and y ∈ V₂ ⊆ U₂
,
with the Vₖ
closed and the Uₖ
open, such that the Uₖ
are disjoint.
The SeparationQuotient
of a regular space is a T₃ space.
Equations
- ⋯ = ⋯
A topological space is said to be a normal space if any two disjoint closed sets have disjoint open neighborhoods.
- normal : ∀ (s t : Set X), IsClosed s → IsClosed t → Disjoint s t → SeparatedNhds s t
Two disjoint sets in a normal space admit disjoint neighbourhoods.
Instances
If the codomain of a closed embedding is a normal space, then so is the domain.
Alias of Topology.IsClosedEmbedding.normalSpace
.
If the codomain of a closed embedding is a normal space, then so is the domain.
Equations
- ⋯ = ⋯
A regular topological space with a Lindelöf topology is a normal space. A consequence of e.g. Corollaries 20.8 and 20.10 of Willard's General Topology (without the assumption of Hausdorff).
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
A T₄ space is a normal T₁ space.
Instances
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
If the codomain of a closed embedding is a T₄ space, then so is the domain.
Alias of Topology.IsClosedEmbedding.t4Space
.
If the codomain of a closed embedding is a T₄ space, then so is the domain.
Equations
- ⋯ = ⋯
The SeparationQuotient
of a normal space is a normal space.
Equations
- ⋯ = ⋯
A topological space X
is a completely normal space provided that for any two sets s
, t
such that if both closure s
is disjoint with t
, and s
is disjoint with closure t
,
then there exist disjoint neighbourhoods of s
and t
.
Instances
A completely normal space is a normal space.
Equations
- ⋯ = ⋯
A subspace of a completely normal space is a completely normal space.
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
A T₅ space is a completely normal T₁ space.
Instances
Alias of Topology.IsEmbedding.t5Space
.
A subspace of a T₅ space is a T₅ space.
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
The SeparationQuotient
of a completely normal R₀ space is a T₅ space.
Equations
- ⋯ = ⋯
In a compact T₂ space, the connected component of a point equals the intersection of all its clopen neighbourhoods.
A T1 space with a clopen basis is totally separated.
A compact Hausdorff space is totally disconnected if and only if it is totally separated, this is also true for locally compact spaces.
A totally disconnected compact Hausdorff space is totally separated.
Equations
- ⋯ = ⋯
Every member of an open set in a compact Hausdorff totally disconnected space is contained in a clopen set contained in the open set.
A locally compact Hausdorff totally disconnected space has a basis with clopen elements.
A locally compact Hausdorff space is totally disconnected if and only if it is totally separated.
ConnectedComponents X
is Hausdorff when X
is Hausdorff and compact
Equations
- ⋯ = ⋯