Definition

Primitive recursion is an operation for defining a function on the natural numbers by giving its value at and a rule for computing its value at from its value at .

For each , let be the smallest family of total functions containing the initial functions and closed under composition and primitive recursion:

Equivalently, if and , then the function defined by primitive recursion satisfies and .

Interpretation

These operations are interpreted as follows:

Properties

Primitive recursion preserves totality: if and are total, then is total.

Starting from the initial functions and closing under composition and primitive recursion yields the class of primitive recursive functions. Allowing in addition unbounded minimization yields the larger class of partial computable functions.

Examples

Addition can be defined by primitive recursion on the second argument:

Partial Computable Function
Unbounded Minimization

References

cutland1980-computability