Literature.
[1] J. Komara. Recursive Functions. Downloadable lecture notes available through the web page of the course.
[2] J. Komara and P. J. Voda. Lecture Notes in Theory of Computability. 2001.
[3] J. Komara and P. J. Voda. Metamathematics of Computer Programming. 2001.
[4] I. Korec. Úvod do teórie algoritmov. Skriptá MFF UK, 1981.
Exercise. (bonus 5 points) Show that if , , and are all primitive recursive then so is defined by
Hint. Derive the function as primitive recursive with the help of its course of values function:
Local update. The 4-ary function updates the partial computation tree for at position by a correct value. Show that the function is primitive recursive.
[CL] Remark. Clausal language allowed in the definition of this function.
Global update. The 4-ary function updates the partial computation tree for at each position by a correct value. Show that the function is primitive recursive.
Perfect binary trees. The function creates a perfect binary tree of the depth . Show that the function is primitive recursive.