# For what sets does the Lebesgue Differentiation Theorem hold in one dimension?

Lebesgue's differentiation theorem states that if $$x$$ is a point in $$\mathbb{R}^n$$ and $$f:\mathbb{R}^n\rightarrow\mathbb{R}$$ is a Lebesgue integrable function, then the limit of $$\frac{\int_B f d\lambda}{\lambda(B)}$$ over all balls $$B$$ centered at $$x$$ as the diameter of $$B$$ goes to $$0$$ is equal almost everywhere to $$f(x)$$. But if you replace balls with other kinds of set with diameter going to $$0$$, this need not be true. For instance it need not be true if you replace balls with rectangles.

But my question is, what is known about what collections of sets the Lebesgue Differentiation Theorem holds for in one dimension? We know it holds for bounded intervals. Does it hold for finite unions of bounded open intervals? What about bounded Borel sets? What about bounded Lebesgue measurable sets in general?

Or are all these open problems?

For bounded unions of intervals it of course does not hold: take two disjoint mesaurable subsets $$A,B$$ of $$\mathbb{R}$$ such that $$\lambda(A\cap E)$$ and $$\lambda (B\cap E)$$ are positive for any interval $$E$$. Then for $$a\in A$$ any interval $$\delta \ni a$$ contains a density point $$b\in B$$ and you may take the union of an interval $$\delta_1\subset \delta$$ consisting mostly of points of $$B$$ and define $$B=\delta_1 \cup (a-\lambda(\delta_1)/5,a+\lambda(\delta_1)/5)$$. This set is a small union of at most two intervals, contains $$a$$, but contains many points from $$B$$. So for $$f=\chi_A$$ the Lebesgue ratio is far from 1.