Literature.
[1] J. Komara. Specification and Verification of Programs. Online.
[2] Ján Kľuka. Úvod do deklaratívneho programovania. Online.
[3] Ján Komara. Recursive Functions. Online.
The 'inverse' of the triangular function. Define the unary function such that
Hint. Derivation is based on the following property of triangular numbers
Projections. Define the projection functions of the pairing function which are unary functions and such that
Exercise. (2 points) Find a primitive recursive definition of the following function
which does not contain any application of .
Arithmetization of tuples. Define the binary predicate holding if the number is the code of an -tuple. Note that this includes the case when or . Find an explicit definition of the predicate!