One way of looking at counting the elements in a finite set is to say we are building a function from the set to a subset of the natural numbers. So we know {a, b, c, d} has four elements because we can build a function f: {a, b, c, d} ® {1,2, 3, 4} which is one-to-one and onto. One example of such a function is f(a) = 1, f(b) = 2,f(c) = 4, and f(d) = 3. The function f is called a one-to-one correspondence between the two sets. In a similar way, we can build a one-to-one correspondence g: {q, s, r, t}® {a,b,c,d}, so we say {a, b, c, d} and {q, r, s,t} have the same size. This method works for infinite sets as well since it no longer involves counting the elements.
We say two sets S and T are the ßame size" if we can build a function f:S® T that is one-to-one and onto. For example the natural numbers and the even numbers are the same size since the function f(x) = 2x is one-to-one and maps the natural numbers onto the even numbers. Next we will apply this to power sets.
The power set of a set S (denoted P(S)) is the set of all subsets of S. We know that given a set S = {a, b, c} the power set of S is P(S) = { {}, {a}, {b}, {c}, {a,b}, {a,c}, {b,c}, {a,b,c}}. It seems logical that a set and its power set cannot be put into one-to-one correspondence. Each element of S corresponds to an element of the power set: a® {a}, b® {b}, c® {c} and there are other elements of the power set left over. This, however is not a proof that they are different sizes. We have an example of a function which is not onto, but that does not mean that no such function can exist. To understand the difference, consider the natural numbers (N) and the negative integers (Z-). We can build a function f: N ® Z- which is not one-to-one and onto, specifically f(x) = -2x. This function has the natural numbers as domain and the negative integers as its codomain, but misses some of them (-1 for example) so it is not onto. Using the function f(x) = -x however, we see that the two sets can be put into one-to-one correspondence.
If we restrict our attention to finite sets we can prove that if a set S has size n, then its power set P(S) has size 2n. We denote the size of S as |S|. For our example set |S| = 3 and |P(S)| = 8 = 23. This style of proof cannot be extended to infinite sets because we cannot find the number n which represents the size of the infinite set. That means we need another approach. We will use a method of proof called diagonalization. It involves assuming that an onto function exists and building an element of the target set which cannot be an output of the function.
Let S be a non-empty set. Assume that there exists a function f : S® P(S) such that f is one-to-one and onto. Inputs to the function f are elements of S and the outputs are elements of P(S). An element of P(S) is a subset of S, so for any a Î S, f(a) is a subset of S. This means that either a Î f(a) or a Ï f(a). Let E = { a Î S| a Ï f(a) } . For example if f(a) = {a,b} then a Ï E and if f(b) = {c} then b Î E. Since E Ì S , we know that E Î P(S). So since f is onto there exists an e such that f(e) = E. Now consider whether e Î E. If e Î E, then by the definition of E, e Ï f(e). But f(e) = E so e Ï E which is a contradiction. If e Ï E then e Ï f(e) and so e Î E by the definition of E. This is also a contradiction. This shows that our assumption that there is a one-to-one and onto function from S to P(S) is false.
We have shown that a set S and its power set P(S) cannot be the same size. In fact, the diagonalization argument shows that the power set is bigger since it has extra elements not covered by the attempted correspondence. The name diagonalization is related to the proof that the real numbers (0,1) cannot be put into one-to-one correspondence with the natural numbers.
We want to show that there is no one-to-one and onto function mapping N ® (0,1). (The open interval from 0 to 1 is denoted (0,1). Assume that f is such a function. We can list the outputs of f by input. One example of a possible f might be:
|
|