Answers in these posts
- Let $X,Y$ be two real valued random variables. What is the joint density of the pair $(X, X)$ and how do we calculate $E[h(X,Y)|X=x]$?
- Conditional density of Sum of two independent and continuous random variables
use the following fact:
reacall that $E(h(X,Y)\mid X)=u(X)$ for some measurable function $u$ if and only if $E(h(X,Y)v(X))=E(u(X)v(X))$ for every bounded measurable function $v$
(Starting from the factorization lemma, which characterizes the conditional expectation a.s.,)
I believe one direction is the a.s.-point-wise approximation of measurable functions together wth the dominated convergence theorem, and the other direction is indicator functions being bounded.
Is this written somewhere? ("Recall" sounds like it is, but I did not know this result and I had to think a bit.)