Pairing and tupling functions are primitive recursive
[6/83%]Show that the function from Problem 547 on p. 168 is a g.r.f.
Hint. First show that the function is a g.r.f.
Let be defined by , where is the th prime.
Show that the is onto, primitive recursive and monotone. Also show that is almost one-to-one in the sense that if , and if , then for all , and for all .
Verify that if we use as a Gödel numbering, then the functions size, item and the functions of Example 4.35 all remain primitive recursive. (Here, is the number of items in the sequence , excluding the trailing zeros.)
Show that the function
is a Gödel numbering.
Prove that the function
(the Cantor pairing function) is a bijection between and (i.e., it numbers pairs of natural numbers).
Let and be such that
Prove that and are primitive recursive and , .
For each define the functions
(see problem III.1.13).
Let () be such that .
Prove the identities
Prove that the functions and are primitive recursive.
Prove that the functions are bijections between and (i.e., they number -tuples of natural numbers).
Call a one-place function a function of large spread, if it takes on every natural number as its value infinitely many times.
Let the pair of functions map onto . Prove that and are functions of large spread.
Let be an arbitrary primitive recursive function of large spread. Construct a primitive recursive function so that the functions and form a bijection between and .