Show that if $f:R→R$ is continuous, then the set $A=\{x∈R:f(x)\le α\}$ is closed in $\mathbb{R}$ for each $α∈\mathbb{R}$ My attempt:
$f(x) \le α$ $\implies$ we have $(-\infty, \alpha] \subset \mathbb{R}$ which is closed as its complement $(\alpha, \infty)$ is open, then by the global continuity theorem, we have that there exists an open set $H \subset \mathbb{R}$ such that $H=f^{-1}((\alpha, \infty))$ This implies that $H = \{x∈\mathbb{R}:f(x)>α\}$ is open which implies that $H^c = \{x∈R:f(x)\ge α\}$ is closed.
Can anyone please verify this and check if my reasoning is ok?
Thank you.
The idea is perfect, though your answer seems to have some confusion between $f(x)\leq\alpha$s and $f(x)\geq\alpha$s.