Bijection is Open iff Closed

Theorem
Let $X, Y$ be topological spaces.

Let $f: X \to Y$ be a bijection.

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