We are given $A$ which is an infinite set, and $F = \{f : A \to \{0, 1\} \}$. I need to prove there exists a surjective function $g : F \to A$.
My solution was this:
Define $g(f) = \omega$ and $f \in F$ such that $f (\omega) = 1$ for some $\omega \in A$. Now for each $\alpha \in A$, there exists $h : A \to \{0, 1\}$ such that only $h(\alpha) = 1$ and $0$ otherwise. This implies $g (h) = \alpha$. And thus $g$ is surjective.
Is my proof valid, since $g (f)$ is not uniquely defined in my example and can be any element $\omega$ of $A$ as long as $f (\omega) = 1$? I thought of making $\omega$ the smallest element such that $f (\omega) = 1$, but if $A$ is an uncountable infinite set, I think a smallest element cannot be defined. It would also be very helpful if someone can share any other proofs.