Let $(\Omega, \mathscr{F}, P)$ be a measure space with filtration $\{\mathscr{F}_n\}_{n \in N}$. Let $A_n$ be adapted to the filtration $\mathscr{F}_{n}$, and $E|A_n - E[A_n| \mathscr{F}_{n-1}]|=0$, i.e. $A_n = E[A_n | \mathscr{F}_{n-1}]$ a.e -P. How do we get that $A_n$ is $\mathscr{F}_{n-1}$-measurable from this?
All we have here is that $A_n$ agrees with the $\mathscr{F}_{n-1}$-measurable function $Y$ that has $\int_C YdP = \int_C A_n dP$ for all $C \in \mathscr{F}_{n-1}$. How do we get that $A_n$ must be $\mathscr{F}_{n-1}$-measurable as well?