Closure properties of general and partial recursive functions
[29/79%]Prove that if the function is partial recursive, then the function is also partial recursive for every permutation of the numbers .
Let be a partial recursive function, and let and be natural numbers. Prove that the function
is also partial recursive.
Show that the following functions are partial recursive:
— the integer part of the -th root of ;
;
— the number of distinct divisors of , ;
, if is a prime number, and otherwise;
— the -th prime number in increasing order, ;
— the sum of the divisors of ; take ;
— the -th digit in the base- representation of : that is, if , where , then
— the greatest common divisor of and .
Prove that if the values of a general recursive function are changed on a finite set, then the resulting function is also general recursive.
Let be a general recursive function that is one-to-one on . Prove that the inverse function is also general recursive, by explicitly constructing it.
Let be a general recursive function. Prove that the function
is general recursive.
Prove that if the functions and are general recursive, then the function is partial recursive.
Prove that if the function is a p.r.f., then the function is also a p.r.f. for every permutation of the numbers .
Let be a p.r.f., and let and be natural numbers. Prove that the function
is also a p.r.f.
Find the value and for and the following functions . Determine for which of them holds:
;
;
;
;
.
Determine for which of the following functions we have , where and :
;
;
;
;
.
Determine the p.r.f. whose value equals when is a power of two, and is undefined otherwise.
On the Euclidean coordinate plane, a disk is given, centered at the point with radius 50. Prove that the following function is partially recursive: is defined if and only if the point lies outside the disk , and its value equals the integer part of the distance from to the disk (that is, to the point of the disk closest to ).
Prove that if the values of a g.r.f. are changed on a finite set, then the resulting function is also a g.r.f.
Let be a g.r.f. that is one-to-one on . Prove that the inverse function is also a g.r.f., by explicitly constructing it.
Let be a g.r.f. Prove that the function
is general recursive.
Prove that if the functions , and are general recursive, then the function
\begin{aligned} & F\left(x_{1}, \ldots , x_{n}\right)=\min \left\{ y: f\left(x_{1}, \ldots , x_{n}, y\right)=0 \text{ or } \\ & \quad g\left(x_{1}, \ldots , x_{n}, y\right)>h\left(x_{1}, \ldots , x_{n}, y\right)\right\} \end{aligned}is a p.r.f.
Design a multi-tape Turing machine that "adds" two strings over ; that is, on inputs , compute such that .
Complete the proof of the primitive recursion part of Theorem 4.47. That is, given multi-tape DTM's and computing functions and , design a multi-tape DTM that computes the function which is defined from functions and by primitive recursion.
Prove that every partial recursive function can be obtained from initial functions with a finite number of applications of composition and primitive recursion operations and a single application of unbounded minimization operation.
Let , and the th digit to the right of the decimal point of the decimal expansion of , where . Show that is a recursive function. Is a primitive recursive function?
For any partial recursive function , we write to denote its domain . Let be three partial recursive functions.
Show that there exists a partial recursive function such that , and for each , or or .
Show that there does not always exist a partial recursive function such that , and for each or or , and for each .
Define
Is a partial recursive function? Prove your answer.
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 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:
;
;
;
;
;
.
Let be pairwise disjoint recursively enumerable sets of -tuples, partial recursive functions. Prove that , defined as follows:
is partial 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.