Gödel Number

DOWNLOAD Mathematica Notebook

Turing machines are defined by sets of rules that operate on four parameters: (state, tape cell color, operation, state). Let the states and tape cell colors be numbered and represented by quadruples of ordinal numbers. Then there exist algorithmic procedures that sequentially list all consistent sets of Turing machine rules. A set of rules is called consistent if any two quadruples differ in the first or second element out of the four. Any such procedure gives both an algorithm for going from any integer to its corresponding Turing machine and an algorithm for getting the index of any consistent set of Turing machine rules.

Assume that one such procedure is selected. If Turing machine Z is defined by the set of quadruples whose index is x, then x is called the Gödel number of Z. The result of application of Turing machine with Godel number x to y is usually denoted phi_x(y).

Given the equivalence of computability and recursiveness, it is common to use Gödel numbers as indexes of recursive functions as well. The fact that it is possible to assign Gödel numbers to recursive functions implies that there is a countable infinite number of recursive functions. Hence, by Cantor's theorem, there exist functions which are not recursive. Each recursive function has an infinite number of distinct Gödel numbers.

Gödel numbers allow for a straightforward formal definition of the universal Turing machine U as

 U(x,y)=phi_x(y).
(1)

Many recursively undecidable problems are formulated in terms of Gödel numbers. For example, Gödel numbers are used in the theorem about recursive undecidability of the halting problem. Determining the convergence of phi_x(x) is also recursively undecidable.

Gödel numbers can be used to uniquely encode any list of positive integers {a_1,a_2,...,a_n} according to

 phi_(a_1,a_2,...,a_n)=product_(k=1)^np_k^(a_k),
(2)

where p_k is the kth prime number.

When used to study statements in arithmetic, a Gödel number is a unique number for a given statement that can be formed as the product of successive primes raised to the power of the number corresponding to the individual symbols that comprise the sentence. For example, the statement ( exists x)(x=sy) that reads "there exists an x such that x is the immediate successor of y" can be coded

 2^8·3^4·5^(13)·7^9·11^8·13^(13)·17^5·19^7·23^(16)·29^9,
(3)

where the numbers in the set (8, 4, 13, 9, 8, 13, 5, 7, 16, 9) correspond to the symbols that make up ( exists x)(x=sy). Prime-power coding using Gödel numbers can also be used to encode Turing machine rules.

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.