Dense Sets and Separability

Why can every real number be approximated as closely as we like by a fraction? This is the seed of one of topology's most useful ideas. A dense set is a small, often countable, set. It nevertheless "fills up" a space in a precise topological sense. It leaves no room to breathe around any point that isn't already in it. The rational numbers sit densely inside the reals. The polynomials sit densely inside continuous functions. Finite decimal expansions sit densely inside the real line. In each case an infinite, complicated space is captured by a much simpler skeleton. The notion matters because so much of analysis is built by approximation. One proves a fact for a dense, tractable subset. Then one extends it to the whole space by continuity. Separability is the existence of a countable dense subset. It is the topological hypothesis that makes such extension arguments possible. It is a standing assumption in huge parts of functional analysis, measure theory, and metric geometry. The complementary notion of a nowhere-dense set captures the opposite extreme. It is a set so thin that its closure has empty interior. So it fails to be dense in any open piece of the space. Nowhere-dense sets are the building blocks of "topologically small" sets (meager sets). Their careful analysis is the direct ancestor of the Baire Category Theorem. This is one of the deepest finiteness principles in all of analysis. This article gives the precise definitions of dense, nowhere-dense, and separable. It builds the intuition with pictures. It proves the central structural theorem relating density to open sets and to bases. It works two asymmetric examples in detail. It shows exactly where each hypothesis is load-bearing.

Key takeaways
  • A subset DD of a space XX is dense if D‾=X\overline{D} = X: every nonempty open set meets DD.
  • Equivalently, DD is dense iff its complement has empty interior.
  • A set AA is nowhere dense if int⁡(A‾)=∅\operatorname{int}(\overline{A}) = \varnothing — its closure has no interior.
  • A space is separable if it contains a countable dense subset, e.g. Q\mathbb{Q} in R\mathbb{R}.
  • Second-countability implies separability, but the converse can fail without extra hypotheses like metrizability.
  • Key idea: density is about how a set meets every open set, not about size or measure — a set can be dense and have measure zero.

Where this lives today

Separability is the standing hypothesis behind countless approximation arguments: in functional analysis, a Hilbert space is separable if and only if it admits a countable orthonormal basis, which is the setting for Fourier series and quantum mechanics' state spaces (separable Hilbert space L2L^2). In probability theory, separability of the underlying metric space underlies the existence of regular conditional distributions and the theory of weak convergence of measures (Prokhorov's theorem). In numerical analysis and approximation theory, the density of polynomials in C[a,b]C[a,b] (Weierstrass approximation theorem) or of simple functions in LpL^p spaces is exactly a density statement, enabling algorithms to approximate arbitrary continuous or integrable functions by simple, computable ones. In general topology and set-theoretic topology, nowhere-dense sets are the atomic pieces of meager sets, and the question of when a space cannot be a countable union of nowhere-dense sets is answered by the Baire Category Theorem, a cornerstone used to prove the existence of continuous nowhere-differentiable functions and the Open Mapping / Closed Graph theorems in functional analysis. In computer science, dense countable subsets underlie the theoretical justification for floating-point and rational approximations of real-valued computations, and separability assumptions appear in the theory of Polish spaces used in descriptive set theory and in machine learning's treatment of continuous state spaces.

Ask the tutor: How does the notion of a meager (first category) set, built from countable unions of nowhere-dense sets, set up the proof of the Baire Category Theorem?

DefinitionDense, nowhere-dense, and separable sets

Let (X,τ)(X,\tau) be a topological space and let D,A⊆XD, A \subseteq X. 1. DD is dense in XX if D‾=X\overline{D} = X, where D‾\overline{D} denotes the closure of DD in XX. 2. Equivalently, DD is dense in XX if every nonempty open U∈τU \in \tau satisfies U∩D≠∅U \cap D \neq \varnothing. 3. AA is nowhere dense in XX if int⁡(A‾)=∅\operatorname{int}(\overline{A}) = \varnothing, i.e. the closure of AA has empty interior. 4. XX is separable if there exists a countable subset D⊆XD \subseteq X with D‾=X\overline{D} = X. More generally, for D⊆Y⊆XD \subseteq Y \subseteq X, one says DD is dense in the subspace YY if D‾∩Y=Y\overline{D} \cap Y = Y where the closure is taken in XX (equivalently, DD is dense in YY with the subspace topology).

Intuition

Think of the real line with its usual topology. Around every real number, no matter how small a neighborhood you draw, there is a rational number inside it — this is exactly the statement that Q\mathbb{Q} is dense in R\mathbb{R}. The rationals leave no "gap" open anywhere: every open interval, however tiny, is hit. This is very different from saying the rationals are most of R\mathbb{R} in a measure-theoretic sense — Lebesgue measure of Q\mathbb{Q} is zero — density is a purely topological notion about intersecting open sets, not about size. Contrast this with the set Z\mathbb{Z} of integers inside R\mathbb{R}. Its closure is itself (it's already closed), and that closure has empty interior: no open interval is contained entirely in Z\mathbb{Z}. So Z\mathbb{Z} is nowhere dense. A nowhere-dense set is "thin" in the strongest topological sense — you can always find an open sub-neighborhood of any open set that entirely avoids it (after passing to the closure). Nowhere-dense sets are the atoms out of which countable unions build "meager" (topologically negligible) sets, foreshadowing the Baire Category Theorem, where a complete metric space is proven to be not a countable union of nowhere-dense sets.

Figure
The rationals are dense in R\mathbb{R}: every open interval around xx meets Q\mathbb{Q}
0 1 2 x = √2 (x-ε, x+ε) 99/70 7/5

Intuition, continued

Separability is the statement that a single countable set can serve as this dense skeleton for the entire space. Countability is the crucial economizing feature: it means the space, however large and complicated (even uncountable, like Rn\mathbb{R}^n), can be approximated by a set we can enumerate — d1,d2,d3,…d_1, d_2, d_3, \ldots. This is what allows proofs by "check it on a countable dense set, then pass to the limit," a technique that recurs throughout Continuity arguments, throughout the construction of measures, and throughout functional analysis (e.g. separable Hilbert spaces admit countable orthonormal bases).

TheoremDensity, complements, and countable bases

Let (X,τ)(X,\tau) be a topological space and D⊆XD \subseteq X. Then the following are equivalent: (a) DD is dense in XX, i.e. D‾=X\overline{D} = X. (b) Every nonempty open set U∈τU \in \tau satisfies U∩D≠∅U \cap D \neq \varnothing. (c) X∖DX \setminus D has empty interior, i.e. int⁡(X∖D)=∅\operatorname{int}(X \setminus D) = \varnothing. Moreover, if XX has a countable base B\mathcal{B} for its topology (i.e. XX is second countable), then XX is separable.

Proof

We prove the equivalence of (a), (b), (c) directly from the definitions of closure and interior, and then prove the second-countability implication separately using the axiom of countable choice implicitly through a canonical choice function.

(a) ⇒\Rightarrow (b). Suppose D‾=X\overline{D} = X. Let U∈τU \in \tau be nonempty and suppose for contradiction that U∩D=∅U \cap D = \varnothing. Then D⊆X∖UD \subseteq X \setminus U. Since UU is open, X∖UX \setminus U is closed, and D⊆X∖UD \subseteq X\setminus U implies (by definition of closure as the smallest closed set containing DD) that D‾⊆X∖U\overline{D} \subseteq X \setminus U. But D‾=X\overline D = X by hypothesis, so X⊆X∖UX \subseteq X \setminus U, forcing U=∅U = \varnothing, contradicting the assumption that UU is nonempty. Hence U∩D≠∅U \cap D \neq \varnothing.

(b) ⇒\Rightarrow (a). We always have D‾⊆X\overline D \subseteq X; we must show X⊆D‾X \subseteq \overline D. Let x∈Xx \in X be arbitrary. Recall the standard characterization of closure: x∈D‾x \in \overline D if and only if every open neighborhood UU of xx satisfies U∩D≠∅U \cap D \neq \varnothing. (This characterization itself follows from the definition of D‾\overline D as the intersection of all closed sets containing DD: x∉D‾x \notin \overline D iff there is a closed set C⊇DC \supseteq D with x∉Cx \notin C, iff the open set U=X∖CU = X\setminus C is a neighborhood of xx disjoint from DD.) By hypothesis (b), every nonempty open set meets DD; in particular every open neighborhood of xx is nonempty (it contains xx) and hence meets DD. So x∈D‾x \in \overline D. Since xx was arbitrary, X⊆D‾X \subseteq \overline D, giving D‾=X\overline D = X.

(b) ⇔\Leftrightarrow (c). We show the contrapositive form directly. By definition,

int⁡(X∖D)=⋃{U∈τ:U⊆X∖D}.\operatorname{int}(X \setminus D) = \bigcup \{ U \in \tau : U \subseteq X \setminus D \}.

This union is nonempty if and only if there exists a nonempty open UU with U⊆X∖DU \subseteq X \setminus D, i.e. U∩D=∅U \cap D = \varnothing. Hence:

int⁡(X∖D)≠∅  ⟺  ∃ U∈τ, U≠∅, U∩D=∅.\operatorname{int}(X\setminus D) \neq \varnothing \iff \exists\, U \in \tau,\ U \neq \varnothing,\ U \cap D = \varnothing.

Negating both sides: int⁡(X∖D)=∅\operatorname{int}(X \setminus D) = \varnothing if and only if every nonempty open UU satisfies U∩D≠∅U \cap D \neq \varnothing, which is precisely (b). This proves (b) ⇔\Leftrightarrow (c). Combining, (a) ⇔\Leftrightarrow (b) ⇔\Leftrightarrow (c), establishing the equivalence.

Second-countable ⇒\Rightarrow separable. Suppose XX has a countable base B={B1,B2,B3,…}\mathcal B = \{B_1, B_2, B_3, \ldots\}, i.e. every open set of XX is a union of members of B\mathcal B, and B\mathcal B is countable. Discard from B\mathcal B any BnB_n that is empty; re-index so that we retain only the nonempty basic open sets, still countably many (a subset of a countable set is countable), and if all BnB_n were empty then X=∅X=\varnothing and the empty set is trivially separable via D=∅D=\varnothing, so assume at least one Bn≠∅B_n \neq \varnothing and discard empty ones. For each remaining index nn, since Bn≠∅B_n \neq \varnothing, choose a point dn∈Bnd_n \in B_n (this uses countably many choices, justified by the axiom of countable choice). Let

D={dn:n∈N}.D = \{d_n : n \in \mathbb N\}.

Then DD is countable, being the image of a countable index set. We claim DD is dense. Let U⊆XU \subseteq X be nonempty open. Since B\mathcal B is a base, U=⋃i∈IBiU = \bigcup_{i \in I} B_i for some index set II, and since U≠∅U \neq \varnothing this union is nonempty, so some BnB_n with n∈In \in I is nonempty and Bn⊆UB_n \subseteq U. Then dn∈Bn⊆Ud_n \in B_n \subseteq U, so dn∈U∩Dd_n \in U \cap D, giving U∩D≠∅U \cap D \neq \varnothing. By the already-established equivalence (b) ⇒\Rightarrow (a), DD is dense in XX. Since DD is countable and dense, XX is separable. ■\blacksquare

∎
CorollaryNowhere-dense sets via density of the complement of the closure

Let A⊆XA \subseteq X. Then AA is nowhere dense in XX if and only if X∖A‾X \setminus \overline{A} is dense in XX.

Proof

Apply the equivalence (a) ⇔\Leftrightarrow (c) of Density, complements, and countable bases to the closed set A‾\overline{A} in place of DD's complement's role: we want int⁡(A‾)=∅\operatorname{int}(\overline A) = \varnothing. Set C=A‾C = \overline A, a closed set. By the theorem applied to D=X∖CD = X \setminus C: DD is dense in XX iff int⁡(X∖D)=∅\operatorname{int}(X \setminus D) = \varnothing, i.e. iff int⁡(C)=∅\operatorname{int}(C) = \varnothing (since X∖D=X∖(X∖C)=CX \setminus D = X\setminus(X\setminus C) = C). Thus X∖A‾X \setminus \overline A is dense in XX iff int⁡(A‾)=∅\operatorname{int}(\overline A) = \varnothing, which is exactly the definition of AA being nowhere dense. ■\blacksquare

∎

Worked examples

Example 1: The dyadic rationals are dense in [0,1][0,1], and are nowhere dense as a subset of R∖[0,1]\mathbb{R}\setminus[0,1] considerations aside — but let's do something less standard: showing a non-uniform, asymmetric dense set. Let X=RX = \mathbb{R} with the usual topology, and let

D={m2n:m∈Z, n∈N, n≥1}∖ZD = \left\{ \frac{m}{2^n} : m \in \mathbb{Z},\ n \in \mathbb{N},\ n \geq 1 \right\} \setminus \mathbb{Z}

be the set of dyadic rationals that are not integers (an intentionally asymmetric, "punctured" variant of the usual dyadic rationals, to make sure density survives removing a nontrivial infinite subset). Claim: DD is dense in R\mathbb{R}. Let U=(a,b)U = (a,b) be any nonempty open interval, a<ba < b. We must find an element of DD inside (a,b)(a,b). Choose nn large enough that 2−n<(b−a)/22^{-n} < (b-a)/2; this is possible since 2−n→02^{-n} \to 0 as n→∞n \to \infty (Archimedean property of R\mathbb{R}). Consider the grid of points {m/2n:m∈Z}\{m/2^n : m \in \mathbb{Z}\}, spaced 2−n2^{-n} apart. Since the interval (a,b)(a,b) has length b−a>2⋅2−nb - a > 2\cdot 2^{-n}, it must contain at least one grid point m0/2nm_0/2^n with room to spare: concretely, let m0=⌈a⋅2n⌉+1m_0 = \lceil a \cdot 2^n \rceil + 1; then m0/2n>am_0/2^n > a automatically, and

m02n≤a⋅2n+22n=a+22n<a+(b−a)=b,\frac{m_0}{2^n} \le \frac{a\cdot 2^n + 2}{2^n} = a + \frac{2}{2^n} < a + (b-a) = b,

using 2/2n<b−a2/2^n < b - a from our choice of nn. So m0/2n∈(a,b)m_0/2^n \in (a,b). Now if m0/2nm_0/2^n happens to be an integer (i.e. 2n∣m02^n \mid m_0), replace m0m_0 by m0+1m_0+1: since the grid spacing 2−n2^{-n} is strictly less than b−ab-a divided by 2, and we have at least 22 grid spacings of room inside (a,b)(a,b) by construction (as b−a>2⋅2−nb-a > 2\cdot2^{-n}), the next grid point (m0+1)/2n(m_0+1)/2^n still lies in (a,b)(a,b) if m0/2nm_0/2^n did with strict room, which holds by the strict inequality above with slack. Concretely, since m0/2n<a+2/2nm_0/2^n < a + 2/2^n and 2/2n<b−a2/2^n < b-a, we get (m0+1)/2n=m0/2n+2−n<a+2/2n+2−n<a+(b−a)+2−n(m_0+1)/2^n = m_0/2^n + 2^{-n} < a + 2/2^n + 2^{-n} < a + (b-a) + 2^{-n}, and choosing nn even larger if necessary so that also 3⋅2−n<b−a3\cdot 2^{-n} < b-a guarantees two consecutive grid points both lie in (a,b)(a,b), at most one of which is an integer (integers among dyadic points with denominator 2n2^n occur every 2n2^n grid steps apart, so two consecutive grid points cannot both be integers once n≥1n \ge 1). Hence at least one of m0/2nm_0/2^n, (m0+1)/2n(m_0+1)/2^n is a non-integer dyadic rational lying in (a,b)(a,b), i.e. lies in D∩(a,b)D \cap (a,b). Since (a,b)(a,b) was an arbitrary nonempty basic open interval and the topology of R\mathbb{R} has these intervals as a base, and any nonempty open UU contains some such interval, DD meets every nonempty open set. By (b) ⇒\Rightarrow (a) of the theorem, DD is dense in R\mathbb{R}. Since DD is a subset of the countable set of all dyadic rationals, DD is countable, exhibiting R\mathbb{R}'s separability via a deliberately non-obvious countable dense set.

Example 2: A nowhere-dense set that is uncountable — the standard Cantor set C⊂[0,1]\mathcal{C} \subset [0,1]. Recall C=⋂n=0∞Cn\mathcal{C} = \bigcap_{n=0}^\infty C_n where C0=[0,1]C_0 = [0,1] and Cn+1C_{n+1} is obtained from CnC_n by deleting the open middle third of each closed interval comprising CnC_n. Each CnC_n is a finite union of 2n2^n closed intervals each of length 3−n3^{-n}. Claim: C\mathcal{C} is closed and nowhere dense in R\mathbb{R}, despite being uncountable. First, C\mathcal C is closed: each CnC_n is a finite union of closed intervals, hence closed, and C=⋂nCn\mathcal C = \bigcap_n C_n is an intersection of closed sets, hence closed. Since C\mathcal{C} is closed, C‾=C\overline{\mathcal C} = \mathcal C, so nowhere-density reduces to showing int⁡(C)=∅\operatorname{int}(\mathcal C) = \varnothing. Suppose for contradiction that int⁡(C)≠∅\operatorname{int}(\mathcal C) \neq \varnothing; then there is a nonempty open interval (a,b)⊆C(a,b) \subseteq \mathcal C with b−a=ε>0b - a = \varepsilon > 0. Since C⊆Cn\mathcal{C} \subseteq C_n for every nn, we'd have (a,b)⊆Cn(a,b) \subseteq C_n for every nn. But CnC_n consists of 2n2^n intervals each of length 3−n3^{-n}, so no subinterval of CnC_n has length exceeding 3−n3^{-n} unless it's contained within one of these length-3−n3^{-n} pieces — in particular (a,b)⊆Cn(a,b) \subseteq C_n forces ε=b−a≤3−n\varepsilon = b-a \le 3^{-n} (an interval of length >3−n> 3^{-n} cannot fit inside a single piece of CnC_n, and different pieces of CnC_n are separated by gaps, so no interval can span two pieces either). Choosing nn large enough that 3−n<ε3^{-n} < \varepsilon (possible by the Archimedean property, since 3−n→03^{-n} \to 0) contradicts ε≤3−n\varepsilon \le 3^{-n}. Hence no such (a,b)(a,b) exists, so int⁡(C)=∅\operatorname{int}(\mathcal C) = \varnothing. Therefore C\mathcal C is nowhere dense — despite the well-known fact that C\mathcal C is uncountable (in bijection with {0,1}N\{0,1\}^{\mathbb N} via ternary expansions using only digits 0,20,2). This shows nowhere-density is a statement about the arrangement of a set relative to open sets, entirely independent of cardinality: a nowhere-dense set can be uncountable, and (as Example 1's cousin, Q\mathbb Q, shows) a dense set can be countable.

CounterexampleSecond countability cannot be replaced by mere separability in the converse direction

The theorem shows second countable ⇒\Rightarrow separable. One might hope for the converse: separable ⇒\Rightarrow second countable. This is false in general topological spaces; the extra hypothesis of second countability (or at least metrizability) is essential and cannot be dropped or weakened to separability alone.

Construction. Let X=RX = \mathbb{R} as a set, but equip it with the lower limit topology τℓ\tau_\ell generated by the base of half-open intervals [a,b)[a,b) for a<ba<b (this is the Sommerfeld line, giving the Sorgenfrey line Rℓ\mathbb{R}_\ell). This is a legitimate topology: finite intersections of basic sets [a,b)[a,b) are again of that form or empty, and arbitrary unions of basic sets are declared open, satisfying the topology axioms. Claim: Rℓ\mathbb{R}_\ell is separable. Let D=QD = \mathbb{Q}. Every nonempty basic open set [a,b)[a,b) with a<ba < b contains a rational number (by density of Q\mathbb{Q} in R\mathbb{R} with the usual topology, since [a,b)[a,b) has nonempty interior (a,b)(a,b) in the usual sense, or directly: choose a rational qq with a≤q<ba \le q < b, which exists since the rationals are dense in every nondegenerate interval). Hence every nonempty basic open set meets Q\mathbb{Q}, so by (b) ⇒\Rightarrow (a) of the theorem (applied in Rℓ\mathbb R_\ell; note the equivalence (a)⇔\Leftrightarrow(b) is purely general topology and holds in any space), Q\mathbb Q is dense in Rℓ\mathbb R_\ell. Since Q\mathbb Q is countable, Rℓ\mathbb R_\ell is separable. Claim: Rℓ\mathbb{R}_\ell is <strong>not</strong> second countable. Suppose toward contradiction that B\mathcal B is a countable base for τℓ\tau_\ell. For each x∈Rx \in \mathbb R, the set [x,x+1)[x, x+1) is open, so there exists Bx∈BB_x \in \mathcal B with x∈Bx⊆[x,x+1)x \in B_x \subseteq [x,x+1). In particular BxB_x has xx as its infimum (since Bx⊆[x,x+1)B_x \subseteq [x, x+1) forces every element of BxB_x to be ≥x\ge x, and x∈Bxx \in B_x). If x≠yx \neq y then inf⁡Bx=x≠y=inf⁡By\inf B_x = x \neq y = \inf B_y, so Bx≠ByB_x \neq B_y. This defines an injection x↦Bxx \mapsto B_x from the uncountable set R\mathbb{R} into B\mathcal B, forcing B\mathcal B to be uncountable — contradicting the assumption that B\mathcal B is countable. Hence Rℓ\mathbb{R}_\ell is separable but not second countable, showing the implication in the theorem is strict, and that separability alone is too weak a hypothesis to substitute for second countability whenever second countability is genuinely needed (e.g. in metrization theorems or in guaranteeing that "separable implies Lindelöf" arguments requiring a countable base rather than a countable dense set). The gap is repaired if one additionally assumes XX is metrizable: for metric spaces, separable does imply second countable (taking balls of rational radius around points of a countable dense set), but this extra metrizability hypothesis is exactly what is missing from Rℓ\mathbb{R}_\ell's general topological structure being invoked incorrectly.

Scope, edge cases & common traps

SituationWhat holdsWhat can fail
XX second countableXX is separable (proved above)Converse fails in general (Sorgenfrey line)
XX metrizableSeparable   ⟺  \iff second countable   ⟺  \iff LindelöfNone of these equivalences need metrizability be dropped
AA nowhere denseA‾\overline A has empty interior; X∖A‾X\setminus \overline A denseAA itself need not be closed (only A‾\overline A matters)
Dense set DDMeets every nonempty open setDD need not be open, closed, or of full measure
Countable union of dense setsNeed not be dense's complement small — care neededCountable union of nowhere-dense sets can be dense (e.g. Q\mathbb Q as a countable union of singletons, each nowhere dense) — this is precisely the phenomenon controlled by the Baire Category Theorem

The mathematician behind it

Origins · 1 minFelix Hausdorff and how this was discovered
FH
Felix Hausdorff
1868–1942 · Germany, foundational topology and set theory

Hausdorff's 1914 treatise Grundzüge der Mengenlehre systematized the modern language of topological spaces, including the precise separation axioms and countability conditions (first and second countability, separability) that make "dense" and "nowhere dense" rigorous, comparable notions across abstract spaces rather than just intuitive facts about R\mathbb{R}. His framework let mathematicians such as Baire's category theory, and later functional analysis built on separable Banach and Hilbert spaces, speak in a common precise vocabulary.

History
- 1874 — Georg Cantor studies density and countability of Q\mathbb{Q} within R\mathbb{R} as part of early set theory.
- 1899 — René Baire introduces the classification of sets into categories (meager vs. non-meager), building directly on nowhere-dense sets.
- 1906 — Maurice Fréchet formalizes metric spaces, giving a natural home for separability arguments.
- 1914 — Felix Hausdorff's Grundzüge der Mengenlehre codifies topological spaces, separation axioms, and countability axioms rigorously.
- 1937 — Sorgenfrey-type constructions (the "lower limit topology") become standard counterexamples distinguishing separability from second countability.
What is the difference between "dense" and "everywhere dense"?

There is no difference — "dense" and "everywhere dense" are synonyms, both meaning D‾=X\overline D = X, i.e. DD meets every nonempty open set of XX. The phrase "everywhere dense" is sometimes used in older or translated texts (especially those following Russian or German conventions) purely to emphasize the contrast with "nowhere dense," where the closure of the set has empty interior instead of being the whole space. In modern English-language topology texts, "dense" alone always means this full, everywhere sense unless a qualifier like "dense in YY" (for a proper subspace YY) is explicitly attached.

Is every dense set the complement of a nowhere-dense set?

Not quite — it is precisely the complements of closed nowhere-dense sets that are dense and open simultaneously. In general, DD is dense iff X∖DX\setminus D has empty interior (shown in the theorem), which is a weaker condition than X∖DX \setminus D being nowhere dense, since nowhere-density requires the closure of X∖DX\setminus D to have empty interior, a possibly stronger condition if X∖DX \setminus D is not already closed. However, if CC is closed and nowhere dense, then X∖CX \setminus C is open and dense (shown in the Corollary), and this converse-flavored fact is exactly the version used inside the proof of the Baire Category Theorem.

Can a set be both dense and nowhere dense?

Only in the trivial case where X=∅X = \varnothing. If X≠∅X \neq \varnothing and DD is dense, then D‾=X\overline D = X, so int⁡(D‾)=int⁡(X)=X≠∅\operatorname{int}(\overline D) = \operatorname{int}(X) = X \neq \varnothing, so DD fails to be nowhere dense (whose defining condition is int⁡(D‾)=∅\operatorname{int}(\overline D) = \varnothing). So for nonempty spaces these two notions are mutually exclusive extremes: dense sets have closures that are "topologically everything," while nowhere-dense sets have closures that are "topologically nothing" (contain no open set).

Why does the proof that second countable implies separable need the axiom of choice?

Constructing the dense set DD requires picking, for each of the countably many nonempty basic open sets BnB_n, a specific point dn∈Bnd_n \in B_n. Without a canonical rule for choosing (such as a well-ordering or a metric with a canonical "closest point"), this is an instance of making countably many arbitrary choices simultaneously, which formally requires the axiom of countable choice, a weak form of the full axiom of choice. In most concrete spaces encountered in analysis, such as Rn\mathbb R^n or any metric space with a computable metric, an explicit choice rule (e.g. rational-coordinate points) is available and avoids invoking choice at all, but the general topological statement as proved uses countable choice.

Is the empty set dense, and is it nowhere dense?

The empty set ∅\varnothing is dense in XX if and only if X=∅X = \varnothing, since ∅‾=∅\overline\varnothing = \varnothing, and this equals XX only when XX itself is empty. On the other hand, ∅\varnothing is always nowhere dense in any space XX (including nonempty ones), since ∅‾=∅\overline\varnothing = \varnothing and int⁡(∅)=∅\operatorname{int}(\varnothing) = \varnothing trivially. So in any nonempty space, the empty set is a basic example of a nowhere-dense (but not dense) set, consistent with the mutual exclusivity noted above.

How does nowhere-density relate to the Baire Category Theorem, without proving it here?

A set is called meager (or of the first category) if it is a countable union of nowhere-dense sets, and comeager if its complement is meager. The Baire Category Theorem asserts that in a complete metric space (or a locally compact Hausdorff space), no nonempty open set is meager — equivalently, a countable intersection of dense open sets remains dense. This directly generalizes the intuition that nowhere-dense sets are "thin": the theorem says that even infinitely many thin obstructions, glued together countably, cannot fill up an entire nonempty open region of a complete space. This article's machinery (density, nowhere-density) is exactly the vocabulary that theorem is phrased in.

Does a dense subset of a separable space have to be countable itself?

No — a dense subset can be larger than a minimal countable dense set; for instance R∖{0}\mathbb R \setminus \{0\} is dense in R\mathbb R and is uncountable, even though R\mathbb R is separable via the countable dense set Q\mathbb Q. Separability is an existence statement ("there exists at least one countable dense subset"), not a universal one about every dense subset. Many dense subsets of a separable space can fail to be countable; the defining feature of separability is merely that some countable dense subset exists.

Before this

Where this leads