Math 2.0

Mathematical logic and foundations Computability theory Theorem

Kleene's recursion theorem

Builds on Computable functionGödel numbering

Statement

Fix a standard Gödel numbering of programs, and let φe\varphi_e be the partial computable function of one argument computed by program ee. Let f ⁣:ℕ→ℕf \colon \N \to \N be a total computable function. Then there is e∈ℕe \in \N such that φe=φf(e)\varphi_e = \varphi_{f(e)} as partial functions.

Remarks

By the smn theorem, there is a total computable hh such that φh(u)=φφu(u)\varphi_{h(u)} = \varphi_{\varphi_u(u)} whenever φu(u)\varphi_u(u) is defined. The composite f∘hf \circ h is total computable, so it equals φv\varphi_v for some vv. Put e=h(v)e = h(v). Then φe=φφv(v)=φf(h(v))=φf(e)\varphi_e = \varphi_{\varphi_v(v)} = \varphi_{f(h(v))} = \varphi_{f(e)}.

An equivalent form: for every partial computable ψ(e,x)\psi(e, x) there is ee with φe(x)≃ψ(e,x)\varphi_e(x) \simeq \psi(e, x) for all xx. Here ≃\simeq means that both sides are undefined, or both are defined and equal. Example: with ψ(e,x)=e\psi(e, x) = e one gets a program ee that outputs its own number on every input, a "quine".

The function ff need not have a fixed point e=f(e)e = f(e); the theorem only gives a fixed point of the programs' behaviour. For instance f(e)=e+1f(e) = e + 1 has no fixed point in ℕ\N, but some ee and e+1e + 1 compute the same function.

Going deeper

For a student

The recursion theorem justifies definitions in which a program calls itself by index, which is how general recursion is handled inside computability theory. Its proof is a diagonal argument and is closely related to the diagonal lemma used in Gödel's incompleteness theorems. It gives a short proof of Rice's theorem and of the undecidability of the halting problem.

Reading path

To understand this page from the ground up, read these 3 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Computable function concept
  2. Gödel numbering concept
  3. Kleene's recursion theorem statement

Further reading

  1. Web https://en.wikipedia.org/wiki/Kleene's_recursion_theorem
About this page
TagF3Z30M606H
URIm2://F3Z30M606H
Kindstatement, theorem
WritingW0 stub
MSC03D20
StatusThis copy of the site has no build data. Run m2 status F3Z30M606H.
AboutComputable function
UsesComputable function, Gödel numbering
Same as
Changed2 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.