The Process of Gödel Numbering

Gödel numbering is a function that assigns to each symbol (logical & the non-logical symbols of the vocabulary) and well-formed formula (WFF) to a unique natural number i.e., Where is the assigning function, and is the set of all WFF’s

E.g., of Gödel encoding The symbols (logical & non-logical) are assigned natural numbers ’(’ = 2, ’)’ = 3, '' = 4, ’+’ = 5, '' = 6, '' = 7, '' =8, '' =9, ’=’ = 11, … '' = 17, … The position of a symbol in a WFF is assigned a prime number

i.e.,

Now consider the following the following formula

We utilize prime factorization to determine a Gödel number (the product of prime numbers) and get the following

i.e., The number which is assigned to the logic & non-logical symbols are raised to the power of the numbers assigned to the position of a symbol in the WFF

Notation: The Gödel number of a formula is denoted as

Note: Some Gödel’s encodings processes switch the numbers around so that the number assigned to the position of a symbol in a WFF is raised to the numbers assigned to logical & non-logical symbols.

Prime factorization due to the fundamental theorem of arithmetic, that is “any natural number can be uniquely factored into prime factors.” Thus, allowing us to reverse the Gödel encoding procedure to recover the original sequence of symbols from its Gödel number in order to effectively know what is exactly the WFF.

Gödel numbering allows us to encode formulae of the object theory into objects of the object theory (in this case arithmetic numbers). ‘Internalization’ is the process of expressing a meta statement about the object language w/in itself, this is done by the object language encoding its own syntax. An example of this is seen below via considering the statement ” proves the sentence ”, which can be encoded into the object language as where is the Gödel number of a proof in of the formula w/ Gödel number . These processes allows us to express self-referential statement which is integral to Gödel’s Incompleteness Theorems and Tarski’s Undefinability Theorem. The internalization (the encoding of the object language) itself is carried out in the metatheory.

Arithmetic Procedures on Gödel Numbers Consider the formulas and of our formal language, let and denote the Gödel numbers of the formulas respectively, if we take the rule of inference over ‘and’, then

where '' is the natural sum

Let and be in Cantor normal form (i.e., and ). Let be the exponents sorted in nonincreasing order. Then .

A predicate can be constructed in taking arithmetic numbers and is true if they satisfy the arithmetic operation.

i.e., (successor applied x-times)

A binary predicate can be made which takes a number which represents a set of formulas, and a formula and checks whether each formula in is an axiom or theorem (derived statement from the axioms). Thus, it checks if is a proof of .

Denote it as is a proof of

Note: ” is proven iff there exists such that is a proof of ”

‘Substitute’ Function “The Gödel number of the formula with Gödel number , with every instance of the formula with Gödel number being replaced with ” i.e., Suppose then consider that is, this instance of the substitute function is the identity function. This is because it takes the sentence with Gödel number and replaces every with .

These functions are defined w/in the object theory (although what they actually mean semantically, is justified in the metatheory).

Intuition

Self-Referential Statements The goal is to construct a statement asserting “this statement is not provable” (an provability analogue of the liar’s paradox).

e.g., then let then, Some sentence with Gödel number G does not have a proof

Recall: takes every sentence with Gödel number and replaces every instance of () with , from this we obtain the sentence . Thus,

This is essentially stating that a “a sentence with Gödel number G is unprovable, but this statement itself is the sentence with Gödel number G”

We will now consider the following sentence:

Proof Outline: “this statement is not provable” Formally, this is asserted as follows:

Consider as false is true by the Law of Excluded Middle But since is true then the theory proves (note:” is provable”).

Case 1: i) is provable is inconsistent as and . Thus, a contradiction. ii) is not provable Thus, we have obtained a true but unprovable statement. Case 2: If is true, then is not provable ()


The Diagonal Lemma: For is the fixed point of the function This asserts the existence of self-referential statements in sufficiently powerful first-order axiomatic systems that have a recursive syntax (and must also obviously express Gödel encoding as seen above).

Gödel’s First Incompleteness Theorem is the instance where , where is defined as above () and is the function that asserts that it’s argument is unprovable, i.e., . From this we derive

is the assertion that ” is consistent”, in (Peano) arithmetic, this is the same as asserting that “there is no proof of in PA” as "" is inconsistent.

Gödel encoding (partially) internalizes the metatheory (w/in the object theory), allowing us refer to it and talk about proofs over its own statements. Specifically, only meta statements about the object language are encoded within itself. This is limited access to the metatheory as via Tarski’s theory of truth, the object language cannot refer to its own semantics nor the semantics and syntax of any theory of a higher meta-level (as this would cause semantic collapse). Thus, we cannot encode semantic notions, only syntactic ones like proofs.

Notes:

  • An internalization of the metatheory causes a divide between internal and external syntax (of the metatheory), where the internal syntax is the Gödel encoding of its symbols and expressions, while the external syntax is the actual syntax of the formal language.
  • A theory Gödel encoding its own formulas and statements is equivalent to it being its own metatheory.
  • Any theory which can express the diagonal lemma (and so Gödel encoding) can construct the sentence .

The Incompleteness Theorem

Gödel’s Incompleteness Theorem: 1) Gödel’s First Incompleteness Theorem: Gödel’s First Incompleteness Theorem asserts that any axiomatic theory cannot have all of the following properties: 1) Proves/captures a sufficient amount of arithmetic (i.e., multiplication ) 2) Consistent (i.e., or equivalently, ) 3) Complete (i.e., for any formula ) 4) Recursively enumerable (i.e., we can list all of the theory’s axiom by a valid algorithm) The proof of this is described in the section above w/ the assumptions that the theory is recursively enumerable and can assert and prove the diagonal lemma (i.e., a “sufficient” amount of arithmetic). 2) Gödel’s Second Incompleteness Theorem: Gödel’s Second Incompleteness Theorem asserts that any consistent theory which is sufficiently powerful (i.e., captures basic arithmetic) cannot prove it’s own consistency (), this is equivalent to any axiomatic theory cannot prove that it has a model (since the existence of a model implies it’s consistency via the soundness theorem, see Soundness & Completeness)

Note: Adding every unprovable true formula to the theory will not obtain a complete theory as Gödelizing the extended system (, for every unprovable ), we can find another formula with its own Gödel number which is true but unprovable. This process goes on ad infinitum until you have exhausted all possible (consistent) choices for sentences. Then you obtain the maximal consistent extension of denoted

Proof (Second Incompleteness Theorem): The proof of the second incompleteness theorem follows us by formalizing the proof of the first incompleteness theorem w/in the system itself.

Let be the Gödel sentence as defined above () and assume for the case of contradiction that . Now consider the sentence , that is, if is consistent then is not provable. Then , this follows from the assumption that . Thus, proves the statement “this statement is not provable” is provable and from the first incompleteness theorem, a contradiction (as is the sentence we construct to be unprovable).

The second incompleteness theorem is an instance (and implication) of the first incompleteness theorem.


Extensions of Gödel numbers: Encoding in set theory E.g.,

Where in this case

A Gödel encoding requires an ordered system (i.e., based off of prime factorization) so the procedure can be reserved to obtain the original formula (which has been encoded).

Note: Although a consistent theory cannot prove its own consistency, it can define/formulate the consistency of itself w/in (i.e., ). This is in contrast to asserting the soundness of , not only cannot be proven w/in , but also cannot be defined w/in it. As soundness is dealing w/ truth rather than consistency via Tarski’s Undefinability Theorem. Soundness is asserted as follows: For meaning ” is a theorem of ” is a syntactic notion can be formulated is a semantic notion cannot be formulated is a syntactic notion can be formulated

Note: There are obviously theories which are consistent and complete, they just sacrifice either the property of expressing a sufficient amount of arithmetic or being recursively enumerable.

E.g., For is some structure, the theory Th(), the set of all sentences true in , is complete, consistent, and can express a sufficient amount of arithmetic, but is not recursively enumerable (i.e., we cannot list down all of its axioms)

E.g., Presburger arithmetic is a theory which is consistent, complete and recursively enumerable, but is so weak in expressive power that it does not capture Gödel encoding. The ‘rough’ point where a theory can express Gödel encoding is at the theory (primitive recursive arithmetic).

There are also instances where the second incompleteness does not apply where there are theories that can prove their own consistency (see Self-Verifying theories).

References

Paradoxes of Completeness, Definability and Computation Gödel’s incompleteness theorems) Tarski’s Theory of Truth Self-Verifying theories