Let $X,Y$ be topological spaces. Let $X$ be compact and let $f:X\to Y$ be continuous and bijective. Show that $f$ is a homeomorphism.
My solution: Since $f$ is continuous and bijective already the only thing left to prove is that $f^{-1}:Y\to X$ is continuous. To do that, chose an arbitrary open set $U\subset X$. Then since $f$ is continuous we know $(f^{-1}(U))^{-1}=f(U)$ must be open in $Y$.
I am not sure if this proof is legit as I havent used that fact that $X$ is compact.