Let \(\displaystyle f:A\to B\) with \(\displaystyle A=\{0,1,2\}\) and \(\displaystyle B=\{a,b\}\). How many injective functions from \(\displaystyle A\) to \(\displaystyle B\) are there? What does the axiom of replacement guarantee about the image of \(\displaystyle A\)?
Step by step with comments, a check and common mistakes.
Step-by-step solution
An injective function from \\(\displaystyle A\\) to \\(\displaystyle B\\) cannot send two distinct elements of \\(\displaystyle A\\) to the same element of \\(\displaystyle B\\).
\[\displaystyle f(x)=f(y)\Rightarrow x=y\]
There are three elements in \\(\displaystyle A\\) and only two in \\(\displaystyle B\\).
\[\displaystyle |A|=3>2=|B|\]
By the pigeonhole principle, no injection from \\(\displaystyle A\\) to \\(\displaystyle B\\) exists.
\[\displaystyle \#\{f:A\to B \text{ inyectiva}\}=0\]
Replacement guarantees that the image of a set under a formula is a set, so the answer is zero together with that correct statement.
\[\displaystyle \{\varphi(x): x\in A\}\ \text{es un conjunto}\]
Answer
Zero; and replacement guarantees that the image of \(\displaystyle A \) under a formula is a set.