Part III. Theory of Algorithms
[160/85%]Prove that every primitive recursive function is everywhere defined.
Prove that if the function is primitive recursive, then the following functions are primitive recursive:
(permutation of arguments);
(cyclic permutation of arguments);
(introduction of a dummy argument);
(identification of arguments).
Which functions are obtained from the simplest functions using superpositions alone?
Prove that the functions and cannot be obtained from and using superpositions and primitive recursion schemes.
Prove that the following functions are primitive recursive:
;
;
;
;
(here );
(here ).
Which function is obtained from and by means of the primitive recursion scheme:
, ;
, ?
Prove that the following functions are primitive recursive:
;
;
.
Prove the following identities:
;
;
;
.
Let be primitive recursive functions. Prove that the following functions are primitive recursive:
;
;
Prove that if is obtained from primitive recursive functions and by means of the bounded -operator, then is primitive recursive.
Let the functions have the following property: for any natural values , one and only one of these functions equals . We say that the function is defined by cases, if
Prove that if the functions are primitive recursive, then is primitive recursive.
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).
How can all partial recursive functions be obtained from one-place partial recursive functions and the functions ?
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 .
Consider the Godel function
Prove that, whatever the finite sequence of natural numbers may be, the system of equations
has at least one solution .
Prove that if the functions are primitive recursive and is obtained from them by course-of-values recursion with delays, then the function is primitive recursive.
Prove that the function enumerating the Fibonacci numbers in order:
is primitive recursive.
Let the functions and be defined as follows:
Prove that if the functions and are primitive recursive, then the functions and are primitive recursive.
Let be defined by means of simultaneous recursion:
for all .
Prove that if the functions are primitive recursive, then the functions are primitive recursive.
Prove that every primitive recursive function is general recursive.
Prove that the superposition of general recursive functions is a general recursive function.
Prove that applying the primitive recursion operator to general recursive functions yields a general recursive function.
Give an example of a general recursive function from which the -operator yields a function that is not general recursive.
Prove that if the function is partial recursive, then the following functions are partial recursive:
(permutation of arguments);
(cyclic permutation of arguments);
(introduction of a dummy argument);
(identification of arguments).
Prove that:
there are exactly partial recursive functions;
there is a partial numerical function that is not partial recursive;
there is an everywhere defined numerical function that is not general recursive.
Prove that the following functions are partial recursive:
the nowhere defined function , i.e., the function with empty domain of definition;
a function defined at finitely many points.
Prove that if the functions , and are partial recursive, then the following functions are partial recursive:
;
;
;
;
;
.
Prove that the function , arising from the partial functions and by means of the primitive recursion operator, can be obtained by means of a special recursion of the form:
and superpositions from the functions and from problem III.1.13.
Prove that the function , obtained from and by means of the primitive recursion operator, can be obtained by means of iteration and superpositions from the functions and from problem III.1.13.
Prove that the function , obtained from the partial function by means of the -operator, can be obtained from the functions and from problem III.1.13 by means of superpositions and a -operator of the special form.
Prove that the function , obtained by means of the primitive recursion operator from everywhere defined functions and , can be obtained from these functions and the functions and from problems III.1.13, III.1.17, by means of superpositions and a -operator of the special form from problem III.1.29.
Let be the expansion of the number as an infinite decimal fraction. Prove that the function is general recursive.
Let be the expansion of the number as an infinite decimal fraction. Prove that the function is general recursive.
Let be the expansion of the number as an infinite decimal fraction. Prove that the function is general recursive.
Let be the expansion of the real number as an infinite decimal fraction. Call the number general recursive (constructive), if is a general recursive function of . Prove that algebraic numbers are general recursive.
Prove that:
for ;
;
;
;
;
.
Prove that every primitive recursive function can be obtained from the functions and by means of the operations of substitution, iteration, and addition of two functions (R. Robinson's theorem).
Prove that:
;
.
Prove that:
if is defined at some point , then
if is everywhere defined, then
there exists such that is everywhere defined, but
Let . Prove that can be obtained from , and by means of the operations of substitution, inversion, and addition of two functions.
Prove that every partial recursive function can be obtained from , by means of the operations of substitution, inversion, and addition of two functions (Yu. Robinson's theorem).
Consider the following Ackermann functions:
Call an everywhere defined function -majorized, if there is a natural number such that
Prove that:
and are general recursive;
;
;
;
the simplest functions are -majorized;
a function obtained by means of superposition from -majorized functions is -majorized;
a function obtained by means of primitive recursion from -majorized functions is -majorized;
the function is not primitive recursive.
Prove that there is no primitive recursive function universal for the family of all -ary primitive recursive functions.
Prove that there is no partial recursive function universal for the family of all -ary general recursive functions.
Which function is computed by the machine with the following program of commands:
Let the machine have the following program:
Which functions does this machine compute?
Construct a Turing machine that correctly computes the function .
Construct a Turing machine that correctly computes the function .
Construct the following Turing machines:
-
Zero transfer: .
-
Right shift: .
-
Left shift: .
-
Transposition: .
-
Doubling: .
-
Cyclic shift: .
-
Copying: .
Construct a Turing machine that correctly computes the function (where ).
Let the functions and be correctly Turing computable. Show that the function is correctly Turing computable.
Let the functions and be correctly Turing computable. Show that the function is correctly Turing computable.
Construct a Turing machine for the correct computation of the functions:
;
;
;
;
;
;
;
.
Prove that:
if the function is obtained from correctly Turing computable functions and by means of primitive recursion, then is correctly Turing computable;
if the function is obtained from a correctly Turing computable function by means of the -operator, then is correctly Turing computable.
Prove that every partial recursive function is correctly Turing computable.
Prove that there exist primitive recursive functions such that:
, if and ;
for some machine that transforms the word into the word ;
, if , , .
Construct primitive recursive functions such that
Construct a primitive recursive function satisfying the condition: if , , , then , where is for , for , for .
Construct a primitive recursive function satisfying the condition: if , , , occurs in the alphabet of internal states, and in the external alphabet of the machine , then .
Construct a primitive recursive function satisfying the condition: if , , where is a machine word in the alphabet of the machine , then .
Construct a primitive recursive function satisfying the condition: if , , where is a machine word in the alphabet of the machine , then .
Construct a primitive recursive function satisfying the condition: if , then is the number of occurrences of the symbol in the word .
Prove that if the machine computes and , then:
for some ;
, where , and the functions , and are taken from problems III.2.12, III.2.16, and III.2.17.
Prove that every Turing computable function is partial recursive.
Prove that a function is Turing computable if and only if there is a Turing machine with external alphabet computing this function.
Prove that there exists a two-place partial recursive function universal for the family of all one-place partial recursive functions.
Prove that there exists an -place partial recursive function universal for the family of all -ary partial recursive functions.
Prove that the following functions are not partial recursive:
;
Prove that there exists a primitive recursive function such that
Prove that there exist primitive recursive functions such that:
;
.
Prove that the following predicates are primitive recursive:
;
;
;
divides ;
is even;
and are relatively prime;
;
.
Prove that if and are recursive (primitive recursive) predicates, then the following predicates are also recursive (primitive recursive):
;
;
;
;
;
, if is g.r. (p.r.).
Prove that if the predicate is recursive (primitive recursive), then the predicates and are also recursive (primitive recursive).
Prove that if the predicate is primitive recursive, then is a recursively enumerable set.
Prove that there exists a set that is not recursively enumerable.
Prove that any finite set of natural numbers is primitive recursive.
Prove that a set of -tuples is recursive (primitive recursive) if and only if its characteristic function is general recursive (primitive recursive).
Prove that if is a general recursive (primitive recursive) function and is a fixed number, then the set of solutions of the equation is recursive (primitive recursive).
Let the function be partial recursive but not general recursive. Prove that the domain of definition of the function is primitive recursive.
Prove that if the sets and are recursive (primitive recursive), then the sets , , are also recursive (primitive recursive).
Prove that if the sets and are recursively enumerable, then the sets and are recursively enumerable.
Prove that every primitive recursive set is recursively enumerable.
Let the sets and differ by finitely many elements. Prove that:
if is recursive, then is recursive;
if is recursively enumerable, then is recursively enumerable.
Prove that if a set and its complement are recursively enumerable, then is recursive (Post's theorem).
Let . Set
where is defined in problem III.1.14. Prove that:
is primitive recursive if and only if is primitive recursive;
is recursive if and only if is recursive;
is recursively enumerable if and only if is recursively enumerable.
Let be a nonempty set. Prove that is recursively enumerable if and only if there is a primitive recursive function such that .
Let be a nonempty set of -tuples. Prove that the set is recursively enumerable if and only if there are one-place primitive recursive functions such that
Let the general recursive function satisfy the condition: for all . Prove that the range of values of the function is recursive.
Prove that an infinite set is recursive if and only if is the range of values of a strictly increasing general recursive function.
Prove that a nonempty set is recursive if and only if is the range of values of a monotonically (not necessarily strictly) increasing general recursive function.
Prove that every infinite recursively enumerable set contains an infinite recursive subset.
Prove that every infinite recursively enumerable set can be represented as for some 1--1 general recursive function .
Prove that the graph of a general recursive function is recursive.
Prove that if the graph of a function is recursively enumerable, then the function is partial recursive.
Prove that the full preimage of a recursive set under a general recursive function is recursive.
Let be a recursive set, a general recursive function with , . Prove that is recursive.
Let be recursively enumerable sets, and a recursive set such that , . Prove that is recursive.
Let be general recursive functions, with a 1--1 function. Suppose also that for all . Prove that if is recursive, then is recursive.
Let be recursively enumerable sets. Prove that there exist recursively enumerable sets , such that , .
Prove that:
a function obtained by means of superposition from functions with recursively enumerable graph has recursively enumerable graph;
a function obtained by means of the primitive recursion scheme from functions with recursively enumerable graph has recursively enumerable graph;
a function obtained by means of the -operator from a function with recursively enumerable graph has recursively enumerable graph;
the graph of any partial recursive function is recursively enumerable.
Prove that a function is partial recursive if and only if its graph is recursively enumerable (the graph theorem).
Prove that the domain of definition of a partial recursive function is a recursively enumerable set.
Prove that the range of values of a partial recursive function is recursively enumerable.
Prove that any recursive set is recursively enumerable.
Prove that a set of -tuples is recursively enumerable if and only if its partial characteristic function is partial recursive.
Prove that:
the image of a recursively enumerable set under a partial recursive function is recursively enumerable;
the full preimage of a recursively enumerable set under a partial recursive function is recursively enumerable.
Prove that the set of solutions of the equation
is recursively enumerable, if is a partial recursive -ary function.
Prove that if is a partial recursive function, then the set is recursively enumerable.
Let be pairwise disjoint recursively enumerable sets of -tuples, partial recursive functions. Prove that , defined as follows:
is partial recursive.
Prove that any partial recursive function is representable in Kleene normal form, i.e., in the form
where is a suitable primitive recursive function, and is the function from problem III.1.13 (cf. problem III.2.25).
Prove that a partial function is representable in the form
for a suitable primitive recursive function if and only if the graph of the function is primitive recursive.
Let be defined by means of recursion on two variables:
Prove that if the functions are general recursive, then the function is general recursive.
Prove that the set
where is the function from problem III.2.25, is recursively enumerable but not recursive.
Prove that if the domain of definition of a partial recursive function is a recursive set, then has a recursive extension.
Prove that if is a partial recursive function universal for the class of all one-place partial recursive functions, then the set is recursively enumerable but not recursive.
Find a partial recursive function that has no general recursive extension.
Find a partial recursive function not representable in the form
for any general recursive function .
Prove that if is a partial recursive function universal for the class of all one-place partial recursive functions, then the set
is not recursively enumerable.
Prove that:
is a bijection between and ;
is a bijection between and ;
, , ;
, ;
;
.
Prove that:
;
.
Prove that:
is universal for all -ary partial recursive functions;
for any partial recursive function there is a primitive recursive function such that
Prove that every partial recursive function has infinitely many Kleene numbers.
Construct primitive recursive functions that give, from the Kleene numbers of the original one-place functions, the Kleene numbers of the functions obtained from the originals:
by means of superposition;
by means of inversion;
by means of iteration;
by means of taking the sum of two functions.
Prove that there is a recursively enumerable set satisfying the conditions:
if , then is a primitive recursive function;
for any primitive recursive function there is such that .
Prove that there is a general recursive function universal for the family of all one-place primitive recursive functions.
Construct primitive recursive functions that give, from the Kleene numbers of the original functions, the Kleene numbers of the functions obtained from the originals:
by means of superposition;
by means of primitive recursion;
by means of the -operator.
Prove that for any partial recursive function there is a primitive recursive function such that for any
Prove that for every partial recursive function there is a primitive recursive function such that
Prove that for every partial recursive function there is a natural number such that
(the fixed-point theorem).
Prove that for any partial recursive function there is a number such that for all .
Prove that there is a number such that:
;
.
Prove that there is a primitive recursive function such that for any , if is a general recursive function, then
Construct partial recursive functions such that:
;
;
.
Let be the family of all one-place partial functions. We call a map an effective operator, if the function is partial recursive. Prove that for any effective operator there is a partial recursive function such that .
Prove that for any partial recursive functions there is a partial recursive function satisfying the conditions:
if , then ;
if , then .
Let be a nonempty family of one-place partial recursive functions, distinct from the family of all such functions. Prove that the set
is not recursive (Rice's theorem).
Prove that the following sets are not recursive:
;
, where are fixed numbers;
;
;
.
Prove the recursive enumerability of the sets of all Kleene numbers of the following families of one-place partial recursive functions:
functions defined at the point ;
functions such that for given numbers and ;
functions with nonempty domain of definition.
Prove that every recursively enumerable set has infinitely many Post numbers.
Let be a nonempty family of recursively enumerable sets, distinct from the family of all recursively enumerable sets. Prove that the set
is not recursive (Rice's theorem).
Prove that the following sets are not recursive:
;
;
, where is a fixed number;
;
.
Prove that the sets of all Post numbers of the following families of recursively enumerable sets are recursively enumerable:
those containing a given number ;
the nonempty ones.
Prove that for any partial recursive function there is a primitive recursive function such that
Prove that for every recursively enumerable set () there is a primitive recursive function such that
Prove that there exist primitive recursive functions such that:
;
;
;
;
;
.
Prove that there exist primitive recursive functions and such that:
;
.
Prove that for any partial recursive function there is a primitive recursive function such that
Prove that for any partial recursive function there is a number such that
(the fixed-point theorem).
Prove that for any recursively enumerable set there is a primitive recursive function such that
Prove that there is a number such that:
;
;
.
Prove that the relation is reflexive and transitive.
Prove that every recursive set is -reducible to any nonempty set with nonempty complement.
Prove that if is -reducible to a recursive (recursively enumerable) set, then is recursive (recursively enumerable).
Prove that the set
is -universal.
Prove that every -universal set is not recursive.
Prove that the set
is creative.
Prove that every creative set is not recursive.
Prove that if is a creative set, , and is recursively enumerable, then is creative.
Prove that every creative set is -universal.
Prove that a set is -universal if and only if it is creative.
Prove that the set
is creative.
Prove that there is a primitive recursive function such that the Turing machine with number computes the function .
Prove that the set from problem III.3.43 of 3 is creative.