I have this problem:
Let $(\Omega, \mathscr{F}, \mathbb{P}$ be a probability space, $\mathscr{G}$ be a sub-$\sigma$-algebra. Let $X,Y$ be two real random variables such that for every bounded Borel-measurable function $g: \mathbb{R} \rightarrow \mathbb{R}^+$ we have $$\mathbb{E}\left(g(X)\mid\mathscr{G}\right) = g(Y) \text{ a.s.}$$ The question is if that implies $X=Y \text{ a.s}$ .
I guess the answer is yes, so I tried to prove that $\{X<Y\}$ is a nullset. If this set is in $\mathscr{G}$ it is obviously a nullset. But otherwise i get stuck. Does anyone have an idea?