I came across with a theorem on Folland's Real Analysis. The theorem is as follows:
Let $X$ be a set, $F:$ collection of $\mathbb{R}$-valued functions on $X$, $\tau$: weak topology generated by $F$.(The smallest topology on $X$ contanining $F$). Then, $\tau$ is Hausdorff $\iff \forall x,y \in X $ with $x \neq y$, $\exists f \in F$ s.t. $f(x)\neq f(y)$.
I proved the $(\impliedby)$ part. I am taking distinct $x,y$ elements and I have that $f(x) \neq f(y)$. I take two disjoint open sets in $\mathbb{R}$ s.t. one contains $f(x)$ and the other contains $f(y)$. Then the preimages of these sets give us two disjoint open sets containing $x$ and $y$ relatively.
However, I could not prove the $(\implies)$ part and need some help.