I am a student studying an algebra & geometry module with an exam at the end of January.
I have noticed that there are two alternate definitions of a completely regular polygon $P$:
A topological space $X$ such that for every closed subset $C$ of $X$ and every point $x \in X\setminus C$, there is a continuous function $f:X\to[0,1]$ such that $f(x)=0$ and $f(C)=\{1\}$.
A topological space $X$ is said to be completely regular space, if every closed set $A$ in $X$ and a point $x\in X$, $x\notin A$, then there exist a continuous function $f:X\to[0,1]$, such that $f(x)=0$ and $f(A)=\{1\}$.
Now my question is, why are these two definitions equivalent?