scieee AI-readable full text Open interactive document viewer

Repositorio Institucional de Documentos

Abstract

Tras un capítulo preliminar dedicado a la lógica proposicional y a la lógica de predicados, se intoduce el sistema formal de la aritmética de Peano. A continuación, se exponen las nociones de recursividad, expresabilidad de relaciones y representabilidad de funciones. Finalmente, se aborda la demostración del teorema de incompletitud de Gödel y se extraen del mismo algunas consecuencias. Sauras Altuzarra, Lorenzo; Gómez Ambrosi, Carlos

Full text

Gödel’s Incompleteness Theorem Final Degree Thesis In Mathematics Lorenzo Sauras Altuzarra 2015 Prologue Gödel’s Incompleteness Theorem is one of the greatest landmarks in the history of logic. It shows, by an ingenious arithmetization of the language and an extensive use of the idea of recursiveness, the existence of arithmetical sentences that can be neither proved nor refuted. This work is structured with the help of more or less intuitive questions, which will guide us along the proof of this theorem, and also through some of its fundamental consequences. Moreover, for the sake of clarity, we have highlighted the propositions with a blue stripe in the margin. The exposition is organized in four chapters: •The first chapter is a crash course in logic, which intends to present the essential concepts necessary for the understanding of what follows. •In the second chapter, Peano arithmetic is introduced, a formal system which will provide us with the framework for our discussion. •The third chapter is the most technical. We introduce in it our main tool, recursiveness. Also, the concept of an expressible relation and that of a representable function (which intuitevely can be described as the relations and functions over the natural numbers such that, when they hold, Peano arithmetic gives account of this fact), and it is proved that recursive relations are expressible and that recursive functions are representable. •The fourth and final chapter is without doubt the most interesting. Having introduced all the required notions in the previous chapters, we encode sentences about arithmetic as arithmetic sentences themselves by means of Gödel’s arithmetization, answering questions raised along the exposition, and allowing us to reach our main goal of proving Gödel’s Incompleteness Theorem. The first two chapters follow the lines of [Hamilton], while the last two follow those of [Mendelson]. I would like to thank professor Carlos Gómez Ambrosi for the direction of this work. His willingness and motivation have allowed to me to learn a lot. I would also like to give thanks to all the people who have encouraged me during my degree, and specially my mother, Esperanza, for her continuous support. I would like to dedicate this work to her. 2 Resumen en español (Summary in Spanish) Este trabajo está estructurado en cuatro capítulos: •El primer capítulo es un resumen de lógica, dividido a su vez en tres secciones: ◦La primera sección trata de lógica proposicional. Aunque no es estrictamente necesaria para la posterior exposición, se ha incluido pues permite una aproximación más intuitiva a nociones de mayor generalidad que se definirán a partir de la siguiente sección. El resultado más importante que se comenta aquí es el teorema de completitud de la lógica proposicional, que nos asegura cómo obtener las «verdades» de la lógica proposicional, llamadas tautologías, como teoremas formales, es decir, como cadenas de símbolos mecánicamente derivables a partir de ciertas cadenas especiales, los axiomas, mediante aplicaciones de reglas de inferencia. Además, mediante la introducción de las tablas de verdad, se evidencia la posibilidad de resolver algorítmicamente los problemas de la lógica proposicional. ◦En la segunda sección se presenta la lógica de predicados. Esta lógica supone una generalización de la proposicional, más sofisticada, ya que permite la posibilidad de cuantificar los objetos que intervienen en sus enunciados. El concepto esencial para dar una definición de veracidad será el concepto de modelo, que puede verse como una subteoría de la teoría de conjuntos en la que los teoremas formales de un sistema formal son verdaderos. Al igual que en la lógica proposicional, se muestra un teorema de completitud, el teorema de completitud de Gödel, referente esta vez a las «verdades» de la lógica de predicados, llamadas fórmulas lógicamente válidas, y con la certeza de este resultado, se construyen los llamados sistemas de primer orden. Sin embargo, se adelanta que aceptando la (razonable) definición de algoritmo conocida como tesis de Church, es imposible resolver algorítmicamente todos los problemas de la lógica de predicados, dando así respuesta negativa al célebre problema de la decisión. También se definen los fundamentales conceptos de consistencia (imposibilidad de que un enunciado y su negación sean simultáneamente teoremas) y completitud (inexistencia de sentencias indecidibles, es decir, sentencias que no pueden ser demostradas ni refutadas). Es especialmente interesante la caracterización de la consistencia que se enuncia, indicando que un sistema de primer orden es consistente si, y sólo si, posee un modelo. ◦En la tercera sección se definen los sistemas de primer orden con igualdad, que buscan plasmar formalmente la noción de igualdad. El mayor interés de la sección radica en la observación de que no todo modelo de un sistema de primer orden con igualdad interpreta exactamente la igualdad, sino sólo una relación de equivalencia. Los modelos que consiguen expresar la igualdad se denominan modelos normales, y se muestra una forma de determinarlos, supuesta la consistencia. •El segundo capítulo contiene la definición del sistema formal de la aritmética, que pretende servir como base para el análisis formal de la teoría de números. 3 4 Se comenta aquí la consistencia de dicho sistema formal y se demuestra que cumple una propiedad más fuerte, la ω-consistencia. Asegurada ya la consistencia, se define el modelo estándar. Además, se avanza el teorema de incompletitud de Gödel, que pone de manifiesto la existencia de sentencias indecidibles en la aritmética, y se demuestra la existencia de modelos normales para la aritmética esencialmente diferentes. •El tercer capítulo es el más técnico. Consta de tres secciones: ◦En la primera sección se definen las relaciones recursivas y las funciones recursivas, listando bastante de ellas, tanto porque serán herramienta esencial para demostrar los resultados del último capítulo, como porque su conocimiento puede ser útil en diversos campos de las matemáticas. ◦La segunda sección se centra en un tipo especial de recursión, la recursión completa, que también será necesaria para demostrar resultados posteriores. ◦En la tercera sección se definen los conceptos de relación expresable yfunción representable (que intuitivamente podemos describir como las relaciones y operaciones sobre números naturales tales que, al verificarse, inducen teoremas formales en el sistema formal de la aritmética), y se demuestra que las relaciones recursivas son expresables, así como que las las funciones recursivas son representables. •El cuarto capítulo da respuesta a varios interrogantes planteados durante el trabajo. Se halla segmentado en cuatro secciones: ◦La primera sección muestra la aritmetización de Gödel, que permite codificar proposiciones referentes a la consistencia y completitud de la aritmética como enunciados aritméticos. ◦En la segunda sección se procede a demostrar el teorema del punto fijo, un resultado técnico aunque muy llamativo, y el teorema de incompletitud de Gödel. ◦En la tercera sección se comenta otro resultado especialmente interesante, el Segundo Teorema de Gödel, que advierte de la imposibilidad de que la aritmética, por medio de la aritmetización de Gödel, pueda demostrar su propia consistencia. ◦Finalmente, en la cuarta sección, identificando la idea de «procedimiento algorítmico» con «procedimiento recursivo» (Tesis de Church), se evidencia la importancia de la recursividad, definiendo los conceptos de axiomatizabilidad recursiva y de decidibilidad recursiva, y se demuestra que la aritmética es recursivamente indecidible. Gödel’s Incompleteness Theorem Contents Prologue 2 Resumen en español (Summary in Spanish) 2 1 Preliminaries on logic 6 1.1 Propositionallogic .......................................... 6 1.2 Predicatelogic ............................................ 8 1.3 First-order systems with equality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2 Peano arithmetic 14 3 Recursiveness 17 3.1 Definitionsandexamples....................................... 17 3.2 Course-of-valuesrecursion...................................... 20 3.3 Expressibility and representability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 4 Gödel’s Incompleteness Theorem 25 4.1 Gödelnumbers ............................................ 25 4.2 Gödel’s Incompleteness Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 4.3 Gödel’sSecondTheorem....................................... 28 4.4 Church’sThesis............................................ 29 Bibliography 31 5 Chapter 1 Preliminaries on logic It is well-known that set theory is the set of theorems about sets, like arithmetic is the set of theorems about numbers, but... Is there any mathematical theory which is the set of theorems about theorems? Yes, such theory is logic. We begin its study by introducing its very beginnings, namely propositional logic. 1.1 Propositional logic First, we define statement variables as letters which stand for arbitrary and unspecified statements, but always under the assumption that they are either true or false. Given a statement variable p,¬pstands for the negation of p, and it should be intuitively acceptable that ¬pis true iff pis false. We can describe the situation by a truth table (the value T is assigned to a statement variable if the statement it stands for is true, and F otherwise): p¬p F T T F Other connectives can be considered similarly: Conjunction symbol:∧ Disjunction symbol:∨ Conditional symbol:→ Biconditional symbol:↔ Interpretation p∧qstands for «Pand Q» p∨qstands for «Por Q» p→qstands for «If Pthen Q» p↔qstands for «Pif and only if Q» Truth table p q p ∧q F F F F T F T F F T T T p q p ∨q F F F F T T T F T T T T p q p →q F F T F T T T F F T T T p q p ↔q F F T F T F T F F T T T Notice that connectives determine truth functions, whose graph is determined by the truth table. Astatement form is a string of symbols inductively defined by the following rules: 1 1Logic’s concepts, in particular inductive definitions, can be re-stated in terms of algebraic structures. An excellent introduction to algebraic logic can be found in [Amor] (in Spanish), and for further reading we refer the reader to [Burris & Sankappanavar] and [Rasiowa]. 6 1.1. PROPOSITIONAL LOGIC 7 1. Every statement variable is a statement form. 2. Given statement forms αand β,¬α,α∧β,α∨β,α→βand α↔βare statement forms. 3. The set of statement forms is generated by rules 1 and 2. For example, (p∧q)→ ¬(q∨r)is a statement form. Two statement forms αand βare logically equivalent, in whose case we use the notation α≡β, iff they represent the same truth function, i.e. iff the last column of their truth tables is the same. For example: •Principle of double negation:¬¬p≡p. •De Morgan’s laws: ◦ ¬(p∧q)≡ ¬p∨ ¬q. ◦ ¬(p∨q)≡ ¬p∧ ¬q. •Every statement form is logically equivalent to one in which only the negation and conditional symbols occur, since: ◦p∧q≡ ¬(p→ ¬q). ◦p∨q≡ ¬p→q. ◦p↔q≡ ¬((p→q)→ ¬(q→p)). A statement form is a tautology iff its corresponding truth function takes only the value T, i.e. iff the last column of its truth table contains only T’s. For example, q→(¬p→q)is a tautology: p q ¬p p →q¬p→(p→q) F F T T T F T T T T T F F F T T T F T T Notice that, given statement forms αand β,α≡βiff α↔βis a tautology. For example, ¬¬p↔pis a tautology. «Tautology» is the central notion of propositional logic, since tautologies are the «truths» of propositional logic. For example, the law of excluded middle can be stated by saying that p∨ ¬pis a tautology. Is it possible to find an algorithm that decides if a statement form is a tautology? Yes, it suffices to write its truth table and check whether the last column contains only T’s. Is it possible to obtain all the «truths» of propositional logic (tautologies) as formal theorems, i.e. as strings of symbols mechanically derivable from some distinghished strings (called axioms) by means of certain rules? The answer to this question is yes, as it will be made apparent at the end of this section. But first, we need to formalize some of the previous ideas. Well-formed formulas (wffs), inductively defined by the following rules: 1. Every statement variable is a wff. 2. Given wffs αand β,¬αand α→βare wffs. 3. The set of wffs is generated by rules 1 and 2. Aformal system, consists of a non-empty set of wffs, called axioms, and a set of partial operations over the set of wffs, called inference rules. Next, we introduce the formal system Lin the following way: •Its axioms are defined by the following rules: 1. Given wffs αand β,α→(β→α)is an axiom. Lorenzo Sauras Altuzarra 8CHAPTER 1. PRELIMINARIES ON LOGIC 2. Given wffs α, β, γ,(α→(β→γ)) →((α→β)→(α→γ)) is an axiom. 3. Given wffs αand β,(¬α→ ¬β)→(β→α)is an axiom. •Its only inference rule is modus ponens (MP): for every α, β ∈L, it associates αand α→βwith β. Given wffs α1, ..., αnof L,αnis a theorem of Land hα1, ..., αniis a proof of αnin Liff, for every i∈ {1, ..., n},αiis an axiom or αifollows by MP from previous components of the sequence. For example, for every wffs αand βof L,¬α→(α→β)is a theorem of L: (1) ¬α→(¬β→ ¬α)(L1) (2) (¬β→ ¬α)→(α→β)(L3) (3) ((¬β→ ¬α)→(α→β)) →(¬α→((¬β→ ¬α)→(α→β))) (L1) (4) ¬α→((¬β→ ¬α)→(α→β)) MP(2,3) (5) (¬α→((¬β→ ¬α)→(α→β))) →((¬α→(¬β→ ¬α)) →(¬α→(α→β))) (L2) (6) (¬α→(¬β→ ¬α)) →(¬α→(α→β)) MP(4,5) (7) ¬α→(α→β)MP(1,6) We can finally state the completeness theorem for propositional logic: the tautologies are precisely the theorems of L(for the proof, see Propositions 2.14 and 2.23 of [Hamilton]). Is it possible to go deeper in logic, expressing formally the intuitive idea of quantification? Yes, and this gives rise to a new subtheory, called predicate logic. 1.2 Predicate logic Now we build a more sophisticated language, one capable of quantifying the objects involved in its statements. In order to do that, we introduce: •The symbol ∀, called the universal quantifier and read «for all». •For any m∈N+, the symbol cm, called the m-th constant. •For any m, n ∈N+, the symbol fn m, called the m-th n-ary function letter. •For any m, n ∈N+, the symbol An m, called the m-th n-ary predicate letter. •Terms, inductively defined by the following rules: 1. Every constant is a term. 2. Every variable is a term. 3. Given terms t1, ..., tn,fn m(t1, ..., tn)is a term. 4. The set of terms is generated by rules 1, 2 and 3. For example, f1 1(f2 2(x1, f3 1(c1, c1, x5))) is a term. •Atomic formulas, which are those of the form An m(t1, ..., tn), where t1, ..., tnare terms. •Well-formed formulas (wffs), inductively defined by the following rules: 1. Every atomic formula is a wff. 2. Given wffs αand β,∀xmα,¬αand α→βare wffs. 3. The set of wffs is generated by rules 1 and 2. Then, some useful notations are introduced: • ¬(α→ ¬β)is denoted by α∧β. • ¬α→βis denoted by α∨β. • ¬((α→β)→ ¬(β→α)) is denoted by α↔β. • ¬∀ xm¬αis denoted by ∃xmα.∃is called the existential quantifier and read «there is». Given Σ⊆ {cm, An m, fn m}m,n∈N+such that there is at least one predicate letter contained in Σ(Σis called an alphabet), {αwff |for every s∈ {cm, An m, fn m}m,n∈N+such that soccurs in α, s ∈Σ}is called first-order language on Σ, and is denoted by LΣ. Nevertheless, in most of our work we shall not need to specify which alphabet we are using, so we will denote the language simply by L. Gödel’s Incompleteness Theorem 1.2. PREDICATE LOGIC 9 Given a wff a1· · · ar(written as a string of symbols) and j∈ {1, ..., r},xmoccurs free at the jth position of a1· · · ariff xmoccurs without quantification in the j-th position, i.e. iff: •ajis xm. •There are not i, k ∈ {1, ..., r}such that: ◦i < j < k. ◦aiis ∀. ◦ai+1 is xm. ◦xmoccurs in ai· · · ak. ◦ai· · · akis a wff. For example, x2occurs free in the 8th position of ∀x1(A2 1(x1, x2)→ ∀ x3∀x1∀x2A2 1(x1, x2)) (commas are counted), and in this wff there are no more free occurrences of any variable. A wff in which no variable occurs free is called a sentence. Given α∈L, the closure of αis the sentence obtained by prefixing with universal quantifiers those variables, in order of descending subscripts, that occur free in some position of α. For example, the closure of A2 1(x2, x5)→ ¬∀ x2A3 1(x1, x2, x3)is ∀x5∀x3∀x2∀x1(A2 1(x2, x5)→ ¬∀ x2A3 1(x1, x2, x3)). Now we proceed to define the concept of truth, «translating» wffs into propositions about sets: •An interpretation Iof Lconsists of: ◦A nonempty set DI, called the domain of I. ◦A function CIsuch that, for every constant cmof L2,CI(cm)∈DI. ◦A function FIsuch that, for every function letter fn mof L,FI(fn m)is an n-ary function over DI. ◦A function PIsuch that, for every predicate letter An mof L,PI(An m)is an n-ary relation over DI. •Given an interpretation I, a valuation of Iis a function vfrom the set of terms of Lto the set DI such that: ◦Given a constant cmof L,v(cm) = CI(cm). ◦Given a function letter fn mof Land t1, ..., tnterms of L, v(fn m(t1, ..., tn)) = FI(fn m)(v(t1), ..., v(tn)). A valuation assigns to each term in Lthe object in DIwhich is to be its interpretation, and assigns an element of DIto each of the variables xmof L. We can now define inductively what is meant for a wff to be true with respect to a given valuation: ◦Given a predicate letter An mof L,An m(t1, ..., tn)is v-true iff hv(t1), ..., v(tn)i ∈ PI(An m). ◦Given α∈L,¬αis v-true iff αis not v-true. ◦Given α, β ∈L,α→βis v-true iff ¬βor αare v-true. ◦Given α∈L,∀xmαis v-true iff, for every valuation wof Isuch that, for every M∈N+\{m}, w(xM) = v(xM),αis w-true. For example, let Σ := {c1, A2 1, f2 1, f2 2}and Ian interpretation such that DI=N+,CI(c1) = 0,PI(A2 1) is equality, FI(f2 1)is addition and FI(f2 2)is multiplication. ◦If vis a valuation such that v(x1)=2, v(x2)=6, v(x3) = 3 and v(x4)=4, A2 1(f2 1(x1, x2), f2 2(x3, x4)) is v-true, since 2·6=3·4. ◦If vis a valuation such that v(x1)=1, v(x2)=5, v(x3) = 4 and v(x4)=2, A2 1(f2 1(x1, x2), f2 2(x3, x4)) is not v-true, since 1·56= 4 ·2. ◦Let vbe a valuation such that v(x1)=0. Hence, A2 1(x1, c1)is v-true. Let wbe a valuation such that, for every M∈N+\{1},w(xM) = v(xM)but w(x1)6=v(x1). Hence, A2 1(x1, c1)is not w-true, since w(x1)6= 0. Therefore, ∀x1A2 1(x1, c1)is not v-true. •Finally, given an interpretation Iand α∈L, we define: ◦αis true in Iiff, for every valuation vof I,αis v-true. ◦αis false in Iiff there is no valuation vof Isuch that αis v-true. For example, let Σ := {A2 1, f2 1}, let αbe to ∀x1∀x2∃x3A2 1(f2 1(x1, x3), x2): 2That is, more formally, such that cm∈Σ. Lorenzo Sauras Altuzarra 16 CHAPTER 2. PEANO ARITHMETIC ◦αcontains (at least) one free occurrence of x1. ◦Given n∈N,`PA ¬αx1 n. ◦ `PA ∃x1α. •Thus, for every n∈N,¬αx1 nis true in I. •Hence, ∀x1¬αis true in I. •But ∃x1α, i.e. ¬∀ x1¬αis also true in I. Impossible, since a wff is false iff its negation is true. •So PA is ω-consistent.  Gödel’s Incompleteness Theorem Chapter 3 Recursiveness The main purpose of this chapter is to answer a more technical question. What relations over the natural numbers are such that, when they hold, there is a theorem of PA that gives account of this fact? Certain relations, called recursive relations, are characterized (as we will see in the last section of this chapter) by satisfying this sort of property. 3.1 Definitions and examples Anumber-theoretic relation of karguments is a subset of Nk, and a number-theoretic function of karguments is an operation from Nkto N. Arecursive function is a number-theoretic function inductively defined by the following rules: 1. The zero function,Z(n) := 0, is recursive. 2. The successor function,S(n) := n+ 1, is recursive. 3. Given i∈ {1, ..., k}, the ith projection function of karguments, Pk i(n1, ..., nk) := ni, is recursive. 4. (Substitution Rule) Given recursive functions g(n1, ..., ni), h1(n1, ..., nk), ..., hi(n1, ..., nk), g(h1(n1, ..., nk), ..., hi(n1, ..., nk)) is recursive. 5. (Recursion Rule) Given recursive functions g(n1, ..., nk)and h(n1, ..., nk+2), is also recursive the function f:Nk+1 −→ N. hn1, ..., nk,0i 7−→ g(n1, ..., nk) hn1, ..., nk, n + 1i 7−→ h(n1, ..., nk, n, f(n1, ..., nk, n)) Here, we allow n= 0, in which case we have that the function f:N−→ Nis recursive. 07−→ g(0) n+ 1 7−→ h(n, f(n)) 6. Given a recursive function g(n1, ..., nk+1)such that, for every n1, ..., nk∈N, there is an m∈Nsuch that g(n1, ..., nk, m) = 0, the µ-operator µg(n1, ..., nk) := min({m∈N|g(n1, ..., nk, m) = 0}), is recursive. 7. The set of recursive functions is generated by rules 1 to 6. Notice that, given a recursive function g(n1, ..., nk),g(Pr j1(n1, ..., nr), ..., Pr jk(n1, ..., nr)) is recursive, by the Substitution Rule. This gives certain freedom to define new number-theoretic functions, for example: •(Adding dummy variables) Given a recursive function g(m, n),f(m, n, p) := g(m, p)is recursive. •(Permuting variables) Given a recursive function g(m, n, p),f(m, n, p) := g(p, m, n)is recursive. •(Identifying variables) Given a recursive function g(m, n, p),f(m, n) := g(n, m, m)is recursive. 17 18 CHAPTER 3. RECURSIVENESS Now we give a list of recursive functions, that will be needed in the sequel: 1. m+n 2. m·n 3. m˙ −n:= m−nif m⩾n 0if m<n  4. |m−n|:= m−nif m⩾n n−mif m<n  5. sg(n) := 1if n > 0 0if n= 0  6. sg(n) := 0if n > 0 1if n= 0  7. n! 8. min{n1, ..., nk} 9. max{n1, ..., nk} 10. qt(m, n) := max{q∈N|n−q·m > 0} 11. rm(m, n) := n−qt(m, n)·m 12. τ(n) := 1if n= 0 #{m∈N+|m|n}otherwise  Proof (We only prove some of them, in order to give an idea, for the rest of the proof see Proposition 3.15 of [Mendelson]). 1. + : N2−→ N hm, 0i 7−→ P1 1(m) hm, n + 1i 7−→ S(P3 3(m, n, m +n)) 2. ·:N2−→ N hm, 0i 7−→ Z(m) hm, n + 1i 7−→ P3 3(m, n, m ·n) + P3 1(m, n, m ·n) 7. Let f(n) := n! f:N−→ N 07−→ 1 n+ 1 7−→ (n+ 1) ·f(n) 12. τ(n) = P m<n+1 (sg(rm(m, n)))  The so-called bounded sums and bounded products are also recursive: 1. If k > 1, for every recursive function f(n1, ..., nk)and p∈N: (a) P m<p (f(n1, ..., nk−1, m)) := 0if p= 0 f(n1, ..., nk−1,0) + ... +f(n1, ..., nk−1, p −1) if p > 0 (b) Q m<p (f(n1, ..., nk−1, m)) := 0if p= 0 f(n1, ..., nk−1,0) ·... ·f(n1, ..., nk−1, p −1) if p > 0 2. Given a recursive function f(n)and p∈N: (a) P m<p (f(m)) := 0if p= 0 f(0) + ... +f(p−1) if p > 0 (b) Q m<p (f(m)) := 0if p= 0 f(0) ·... ·f(p−1) if p > 0 Proof (We only prove one of them, in order to give an idea, for the rest of the proof see Proposition 3.16 of [Mendelson]). Gödel’s Incompleteness Theorem 3.1. DEFINITIONS AND EXAMPLES 19 Let g(n1, ..., nk−1, p) := P m<p (f(n1, ..., nk−1, m)). g:Nk−→ N hn1, ..., nk−1,0i 7−→ 0 hn1, ..., nk−1, p + 1i 7−→ g(n1, ..., nk−1, p) + f(n1, ..., nk−1, p)  The characteristic function of a number-theoretic relation A(n1, ..., nk)is defined by CA(n1, ..., nk) := 1if hn1, ..., nki/∈A 0if hn1, ..., nki ∈ A, and we define Ato be a recursive relation iff CAis a recursive function. For example: •=is recursive, since C=(m, n) = sg(|m−n|) •<is recursive, since C<(m, n) = sg(|n˙ −m|) • | is recursive, since C|(m, n) = sg(rm(m, n)) •Pr := {m∈N|mis prime}is recursive, since CPr(n) = sg(τ(n)˙ −2) + sg(|n−1|) + sg(|n−0|) Remember that nis prime iff it has exactly two divisors and is not equal to 0 or 1. Given a recursive relation A(n1, ..., nk)(see Proposition 3.17 of [Mendelson]): •For every recursive relation B(n1, ..., nk),A∪B,A∩B,Nk\Aare recursive, so from now on, we denote: ◦ hn1, ..., nki ∈ A∩Bby A(n1, ..., nk)∧B(n1, ..., nk). ◦ hn1, ..., nki ∈ A∪Bby A(n1, ..., nk)∨B(n1, ..., nk). ◦ hn1, ..., nki ∈ Nk\Aby ¬A(n1, ..., nk). •If k > 1: ◦ {hn1, ..., nk−1, mi ∈ Nk|for every p∈Nsuch that p < m, hn1, ..., nk−1, pi ∈ A}is recursive, so from now on, we denote that for every p∈Nsuch that p < m, hn1, ..., nk−1, pi ∈ Aby ∀pp<m A(n1, ..., nk−1, p). ◦ {hn1, ..., nk−1, mi ∈ Nk|there is p∈Nsuch that, if p<mhn1, ..., nk−1, pi ∈ A}is recursive, so from now on, we denote that there is p∈Nsuch that, if p<mhn1, ..., nk−1, pi ∈ Aby ∃pp<m A(n1, ..., nk−1, p). • {m∈N|for every p∈Nsuch that p < m, p ∈A}is recursive, so from now on, we denote that for every p∈Nsuch that p < m, p ∈Aby ∀pp<m A(p). • {m∈Nk|there is p∈Nsuch that, if p < m, p ∈A}is recursive, so from now on, we denote that there is p∈Nsuch that, if p < m p ∈Aby ∃pp<m A(p). The so-called bounded µ-operators are also recursive: given a number-theoretic relation A(n1, ..., nk) and p∈N, we denote: •If k > 1,µ mm<p A(n1, ..., nk−1, m) :=    min({m∈N| hn1, ..., nk−1, mi ∈ A})if there is m∈Nsuch that hn1, ..., nk, mi ∈ Aand m<p potherwise   .1 •If k= 1,µ mm<p A(m) :=    min(A)if there is m∈A such that m<p potherwise   . 1 Proof 1The value pis chosen in the second cases because it is more convenient in later proofs, but this choice has no intuitive significance. Lorenzo Sauras Altuzarra 20 CHAPTER 3. RECURSIVENESS •µ mm<p A(n1, ..., nk−1, m) = P m<p Q q<m+1 (CA(n1, ..., nk−1, q))!. •µ mm<p A(m) = P m<p Q q<m+1 (CA(q))!.  Every finite subset of Nis recursive (see Proposition 6.24 and example 6.25.aof [Hamilton]). Then, we continue listing useful recursive functions: 1. p(n), the n-th prime number. 2. l(n) :=    0if n= 0 1if n= 1 max({m∈N|p(m)|n})if n⩾2  . 3. Given i∈ {0, ..., l(n)},(n)i:=    0if n= 0 0if n= 1 max({m∈N|p(i)m|n})if n⩾2  . 4. m∗n:= m·Q i<l(n)+1 p(l(m) + i+ 1)(n)i. Notice that, for every m, n, p ∈N+,m∗(n∗p) = (m∗n)∗p, so there is no harm in this case in omitting parentheses when writing two of more applications of ∗. Proof 1. p:N−→ N. 07−→ 2 n+ 1 7−→ µ mm<p(n)!+2 (p(n)< m ∧Pr(m))2 2. l(n) = n˙ −µ mm<n+1 (p(n˙ −m)|n). 3. (n)i=µ mm<n (p(i)m|n∧p(i)m+1 -n). 4. Immediate.  3.2 Course-of-values recursion It is often convenient to define functions by a recursion in which the value of f(n1, ..., nk−1, p+1) depends not only upon f(n1, ..., nk−1, p)but also upon several or all values of f(n1, ..., nk−1, m), with m⩽p. This type of recursion is called a course-of-values recursion. Let f(n1, ..., nk)be a number-theoretic function, and f#(n1, ..., nk−1, p) := Q m<p p(m)f(n1,...,nk−1,m). Notice that f(n1, ..., nk−1, p) = (f#(n1, ..., nk−1, p + 1))p. Then (see Proposition 3.19 and corollary 3.20 of [Mendelson]): •For every recursive function h(n1, ..., nk+1)and a number-theoretic function f(n1, ..., nk)such that f(n1, ..., nk−1, p) = h(n1, ..., nk−1, p, f#(n1, ..., nk−1, p)),fis recursive. •For every number-theoretic relation A(n1, ..., nk)and recursive function h(n1, ..., nk+1)such that, for every n1, ..., nk−1, p ∈N,hn1, ..., nk, pi ∈ Aiff h(n1, ..., nk−1, p, CA#(n1, ..., nk−1, p)),Ais recursive. For example, let fbe the Fibonacci sequence. Then, f:N−→ N, i.e. f:N−→ N. 07−→ 1n7−→ sg(n) + sg(|n−1|) + sg(n˙ −1) ·((f#(n))n˙ −1+ (f#(n))n˙ −2) 2The bound is obtained from Euclid’s proof of the infinitude of primes. Gödel’s Incompleteness Theorem 3.3. EXPRESSIBILITY AND REPRESENTABILITY 21 17−→ 1 n+ 2 7−→ f(n) + f(n+ 1) Notice that, considering h:N2−→ N,f(n) = h(n, f#(n)), so fis recursive. hm, ni 7−→ sg(m) + sg(|m−1|) + sg(m˙ −1) ·((n)m˙ −1+ (n)m˙ −2) 3.3 Expressibility and representability A number-theoretic relation Aof karguments is expressible in PA iff there is a wff α(x1, ..., xk)of PA with precisely kfree variables such that, for any n1, ..., nk∈N, if α(n1, ..., nk)is the wff obtained by replacing in α(x1, ..., xk), for every i∈ {1, ..., k}, all the free occurrences of xiby ni: •If hn1, ..., nki ∈ A,`PA α(n1, ..., nk). •If hn1, ..., nki/∈A,`PA ¬α(n1, ..., nk). A number-theoretic function fof karguments is representable in PA iff there is a wff α(x1, ..., xk+1)of PA with precisely k+ 1 free variables such that, for any n1, ..., nk+1 ∈N: •If hn1, ..., nk+1i ∈ A,`PA α(n1, ..., nk+1). • `PA ∃!xk+1 α(n1, ..., nk, xk+1). Every recursive function is representable in PA.3 3 Proof •First, we need the following lemmas: ◦Lemma I (Gödel’s β-function) β(m, n, p) := rm(1 + (p+ 1) ·n, m)is representable in PA by the wff Bt(x1, ..., x4)defined as ∃w(x1= (1 + (x3+ 1) ·x2)·w+x4∧x4<1+(x3+ 1) ·x2). Proof ∗Let m, n, p, q ∈Nsuch that β(m, n, p) = q. ∗Then, there is r∈Nsuch that: ·m= (1 + (p+ 1) ·n)·r+q. ·q < 1+(p+ 1) ·n. ∗Hence, `PA (m= (1 + (p+ 1) ·n)·r+q)∧q < 1+(p+ 1) ·n). ∗Applying Rule E4, `PA Bt(m, n, p, q). ∗Finally, notice that `PA ∃!x4Bt(m, n, p, x4), by the «translation» to PA of Euclidean division given in Chapter 2.  ◦Lemma II For any sequence of natural numbers n0, ..., nk, there are b, c ∈Nsuch that, for every i∈ {0, ..., k}, β(b, c, i) = ni. Proof ∗Let j:= max{k, n0, ..., nk}and c:= j!. ∗Consider, for every i∈ {0, ..., k},ui:= 1 + (i+ 1) ·c. ∗Given h, i ∈ {0, ..., k}such that h6=i,uhand uiare relatively prime: ·Assume h<i, and suppose there is a prime number psuch that p|uhand p|ui. ·Then, p|ui−uh, i.e. p|(i−h)·c, hence, p|i−hor p|c. ·But if p|c, then p|uhand p|(h+ 1) ·c, i.e. p|1 + (h+ 1) ·cand p|(h+ 1) ·c, hence p|1, a contradiction. ·And notice that, if p|i−h, then p|c, since i−h⩽h⩽j, and so i−h|j! = c. ∗Also, for every i∈ {0, ..., k},ni⩽j⩽j! = c < 1+(i+ 1) ·c=ui. ∗Finally, by the Chinese Remainder Theorem, there is b∈Nsuch that b<u0·... ·ukand, for every i∈ {0, ..., k}, rm(ui, b) = ni, i.e. β(b, c, i) = rm(1 + (i+ 1) ·c, b) = ni.  3The converse is also true, see Proposition 3.28 of [Mendelson]. Lorenzo Sauras Altuzarra 22 CHAPTER 3. RECURSIVENESS ◦Lemma III For any wff αof PA and n∈N+,`PA (α(0) ∧... ∧α(n−1)) → ∀ x1(x1< n →α(x1)) (see Proposition 3.8 of [Mendelson]). • Z is representable in PA by x1=x1∧x2= 0: ◦ Z(n) = m⇒0 = m⇒ `PA n=n∧m= 0. ◦Given n∈N,`PA ∃!x2n=n∧x2= 0. • S is representable in PA by x2=x0 1: ◦ S(n) = m⇒n+ 1 = m⇒ `PA m=n0. ◦Given n∈N,`PA ∃!x2x2=n0. • Pk iis representable in PA by x1=x1∧... ∧xk=xk∧xk+1 =xi: ◦ Pk i(n1, ..., nk) = m⇒ni=m⇒ `PA n1=n1∧... ∧nk=nk∧m=ni. ◦Given n1, ..., nk∈N,`PA ∃!xk+1 n1=n1∧... ∧nk=nk∧xi+1 =ni. •The Substitution Rule does not lead out of the set of the representable functions. Let g(n1, ..., ni)be representable in PA by a wff β(x1, ..., xi+1), and h1(n1, ..., nk), ..., hi(n1, ..., nk)be representable in PA by wffs α1(x1, ..., xk+1), ..., αi(x1, ..., xk+1), respectively, and let f(n1, ..., nk) := g(h1(n1, ..., nk), ..., hi(n1, ..., nk)). Then fis representable in PA by the wff γ(x1, ..., xk+1)defined as ∃y1... ∃yi(α1(x1, ..., xk, y1)∧... ∧αi(x1, ..., xk, yi)∧β(y1, ..., yi, xk+1)). Indeed (let n1, ..., nk, m ∈Nsuch that f(n1, ..., nk) = m): ◦f(n1, ..., nk) = mrj:=hj(n1,...,nk) ⇒g(r1, ..., ri) = m g, h1, ..., hiare representable in PA by β, α1, ..., αi ⇒ `PA β(r1, ..., ri, m) `PA αj(n1, ..., nk, rj)Conjunction Introduction ⇒ `PA α1(n1, ..., nk, r1)∧... ∧αi(n1, ..., nk, ri)∧β(r1, ..., ri, m)Rule E4 ⇒ `PA ∃y1...∃yi(n1, ..., nk, y1)∧... ∧αi(n1, ..., nk, yi)∧β(y1, ..., yi, m)) ⇒ `PA γ(n1, ..., nk, m). ◦`PA γ(n1, ..., nk, xk+1) `PA γ(n1, ..., nk, xk+2)⇒ `PA ∃y1... ∃yi(α1(n1, ..., nk, y1)∧... ∧αi(n1, ..., nk, yi)∧β(y1, ..., yi, xk+1)) `PA ∃y1... ∃yi(α1(n1, ..., nk, y1)∧... ∧αi(n1, ..., nk, yi)∧β(y1, ..., yi, xk+2)) Rule C ⇒ For certain new constants b1, ..., bi, c1, ..., ci, `PA α1(n1, ..., nk, b1)∧... ∧αi(n1, ..., nk, bi)∧β(b1, ..., bi, xk+1) `PA α1(n1, ..., nk, c1)∧... ∧αi(n1, ..., nk, ci)∧β(c1, ..., ci, xk+2)Conjunction Elimination ⇒        `PA αj(n1, ..., nk, bj) `PA β(b1, ..., bi, xk+1) `PA αj(n1, ..., nk, cj) `PA β(c1, ..., ci, xk+2)        `PA ∃!xk+1 αj(n1, ..., nk, xk+1) (since hjis representable in PA by αj) ⇒ bj=cj=rj      `PA β(b1, ..., bi, xi+1) Axioms for equality `PA ∃!xi+1 β(x1, ..., xi+1) (since gis representable in PA by β)      ⇒xk+1 =xk+2 `PA ∃xk+1 γ(n1, ..., nk, xk+1) ⇒ `PA ∃!xk+1 γ(n1, ..., nk, xk+1). •The Recursion Rule does not lead out of the set of representable functions. Let g(n1, ..., nk)and h(n1, ..., nk, m, p)be representable in PA by wffs α(x1, ..., xk+1)and β(x1, ..., xk+3), respectively, and let f:Nk+1 −→ N. hn1, ..., nk,0i 7−→ g(n1, ..., nk) hn1, ..., nk, m + 1i 7−→ h(n1, ..., nk, m, f(n1, ..., nk, m)) We shall show that fis representable in PA by the following wff γ(x1, ..., xk+2): ∃u∃v(∃w(Bt(u, v, 0, w)∧α(x1, ..., xk, w)) ∧Bt(u, v, xk+1, xk+2)∧ ∀w(w < xk+1 → ∃ y∃z(Bt(u, v, w, y)∧Bt(u, v, w0, z)∧β(x1, ..., xk, w, y, z)))). Indeed (let n1, ..., nk, p, m ∈Nsuch that f(n1, ..., nk, p) = m): Gödel’s Incompleteness Theorem 3.3. EXPRESSIBILITY AND REPRESENTABILITY 23 ◦ `PA γ(n1, ..., nk, p, m): ∗Case p= 0 ·Lemma II ⇒There are b, c ∈Nsuch that β(b, c, 0) = mLemma I ⇒ `PA Bt(b, c, 0, m).[0] ·p= 0 ⇒m=f(n1, ..., nk,0) = g(n1, ..., nk)gis representable in PA by α ⇒ `PA α(n1, ..., nk, m) [0], Rule E4, Conjunction Introduction ⇒ `PA ∃w(Bt(b, c, 0, w)∧α(n1, ..., nk, w)).[1] · `PA ¬w < 0Gen for w ⇒ ∀w(w < 0→ ∃ y∃z(Bt(b, c, w, y)∧Bt(b, c, w0, z)∧β(n1, ..., nk, w, y, z))) [0], [1], Rule E4, Conjunction Introduction ⇒ `PA ∃u∃v(∃w(Bt(u, v, 0, w)∧α(n1, ..., nk, w)) ∧Bt(u, v, 0, m)∧ ∀w(w < 0→ ∃ y∃z(Bt(u, v, w, y)∧Bt(u, v, w0, z)∧β(n1, ..., nk, w, y, z)))) ⇒ `PA γ(n1, ..., nk,0, m). ∗Case p > 0 ·Given i∈ {0, ..., p},let ri:= f(n1, ..., nk, i). ·Lemma II ⇒there are b, c ∈Nsuch that for every i∈ {0, ..., p}β(b, c, i) = ri.[0] ·Lemma I [0] ⇒for every i∈ {0, ..., p} `PA Bt(b, c, i, ri).[1] ·[1] ⇒for every i∈ {0, ..., p −1} `PA Bt(b, c, i + 1, ri+1).[2] ·Given i∈ {0, ..., p −1}, ri+1 =f(n1, ..., nk, i + 1) = h(n1, ..., nk, i, f(n1, ..., nk, i)) = h(n1, ..., nk, i, ri)his representable in PA by β ⇒ for every i∈ {0, ..., p −1} `PA β(n1, ..., nk, i, ri, ri+1) [1], [2], Rule E4, Conjunction Introduction ⇒ for every i∈ {0, ..., p −1} `PA ∃y∃z(Bt(b, c, i, y)∧Bt(b, c, i + 1, z)∧β(n1, ..., nk, i, y, z)) Lemma III ⇒ for every i∈ {0, ..., p −1} `PA ∀w(w < p → ∃ y∃z(Bt(b, c, w, y)∧Bt(b, c, w0, z)∧β(n1, ..., nk, w, y, z))).[3] ·[0] ⇒β(b, c, p) = rp=f(n1, ..., nk, p) = mLemma I ⇒ `PA Bt(b, c, p, m).[4] ·r0=f(n1, ..., nk,0) = g(n1, ..., nk)gis representable in PA by α ⇒ `PA α(n1, ..., nk, r0) [1], Rule E4, Conjunction Introduction ⇒ `PA ∃w(Bt(b, c, 0, w)∧α(n1, ..., nk, w)) [3], [4], Rule E4, Conjunction Introduction ⇒ `PA ∃u∃v(∃wBt(u, v, 0, w)∧α(n1, ..., nk, w)) ∧Bt(u, v, p, m)∧ ∀w(w < p → ∃ y∃z(Bt(u, v, w, y)∧Bt(u, v, w0, z)∧β(n1, ..., nk, w, y, z)))) ⇒ `PA γ(n1, ..., nk, p, m). ◦We must show that `PA ∃!xk+2 γ(n1, ..., nk, p, xk+2). Notice that, by what we have proved above, it suffices to prove only uniqueness. We will do it by induction on p. ∗Case 0 Since γ(n1, ..., nk,0, xk+2)is ∃u∃v(∃w(Bt(u, v, 0, w)∧α(n1, ..., nk, w))∧Bt(u, v, 0, xk+2)∧ ∀w(w < 0→ ∃ y∃z(Bt(u, v, w, y)∧Bt(u, v, w0, z)∧β(n1, ..., nk, w, y, z)))), it suffices to prove uniqueness for ∃!xk+2 ∃u∃vBt(u, v, 0, xk+2), i.e. for ∃!xk+2 ∃u∃v∃w(u= (1 + v)·w+xk+2 ∧xk+2 <1 + v), that can be easily obtained from the «translation» to PA of Euclidean division given in Chapter 2. ∗Case p Induction hypothesis. [IH] ∗Case p+ 1 ·B:= f(n1, ..., nk, p)fis representable in PA by γ ⇒ `PA γ(n1, ..., nk, p, B).[0] Lorenzo Sauras Altuzarra 24 CHAPTER 3. RECURSIVENESS ·C:= f(n1, ..., nk, p + 1) B=f(n1,...,nk,p) =h(n1, ..., nk, p, B)his representable in PA by β ⇒ `PA β(n1, ..., nk, p, B, C).[1] ·C=f(n1, ..., nk, p + 1) fis representable in PA by γ ⇒ `PA γ(n1, ...nk, p + 1, C). ·Assume `PA γ(n1, ..., nk, p + 1, xk+2). We must prove xk+2 =C. ·Applying Rule C and Conjunction Elimination to `PA γ(n1, ..., nk, p + 1, xk+2), we have that, for certain new constants band c:  `PA ∃w(Bt(b, c, 0, w)∧α(n1, ..., nk, w)).[2]  `PA Bt(b, c, p + 1, xk+2).[3]  `PA ∀w(w < p + 1 → ∃ y∃z(Bt(b, c, w, y)∧Bt(b, c, w0, z)∧β(n1, ..., nk, w, y, z))).[4] ·[4] (K4), MP ⇒ `PA ∃y∃z(Bt(b, c, p, y)∧Bt(b, c, p + 1, z)∧β(n1, ..., nk, p, y, z)) Rule C ⇒ For certain new constants dand e, `PA Bt(b, c, p, d)∧Bt(b, c, p + 1, e)∧β(n1, ..., nk, p, d, e).[5] ·[4] ⇒ `PA ∀w(w < p → ∃ y∃z(Bt(b, c, w, y)∧Bt(b, c, w0, z)∧β(n1, ..., nk, w, y, z))) [2], [5], Rule E4, Conjunction Introduction ⇒ `PA ∃u∃v(∃w(Bt(u, v, 0, w)∧α(n1, ..., nk, w)) ∧Bt(u, v, p, d)∧ ∀w(w < p → ∃ y∃z(Bt(u, v, w, y)∧Bt(u, v, w0, z)∧β(n1, ..., nk, w, y, z)))) ⇒ `PA γ(n1, ..., nk, p, d)[0], [IH] ⇒d=B[5] ⇒ `PA Bt(b, c, p, B)∧Bt(b, c, p + 1, e)∧β(n1, ..., nk, p, B, e)[1],h is representable in PA by β ⇒e= C[5] ⇒ `PA Bt(b, c, p + 1, C)[3], Lemma I ⇒xk+2 =C⇒ `PA ∃!xk+2 γ(n1, ..., nk, p + 1, xk+2). •Let g(n1, ..., nk+1)be representable in PA by a wff α(x1, ..., xk+2)and such that, for every n1, ..., nk∈N, there is m∈Nsuch that g(n1, ..., nk, m)=0. Then µgis representable in PA by the wff α(x1, ..., xk+1,0)∧∀ xk+2 (xk+2 < xk+1 → ¬α(x1, ..., xk, xk+2,0)). Indeed (let n1, ..., nk, m ∈Nsuch that µg(n1, ..., nk) = m): ◦µg(n1, ..., nk) = m⇒min{k∈N|g(n1, ..., nk, k)=0}=mLemma III ⇒ `PA ∀xk+2 (xk+2 < m → ¬α(n1, ..., nk, xk+2,0)) gis representable in PA by α ⇒ `PA α(n1, ..., nk, m, 0) ∧ ∀ xk+2 (xk+2 < m → ¬α(n1, ..., nk, xk+2,0)). ◦ `PA ∃!xk+1 (α(n1, ..., nk, xk+1,0) ∧ ∀ xk+2 (xk+2 < xk+1 → ¬α(n1, ..., nk, xk+2,0))).  Every recursive relation is expressible in PA.4 4 Proof •Consider a recursive relation Aof karguments, and n1, ..., nk+1 ∈N. •Ais recursive ⇒CAis recursive Every recursive function is representable ⇒ CAis representable in PA by a wff α(x1, ..., xk+1),i.e.: ◦If CA(n1, ..., nk) = nk+1,`PA α(n1, ..., nk+1).[1] ◦ `PA ∃!xk+1 α(n1, ..., nk, xk+1).[2] •Then, Ais expressible in PA by α(x1, ..., xk,0): ◦ hn1, ..., nki ∈ A⇒CA(n1, ..., nk)=0 [1] ⇒ `PA α(n1, ..., nk,0). ◦ hn1, ..., nki/∈A⇒CA(n1, ..., nk)=1 [1] ⇒ `PA α(n1, ..., nk,1) [2] ⇒ `PA ¬α(n1, ..., nk,0).  4The converse is also true, see Corollary 3.29 of [Mendelson]. Gödel’s Incompleteness Theorem Chapter 4 Gödel’s Incompleteness Theorem 4.1 Gödel numbers We now pose a clever and seemingly unnatural question. Is it possible to «translate» propositions of logic into wffs of PA? Yes, encoding such propositions using a function called Gödel’s arithmetization. This technique will allow us to prove that PA is incomplete. The function G:{(,), , , ¬,→,∀} ∪ {xm, cm, An m, fn m}m,n∈N+−→ Nis called Gödel’s arithmetization. (,), , 7−→ 3,5,7 ¬,→,∀ 7−→ 9,11,13 xm, cm7−→ 7+8·m, 9+8·m fn m, An m7−→ 11 + 8 ·2n·3m,13 + 8 ·2n·3m And G(s)is called the Gödel number of s. Notice that Gis injective. Gcan be extended in the following way, remaining injective: •Given a string os symbols, we define G(s1· · · sr) := p(0)G(a0)·... ·p(r)G(ar). •Given a sequence of strings of symbols α0, ..., αr, we define G(α1· · · αr) := p(0)G(α0)·... ·p(r)G(αr). For example, G(x1=x3→A1 1(x3·x2)) = G(A2 1(x1, x3)→A1 1(f2 2(x3, x2))) = p(0)G(() ·p(1)G(A2 1)·p(2)G(() ·p(3)G(x1)·p(4)G(,)·p(5)G(x3)·p(6)G()) ·p(7)G(→)·p(8)G(A1 1)·p(9)G(() ·p(10)G(f2 2)· p(11)G(() ·p(12)G(x3)·p(13)G(,)·p(14)G(x2)·p(15)G()) ·p(16)G()) ·p(17)G()) = 23·313+8·22·31·53·77+8·1·117·137+8·3·175·1911 ·2313+8·21·31·293·3111+8·22·32·373·417+8·3·437·477+8·2· 535·595·615. This method of associating numbers with symbols, strings of symbols and sequences of strings of symbols was devised by Gödel in order to arithmetize metamatemathics, i.e. to replace assertions about a formal system by equivalent number-theoretic statements, and then to express these statements within the formal system itself. The following number-theoretic functions and relations (which are understood to be about PA, although many of them are stated in a more general way) are recursive: 1. IC(n), that holds iff nis the Gödel number of a constant. 2. FL(n), that holds iff nis the Gödel number of a function letter. 3. PL(n), that holds iff nis the Gödel number of a predicate letter. 25