[Math] Is a surjective continuous map with compact domain is open

compactnesscontinuitygeneral-topologyopen-map

Let $f:X→Y$ be a continuous surjective map and $X$ is compact. Is $f$ is an open map?

$"$A function $f : X → Y$ is open if for any open set $U$ in $X$, the image $f(U)$ is open in $Y$.$"$

Since $f$ is continuous and $X$ is compact then image of $X$ under $f$ will be compact. But how can I prove that $f$ is an open map? If not please help me with a counterexample.

Best Answer

Take the identity function on set $X$ where the domain is equipped with discrete topology and the codomain with indiscrete topology.

That is a continuous bijection.

If $X$ has exactly $2$ elements then $X$ is compact but the singletons (which are open and closed) will be sent to sets that are not open and are not closed.

So the function is not open and is not closed.