Dense set

A subset whose closure is the whole space (equivalently, it meets every nonempty open set)
Dense set

Let (X,d)(X,d) be a and let DXD\subseteq X.

The set DD is dense in XX if its equals XX: D=X, \overline{D}=X, where D\overline{D} is the intersection of all subsets of XX that contain DD.

Equivalently, DD is dense in XX if and only if any (hence all) of the following hold:

  • For every xXx\in X and every ε>0\varepsilon>0, the B(x,ε)={yX:d(x,y)<ε}B(x,\varepsilon)=\{y\in X:d(x,y)<\varepsilon\} intersects DD: B(x,ε)D. B(x,\varepsilon)\cap D\neq\varnothing.
  • Every nonempty UXU\subseteq X intersects DD: U, U open  UD. U\neq\varnothing,\ U\text{ open}\ \Rightarrow\ U\cap D\neq\varnothing.

Dense sets are “topologically large” in the sense that they cannot be avoided by any nontrivial open neighborhood structure.

Examples:

  • Q\mathbb{Q} is dense in R\mathbb{R} (usual metric): every interval contains a rational number.
  • RQ\mathbb{R}\setminus\mathbb{Q} is dense in R\mathbb{R}: every interval contains an irrational number.
  • Qk\mathbb{Q}^k is dense in Rk\mathbb{R}^k.
  • Z\mathbb{Z} is not dense in R\mathbb{R} (e.g. (0,12)(0,\tfrac12) contains no integers).