
In mathematicalset theory,Cantor's theorem is a fundamental result which states that, for anyset, the set of allsubsets of known as thepower set of has a strictly greatercardinality than itself.
Forfinite sets, Cantor's theorem can be seen to be true by simpleenumeration of the number of subsets. Counting theempty set as a subset, a set with elements has a total of subsets, and the theorem holds because for allnon-negative integers.
Much more significant is Cantor's discovery of an argument that is applicable to any set, and shows that the theorem holds forinfinite sets also. As a consequence, the cardinality of thereal numbers, which is the same as that of the power set of theintegers, is strictly larger than the cardinality of the integers; seeCardinality of the continuum for details.
The theorem is named forGeorg Cantor, who first stated and proved it at the end of the 19th century. Cantor's theorem had immediate and important consequences for thephilosophy of mathematics. For instance, by iteratively taking the power set of an infinite set and applying Cantor's theorem, we obtain an endless hierarchy of infinite cardinals, each strictly larger than the one before it. Consequently, the theorem implies that there is no largestcardinal number (colloquially, "there's no largest infinity").
Cantor's argument is elegant and remarkably simple. The complete proof is presented below, with detailed explanations to follow.
Theorem (Cantor)—Let be a map from set to its power set. Then is notsurjective. As a consequence, holds for any set.
exists via theaxiom schema of specification, and because.
Assume is surjective.
Then there exists a such that.
From for allin , we deduce viauniversal instantiation.
The previous deduction yields a contradiction of the form, since.
Therefore, is not surjective, viareductio ad absurdum.
We knowinjective maps from to exist. For example, a function such that.
Consequently,. ∎
By definition of cardinality, we have for any two sets and if and only if there is aninjective function but nobijective function fromto. It suffices to show that there is no surjection fromto. This is the heart of Cantor's theorem: there is no surjective function from any set to its power set. To establish this, it is enough to show that no function (that maps elements in to subsets of) can reach every possible subset, i.e., we just need to demonstrate the existence of a subset of that is not equal to for any. Recalling that each is a subset of, such a subset is given by the following construction, sometimes called theCantor diagonal set of:[1][2]
This means, by definition, that for all, if and only if. For all the sets and cannot be equal because was constructed from elements of whoseimages under did not include themselves. For all either or. If then cannot equal because by assumption and by definition. If then cannot equal because by assumption and by the definition of.
Equivalently, and slightly more formally, we have just proved that the existence of such that implies the followingcontradiction:
Therefore, byreductio ad absurdum, the assumption must be false.[3] Thus there is no such that ; in other words, is not in the image of and does not map onto every element of the power set of, i.e., is not surjective.
Finally, to complete the proof, we need to exhibit an injective function from to its power set. Finding such a function is trivial: just map to the singleton set. The argument is now complete, and we have established the strict inequality for any set that.
Another way to think of the proof is that, empty or non-empty, is always in the power set of. For to beonto, some element of must map to. But that leads to a contradiction: no element of can map to because that would contradict the criterion of membership in, thus the element mapping to must not be an element of meaning that it satisfies the criterion for membership in, another contradiction. So the assumption that an element of maps to must be false; and cannot be onto.
Because of the double occurrence of in the expression "", this is adiagonal argument. For a countable (or finite) set, the argument of the proof given above can be illustrated by constructing a table in which
Given the order chosen for the row and column labels, the main diagonal of this table thus records whether for each. One such table will be the following:The set constructed in the previous paragraphs coincides with the row labels for the subset of entries on this main diagonal (which in above example, coloured red) where the table records that is false.[3] Each row records the values of theindicator function of the set corresponding to the column. The indicator function of coincides with thelogically negated (swap "true" and "false") entries of the main diagonal. Thus the indicator function of does not agree with any column in at least one entry. Consequently, no column represents.
Despite the simplicity of the above proof, it is rather difficult for anautomated theorem prover to produce it. The main difficulty lies in an automated discovery of the Cantor diagonal set.Lawrence Paulson noted in 1992 thatOtter could not do it, whereasIsabelle could, albeit with a certain amount of direction in terms of tactics that might perhaps be considered cheating.[2]
Let us examine the proof for the specific case when iscountably infinite.Without loss of generality, we may take, the set ofnatural numbers.
Suppose that isequinumerous with itspower set. Let us see a sample of what looks like:
Indeed, contains infinite subsets of, e.g. the set of all positive even numbers, along with theempty set.
Now that we have an idea of what the elements of are, let us attempt to pair off eachelement of with each element of to show that these infinite sets are equinumerous. In other words, we will attempt to pair off each element of with an element from the infinite set, so that no element from either infinite set remains unpaired. Such an attempt to pair elements would look like this:
Given such a pairing, some natural numbers are paired withsubsets that contain the very same number. For instance, in our example the number 2 is paired with the subset {1, 2, 3}, which contains 2 as a member. Let us call such numbersselfish. Other natural numbers are paired withsubsets that do not contain them. For instance, in our example the number 1 is paired with the subset {4, 5}, which does not contain the number 1. Call these numbersnon-selfish. Likewise, 3 and 4 are non-selfish.
Using this idea, let us build a special set of natural numbers. This set will provide thecontradiction we seek. Let be the set ofall non-selfish natural numbers. By definition, thepower set contains all sets of natural numbers, and so it contains this set as an element. If the mapping is bijective, must be paired off with some natural number, say. However, this causes a problem. If is in, then is selfish because it is in the corresponding set, which contradicts the definition of. If is not in, then it is non-selfish and it should instead be a member of. Therefore, no such element which maps to can exist.
Since there is no natural number which can be paired with, we have contradicted our original supposition, that there is abijection between and.
Note that the set may be empty. This would mean that every natural number maps to a subset of natural numbers that contains. Then, every number maps to a nonempty set and no number maps to the empty set. But the empty set is a member of, so the mapping still does not cover.
Through thisproof by contradiction we have proven that thecardinality of and cannot be equal. We also know that thecardinality of cannot be less than thecardinality of because contains allsingletons, by definition, and these singletons form a "copy" of inside of. Therefore, only one possibility remains, and that is that thecardinality of is strictly greater than thecardinality of, proving Cantor's theorem.
Cantor's theorem and its proof are closely related to twoparadoxes of set theory.
Cantor's paradox is the name given to a contradiction following from Cantor's theorem together with the assumption that there is a set containing all sets, theuniversal set. In order to distinguish this paradox from the next one discussed below, it is important to note what this contradiction is. By Cantor's theorem for any set. On the other hand, all elements of are sets, and thus contained in, therefore.[1]
Another paradox can be derived from the proof of Cantor's theorem by instantiating the functionf with theidentity function; this turns Cantor's diagonal set into what is sometimes called theRussell set of a given setA:[1]
The proof of Cantor's theorem is straightforwardly adapted to show that assuming a set of all setsU exists, then considering its Russell setRU leads to the contradiction:
This argument is known asRussell's paradox.[1] As a point of subtlety, the version of Russell's paradox we have presented here is actually a theorem ofZermelo;[4] we can conclude from the contradiction obtained that we must reject the hypothesis thatRU∈U, thus disproving the existence of a set containing all sets. This was possible because we have usedrestricted comprehension (as featured inZFC) in the definition ofRA above, which in turn entailed that
Had we usedunrestricted comprehension (as inFrege's system for instance) by defining the Russell set simply as, then the axiom system itself would have entailed the contradiction, with no further hypotheses needed.[4]
Despite the syntactical similarities between the Russell set (in either variant) and the Cantor diagonal set,Alonzo Church emphasized that Russell's paradox is independent of considerations of cardinality and its underlying notions like one-to-one correspondence.[5]
Cantor gave essentially this proof in a paper published in 1891 "Über eine elementare Frage der Mannigfaltigkeitslehre",[6] where thediagonal argument for the uncountability of thereals also first appears (he hadearlier proved the uncountability of the reals by other methods). The version of this argument he gave in that paper was phrased in terms of indicator functions on a set rather than subsets of a set.[7] He showed that iff is a function defined onX whose values are 2-valued functions onX, then the 2-valued functionG(x) = 1 −f(x)(x) is not in the range off.
Bertrand Russell has a very similar proof inPrinciples of Mathematics (1903, section 348), where he shows that there are morepropositional functions than objects. "For suppose a correlation of all objects and some propositional functions to have been affected, and let phi-x be the correlate ofx. Then "not-phi-x(x)," i.e. "phi-x does not hold ofx" is a propositional function not contained in this correlation; for it is true or false ofx according as phi-x is false or true ofx, and therefore it differs from phi-x for every value ofx." He attributes the idea behind the proof to Cantor.
Ernst Zermelo has a theorem (which he calls "Cantor's Theorem") that is identical to the form above in the paper that became the foundation of modern set theory ("Untersuchungen über die Grundlagen der Mengenlehre I"), published in 1908. SeeZermelo set theory.
Lawvere's fixed-point theorem provides for a broad generalization of Cantor's theorem to anycategory withfinite products in the following way:[8] let be such a category, and let be a terminal object in. Suppose that is an object in and that there exists an endomorphism that does not have any fixed points; that is, there is no morphism that satisfies. Then there is no object of such that a morphism can parameterize all morphisms. In other words, for every object and every morphism, an attempt to write maps as maps of the form must leave out at least one map.