$S$ is a finite set and $f:S\rightarrow S$ is surjective. Show $f$ is injective.
Proof) Suppose $f$ is not injective. Then $\exists s_1\neq s_2$ with $f(s_1)=f(s_2)$. Then since $S$ is finite, $|f(S)|\leq |S|-1$.($|\cdot|$ denotes the number of elements of a set.) Also, since $f$ is surjective, $f(S)=S$, so $|f(S)|=|S|$. Then $|S|\leq|S|-1$, a contradiction.
I was wondering if this is a correct argument.