Show that if $f : \mathbb{R} \to \mathbb{R}$ is continuous, then the set $A =\{x \in \mathbb{R}:f(x)<\alpha\}$ is open in $\mathbb{R}$ for each $\alpha \in \mathbb{R}.$
My attempt:
$f(x)< \alpha$ implies that if we have the open set $(-\infty, \alpha)$ in $\mathbb{R}$, then by the global continuity theorem, we have that there exists an open set $H$ in $\mathbb{R}$ such that $H \cap \mathbb{R}= f^{-1}(G).$
This implies that $H= f^{-1}(G)$ which by definition is $\{x \in \mathbb{R}:f(x)<\alpha\}$ and is open.
Can anyone please verify this and check if my reasoning is ok?
Thank you!!
It is correct, but: