# Closed set

In geometry, topology, and related branches of mathematics, a closed set is a set whose complement is an open set.[1][2] In a topological space, a closed set can be defined as a set which contains all its limit points. In a complete metric space, a closed set is a set which is closed under the limit operation. This should not be confused with a closed manifold.

## Equivalent definitions of a closed set

By definition, a subset ${\displaystyle A}$ of a topological space ${\displaystyle (X,\tau )}$ is called closed if its complement ${\displaystyle X\setminus A}$ is an open subset of ${\displaystyle (X,\tau )}$; that is, if ${\displaystyle X\setminus A\in \tau .}$ A set is closed in ${\displaystyle X}$ if and only if it is equal to its closure in ${\displaystyle X.}$ Equivalently, a set is closed if and only if it contains all of its limit points. Yet another equivalent definition is that a set is closed if and only if it contains all of its boundary points. Every subset ${\displaystyle A\subseteq X}$ is always contained in its (topological) closure in ${\displaystyle X,}$ which is denoted by ${\displaystyle \operatorname {cl} _{X}A;}$ that is, if ${\displaystyle A\subseteq X}$ then ${\displaystyle A\subseteq \operatorname {cl} _{X}A.}$ Moreover, ${\displaystyle A}$ is a closed subset of ${\displaystyle X}$ if and only if ${\displaystyle A=\operatorname {cl} _{X}A.}$

An alternative characterization of closed sets is available via sequences and nets. A subset ${\displaystyle A}$ of a topological space ${\displaystyle X}$ is closed in ${\displaystyle X}$ if and only if every limit of every net of elements of ${\displaystyle A}$ also belongs to ${\displaystyle A.}$ In a first-countable space (such as a metric space), it is enough to consider only convergent sequences, instead of all nets. One value of this characterization is that it may be used as a definition in the context of convergence spaces, which are more general than topological spaces. Notice that this characterization also depends on the surrounding space ${\displaystyle X,}$ because whether or not a sequence or net converges in ${\displaystyle X}$ depends on what points are present in ${\displaystyle X.}$ A point ${\displaystyle x}$ in ${\displaystyle X}$ is said to be close to a subset ${\displaystyle A\subseteq X}$ if ${\displaystyle x\in \operatorname {cl} _{X}A}$ (or equivalently, if ${\displaystyle x}$ belongs to the closure of ${\displaystyle A}$ in the topological subspace ${\displaystyle A\cup \{x\},}$ meaning ${\displaystyle x\in \operatorname {cl} _{A\cup \{x\}}A}$ where ${\displaystyle A\cup \{x\}}$ is endowed with the subspace topology induced on it by ${\displaystyle X}$[note 1]). Because the closure of ${\displaystyle A}$ in ${\displaystyle X}$ is thus the set of all points in ${\displaystyle X}$ that are close to ${\displaystyle A,}$ this terminology allows for a plain English description of closed subsets:

a subset is closed if and only if it contains every point that is close to it.

In terms of net convergence, a point ${\displaystyle x\in X}$ is close to a subset ${\displaystyle A}$ if and only if there exists some net (valued) in ${\displaystyle A}$ that converges to ${\displaystyle x.}$ If ${\displaystyle X}$ is a topological subspace of some other topological space ${\displaystyle Y,}$ in which case ${\displaystyle Y}$ is called a topological super-space of ${\displaystyle X,}$ then there might exist some point in ${\displaystyle Y\setminus X}$ that is close to ${\displaystyle A}$ (although not an element of ${\displaystyle X}$), which is how it is possible for a subset ${\displaystyle A\subseteq X}$ to be closed in ${\displaystyle X}$ but to not be closed in the "larger" surrounding super-space ${\displaystyle Y.}$ If ${\displaystyle A\subseteq X}$ and if ${\displaystyle Y}$ is any topological super-space of ${\displaystyle X}$ then ${\displaystyle A}$ is always a (potentially proper) subset of ${\displaystyle \operatorname {cl} _{Y}A,}$ which denotes the closure of ${\displaystyle A}$ in ${\displaystyle Y;}$ indeed, even if ${\displaystyle A}$ is a closed subset of ${\displaystyle X}$ (which happens if and only if ${\displaystyle A=\operatorname {cl} _{X}A}$), it is nevertheless still possible for ${\displaystyle A}$ to be a proper subset of ${\displaystyle \operatorname {cl} _{Y}A.}$ However, ${\displaystyle A}$ is a closed subset of ${\displaystyle X}$ if and only if ${\displaystyle A=X\cap \operatorname {cl} _{Y}A}$ for some (or equivalently, for every) topological super-space ${\displaystyle Y}$ of ${\displaystyle X.}$

Closed sets can also be used to characterize continuous functions: a map ${\displaystyle f:X\to Y}$ is continuous if and only if ${\displaystyle f\left(\operatorname {cl} _{X}A\right)\subseteq \operatorname {cl} _{Y}(f(A))}$ for every subset ${\displaystyle A\subseteq X}$; this can be reworded in plain English as: ${\displaystyle f}$ is continuous if and only if for every subset ${\displaystyle A\subseteq X,}$ ${\displaystyle f}$ maps points that are close to ${\displaystyle A}$ to points that are close to ${\displaystyle f(A).}$ Similarly, ${\displaystyle f}$ is continuous at a fixed given point ${\displaystyle x\in X}$ if and only if whenever ${\displaystyle x}$ is close to a subset ${\displaystyle A\subseteq X,}$ then ${\displaystyle f(x)}$ is close to ${\displaystyle f(A).}$

The notion of closed set is defined above in terms of open sets, a concept that makes sense for topological spaces, as well as for other spaces that carry topological structures, such as metric spaces, differentiable manifolds, uniform spaces, and gauge spaces.

Whether a set is closed depends on the space in which it is embedded. However, the compact Hausdorff spaces are "absolutely closed", in the sense that, if you embed a compact Hausdorff space ${\displaystyle D}$ in an arbitrary Hausdorff space ${\displaystyle X,}$ then ${\displaystyle D}$ will always be a closed subset of ${\displaystyle X}$; the "surrounding space" does not matter here. Stone–Čech compactification, a process that turns a completely regular Hausdorff space into a compact Hausdorff space, may be described as adjoining limits of certain nonconvergent nets to the space.

Furthermore, every closed subset of a compact space is compact, and every compact subspace of a Hausdorff space is closed.

Closed sets also give a useful characterization of compactness: a topological space ${\displaystyle X}$ is compact if and only if every collection of nonempty closed subsets of ${\displaystyle X}$ with empty intersection admits a finite subcollection with empty intersection.

A topological space ${\displaystyle X}$ is disconnected if there exist disjoint, nonempty, open subsets ${\displaystyle A}$ and ${\displaystyle B}$ of ${\displaystyle X}$ whose union is ${\displaystyle X.}$ Furthermore, ${\displaystyle X}$ is totally disconnected if it has an open basis consisting of closed sets.

## Properties of closed sets

A closed set contains its own boundary. In other words, if you are "outside" a closed set, you may move a small amount in any direction and still stay outside the set. Note that this is also true if the boundary is the empty set, e.g. in the metric space of rational numbers, for the set of numbers of which the square is less than ${\displaystyle 2.}$

• Any intersection of any family of closed sets is closed (this includes intersections of infinitely many closed sets)
• The union of finitely many closed sets is closed.
• The empty set is closed.
• The whole set is closed.

In fact, if given a set ${\displaystyle X}$ and a collection ${\displaystyle \mathbb {F} \neq \varnothing }$ of subsets of ${\displaystyle X}$ such that the elements of ${\displaystyle \mathbb {F} }$ have the properties listed above, then there exists a unique topology ${\displaystyle \tau }$ on ${\displaystyle X}$ such that the closed subsets of ${\displaystyle (X,\tau )}$ are exactly those sets that belong to ${\displaystyle \mathbb {F} .}$ The intersection property also allows one to define the closure of a set ${\displaystyle A}$ in a space ${\displaystyle X,}$ which is defined as the smallest closed subset of ${\displaystyle X}$ that is a superset of ${\displaystyle A.}$ Specifically, the closure of ${\displaystyle X}$ can be constructed as the intersection of all of these closed supersets.

Sets that can be constructed as the union of countably many closed sets are denoted Fσ sets. These sets need not be closed.

## Examples of closed sets

• The closed interval ${\displaystyle [a,b]}$ of real numbers is closed. (See Interval (mathematics) for an explanation of the bracket and parenthesis set notation.)
• The unit interval ${\displaystyle [0,1]}$ is closed in the metric space of real numbers, and the set ${\displaystyle [0,1]\cap \mathbb {Q} }$ of rational numbers between ${\displaystyle 0}$ and ${\displaystyle 1}$ (inclusive) is closed in the space of rational numbers, but ${\displaystyle [0,1]\cap \mathbb {Q} }$ is not closed in the real numbers.
• Some sets are neither open nor closed, for instance the half-open interval ${\displaystyle [0,1)}$ in the real numbers.
• Some sets are both open and closed and are called clopen sets.
• The ray ${\displaystyle [1,+\infty )}$ is closed.
• The Cantor set is an unusual closed set in the sense that it consists entirely of boundary points and is nowhere dense.
• Singleton points (and thus finite sets) are closed in T1 spaces and Hausdorff spaces.
• The set of integers ${\displaystyle \mathbb {Z} }$ is an infinite and unbounded closed set in the real numbers.
• If ${\displaystyle f:X\to Y}$ is a function between topological spaces then ${\displaystyle f}$ is a continuous if and only if preimages of closed sets in ${\displaystyle Y}$ are closed in ${\displaystyle X.}$

1. ^ In particular, whether or not ${\displaystyle x}$ is close to ${\displaystyle A}$ depends only on the subspace ${\displaystyle A\cup \{x\}}$ and not on the whole surrounding space (e.g. ${\displaystyle X,}$ or any other space containing ${\displaystyle A\cup \{x\}}$ as a topological subspace).