Construction and properties of pairing functions
[13/77%]The lattice points in the closed first quadrant are enumerable. I.e. there exist functions defined for ordered pairs of non-negative integers that combine the following two properties:
The values assumed by form the set of numbers .
The function takes different values at distinct points; i.e. if are integers, , , , , , then .
There even exist rational entire functions that enumerate the lattice points, i.e. that have the properties (1) (2). An example is the function
and the function arising from it by interchanging and [the lattice points are counted successively on the line segments
Let be a rational entire function of degree
where denotes a rational entire homogeneous function of degree . If enumerates the lattice points, then clearly for , . If for , , and enumerates the lattice points, then the degree of is
[The number of lattice points contained inside the contour line is related to the enclosed area.]]
Suppose that all pairs of natural numbers are ordered by increasing sum , and pairs with the same sum are ordered by increasing coordinate . This order looks as follows:
Let be the number of the pair in this order (we take the pair to have number 0). Then the function enumerates all pairs of natural numbers bijectively.
Prove that .
Find the inverse functions and such that the equalities hold, and hence .
Show that all these functions are general recursive.
Show that the function from Problem 281 on page 381 is general recursive. Hint. First show that the function is general recursive.
Suppose that all pairs of natural numbers are ordered by increasing sum , and pairs with the same sum — by increasing coordinate . This order looks like this:
Let be the number of the pair in this order (we take the pair (0,0) to have number 0). Then the function numbers all pairs of natural numbers in a one-to-one fashion.
Prove that .
Find the inverse functions and such that the equalities hold, and consequently .
Show that all these functions are general recursive.
Another function that allows one to number pairs of natural numbers looks like this: . Prove that itself and the inverse functions and to it (that is, and ) are general recursive.
Given a one-to-one numbering of pairs (for example, from Problems 578 or 580), one can inductively number ordered -tuples of arbitrary length:
Prove that the function is one-to-one.
Prove that the functions are general recursive.
Prove that the inverse function to is also general recursive:
Yet another way of coding finite sequences of natural numbers uses binary notation: the sequence is coded by the binary number (sequences that arise from one another by adding or removing trailing zeros are not distinguished).
Find the codes of the sequences and .
Determine of which sequences the numbers 169 and 19783 are codes.
Prove that the function is general recursive. Here is the code of a sequence, is the index of an element, and the value of the function equals that element.
Show that the following functions are pairing functions.
.
, where if , and if .
Let are nonnegative integers. Prove that if , then .
Show that the function , defined by
is a pairing function.
Suppose
with the ordering .
and .
Investigate .
How can all partial recursive functions be obtained from one-place partial recursive functions and the functions ?
Prove that:
is a bijection between and ;
is a bijection between and ;
, , ;
, ;
;
.