Suppose $f$ is real-valued and integrable with respect to two dimensional Lebesgue measure on $[0,1]^2$.
$$\int_0^a \int_0^b f(x,y) \, dy \, dx =0$$
for all $a\in [0,1], b\in [0,1]$.
Prove that $f=0$ a.e
I am stuck at this problem. What I can show I suppose is $$\int_a^b \int_c^d f(x,y) \, dx \, dy =0$$ for all $a,b,c,d \in [0,1]$. But then I don't know whether there is such theorem that say any open set in $[0,1]^2$ can be written as a disjoint union of squares or like that so that I can show that the integral is $0$ on any open set.
I don't know how to proceed. Thanks in advance for any help!
Hint: Open sets in $\mathbb{R}^2$ are generated by products of open sets in $\mathbb{R}$. These, in turn, are generated by open intervals.
It might be that this is more complicated than it needs be, but try the following route:
$\quad (1)$: Using the hint above, show that $\int_A f=0$ on any open set $A\subset\mathbb{R}^2$.
$\quad (2)$: Argue by contradiction; suppose $\{x\,|\,f(x)\neq 0\}=\{x\,|\,f(x)> 0\}\cup\{x\,|\,f(x)<0\}$ has positive measure, so that without loss of generality $B=\{x\,|\,f(x)> 0\}$ has positive measure.
$\quad (3)$: Write $B=\bigcup B_n$, where $B_n=\{x\,|\,f(x)\geq\frac1n\}$. There must be some $k$ with $\mu(B_k)>0$.
$\quad (4)$: Show that any measurable set $E$ can be approximated in measure by closed sets and by open sets. In other words, for any $\epsilon >0$, there is
For each $\epsilon>0$, in the obvious notation let $F_\epsilon$ and $\mathcal{O}_\epsilon$ be such approximations of $B_k$.
$\quad (5)$: Consider $\mathcal{O}_\epsilon\setminus F_\epsilon$ and observe that it is open. We have that
$$\int_{B_k}f=\int_{\mathcal{O}_\epsilon}f-\int_{\mathcal{O}_\epsilon\setminus B_k}f$$
and
$$\int_{\mathcal{O}_\epsilon\setminus B_k}f= \int_{\mathcal{O}_\epsilon\setminus F_\epsilon}f - \int_{B_k\setminus F_\epsilon}f.$$
It follows that
$$\int_{B_k}f=\underbrace{\int_{\mathcal{O}_\epsilon}f}_{(*)} -\underbrace{\int_{\mathcal{O}_\epsilon\setminus F_\epsilon}f}_{(**)} + \int_{B_k\setminus F_\epsilon}f$$
Now, by $(1)$, integrals $(*)$ and $(**)$ are both $0$. Hence, $\int_{B_k}f=\int_{B_k\setminus F_\epsilon}f$, which implies $\int_{F_\epsilon}f=0$.
$\quad (6)$: On the other hand, notice that for $\epsilon$ small enough it must be that $\mu(F_\epsilon)>0$ and then the simple bound
$$\int_{F_\epsilon}f\geq \mu(F_\epsilon)\frac1k>0$$
contradicts our previous point.