I am reading Naive Set Theory by Paul Halmos. I saw this exact question posted earlier, here, but there is no help on it outside of the definition which I already know, and a theory on how the notation came about which could be used to prove this but it doesn't help in my understanding. The problem (from the end of chapter 8 on functions) is,
Let $Y$ be a set and $X$ be a non-empty set. Then prove
- $Y^\emptyset = \{ \emptyset \}$ and
- $\emptyset^X = \emptyset$.
So far I have: The set of $Y^\emptyset \subset P( \emptyset \times Y)$, where $P(A)$ is the power set of $A$ and $A \times B$ is the cartesian product of $A$ and $B$. $P( \emptyset \times Y) = P( \emptyset) = \{ \emptyset \}$, and the same goes for $X$.
My question is why is $\emptyset$ considered a function from $\emptyset \rightarrow Y$ but not $X \rightarrow \emptyset$. If a function in Naive set theory is seen as a set of ordered pairs such that for a function $F$ if $(x,y) \in F$ and $(x,z) \in F$, then $y = z$, and the empty set has no ordered pairs, should it not be a function for both?