I have a problem with an exercise regarding the equivalence of the Hausdorff property with a statement about continuous functions on dense sets.
Let X be a topological space. Show that the following assertions are equivalent:
a) X is a Hausdorff space.
b) The diagonal $\Delta(X)=\{(x,y) \in X \times\ X: x=y \}$ is closed in $X \times \ X $.
c) For every space Z, every dense set D $\subset$ Z and every pair of maps $f_1, f_2: Z \to X$ one has $f_1=f_2$ if and only if $f_1|_D=f_2|_D$.
Additionally, show that the diagonal embedding $\Delta: X \to X \times \ X$ is continous.
I have proven that the diagonal embedding is continuous and that the implications a) $\Rightarrow$ b), b) $\Rightarrow$ c) hold. All I have left to do is to prove that c) $\Rightarrow$ a). This is my idea:
Suppose that $X$ is not a Hausdorff space. Then there are $x,y \in X, x \neq y$ such that for all open sets $O_x, O_y$ where $x \in O_x, y \in O_y$ we find $u \in O_x \cap O_y.\tag{1}\label{1}$ Now I wanted to define $$D=\{u \in X: u \,\rm satisfies\,\eqref{1} \}$$ and prove that $\bar{D}=X$ and define maps $f_1, f_2: X \to X$ where $f_1, f_2$ are the identity on $D$ but do not agree on $X$, which would be a contradiction to c). The problem is that I got stuck with the proof that $\bar{D}=X$. I have to show that for $v \in X$ and every open set $O_v$ containing v I get $O_v \cap (D \setminus\{v\}) \neq \emptyset$, but I do not see how.