I read this theorem in rudin's book:
Suppose $f$ is a continous bijection from compact metric space $X$ onto a metric space $Y$ . Then $f^{-1}$ is continuous mapping of $Y$ onto $X$
I have some questions about hypothesis of the theorem.. Clearly bijection is required for the existence of inverse. But we need compact? Do compact a necessary condition?
I want to see few counterexample,that if $X$ is not a compact metric space,then $f^{-1}$ is not continuous.
Thanks