Cantor's theorem: Difference between revisions

Content deleted Content added
No edit summary
Line 6:
In elementary [[set theory]], '''Cantor's theorem''' is a fundamental result which states that, for any [[Set (mathematics)|set]] <math>A</math>, the set of all [[subset]]s of <math>A</math> (the [[power set]] of <math>A</math>, denoted by <math>\mathcal{P}(A)</math>) has a strictly greater [[cardinality]] than <math>A</math> itself. For [[finite set]]s, Cantor's theorem can be seen to be true by simple [[enumeration]] of the number of subsets. Counting the [[empty set]] as a subset, a set with <math>n</math> members has a total of <math>2^n</math> subsets, so that if <math>{\rm card}(A) = n,</math> then <math>{\rm card}(\mathcal{P}(A)) = 2^n</math>, and the theorem holds because <math>2^n > n</math> for all [[non-negative integers]].
 
Much more significant is Cantor's discovery of an argument that is applicable to any set, which showed that the theorem holds for [[infinite set|infinite]] sets, countable or uncountable, as well as finite ones. As a particularly important consequence, the power set of the set of [[natural number]]s, a [[countably infinite]] set with cardinality ℵ<sub>0</sub> = card('''N'''), is [[uncountable set|uncountably infinite]] and has the same size as the set of [[real number]]s, a cardinality larger than that of the set of natural numbers that is often referred to as the [[cardinality of the continuum]]: 𝔠 = card(ℝ) = card(𝒫('''N''')). The relationship between these cardinal numbers is often expressed symbolically by the equality and inequality <math>\mathfrak{c}=2^{\aleph_0}>\aleph_0</math>.
 
The theorem is named for German [[mathematician]] [[Georg Cantor]], who first stated and proved it at the end of the 19th century. Cantor's theorem had immediate and important consequences for the [[philosophy 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 largest cardinal number (colloquially, "there's no largest infinity").
Line 38:
Despite the simplicity of the above proof, it is rather difficult for an [[automated theorem prover]] to produce it. The main difficulty lies in an automated discovery of the Cantor diagonal set. [[Lawrence Paulson]] noted in 1992 that [[Otter (theorem prover)|Otter]] could not do it, whereas [[Isabelle (proof assistant)|Isabelle]] could, albeit with a certain amount of direction in terms of tactics that might perhaps be considered cheating.<ref name="Paulson1992"/>
 
==When <math>''A</math>'' is countably infinite==
Let us examine the proof for the specific case when <math>A</math> is [[countably infinite]]. [[Without loss of generality]], we may take <{{math>|1=''A</math>'' = '''N''' = {{mset|1, 2, 3,... …}}}}, the set of [[natural number]]s.
 
Suppose that '''N''' is [[equinumerous]] with its [[power set]] 𝒫('''N'''). Let us see a sample of what 𝒫('''N''') looks like:
 
:<math>\mathcal{P}(\mathbb{N})=\{\varnothing,\{1, 2\}, \{1, 2, 3\}, \{4\}, \{1, 5\}, \{3, 4, 6\}, \{2, 4, 6,\dots\},\dots\}.</math>
 
𝒫('''N''') contains infinite subsets of '''N''', e.g. the set of all even numbers {2, 4, 6,...}, as well as the [[empty set]].
 
Now that we have an idea of what the elements of 𝒫('''N''') look like, let us attempt to pair off each [[element (math)|element]] of '''N''' with each element of 𝒫('''N''') to show that these infinite sets are equinumerous. In other words, we will attempt to pair off each element of '''N''' with an element from the infinite set 𝒫('''N'''), so that no element from either infinite set remains unpaired. Such an attempt to pair elements would look like this:
 
:<math>\mathbb{N}\begin{Bmatrix} 1 & \longleftrightarrow & \{4, 5\}\\ 2 & \longleftrightarrow & \{1, 2, 3\} \\ 3 & \longleftrightarrow & \{4, 5, 6\} \\ 4 & \longleftrightarrow & \{1, 3, 5\} \\ \vdots & \vdots & \vdots \end{Bmatrix}\mathcal{P}(\mathbb{N}).</math>
Line 53:
Given such a pairing, some natural numbers are paired with [[subset]]s 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 numbers ''selfish''. Other natural numbers are paired with [[subset]]s 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 numbers ''non-selfish''. Likewise, 3 and 4 are non-selfish.
 
Using this idea, let us build a special set of natural numbers. This set will provide the [[proof by contradiction|contradiction]] we seek. Let ''B'' be the set of ''all'' non-selfish natural numbers. By definition, the [[power set]] 𝒫('''N''') contains all sets of natural numbers, and so it contains this set ''B'' as an element. If the mapping is bijective, ''B'' must be paired off with some natural number, say ''b''. However, this causes a problem. If ''b'' is in ''B'', then ''b'' is selfish because it is in the corresponding set, which contradicts the definition of ''B''. If ''b'' is not in ''B'', then it is non-selfish and it should instead be a member of ''B''. Therefore, no such element ''b'' which maps to ''B'' can exist.
 
Since there is no natural number which can be paired with ''B'', we have contradicted our original supposition, that there is a [[bijection]] between '''N''' and 𝒫('''N''').
 
Note that the set ''B'' may be empty. This would mean that every natural number ''x'' maps to a subset of natural numbers that contains ''x''. Then, every number maps to a nonempty set and no number maps to the empty set. But the empty set is a member of 𝒫('''N'''), so the mapping still does not cover 𝒫('''N''').
 
Through this [[proof by contradiction]] we have proven that the [[cardinality]] of '''N''' and 𝒫('''N''') cannot be equal. We also know that the [[cardinality]] of 𝒫('''N''') cannot be less than the [[cardinality]] of '''N''' because 𝒫('''N''') contains all [[singleton (mathematics)|singleton]]s, by definition, and these singletons form a "copy" of '''N''' inside of 𝒫('''N'''). Therefore, only one possibility remains, and that is that the [[cardinality]] of 𝒫('''N''') is strictly greater than the [[cardinality]] of '''N''', proving Cantor's theorem.
 
==Related paradoxes==
Cantor's theorem and its proof are closely related to two [[paradoxes 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, the [[universal set]] <math>V</math>. 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 <math>|\mathcal{P}(X)| > |X|</math> for any set <math>X</math>. On the other hand, all elements of <math>\mathcal{P}(V)</math> are sets, and thus contained in <math>V</math>, therefore <math>|\mathcal{P}(V)| \leqslantleq |V|</math>.<ref name="Dasgupta2013"/>
 
Another paradox can be derived from the proof of Cantor's theorem by instantiating the function ''f'' with the [[identity function]]; this turns Cantor's diagonal set into what is sometimes called the ''Russell set'' of a given set ''A'':<ref name="Dasgupta2013"/>
Line 71:
 
The proof of Cantor's theorem is straightforwardly adapted to show that assuming a set of all sets ''U'' exists, then considering its Russell set ''R''<sub>''U''</sub> leads to the contradiction:
 
:<math>R_U \in R_U \iff R_U \notin R_U.</math>
 
This argument is known as [[Russell's paradox]].<ref name="Dasgupta2013"/> As a point of subtlety, the version of Russell's paradox we have presented here is actually a theorem of [[Zermelo]];<ref name="Ebbinghaus2007"/> we can conclude from the contradiction obtained that we must reject the hypothesis that ''R''<sub>''U''</sub>∈''U'', thus disproving the existence of a set containing all sets. This was possible because we have used [[Axiom schema of specification|restricted comprehension]] (as featured in [[ZFC]]) in the definition of ''R''<sub>''A''</sub> above, which in turn entailed that