Suppose $f\geq 0$, is Riemann integrable on $[a,b]$, then $\int_a^bf=0$ iff $D=\{x\in[a,b]\mid f(x)>0\}$ has Lebesgue measure zero.
A set $A\subseteq\mathbb{R}$ has Lebesgue measure zero iff $\forall\epsilon>0\exists$a countable family of open intervals $\{I_n\}_{n\in\omega}(A\subseteq\bigcup_{n\in\omega}I_n\wedge\sum_{n=0}^\infty|I_n|<\epsilon)$.
So far my thoughts are, ($\rightarrow$) $L(P,f)=0$ for all partition $P$. Let $\epsilon>0$, then $\exists P_0(U(P_0,f)<\epsilon)$. But how can I construct a family of open intervals using that partition $P_0$?
I found some similar questions here and here, but they are not in the form I stated. I am just starting to learn measure theory. Can anyone prove it using definitions only? Thanks!