In mathematics, a subset of a topological space is called **nowhere dense** or **rare**^{[1]} if its closure has empty interior.^{[note 1]} In a very loose sense, it is a set whose elements are not tightly clustered (as defined by the topology on the space) anywhere. For example, the integers are nowhere dense among the reals, whereas an open ball is not.

The surrounding space matters: a set may be nowhere dense when considered as a subset of a topological space but not when considered as a subset of another topological space Notably, a set is always dense in its own subspace topology.

A countable union of nowhere dense sets is called a **meagre set**. Meagre sets play an important role in the formulation of the Baire category theorem.

## Characterizations

Density nowhere can be characterized in three different (but equivalent) ways. The simplest definition is the one from density:

A subset of a topological space is said to be

in another set if the intersection is a dense subset of isdenseornowhere densein if is not dense in any nonempty open subset ofrare

Expanding out the negation of density, it is equivalent to require that each nonempty open set contains a nonempty open subset disjoint from ^{[2]} It suffices to check either condition on a base for the topology on and density nowhere in is often described as being dense in no open interval.^{[3]}^{[4]}

### Definition by closure

The second definition above is equivalent to requiring that the closure, cannot contain any nonempty open set.^{[5]} This is the same as saying that the interior of the closure of (both taken in ) is empty; that is,

^{[6]}^{[7]}

Alternatively, the complement of the closure must be a dense subset of ^{[2]}^{[6]}

### Definition by boundaries

From the previous remark, is nowhere dense in if and only if is a subset of the boundary of a dense open subset: namely, In fact, one can remove the denseness condition:

is nowhere dense if and only if there exists some open subset of such that

Alternatively, one can strengthen the containment to equality by taking the closure:

is nowhere dense if and only if there exists some open subset of such that

^{[8]}

If is closed, this implies by trichotomy that is nowhere dense if and only if is equal to its topological boundary.^{[1]}

## Properties and sufficient conditions

- A set is nowhere dense if and only if its closure is.
^{[1]}Thus a nowhere dense set need not be closed (for instance, the set is nowhere dense in the reals), but is then properly contained in a nowhere dense closed set. - Suppose
- If is nowhere dense in then is nowhere dense in
- If is nowhere dense in and is an open subset of then is nowhere dense in
^{[1]}

- Every subset of a nowhere dense set is nowhere dense.
^{[9]} - The union of finitely many nowhere dense sets is nowhere dense.
^{[9]}

Thus the nowhere dense sets form an ideal of sets, a suitable notion of negligible set.

The union of countably many nowhere dense sets, however, need not be nowhere dense. (Thus, the nowhere dense sets do not, in general, form a 𝜎-ideal.) Instead, such a union is called a **meagre set** or a **set of first category**.

## Examples

- is nowhere dense in : although the points get arbitrarily close to the closure of the set is which has empty interior (and is thus also nowhere dense in ).
^{[1]} - is nowhere dense in
^{[1]} - is nowhere dense in but the rationals are not (they are dense everywhere).
^{[1]} - is
nowhere dense in : it is dense in the interval and in particular the interior of its closure is*not* - The empty set is nowhere dense. In a discrete space, the empty set is the
*only*such subset.^{[1]} - In a T
_{1}space, any singleton set that is not an isolated point is nowhere dense. - The boundary of every open set and of every closed set is nowhere dense.
^{[1]} - A vector subspace of a topological vector space is either dense or nowhere dense.
^{[1]}

## Nowhere dense sets with positive measure

A nowhere dense set is not necessarily negligible in every sense. For example, if is the unit interval not only is it possible to have a dense set of Lebesgue measure zero (such as the set of rationals), but it is also possible to have a nowhere dense set with positive measure.

For one example (a variant of the Cantor set), remove from all dyadic fractions, i.e. fractions of the form in lowest terms for positive integers and the intervals around them:
Since for each this removes intervals adding up to at most the nowhere dense set remaining after all such intervals have been removed has measure of at least (in fact just over because of overlaps^{[10]}) and so in a sense represents the majority of the ambient space
This set is nowhere dense, as it is closed and has an empty interior: any interval is not contained in the set since the dyadic fractions in have been removed.

Generalizing this method, one can construct in the unit interval nowhere dense sets of any measure less than although the measure cannot be exactly 1 (because otherwise the complement of its closure would be a nonempty open set with measure zero, which is impossible).^{[11]}

For another simpler example, if is any dense open subset of having finite Lebesgue measure then is necessarily a closed subset of having infinite Lebesgue measure that is also nowhere dense in (because its topological interior is empty). Such a dense open subset of finite Lebesgue measure is commonly constructed when proving that the Lebesgue measure of the rational numbers is This may be done by choosing any bijection (it actually suffices for to merely be a surjection) and for every letting

_{𝜎}-subset

*closure*in has empty interior. The subset in this example can be replaced by any countable dense subset of and furthermore, even the set can be replaced by for any integer

## See also

- Baire space – Concept in topology
- Fat Cantor set
- Meagre set – A notion in general topology of a "small" or "negligible" subset of a topological space

## Notes

**^**The order of operations is important. For example, the set of rational numbers, as a subset of the real numbers, has the property that its*interior*has an empty*closure*, but it is not nowhere dense; in fact it is dense in

## References

- ^
^{a}^{b}^{c}^{d}^{e}^{f}^{g}^{h}^{i}^{j}Narici & Beckenstein 2011, pp. 371–423. - ^
^{a}^{b}Fremlin 2002, 3A3F(a). **^**Oxtoby, John C. (1980).*Measure and Category*(2nd ed.). New York: Springer-Verlag. pp. 1–2. ISBN 0-387-90508-1.A set is nowhere dense if it is dense in no interval

; although note that Oxtoby later gives the interior-of-closure definition on page 40.**^**Natanson, Israel P. (1955).*Teoria functsiy veshchestvennoy peremennoy*[*Theory of functions of a real variable*]. Volume I (Chapters 1-9). Translated by Boron, Leo F. New York: Frederick Ungar. p. 88. hdl:2027/mdp.49015000681685. LCCN 54-7420.`|volume=`

has extra text (help)**^**Steen, Lynn Arthur; Seebach Jr., J. Arthur (1995).*Counterexamples in Topology*(Dover republication of Springer-Verlag 1978 ed.). New York: Dover. p. 7. ISBN 978-0-486-68735-3.A subset of is said to be nowhere dense in if no nonempty open set of is contained in

- ^
^{a}^{b}Gamelin, Theodore W. (1999).*Introduction to Topology*(2nd ed.). Mineola: Dover. pp. 36–37. ISBN 0-486-40680-6 – via ProQuest ebook Central. **^**Rudin 1991, p. 41.**^**Willard, Stephen (1970).*General topology*. Reading, Mass.: Addison-Wesley. p. 37. hdl:2027/mdp.49015000696204. LCCN 74-100890.CS1 maint: date and year (link) See 4G(2-3).- ^
^{a}^{b}Fremlin 2002, 3A3F(c). **^**Some nowhere dense sets with positive measure and a strictly monotonic continuous function with a dense set of points with zero derivative**^**Folland, G. B. (1984).*Real analysis: modern techniques and their applications*. New York: John Wiley & Sons. p. 41. hdl:2027/mdp.49015000929258. ISBN 0-471-80958-6.CS1 maint: date and year (link)

## Bibliography

- Fremlin, D. H. (2002).
*Measure Theory*. Lulu.com. 3A3F(a). ISBN 978-0-9566071-1-9. - Khaleelulla, S. M. (1982).
*Counterexamples in Topological Vector Spaces*. Lecture Notes in Mathematics.**936**. Berlin, Heidelberg, New York: Springer-Verlag. ISBN 978-3-540-11565-6. OCLC 8588370. - Narici, Lawrence; Beckenstein, Edward (2011).
*Topological Vector Spaces*. Pure and applied mathematics (Second ed.). Boca Raton, FL: CRC Press. ISBN 978-1584888666. OCLC 144216834. - Rudin, Walter (1991).
*Functional Analysis*. International Series in Pure and Applied Mathematics.**8**(Second ed.). New York, NY: McGraw-Hill Science/Engineering/Math. ISBN 978-0-07-054236-5. OCLC 21163277. - Schaefer, Helmut H.; Wolff, Manfred P. (1999).
*Topological Vector Spaces*. GTM.**8**(Second ed.). New York, NY: Springer New York Imprint Springer. ISBN 978-1-4612-7155-0. OCLC 840278135. - Trèves, François (2006) [1967].
*Topological Vector Spaces, Distributions and Kernels*. Mineola, N.Y.: Dover Publications. ISBN 978-0-486-45352-1. OCLC 853623322.