We prove the claim by structural induction for primitive recursive functions. A formula is bounded when every quantifier is a bounded quantifier; this is a Delta-0 formula. The graphs of the initial functions have quantifier-free definitions:
Suppose and the graphs of have existential bounded definitions. Introduce variables for the intermediate values and conjoin the graph formulas
Pulling all unrestricted existential witnesses to the front leaves a bounded matrix, so the required form is preserved by composition.
For primitive recursion, use Gödel beta-function sequence coding. The relation
is bounded in the language of ordered rings. Given any finite sequence , choose larger than all its entries and divisible by . The moduli are pairwise coprime, so the Chinese remainder theorem supplies with for every .
Suppose
and the induction hypothesis gives existential bounded graph formulas for and . Then exactly when there are coding values , together with a common witness bound , such that:
Write each using , bound the variables representing by , and bound every witness used by the graph formulas for and by . All quantifiers checking the displayed finite recursion are then bounded; only and the finitely many outer coding witnesses are unrestricted existential variables. Conversely, any code passing these bounded checks satisfies the recursion equations, and induction on forces its th entry to be . This proves the existential bounded representation of a primitive recursive function.
Let be a nonstandard model of the Theory of true arithmetic whose carrier is , and suppose for contradiction that the graphs of and are decidable. Because these operations are total, searching their decidable graphs computes their output on any pair of carrier elements.
Choose disjoint recursively inseparable sets that are computably enumerable, with primitive recursive stage predicates and . Let be nonstandard. True arithmetic proves finite sequence coding, so inside there is an element such that, for every ,
where is the th prime. This can be obtained by taking the product of the selected primes internally; it is the same finite coding mechanism as Gödel beta-function sequence coding.
Define the external set
This set is decidable from the assumed operations. For fixed standard , compute the model element . The division algorithm in gives unique and a remainder among the finitely many standard residues
such that . Dovetail the search over and these finitely many residues, using the computable model operations. It eventually finds the unique remainder, and exactly when that remainder is zero.
If , it enters at a standard stage below the nonstandard , so . If , the true arithmetical sentence asserting that the two enumerations are disjoint holds in , so cannot enter the coded -set below ; hence . Thus
contradicting recursive inseparability. The two operation graphs therefore cannot both be decidable. This is the recursively inseparable-set proof of Tennenbaum theorem.