The primitive recursive functions are the smallest class containing zero, successor, and projections and closed under composition and primitive recursion. Addition is defined by
and multiplication by
Thus both are primitive recursive directly from the definition. Inductively,
is primitive recursive. For fixed ,
so is primitive recursive.
Encode by . The exponent functions decode the coordinates. Therefore
is a primitive recursive one-number encoding of ; the finite product is built from the primitive recursive multiplication and exponentiation just established.
The Fibonacci function is primitive recursive. Encode the pair by
Starting with , primitive recursion using
constructs , and .
There is no universal exponential bound of the stated form. The primitive recursive function
exceeds for every fixed once is sufficiently large.
Define and . This is primitive recursion from a projection and successor, so is primitive recursive function.
Predecessor function Created 2026-10-03 Updated 2026-10-06
The predecessor function on the nonnegative integers is and . This is a primitive recursive function by primitive recursion from the zero and projection functions.
A valid finite construction expression from the initial functions of recursion theory by function composition in recursion theory and primitive recursion. Its extension is a primitive recursive function. The construction grammar supplies both a decidable syntax and a total computable interpreter, but no uniformly primitive recursive interpreter for all valid codes.
A pairing function whose forward map and two inverse coordinate functions are primitive recursive functions. For example, the Cantor pairing function has such inverses: find the diagonal index by bounded minimization over integers at most the encoded value, then recover by subtraction. It enables finite tuples to be decoded within a primitive recursive construction.