Let $A$ to be a nonempty set and $B= \emptyset$; then $ A \times B$ is a set. And let $F$ be a function $A \to B$. Then $F \subseteq A \times B$. By the axiom of specification, $F$ must exists (if I didn't mess up something).
But the book I'm reading, Elements of Set Theory by Enderton, says that no function could have a nonempty domain and an empty range, and no more detail is given.
So my confusion arises. His statement against my proof. The only axiom as far as I know to prove such a set does not exist is the axiom of regularity. But I can't give such a proof. So I need help. I hope someone could clearly explain why such a function doesn't exist, and why this doesn't contradict the axiom of specification.
Let me explain my confusion in more detail:
First of all, I know that $A \times \emptyset$ is empty. But $ \emptyset \times A$ is also an empty set, yet there is no problem with functions with an empty domain.
The book I'm reading defines a function as:
"A function is a relation such that for each $x$ in $\operatorname{dom} F$ there is only one $y$ such that $x \mathop F y$."
and a relation as:
"A relation is a set of ordered pairs."
Now, let me define the function $F$ as: $$F = \{\langle x,y \rangle \mid x \in A \text{ and } y \in B \text{ and ... other conditions} \}$$ so it's equal to: $$F = \{ \langle x,y \rangle \in A \times B \mid \text{... other conditions} \}.$$
Doesn't that mean that $F$ meets the conditions of the axiom of specification, and therefore exists?
What I would specifically like to ask is:
How do you define a function $F$ (as precisely as possible)?
Why does the argument above not imply that a function $F: A \to B$ always exists?
Does $F \subseteq A \times B$ still hold when $B = \emptyset$?
(The answer to #2 cannot simply be that $A \times B = \emptyset$, because $ B \times A = \emptyset$ as well, but a function $B \to A$ does exist.)
In the first case, the answer is clear. In the second, it seems to be an arbitrary choice to impose $dom(F)\neq\emptyset$.
– Taladris May 10 '14 at 14:34