I was wondering how one can construct a Borel set that doesn't have full measure on any interval of the real line but does have positive measure everywhere.

To be precise, if $\mu$ denotes Lebesgue measure, how would one construct a Borel set $A \subset \mathbb{R}$ such that $$0 < \mu(A \cap I) < \mu(I)$$ for every interval $I$ in $\mathbb{R}$?

Moreover, would such a set necessarily have to contain infinite measure?

Jonas Meyer
  • 50,123
  • 8
  • 190
  • 292
  • 7,933
  • 7
  • 50
  • 60
  • 14
    Reading through this thread, I am having a flashback to the course I took in measure theory. In every homework assignment there would be at least two or three questions whose solution involved the sentence "Let $\{q_n\}_{n\in\mathbb N}$ an enumeration of the rationals..." :-) – Asaf Karagila Aug 17 '11 at 00:15

5 Answers5


If you got this from Rudin (it is Exercise 8, Ch. 2 in his Real & Complex Analysis), here is his personal answer (excerpted from Amer. Math Monthly, Vol. 90, No.1 (Jan 1983) pp. 41-42). He works with the unit interval $[0,1]$, but of course this can be extended to $\mathbb R$ by doing the same thing in each interval (and by scaling these replications appropriately you can get the final set with finite measure). Anyways, here's how it goes:

"Let $I=[0,1]$, and let CTDP mean compact totally disconnected subset of $I$, having positive measure. Let $\langle I_n\rangle$ be an enumeration of all segments in $I$ whose endpoints are rational.

Construct sequences $\langle A_n\rangle,\langle B_n\rangle$ of CTDP's as follows: Start with disjoint CTDP's $A_1$ and $B_1$ in $I_1$. Once $A_1,B_1,\dots,A_{n-1},B_{n-1}$ are chosen, their union $C_n$ is CTD, hence $I_n\setminus C_n$ contains a nonempty segment $J$ and $J$ contains a pair $A_n,B_n$ of disjoint CTDP's. Continue in this way, and put $$ A=\bigcup_{n=1}^{\infty}A_n. $$

If $V\subset I$ is open and nonempty, then $I_n\subset V$ for some $n$, hence $A_n\subset V$ and $B_n\subset V$. Thus $$ 0<m(A_n)\leq m(A\cap V)<m(A\cap V)+m(B_n)\leq m(V); $$ the last inequality holds because $A$ and $B_n$ are disjoint. Done.

The purpose of publishing this is to show that the highly computational construction of such a set in [another article] is much more complicated than necessary."

Edit: In his excellent comment below, @ccc managed to isolate the necessary components of my solution, and after incorporating his observation it has been greatly simplified. (Actually, after trimming the fat, I've realized that it is actually not entirely dissimilar from Rudin's.) Here it is:

Let $\{r_n\}$ be an enumeration of the rationals, let $V_1$ be a segment of finite length centered at $r_1$, and let $V_n$ be a segment of length $m(V_{n-1})/3$ centered at $r_n$. Set $$ W_n=V_n-\bigcup_{k=1}^{\infty}V_{n+k}, $$ and observe that \begin{equation} m(W_n)\geq m(V_n)-\sum_{k=1}^{\infty}m(V_{n+k})=m(V_n)-m(V_n)\sum_{k=1}^{\infty}3^{-k}=\frac{m(V_n)}{2}. \end{equation} In particular, $m(W_n)>0$.

For each $n$, choose a Borel set $A_n\subset W_n$ with $0<m(A_n)<m(W_n)$. Finally, put $A=\bigcup_{n=1}^{\infty}A_n$. Because $A_n\subset W_n$ and the $W_n$ are disjoint, $m(A\cap W_n)=m(A_n)$. That is to say, $$ 0<m(A\cap W_n)<m(W_n) $$ for every $n$. But every interval contains a $W_n$, so $A$ meets the criteria, and has finite measure (specifically, $m(A)\leq\sum_n m(V_n)=2 m(V_1)<\infty$).

As a curiosity, here's my own "unnecessarily computational" way (though it's not quite as lengthy as that in the article Rudin was referring to), which I can't resist including because I slaved over it when I first came across this problem, before finding Rudin's solution:

Let $\{r_n\}$ be an enumeration of the rationals, and put $$ V_n=\left(r_n-3^{-n-1},r_n+3^{-n-1}\right),\qquad W_n=V_n-\bigcup_{k=1}^{\infty}V_{n+k}. $$ Observe that \begin{equation} m(W_n)>m(V_n)-\sum_{k=1}^{\infty}m(V_{n+k})=m(V_n)-m(V_n)\sum_{k=1}^{\infty}3^{-k}=\frac{m(V_n)}{2}.\qquad\qquad(1)\label{8.1} \end{equation} (We have strict inequality because there exist rationals $r_i$, with $i>n$, in the complement of $V_n$.)

For each $n$, let $K_n$ be a Borel set in $V_n$ with measure $m(K_n)=m(V_n)/2$. Finally, put $$A_n=W_n\cap K_n,\qquad A=\bigcup_{n=1}^{\infty}A_n.$$

To prove that $A$ has the desired property, it is enough to verify that the inequalities $$0<m(A\cap V_n)<m(V_n)\qquad\qquad(3)\label{8.3}$$ hold for every $n$. (This is because every interval contains a $V_n$.) For the left inequality, it is enough to prove that $m(A_n\cap V_n)=m(A_n)=m(W_n\cap K_n)>0$. This follows from the relations $$m(W_n\cup K_n)\leq m(V_n)<m(W_n)+m(K_n)=m(W_n\cup K_n)+m(W_n\cap K_n),$$ the second inequality being a consequence of (1) and the fact that $m(K_n)=m(V_n)/2$.

For the right inequality of (3), observe that $V_n\subset W_i^c$ for $i<n$, and that therefore $$ m(A\cap V_n)=m\left(\bigcup_{k=0}^{\infty}A_{n+k}\cap V_n\right)\leq\sum_{k=0}^{\infty}m(K_{n+k}\cap V_n) $$ $$ <\sum_{k=0}^{\infty}m(K_{n+k})=\sum_{k=0}^{\infty}\frac{m(V_{n+k})}{2}=\sum_{k=0}^{\infty}\frac{m(V_n)}{2^{k+1}}=m(V_n). $$ The strict inequality above follows from three observations: (i) $m(K_i)>0$ for every $i$; (ii) $K_i\subset V_i$; and (iii) there exist neighborhoods $V_i$, with $i>n$, that are contained entirely in the complement of $V_n$.

So $A$ meets the criteria (and also has finite measure).

Nick Strehlke
  • 8,852
  • 2
  • 37
  • 49
  • Thanks for taking the time to write out both solutions! For the proof from Rudin, you need the $\{A_n\}, \{B_n\}$ to not have full measure in $\{I_n\}$ or on any subinterval of $\{I_n\}$ right? Is this just an immediate result of being compact and totally disconnected? – user1736 Aug 14 '11 at 01:31
  • @user1736 No problem! Regarding your question: Yes, it's immediate from being both compact (hence closed) and totally disconnected. To see this: If $m(A_n\cap S)=m(S)$ where $S$ is an interval, then $A_n$ is dense in $S$, and therefore $A_n$ contains $S$ because $A_n$ is closed. This can't be if $A_n$ is totally disconnected. – Nick Strehlke Aug 14 '11 at 01:56
  • If you really wanted to avoid using Cantor sets (as you mentioned in the comments below), you could stop your construction once you've built the sequence $(W_n)$. By nonatomicity, fix a Borel $A_n \subseteq W_n$ such that $0 < m(A_n) < m(W_n)$. Then $A = \bigcup_n A_n$ works, since the $W_n$s are pairwise disjoint and each interval contains at least one of them. – user83827 Aug 14 '11 at 19:19
  • @ccc Nice observation, that cuts out the need for about half of my solution! I want to edit my answer to incorporate your comment, is that bad form after it has been accepted? I.e., is it bad form to cut out so much of my original answer, even if it is superfluous? – Nick Strehlke Aug 14 '11 at 20:34
  • @Nick: I am relatively new here and I don't know what the protocol is regarding modifying accepted answers. Maybe somebody else will stop by and fill us in. In any case, I think your answer is great as is, so there's no urgent need to change anything. – user83827 Aug 14 '11 at 20:54
  • @ccc Well, I went ahead and added in the edit, and for now I left what I original had as well. Hopefully someone will comment as to whether it is appropriate to remove the excess material. – Nick Strehlke Aug 14 '11 at 21:17
  • @ccc .@Nick: There is certainly nothing wrong with adding information to an accepted answer. I'd say that the essence of the original answer should be retained as far as possible and that the modifications should be indicated clearly as such if they're not only of a cosmetic nature. The way chosen by Nick is perfect in my opinion. I think I'm among the more prolific editors of my own answers and so far no-one complained. – t.b. Aug 15 '11 at 23:03
  • @Theo Thanks for weighing in about editing, and for digging up that link. I will leave it as is then, though I did remove a misleading remark and an unused hypothesis (ironically, no property of Cantor sets were used, and the fact that they were included at all was a remnant of a past failed attempt at this problem). On a side note, I enjoy reading your answers and have learned a lot from them. – Nick Strehlke Aug 16 '11 at 01:11
  • 2
    Thanks, that's nice to hear! Honestly, I like that bare-hands approach you wanted to remove quite a bit and even if you might think it looks overly complicated now, I think it is only added value to see different variants. It sure contains some good techniques that one needs to master. It's a really great answer as it is! – t.b. Aug 16 '11 at 01:49
  • @Theo Thanks for the feedback, I'm glad I waited for a response! Ok then, I'll leave it alone. – Nick Strehlke Aug 16 '11 at 02:18
  • @Theo, .@Nick: Thanks for helping to clear up the protocol about editing answers. Also, Nick, thanks for the kind words in the current version! – user83827 Aug 17 '11 at 00:38
  • 2
    @NickStrehlke Although this (amazing) aswer is 3 years old, I have a little comment: In the solution suggested by @.ccc, we don't really need to use non-atomicity of the Lebesgue measure. Letting $A=\bigcup_{n=1}^\infty W_n$ already works: For every $n$, $0 – Luiz Cordeiro Oct 15 '14 at 18:49
  • @LuizCordeiro May I know what is the "non-atomicity of the Lebesgue measure" you are referring? I don't know how to select $A_n$ from each $W_n$ – John Oct 19 '14 at 17:12
  • @LuizCordeiro Now I understand the atomless property of Lebesgue measure. But why we can find a Borel set instead of an arbitrary measurable in $W_n$? – John Oct 19 '14 at 17:22
  • 1
    @NickStrehlke May you explain more why each interval contains a $W_n$? – John Oct 19 '14 at 17:32
  • @LuizCordeiro That's a really nice simplification, and a really nice observation about the $W_n$! I'll edit the body shortly to incorporate it. – Nick Strehlke Oct 20 '14 at 20:42
  • 1
    @JohnZHANG The middle third of a given interval contains infinitely many rational numbers $r_n$, and for large enough $n$ the corresponding intervals $V_n$ will have length smaller than one third of the given interval, hence will be contained in it. – Nick Strehlke Oct 20 '14 at 20:52
  • @NickStrehlke Thanks for your clarification. I am a little confused by the initial enumeration of $\mathbb{Q}$ – John Oct 21 '14 at 08:16
  • 2
    Hello NickStrehlke, I have a couple questions about the short solution you wrote. First, how are you sure you can find a borel set $A_n$ in $W_n$ with $m(A_n)m(W_n)$ for some n but how do you get that $0 –  Oct 05 '17 at 04:04
  • Finally, the way we enumerate the rationals has no effect right? I am a little unsure how exactly the rationals are being used, other than being aware that they are dense. –  Oct 05 '17 at 04:06
  • @Socchi https://math.stackexchange.com/questions/712666/how-can-i-find-a-subset-of-a-set-with-half-the-size-of-the-original – somitra Oct 08 '17 at 07:30

Nick S. has already posted a solution and mentioned a 1983 paper by Rudin, but I thought the following additional comments could be of interest. Essentially the same construction that Rudin gives can be found in Oxtoby's book "Measure and Category" (p. 37 of the 1980 2nd edition). Also, note that these constructions give $F_{\sigma}$ examples which, from a descriptive set theoretic point of view, are about as simple as you can get. (It's like asking for a countable ordinal bound on something and you're able to come up with 1 as the bound.)

If we relax the assumption from "Borel set" to "Lebesgue measurable set" then, surprisingly, MOST measurable sets in the sense of Baire category have this property. For simplicity, let's restrict ourselves to measurable subsets of the interval $[0,1]$. Let $M[0,1]$ be the collection of Lebesgue measurable subsets of $[0,1]$ modulo the equivalence relation $\sim$ defined by $E \sim F \Leftrightarrow \lambda(E \Delta F) = 0$, where $\lambda$ is Lebesgue measure. That is, two measurable sets are considered equivalent iff their symmetric difference has Lebesgue measure zero. Note that the property you're asking about (both the set and its complement have positive measure intersection with every open subinterval of $[0,1]$) is well defined on these equivalence classes, so we can safely work with representatives of these equivalence classes.

The set $M[0,1]$ can be made into a metric space by defining $d(E,F) = \lambda (E \Delta F)$. Under this metric $M[0,1]$ is a complete metric space. One way to show this is to note that $d(E,F) =\int_{0}^{1}\left| \chi_{E}-\chi _{F}\right| d\lambda$ and then make use of theorems involving Lebesgue integration (e.g. show that $M[0,1]$ is a closed subset of the complete metric space $\mathcal{L}^{1}[0,1]$). See, for instance, p. 137 in Adriaan C. Zaanen's 1967 book "Integration" (or pp. 80-81 of Zaanen's 1961 "An Introduction to the Theory of Integration"). For a direct proof that doesn't rely on Lebesgue integration, see p. 44 in Oxtoby's book "Measure and Category", pp. 87-88 in Malempati M. Rao's 2004 book "Measure Theory and Integration", or pp. 214-215 (Problem #13, which has an extensive hint) in Angus E. Taylor's 1965 book "General Theory of Functions and Integration".

In the complete metric space $M[0,1]$ (which also happens to be separable), the collection of elements (each of these elements is essentially a subset of $[0,1]$) that have the property you're looking for (both the set and its complement have positive measure intersection with every open subinterval of $[0,1]$) has a first Baire category complement. This is Exercise 10:1.12 (p. 411) in Bruckner/Bruckner/Thomson's 1997 text "Real Analysis" (freely available on the internet), Exercise 2 (pp. 78-79) in Kharazishvili's 2000 book "Strange Functions in Real Analysis", and it's buried within the proof of Theorem 1 (p. 886) of Kirk's paper "Sets which split families of measurable sets" [American Mathematical Monthly 79 (1972), 884-886].

(Added the next day) I thought I'd mention a few ways that such sets have been applied. Probably the most common application is to easily obtain an absolutely continuous function that is monotone in no interval. If $E$ is such a set in $[0,1]$ and $E' = [0,1] - E$, then $\int_{0}^{x}\left| \chi_{E}-\chi _{E'}\right| d\lambda$ is such a function. See, for example: [1] Charles Vernon Coffman, Abstract #5, American Math. Monthly 72 (1965), p. 941; [2] Andrew M. Bruckner, "Current trends in differentiation theory", Real Analysis Exchange 5 (1979-80), 90-60 (see pp. 12-13); [3] Wise/Hall's 1993 "Counterexamples in Probability and Real Analysis" (see Example 2.26 on p. 63). Another application is to construct a Lebesgue measurable function (Baire class 2, in fact) $g$ such that there is no Baire class 1 function $f$ that is almost everywhere equal to $g$. (Recall that every Lebesgue measurable function is almost everywhere equal to a Baire class 2 function.) For this ($g = \chi_{E}$ for any set $E$ as above will work), see: [4] Hahn/Rosenthal's 1948 "Set Functions" (see middle of p. 147); [5] Stromberg's 1981 "Introduction to Classical Real Analysis" (see Exercise 13c on p. 309). Finally, here are some miscellaneous other applications I found in some notes of mine last night: [6] Goffman, "A generalization of the Riemann integral", Proc. AMS 3 (1952), 543-547 (see about 2/3 down on p. 544); [7] MR 36 #5892 (review of a paper by A. Settari); [8] Gardiner/Pau, "Approximation on the boundary ...", Illinois J. Math. 47 (2003), 1115-1136 (see Lemma 3 on p. 1130).

Dave L. Renfro
  • 33,231
  • 3
  • 60
  • 110

This question has a cute answer -- if you know about Markov chains.

Consider the nearest-neighbour Markov chain $(X_n)$ on $\mathbf{Z}$ with the following transition probabilities: from $0$ it goes to $\pm 1$ with probability $1/2$, from $n\neq 0$ it moves one step towards $0$ with probability $1/4$ and one step towards $\infty$ (if $n>0$) or $-\infty$ (if $n<0$) with probability $3/4$.

It is simple to check (e.g. via the strong law of large numbers) that $|X_n|$ goes to $+\infty$ almost surely, so by symmetry $$ \mathbf{P}(\lim X_n = + \infty | X_0=0) = \mathbf{P}(\lim X_n = - \infty | X_0=0) = \frac{1}{2}. $$

Now define a Borel set $A \subset [0,1]$ as follows: use the digits in the binary expansion of $x \in [0,1]$ (which are i.i.d. Bernoulli variables which parameter $1/2$) to simulate the Markov chain $(X_n)$ starting from the origin, and let $A$ be set of $x$ for which $X_n \to + \infty$. Since the Markov chain is irreducible, $A$ has non-full non-zero measure in every subinterval of $[0,1]$.

For the OP last question: since $$ \lim_{k \to - \infty} \mathbf{P} \left(\lim X_n = +\infty | X_0= k\right) =0 ,$$ one gets a variant of the example with $m(A)$ arbitrary small by starting the Markov chain from $k$. Using such constructions in every interval $[n,n+1]$ produces a set $B \subset \mathbf{R}$ with finite measure whose intersection with every interval has positive measure.

Davide Giraudo
  • 158,460
  • 65
  • 231
  • 360
Guillaume Aubrun
  • 485
  • 5
  • 16
  • Is it obvious that $A$ is a measurable set? – charmd Oct 31 '19 at 11:04
  • 2
    It is not trivial, but easy and standard. First, each random variable $X_n$, seen as a function defined on $[0,1]$, is Borel-measurable since it depends only on the first $2n$ binary digits. Next, the definition of limit translates as $$A = \bigcap_M \bigcup_n \bigcap_{k>n} \{ X_k > M \},$$ so $A$ is Borel. – Guillaume Aubrun Nov 04 '19 at 12:10
  • Neatly formulated, thank you – charmd Nov 04 '19 at 15:32
  • 1
    This is a great answer. It's a matter of taste no doubt, but I find an argument like this much more vivid and memorable, than a typical measure-theoretic construction. – saulspatz May 02 '21 at 16:21

Let $I = [0,1]$. We construct a partition of $I$ into $A_0$ and $A_1$ using binary digits of numbers in $x$. Recall that with respect to Lebesgue measure, the binary digits are like infinite coin toss experiment. Also recall that while a number can have more than one binary representations, such numbers form a measure zero set, so we can safely forget existence of such numbers.

Let $ c_1 = 1, c_2 = 2 < c_3 < c_4 < c_5 < \cdots $ be an increasing sequence of integers, such that $c_{n+1} - c_n$ grows fast enough. (How fast? To be determined later.) Let $J_n = \{k \in \mathbb N: c_n \le k < c_{n+1} \}$.

We say $x\in I$ is $n$-happy if k'th (binary) digit of x for each k in $J_n$ is 0. We say $x$ is $n$-angry if k'th digit of x for each k in $J_n$ is 1 . We say $x$ is $n$-emotional if it is $n$-happy or $n$-angry. If you imagine $x$ as an outcome of tossing a coin infinite times, then you can think of "1-emotional", "2-emotional", "3-emotional", .... as a sequence of events with rapidly decreasing probability.

Given an $x\in I$, the set $N(x)$ of all $n$ for which $x$ is $n$-emotional is a non-empty set because $1 \in N(x)$. If $c_{n+1} - c_n$ grows fast enough (linear growth is enough), then $N(x)$ is a finite set for almost all $x$, due to Borel-Cantelli lemma. Let $n(x) = \sup N(x)$. Now the function $x \mapsto n(x) $ is finite a.e. This allows us to partition $I$ into $A_0$ consisting of all $x$ that are $n(x)$-happy and $A_1$ consisting of all $x$ that are $n(x)$-angry.

To show that $A_0$ intersects every subinterval of $I$ in positive density, let $I'$ be an arbitrary subinterval of $I$. Then there exist $n$ and digits $x_1, \cdots x_{c_n-1}$ such that $I'$ contains the interval $I''$ consisting of all numbers in $I$ whose first $c_n -1$ digits are precisely $x_1, \cdots x_{c_n-1}$. The $n$-lucky numbers in $I''$ form yet another interval, say $I'''$. Given a random choice of $x \in I'''$, it's more likely for $x$ to be in $A_0$ than to be in $A_1$ because of $n$-luckiness of $x$. Therefore $A_0$ intersects $I'''$ in more than half density, and thus intersects $I'$ in positive density.

Remark 1. There is no measurable subset of $I$ which intersects every subinterval in exactly half density. Terence Tao uses this to construct a non-measurable set in here.

Remark 2. Lebesgue density theorem

Jisang Yoo
  • 887
  • 8
  • 12

Well, suppose you enumerated the rational intervals $I_n$, and for each $I_n$, let $J_n = I_n \setminus \cup_{i=1}^{n-1}I_i$. If $J_n$ has measure 0, let $A_n = \varnothing$. Otherwise, let $A_n$ be a subset of $I_n$ such that $\mu(A_n) < \max\{\mu(I_n)/2, \epsilon\cdot 2^{-n}\}$. Then let $A$ be the union of the sets $A_n$. Doesn't that do it?

Carl Offner
  • 287
  • 2
  • 4
  • You mean to say $0<\mu(A_n)$ I presume. – Jonas Meyer Aug 14 '11 at 00:16
  • @Jonas: Yes, thanks. – Carl Offner Aug 14 '11 at 00:18
  • 2
    Maybe I'm missing something, but how can you be sure that your $A_n$ don't contain an interval, or that their overlap doesn't? – Nick Strehlke Aug 14 '11 at 00:22
  • 1
    @Nick: My mistake -- you're right. Each $A_n$ would have to be a set of positive measure not containing any interval -- since each non-trivial $J_n$ is a finite union of intervals, a subset of the irrationals would do. I think by the construction, the union of the sets $A_n$ then could not contain an interval. – Carl Offner Aug 14 '11 at 00:26
  • 3
    @Nick: I'm being silly -- you would really need to use a "thick Cantor set", as you did in your construction to avoid having full measure in some subinterval. A glass of good wine does wonders for the imagination... – Carl Offner Aug 14 '11 at 00:28
  • @Carl Yeah, I can't think of any way that doesn't use some sort of Cantor-type set. I first saw this problem a while ago in a textbook, and I added the author's solution (which is simpler than mine) to my answer, if you're interested. – Nick Strehlke Aug 14 '11 at 01:04