Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Gödel numbering

From Wikipedia, the free encyclopedia
Function in mathematical logic
For numberings of the set of computable functions, seeNumbering (computability theory).
This article includes alist of references,related reading, orexternal links,but its sources remain unclear because it lacksinline citations. Please helpimprove this article byintroducing more precise citations.(April 2021) (Learn how and when to remove this message)
icon
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Gödel numbering" – news ·newspapers ·books ·scholar ·JSTOR
(May 2025) (Learn how and when to remove this message)

Inmathematical logic, aGödel numbering is afunction that assigns to each symbol andwell-formed formula of someformal language a uniquenatural number, called itsGödel number.Kurt Gödel developed the concept for the proof of hisincompleteness theorems.[1]: 173–198 

A Gödel numbering can be interpreted as anencoding in which a number is assigned to eachsymbol of amathematical notation, after which a sequence ofnatural numbers can then represent a sequence of symbols. These sequences of natural numbers can again be represented by single natural numbers, facilitating their manipulation in formal theories of arithmetic.

Since the publishing of Gödel's paper in 1931, the term "Gödel numbering" or "Gödel code" has been used to refer to more general assignments of natural numbers to mathematical objects.

Simplified overview

[edit]

Gödel noted that each statement within a system can be represented by a natural number (itsGödel number). The significance of this was that properties of a statement—such as its truth or falsehood—would be equivalent to determining whether its Gödel number had certain properties. The numbers involved might be very large indeed, but this is not a barrier; all that matters is that such numbers can be constructed.

In simple terms, Gödel devised a method by which every formula or statement that can be formulated in the system gets a unique number, in such a way that formulas and Gödel numbers can be mechanically converted back and forth. There are many ways to do this. A simple example is the way in which English is stored as a sequence of numbers in computers usingASCII. Since ASCII codes are in the range 0 to 127, it is sufficient to pad them to 3 decimal digits and then to concatenate them:

  • The wordfoxy is represented by102111120121.
  • The logical formulax=y => y=x is represented by120061121032061062032121061120.

Gödel's encoding

[edit]
number variablesproperty variables...
Symbol0s¬()x1x2x3...P1P2P3...
Number135791113171923...289361529...
Gödel's original encoding[1]: 179 [i]

Gödel used a system based onprime factorization. He first assigned a unique natural number to each basic symbol in the formal language of arithmetic with which he was dealing.

To encode an entire formula, which is a sequence of symbols, Gödel used the following system. Given a sequence(x1,x2,x3,...,xn){\displaystyle (x_{1},x_{2},x_{3},...,x_{n})} of positive integers, the Gödel encoding of the sequence is the product of the firstn primes raised to their corresponding values in the sequence:

enc(x1,x2,x3,,xn)=2x13x25x3pnxn.{\displaystyle \mathrm {enc} (x_{1},x_{2},x_{3},\dots ,x_{n})=2^{x_{1}}\cdot 3^{x_{2}}\cdot 5^{x_{3}}\cdots p_{n}^{x_{n}}.}

According to thefundamental theorem of arithmetic, any number (and, in particular, a number obtained in this way) can be uniquely factored intoprime factors, so it is possible to recover the original sequence from its Gödel number (for any given number n of symbols to be encoded).

Gödel specifically used this scheme at two levels: first, to encode sequences of symbols representing formulas, and second, to encode sequences of formulas representing proofs. This allowed him to show a correspondence between statements about natural numbers and statements about the provability of theorems about natural numbers, the proof's key observation (Gödel 1931).

There are more sophisticated (and more concise) ways to construct aGödel numbering for sequences.

Example

[edit]

In the specific Gödel numbering used by Nagel and Newman, the Gödel number for the symbol "0" is 6 and the Gödel number for the symbol "=" is 5. Thus, in their system, the Gödel number of the formula "0 = 0" is 26 × 35 × 56 = 243,000,000.

Lack of uniqueness

[edit]

Infinitely many different Gödel numberings are possible. For example, supposing there areK basic symbols, an alternative Gödel numbering could be constructed by invertibly mapping this set of symbols (through, say, aninvertible functionh) to the set of digits of abijective base-K numeral system. A formula consisting of a string ofn symbolss1s2s3sn{\displaystyle s_{1}s_{2}s_{3}\dots s_{n}} would then be mapped to the number

h(s1)×Kn1+h(s2)×Kn2++h(sn1)×K1+h(sn)×K0.{\displaystyle h(s_{1})\times K^{n-1}+h(s_{2})\times K^{n-2}+\cdots +h(s_{n-1})\times K^{1}+h(s_{n})\times K^{0}.}

If K is chosen to be a power of 10, this scheme makes it fairly easy for a human to convert between a string of symbols and its Gödel number, since the Gödel number represented in base 10 is just the concatenation of then{\displaystyle n} decimal numbersh(si){\displaystyle h(s_{i})}.

For example, the numbering describedhere has K=1000.[ii]

Application to formal arithmetic

[edit]

Recursion

[edit]
Main article:Course-of-values recursion

One may use Gödel numbering to show how functions defined bycourse-of-values recursion are in factprimitive recursive functions.

Expressing statements and proofs by numbers

[edit]
Main article:Proof sketch for Gödel's first incompleteness theorem

Once a Gödel numbering for a formal theory is established, eachinference rule of the theory can be expressed as a function on the natural numbers. Iff is the Gödel mapping andr is an inference rule, then there should be somearithmetical functiongr of natural numbers such that if formulaC is derived from formulasA andB through an inference ruler, i.e.

A,BrC,{\displaystyle A,B\vdash _{r}C,}

then

gr(f(A),f(B))=f(C).{\displaystyle g_{r}(f(A),f(B))=f(C).}

This is true for the numbering Gödel used, and for any other numbering where the encoded formula can be arithmetically recovered from its Gödel number.

Thus, in a formal theory such asPeano arithmetic in which one can make statements about numbers and their arithmetical relationships to each other, one can use a Gödel numbering to indirectly make statements about the theory itself. This technique allowed Gödel to prove results about the consistency and completeness properties offormal systems.

Generalizations

[edit]

Incomputability theory, the term "Gödel numbering" is used in settings more general than the one described above. It can refer to:

  1. Any assignment of the elements of aformal language to natural numbers in such a way that the numbers can be manipulated by analgorithm to simulate manipulation of elements of the formal language.[citation needed]
  2. More generally, an assignment of elements from a countable mathematical object, such as a countablegroup, to natural numbers to allow algorithmic manipulation of the mathematical object.[citation needed]

Also, the term Gödel numbering is sometimes used when the assigned "numbers" are actually strings, which is necessary when considering models of computation such asTuring machines that manipulate strings rather than numbers.[citation needed]

Gödel sets

[edit]

Gödel sets are sometimes used in set theory to encode formulas, and are similar to Gödel numbers, except that one uses sets rather than numbers to do the encoding. In simple cases when one uses ahereditarily finite set to encode formulas this is essentially equivalent to the use of Gödel numbers, but somewhat easier to define because the tree structure of formulas can be modeled by the tree structure of sets. Gödel sets can also be used to encode formulas ininfinitary languages.

See also

[edit]

Notes

[edit]
  1. ^Gödel's notation[1]: 176  has been adapted to modern notation.
  2. ^For another, perhaps-more-intuitive example, suppose you have three symbols to encode, and choose bijective base-10 for familiarity (so enumeration starts at 1, 10 is represented by a symbol e.g.A, and place-value carries at 11 rather than 10: decimal19 will still be19, and so with21; but decimal20 will be1A). Usingh(sn)=n{\displaystyle h(s_{n})=n} and the formula above:

    (1×10(31)+2×10(32)+3×10(33))=(1×102+2×101+3×100)=(100+20+3){\displaystyle (1\times 10^{(3-1)}+2\times 10^{(3-2)}+3\times 10^{(3-3)})=(1\times 10^{2}+2\times 10^{1}+3\times 10^{0})=(100+20+3)}[iii]

    ...we arrive at123{\displaystyle 123} as our numbering—a neat feature.

  3. ^(or, in bijective base-10 form:9A+1A+3{\displaystyle 9A+1A+3})

References

[edit]
  1. ^abcGödel, Kurt (1931)."Über formal unentscheidbare Sätze der Principia Mathematica und verwandter Systeme I"(PDF).Monatshefte für Mathematik und Physik (in German).38:173–198.doi:10.1007/BF01700692.S2CID 197663120. Archived fromthe original(PDF) on 2018-04-11. Retrieved2013-12-07.

Further reading

[edit]
General
Theorems
(list),
paradoxes
Logics
Traditional
Propositional
Predicate
Set theory
Types
ofsets
Maps,
cardinality
Theories
Formal
systems

(list),
language,
syntax
Example
axiomatic
systems

(list)
Proof theory
Model theory
Computability
theory
Related
Authority control databases: NationalEdit this at Wikidata
Retrieved from "https://en.wikipedia.org/w/index.php?title=Gödel_numbering&oldid=1335882162"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp