Reading preferences
Optional display controls need JavaScript. All reading content and navigation work without it.
Source file content/incompleteness/representability-in-q/representability-in-q.tex
Source file content/incompleteness/representability-in-q/introduction.tex
Introduction
The incompleteness theorems apply to theories in which basic facts about computable functions can be expressed and proved. We will describe a very minimal such theory called “source” (or, sometimes, “Robinson's source,” after Raphael Robinson). We will say what it means for a function to be representable in source, and then we will prove the following:
A function is representable in source if and only if it is computable.
For one thing, this provides us with another model of computability. But we will also use it to show that the set source is not decidable, by reducing the halting problem to it. By the time we are done, we will have proved much stronger things than this.
The language of source is the language of arithmetic; source consists of the following axioms (to be used in conjunction with the other axioms and rules of first-order logic with identity predicate):
For each natural number source, define the numeral source to be the term source where there are source tick marks in all. So, source is the constant symbol source by itself, source is source, source is source, etc.
As a theory of arithmetic, source is extremely weak; for example, you can't even prove very simple facts like source or source. But we will see that much of the reason that source is so interesting is because it is so weak. In fact, it is just barely strong enough for the incompleteness theorem to hold. Another reason source is interesting is because it has a finite set of axioms.
A stronger theory than source (called Peano arithmetic source) is obtained by adding a schema of induction to source:
where source is any formula. If source contains free variables other than source, we add universal quantifiers to the front to bind all of them (so that the corresponding instance of the induction schema is a sentence). For instance, if source also contains the variable source free, the corresponding instance is
Using instances of the induction schema, one can prove much more from the axioms of source than from those of source. In fact, it takes a good deal of work to find “natural” statements about the natural numbers that can't be proved in Peano arithmetic!
Representability of a numerical function in Q
A function source from the natural numbers to the natural numbers is said to be em representable in source if there is a formula source such that whenever source, source proves
There are other ways of stating the definition; for example, we could equivalently require that source proves source.
Functions representable in Q are exactly the computable functions
A function is representable in source if and only if it is computable.
There are two directions to proving the theorem. The left-to-right direction is fairly straightforward once arithmetization of syntax is in place. The other direction requires more work. Here is the basic idea: we pick “general recursive” as a way of making “computable” precise, and show that every general recursive function is representable in source. Recall that a function is general recursive if it can be defined from source, the successor function source, and the projection functions source, using composition, primitive recursion, and regular minimization. So one way of showing that every general recursive function is representable in source is to show that the basic functions are representable, and whenever some functions are representable, then so are the functions defined from them using composition, primitive recursion, and regular minimization. In other words, we might show that the basic functions are representable, and that the representable functions are “closed under” composition, primitive recursion, and regular minimization. This guarantees that every general recursive function is representable.
It turns out that the step where we would show that representable functions are closed under primitive recursion is hard. In order to avoid this step, we show first that in fact we can do without primitive recursion. That is, we show that every general recursive function can be defined from basic functions using composition and regular minimization alone. To do this, we show that primitive recursion can actually be done by a specific regular minimization. However, for this to work, we have to add some additional basic functions: addition, multiplication, and the characteristic function of the identity relation source. Then, we can prove the theorem by showing that all of these basic functions are representable in source, and the representable functions are closed under composition and regular minimization.
Source file content/incompleteness/representability-in-q/representable-comp.tex
Functions Representable in source are Computable
We'll prove that every function that is representable in source is computable. We first have to establish a lemma about functions representable in source.
Provable instances of a representing formula identify the correct value
If source is representable in source, there is a formula source such that
Proof
The “if” part is the definition of function representability in Qits first clause, proving the correct numeral instance. The “only if” part is seen as follows: Suppose source but source. Let source. By the definition of function representability in Qits first clause, proving the correct numeral instance, source. By the definition of function representability in Qits second clause, proving uniqueness of the output, source. Using logic and the assumption that source, we get that source. On the other hand, by the lemma that Q proves distinct numerals unequal, source. So source is inconsistent. But that is impossible, since source is satisfied by the standard model (see the definition of the standard model of arithmetic), source, and satisfiable theories are always consistent by the Soundness Theorem (references the soundness corollary that satisfiable theories are consistent, for axiomatic derivations, the soundness corollary that satisfiable theories are consistent, for sequent calculus, the soundness corollary that satisfiable theories are consistent, for natural deduction, and the soundness corollary that satisfiable theories are consistent, for tableaux).
Every function representable in Q is computable
Every function that is representable in source is computable.
Proof
Let's first give the intuitive idea for why this is true. To compute source, we do the following. List all the possible derivations source in the language of arithmetic. This is possible to do mechanically. For each one, check if it is a derivation of a formula of the form source (the formula representing source in source from the lemma equating provable representing instances with correct function values). If it is, source by the lemma equating provable representing instances with correct function values, and we've found the value of source. The search terminates because source, so eventually we find a source of the right sort.
This is not quite precise because our procedure operates on derivations and formulas instead of just on numbers, and we haven't explained exactly why “listing all possible derivations” is mechanically possible. But as we've seen, it is possible to code terms, formulas, and derivations by Gödel numbers. We've also introduced a precise model of computation, the general recursive functions. And we've seen that the relation source, which holds iff source is the Gödel number of a derivation of the formula with Gödel number source from the axioms of source, is (primitive) recursive. Other primitive recursive functions we'll need are source (the proposition that numeral coding is primitive recursive) and source (the proposition that substitution coding is primitive recursive). From these, it is possible to define source by minimization; thus, source is recursive.
First, define
This looks complicated, but it's just the function source.
Now, consider the relation source which holds if source is the Gödel number of a derivation from source of source:
If we can find an source such that source holds, we have found a pair of numbers---source and source---such that source is the Gödel number of a derivation of source. So looking for source is like looking for the pair source and source in the informal proof. And a computable function that “looks for” such an source can be defined by regular minimization. Note that source is regular: for every source, dots, source, there is a derivation source of source, so source holds for source. So, we can write source as
Source file content/incompleteness/representability-in-q/beta-function.tex
The Beta Function Lemma
In order to show that we can carry out primitive recursion if addition, multiplication, and source are available, we need to develop functions that handle sequences. (If we had exponentiation as well, our task would be easier.) When we had primitive recursion, we could define things like the “source-th prime,” and pick a fairly straightforward coding. But here we do not have primitive recursion---in fact we want to show that we can do primitive recursion using minimization---so we need to be more clever.
The beta function lemma
There is a function source such that for every sequence source, dots, source there is a number source, such that for every source, source. Moreover, source can be defined from the basic functions using just composition and regular minimization.
Think of source as coding the sequence source, and source returning the source-th element. (Note that this “coding” does not use the power-of-primes coding we're already familiar with!). The lemma is fairly minimal; it doesn't say we can concatenate sequences or append elements, or even that we can compute source from source, dots, source using functions definable by composition and regular minimization. All it says is that there is a “decoding” function such that every sequence is “coded.”
The use of the notation source is Gödel's. To repeat, the hard part of proving the lemma is defining a suitable source using the seemingly restricted resources, i.e., using just composition and minimization---however, we're allowed to use addition, multiplication, and source. There are various ways to prove this lemma, but one of the cleanest is still Gödel's original method, which used a number-theoretic fact called Sunzi's Theorem (traditionally, the “Chinese Remainder Theorem”).
Relatively prime natural numbers
Two natural numbers source and source are relatively prime iff their greatest common divisor is source; in other words, they have no other divisors in common.
Congruence modulo a natural number
Natural numbers source and source are congruent modulo source, source, iff source, i.e., source and source have the same remainder when divided by source.
Here is Sunzi's Theorem:
Sunzi theorem on simultaneous congruences
Suppose source, dots, source are (pairwise) relatively prime. Let source, dots, source be any numbers. Then there is a number source such that
Here is how we will use Sunzi's Theorem: if source, dots, source are bigger than source, dots, source respectively, then we can take source to code the sequence source. To recover source, we need only divide source by source and take the remainder. To use this coding, we will need to find suitable values for source, dots, source.
A couple of observations will help us in this regard. Given source, dots, source, let
and let
Then two things are true:
To see that the first observation, that the chosen moduli are relatively prime is true, note that if source is a prime number and source and source, then source and source. But then source divides their difference,
Since source divides source, it can't divide source as well (otherwise, the first division would leave a remainder of source). So source divides source, since source divides source. But source is at most source, and we have chosen source, so this implies that source, again a contradiction. So there is no prime number dividing both source and source. Clause the second observation, that each residue is smaller than its modulus is easy: we have source.
Now let us prove the source function lemma. Remember that we can use source, successor, plus, times, source, projections, and any function defined from them using composition and minimization applied to regular functions. We can also use a relation if its characteristic function is so definable. As before we can show that these relations are closed under Boolean combinations and bounded quantification; for example:
We can then show that all of the following are also definable without primitive recursion:
The pairing function, source;
the projection functions
the less-than relation source;
the divisibility relation source;
the function source which returns the remainder when source is divided by source.
Now define
This is the function we want. Given source as above, let
and let source. By the first observation, that the chosen moduli are relatively prime above, we know that source, source, dots, source are relatively prime, and by the second observation, that each residue is smaller than its modulus that all are greater than source. By Sunzi's Theorem there is a value source such that for each source,
and so (because source is greater than source),
Let source. Then for each source, we have
which is what we need. This completes the proof of the source-function lemma.
Exercise defining order divisibility and remainder without primitive recursion
Show that the relations source, source, and the function source can be defined without primitive recursion. You may use source, successor, plus, times, source, projections, and bounded minimization and quantification.
Source file content/incompleteness/representability-in-q/prim-rec.tex
Simulating Primitive Recursion
Now we can show that definition by primitive recursion can be “simulated” by regular minimization using the beta function. Suppose we have source and source. Then the function source defined from source and source by primitive recursion is
We need to show that source can be defined from source and source using just composition and regular minimization, using the basic functions and functions defined from them using composition and regular minimization (such as source).
Simulation of primitive recursion by regular minimization
If source can be defined from source and source using primitive recursion, it can be defined from source, source, the functions source, source, source, source, source, source, using composition and regular minimization.
Proof
First, define an auxiliary function source which returns the least number source such that source codes a sequence which satisfies
where now source is short for source. In other words, source returns the sequence source. We can write source as
Note: no primitive recursion is needed here, just minimization. The function we minimize is regular because of the beta function lemma the beta function lemma.
But now we have
so source can be defined from the basic functions using just composition and regular minimization.
Source file content/incompleteness/representability-in-q/basic-representable.tex
Basic Functions are Representable in source
First we have to show that all the basic functions are representable in source. In the end, we need to show how to assign to each source-ary basic function source a formula source that represents it.
We will be able to represent zero, successor, plus, times, the characteristic function for equality, and projections. In each case, the appropriate representing function is entirely straightforward; for example, zero is represented by the formula source, successor is represented by the formula source, and addition is represented by the formula source. The work involves showing that source can prove the relevant sentences; for example, saying that addition is represented by the formula above involves showing that for every pair of natural numbers source and source, source proves
Representability of the zero function
The zero function source is represented in source by source.
Representability of the successor function
The successor function source is represented in source by source.
Representability of projection functions
Exercise proving representability of the three initial functions
Prove that source, source, and source represent source, source, and source, respectively.
Representability of the characteristic function of equality
The characteristic function of source,
is represented in source by
The proof requires the following lemma.
Q proves inequality of distinct numerals
Given natural numbers source and source, if source, then source.
Proof
Use induction on source to show that for every source, if source, then source.
In the base case, source. If source is not equal to source, then source for some natural number source. We have an axiom that says source. By a quantifier axiom, replacing source by source, we can conclude source. But source is just source.
In the induction step, we can assume the claim is true for source, and consider source. Let source be any natural number. There are two possibilities: either source or for some source we have source. The first case is handled as above. In the second case, suppose source. Then source. By the induction hypothesis for source we have source. We have an axiom that says source. Using a quantifier axiom, we have source. Using propositional logic, we can conclude, in source, source. Using modus ponens, we can conclude source, which is what we want, since source is source.
Explain
Note that the lemma does not say much: in essence it says that source can prove that different numerals denote different objects. For example, source proves source. But showing that this holds in general requires some care. Note also that although we are using induction, it is induction outside of source.
Proof
[Proof of the proposition representing the characteristic function of equality] If source, then source and source are the same term, and source. But source, so it proves source. If source, then source. By the lemma that Q proves distinct numerals unequal, source and so also source. Thus source.
For the second part, we also have two cases. If source, we have to show that source. Arguing informally, suppose source, i.e.,
The left disjunct implies source by logic; the right contradicts source which is provable by logic.
Suppose, on the other hand, that source. Then source is
Here, the left disjunct contradicts source, which is provable in source by the lemma that Q proves distinct numerals unequal; the right disjunct entails source.
Representability of addition
Q computes each sum of numerals
Proof
We prove this by induction on source. If source, the claim is that source. This follows by axiom source. Now suppose the claim for source; let's prove the claim for source, i.e., prove that source. Note that source is just source, and source is just source. By axiom source, source. By induction hypothesis, source. So source.
Proof
[Proof of the proposition representing addition] The formula source representing source is source. First we show that if source, then source, i.e., source. But since source, source just is source, and we've shown in the lemma that Q computes sums of numerals that source.
We also have to show that if source, then
Suppose we have source. Since
we can replace the left side with source and get source, for arbitrary source.
Representability of multiplication
The multiplication function source is represented in source by
Proof
Exercise.
Q computes each product of numerals
Proof
Exercise.
Exercise proving the numeral multiplication lemma
Exercise proving representability of multiplication
Use the lemma that Q computes products of numerals to prove the proposition representing multiplication.
Explain
Recall that we use source for the function symbol of the language of arithmetic, and source for the ordinary multiplication operation on numbers. So source can appear between expressions for numbers (such as in source) while source appears only between terms of the language of arithmetic (such as in source). Even more confusingly, source is used for both the function symbol and the addition operation. When it appears between terms---e.g., in source---it is the source-place function symbol of the language of arithmetic, and when it appears between numbers---e.g., in source---it is the addition operation. This includes the case source: this is the standard numeral corresponding to the number source.
Source file content/incompleteness/representability-in-q/composition-representable.tex
Composition is Representable in source
Suppose source is defined by
where we have already found formulas source representing the functions source, and source, dots, source, respectively. We have to find a formula source representing source.
Let's start with a simple case, where all functions are source-place, i.e., consider source. If source represents source, and source represents source, we need a formula source that represents source. Note that source iff there is a source such that both source and source. (If source, then source is such a source; if such a source exists, then since source and source, source.) This suggests that source is a good candidate for source. We just have to verify that source proves the relevant formulas.
Composition satisfies the value clause of representability
Proof
Suppose source, i.e., source. Let source. Then
i.e., source.
Composition satisfies the uniqueness clause of representability
Proof
Suppose source, i.e., source. Let source. Then
i.e., source.
The same idea works in the more complex case where source and source have arity greater than source.
Representability is preserved under general composition
If source represents source in source, and source represents source in source, then
represents
Proof
Exercise.
Exercise proving representability under general composition
Using the proofs of the proposition giving the uniqueness clause for unary composition and the proposition giving the uniqueness clause for unary composition as a guide, carry out the proof of the proposition representing general composition in detail.
Source file content/incompleteness/representability-in-q/minimization-representable.tex
Regular Minimization is Representable in source
Let's consider unbounded search. Suppose source is regular and representable in source, say by the formula source. Let source be defined by source. We would like to find a formula source representing source. The value of source is that number source which (a) satisfies source and (b) is the least such, i.e., for any source, source. So the following is a natural choice:
In the general case, of course, we would have to replace source with source, dots, source.
The proof, again, will involve some lemmas about things source is strong enough to prove.
Moving successor past addition by a fixed numeral
For every constant symbol source and every natural number source,
Proof
The proof is, as usual, by induction on source. In the base case, source, we need to show that source proves source. But we have:
In the induction step, we can assume that we have shown that source. Since source is source, we need to show that source proves source. We have:
It is again worth mentioning that this is weaker than saying that source proves source. Although this sentence is true in source, source does not prove it.
Q proves that nothing is less than zero
Proof
We give the proof informally (i.e., only giving hints as to how to construct the formal derivation).
We have to prove source for an arbitrary source. By the definition of source, we need to prove source in source. We'll assume source and prove a contradiction. Suppose source. Using source, we have that source. We distinguish cases.
Case 1: source holds. From source, we have source. By axiom source of source, we have source, and hence source. But by axiom source we also have source, a contradiction.
Case 2: For some source, source. But then we have source. By axiom source, we have source, again contradicting axiom source.
Every object below a numeral is one of finitely many numerals
For every natural number source,
Proof
We use induction on source. Let us consider the base case, when source. In that case, we need to show source, for arbitrary source. Suppose source. Then by the defining axiom for source, we have source (since source).
Suppose source has that property, i.e., we have source. We need to show source. By axiom source, we have either source or that there is a source such that source. In the former case, there is nothing to show. So suppose source. Then we have source. By axiom source of source, we have source. By axiom source, we have source. But this means, by axiom source, that source, contradicting the lemma that Q proves nothing is less than zero.
Now for the inductive step. We prove the case for source, assuming the case for source. So suppose source. Again using source we can distinguish two cases: source and for some source, source. In the first case, source follows trivially. In the second case, we have source, i.e., source. By axiom source, for some source, source. By axiom source, source. By axiom source, source, and so source by axiom source. By inductive hypothesis, source. From this, we get source by logic, and so source since source.
Trichotomy against each fixed numeral
For every natural number source,
Proof
By induction on source. First, consider the case source. source by source. Let source be arbitrary. Then either source or for some source, source. In the former case, we also have source. But if source, then source by the logic of source. By source, source, so we have source, and hence source. By the definition of source in source, source. If source, then also source.
Now suppose we have
Let source be arbitrary. By source, either source or for some source, source. In the first case, we have source by source, and so source by source.
Now consider the second case, source. By the induction hypothesis, source.
The first disjunct source is equivalent (by source) to source. Suppose source has this property. If source, then also source. By source, source. Hence, source. We get source by existentially generalizing on source and keeping in mind that source. Hence, if source then source and so source.
Now suppose source, i.e., source. Suppose source is such a source, i.e., source. By logic, source. By source, source. Since source and source, source. By source, source.
Finally, assume source. Then, by logic, source, and so source.
Hence, from each disjunct of the case for source and source, we can obtain the corresponding disjunct for source and source.
Representability is preserved under regular minimization
If source represents source in source, then
represents source.
Proof
First we show that if source, then source, i.e.,
by the lemma that Q proves nothing is less than zero in case source and by the lemma enumerating the objects less than a fixed numeral otherwise.
Now let's show that if source, then source. We again sketch the argument informally, leaving the formalization to the reader.
Suppose source. From this we get (a) source and (b) source. By the lemma on trichotomy against each fixed numeral, source. We'll show that both source and source leads to a contradiction.
If source, then source from (b). But source, so source, and so source since source represents source. So we have a contradiction.
Now suppose source. Then since source by the displayed proof excluding all values below the minimum, we get source. This again contradicts (a).
Source file content/incompleteness/representability-in-q/comp-representable.tex
Computable Functions are Representable in source
Every computable function is representable in Q
Every computable function is representable in source.
Proof
For definiteness, and using the Church--Turing Thesis, let's say that a function is computable iff it is general recursive. The general recursive functions are those which can be defined from the zero function source, the successor function source, and the projection function source using composition, primitive recursion, and regular minimization. By the lemma simulating primitive recursion by regular minimization, any function source that can be defined from source and source can also be defined using composition and regular minimization from source, source, and source, source, source, source, source, source. Consequently, a function is general recursive iff it can be defined from source, source, source, source, source, source using composition and regular minimization.
We've furthermore shown that the basic functions in question are representable in source (references the proposition representing the zero function, the proposition representing the successor function, the proposition representing projection functions, the proposition representing the characteristic function of equality, the proposition representing addition, and the proposition representing multiplication), and that any function defined from representable functions by composition or regular minimization (the proposition representing general composition, the proposition representing regular minimization) is also representable. Thus every general recursive function is representable in source.
Explain
We have shown that the set of computable functions can be characterized as the set of functions representable in source. In fact, the proof is more general. From the definition of representability, it is not hard to see that any theory extending source (or in which one can interpret source) can represent the computable functions. But, conversely, in any derivation system in which the notion of derivation is computable, every representable function is computable. So, for example, the set of computable functions can be characterized as the set of functions representable in Peano arithmetic, or even Zermelo--Fraenkel set theory. As Gödel noted, this is somewhat surprising. We will see that when it comes to provability, questions are very sensitive to which theory you consider; roughly, the stronger the axioms, the more you can prove. But across a wide range of axiomatic theories, the representable functions are exactly the computable ones; stronger theories do not represent more functions as long as they are axiomatizable.
Source file content/incompleteness/representability-in-q/representing-relations.tex
Representing Relations
Let us say what it means for a relation to be representable.
Representability of relations in Q
A relation source on the natural numbers is em representable in source if there is a formula source such that whenever source is true, source proves source, and whenever source is false, source proves source.
Relations representable in Q are exactly the computable relations
A relation is representable in source if and only if it is computable.
Proof
For the forwards direction, suppose source is represented by the formula source. Here is an algorithm for computing source: on input source, dots, source, simultaneously search for a proof of source and a proof of source. By our hypothesis, the search is bound to find one or the other; if it is the first, report “yes,” and otherwise, report “no.”
In the other direction, suppose source is computable. By definition, this means that the function source is computable. By the theorem that function representability in Q is equivalent to computability, source is represented by a formula, say source. Let source be the formula source. Then for any source, dots, source, if source is true, then source, in which case source proves source, and so source proves source. On the other hand, if source is false, then source. This means that source proves
Since source proves source, source proves source, and so it proves source.
Exercise relating representability of a relation and its characteristic function
Show that if source is representable in source, so is source.
Source file content/incompleteness/representability-in-q/undecidability.tex
Undecidability
We call a theory source undecidable if there is no computational procedure which, after finitely many steps and unfailingly, provides a correct answer to the question “does source prove source?” for any sentence source in the language of source. So source would be decidable iff there were a computational procedure which decides, given a sentence source in the language of arithmetic, whether source or not. We can make this more precise by asking: Is the relation source, which holds of source iff source is the Gödel number of a sentence provable in source, recursive? The answer is: no.
Undecidability of Q
source is undecidable, i.e., the relation
is not recursive.
Proof
Suppose it were. Then we could solve the halting problem as follows: Given source and source, we know that source iff there is an source such that source, where source is Kleene's predicate from Kleene normal form theorem. Since source is primitive recursive it is representable in source by a formula source, that is, source iff source. If source then also source. If no such source exists, then source for every source. But source is source-consistent, i.e., if source for every source, then source. We know this because the axioms of source are true in the standard model source. So, source. In other words, source iff there is an source such that source, i.e., iff source. From source and source we can compute source, let source be the primitive recursive function which does that. So
This would show that source is recursive if source is. But source is not recursive, by the theorem that the halting problem is not computable, so source cannot be either.
Undecidability of first order logic
First-order logic is undecidable.
Proof
If first-order logic were decidable, provability in source would be as well, since source iff source, where source is the conjunction of the axioms of source.
Source file content/incompleteness/representability-in-q/sigma1-completeness.tex
texorpdfstringsourceSigma-1 completeness
Despite the incompleteness of source and its consistent, axiomatizable extensions, we have seen that source does prove many basic facts about numerals. In fact, this can be extended quite considerably. To understand the scope of what can be proved in source, we introduce the notions of source, source, and source formulas. Roughly speaking, a source formula is one of the form source, where source is constructed using only propositional connectives and bounded quantifiers. We shall show that if source is a source sentence which is true in source, then source (the theorem on Sigma one completeness of Q).
Bounded existential and universal formulas
A bounded existential formula is one of the form source where source is any term, which we conventionally write as source.
A bounded universal formula is one of the form source where source is any term, which we conventionally write as source.
Delta zero Sigma one and Pi one formulas
A formula source is source if it is built up from atomic formulas using only propositional connectives and bounded quantification.
A formula source is source if source where source is source.
A formula source is source if source where source is source.
Q proves each closed term equal to its standard numeral
Suppose source is a closed term such that source. Then source.
Proof
We prove this by induction on the complexity of source. For the base case, source, and source since source.
For the inductive case, let source and source be terms such that source, source, source, and source.
Then source, and we have that source by the first-order rules for identity applied to the induction hypothesis and the formula source, so we have source by the definition of numerals.
For sums we have
By the induction hypothesis and the rules for identity, source, and then source by a second application of the rules for identity. By the lemma that Q computes sums of numerals, source, so source.
Similar reasoning also works for source, using the lemma that Q computes products of numerals.
Since this exhausts the closed terms of arithmetic, we have that source for all closed terms source such that source.
Exercise for the multiplication case of closed term evaluation
Prove in detail the part of the closed term evaluation lemma involving source.
Atomic completeness for closed arithmetic terms
Proof
Given terms source and source, we fix source and source.
Suppose source. By the closed term evaluation lemma, source and source. If source, then source and hence source by the transitivity of identity. If source then source, and by the transitivity of identity again, source.
Now let source. For both cases, we rely on axiom source, which states that source for all source.
Suppose source. Then there exists some source such that source. By the closed term evaluation lemma, source and source, and by the first part of this lemma, source. By the transitivity of identity it follows that source, so source. By the right-to-left direction of source, source.
Suppose instead that source, i.e., source.
We work in source and assume that source. By the left-to-right direction of source, there is some source such that source. Since source and source, source.
By an external induction on source using source, source. If source then source, giving a contradiction via source. If source then source by source again, giving a contradiction via source. So source.
Bounded quantification over a closed term reduces to a finite combination
Suppose source is a formula, source a closed term, and source. Then
Proof
We prove the case for the bounded universal quantifier. If source then the left-hand side of the equivalence is provable in source, because there is no source by the lemma that Q proves nothing is less than zero. Similarly, we can take an empty disjunction to be simply source, which is also provable in source.
We therefore suppose that source for some natural number source. By the closed term evaluation lemma we can assume that we are working with a formula of the form source.
Suppose that source, and let source. Since source by the atomic completeness lemma, it follows by logic that source. Applying this fact source times for each source, we get that source as desired.
For the other direction, suppose that source. Working in source, suppose that source. By the lemma enumerating the objects less than a fixed numeral we have that source, so by logic it follows that source, and hence the universal claim source follows.
The proof of the equivalence for bounded existentially quantified formulas is similar.
Exercise proving the bounded existential equivalence
Give a detailed proof of the existential case in the bounded quantifier equivalence lemma.
Delta zero completeness of Q
If source is a source sentence which is true in source, then source.
Proof
We prove this by induction on formula complexity.
The base case is given by the atomic completeness lemma, so we move to the induction step. For simplicity we split the case of negation into subcases depending on the structure of the formula to which the negation is applied.
Suppose source is true in source, so source and source are true in source. By the induction hypothesis, source and source, so source by logic.
Suppose source is true in source, so either source or source is true in source. Without loss of generality, suppose the former. By the induction hypothesis source, and hence source by logic.
Suppose source is true in source, so either source is true in source or source is true in source. Without loss of generality, suppose the former holds. By the induction hypothesis source, and hence source by logic.
Suppose source is true in source, so source and source are true in source. Then source and source by the induction hypothesis. Consequently, source by logic.
Suppose that source is true in source, where source is a closed term and source. By the induction hypothesis and logic, if source is true in source for all source then source. By the bounded quantifier equivalence lemma it follows that source.
The case for the bounded existential quantifier, where we have a sentence of the form source, is similar to that for the bounded universal quantifier.
Suppose that source is true in source, where source is a closed term. This sentence is equivalent to the sentence source, with the equivalence derivable in source, so we may apply the reasoning for bounded existential quantifiers.
Similarly, suppose that source is true in source, where source is a closed term. This sentence is equivalent in source to source, and so we may apply the reasoning for bounded universal quantifiers.
Finally, suppose source is true in source. The only cases remaining are when source is atomic and when source for some source sentence source. If source is atomic then by the atomic completeness lemma, source. If source, then by logic it is provably equivalent in source to source, which is true in source since source is true in source. By the induction hypothesis we therefore have that source.
Exercise proving the existential case of Delta zero completeness
Give a detailed proof of the existential case in the Delta zero completeness lemma.
Sigma one completeness of Q
If source is a source sentence which is true in source, then source.
Proof
If source is a source sentence which is true in source, then there exists a natural number source and a variable assignment source such that source and source. By standard facts about the satisfaction relation it follows that source. But source is a source formula, so by the Delta zero completeness lemma we have that source, and hence by logic we also have that source.
Source disclosures
- TR036-SAR-001: The lemma introduces its representing formula as A and then writes A subscript f in the display. These are the same representing formula in this argument. The source notation is retained. source
- TR036-SAR-002: The last argument in this source occurrence is the numerical sequence entry, where a numeral for that entry is required as the syntactic argument of A subscript f. The earlier instance in the same paragraph uses that numeral. This notation omission is preserved and disclosed. source
- TR036-SAR-003: The introductory occurrence writes h of x and the tuple z, but the defining equations use h of the tuple x and the last recursion argument. The equations supply the parameter order used throughout the proof. The source mismatch is retained. source
- TR036-SAR-004: Here h hat returns a number coding the displayed sequence, not the sequence itself. This is the number minimized in the next display and passed to beta. The source calls it the sequence as shorthand. source
- TR036-SAR-005: The exercise cites the unary uniqueness proposition twice. Its two preceding unary proofs establish the value and uniqueness clauses, respectively. The repeated source reference is retained, and the exercise remains unsolved. source
- TR036-SAR-006: Step six is labeled induction hypothesis, but its displayed statement is the successor case being proved. The final line then combines that target with step five. These printed steps do not themselves establish the claimed induction step. The source derivation is preserved without an invented replacement proof. source
- TR036-SAR-007: The usual bounded quantifier convention also requires that the bounding term not contain the variable being quantified. The source says any term without stating that restriction. This qualification is disclosed while the original definition remains visible. source
- TR036-SAR-008: The source fixes m as the value of t subscript two but then writes that t subscript two equals the numeral for n. In that preliminary line the second numeral should be the numeral for m. The source index error is preserved and identified. source
- TR036-SAR-009: The two contradictions with a successor equaling zero cite Q subscript three. The axiom stating that zero is not a successor is Q subscript two. The original axiom labels remain in the source and reading, with this reference error disclosed. source
- TR036-SAR-010: This is the zero bound case for a universal quantifier, so the empty combination is a conjunction and is true. The source calls it an empty disjunction, which would instead be false. That word error is preserved and disclosed. source