ArticleslgStudy

mathematics

Diagonal lemma

Diagonal lemma is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Diagonal lemma rather than just read about it. In short: 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.

Key takeaways

  • Diagonal lemma belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Diagonal lemma to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Diagonal lemma from memory before moving on to harder problems.

Reference excerpt

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 𝖯𝖠, the weaker Robinson arithmetic 𝖰 as well as any theory containing 𝖰 (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.

Background

Gödel numbering The diagonal lemma also requires a Gödel numbering α. We write α(φ) for the code assigned to φ by the numbering. For n‾, the standard numeral of n (i.e. 0‾=df𝟢 and n+1‾=df𝖲(n‾)), let ⌜φ⌝ be the standard numeral of the code of φ (i.e. ⌜φ⌝ is α(φ)‾). We assume a standard Gödel numbering

Representation theorem Let ℕ be the set of natural numbers. A first-order theory T in the language of arithmetic containing 𝖰 represents the k-ary (total) computable function f:ℕk→ℕ if there is a formula φf(x1,…,xk,y) in the language of T such that for all m1,…,mk∈ℕ, if f(m1,…,mk)=n then T⊢∀y(φf(m1‾,…,mk‾,y)↔y=n‾). The representation theorem is true, i.e. every computable function is representable in T.

The diagonal lemma and its proof Diagonal Lemma: Let T be a first-order theory containing 𝖰 (Robinson arithmetic) and let ψ(x) be any formula in the language of T with only x as free variable. Then there is a sentence φ in the language of T such that T⊢φ↔ψ(⌜φ⌝). Intuitively, φ is a self-referential sentence that "says of itself that it has the property ψ." Proof: Let diagT:ℕ→ℕ be the computable function that associates the code of each formula φ(x) with only one free variable x in the language of T with the code of the closed formula φ(⌜φ⌝) (i.e. the substitution of ⌜φ⌝ into φ for x) and 0 for other arguments. (The fact that diagT is computable depends on the choice of the Gödel numbering, here the standard one.) By the representation theorem, T represents every computable function. Thus, there is a formula δ(x,y) representing diagT, in particular, for each φ(x), T⊢δ(⌜φ⌝,y)↔y=⌜φ(⌜φ⌝)⌝. Let ψ(x) be an arbitrary formula with only x as free variable. We now define χ(x) as ∃y(δ(x,y)∧ψ(y)), and let φ be χ(⌜χ⌝). Then the following equivalences are provable in T: φ↔χ(⌜χ⌝)↔∃y(δ(⌜χ⌝,y)∧ψ(y))↔∃y(y=⌜χ(⌜χ⌝)⌝∧ψ(y))↔∃y(y=⌜φ⌝∧ψ(y))↔ψ(⌜φ⌝).

Some generalizations There are various generalizations of the diagonal lemma. We present only some of them; in particular, combinations of the first three generalizations below yield new generalizations. Let T be a first-order theory containing 𝖰 (Robinson arithmetic).

Diagonal lemma with parameters Let ψ(x,y1,…,yn) be any formula with free variables x,y1,…,yn. Then there is a formula φ(y1,…yn) with free variables y1,…,yn such that T⊢φ(y1,…,yn)↔ψ(⌜φ(y1,…,yn)⌝,y1,…,yn).

Uniform diagonal lemma Let ψ(x,y1,…,yn) be any formula with free variables x,y1,…,yn. Then there is a formula φ(y1,…yn) with free variables y1,…,yn such that for all m1,…,mn∈ℕ, T⊢φ(m1‾,…,mn‾)↔ψ(⌜φ(m1‾,…,mn‾)⌝,m1‾,…,mn‾).

Simultaneous diagonal lemma Let ψ1(x1,x2) and ψ2(x1,x2) be formulae with free variables x1 and x2. Then there are sentence φ1 and φ2 such that T⊢φ1↔ψ1(⌜φ1⌝,⌜φ2⌝) and T⊢φ2↔ψ2(⌜φ1⌝,⌜φ2⌝). The case with n many formulae is similar.

Strong diagonal lemma Let ψ(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⊢t=⌜ψ(t)⌝. Trivially, the diagonal lemma follows from the strong diagonal lemma (take φ(x) to be ψ(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 𝖰 or 𝖯𝖠), but holds for primitive recursive arithmetic 𝖯𝖱𝖠 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 ψ(x) with x as free variable (in a sufficiently expressive language), then there exists a sentence φ such that φ↔ψ(⌜φ⌝) 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

Notes

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Diagonal lemma

Start with the simplest possible case. Write down what Diagonal lemma claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Diagonal lemma before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Diagonal lemma ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Diagonal lemma

In research
Diagonal lemma appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Diagonal lemma in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Diagonal lemma is common in secondary-school and first-year university syllabi. It links to neighbouring topics Lemmas, Mathematical logic, so understanding it makes those chapters shorter.
In everyday life
Look for Diagonal lemma outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Diagonal lemma” →

How to study Diagonal lemma in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Diagonal lemma means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Diagonal lemma out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Diagonal lemma in simple terms?

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 hi…

Why does Diagonal lemma matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Diagonal lemma?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Diagonal lemma.

Tags

  • Lemmas
  • Mathematical logic

Keep exploring