Fact-checked by Grok 2 weeks ago

Dense set

In , a dense set (or dense subset) of a X is a D \subseteq X whose \overline{D} equals the entire space X, meaning every point in X is either an element of D or a limit point of D. This property ensures that D is "spread out" throughout X in a way that captures its topological structure. An equivalent characterization is that D intersects every nonempty open of X. Classic examples illustrate the concept in familiar spaces. In the real numbers \mathbb{R} equipped with the standard Euclidean topology, the set of rational numbers \mathbb{Q} is countable and dense, as between any two distinct reals there exists a rational. Likewise, the set of irrational numbers is also dense in \mathbb{R}, ensuring that irrationals fill every open interval. These examples highlight how dense sets can be both countable and uncountable while permeating the space completely. Dense sets are fundamental in analysis and topology, particularly for separable metric spaces, where the existence of a countable dense subset implies the topology has a countable basis, simplifying many constructions and proofs. They underpin approximation theorems, such as the density of polynomials in continuous functions on compact intervals (Weierstrass approximation theorem), and enable the completion of metric spaces like to the reals. In broader contexts, nowhere dense sets—subsets whose closures have empty interiors—provide contrasts, aiding the study of residual and meager sets in applications.

Definitions

In topological spaces

In a topological space (X, \tau), a subset D \subseteq X is dense if its closure \overline{D} equals X. The closure \overline{D} is defined as the set of all points x \in X such that every open neighborhood U \in \tau containing x satisfies U \cap D \neq \emptyset. This formulation implies that D is "everywhere" in X, with no nonempty open set entirely avoiding D. An equivalent characterization is that D intersects every nonempty open set in \tau. Specifically, for any U \in \tau with U \neq \emptyset, it holds that U \cap D \neq \emptyset. This intersection property underscores the notion of density without relying on the closure operator, emphasizing the pervasive presence of D across the space. The space X itself is always dense in X, as \overline{X} = X. Moreover, if D is dense and D \subseteq E \subseteq X, then E is also dense, since \overline{E} \supseteq \overline{D} = X implies \overline{E} = X. These properties highlight the hereditary nature of density under inclusion for subsets containing a dense set.

In metric spaces

In a metric space (X, d), a subset D \subseteq X is dense if its closure \overline{D} = X, meaning every point in X is either in D or a limit point of D. Equivalently, D is dense if for every x \in X and every \epsilon > 0, the open ball B(x, \epsilon) = \{ y \in X \mid d(x, y) < \epsilon \} intersects D. This metric-specific characterization leverages the uniformity of open balls to ensure D comes arbitrarily close to every point in the space. Another equivalent condition is that every point x \in X is the limit of a sequence \{x_n\} \subseteq D with x_n \to x. In complete metric spaces, dense subsets play a key role in extensions and completions: any metric space is isometrically embeddable as a dense subset of a , known as its . For instance, the rational numbers \mathbb{Q} form a dense of the real numbers \mathbb{R} under the standard , as sequences of rationals converge to any real. A X is separable if it admits a countable dense , which implies the of a countable basis for the generated by the . Compact spaces are always separable, as their total boundedness allows construction of a countable dense set via finite covers of small balls. In complete spaces without isolated points, the asserts that the countable intersection of open dense sets is itself dense (and nonempty). This theorem underscores the "largeness" of dense sets in complete spaces: for example, no countable dense can be a G_\delta set in such spaces. Moreover, in separable metric spaces, the Borel \sigma-algebra is generated by countable unions and intersections of open balls with rational radii centered at points of the dense subset.

Examples

In the real line

In the real line \mathbb{R} equipped with the standard topology, a D \subseteq \mathbb{R} is dense if its is all of \mathbb{R}, or equivalently, if every nonempty open (a, b) with a < b contains at least one point from D. This property ensures that D "fills" \mathbb{R} in a topological sense, with points arbitrarily close to any . The rational numbers \mathbb{[Q](/page/Q)} form a countable dense subset of \mathbb{R}. For any open (a, b), there exists a rational p/q (with p \in \mathbb{Z}, q \in \mathbb{N}) such that a < p/q < b, as the rationals are order-dense in the reals. This density implies that \mathbb{R} is a separable . The irrational numbers \mathbb{R} \setminus \mathbb{Q} are also dense in \mathbb{R}. To see this, consider any open (a, b); it contains a rational r, and adding a scaled irrational like \sqrt{2}/n (for sufficiently large n \in \mathbb{N}) yields an irrational r + \sqrt{2}/n \in (a, b), since the sum of a rational and a nonzero irrational is irrational. Thus, every open intersects the irrationals. Other examples include the algebraic numbers, which are dense in \mathbb{R} due to their inclusion of all rationals and additional dense layers from roots of polynomials, though they remain countable. In contrast, closed intervals like [0, 1] are not dense in \mathbb{R}, as they miss points outside (0, 1). These examples highlight how density in \mathbb{R} often relies on the interplay between countable and uncountable structures within the ordered field.

In other spaces

In Euclidean spaces of dimension greater than one, such as \mathbb{R}^n with the standard , the set \mathbb{Q}^n consisting of all points with rational coordinates is dense. This density arises because \mathbb{Q} is dense in \mathbb{R}, and the product of dense subsets is dense in the , which coincides with the Euclidean topology on \mathbb{R}^n. The \mathbb{C}, topologically equivalent to \mathbb{R}^2, provides a similar example: the set of Gaussian rationals \{a + bi \mid a, b \in \mathbb{Q}\} is dense in \mathbb{C} under the standard metric topology. Every open disk in \mathbb{C} contains Gaussian rationals, ensuring that the closure of this set is the entire plane. In spaces of continuous functions, such as C([a, b], \mathbb{R}) equipped with the supremum norm topology, the set of real polynomials is dense. The guarantees this, as polynomials form a unital of C([a, b], \mathbb{R}) that separates points and vanishes nowhere. For instance, on the compact [0, 1], any can be uniformly approximated by polynomials to arbitrary precision.

Properties

Closure properties

In a topological space X, a subset D \subseteq X is dense if its \overline{D} = X. Consequently, the of any dense set coincides with the entire X. The operator satisfies monotonicity: if D \subseteq A \subseteq X, then \overline{D} \subseteq \overline{A}. Thus, if D is dense in X, any superset A of D is also dense in X, as \overline{A} \supseteq \overline{D} = X. A dense set need not be closed. However, if a dense set D is closed, then D = \overline{D} = X, so it equals the whole space. The space X itself is always dense in X.

Intersection and unions

In a topological space X, the union of any family of dense subsets is dense. To see this, consider a nonempty U \subseteq X. Since each set in the family is dense, U intersects every member of the family, so U intersects their .$$] This holds for both finite and infinite , as the property relies only on the individual density of each set. In contrast, the intersection of dense subsets need not be dense. For instance, in the real line \mathbb{R} with the standard topology, both the rational numbers \mathbb{Q} and the irrational numbers \mathbb{R} \setminus \mathbb{Q} are dense, but \mathbb{Q} \cap (\mathbb{R} \setminus \mathbb{Q}) = \emptyset, and the empty set is not dense.[$$ Arbitrary intersections of dense sets can fail to be dense even in simpler cases, such as when the sets are not open. However, the situation improves when the dense sets are open. The intersection of finitely many open dense subsets of X is open and dense. For two such sets U and U', if V \subseteq X is nonempty and open, then V \cap U is nonempty and open (hence intersects U'), so V \cap (U \cap U') \neq \emptyset; this extends inductively to finite collections.\] In Baire spaces, such as complete metric spaces, even countable intersections of open dense sets remain dense.\[

Nowhere dense sets

A subset A of a topological space X is nowhere dense if the interior of its closure is empty, that is, \operatorname{int}(\overline{A}) = \emptyset. This condition is equivalent to the closure \overline{A} containing no nonempty open subset of X. An alternative characterization is that for every nonempty open set U \subseteq X, there exists a nonempty open set V \subseteq U such that V \cap A = \emptyset. Nowhere dense sets contrast sharply with dense sets: while a dense set A satisfies \overline{A} = X (so its closure fills the entire space), a nowhere dense set's closure avoids having any substantial "thickness" by excluding open neighborhoods entirely. The complement of a nowhere dense set is dense in X, meaning it intersects every nonempty open set. This notion captures sets that are "sparse" everywhere, with no region where they dominate topologically. In metric spaces, closed nowhere dense sets provide key examples. For instance, any finite subset of \mathbb{R} is nowhere dense, as its closure is itself and has empty interior. The middle-thirds Cantor set C \subseteq [0,1] is a canonical example of a closed, perfect (dense-in-itself with no isolated points), nowhere dense set in \mathbb{R}, as its closure is itself and contains no intervals (hence empty interior). In contrast, the rationals \mathbb{Q} \subseteq \mathbb{R} are not nowhere dense, since \overline{\mathbb{Q}} = \mathbb{R} and \operatorname{int}(\mathbb{R}) = \mathbb{R} \neq \emptyset. Nowhere dense sets play a central role in Baire category theory. A set is meager (or of first category) if it is a countable union of nowhere dense sets; otherwise, it is of second category. The asserts that complete metric spaces (and more generally, Baire spaces) cannot be written as a countable union of nowhere dense sets, implying they are of second category. For example, \mathbb{R} is not a countable union of nowhere dense sets, which has implications like the uncountability of closed intervals and sets. Properties of nowhere dense sets include closure invariance: if A is nowhere dense, then \overline{A} is also nowhere dense. Finite s of nowhere dense sets are nowhere dense, but countable unions need not be (e.g., \mathbb{Q} as a countable union of singletons). In spaces, for any nowhere dense M and nonempty open U, there exists open V \subseteq U with V \cap M = \emptyset and \overline{V} \cap M = \emptyset. Boundaries of open sets are nowhere dense, underscoring their role in describing "thin" topological features.

Residual sets

In topology, a residual set (also called a comeager set) in a is defined as the complement of a meager set, where a meager set is a countable union of nowhere dense subsets. Equivalently, a set is residual if it contains a countable of open dense subsets. This arises prominently in the context of the , which asserts that in a (a ), the countable of open dense sets is itself dense. Consequently, every residual set in such a space is dense, providing a stronger "largeness" property in the sense of category compared to mere density. Residual sets are of second category, meaning they are not meager, and their complements are "small" in the topological category sense. Unlike dense sets, which have closures equal to the entire space but may be meager (e.g., the rational numbers \mathbb{Q} in \mathbb{R}), residual sets capture sets that are generically large under the Baire framework. For instance, in the real line \mathbb{R} with the standard , the set of irrational numbers \mathbb{R} \setminus \mathbb{Q} is residual because its complement \mathbb{Q} is meager (a countable union of singletons, each nowhere dense). This example illustrates how residual sets often coincide with dense G_\delta sets in complete spaces, as the countable intersection of open dense sets yields a dense G_\delta set that is residual. The concept is particularly useful in descriptive set theory and , where sets help characterize properties of functions or points in infinite-dimensional spaces, such as the set of continuous functions in certain topologies being . In non-Baire spaces, sets need not be dense, highlighting the theorem's role in ensuring their ubiquity in "nice" topological settings.

References

  1. [1]
    [PDF] definitions and theorems in general topology - UTK Math
    A subset A ⊂ X is dense in X if ¯A = X. A point x ∈ X is a cluster point of a subset A ⊂ X if any neighborhood of x contains a point of A distinct ...
  2. [2]
    [PDF] Some descriptive set theory
    Aug 13, 2008 · A subset D ⊆ X is called dense if. D ∩ O 6= ∅ for every nonempty open set O ⊆ X. X is called separable if X has a countable dense subset. X is ...
  3. [3]
    [PDF] Topology and the Real Number Line
    Show that the set of rationals Q is a dense subset of the set of real numbers R. Hint: Given an interval (a, b) look at the decimal expansion of a and b. This ...<|control11|><|separator|>
  4. [4]
    [PDF] 1. Tuesday, 26 January 1.1. Density of the rational and irrational ...
    A subset D of the real line is dense if for any real numbers a, b with a<b, (a, b) ∩ D 6= ∅. The rational and irrational numbers are dense.Missing: topology | Show results with:topology
  5. [5]
    [PDF] Part III Topological Spaces - UCSD Math
    A subset D of a topological space X is dense if ¯D = X. A topological space is said to be separable if it contains a countable dense subset, D. Example 10.42.
  6. [6]
    [PDF] 3. Closed sets, closures, and density
    Let (X,T ) be a topological space. A subset D ⊆ X is said to be dense if D = X. We can immediately rephrase this definition in an equivalent form that talks ...
  7. [7]
    Section 5.21 (03HM): Nowhere dense sets—The Stacks project
    Let X be a topological space. The union of a finite number of nowhere dense sets is a nowhere dense set.
  8. [8]
    [PDF] An outline summary of basic point set topology - UChicago Math
    Topological spaces. Definition 1.1. A topology on a set X is a set of subsets, called the open sets, which satisfies the following conditions.
  9. [9]
    [PDF] Notes on Metric Spaces
    These notes introduce the concept of a metric space, which will be an essential notion throughout this course and in others that follow.
  10. [10]
    [PDF] Chapter 1 Metric Spaces
    We can say that a dense set is “almost everywhere”, but in many respects, dense sets can be “small”. For example, two dense sets may have an empty intersection.
  11. [11]
    Dense Subset - an overview | ScienceDirect Topics
    "A dense subset is defined as a subset of a space such that every point in the space is either in the subset or is a limit point of the subset, indicating that ...
  12. [12]
    [PDF] completion.pdf - Mathematics
    The importance of dense subsets is due to the following two results. Theorem 1.5. Let f,g : X/ ⇒ Y be continuous maps between two metric spaces, and X ⊆ X/ a.
  13. [13]
    [PDF] Metric Spaces - Biostatistics
    A subset A of a topological space X is dense if A = X. A topological space X is separable if it has a countable dense subset. 6. Page 7 ...
  14. [14]
    [PDF] Lecture 23: - Baire Category Theorem - UBC Math
    Baire Category Theorem: Let X be a complete metric space. Then the countable intersection of open dense sets is dense, and in partic- ular non-empty.
  15. [15]
    The Topology of the Real Line
    A subset 𝐴 in a topological space 𝑋 is (topologically) dense if every non- empty open set 𝑂 ⊂ 𝑋 contains an element from 𝐴. If the topological space 𝑋 has a.
  16. [16]
    [PDF] Chapter II. Metric Spaces and the Topology of C
    Feb 9, 2022 · A metric space is a pair (X, d) where X is a set and d is a function mapping X × X into R called a metric such that for all x, y, z ∈ X we have.
  17. [17]
    [PDF] The Stone-Weierstrass Theorem
    In other words, the polynomials are uniformly dense in C([a, b],R) with respect to the sup-norm. The original proof was given in [1] in 1885.
  18. [18]
    [PDF] 5 | Closed Sets, Interior, Closure, Boundary
    Let X be a topological space and let Y ⊆ X. The following conditions are equivalent: 1) Y is dense in X. 2) If U ⊆ X is an open set and U 6 ...
  19. [19]
    [PDF] Functional Analysis, Math 7320 Lecture Notes from October 27, 2016
    Oct 27, 2016 · 2 Definition. Let X be a topological space. (a) A subset E ⊂ X is called nowhere dense if (E)◦ = ∅, or equivalently if X \ E is dense in.
  20. [20]
    [PDF] Nowhere Dense Sets. As usual, we assume all spaces are ...
    The subset M of X is nowhere dense in X means that if U is a non-empty open set in X then there is a non-empty open subset V of U that does not intersect M.
  21. [21]
    Residual Set -- from Wolfram MathWorld
    In a complete metric space, a countable union of nowhere dense sets is said to be meager; the complement of such a set is a residual set.
  22. [22]
    245B, Notes 9: The Baire category theorem and its Banach space ...
    Feb 1, 2009 · The Baire category theorem is equivalent to the claim that in a complete metric space, the countable intersection of open dense sets remain dense.
  23. [23]
    [PDF] NOTES ON BAIRE'S THEOREM Example. A complete metric space ...
    What this argument shows is that no countable dense set without isolated points can be a Gδ (in a complete metric space, or a locally compact space.).
  24. [24]
    residual - PlanetMath.org
    Mar 22, 2013 · A subspace A of a topological space X is called residual (or comeager) if and only if it is second category and its complement X∖A X ∖ A is ...
  25. [25]
    [PDF] The Baire category theorem
    Proposition 7.1 Let X be a metric space. Then: (a) Any subset of a nowhere dense set is nowhere dense. (b) The union of finitely many nowhere dense ...
  26. [26]
    [PDF] Section 10.2. The Baire Category Theorem
    Dec 16, 2022 · In this section we define “dense,” “hollow,” and “nowhere dense” sets in a metric space. The Baire Category Theorem concerns a countable union ...
  27. [27]
    Applications of the Baire Category Theorem - Project Euclid
    In fact, the complement of a first category set is dense in the space and large in the sense of category, this set is residual. Sometimes, the Baire Category ...
  28. [28]
    Understanding residual sets - Mathematics Stack Exchange
    Apr 20, 2021 · A set is called residual if it is the complement of a meager set (which is a countable union of nowhere dense subsets).meager and residual subsets of real - Mathematics Stack ExchangeWhat is the intuition behind the terminology surrounding Baire's ...More results from math.stackexchange.com