Let $f:(X,\tau_1)\to (Y,\tau_2)$ be a function. TFAE :
a) $f$ is continuous on $X$
b) $\forall O \in \tau_2 $ $f^{-1}(O) \in \tau_1$
c) $\forall F$ closed in $Y$, $f^{-1}(F)$ is closed in $X$
In many proofs I've seen that in a $\Rightarrow$b part : $x \in f^{-1}(O) \Rightarrow$ $f(x) \in O \in \tau_2$
1) How can we say $x \in f^{-1}(O) \Rightarrow$ $f(x) \in O \in \tau_2$ above? We don't know $f$ is surjective or not?
So $O \in V(f(x))$ -nbd of $f(x)$- , $f^{-1}(O) \in V(x)$
2) It is clear $O \in V(f(x))$ but I didn't understand how we said that $f^{-1}(O) \in V(x)$
And in b $\Rightarrow$c and c $\Rightarrow$a parts :
$F^C=O$, $f^{-1}(O)=f^{-1}(Y\setminus F)=$ $X\setminus f^{-1}(F)$
3) How did we say $f^{-1}(Y\setminus F)=$ $X\setminus f^{-1}(F)$, again we dont know $f$ is surjective or not. It is valid if $f$ is surjective like above one, isn't it?
Could someone illuminate me please?