Let $f: (X,d) \rightarrow (Y, d')$ be a function. Prove that the following are equivalent:
$f$ is continuous .
For every $A \subset X$, $f(cl(A)) \subset cl(f(A))$.
For every closed set $B$ in $Y$, the set $f^{-1}(B)$ is closed.
My proof:
"1 $\Rightarrow 2$":
Suppose $f$ is continuous at $a \in X$. Let $y \in f (cl(A)) \Rightarrow f^{-1}(y) \subset cl(A)$. Then there exists $ x_n \in A$: $x_n \Rightarrow f^{-1}(y)$. Let $a=f^{-1}(y)$. Since $f$ is continuous, $x_n \in A$ and $x_n \rightarrow a \Rightarrow f(x_n) \rightarrow f(a)$. Since $x_n \in A \Rightarrow f(x_n) \in f(A)$ and $f(a) =y$. Then there exists $f(x_n) \in f(A) : f(x_n) \rightarrow y \Rightarrow y \in clf(A) \Rightarrow f(cl(A)) \subset cl(f(A))$. $\blacksquare$
"2 $\Rightarrow$ 3" Let $A \in X$ such that $f^{-1}(B) = A$. We have $A \subset cl(A)$. Let $x \in cl(A) \Rightarrow f(x) \in f(cl(A))$. Since $f^{-1}{B} = A \Rightarrow B = f(A)$. Since $B$ is closed $\Rightarrow B = cl(B) = f(A) = cl(f(A))$. From (2), $f(cl(A)) \subset cl(f(A)) = cl(B)= B \Rightarrow f(x) \in B \Rightarrow x \in f^{-1}(B)= A \Rightarrow x \in A. $ Then $cl(A) \subset A \Rightarrow A $ is closed. $\blacksquare$
"3 $\Rightarrow$ 1" This can be prove by changing closed set to open set, then by using the definition of continuous to prove.
How was my first 2 proofs?