For random variables $X,Y\in L^1$, if $E[X|\sigma(Y)]=Y$ and $E[Y|\sigma(X)]=X$, prove that $X=Y$ a.s.
My attempt:
Note that $E[X-Y|\sigma(Y)]=E[X|\sigma(Y)]-E[Y|\sigma(Y)]=Y-Y=0$. Similarly, $E[X-Y|\sigma(X)]=0$.
By 1, if I could prove the following lemma, then $E[X-Y|\sigma(X,Y)]=X-Y=0$ as desired.
Lemma (not necessarily true). If $E[Z|\mathcal A]=E[Z|\mathcal B]=0$ where $\mathcal A$ and $\mathcal B$ are two $\sigma$-fields, then $E[Z|\sigma(\mathcal A,\mathcal B)]=0$.
Questions:
Is this "lemma" correct? Is there a counterexample?
If not, how should I solve the original question?