I have to show the following:
Suppose that $X$ is a topological space for which there is a collection of continuous real-valued functions on $X$ that separates points in $X$. Show that $X$ must be Hausdorff.
Just as a reminder, $f$ is said to separate points whenever for any $u$, $v$ $\in X$, if $u \neq v$, then $f(u) \neq f(v)$, and a topological space $X$ is said to be Hausdorff provided that each two points in $X$ can be separated by disjoint neighborhoods.
I attempted to approach this problem by showing that Not Hausdorff $\mathbf{\to}$ Doesn't Separate Points. My attempt is as follows:
Suppose $X$ is not Hausdorff. Then, for some $u$, $v$ $\in X$ s.t. $u \neq v$ , $\displaystyle \exists N_{\delta_{1}}(u)$ and $\displaystyle N_{\delta_{2}}(v)$ s.t. $\displaystyle N_{\delta_{1}}(u) \cap N_{\delta_{1}}(v) \neq \emptyset$. I.e., $\displaystyle \exists x \in N_{\delta_{1}}(u) \cap N_{\delta_{2}}(v)$.
This implies that $|x-u|<\delta_{1}$, $|x-v|<\delta_{2}$. So, $|u-v| = |u-x+x-v| \leq |x-u| + |x-v| < \delta_{1}+\delta_{2} = \delta$. Then, because $f$ is continuous, this implies that $\forall \epsilon > 0$, $|f(u)-f(v)|<\epsilon$.
Since this is true for any $\epsilon > 0$, we conclude that $|f(u)-f(v)|= 0$, which implies that $f(u) = f(v)$, so $f$ does not separate points.
Is this proof correct, and if not, what is wrong with it? How can I fix it so that it is correct?
Suppose $\mathscr{F}$ is a collection of continuous functions $X\to \Bbb R$ that separates points, and suppose $x,y\in X, x\ne y$. By hypothesis, there is $f\in \mathscr{F}$ such that $f(x) \ne f(y)$. As $\Bbb R$ is Hausdorff, there are disjoint open neighborhoods $U, V$ of $f(x), f(y)$ respectively. Because $f$ is continuous, $f^{-1}(U)$ is open in $X$ and is a neighborhood of $x$, and similarly, $f^{-1}(V)$ is an open neighborhood of $y$. Clearly, $f^{-1}(U)$ and $f^{-1}(V)$ are disjoint. So $X$ is Hausdorff.