Bijection is Open iff Closed

Theorem
Let $T_1 = \left({X_1, \vartheta_1}\right), T_2 = \left({X_2, \vartheta_2}\right)$ be topological spaces.

Let $f: T_1 \to T_2$ be a bijection.

Then $f$ is open iff $f$ is closed.

Proof
Let $f$ be a bijection.

Suppose $f$ is an open mapping.

From the definition of open mapping we have:
 * $\forall H \in \vartheta_1: f \left({H}\right) \in \vartheta_2$

As $f$ is a bijection it follows that:
 * $f \left({X_1 \setminus H}\right) = f \left({X_1}\right) \setminus f \left({H}\right) = X_2 \setminus f \left({H}\right)$

By definition of closed set, we have that:
 * $X_1 \setminus H$ is closed in $T_1$

and as $f$ is an open mapping:
 * $f \left({X_1 \setminus H}\right) = X_2 \setminus f \left({H}\right)$

is closed in $T_2$.

Hence by definition $f$ is a closed mapping.

Similarly we deduce that if $f$ is closed then it is open.