I am given the following problem:
Let $f$ be a function from $[0, 1]$ to $\mathbb{N}$. Prove there exists $x, y\in [0, 1]$ such that $x\neq y$ and $f(x) = f(y)$.
Clearly, this is true because $|[0, 1]| = |\mathbb{R}| > |\mathbb{N}|$, and there cannot be an injective function from an uncountable set to a countable set. But... how should I write my solution? They are asking for a proof and I do not know how to formally prove the statement above.
Thank you!