I have this question :
Let $A$ be a non empty set from the space $E$, and define $f_A: E\rightarrow \{0,1\}$ given by $f_A(x)=\begin{cases} 1, ~ x\in A\\ 0 ~ x,\notin A\end{cases}$
where $\{0,1\}$ is given with this topology $\mathcal{P}(\{0,1\})$
How to prove that $f_A$ is continuous at $x_0$ iff $ x_0\notin Fr(A)$
where $Fr(A)=\partial A=\overline{A}\setminus\overset{\circ}{A}$
I know that $f_A ~\text{is continuous at }~x_0 \Longleftrightarrow \forall W\in \mathcal{V}_{f_A(x_0)}, \exists V\in \mathcal {V}_{x_0}, f_{A}(V)\subset W$
If i suppose that $f_A$ is continuous at $x_0\notin A$, then $f_A(x_0)=0$ this means that $\mathcal{V}_{f_A(x_0)}=\{\{0\},\{0,1\}\}$ As $f_A$ is continuous at $x_0$ then there exists $v\in \mathcal{V}_{x}$ such that $f_A(V)\subset \{0\}$
But How to find that $x_0\notin \partial A$ ?