44. Sets of functions
As mathematical entities, functions can be elements of sets; in fact the discovery of function spaces, in which functions are regarded as points in a space, was one of the great advances of mathematics.
44.1 Definition: $B^A$
If $A$ and $B$ are sets, the set of all functions $F\colon A \to B$ is denoted $B^{A}$.
44.1.1 Warning The notation $B^{A}$ refers to the functions from $A$ to $B$, from the exponent to the base. It is easy to read this notation backward.
44.1.2 Remark Remark 97.1.5, page 139, and Theorem 122.3, page 188, explain why the notation $B^{A}$ is used.
44.1.3 Example The function $G$ of Example 39.3.1 is an element of the set $\mathrm{R}^{\mathrm{R}}$, and the function of Example 39.3.3 is an element of the set
$$\{ 2, 4, 5, 6\}^{\{ 1, 2, 3\}}$$
44.1.4 Example The function $+ \colon \mathrm{R} \times \mathrm{R} \to \mathrm{R}$ is an element of $\mathrm{R}^{\mathrm{R} \times \mathrm{R}}$.
44.1.5 Exercise Let $A = \{ 1, 2, 3, 4, 5\}$. For each item in the first column, state which of the items in the second column it is an element of.
$$\begin{array}{lll} \text{a)} & \operatorname{id}_{\mathrm{R}} & 1)\ \mathrm{R}^{\mathrm{R}} \\ \text{b)} & \text{the inclusion of } A \text{ in Z} & 2)\ \mathrm{Z}^{A} \\ \text{c)} & \langle 1, 2, 1\rangle & 3)\ \mathrm{R} \times \mathrm{Z} \times \mathrm{R} \\ \text{d)} & x \mapsto x^{2}\colon \mathrm{R} \to \mathrm{R} & 4)\ (\mathrm{R}^{+})^{\mathrm{R}} \end{array}$$
(Answer on page 245.)
Pages 66–67 of the book (PDF).