I was given the following problem worded exactly:
"Let $X,Y \neq \emptyset$ and suppose that every element of $F(X,Y)$ is injective. Show that $|X|=1.$"
and the set $F(X,Y) := \{f\ | f:X \to Y \} $
I can't prove this statement holds, in fact I think it is false. I came up with the following argument:
Suppose that every element of $F(X,Y)$ is injective, and modifying the definition above we get the set $$F(X,Y) := \{f\ | f:X \to Y \ \wedge f(x_1)=f(x_2)\ \supset \ \ x_1=x_2\} $$
Take set $X=\{x_1,x_2,\dots,x_n\}$ and set $Y=\{y_1,y_2,\dots,y_m\}$ $n\le m$
and we can construct a counterexample where $f_1$ is injective and maps $x_i\to y_i$ for all $i=1,...,n$.
Or similarly lets say $f_2$ is injective and maps $x_i\to y_{2i}$ for all $i=1,...,n$ where $y_{2i}\le m$.
This would mean $|X|\neq1$.
However I can see that if $|X|=1$ and $Y$ was nonempty then necessarily $f:X \to Y$ would be injective.
Can you help explain if I'm wrong, how I am wrong and what the proof would be that shows the statement above holds? Thanks.