To prove for an open set, the inverse of a continuous function is continuous.
The proof is,
Let $F:\mathbb{R}\rightarrow\mathbb{R}$ be continuous. It is sufficient that $F^{-1}$ is the inverse of $F$ and $W\subseteq\mathbb{R}$ is open then $(F^{-1})^{-1}(W)$ is open. But
$(F^{-1})^{-1}(W)=\{x\in\mathbb{R}|\exists w\in W:F^{-1}(x)=w\}=\{x\in\mathbb{R}|\exists w\in W:x=F(w)\}=F(W)$
and so $(F^{-1})^{-1}(W)$ is open if and only if $F(W)$ is open. Since $F(W)$ is open $W$ is open and $F$ is continuous.
This is the proof, I am unsure if it is correct also is there any example that can prove this?