Proposition (topological inverse function theorem)
Let $(X,\tau)$ and $(Y,\rho)$ be topological spaces.
If $f: X\to Y$ is a continuous bijection, $(X,\tau)$ is compact, and $(Y,\rho)$ is Hausdorff, then $f\inv$ is also continuous, and hence $f$ is a homeomorphism.
-
This also applies to metric spaces, in which case the Hausdorff condition can be dropped.