Incompleteness

Introduction to Incompleteness

Reading preferences

Optional display controls need JavaScript. All reading content and navigation work without it.

Source file content/incompleteness/introduction/introduction.tex

Source file content/incompleteness/introduction/historical-background.tex

Historical Background

In this section, we will briefly discuss historical developments that will help put the incompleteness theorems in context. In particular, we will give a very sketchy overview of the history of mathematical logic; and then say a few words about the history of the foundations of mathematics.

Digress

The phrase “mathematical logic” is ambiguous. One can interpret the word “mathematical” as describing the subject matter, as in, “the logic of mathematics,” denoting the principles of mathematical reasoning; or as describing the methods, as in “the mathematics of logic,” denoting a mathematical study of the principles of reasoning. The account that follows involves mathematical logic in both senses, often at the same time.

The study of logic began, essentially, with Aristotle, who lived approximately 384--322 textscbce. His Categories, Prior analytics, and Posterior analytics include systematic studies of the principles of scientific reasoning, including a thorough and systematic study of the syllogism.

Aristotle's logic dominated scholastic philosophy through the middle ages; indeed, as late as the eighteenth century, Kant maintained that Aristotle's logic was perfect and in no need of revision. But the theory of the syllogism is far too limited to model anything but the most superficial aspects of mathematical reasoning. A century earlier, Leibniz, a contemporary of Newton's, imagined a complete “calculus” for logical reasoning, and made some rudimentary steps towards designing such a calculus, essentially describing a version of propositional logic.

The nineteenth century was a watershed for logic. In 1854 George Boole wrote The Laws of Thought, with a thorough algebraic study of propositional logic that is not far from modern presentations. In 1879 Gottlob Frege published his Begriffsschrift (Concept writing) which extends propositional logic with quantifiers and relations, and thus includes first-order logic. In fact, Frege's logical systems included higher-order logic as well, and more. In his Basic Laws of Arithmetic, Frege set out to show that all of arithmetic could be derived in his Begriffsschrift from purely logical assumptions. Unfortunately, these assumptions turned out to be inconsistent, as Russell showed in 1902. But setting aside the inconsistent axiom, Frege more or less invented modern logic singlehandedly, a startling achievement. Quantificational logic was also developed independently by algebraically-minded thinkers after Boole, including Peirce and Schröder.

Let us now turn to developments in the foundations of mathematics. Of course, since logic plays an important role in mathematics, there is a good deal of interaction with the developments just described. For example, Frege developed his logic with the explicit purpose of showing that all of mathematics could be based solely on his logical framework; in particular, he wished to show that mathematics consists of a priori analytic truths instead of, as Kant had maintained, a priori synthetic ones.

Many take the birth of mathematics proper to have occurred with the Greeks. Euclid's Elements, written around 300 B.C., is already a mature representative of Greek mathematics, with its emphasis on rigor and precision. The definitions and proofs in Euclid's Elements survive more or less intact in high school geometry textbooks today (to the extent that geometry is still taught in high schools). This model of mathematical reasoning has been held to be a paradigm for rigorous argumentation not only in mathematics but in branches of philosophy as well. (Spinoza even presented moral and religious arguments in the Euclidean style, which is strange to see!)

Calculus was invented by Newton and Leibniz in the seventeenth century. (A fierce priority dispute raged for centuries, but most scholars today hold that the two developments were for the most part independent.) Calculus involves reasoning about, for example, infinite sums of infinitely small quantities; these features fueled criticism by Bishop Berkeley, who argued that belief in God was no less rational than the mathematics of his time. The methods of calculus were widely used in the eighteenth century, for example by Leonhard Euler, who used calculations involving infinite sums with dramatic results.

In the nineteenth century, mathematicians tried to address Berkeley's criticisms by putting calculus on a firmer foundation. Efforts by Cauchy, Weierstrass, Bolzano, and others led to our contemporary definitions of limits, continuity, differentiation, and integration in terms of “epsilons and deltas,” in other words, devoid of any reference to infinitesimals. Later in the century, mathematicians tried to push further, and explain all aspects of calculus, including the real numbers themselves, in terms of the natural numbers. (Kronecker: “God created the whole numbers, all else is the work of man.”) In 1872, Dedekind wrote “Continuity and the irrational numbers,” where he showed how to “construct” the real numbers as sets of rational numbers (which, as you know, can be viewed as pairs of natural numbers); in 1888 he wrote “Was sind und was sollen die Zahlen” (roughly, “What are the natural numbers, and what should they be?”) which aimed to explain the natural numbers in purely “logical” terms. In 1887 Kronecker wrote “Über den Zahlbegriff” (“On the concept of number”) where he spoke of representing all mathematical objects in terms of the integers; in 1889 Giuseppe Peano gave formal, symbolic axioms for the natural numbers.

The end of the nineteenth century also brought a new boldness in dealing with the infinite. Before then, infinitary objects and structures (like the set of natural numbers) were treated gingerly; “infinitely many” was understood as “as many as you want,” and “approaches in the limit” was understood as “gets as close as you want.” But Georg Cantor showed that it was possible to take the infinite at face value. Work by Cantor, Dedekind, and others helped to introduce the general set-theoretic understanding of mathematics that is now widely accepted.

This brings us to twentieth century developments in logic and foundations. In 1902 Russell discovered the paradox in Frege's logical system. In 1904 Zermelo proved Cantor's well-ordering principle, using the so-called “axiom of choice”; the legitimacy of this axiom prompted a good deal of debate. Between 1910 and 1913 the three volumes of Russell and Whitehead's Principia Mathematica appeared, extending the Fregean program of establishing mathematics on logical grounds. Unfortunately, Russell and Whitehead were forced to adopt two principles that seemed hard to justify as purely logical: an axiom of infinity and an axiom of “reducibility.” In the 1900's Poincaré criticized the use of “impredicative definitions” in mathematics, and in the 1910's Brouwer began proposing to refound all of mathematics on an “intuitionistic” basis, which avoided the use of the law of the excluded middle (A¬A!A \lor \lnot !Asource).

Strange days indeed! The program of reducing all of mathematics to logic is now referred to as “logicism,” and is commonly viewed as having failed, due to the difficulties mentioned above. The program of developing mathematics in terms of intuitionistic mental constructions is called “intuitionism,” and is viewed as posing overly severe restrictions on everyday mathematics. Around the turn of the century, David Hilbert, one of the most influential mathematicians of all time, was a strong supporter of the new, abstract methods introduced by Cantor and Dedekind: “no one will drive us from the paradise that Cantor has created for us.” At the same time, he was sensitive to foundational criticisms of these new methods (oddly enough, now called “classical”). He proposed a way of having one's cake and eating it too:

  1. Represent classical methods with formal axioms and rules; represent mathematical questions as formulas in an axiomatic system.

  2. Use safe, “finitary” methods to prove that these formal deductive systems are consistent.

Hilbert's work went a long way toward accomplishing the first goal. In 1899, he had done this for geometry in his celebrated book Foundations of geometry. In subsequent years, he and a number of his students and collaborators worked on other areas of mathematics to do what Hilbert had done for geometry. Hilbert himself gave axiom systems for arithmetic and analysis. Zermelo gave an axiomatization of set theory, which was expanded on by Fraenkel, Skolem, von Neumann, and others. By the mid-1920s, there were two approaches that laid claim to the title of an axiomatization of “all” of mathematics, the Principia mathematica of Russell and Whitehead, and what came to be known as Zermelo--Fraenkel set theory.

In 1921, Hilbert set out on a research project to establish the goal of proving these systems to be consistent. He was aided in this project by several of his students, in particular Bernays, Ackermann, and later Gentzen. The basic idea for accomplishing this goal was to cast the question of the possibility of a derivation of an inconsistency in mathematics as a combinatorial problem about possible sequences of symbols, namely possible sequences of sentences which meet the criterion of being a correct derivation of, say, A¬A!A \land \lnot !Asource from the axioms of an axiom system for arithmetic, analysis, or set theory. A proof of the impossibility of such a sequence of symbols would---since it is itself a mathematical proof---be formalizable in these axiomatic systems. In other words, there would be some sentence Con\OConsource which states that, say, arithmetic is consistent. Moreover, this sentence should be provable in the systems in question, especially if its proof requires only very restricted, “finitary” means.

The second aim, that the axiom systems developed would settle every mathematical question, can be made precise in two ways. In one way, we can formulate it as follows: For any sentence A!Asource in the language of an axiom system for mathematics, either A!Asource or ¬A\lnot !Asource is provable from the axioms. If this were true, then there would be no sentences which can neither be proved nor refuted on the basis of the axioms, no questions which the axioms do not settle. An axiom system with this property is called complete. Of course, for any given sentence it might still be a difficult task to determine which of the two alternatives holds. But in principle there should be a method to do so. In fact, for the axiom and derivation systems considered by Hilbert, completeness would imply that such a method exists---although Hilbert did not realize this. The second way to interpret the question would be this stronger requirement: that there be a mechanical, computational method which would determine, for a given sentence A!Asource, whether it is derivable from the axioms or not.

In 1931, Godel proved the two incompleteness theorems, which showed that Hilbert's program could not succeed: no consistent, effectively axiomatized system strong enough for the intended mathematics is complete. A Godel sentence is undecidable under the first theorem's hypotheses, while the second theorem says that a suitably strong consistent system cannot prove its own formal consistency statement.

This struck a lethal blow to Hilbert's original program. However, as is so often the case in mathematics, it also opened up exciting new avenues for research. If there is no one, all-encompassing formal system of mathematics, it makes sense to develop more circumscribed systems and investigate what can be proved in them. It also makes sense to develop less restricted methods of proof for establishing the consistency of these systems, and to find ways to measure how hard it is to prove their consistency. Since Gödel showed that (almost) every formal system has questions it cannot settle, it makes sense to look for “interesting” questions a given formal system cannot settle, and to figure out how strong a formal system has to be to settle them. To the present day, logicians have been pursuing these questions in a new mathematical discipline, the theory of proofs.

Source file content/incompleteness/introduction/definitions.tex

Definitions

In order to carry out Hilbert's project of formalizing mathematics and showing that such a formalization is consistent and complete, the first order of business would be that of picking a language, logical framework, and a system of axioms. For our purposes, let us suppose that mathematics can be formalized in a first-order language, i.e., that there is some set of constant symbols, function symbols, and predicate symbols which, together with the connectives and quantifiers of first-order logic, allow us to express the claims of mathematics. Most people agree that such a language exists: the language of set theory, in which \insource is the only non-logical symbol. That such a simple language is so expressive is of course a very implausible claim at first sight, and it took a lot of work to establish that practically all of mathematics can be expressed in this very austere vocabulary. To keep things simple, for now, let's restrict our discussion to arithmetic, so the part of mathematics that just deals with the natural numbers \Natsource. The natural language in which to express facts of arithmetic is LA\Lang L_Asource. LA\Lang L_Asource contains a single two-place predicate symbol <<source, a single constant symbol 0\Obj 0source, one one-place function symbol \primesource, and two two-place function symbols ++source and ×\timessource.

Introduction to incompleteness definition

A set of sentences Γ\Gammasource is a theory if it is closed under entailment, i.e., if Γ={A:ΓA}\Gamma = \Setabs{!A}{\Gamma \Entails !A}source.

There are two easy ways to specify theories. One is as the set of sentences true in some structure. For instance, consider the structure for LA\Lang L_Asource in which the domain is \Natsource and all non-logical symbols are interpreted as you would expect.

Introduction to incompleteness definition

The standard model of arithmetic is the structure N\Struct Nsource defined as follows:

  1. |N|=\Domain N = \Natsource

  2. 0N=0\Assign{\Obj 0}{N} = 0source

  3. N(n)=n+1\Assign{\Obj \prime}{N}(n) = n + 1source for all nn \in \Natsource

  4. +N(n,m)=n+m\Assign{\Obj +}{N}(n, m) = n + msource for all n,mn, m \in \Natsource

  5. ×N(n,m)=n·m\Assign{\Obj \times}{N}(n, m) = n\cdot msource for all n,mn, m \in \Natsource

  6. <N={n,m:n,m,n<m}\Assign{\Obj <}{N} = \Setabs{\tuple{n, m}}{n \in \Nat, m \in \Nat, n < m}source

Note the difference between `×\timessource' and `·\cdotsource': ×\timessource is a symbol in the language of arithmetic. Of course, we've chosen it to remind us of multiplication, but ×\timessource is not the multiplication operation but a two-place function symbol (officially, f21\Obj f^2_1source). By contrast, ·\cdotsource is the ordinary multiplication function. When you see something like n·mn \cdot msource, we mean the product of the numbers nnsource and mmsource; when you see something like x×yx \times ysource we are talking about a term in the language of arithmetic. In the standard model, the function symbol ×\timessource is interpreted as the function ·\cdotsource on the natural numbers. For addition, we use ++source as both the function symbol of the language of arithmetic, and the addition function on the natural numbers. Here you have to use the context to determine what is meant.

Introduction to incompleteness definition

The theory of true arithmetic is the set of sentences satisfied in the standard model of arithmetic, i.e.,

TA={A:NA}\Th{TA} = \Setabs{!A}{\Sat{N}{!A}}source

TA\Th{TA}source is a theory, for whenever TAA\Th{TA} \Entails !Asource, A!Asource is satisfied in every structure which satisfies TA\Th{TA}source. Since NTA\Sat{N}{\Th{TA}}source, we have that NA\Sat{N}{!A}source, and so ATA!A \in \Th{TA}source.

The other way to specify a theory Γ\Gammasource is as the set of sentences entailed by some set of sentences Γ0\Gamma_0source. In that case, Γ\Gammasource is the “closure” of Γ0\Gamma_0source under entailment. Specifying a theory this way is only interesting if Γ0\Gamma_0source is explicitly specified, e.g., if the elements of Γ0\Gamma_0source are listed. At the very least, Γ0\Gamma_0source has to be decidable, i.e., there has to be a computable test for when a sentence counts as an element of Γ0\Gamma_0source or not. We call the sentences in Γ0\Gamma_0source axioms for Γ\Gammasource, and Γ\Gammasource axiomatized by Γ0\Gamma_0source.

Introduction to incompleteness definition

A theory Γ\Gammasource is axiomatized by Γ0\Gamma_0source iff

Γ={A:Γ0A}\Gamma = \Setabs{!A}{\Gamma_0 \Entails !A}source

Introduction to incompleteness definition

The theory Q\Th{Q}source axiomatized by the following sentences is known as “Robinson's Q\Th{Q}source” and is a very simple theory of arithmetic.

xy(x=yx=y)row label Q1x0xrow label Q2x(x=0yx=y)row label Q3x(x+0)=xrow label Q4xy(x+y)=(x+y)row label Q5x(x×0)=0row label Q6xy(x×y)=((x×y)+x)row label Q7xy(x<yz(z+x)=y)row label Q8& \lforall[x][\lforall[y][(\eq[x'][y'] \lif \eq[x][y])]] \tag{$!Q_1$}\\ & \lforall[x][\eq/[\Obj 0][x']] \tag{$!Q_2$}\\ & \lforall[x][(\eq[x][\Obj 0] \lor \lexists[y][\eq[x][y']])] \tag{$!Q_3$}\\ & \lforall[x][\eq[(x + \Obj 0)][x]] \tag{$!Q_4$}\\ & \lforall[x][\lforall[y][\eq[(x + y')][(x + y)']]] \tag{$!Q_5$}\\ & \lforall[x][\eq[(x \times \Obj 0)][\Obj 0]] \tag{$!Q_6$}\\ & \lforall[x][\lforall[y][\eq[(x \times y')][((x \times y) + x)]]] \tag{$!Q_7$}\\ & \lforall[x][\lforall[y][(x < y \liff \lexists[z][\eq[(z' + x)][y]])]] \tag{$!Q_8$}source

The set of sentences {Q1,,Q8}\{!Q_1, \dots, !Q_8\}source is the set of axioms of Q\Th{Q}source, so Q\Th{Q}source consists of all sentences entailed by them:

Q={A:{Q1,,Q8}A}\Th{Q} = \Setabs{!A}{\{!Q_1, \dots, !Q_8\} \Entails !A}source

Introduction to incompleteness definition

Suppose A(x)!A(x)source is a formula in LA\Lang L_Asource with free variables xxsource and y1y_1source, dots, yny_nsource. Then any sentence of the form

y1yn((A(0)x(A(x)A(x)))xA(x))\lforall[y_1][\dots\lforall[y_n][((!A(\Obj 0) \land \lforall[x][(!A(x) \lif !A(x'))]) \lif \lforall[x][!A(x)])]]source

is an instance of the induction schema.

Peano arithmetic PA\Th{PA}source is the theory axiomatized by the axioms of Q\Th{Q}source together with all instances of the induction schema.

Explain

Every instance of the induction schema is true in N\Struct{N}source. This is easiest to see if the formula A!Asource only has one free variable xxsource. Then A(x)!A(x)source defines a subset XAX_{!A}source of \Natsource in N\Struct{N}source. XAX_{!A}source is the set of all nn \in \Natsource such that N,sA(x)\Sat{N}{!A(x)}[s]source when s(x)=ns(x) = nsource. The corresponding instance of the induction schema is

((A(0)x(A(x)A(x)))xA(x))((!A(\Obj 0) \land \lforall[x][(!A(x) \lif !A(x'))]) \lif \lforall[x][!A(x)])source

If its antecedent is true in N\Struct{N}source, then 0XA0 \in X_{!A}source and, whenever nXAn \in X_{!A}source, so is n+1n+1source. Since 0XA0 \in X_{!A}source, we get 1XA1 \in X_{!A}source. With 1XA1 \in X_{!A}source we get 2XA2 \in X_{!A}source. And so on. So for every nn \in \Natsource, nXAn \in X_{!A}source. But this means that xA(x)\lforall[x][!A(x)]source is satisfied in N\Struct{N}source.

Both Q\Th{Q}source and PA\Th{PA}source are axiomatized theories. The big question is, how strong are they? For instance, can PA\Th{PA}source prove all the truths about \Natsource that can be expressed in LA\Lang L_Asource? Specifically, do the axioms of PA\Th{PA}source settle all the questions that can be formulated in LA\Lang L_Asource?

Another way to put this is to ask: Is PA=TA\Th{PA} = \Th{TA}source? TA\Th{TA}source obviously does prove (i.e., it includes) all the truths about \Natsource, and it settles all the questions that can be formulated in LA\Lang L_Asource, since if A!Asource is a sentence in LA\Lang L_Asource, then either NA\Sat{N}{!A}source or N¬A\Sat{N}{\lnot !A}source, and so either TAA\Th{TA} \Entails !Asource or TA¬A\Th{TA} \Entails \lnot !Asource. Call such a theory complete.

Introduction to incompleteness definition

A theory Γ\Gammasource is complete iff for every sentence A!Asource in its language, either ΓA\Gamma \Entails !Asource or Γ¬A\Gamma \Entails \lnot !Asource.

Explain

By the Completeness Theorem, ΓA\Gamma \Entails !Asource iff ΓA\Gamma \Proves !Asource, so Γ\Gammasource is complete iff for every sentence A!Asource in its language, either ΓA\Gamma \Proves !Asource or Γ¬A\Gamma \Proves \lnot !Asource.

Another question we are led to ask is this: Is there a computational procedure we can use to test if a sentence is in TA\Th{TA}source, in PA\Th{PA}source, or even just in Q\Th{Q}source? We can make this more precise by defining when a set (e.g., a set of sentences) is decidable.

Introduction to incompleteness definition

A set XXsource is decidable iff there is a computational procedure which on input xxsource returns 11source if xXx \in Xsource and 00source otherwise.

So our question becomes: Is TA\Th{TA}source (PA\Th{PA}source, Q\Th{Q}source) decidable?

The answer to all these questions will be: no. None of these theories are decidable. However, this phenomenon is not specific to these particular theories. In fact, any theory that satisfies certain conditions is subject to the same results. One of these conditions, which Q\Th{Q}source and PA\Th{PA}source satisfy, is that they are axiomatized by a decidable set of axioms.

Introduction to incompleteness definition

A theory is axiomatizable if it is axiomatized by a decidable set of axioms.

Introduction to incompleteness example

Any theory axiomatized by a finite set of sentences is axiomatizable, since any finite set is decidable. Thus, Q\Th{Q}source, for instance, is axiomatizable.

Schematically axiomatized theories like PA\Th{PA}source are also axiomatizable. For to test if B!Bsource is among the axioms of PA\Th{PA}source, i.e., to compute the function χX\Char{X}source where χX(B)=1\Char{X}(!B) = 1source if B!Bsource is an axiom of PA\Th{PA}source and =0= 0source otherwise, we can do the following: First, check if B!Bsource is one of the axioms of Q\Th{Q}source. If it is, the answer is “yes” and the value of χX(B)=1\Char{X}(!B) = 1source. If not, test if it is an instance of the induction schema. This can be done systematically; in this case, perhaps it's easiest to see that it can be done as follows: Any instance of the induction schema begins with a number of universal quantifiers, and then a sub-formula that is a conditional. The consequent of that conditional is xA(x,y1,,yn)\lforall[x][!A(x, y_1, \dots, y_n)]source where xxsource and y1y_1source, dots, yny_nsource are all the free variables of A!Asource and the initial quantifiers of B!Bsource bind the variables y1y_1source, dots, yny_nsource. Once we have extracted this A!Asource and checked that its free variables match the variables bound by the universal quantifiers at the front and x\lforall[x]source, we go on to check that the antecedent of the conditional matches

A(0,y1,,yn)x(A(x,y1,,yn)A(x,y1,,yn))!A(\Obj 0, y_1, \dots, y_n) \land \lforall[x][(!A(x, y_1, \dots, y_n) \lif !A(x', y_1, \dots, y_n))]source

Again, if it does, B!Bsource is an instance of the induction schema, and if it doesn't, B!Bsource isn't.

In answering this question---and the more general question of which theories are complete or decidable---it will be useful to consider also the following definition. Recall that a set XXsource is enumerable iff it is empty or if there is a surjective function f:Xf \colon \Nat \to Xsource. Such a function is called an enumeration of XXsource.

Introduction to incompleteness definition

A set XXsource is called computably enumerable (c.e. for short) iff it is empty or it has a computable enumeration.

In addition to axiomatizability, another condition on theories to which the incompleteness theorems apply will be that they are strong enough to prove basic facts about computable functions and decidable relations. By “basic facts,” we mean sentences which express what the values of computable functions are for each of their arguments. And by “strong enough” we mean that the theories in question count these sentences among their theorems. For instance, consider a prototypical computable function: addition. The value of ++source for arguments 22source and 33source is 55source, i.e., 2+3=52+3 = 5source. A sentence in the language of arithmetic that expresses that the value of ++source for arguments 22source and 33source is 55source is: (2¯+3¯)=5¯(\num{2} + \num{3}) = \num{5}source. And, e.g., Q\Th{Q}source proves this sentence. More generally, we would like there to be, for each computable function f(x1,x2)f(x_1, x_2)source a formula Af(x1,x2,y)!A_f(x_1, x_2, y)source in LA\Lang{L_A}source such that QAf(n1¯,n2¯,m¯)\Th{Q} \Proves !A_f(\num{n_1}, \num{n_2}, \num{m})source whenever f(n1,n2)=mf(n_1, n_2) = msource. In this way, Q\Th{Q}source proves that the value of ffsource for arguments n1n_1source, n2n_2source is mmsource. In fact, we require that it proves a bit more, namely that no other number is the value of ffsource for arguments n1n_1source, n2n_2source. And the same goes for decidable relations. This is made precise in the following two definitions.

Introduction to incompleteness definition

A formula A(x1,,xk,y)!A(x_1, \dots, x_k, y)source represents the function f:kf\colon \Nat^k \to \Natsource in Γ\Gammasource iff whenever f(n1,,nk)=mf(n_1, \dots, n_k) = msource, then

  1. ΓA(n1¯,,nk¯,m¯)\Gamma \Proves !A(\num{n_1}, \dots, \num{n_k}, \num{m})source, and

  2. Γy(A(n1¯,,nk¯,y)y=m¯)\Gamma \Proves \lforall[y](!A(\num{n_1}, \dots, \num{n_k}, y) \lif y = \num{m})source.

Introduction to incompleteness definition

A formula A(x1,,xk)!A(x_1, \dots, x_k)source represents the relation RkR \subseteq \Nat^ksource iff,

  1. whenever R(n1,,nk)R(n_1, \dots, n_k)source, ΓA(n1¯,,nk¯)\Gamma \Proves !A(\num{n_1}, \dots, \num{n_k})source, and

  2. whenever not R(n1,,nk)R(n_1, \dots, n_k)source, Γ¬A(n1¯,,nk¯)\Gamma \Proves \lnot !A(\num{n_1}, \dots, \num{n_k})source.

A theory is “strong enough” for the incompleteness theorems to apply if it represents all computable functions and all decidable relations. Q\Th{Q}source and its extensions satisfy this condition, but it will take us a while to establish this---it's a non-trivial fact about the kinds of things Q\Th{Q}source can prove, and it's hard to show because Q\Th{Q}source has only a few axioms from which we'll have to prove all these facts. However, Q\Th{Q}source is a very weak theory. So although it's hard to prove that Q\Th{Q}source represents all computable functions, most interesting theories are stronger than Q\Th{Q}source, i.e., prove more than Q\Th{Q}source does. And if Q\Th{Q}source proves something, any stronger theory does; since Q\Th{Q}source represents all computable functions, every stronger theory does. This means that many interesting theories meet this condition of the incompleteness theorems. So our hard work will pay off, since it shows that the incompleteness theorems apply to a wide range of theories. Certainly, any theory aiming to formalize “all of mathematics” must prove everything that Q\Th{Q}source proves, since it should at the very least be able to capture the results of elementary computations. So any theory that is a candidate for a theory of “all of mathematics” will be one to which the incompleteness theorems apply.

Source file content/incompleteness/introduction/overview.tex

Overview of Incompleteness Results

Hilbert expected that mathematics could be formalized in an axiomatizable theory which it would be possible to prove complete and decidable. Moreover, he aimed to prove the consistency of this theory with very weak, “finitary,” means, which would defend classical mathematics against the challenges of intuitionism. Gödel's incompleteness theorems showed that these goals cannot be achieved.

Gödel's first incompleteness theorem showed that a version of Russell and Whitehead's Principia Mathematica is not complete. But the proof was actually very general and applies to a wide variety of theories. This means that it wasn't just that Principia Mathematica did not manage to completely capture mathematics, but that no acceptable theory does. It took a while to isolate the features of theories that suffice for the incompleteness theorems to apply, and to generalize Gödel's proof to make it depend only on these features. But we are now in a position to state a very general version of the first incompleteness theorem for theories in the language LA\Lang L_Asource of arithmetic.

Introduction to incompleteness theorem

If Γ\Gammasource is a consistent and axiomatizable theory in LA\Lang L_Asource which represents all computable functions and decidable relations, then Γ\Gammasource is not complete.

To say that Γ\Gammasource is not complete is to say that for at least one sentence A!Asource, ΓA\Gamma \Proves/ !Asource and Γ¬A\Gamma \Proves/ \lnot !Asource. Such a sentence is called independent (of Γ\Gammasource). We can in fact relatively quickly prove that there must be independent sentences. But the power of Gödel's proof of the theorem lies in the fact that it exhibits a specific example of such an independent sentence. The intriguing construction produces a sentence GΓ!G_\Gammasource, called a Gödel sentence for Γ\Gammasource, which is unprovable because in Γ\Gammasource, GΓ!G_\Gammasource is equivalent to the claim that GΓ!G_\Gammasource is unprovable in Γ\Gammasource. It does so constructively, i.e., given an axiomatization of Γ\Gammasource and a description of the derivation system, the proof gives a method for actually writing down GΓ!G_\Gammasource.

The construction in Gödel's proof requires that we find a way to express in LA\Lang L_Asource the properties of and operations on terms and formulas of LA\Lang L_Asource itself. These include properties such as “A!Asource is a sentence,” “δ\deltasource is a derivation of A!Asource,” and operations such as A[t/x]\Subst{!A}{t}{x}source. This way must (a) express these properties and relations via a “coding” of symbols and sequences thereof (which is what terms, formulas, derivations, etc. are) as natural numbers (which is what LA\Lang L_Asource can talk about). It must (b) do this in such a way that Γ\Gammasource will prove the relevant facts, so we must show that these properties are coded by decidable properties of natural numbers and the operations correspond to computable functions on natural numbers. This is called “arithmetization of syntax.”

Before we investigate how syntax can be arithmetized, however, we will consider the condition that Γ\Gammasource is “strong enough,” i.e., represents all computable functions and decidable relations. This requires that we give a precise definition of “computable.” This can be done in a number of ways, e.g., via the model of Turing machines, or as those functions computable by programs in some general-purpose programming language. Since our aim is to represent these functions and relations in a theory in the language LA\Lang L_Asource, however, it is best to pick a simple definition of computability of just numerical functions. This is the notion of recursive function. So we will first discuss the recursive functions. We will then show that Q\Th{Q}source already represents all recursive functions and relations. This will allow us to apply the incompleteness theorem to specific theories such as Q\Th{Q}source and PA\Th{PA}source, since we will have established that these are examples of theories that are “strong enough.”

The end result of the arithmetization of syntax is a formula ProvΓ(x)\OProv[\Gamma](x)source which, via the coding of formulas as numbers, expresses provability from the axioms of Γ\Gammasource. Specifically, if A!Asource is coded by the number nnsource, and ΓA\Gamma \Proves !Asource, then ΓProvΓ(n¯)\Gamma \Proves \Prov[\Gamma](\num{n})source. This “provability predicate” for Γ\Gammasource allows us also to express, in a certain sense, the consistency of Γ\Gammasource as a sentence of LA\Lang L_Asource: let the “consistency statement” for Γ\Gammasource be the sentence ¬ProvΓ(n¯)\lnot \Prov[\Gamma](\num{n})source, where we take nnsource to be the code of a contradiction, e.g., of \lfalsesource. The second incompleteness theorem states that suitably strong, consistent axiomatizable theories also do not prove their own consistency statements. The conditions required for this theorem to apply are a bit more stringent than just that the theory represents all computable functions and decidable relations, but we will show that PA\Th{PA}source satisfies them.

Source file content/incompleteness/introduction/undecidability.tex

Undecidability and Incompleteness

Gödel's proof of the incompleteness theorems requires arithmetization of syntax. But even without that we can obtain some nice results just on the assumption that a theory represents all decidable relations. The proof is a diagonal argument similar to the proof of the undecidability of the halting problem.

Introduction to incompleteness theorem

If Γ\Gammasource is a consistent theory that represents every decidable relation, then Γ\Gammasource is not decidable.

Proof

Suppose Γ\Gammasource were decidable. We show that if Γ\Gammasource represents every decidable relation, it must be inconsistent.

Decidable properties (one-place relations) are represented by formulas with one free variable. Let A0(x)!A_0(x)source, A1(x)!A_1(x)source, dots, be a computable enumeration of all such formulas. Now consider the following set DD \subseteq \Natsource:

D={n:Γ¬An(n¯)}D = \Setabs{n}{\Gamma \Proves \lnot !A_n(\num{n})}source

The set DDsource is decidable, since we can test if nDn \in Dsource by first computing An(x)!A_n(x)source, and from this ¬An(n¯)\lnot !A_n(\num{n})source. Obviously, substituting the term n¯\num{n}source for every free occurrence of xxsource in An(x)!A_n(x)source and prefixing An(n¯)!A_n(\num{n})source by ¬\lnotsource is a mechanical matter. By assumption, Γ\Gammasource is decidable, so we can test if ¬An(n¯)Γ\lnot !A_n(\num{n}) \in \Gammasource. If it is, nDn \in Dsource, and if it isn't, nDn \notin Dsource. So DDsource is likewise decidable.

Since Γ\Gammasource represents all decidable properties, it represents DDsource. And the formulas which represent DDsource in Γ\Gammasource are all among A0(x)!A_0(x)source, A1(x)!A_1(x)source, dots. So let ddsource be a number such that Ad(x)!A_d(x)source represents DDsource in Γ\Gammasource. If dDd \notin Dsource, then, since Ad(x)!A_d(x)source represents DDsource, Γ¬Ad(d¯)\Gamma \Proves \lnot !A_d(\num{d})source. But that means that ddsource meets the defining condition of DDsource, and so dDd \in Dsource. This contradicts dDd \notin Dsource. So by indirect proof, dDd \in Dsource.

Since dDd \in Dsource, by the definition of DDsource, Γ¬Ad(d¯)\Gamma \Proves \lnot !A_d(\num{d})source. On the other hand, since Ad(x)!A_d(x)source represents DDsource in Γ\Gammasource, ΓAd(d¯)\Gamma \Proves !A_d(\num{d})source. Hence, Γ\Gammasource is inconsistent.

Explain

The preceding theorem shows that no consistent theory that represents all decidable relations can be decidable. We will show that Q\Th{Q}source does represent all decidable relations; this means that all theories that include Q\Th{Q}source, such as PA\Th{PA}source and TA\Th{TA}source, also do, and hence also are not decidable. (Since all these theories are true in the standard model, they are all consistent.)

We can also use this result to obtain a weak version of the first incompleteness theorem. Any theory that is axiomatizable and complete is decidable. Consistent theories that are axiomatizable and represent all decidable properties then cannot be complete.

Introduction to incompleteness theorem

If Γ\Gammasource is axiomatizable and complete it is decidable.

Proof

Any inconsistent theory is decidable, since inconsistent theories contain all sentences, so the answer to the question “is AΓ!A \in \Gammasource” is always “yes,” i.e., can be decided.

So suppose Γ\Gammasource is consistent, and furthermore is axiomatizable, and complete. Since Γ\Gammasource is axiomatizable, it is computably enumerable. For we can enumerate all the correct derivations from the axioms of Γ\Gammasource by a computable function. From a correct derivation we can compute the sentence it derives, and so together there is a computable function that enumerates all theorems of Γ\Gammasource. A sentence is a theorem of Γ\Gammasource iff ¬A\lnot !Asource is not a theorem, since Γ\Gammasource is consistent and complete. We can therefore decide if AΓ!A \in \Gammasource as follows. Enumerate all theorems of Γ\Gammasource. When A!Asource appears on this list, we know that ΓA\Gamma \Proves !Asource. When ¬A\lnot !Asource appears on this list, we know that ΓA\Gamma \Proves/ !Asource. Since Γ\Gammasource is complete, one of these cases eventually obtains, so the procedure eventually produces an answer.

Introduction to incompleteness corollary

If Γ\Gammasource is consistent, axiomatizable, and represents every decidable property, it is not complete.

Proof

If Γ\Gammasource were complete, it would be decidable by the previous theorem (since it is axiomatizable and consistent). But since Γ\Gammasource represents every decidable property, it is not decidable, by the first theorem.

Unsolved incompleteness exercise

Show that TA={A:NA}\Th{TA} = \Setabs{!A}{\Sat{N}{!A}}source is not axiomatizable. You may assume that TA\Th{TA}source represents all decidable properties.

Once we have established that, e.g., Q\Th{Q}source, represents all decidable properties, the corollary tells us that Q\Th{Q}source must be incomplete. However, its proof does not provide an example of an independent sentence; it merely shows that such a sentence must exist. For this, we have to arithmetize syntax and follow Gödel's original proof idea. And of course, we still have to show the first claim, namely that Q\Th{Q}source does, in fact, represent all decidable properties.

It should be noted that not every interesting theory is incomplete or undecidable. There are many theories that are sufficiently strong to describe interesting mathematical facts that do not satisfy the conditions of Gödel's result. For instance, Pres={ALA+:NA}\Th{Pres} = \Setabs{!A \in \Lang{L_{A^+}}}{\Sat{N}{!A}}source, the set of sentences of the language of arithmetic without ×\timessource true in the standard model, is both complete and decidable. This theory is called Presburger arithmetic, and proves all the truths about natural numbers that can be formulated just with 0\Obj{0}source, \primesource, and ++source.

Source disclosures