In
topology
In mathematics, topology (from the Greek words , and ) is concerned with the properties of a geometric object that are preserved under continuous deformations, such as stretching, twisting, crumpling, and bending; that is, without closing ho ...
and related areas of
mathematics, a
subset
In mathematics, set ''A'' is a subset of a set ''B'' if all elements of ''A'' are also elements of ''B''; ''B'' is then a superset of ''A''. It is possible for ''A'' and ''B'' to be equal; if they are unequal, then ''A'' is a proper subset o ...
''A'' of a
topological space ''X'' is said to be dense in ''X'' if every point of ''X'' either belongs to ''A'' or else is arbitrarily "close" to a member of ''A'' — for instance, the
rational numbers are a dense subset of the
real number
In mathematics, a real number is a number that can be used to measurement, measure a ''continuous'' one-dimensional quantity such as a distance, time, duration or temperature. Here, ''continuous'' means that values can have arbitrarily small var ...
s because every real number either is a rational number or has a rational number arbitrarily close to it (see
Diophantine approximation).
Formally,
is dense in
if the smallest
closed subset of
containing
is
itself.
The of a topological space
is the least
cardinality of a dense subset of
Definition
A subset
of a
topological space is said to be a of
if any of the following equivalent conditions are satisfied:
- The smallest closed subset of containing is itself.
- The closure of in is equal to That is,
- The
interior
Interior may refer to:
Arts and media
* ''Interior'' (Degas) (also known as ''The Rape''), painting by Edgar Degas
* ''Interior'' (play), 1895 play by Belgian playwright Maurice Maeterlinck
* ''The Interior'' (novel), by Lisa See
* Interior de ...
of the complement of is empty. That is,
- Every point in either belongs to or is a limit point of
- For every every neighborhood of intersects that is,
- intersects every non-empty open subset of
and if
is a
basis of open sets for the topology on
then this list can be extended to include:
- For every every neighborhood of intersects
- intersects every non-empty
Density in metric spaces
An alternative definition of dense set in the case of
metric spaces is the following. When the
topology
In mathematics, topology (from the Greek words , and ) is concerned with the properties of a geometric object that are preserved under continuous deformations, such as stretching, twisting, crumpling, and bending; that is, without closing ho ...
of
is given by a
metric, the
closure of
in
is the
union of
and the set of all
limits of sequences of elements in
(its ''limit points''),
Then
is dense in
if
If
is a sequence of dense
open sets in a complete metric space,
then
is also dense in
This fact is one of the equivalent forms of the
Baire category theorem.
Examples
The
real number
In mathematics, a real number is a number that can be used to measurement, measure a ''continuous'' one-dimensional quantity such as a distance, time, duration or temperature. Here, ''continuous'' means that values can have arbitrarily small var ...
s with the usual topology have the
rational numbers as a
countable dense subset which shows that the
cardinality of a dense subset of a topological space may be strictly smaller than the cardinality of the space itself. The
irrational numbers are another dense subset which shows that a topological space may have several
disjoint dense subsets (in particular, two dense subsets may be each other's complements), and they need not even be of the same cardinality. Perhaps even more surprisingly, both the rationals and the irrationals have empty interiors, showing that dense sets need not contain any non-empty open set. The intersection of two dense open subsets of a topological space is again dense and open.
[Suppose that and are dense open subset of a topological space If then the conclusion that the open set is dense in is immediate, so assume otherwise. Let is a non-empty open subset of so it remains to show that is also not empty. Because is dense in and is a non-empty open subset of their intersection is not empty. Similarly, because is a non-empty open subset of and is dense in their intersection is not empty. ]
The empty set is a dense subset of itself. But every dense subset of a non-empty space must also be non-empty.
By the
Weierstrass approximation theorem, any given
complex-valued
In mathematics, a complex number is an element of a number system that extends the real numbers with a specific element denoted , called the imaginary unit and satisfying the equation i^= -1; every complex number can be expressed in the for ...
continuous function defined on a
closed interval