Diagonal lemma
In mathematical logic, the diagonal lemma (also known as diagonalization lemma, self-reference lemma or fixed point theorem) establishes the existence of self-referential sentences in certain formal theories.
≈ 6 min read
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
In mathematical logic, the diagonal lemma (also known as diagonalization lemma, self-reference lemma or fixed point theorem) establishes the existence of self-referential sentences in certain formal theories. A particular instance of the diagonal lemma was used by Kurt Gödel in 1931 to construct his proof of the incompleteness theorems as well as in 1933 by Tarski to prove his undefinability theorem.
In 1934, Carnap was the first to publish the diagonal lemma at some level of generality. The diagonal lemma is named in reference to Cantor's diagonal argument in set theory and number theory. The diagonal lemma applies to any sufficiently strong theories capable of representing the diagonal function.
Such theories include first-order Peano arithmetic \mathsf{PA} , the weaker Robinson arithmetic \mathsf{Q} as well as any theory containing \mathsf{Q} (i.e. that interprets it). A common statement of the lemma (as given below) makes the stronger assumption that the theory can represent all (total) computable functions, but all the theories mentioned have that capacity, as well.
The diagonal lemma also requires a Gödel numbering \alpha . We write \alpha (\varphi) for the code assigned to \varphi by the numbering.
For \overline{n} , the standard numeral of n (i.e. \overline{0} =_{df} \mathsf{0} and \overline{n+1} =_{df} \mathsf{S}(\overline{n}) ), let \ulcorner \varphi \urcorner be the standard numeral of the code of \varphi (i.e. \ulcorner \varphi \urcorner is \overline{\alpha(\varphi)} ). We assume a standard Gödel numbering Let \mathbb{N} be the set of natural numbers.
A first-order theory T in the language of arithmetic containing \mathsf{Q} represents the k -ary (total) computable function f: \mathbb{N}^k\rightarrow\mathbb{N} if there is a formula \varphi_f(x_1, \dots, x_k, y) in the language of T such that for all m_1, \dots, m_k \in \mathbb{N} , if f(m_1, \dots, m_k) = n then T \vdash \forall y (\varphi_f (\overline{m_1}, \dots, \overline{m_k}, y) \leftrightarrow y = \overline{n} ) . The representation theorem is true, i.e. every computable function is representable in T . By the representation theorem, T represents every computable function.
Thus, there is a formula \delta(x,y) representing diag_T , in particular, for each \varphi (x) , T \vdash \delta(\ulcorner \varphi \urcorner , y) \leftrightarrow y = \ulcorner \varphi (\ulcorner \varphi \urcorner) \urcorner . Let \psi(x) be an arbitrary formula with only x as free variable.
We now define \chi (x) as \exists y (\delta(x,y) \land \psi(y)) , and let \varphi be \chi (\ulcorner \chi \urcorner) . Then the following equivalences are provable in T : \varphi \leftrightarrow \chi(\ulcorner \chi \urcorner) \leftrightarrow \exists y (\delta(\ulcorner \chi \urcorner,y) \land \psi(y)) \leftrightarrow \exists y (y = \ulcorner \chi (\ulcorner \chi \urcorner) \urcorner \land \psi(y)) \leftrightarrow \exists y (y = \ulcorner \varphi \urcorner \land \psi(y)) \leftrightarrow \psi (\ulcorner \varphi \urcorner) .
Let \psi (x) be any formula in the language of T with only x as free variable. Then there is a term t in the language of T such that T \vdash t = \ulcorner \psi (t) \urcorner .
Trivially, the diagonal lemma follows from the strong diagonal lemma (take \varphi (x) to be \psi (t) ). Note however that the strong diagonal lemma depends on the language of T , particularly on whether there is such a term t . Typically, the strong diagonal lemma fails for theories in the basic language of arithmetic (such as \mathsf{Q} or \mathsf{PA} ), but holds for primitive recursive arithmetic \mathsf{PRA} which has a function symbol for each primitive recursive functions.
History
The lemma is called "diagonal" because it bears some resemblance to Cantor's diagonal argument. The terms "diagonal lemma" or "fixed point" do not appear in Kurt Gödel's 1931 article or in Alfred Tarski's 1936 article.
In 1934, Rudolf Carnap was the first to publish the diagonal lemma in some level of generality, which says that for any formula \psi (x) with x as free variable (in a sufficiently expressive language), then there exists a sentence \varphi such that \varphi \leftrightarrow \psi(\ulcorner \varphi \urcorner) is true (in some standard model). Carnap's work was phrased in terms of truth rather than provability (i.e. semantically rather than syntactically).
Moreover, the concept of computable functions was not yet developed in 1934. The diagonal lemma is closely related to Kleene's recursion theorem in computability theory, and their respective proofs are similar. In 1952, Léon Henkin asked whether sentences that state their own provability are provable.
His question led to more general analyses of the diagonal lemma, especially with Löb's theorem and provability logic.
See also
Indirect self-reference List of fixed point theorems Self-reference Self-referential paradoxes
References
George Boolos and Richard Jeffrey, 1989. Computability and Logic, 3rd ed. Cambridge University Press. Rudolf Carnap, 1934.
Logische Syntax der Sprache. (English translation: 2003. The Logical Syntax of Language.
Open Court Publishing.) Haim Gaifman, 2006. 'Naming and Diagonalization: From Cantor to Gödel to Kleene'.
Logic Journal of the IGPL, 14: 709–728. Robert G. Jeroslow, 1973. 'Redundancies in the Hilbert-Bernays Derivability Conditions for Gödel's Second Incompleteness Theorem'.
The Journal of Symbolic Logic, 38.3: 359–367. Petr Hájek & Pavel Pudlák, 2016 (first edition 1998). Metamathematics of First-Order Arithmetic.
Springer Verlag. Peter Hinman, 2005. Fundamentals of Mathematical Logic.
A K Peters. Mendelson, Elliott, 1997. Introduction to Mathematical Logic, 4th ed. Chapman & Hall.
Panu Raatikainen, 2015a. The Diagonalization Lemma. In Stanford Encyclopedia of Philosophy, ed. Zalta. Panu Raatikainen, 2015b. Gödel's Incompleteness Theorems.
In Stanford Encyclopedia of Philosophy, ed. Zalta. Raymond Smullyan, 1991. Gödel's Incompleteness Theorems.
Oxford Univ. Press. Raymond Smullyan, 1994. Diagonalization and Self-Reference.
Oxford Univ. Press. Craig Smoryński, 2023. 'The early history of formal diagonalization'.
Logic Journal of the IGPL, 31.6: 1203–1224. Alfred Tarski, tr. J. H. Woodger, 1983.
'The Concept of Truth in Formalized Languages'. English translation of Tarski's 1936 article. In A. Tarski, ed. J. Corcoran, 1983, Logic, Semantics, Metamathematics, Hackett.
Text derived from https://en.wikipedia.org/w/index.php?oldid=1344931050 under CC BY-SA 4.0; modifications have been made.