First of all, I am sorry for asking a question about understanding a definition in a book named Understanding Analysis. But it is my first time to encounter basic topology, so I hope you can excuse me. I have searched previous questions like this and this. I have looked to the wiki page. Still I am having a hard time to understand the following definition:

A set $E$ is nowhere dense if $\overline E$ (the closure of $E$) contains no nonempty open intervals.

I am not familiar with other concepts of topology which are not available in the Abbott's Understanding Analysis like balls or interior. I know a set $A$ is dense in $B$ if and only if $\overline A = B$. For example, $\mathbb Q$ is dense in $\mathbb R$, because its limit points are all real numbers and its closure gives $\mathbb R$. Similarly, $\mathbb Z$ is not dense in $\mathbb R$ because it doesn't have limit points and hence its closure is itself.

According to my knowledge of denseness, could you help me to understand the above definition with an example?

  • 19
    $\begingroup$ Nothing to be sorry about! You have searched what you could and asked a good question, and you deserve a good answer. =) $\endgroup$
    – user21820
    Apr 16, 2015 at 9:01
  • 18
    $\begingroup$ +1 for sorry for asking a question about understanding a definition in a book named Understanding Analyis $\endgroup$ Apr 16, 2015 at 9:03
  • 4
    $\begingroup$ Not sure if this helps. $S$ is the Serbs and $B$ is the Bosnians. $B$ is nowhere dense in $S$ if we can take any Bosnian (who isn't also a serb; the analogy breaks a bit here), and put an open fence around him, so that throughout the inside the fence there are only Bosnians. $$$$ On the other hand if there was a place that $B$ was dense in $S$, then there would be some Bosnian who can't fence himself off from Serbs in an open way. That Bosnian would be topologically 'inseperable' in some sense from the Serbs. $$$$ Of course, precisely what `open' means depends on the topology you have. $\endgroup$ Apr 16, 2015 at 9:03
  • 2
    $\begingroup$ For arbitrary $S$ and $B$, it may happen that all the Bosnians make fences separating themselves from the Serbs (no matter what size or shape, open or closed, just as long as there are no Serbs). More Bosnians come and stand on top of the fence. Whereas Bosnians previously only roamed inside the fences, now there are also Bosnians directly along all the borders too. (Closure) $$$$ Now if none of the Bosnians find themselves in an open region of only Bosnians, then $B$ is nowhere dense in $S$. In this case the Serbs have contained the Bosnians to isolated points. $\endgroup$ Apr 16, 2015 at 9:25
  • 1
    $\begingroup$ @enthdegree Thank you for this Bosnian/Serbian example. It is a nice analogy to the intuition behind the definitions. $\endgroup$
    – user137035
    Apr 16, 2015 at 11:44

4 Answers 4


Nowhere dense is a strengthening of the condition "not dense" (every nowhere dense set is not dense, but the converse is false). Another definition of nowhere dense that might be helpful in gaining an intuition is that a set $S \subset X$ is nowhere dense set in $X$ if and only if it is not dense in any non-empty open subset of $X$ (with the subset topology).

For example, $\mathbb{Z}$ is nowhere dense in $\mathbb{R}$ because it is its own closure, and it does not contain any open intervals (i.e. there is no $(a, b)$ s.t. $(a, b) \subset \mathbb{\bar{Z}} = \mathbb{Z}$. An example of a set which is not dense, but which fails to be nowhere dense would be $\{x \in \mathbb{Q} \; | \; 0 < x < 1 \}$. Its closure is $[0, 1]$, which contains the open interval $(0, 1)$. Using the alternate definition, you can note that the set is dense in $(0, 1) \subset \mathbb{R}$.

An example of a set which is not closed but is still nowhere dense is $\{\frac{1}{n} \; | \; n \in \mathbb{N}\}$. It has one limit point which is not in the set (namely $0$), but its closure is still nowhere dense because no open intervals fit within $\{\frac{1}{n} \; | \; n \in \mathbb{N}\} \cup \{0\}$.

  • 4
    $\begingroup$ I don't want to add yet another answer just to say this, but the nice quantifier-free topological definition of nowhere dense is $\operatorname{int}(\bar S)=\emptyset$. $\endgroup$ Apr 16, 2015 at 10:37
  • 1
    $\begingroup$ @MarioCarneiro Good point, this is in fact how I have usually seen it defined in books on general topology (with good reason). I did not use it because the asker said he is not familiar with the concept of an interior. $\endgroup$ Apr 16, 2015 at 10:39
  • 6
    $\begingroup$ If you know closure but not interior, another way to write it is $\overline{X\setminus \bar S}=X$, which can be read "the complement of $\bar S$ is dense". $\endgroup$ Apr 16, 2015 at 10:42
  • 1
    $\begingroup$ Your clear answer and examples really helped me to grasp the idea. Thank you very much. $\endgroup$
    – user137035
    Apr 16, 2015 at 11:29
  • 1
    $\begingroup$ $A$ is dense in $B$ whenever the part of $A$ that lies in $B$, so $A \cap B$ is dense in $B$ in the closure sense. That's the same as the $B \subset \overline{A}$ definition. @HritRoy $\endgroup$ Aug 19, 2018 at 7:02

I'm not overly familiar with what's in Abbott's Understanding Analysis, but I'll try to pass from denseness to nowhere denseness using open sets. This is mainly to give another way of looking at these sets.

As you have probably seen, a set $A$ is dense in $\mathbb{R}$ (or, respectively, any topological space $X$) if $\overline{A} = \mathbb{R}$ (respectively, $\overline{A} = X$). An equivalent characterisation of these sets is the following:

Fact: $A$ is dense if and only if $A \cap U \neq \emptyset$ for every nonempty open set $U$.

Being "not dense" would be the opposite of this: "there is a nonempty open set $U$ which is disjoint from $A$". But a "not-dense" set can still be "somewhere dense". For example $A = ( - \infty , -1 ) \cup ( 1 , + \infty )$ is not dense (as it is disjoint from the nonempty open set $(-1.1)$), but every nonempty open set which is not a subset of $(-1,1)$ has nonempty intersection with $A$.

So we can try to strengthen the "not dense" condition. A first attempt would be "has empty intersection with every nonempty open set". Unfortunately this is not a really useful property, as it will only be satisfied by the empty set.

So we can try something in between "not dense" and the "empty" condition above. We would like to say that $A$ has empty intersection with "lots" of open sets. One option is to say that while $A$ may have nonempty intersection with a nonempty open set $U$, we can shrink $U$ to another nonempty open set $V$ which is disjoint from $A$. This turns out to be equivalent to "nowhere denseness".

Let's look at $\mathbb{Q}$, $\mathbb{Z}$ and the Cantor ternary set $C$ as subsets of $\mathbb{R}$:

  • Well, we know that $\mathbb{Q}$ is dense in $\mathbb{R}$, so it has nonempty intersection with every nonempty open set. So this set cannot be nowhere dense. (This actually shows that no dense set can be nowhere dense.)

  • Suppose that $U$ is a nonempty open subset of $\mathbb{R}$. If $U \cap \mathbb{Z}$ is nonempty, but $n$ in the intersection. By definition of openness there is a $\varepsilon > 0$ such that $( n - \varepsilon , n + \varepsilon ) \subseteq U$. Without loss of generality we may assume $\varepsilon \leq 1$. But now $( n , n + \varepsilon )$ is a nonempty open subset of $U$ which is disjoint from $\mathbb{Z}$.

  • Suppose that $U$ is a nonempty open subset of $\mathbb{R}$ with nonempty intersection with $C$. Picking $x \in C \cap U$ there is a $\varepsilon > 0$ such that $( x - \varepsilon , x + \varepsilon ) \subseteq U$. Pick $n$ so large that $3^{-n} \leq \varepsilon$. As $x \in C$, then $x$ is an element of the $n$-th set in the usual construction of $C$ (by removing the middle thirds). Recall that at this stage is the union of disjoint closed intervals of length $3^{-n}$ (yeah, I'll start with the $0$th stage being $[0,1]$). It follows that the closed interval, call it $[a,b]$, at this stage containing $x$ is a subset of $( x - \varepsilon , x + \varepsilon ) \subseteq U$. But then the open middle third of this closed interval $( a + \frac{b-a}3 , b - \frac{b-a}3 )$ is removed at the next stage of the iterated construction of $C$, and is therefore disjoint from $C$, and it is also a subset of $U$.

(Admittedly, using the text-book definition of nowhere denseness makes it somewhat easier to show that $\mathbb{Z}$ and $C$ are nowhere dense, but as I said above, I'm just trying to provide another way at looking at this property.)

  • 1
    $\begingroup$ Excellent answer. $\endgroup$
    – Babai
    Jun 7, 2020 at 8:49

Very good explanations in the two answers above, but putting things in the simple setting below seems to better reflect the idea behind the notion of a nowhere dense set. Despite the fact that the original question insists on giving an answer without using the notions of an interval or an open set!, I think the very question of "How can we have a more comfortable understanding of a nowhere dense set?" might be of interest for a broader set of audience.

Just recalling that an open set is simply an element of a topology on a set $X$. For example in the real numbers, open sets exclusively consist of the empty set, all intervals and their arbitrary unions; this obviously includes the set of real numbers as an open set.

In a topological space $X$ (those who are unfamiliar with the notion of topology, can simply think of the set of real numbers together with all intervals and their arbitrary unions as mentioned earlier):

  1. A subset $Y \subseteq X$ is called to be dense when we have $\overline{Y}=X.$

A set might not be dense, but it might be the case that it is dense locally according to a suitable part of the whole space; so one can consider the following definition:

  1. A subset $Y \subseteq X$ is called to be somewhere dense if there exists a non-empty open set $U\subseteq X$ such that we have $\overline{Y\cap U}=\overline{U}.$ As one can see, here by some where we actually mean an open set; This attitude seems quite natural since the open sets constitute actually the most fundamental part of a topological space.

In fact, a subset is somewhere dense if some part of its closure generates a non-empty open set.

  1. A subset $Y \subseteq X$ is called nowhere dense, if it is not the case that it is somewhere dense. It is easy to see that $Y$ is nowhere dense if and only if $\overline{Y}$ does not contain a non-empty open set; the latter is equivalent to the standard definition of a nowhere dense set.

Putting aside the trivial cases, it is interesting to note that if $X$ is Hausdorff and contains a dense subset $Y,$ then by taking any open subset $U\subseteq X$ we can show that the closure of $Y\cap U$ equals the closure of $U.$ Hence, we can build lots of non-dense somewhere dense sets in $X.$

  • $\begingroup$ +1 for greatly highlighting the useful notion "somewhat dense". Regarding your use of "non-dense" at the end, readers should be warned that in older literature (somewhat often in mid 1940s to late 1950s, rather often between mid 1930s and mid 1940s, and pretty much always before the mid 1930s) the term "non-dense" was used to mean "nowhere dense" (i.e. "non-dense" wasn't used in the sense of "not dense"), which is contrary to what one might expect, but consistent with other uses such as "non-differentiable" to mean "nowhere differentiable" (rather than simply "not differentiable). $\endgroup$ Jun 23, 2019 at 10:47
  • 1
    $\begingroup$ @DaveL.Renfro: Thank you very much Dave for your clarifying comments and for your upvote of course. Only one point, I used the term "somewhere dense" and not "somewhat dense" in my post. Although both terms can be comprehended as identical in this situation, but recalling a point I have mentioned after the definition of a dense set, I think there are good reasons to use the term "somewhere"; in fact, literally speaking, "somewhere" seems to reflect more concretely a specific part inside the whole space rather than what comes to mind by the term "somewhat". $\endgroup$
    – Ali V.
    Jun 23, 2019 at 12:34
  • 1
    $\begingroup$ Oops, "somewhat" was a typo that I didn't notice, and I intended to write "somewhere". In fact, I've used this phrase before (as have many others, of course). As for "somewhat dense", this seems to suggest something entirely different to me, such as being semi-dense or quasi-dense (terms made up just now) for some kind of an approximate notion of density. $\endgroup$ Jun 23, 2019 at 14:34
  • $\begingroup$ Let $X$ be the set of continuous $f:\Bbb R\to \Bbb R$ with the metric $d(f,g)=\min (1,\sup\{|f(x)-g(x):x\in \Bbb R\})$. Let $Y\subset X$ be quasi-dense in $X$iff $\forall r>0\,\forall \delta>0\,\forall f\in X\,\exists g\in Y\;\forall x\in [-r,r]\,(|g(x)-f(x)|<\delta).$ Then $X$ has a countable quasi-dense subset but $X$ is not separable... Just a notion. $\endgroup$ Jul 20, 2019 at 6:20
  • $\begingroup$ @DaveL.Renfro. My comment above was meant for you. $\endgroup$ Jul 20, 2019 at 6:26

Well , you may think density (or non density) as a relative characteristic of a set where no-where density is a individual characteristic.

Say for example , $\mathbb{Q}$ is dense to $\mathbb{R}$ but not to itself where $\mathbb{Z}$ is dense to itself but not to any other set that embeds it. Thus density depends on how you embeds a set .

On the other hand you may see that no matter which set embeds $\mathbb{Z}$ , it remains no where dense and the direct opposite holds for $\mathbb{Q}$ .

To better understand the scenario you may use an alternative but equivalent definition of no where dense sets i.e. " A set G will be called no-where dense if closure of G will have empty interior i.e. $G^{closure}_{int}$ = $\phi$ ."

Now , as $G^{closure}$ is a closed set, if $\delta G ≠ \phi$ every limit point of $G$ except the boundary points are interior points . Thus the above definition implies either $\delta G= \phi$ or for all $ g \in G^{closure} , g\in \delta G$ .

Now to get the taste of equivalence observe that if a set doesn't have a interior point it can't have an nonempty open interval I $\subset G$ as if if the length of the interval is l , we may take a point $i \in I$ and make a ball $B^{i}_{\epsilon }$ , where $\epsilon < \frac{l}{2}$ , such that $B^{i}_{\epsilon} \subset I \subset G $ . But then i becomes an interior point of G which is contradictory to our assumption .

Now you may see the examples given above through it . $\mathbb{Z}$ is no where dense as it doesn't have any limit point . What for the sequence , $S=\{\frac{1}{n} : n\in\mathbb{N}\}$ ? It has the limit point 0 but 0 is it's boundary point [ every n.b.d of 0 will contain negetive numbers which will not be in the sequence ] ,so the interior remain empty .

What for cantor set ? For cantor set we may use a constructive argument . Let , $I= [0,1]= [0, \frac{1}{3}]\cup[\frac{1}{3} , \frac{2}{3}]\cup[\frac{2}{3}, 1]$

Let now , $ I_{0}= [\frac{1}{3} , \frac{2}{3}]$

$[0,\frac{1}{3}]= [0,\frac{1}{9}]\cup[\frac{1}{9},\frac{2}{9}]\cup[\frac{2}{9},\frac{1}{3}]$

$[\frac{2}{3},\frac{7}{9}]\cup[\frac{7}{9} , \frac{8}{9}]\cup[\frac{8}{9}, 1]$

Let $I_{1}=[\frac{1}{9} , \frac{2}{9}]\cup[\frac{7}{9}, \frac{8}{9}]$

Let d(a,b)= |b-a| a metric on $\mathbb{R}$ . Thus , $d(I_{1})=\frac{1}{3}$ and $d(I_{2})=\frac{2}{9}$ .

Continuing in the fashion it can be seen that , $d(I_{n})= \frac{2^n}{3^n+1}$ .

If we let , $S_n= \sum_{i=0}^{n} d(I_{n})$, as $n\rightarrow \infty$ , $S_{n}\rightarrow 1$ .

Thus the part excluded becomes the whole interval , accord to your definition there can't be any open interval the set can contain , thus it becomes no where dense .


You must log in to answer this question.