Let $(Y,S)$ a measurable space and $\phi :X\to Y$ any function where $X\neq \emptyset$.
Suppose that $f:X\to\mathbb{R}$ is measurable over $(X,S')$, where $S'=\phi^{-1}(S)$. I want to prove that there exists $g:Y\to\mathbb{R}$ measurable such that $f=g\circ\phi$.
How can we define such $g$?
Thanks!