Samuelb88
- 160
- 0
Homework Statement
If A and B are finite, show the set of all functions f: A \rightarrow B is finite.
Homework Equations
Lemma. If A is finite such that |A|=n, then there is a bijective correspondence between A and [n].
*Notation. [n] = \{ 1, ..., n \}
The Attempt at a Solution
Let A, B be finite such that |A|=n and |B|=m. Then by my lemma, I can find bijective maps between both A and [n], and B and [m]. Thus in order to show that the set of all functions f: A \rightarrow B is finite, it suffices to show that the set of all functions g: [n] \rightarrow [m] is finite.
I'm not quite sure how to proceed from here. Thus far I considered proceeding by cases, that is, when n=m, n<m, and m<n. If I proceed by cases, I get stuck at the case of n=m because I can't figure out how to show there are finitely many functions that map [n] \rightarrow [m].