I have a problem to the following exercise:
Suppose that $f$ and $g$ are integrable functions that are $\mathcal F $ measurable. Suppose that we have a sequence of $\sigma$-fields {$\mathcal F_{n}$} such that $\mathcal F_{n} \subset \mathcal F_{n+1}$ and for which
(1) $\int_{A}f(x)dx = \int_{A}g(x)dx$ for all A $\in \mathcal F_{n}$
Show that if $\mathcal F$ is the smallest $\sigma$-field that contains $\mathcal F_{n}$ for all n, then
$f(x) = g(x)$ for all $x$ except a set of measure zero.
There is also a Hint: Note that $\{x: f \gt g\} \in \mathcal F$. Next, it may be useful to show that equation (1) holds for all $A \in \mathcal F $. Here one may want to consider the set $\mathcal G$ of all A $\in \mathcal F$ for which we have equation (1) and then show that $\mathcal G$ is a $\sigma$-field.
This was an Exercise given many years ago on my University but without a solution. But I'm interested in a proof of this problem. Can someone please give a nice proof. Thanks in advance