In topology, a dense set is a subset of a topological space that meets every nonempty open subset of that space. Informally, its points occur arbitrarily close to every point of the ambient space, although the subset need not contain every point. Density formalizes the possibility of approximation and is fundamental to mathematical analysis. The standard example is the set of rational numbers within the real numbers. (buttenschoen.ca)
Definition and equivalent formulations
Let be a topological space and . The set is dense in when its closure equals :
Equivalently, every nonempty open set satisfies . In terms of neighborhoods, every neighborhood of every point of meets . These formulations express the same absence of an open region completely missing . (buttenschoen.ca)
In a metric space , density has the approximation formulation
Thus every open ball of positive radius meets . Equivalently, each is the limit of a sequence of points of : choose with . This sequential characterization follows directly from the metric definition; in arbitrary topological spaces, sequences alone need not characterize closure. (buttenschoen.ca)
Density is always relative to an ambient space and its topology. For , the subspace topology gives
Consequently, is dense in precisely when , even if is not dense in . This is an immediate consequence of the closure definition. (ocw.mit.edu)
Examples on the real line
The rational numbers are dense in the real numbers with their usual topology. For any and , choose a positive integer with . Then
is rational and satisfies . Thus rational approximations can achieve any prescribed positive error tolerance. (buttenschoen.ca)
The irrational numbers are also dense. A direct deduction from rational density is that is dense and consists entirely of irrational numbers. Nevertheless, the integers are not dense in , since an interval such as contains no integer. Both conclusions follow from the open-set criterion. (buttenschoen.ca)
Density does not mean that a set is large by counting or volume. The rationals form a countable set and have Lebesgue measure zero, yet are dense. Their complement is also dense. Topological density and measure therefore describe different properties: meeting every open interval does not require occupying a positive amount of length. (people.math.harvard.edu)
Structural properties
Several useful consequences follow directly from the definition:
- Any subset containing a dense subset is itself dense.
- A closed subset is dense in exactly when it equals .
- If is dense in , and is dense in , then is dense in .
- A union containing at least one dense member is dense.
- Intersections of dense sets need not be dense: and are dense but disjoint.
These statements can be checked by applying the open-set criterion or the elementary properties of closure. (buttenschoen.ca)
A finite intersection of open dense sets, however, is open and dense. To see the density of , take any nonempty open set . Because is dense, is nonempty; because is open, this intersection is open. Density of then implies . The argument extends by induction to any finite number of open dense sets. (buttenschoen.ca)
Separability and approximation
A space is separable if it has a countable dense subset. Thus is separable, as is finite-dimensional Euclidean space , where is dense. Every compact metric space is also separable. Separability concerns the existence of a countable collection sufficient to approximate the whole space, rather than the number of points in the space itself. (people.math.harvard.edu)
In functional analysis, density often concerns spaces whose points are functions. The Weierstrass approximation theorem states that polynomials are dense in the space of real-valued continuous functions, equipped with the supremum norm. Explicitly, for every and , a polynomial exists such that
This is approximation over the entire interval, expressed through uniform convergence, rather than approximation at just one point. (ocw.mit.edu)
Nowhere density and the Baire theorem
A nowhere dense set satisfies
This is stronger than merely failing to be dense: its closure contains no nonempty open region. A meagre set is a countable union of nowhere dense sets. The distinction allows a set to be dense but meagre, as happens with the rationals in the real line. (buttenschoen.ca)
The Baire category theorem implies that, in a complete metric space, a countable intersection of open dense sets remains dense. Equivalently, no nonempty open subset can be covered by countably many nowhere dense sets. The openness and completeness assumptions distinguish this result from the unrestricted intersection of dense sets, which may be empty. (ocw.mit.edu)