Let $(X,\mathcal M)$ be a measurable space. Are these two equivalent?
$f:(X,\mathcal M)\to (\mathbb R,\mathcal B(\mathbb R))$ is measurable.
$f:(X,\mathcal M)\to (\mathbb R,\{(a,\infty):a\in\mathbb R\})$ is measurable.
Here, $\mathcal B(\mathbb R)$ is the collection of all borel sets in $\mathbb R$. To say that $f:(X,\mathcal M)\to (Y,\mathcal N)$ is measurable means $f:X\to Y$ and $f^{-1}(B)\in\mathcal M$ for all $B\in\mathcal N$. (I know that $\{(a,\infty):a\in\mathbb R\}$ is not a $\sigma$-algebra, but let's not worry about that.)
I'm curious about this because in the book Rudin. "Principles of Mathematical Analysis" 3/e. p. 310. (Chapter 11. The Lebesgue Theory), the author defines a measurable function to be a function that satisfies 2, while other books use 1 to define a measurable function.
It's easy to prove that 1 implies 2, since $(a,\infty)\in\mathcal B(\mathbb R)$ for all $a\in\mathbb R$. But I want to know if 2 implies 1.