Let $F(X, Y)$ be the set of all functions from $X$ to $Y$.
Prove that $Y$ is Hausdorff if and only if $F(X, Y)$ is Hausdorff under the compact-open topology.(Although compact-open topology is generally defined on $C(X, Y)$, the set of all continuous functions from $X$ to $Y$, I would assume that it can be defined in the same way as $C(X, Y)$.)
I already proved 'only if' part, but I'm stuck in 'if' part.
Here is my attempt:
Let $y_1, y_2 \in Y$ and $x \in X$, then there are two functions $f_1, f_2 \in F(X, Y)$ such that $f_1 (x)=y_1, f_2 (x) = y_2$. Since $F(X, Y)$ is Hausdorff, there are open $X_1, X_2$ such that $f_1 \in X_1, f_2 \in X_2, X_1 \cap X_2=\emptyset$. Also, let $Y_1 = X_1 \cap S(x, V_1), Y_2 =X_2\cap S(x, V_2)$, where $V_1, V_2$ are neighborhoods of $y_1, y_2$, respectively, and $S(x, V_i) = \{f \in F(X, Y): F(x)\in V_i\}$ for each $i$. Then it is obvious that $f_1 \in Y_1, f_2 \in Y_2, Y_1 \cap Y_2 =\emptyset$.
I am stuck here and can't find ways to proceed. What should I do?