It is a theorem that if $f:X \to Y$ is a continuous bijection, $X$ is compact, then $g = f^{-1}$ is continuous. My professor asked us to find a counterexample to
If $f:X \to Y$ is continuous, $Y$ is compact, then $g = f^{-1}$ is continuous.
I do not like my counterexample so much because it uses the discrete metric. Are there other counterexamples?
My Counterexample: Let $X = [0, 1]$ with the Discrete metric, $Y = [0, 1]$ with the Euclidean metric, and let $f$ be the identity function.
metric-spaces
tag, I suspect that he or she is not interested on that example. – José Carlos Santos Dec 09 '19 at 18:54general-topology
tag. – Arturo Magidin Dec 09 '19 at 19:11