a) suppose $f,g:X\to[-\infty,\infty]$ are measurable. Prove the sets
$$\{x:f(x)<g(x)\}, \ \{x:f(x)=g(x)\}$$
are measurables.
I know that if $f,g$ measurables then $h:X\to{[-\infty,\infty]\times{[-\infty,\infty]}}$, with, $h(x)=(f(x),g(x))$, is measurable.
But
$$T=\{(x,y):x<y\}$$ is closed in $[-\infty,\infty]\times{[-\infty,\infty]}$ and
$$h^{-1}(T)=\{x:f(x)<g(x)\}$$.
Similarly $R=\{(x,y): x=y\}$ is closed, so $$h^{-1}(R)=\{x:f(x)=g(x)\}$$.
Thus, $h^{-1}(T),h^{-1}(R)$ are measurables. Is correct?
b) Prove the set of points at which a sequence of measurable real-valued functions converges (to a finite limit) is measurable.
Any suggestions, Please.