In topology, a branch of mathematics, a closed set is a set that contains all of its boundary points. An example is the closed interval [a,b], which is closed in the real line because it includes both points a and b of its boundary. A point is on the boundary if every neighbourhood of it meets both the set and its complement. A set is thus closed if it is equal to its closure, the set obtained by adjoining all boundary points to it. Closed sets are defined as subsets of topological spaces. The topology of a space is usually described in terms of its open sets, which determine what counts as a "neighborhood" of its points. A set is closed if it is the complement of an open set. In metric spaces, a set is closed if and only if the limit of every convergent sequence of elements in the set has limit in this set; thus a closed set is a set that includes all of its limit points. Because the limits of convergent sequences do not escape a closed set, they are important in many areas of mathematics where limiting arguments are used. A closed set is distinct from the notion of a closed curve or closed manifold. Those are also closed in the topological sense, but the term there usually means that the boundary in the relevant sense is empty. Likewise a closed differential form is not a set at all, but a form that has zero coboundary. Closed is thus used in a different, but related, sense in homology and cohomology.
Definition Given a topological space (X,τ), the following statements are equivalent:
a set A⊆X is closed in X. Ac=X∖A is an open subset of (X,τ); that is, Ac∈τ. A is equal to its closure in X. A contains all of its limit points. A contains all of its boundary points. An alternative characterization of closed sets is available via sequences and nets. A subset A of a topological space X is closed in X if and only if every limit of every net of elements of A also belongs to 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 X, because whether or not a sequence or net converges in X depends on what points are present in X. A point x in X is said to be close to a subset A⊆X if x∈clXA (or equivalently, if x belongs to the closure of A in the topological subspace A∪{x}, meaning x∈clA∪{x}A where A∪{x} is endowed with the subspace topology induced on it by X). Because the closure of A in X is thus the set of all points in X that are close to A, this terminology allows for an intuitive 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 x∈X is close to a subset A if and only if there exists some net (valued) in A that converges to x. If X is a topological subspace of some other topological space Y, in which case Y is called a topological super-space of X, then there might exist some point in Y∖X that is close to A (although not an element of X), which is how it is possible for a subset A⊆X to be closed in X but to not be closed in the "larger" surrounding super-space Y. If A⊆X and if Y is any topological super-space of X then A is always a (potentially proper) subset of clYA, which denotes the closure of A in Y; indeed, even if A is a closed subset of X (which happens if and only if A=clXA), it is nevertheless still possible for A to be a proper subset of clYA. However, A is a closed subset of X if and only if A=X∩clYA for some (or equivalently, for every) topological super-space Y of X. Closed sets can also be used to characterize continuous functions: a map f:X→Y is continuous if and only if f(clXA)⊆clY(f(A)) for every subset A⊆X; this can be reworded intuitively as: f is continuous if and only if for every subset A⊆X, f maps points that are close to A to points that are close to f(A). Similarly, f is continuous at a fixed given point x∈X if and only if whenever x is close to a subset A⊆X, then f(x) is close to f(A).
More about closed sets 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 D in an arbitrary Hausdorff space X, then D will always be a closed subset of 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 X is compact if and only if every collection of nonempty closed subsets of X with empty intersection admits a finite subcollection with empty intersection. A topological space X is disconnected if there exist disjoint, nonempty, open subsets A and B of X whose union is X. Furthermore, X is totally disconnected if it has an open basis consisting of closed sets.
Properties
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. 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 2.
… excerpt ends here. Continue reading the full article.

