I'm trying to prove the following:
Let X and Y be independent random variables on $(\Omega, \mathcal{A}, P)$ with images $(\Omega_X, \mathcal{A}_X)$, $(\Omega_Y, \mathcal{A}_Y)$ and $f: \Omega_X \times \Omega_Y \rightarrow \mathbb{R} $ integrable. Show that $$E[f(X,Y)|Y] = \int f(x,Y) \space \space P^X(dx) $$ I think that I understand why this is true on an intuitive level, but I just can't seem to prove this using the formal definition of conditional expectation. I've been trying to show $$ \int_A \int f(x,Y) \space \space P^X(dx) \space \space dP = \int_A f(X,Y) \space \space dP$$ for every $A \in \sigma(Y)$. Any hints on how to approach this would be very much appreciated - thanks in advance.