For every measurable set A, the density of A is 0 or 1
almost everywhere. If 0, then there are always points of A\subseteq \R^n where the density either does not exist or exists but is neither 0 nor 1.. For example, given a square in the plane, the density at every point inside the square is 1, on the edges is 1/2, and at the corners is 1/4. The set of points in the plane at which the density is neither 0 nor 1 is non-empty (the square boundary), but it is of measure zero. The Lebesgue density theorem is a particular case of the
Lebesgue differentiation theorem. Thus, this theorem is also true for every finite
Borel measure on A\subseteq \R^n instead of Lebesgue measure, as proven in sections 2.8–2.9 of
Federer's Geometric Measure Theory, 1969. ==See also==