Fix \( {[a,b]} \). We apply the
rising sun lemma to the function \( {F: [a,b] \rightarrow \mathbb{R}} \) defined as
\( \displaystyle F(x) := \int_{[a,x]} |f(y)|\ d\mu(y) - (x-a) \lambda \).
By
first fundamental theorem of calculus, \( {F} \) is continuous, and so we can find an at most countable sequence of intervals \( {I_n = (a_n,b_n)} \) with the properties given by the rising sun lemma. Thus
\( \displaystyle \left\{ x \in (a,b]: \sup_{h>0; [x,x+h] \subset [a,b]} \frac{1}{h} \int_{[x,x+h]} |f(y)|\ d\mu(y) > \lambda \right\} \subset \bigcup_n I_n \),
since the property \( {\frac{1}{h} \int_{[x,x+h]} |f(y)|\ d\mu(y) > \lambda} \) can be rearranged as \( {F(x+h) > F(x)} \). By countable additivity, we may thus upper bound the left-hand side of the inclusion by \( {\sum_n (b_n-a_n)} \). On the other hand, since \( {F(b_n)-F(a_n) \geq 0} \), we have
\( \displaystyle \int_{I_n} |f(y)|\ d\mu(y) \geq \lambda (b_n-a_n) \)
and thus
\( \displaystyle \sum_n (b_n-a_n) \leq \frac{1}{\lambda} \sum_n \int_{I_n} |f(y)|\ d\mu(y) \).
As the \( {I_n} \) are disjoint intervals in \( {I} \), we may apply monotone convergence and monotonicity to conclude that
\( \displaystyle \sum_n \int_{I_n} |f(y)|\ d\mu(y) \leq \int_{[a,b]} |f(y)|\ d\mu(y) \),
and the claim follows.