Lukas' Notes

Definition

Primitive-Recursive Function

A function is primitive-recursive if it can be constructed in finitely many steps from the following basic functions using composition and primitive recursion:

The construction rules are:

  • Composition: from primitive-recursive and , construct
  • Primitive recursion: from primitive-recursive and , construct

Here, denotes the input tuple. Thus the primitive-recursive functions form the smallest class containing the basic functions and closed under these two rules.

Totality and Computability

Every primitive-recursive function is total and computable: the basic functions terminate, composition combines terminating computations, and recursion on performs exactly recursive steps after the base case.

The converse does not hold: some total computable functions, such as the Ackermann function, are not primitive-recursive.

Example