Cantor's diagonal argument

Last updated

An illustration of Cantor's diagonal argument (in base 2) for the existence of uncountable sets. The sequence at the bottom cannot occur anywhere in the enumeration of sequences above. Diagonal argument 01 svg.svg
An illustration of Cantor's diagonal argument (in base 2) for the existence of uncountable sets. The sequence at the bottom cannot occur anywhere in the enumeration of sequences above.
An infinite set may have the same cardinality as a proper subset of itself, as the depicted bijection f(x)=2x from the natural to the even numbers demonstrates. Nevertheless, infinite sets of different cardinalities exist, as Cantor's diagonal argument shows. Aplicacion 2 inyectiva sobreyectiva02.svg
An infinite set may have the same cardinality as a proper subset of itself, as the depicted bijection f(x)=2x from the natural to the even numbers demonstrates. Nevertheless, infinite sets of different cardinalities exist, as Cantor's diagonal argument shows.

In set theory, Cantor's diagonal argument, also called the diagonalisation argument, the diagonal slash argument, the anti-diagonal argument, the diagonal method, and Cantor's diagonalization proof, was published in 1891 by Georg Cantor as a mathematical proof that there are infinite sets which cannot be put into one-to-one correspondence with the infinite set of natural numbers. [1] [2] :20– [3] Such sets are now known as uncountable sets, and the size of infinite sets is now treated by the theory of cardinal numbers which Cantor began.

Contents

The diagonal argument was not Cantor's first proof of the uncountability of the real numbers, which appeared in 1874. [4] [5] However, it demonstrates a general technique that has since been used in a wide range of proofs, [6] including the first of Gödel's incompleteness theorems [2] and Turing's answer to the Entscheidungsproblem . Diagonalization arguments are often also the source of contradictions like Russell's paradox [7] [8] and Richard's paradox. [2] :27

Uncountable set

Cantor considered the set T of all infinite sequences of binary digits (i.e. each digit is zero or one). [note 1] He begins with a constructive proof of the following lemma:

If s1, s2, ... , sn, ... is any enumeration of elements from T, [note 2] then an element s of T can be constructed that doesn't correspond to any sn in the enumeration.

The proof starts with an enumeration of elements from T, for example

s1 =(0,0,0,0,0,0,0,...)
s2 =(1,1,1,1,1,1,1,...)
s3 =(0,1,0,1,0,1,0,...)
s4 =(1,0,1,0,1,0,1,...)
s5 =(1,1,0,1,0,1,1,...)
s6 =(0,0,1,1,0,1,1,...)
s7 =(1,0,0,0,1,0,0,...)
...

Next, a sequence s is constructed by choosing the 1st digit as complementary to the 1st digit of s1 (swapping 0s for 1s and vice versa), the 2nd digit as complementary to the 2nd digit of s2, the 3rd digit as complementary to the 3rd digit of s3, and generally for every n, the nth digit as complementary to the nth digit of sn. For the example above, this yields

s1=(0,0,0,0,0,0,0,...)
s2=(1,1,1,1,1,1,1,...)
s3=(0,1,0,1,0,1,0,...)
s4=(1,0,1,0,1,0,1,...)
s5=(1,1,0,1,0,1,1,...)
s6=(0,0,1,1,0,1,1,...)
s7=(1,0,0,0,1,0,0,...)
...
s=(1,0,1,1,1,0,1,...)

By construction, s is a member of T that differs from each sn, since their nth digits differ (highlighted in the example). Hence, s cannot occur in the enumeration.

Based on this lemma, Cantor then uses a proof by contradiction to show that:

The set T is uncountable.

The proof starts by assuming that T is countable. Then all its elements can be written in an enumeration s1, s2, ... , sn, ... . Applying the previous lemma to this enumeration produces a sequence s that is a member of T, but is not in the enumeration. However, if T is enumerated, then every member of T, including this s, is in the enumeration. This contradiction implies that the original assumption is false. Therefore, T is uncountable. [1]

Real numbers

The uncountability of the real numbers was already established by Cantor's first uncountability proof, but it also follows from the above result. To prove this, an injection will be constructed from the set T of infinite binary strings to the set R of real numbers. Since T is uncountable, the image of this function, which is a subset of R, is uncountable. Therefore, R is uncountable. Also, by using a method of construction devised by Cantor, a bijection will be constructed between T and R. Therefore, T and R have the same cardinality, which is called the "cardinality of the continuum" and is usually denoted by or .

An injection from T to R is given by mapping binary strings in T to decimal fractions, such as mapping t = 0111... to the decimal 0.0111.... This function, defined by f(t) = 0.t, is an injection because it maps different strings to different numbers. [note 3]

Constructing a bijection between T and R is slightly more complicated. Instead of mapping 0111... to the decimal 0.0111..., it can be mapped to the base b number: 0.0111...b. This leads to the family of functions: fb(t) = 0.tb. The functions fb(t) are injections, except for f2(t). This function will be modified to produce a bijection between T and R.

General sets

Illustration of the generalized diagonal argument: The set T = {n[?]
N
{\displaystyle \mathbb {N} }
: n[?]f(n)} at the bottom cannot occur anywhere in the range of f:
N
{\displaystyle \mathbb {N} }
-P(
N
{\displaystyle \mathbb {N} }
). The example mapping f happens to correspond to the example enumeration s in the above picture. Diagonal argument powerset svg.svg
Illustration of the generalized diagonal argument: The set T = {n: nf(n)} at the bottom cannot occur anywhere in the range of f:P(). The example mapping f happens to correspond to the example enumeration s in the above picture.

A generalized form of the diagonal argument was used by Cantor to prove Cantor's theorem: for every set S, the power set of S—that is, the set of all subsets of S (here written as P(S))—cannot be in bijection with S itself. This proof proceeds as follows:

Let f be any function from S to P(S). It suffices to prove f cannot be surjective. That means that some member T of P(S), i.e. some subset of S, is not in the image of f. As a candidate consider the set:

T = { sS: sf(s) }.

For every s in S, either s is in T or not. If s is in T, then by definition of T, s is not in f(s), so T is not equal to f(s). On the other hand, if s is not in T, then by definition of T, s is in f(s), so again T is not equal to f(s); cf. picture. For a more complete account of this proof, see Cantor's theorem.

Consequences

Ordering of cardinals

With equality defined as the existence of a bijection between their underlying sets, Cantor also defines binary predicate of cardinalities and in terms of the existence of injections between and . It has the properties of a preorder and is here written "". One can embed the naturals into the binary sequences, thus proving various injection existence statements explicitly, so that in this sense , where denotes the function space . But following from the argument in the previous sections, there is no surjection and so also no bijection, i.e. the set is uncountable. For this one may write , where "" is understood to mean the existence of an injection together with the proven absence of a bijection (as opposed to alternatives such as the negation of Cantor's preorder, or a definition in terms of assigned ordinals). Also in this sense, as has been shown, and at the same time it is the case that , for all sets .

Assuming the law of excluded middle, characteristic functions surject onto powersets, and then . So the uncountable is also not enumerable and it can also be mapped onto . Classically, the Schröder–Bernstein theorem is valid and says that any two sets which are in the injective image of one another are in bijection as well. Here, every unbounded subset of is then in bijection with itself, and every subcountable set (a property in terms of surjections) is then already countable, i.e. in the surjective image of . In this context the possibilities are then exhausted, making "" a non-strict partial order, or even a total order when assuming choice. The diagonal argument thus establishes that, although both sets under consideration are infinite, there are actually more infinite sequences of ones and zeros than there are natural numbers. Cantor's result then also implies that the notion of the set of all sets is inconsistent: If were the set of all sets, then would at the same time be bigger than and a subset of .

In the absence of excluded middle

Also in constructive mathematics, there is no surjection from the full domain onto the space of functions or onto the collection of subsets , which is to say these two collections are uncountable. Again using "" for proven injection existence in conjunction with bijection absence, one has and . Further, , as previously noted. Likewise, , and of course , also in constructive set theory.

It is however harder or impossible to order ordinals and also cardinals, constructively. For example, the Schröder–Bernstein theorem requires the law of excluded middle. [10] In fact, the standard ordering on the reals, extending the ordering of the rational numbers, is not necessarily decidable either. Neither are most properties of interesting classes of functions decidable, by Rice's theorem, i.e. the set of counting numbers for the subcountable sets may not be recursive and can thus fail to be countable. The elaborate collection of subsets of a set is constructively not exchangeable with the collection of its characteristic functions. In an otherwise constructive context (in which the law of excluded middle is not taken as axiom), it is consistent to adopt non-classical axioms that contradict consequences of the law of excluded middle. Uncountable sets such as or may be asserted to be subcountable. [11] [12] This is a notion of size that is redundant in the classical context, but otherwise need not imply countability. The existence of injections from the uncountable or into is here possible as well. [13] So the cardinal relation fails to be antisymmetric. Consequently, also in the presence of function space sets that are even classically uncountable, intuitionists do not accept this relation to constitute a hierarchy of transfinite sizes. [14] When the axiom of powerset is not adopted, in a constructive framework even the subcountability of all sets is then consistent. That all said, in common set theories, the non-existence of a set of all sets also already follows from Predicative Separation.

In a set theory, theories of mathematics are modeled. Weaker logical axioms mean less constraints and so allow for a richer class of models. A set may be identified as a model of the field of real numbers when it fulfills some axioms of real numbers or a constructive rephrasing thereof. Various models have been studied, such as the Cauchy reals or the Dedekind reals, among others. The former relate to quotients of sequences while the later are good behaved cuts taken from a powerset, if they exist. In the presence of excluded middle, those are all isomorphic and uncountable. Otherwise, variants of the Dedekind reals can be countable [15] or inject into the naturals, but not jointly. When assuming countable choice, constructive Cauchy reals even without an explicit modulus of convergence are then Cauchy-complete [16] and Dedekind reals simplify so as to become isomorphic to them. Indeed, here choice also aids diagonal constructions and when assuming it, Cauchy-complete models of the reals are uncountable.

Open questions

Motivated by the insight that the set of real numbers is "bigger" than the set of natural numbers, one is led to ask if there is a set whose cardinality is "between" that of the integers and that of the reals. This question leads to the famous continuum hypothesis. Similarly, the question of whether there exists a set whose cardinality is between |S| and |P(S)| for some infinite S leads to the generalized continuum hypothesis.

Diagonalization in broader context

Russell's paradox has shown that naive set theory, based on an unrestricted comprehension scheme, is contradictory. Note that there is a similarity between the construction of T and the set in Russell's paradox. Therefore, depending on how we modify the axiom scheme of comprehension in order to avoid Russell's paradox, arguments such as the non-existence of a set of all sets may or may not remain valid.

Analogues of the diagonal argument are widely used in mathematics to prove the existence or nonexistence of certain objects. For example, the conventional proof of the unsolvability of the halting problem is essentially a diagonal argument. Also, diagonalization was originally used to show the existence of arbitrarily hard complexity classes and played a key role in early attempts to prove P does not equal NP.

Version for Quine's New Foundations

The above proof fails for W. V. Quine's "New Foundations" set theory (NF). In NF, the naive axiom scheme of comprehension is modified to avoid the paradoxes by introducing a kind of "local" type theory. In this axiom scheme,

{ sS: sf(s) }

is not a set — i.e., does not satisfy the axiom scheme. On the other hand, we might try to create a modified diagonal argument by noticing that

{ sS: sf({s}) }

is a set in NF. In which case, if P1(S) is the set of one-element subsets of S and f is a proposed bijection from P1(S) to P(S), one is able to use proof by contradiction to prove that |P1(S)| < |P(S)|.

The proof follows by the fact that if f were indeed a map ontoP(S), then we could find r in S, such that f({r}) coincides with the modified diagonal set, above. We would conclude that if r is not in f({r}), then r is in f({r}) and vice versa.

It is not possible to put P1(S) in a one-to-one relation with S, as the two have different types, and so any function so defined would violate the typing rules for the comprehension scheme.

See also

Notes

  1. Cantor used "m and "w" instead of "0" and "1", "M" instead of "T", and "Ei" instead of "si".
  2. Cantor does not assume that every element of T is in this enumeration.
  3. While 0.0111... and 0.1000... would be equal if interpreted as binary fractions (destroying injectivity), they are different when interpreted as decimal fractions, as is done by f. On the other hand, since t is a binary string, the equality 0.0999... = 0.1000... of decimal fractions is not relevant here.

Related Research Articles

In mathematics, specifically set theory, the continuum hypothesis is a hypothesis about the possible sizes of infinite sets. It states that

there is no set whose cardinality is strictly between that of the integers and the real numbers,

In mathematics, a set is countable if either it is finite or it can be made in one to one correspondence with the set of natural numbers. Equivalently, a set is countable if there exists an injective function from it into the natural numbers; this means that each element in the set may be associated to a unique natural number, or that the elements of the set can be counted one at a time, although the counting may never finish due to an infinite number of elements.

In mathematics, the Cantor set is a set of points lying on a single line segment that has a number of unintuitive properties. It was discovered in 1874 by Henry John Stephen Smith and mentioned by German mathematician Georg Cantor in 1883.

<span class="mw-page-title-main">Cardinality</span> Definition of the number of elements in a set

In mathematics, the cardinality of a set is a measure of the number of elements of the set. For example, the set contains 3 elements, and therefore has a cardinality of 3. Beginning in the late 19th century, this concept was generalized to infinite sets, which allows one to distinguish between different types of infinity, and to perform arithmetic on them. There are two approaches to cardinality: one which compares sets directly using bijections and injections, and another which uses cardinal numbers. The cardinality of a set may also be called its size, when no confusion with other notions of size is possible.

<span class="mw-page-title-main">Computable number</span> Real number that can be computed within arbitrary precision

In mathematics, computable numbers are the real numbers that can be computed to within any desired precision by a finite, terminating algorithm. They are also known as the recursive numbers, effective numbers or the computable reals or recursive reals. The concept of a computable real number was introduced by Emile Borel in 1912, using the intuitive notion of computability available at the time.

In the philosophy of mathematics, constructivism asserts that it is necessary to find a specific example of a mathematical object in order to prove that an example exists. Contrastingly, in classical mathematics, one can prove the existence of a mathematical object without "finding" that object explicitly, by assuming its non-existence and then deriving a contradiction from that assumption. Such a proof by contradiction might be called non-constructive, and a constructivist might reject it. The constructive viewpoint involves a verificational interpretation of the existential quantifier, which is at odds with its classical interpretation.

In mathematics, a topological space is called separable if it contains a countable, dense subset; that is, there exists a sequence of elements of the space such that every nonempty open subset of the space contains at least one element of the sequence.

In mathematics, an uncountable set, informally, is an infinite set that contains too many elements to be countable. The uncountability of a set is closely related to its cardinal number: a set is uncountable if its cardinal number is larger than aleph-null, the cardinality of the natural numbers.

An enumeration is a complete, ordered listing of all the items in a collection. The term is commonly used in mathematics and computer science to refer to a listing of all of the elements of a set. The precise requirements for an enumeration depend on the discipline of study and the context of a given problem.

In mathematics, constructive analysis is mathematical analysis done according to some principles of constructive mathematics.

<span class="mw-page-title-main">Cantor's theorem</span> Every set is smaller than its power set

In mathematical set theory, Cantor's theorem is a fundamental result which states that, for any set , the set of all subsets of known as the power set of has a strictly greater cardinality than itself.

In mathematics, particularly in set theory, the beth numbers are a certain sequence of infinite cardinal numbers, conventionally written , where is the Hebrew letter beth. The beth numbers are related to the aleph numbers, but unless the generalized continuum hypothesis is true, there are numbers indexed by that are not indexed by .

In mathematical logic and philosophy, Skolem's paradox is a seeming contradiction that arises from the downward Löwenheim–Skolem theorem. Thoralf Skolem (1922) was the first to discuss the seemingly contradictory aspects of the theorem, and to discover the relativity of set-theoretic notions now known as non-absoluteness. Although it is not an actual antinomy like Russell's paradox, the result is typically called a paradox and was described as a "paradoxical state of affairs" by Skolem.

In set theory, the cardinality of the continuum is the cardinality or "size" of the set of real numbers , sometimes called the continuum. It is an infinite cardinal number and is denoted by or .

Axiomatic constructive set theory is an approach to mathematical constructivism following the program of axiomatic set theory. The same first-order language with "" and "" of classical set theory is usually used, so this is not to be confused with a constructive types approach. On the other hand, some constructive theories are indeed motivated by their interpretability in type theories.

This article contains a discussion of paradoxes of set theory. As with most mathematical paradoxes, they generally reveal surprising and counter-intuitive mathematical results, rather than actual logical contradictions within modern axiomatic set theory.

In constructive mathematics, a collection is subcountable if there exists a partial surjection from the natural numbers onto it. This may be expressed as

<span class="mw-page-title-main">Real number</span> Number representing a continuous quantity

In mathematics, a real number is a number that can be used to measure a continuous one-dimensional quantity such as a distance, duration or temperature. Here, continuous means that pairs of values can have arbitrarily small differences. Every real number can be almost uniquely represented by an infinite decimal expansion.

<span class="mw-page-title-main">Cantor's first set theory article</span> First article on transfinite set theory

Cantor's first set theory article contains Georg Cantor's first theorems of transfinite set theory, which studies infinite sets and their properties. One of these theorems is his "revolutionary discovery" that the set of all real numbers is uncountably, rather than countably, infinite. This theorem is proved using Cantor's first uncountability proof, which differs from the more familiar proof using his diagonal argument. The title of the article, "On a Property of the Collection of All Real Algebraic Numbers", refers to its first theorem: the set of real algebraic numbers is countable. Cantor's article was published in 1874. In 1879, he modified his uncountability proof by using the topological notion of a set being dense in an interval.

In order theory and model theory, branches of mathematics, Cantor's isomorphism theorem states that every two countable dense unbounded linear orders are order-isomorphic. For instance, Minkowski's question-mark function produces an isomorphism between the numerical ordering of the rational numbers and the numerical ordering of the dyadic rationals.

References

  1. 1 2 Georg Cantor (1891). "Ueber eine elementare Frage der Mannigfaltigkeitslehre". Jahresbericht der Deutschen Mathematiker-Vereinigung . 1: 75–78. English translation: Ewald, William B., ed. (1996). From Immanuel Kant to David Hilbert: A Source Book in the Foundations of Mathematics, Volume 2. Oxford University Press. pp. 920–922. ISBN   0-19-850536-1.
  2. 1 2 3 Keith Simmons (30 July 1993). Universality and the Liar: An Essay on Truth and the Diagonal Argument. Cambridge University Press. ISBN   978-0-521-43069-2.
  3. Rudin, Walter (1976). Principles of Mathematical Analysis (3rd ed.). New York: McGraw-Hill. p.  30. ISBN   0070856133.
  4. Gray, Robert (1994), "Georg Cantor and Transcendental Numbers" (PDF), American Mathematical Monthly , 101 (9): 819–832, doi:10.2307/2975129, JSTOR   2975129
  5. Bloch, Ethan D. (2011). The Real Numbers and Real Analysis . New York: Springer. p.  429. ISBN   978-0-387-72176-7.
  6. Sheppard, Barnaby (2014). The Logic of Infinity (illustrated ed.). Cambridge University Press. p. 73. ISBN   978-1-107-05831-6. Extract of page 73
  7. Russell's paradox. Stanford encyclopedia of philosophy. 2021.
  8. Bertrand Russell (1931). Principles of mathematics. Norton. pp. 363–366.
  9. See page 254 of Georg Cantor (1878), "Ein Beitrag zur Mannigfaltigkeitslehre", Journal für die Reine und Angewandte Mathematik, 84: 242–258. This proof is discussed in Joseph Dauben (1979), Georg Cantor: His Mathematics and Philosophy of the Infinite, Harvard University Press, ISBN   0-674-34871-0 , pp. 6162, 65. On page 65, Dauben proves a result that is stronger than Cantor's. He lets "φν denote any sequence of rationals in [0, 1]." Cantor lets φν denote a sequence enumerating the rationals in [0, 1], which is the kind of sequence needed for his construction of a bijection between [0, 1] and the irrationals in (0, 1).
  10. Pradic, Pierre; Brown, Chad E. (2019). "Cantor-Bernstein implies Excluded Middle". arXiv: 1904.09193 [math.LO].
  11. Bell, John L. (2004), "Russell's paradox and diagonalization in a constructive context" (PDF), in Link, Godehard (ed.), One hundred years of Russell's paradox, De Gruyter Series in Logic and its Applications, vol. 6, de Gruyter, Berlin, pp. 221–225, MR   2104745
  12. Rathjen, M. "Choice principles in constructive and classical set theories", Proceedings of the Logic Colloquium, 2002
  13. Bauer, A. "An injection from N^N to N", 2011
  14. Ettore Carruccio (2006). Mathematics and Logic in History and in Contemporary Thought. Transaction Publishers. p. 354. ISBN   978-0-202-30850-0.
  15. Bauer; Hanson (2024). "The Countable Reals". arXiv: 2404.01256 [math.LO].
  16. Robert S. Lubarsky, On the Cauchy Completeness of the Constructive Cauchy Reals, July 2015