Analysis, Topology · Family

“Dense” and “almost everywhere” both mean “nearly everything,” in different senses. A dense set is near every point; an “almost everywhere” set misses only a set of measure zero. Neither implies the other.

Definitions

dense

High school

Consider a set $A$ of real numbers. Consider any two real numbers $x$ and $y$ such that $x < y$. We say $A$ is dense if there is always a number $a$ in $A$ such that $x < a < y,$ no matter how close together the $x$ and $y$ are.

Undergraduate (subsets of $\reals$)

Consider a set $A \subseteq \reals$. The set $A$ is dense if every open interval contains a point in $A$.

Graduate (topology)

Consider a topological space $X$ and a subset $A$ of $X$. The set $A$ is dense if its closure is $X$.

Equivalently: $A$ is dense if every nonempty open set intersects $A$.

Examples
Non-examples
Things that may be mistaken for examples of this term.
Properties
  • Both $\rationals$ and $\reals \setdiff \rationals$ are dense in $\reals$.
Graduate (measure theory)

Consider a property of the points of a measure space, which may hold at some points and fail at others. The property holds almost everywhere if the set of points where it fails has measure zero.

Non-examples
Things that may be mistaken for examples of this term.

full measure

Undergraduate (subsets of $\reals$)

Consider a set $A \subseteq \reals$. The set $A$ has full measure if the complement $\reals \setdiff A$ has measure zero.

Graduate (measure theory)

Consider a measure $\mu$ on a space $X$ and a measurable set $A \subseteq X$. The set $A$ has full measure if the complement of $A$ has measure zero:

\[\mu(X \setdiff A) = 0.\]
Non-examples
Things that may be mistaken for examples of this term.
Properties
  • A set $A$ has full measure if and only if almost every point of $X$ is in $A$.
  • A countable intersection of sets of full measure has full measure, because the complement of the intersection is a countable union of sets of measure zero.
  • For Lebesgue measure on $\reals^n$, every set of full measure is dense, because every nonempty open set has positive measure and so is not contained in the complement.
  • For a probability measure, an event has full measure if and only if its probability is $1$.

Examples

Example dense almost everywhere full measure Why
$\rationals$, as a subset of $\reals$ ✓✗✗
dense: $\rationals$ is dense in $\reals$ because every interval contains a rational number.
almost everywhere: $\rationals$ does not hold almost everywhere, because $\rationals$ has measure zero.
full measure: $\rationals$ does not have full measure in $\reals$, because its complement $\reals \setdiff \rationals$ does not have measure zero.
Missing example: reals_minus_rationals_as_a_subset_of_reals
Missing example: the_complement_of_a_fat_cantor_set_in_0_1

Notes

  • “Dense” has another meaning for matrices: a dense matrix has mostly nonzero entries, the opposite of a sparse matrix. It is unrelated to a dense set.

See also

All distinctions · All definitions · Notation