Dense set
In topology and related areas of mathematics, a subset 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 members of A — for instance, the rational numbers are a dense subset of the real numbers because every real number either is a rational number or has a rational number arbitrarily close to it (see Diophantine approximation). Formally, A is dense in X if the smallest closed subset of X containing A is X itself. The of a topological space X is the least cardinality of a dense subset of X.
In topology and related areas of mathematics, a subset 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 members of A — for instance, the rational numbers are a dense subset of the real numbers because every real number either is a rational number or has a rational number arbitrarily close to it (see Diophantine approximation). Formally, A is dense in X if the smallest closed subset of X containing A is X itself. The of a topological space X is the least cardinality of a dense subset of X. ==Definition== A subset A of a topological space X is said to be a of X if any of the following equivalent conditions are satisfied: The smallest closed subset of X containing A is X itself. The closure of A in X is equal to X. That is, \operatorname{cl}_X A = X. The interior of the complement of A is empty. That is, \operatorname{int}_X (X \setminus A) = \varnothing. Every point in X either belongs to A or is a limit point of A. For every x \in X, every neighborhood U of x intersects A; that is, U \cap A \neq \varnothing. A intersects every non-empty open subset of X. and if \mathcal{B} is a basis of open sets for the topology on X then this list can be extended to include: For every x \in X, every neighborhood B \in \mathcal{B} of x intersects A. A intersects every non-empty B \in \mathcal{B}. ===Density in metric spaces=== An alternative definition of dense set in the case of metric spaces is the following. When the topology of X is given by a metric, the closure \overline{A} of A in X is the union of A and the set of all limits of sequences of elements in A (its limit points), \overline{A} = A \cup \left\{\lim_{n \to \infty} a_n : a_n \in A \text{ for all } n \in \N\right\} Then A is dense in X if \overline{A} = X. If \left\{U_n\right\} is a sequence of dense open sets in a complete metric space, X, then \bigcap^{\infty}_{n=1} U_n is also dense in X. This fact is one of the equivalent forms of the Baire category theorem. ==Examples== The real numbers 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. 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 continuous function defined on a closed interval [a, b] can be uniformly approximated as closely as desired by a polynomial function. In other words, the polynomial functions are dense in the space C[a, b] of continuous complex-valued functions on the interval [a, b], equipped with the supremum norm. Every metric space is dense in its completion. \forall x \in X, \; \exists y \in Y \text{ such that } d_X(x, y) \leq \varepsilon. One can then show that D is dense in \left(X, d_X\right) if and only if it is ε-dense for every \varepsilon > 0. ==See also== ==References== proofs ==General references==
References
No reference rows published for this article.
Cite this article
MLA
"Dense set." encyclopegia.org, 2026, https://encyclopegia.org/wiki/dense-set. Accessed 25 November 2026.
Chicago
"Dense set." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/dense-set.
APA
encyclopegia.org. (2026). Dense set. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/dense-set
Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON