I'm proving the compact-to-Hausdorff lemma (probably not a universal name for it) which is stated as:
If $X$ is compact, $Y$ Hausdorff, $f:X \rightarrow Y$ a continuous bijection, then $f$ is a homeomorphism.
However, the following line has popped up in a proof of it:
If $f: X \rightarrow Y$ is a bijection, then $f(U) = Y\setminus f(X \setminus U)$ (where $U$ is open in $X$)($\star$).
I know that if $f$ is a bijection, then $f(X\setminus U) = f(X) \setminus f(U)$. Using this, I've tried to draw a little picture to try to see that $f(U) = Y\setminus f(X \setminus U)$, but it hasn't actually helped.
What's a proof of ($\star$)?
My pleasure:
How about $f(U) \cup f(X\setminus U) = f(U\cup (X\setminus U)) = f(X) = Y$? Since $f(U)$ and $f(X\setminus U)$ are disjoint, you get $f(U) = (f(U) \cup f(X\setminus U))\setminus f(X\setminus U) = Y\setminus f(X\setminus U)$.