Injective functions [00MN]
- January 29, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Definition Injection [00MO]
- January 29, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Example Sections are injective [00N1]
- January 30, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Proof.
- January 30, 2024
- Jon Sterling
Let s\colon B\to A be a section of r\colon A \to B. Fixing b_1,b_2:B such that s{\mathopen {}\left (b_1\right )\mathclose {}}=s{\mathopen {}\left (b_2\right )\mathclose {}}, we must show that b_1=b_2. We have r{\mathopen {}\left (s{\mathopen {}\left (b_1\right )\mathclose {}}\right )\mathclose {}}=r{\mathopen {}\left (s{\mathopen {}\left (b_2\right )\mathclose {}}\right )\mathclose {}} by assumption, and thus b_1=r{\mathopen {}\left (s{\mathopen {}\left (b_1\right )\mathclose {}}\right )\mathclose {}}=r{\mathopen {}\left (s{\mathopen {}\left (b_2\right )\mathclose {}}\right )\mathclose {}}=b_2.
Example Subset inclusion are injective [00N2]
- January 30, 2024
- Jon Sterling, with contributions from Marcelo Fiore
The function i_S\colon S\to A including a subset S\subseteq A into A is injective.
Proof.
- January 30, 2024
- Jon Sterling
Immediate: the inclusion maps a given element to itself!
Theorem Closure of injections under identity and composition [00N3]
- January 30, 2024
- Jon Sterling, with contributions from Marcelo Fiore
The identity function is an injection and the composition of injections yields a injection.
Proof.
- January 30, 2024
- Jon Sterling
The identity function is clearly injective, as a_0=a_1 implies a_0=a_1.
Let f\colon A\rightarrowtail B and g\colon B\rightarrowtail C be injections. To show that the composite function g\circ f\colon A\to C is injective, we fix a_0,a_1:A to check that g{\mathopen {}\left (f{\mathopen {}\left (a_0\right )\mathclose {}}\right )\mathclose {}} = g{\mathopen {}\left (f{\mathopen {}\left (a_1\right )\mathclose {}}\right )\mathclose {}} implies a_0=a_1. Because g is injective, we have f{\mathopen {}\left (a_0\right )\mathclose {}}=f{\mathopen {}\left (a_1\right )\mathclose {}}; therefore, because f is injective, we have a_0=a_1 as desired.
Now that we have enough definitions in hand to see it, the import of Theorem [00M7] is then to state that a function is invertible if and only if it is both injective and surjective.
Proposition Counting injections between finite sets [00N4]
- January 30, 2024
- Jon Sterling, with contributions from Marcelo Fiore
For finite sets A and B, we can describe number of injections from A to B as follows:
\mathord {\#}{\mathrm {Inj}{\mathopen {}\left (A,B\right )\mathclose {}}} = \begin {cases} {\mathord {\#}{B}\choose \mathord {\#}{A}}\cdot {\mathopen {}\left (\mathord {\#}{A}\right )\mathclose {}}! &\text {when } \mathord {\#}{A}\leq \mathord {\#}{B} \\ 0 &\text {otherwise} \end {cases}Proof.
- January 30, 2024
- Jon Sterling
We will argue from a combinatoric perspective.
An injection f from A to B associates no more than one a:A to the same b:B. Thus if we consider the subset U\subseteq B spanned by elements of the form f{\mathopen {}\left (a\right )\mathclose {}}, we should then get an isomorphism from A to U as each b\in U comes from a unique a:A.
Therefore, choosing an injection amounts to making two independent choices: first we choose a subset of B that is in isomorphism with A, and then we choose a specific isomorphism from A to that subset. The number of such subsets is precisely \mathord {\#}{B}\choose \mathord {\#}{A}, and we have already seen in Proposition [00KT] that the number of such bijections is the factorial {\mathopen {}\left (\mathord {\#}{A}!\right )\mathclose {}}.
Of course, if there is no subset of B equinumerous with A, then there can be no injection.