I have $X$ an $\mathbb{R}^n$ random variable, and $Y$ is $\mathbb{R}$ valued that is measurable with respect to $\sigma (X)$. I'm trying to follow a proof showing that there is a Borel measurable function $f$ on $\mathbb{R}^n$ such that $Y=f(X)$.
So where I am at is a sequence of simple random variables $Y_n$ converging up to $Y$, and each $Y_n$ has the function $f_n$ for the above result, and the part I'm stuck at is actually on the convergence of the functions.
The book States:
Set $f(x) = \lim \sup_{n\rightarrow \infty} f_n(x)$
and then $Y$ = $\displaystyle \lim_{n\rightarrow \infty} Y_n = \lim_n f_n(X)$.
But $(\displaystyle \lim \sup_{n \rightarrow \infty} f_n)(X) = \lim \sup_n (f_n(X)$,
and since $\lim \sup_{n \rightarrow \infty} f_n(X)$ is Borel measurable, we are done.
I'm very confused by the notation at each step and what exactly is being said. For instance, I would have began this part of the proof by defining $f(x)=\lim_{n \rightarrow \infty} f_n(x)$, and then say $Y$ = $\displaystyle \lim_{n\rightarrow \infty} Y_n = \lim_n f_n(X)=f(X)$.
Thanks.