World Library  
Flag as Inappropriate
Email this Article

Diagonal lemma

Article Id: WHEBN0000348969
Reproduction Date:

Title: Diagonal lemma  
Author: World Heritage Encyclopedia
Language: English
Subject: Gödel's β function, Mathematical Logic, Gödel's incompleteness theorems, Diagonal argument, Indirect self-reference
Collection: Articles Containing Proofs, Lemmas, Mathematical Logic
Publisher: World Heritage Encyclopedia

Diagonal lemma

In mathematical logic, the diagonal lemma or fixed point theorem establishes the existence of self-referential sentences in certain formal theories of the natural numbers—specifically those theories that are strong enough to represent all computable functions. The sentences whose existence is secured by the diagonal lemma can then, in turn, be used to prove fundamental limitative results such as Gödel's incompleteness theorems and Tarski's undefinability theorem.[1]


  • Background 1
  • Statement of the lemma 2
  • Proof 3
  • History 4
  • See also 5
  • Notes 6
  • References 7


Let N be the set of natural numbers. A theory T represents the computable function f : NN if there exists a formula δ(x,y) in the language of T such that for each n, T proves

(∀y) [°f(n) = y ↔ δ(°n,y)].[2]

Here °n is the numeral corresponding to the natural number n, which is defined to be the closed term 1+ ··· +1 (n ones), and °f(n) is the numeral corresponding to f(n).

The diagonal lemma also requires that there be a systematic way of assigning to every formula θ a natural number #(θ) called its Gödel number. Formulas can then be represented within the theory by the numerals corresponding to their Gödel numbers.

The diagonal lemma applies to theories capable of representing all primitive recursive functions. Such theories include Peano arithmetic and the weaker Robinson arithmetic. A common statement of the lemma (as given below) makes the stronger assumption that the theory can represent all computable functions.

Statement of the lemma

Let T be a first-order theory in the language of arithmetic and capable of representing all computable functions. Let F be a formula in the language with one free variable. The diagonal lemma states that there is a sentence ψ such that ψ ↔ F(°#(ψ)) is provable in T.[3]

Intuitively, ψ is a self-referential sentence saying that ψ has the property F. The sentence ψ can also be viewed as a fixed point of the operation assigning to each formula θ the sentence F(°#(θ)). The sentence ψ constructed in the proof is not literally the same as F(°#(ψ)), but is provably equivalent to it in the theory T.


Let f: NN be the function defined by:

f(#(θ)) = #(θ(°#(θ)))

for each T-formula θ in one free variable, and f(n) = 0 otherwise. The function f is computable, so there is a formula δ representing f in T. Thus for each formula θ, T proves

(∀y) [ δ(°#(θ),y) ↔ y = °f(#(θ))],

which is to say

(∀y) [ δ(°#(θ),y) ↔ y = °#(θ(°#(θ)))].

Now define the formula β(z) as:

β(z) = (∀y) [δ(z,y) → F(y)].

Then T proves

β(°#(θ)) ↔ (∀y) [ y = °#(θ(°#(θ))) → F(y)],

which is to say

β(°#(θ)) ↔ F(°#(θ(°#(θ)))).

Now take θ=β and ψ = β(°#(β)), and the previous sentence rewrites to ψ ↔ F(°#(ψ)), which is the desired result.


The diagonal lemma is closely related to Kleene's recursion theorem in computability theory, and their respective proofs are similar.

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 Tarski (1936). Carnap (1934) was the first to prove that for any formula F in a theory T satisfying certain conditions, there exists a formula ψ such that ψ ↔ F(°#(ψ)) is provable in T. Carnap's work was phrased in alternate language, as the concept of computable functions was not yet developed in 1934. Mendelson (1997, p. 204) believes that Carnap was the first to state that something like the diagonal lemma was implicit in Gödel's reasoning. Gödel was aware of Carnap's work by 1937.[4]

See also


  1. ^ See Boolos and Jeffrey (2002, sec. 15) and Mendelson (1997, Prop. 3.37 and Cor. 3.44 ).
  2. ^ For details on representability, see Hinman 2005, p. 316
  3. ^ Smullyan (1991, 1994) are standard specialized references. The lemma is Prop. 3.34 in Mendelson (1997), and is covered in many texts on basic mathematical logic, such as Boolos and Jeffrey (1989, sec. 15) and Hinman (2005).
  4. ^ See Gödel's Collected Works, Vol. 1, p. 363, fn 23.


  • Richard Jeffrey, 1989. Computability and Logic, 3rd ed. Cambridge University Press. ISBN 0-521-38026-X ISBN 0-521-38923-2
  • Rudolf Carnap, 1934. Logische Syntax der Sprache. (English translation: 2003. The Logical Syntax of Language. Open Court Publishing.)
  • Hinman, Peter, 2005. Fundamentals of Mathematical Logic. A K Peters. ISBN 1-56881-262-0
  • Mendelson, Elliott, 1997. Introduction to Mathematical Logic, 4th ed. Chapman & Hall.
  • Raymond Smullyan, 1991. Gödel's Incompleteness Theorems. Oxford Univ. Press.
  • Raymond Smullyan, 1994. Diagonalization and Self-Reference. Oxford Univ. Press.
  • Alfred Tarski, 1936, "The Concept of Truth in Formal Systems" in Corcoran, J., ed., 1983. Logic, Semantics, Metamathematics: Papers from 1923 to 1938. Indianapolis IN: Hackett.
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Hawaii eBook Library are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.