I'm trying to solve the following problem:
Show that if the function $f: \mathbb{R} \to \mathbb{R}$ is right continuous then $f$ is measurable.
(A function $f$ is measurable if $f^{-1}(E) \in \mathcal{B}(\mathbb{R})$ for each $E \in \mathcal{B}(\mathbb{R})$ which is equivalent to say that $f^{-1}(\alpha, \infty) \in \mathcal{B}(\mathbb{R})$ or $f^{-1}[-\infty, \alpha] \in \mathcal{B}(\mathbb{R})$, $\forall \alpha \in \mathbb{R}$, where $\mathcal{B}(\mathbb{R})$ represents the Borel $\sigma$-algebra)
I know that if $f$ is continuous then it is measurable since $(\alpha, \infty)$ is an open set and hence $f^{-1} (\alpha, \infty)$ would be open and therefore measurable with respect the Borel $\sigma$-algebra, but I'm not sure how could I construct a similar argument with right continuity.