I have a question about the set of functions from a set to another set. I am wondering about the degenerate cases. Suppose XY denotes the set of functions from a set Y to a set X, why is |Y∅|=1 but |∅Y|=0 where Y≠∅?
Answer
The definition of AB is "the set of all functions with domain B and codomain A".
A function f from B to A is a set of ordered pairs such that:
- If (x,y)∈f, then x∈B and y∈A.
- For every b∈B there exists a∈A such that (b,a)∈f.
- If (b,a) and (b,a′) are in f, then a=a′.
Now, what happens if B=∅? Well, then there can be no pair in f, because you cannot have x∈B. But notice that in that case, 2 is satisfied "by vacuity" (if it were false, you would be able to exhibit a b∈∅ for which there is no a∈A with (b,a)∈f; but there are no b∈∅, so you cannot make such an exhibition; the statement is true because the premise, "b∈∅", can never hold). Likewise 3 holds by vacuity. So it turns out that if we take f=∅, then f satisfies 1, 2, and 3, and therefore it is by all rights a "function from ∅ to A". But this is the only possible function from ∅ to A, because only the empty set works.
By contrast, if A=∅, but B≠∅, then no set f can satisfy both 1 and 2, so no set can be a function from B to A.
That means that Y∅ always contains exactly one element, namely the "empty function", ∅. But if Y≠∅, then ∅Y contains no elements; that is, it is empty.
Therefore, since Y∅ has exactly one element, |Y∅|=1 regardless of what Y is. But if Y≠∅, then ∅Y is empty, so |∅Y|=0.
No comments:
Post a Comment