I am trying to understand some notes I am reading on line. Here is what I thought I read: Given that $X$ is a finite set with a $T_0$ topology then $f:X \to X$ is a homeomorphism if and only if $f$ is either one to one or onto.
Here is a $T_0$ topology on $X = \{a,b,c\}$: $\{\{\}, \{c\},\{a,c\},\{b,c\},\{a,b,c\}=X\}$. Here is a bijective function $f:X \to X$ by $f(a) = a$, $f(b)=c$ and $f(c)=b$.
The preimage of $\{c\}$ is $\{b\}$. But $\{b\}$ is not an open set in $X$ so $f$ is not a homeomorphism. ?