I try to prove the following exercise without using the axiom of choice. On the second item, the proof that I found in the books, to define the function $g:Y\to X$, for every $y\in Y$, due to the surjective of $f$ they choose $x=g(y)\in X$ such that $f(x)=y$.
Let $f:X\to Y$, prove.
- If $Y$ is finite and $f$ injective, then $X$ is finite.
- If $X$ is finite and $f$ surjective, then $Y$ is finite.
Proof:
- Done.
Let $X=\{x_1,\ldots,x_n\}$. Given any $y\in Y$, because $f$ is surjective, then exists $k\in I_n=\{1,\ldots,n\}$ such that $y=f(x_k)$. Consider the set $$A_y:=\{i\in I_n:f(x_i)=y\}$$
Then $A_y\neq\emptyset$ because $k\in A$, so, by the Well-ordering principle, $A_y$ has a minimal element, let this element $i_y$, then $$f(x_{i_y})=y.$$
Define $g:Y\to X$ by $g(y):=x_{i_y}$. Im particular we get $$f(g(y))=f(x_{i_y})=y,\quad \forall y\in Y.$$
Prove that $g$ is injective. Let $y,z\in Y$ such that $g(y)=g(z)$, then $$g(y)=g(z)\Longrightarrow f(g(y))=f(g(z)) \Longrightarrow y=z.$$
Therefore, $g$ is injective, then by the first item, $Y$ is finite.
Is it right?