The Recursion Theorem
The recursion theorem is the fundamental result enabling recursive definitions on natural numbers. It formalizes the intuitive idea that we can define a sequence by specifying its first term and a rule for computing subsequent terms from previous ones.
Let be any set, a fixed element, and a function. Then there exists a unique function such that:
This theorem guarantees that recursive definitions are legitimate: they define actual functions rather than circular pseudo-definitions. The proof requires showing both existence and uniqueness.
Existence: We construct as a union of approximations. Define a partial recursive function to be a function for some such that:
Let be the set of all partial recursive functions. We claim:
- For each , there is at most one partial recursive function with domain
- If and are both partial recursive, then and agree on
Proof of (1): By induction on . For , the empty function is unique. If are partial recursive, then by induction . But then .
Proof of (2): Similar, by induction on .
Now define , the union of all partial recursive functions. By (2), this is well-defined as a function. By (1), for each , there is exactly one partial recursive , so is defined. Thus .
Moreover, satisfies the recursion equations: by definition, and because any partial recursive function extending to must satisfy this.
Uniqueness: Suppose both satisfy the recursion. Define . Then since . If , then , so , thus . By induction, , so .
Fix and define by the recursion theorem with:
This gives and . Denote . This defines addition for fixed , and we can prove satisfies the expected properties.
A more general version allows the recursive step to depend on both the index and the previous value. Given and , there exists a unique with:
The proof is similar, incorporating the index into the partial functions.
To define exponentiation , fix and use:
- (since )
Then and , giving .
An even more general form allows the value at to depend on all previous values. Given (where is the set of finite sequences from ), there exists a unique such that:
where .
Define by course-of-values recursion:
This is formalized by defining appropriately on sequences: , , and for sequences ending in .
The basic recursion theorem, general recursion, and course-of-values recursion are all equivalent in the sense that each can be derived from any other. They are simply different presentations of the same fundamental property of .
The recursion theorem is not an axiom but a theorem proved from the ZFC axioms, particularly replacement and infinity. It reflects the well-founded nature of : every natural number is reached in finitely many steps from 0, so recursive definitions terminate and produce well-defined values.
The class of primitive recursive functions consists of all functions that can be built from:
- Zero function:
- Successor:
- Projection:
- Composition: From and , form
- Primitive recursion: From and , form by and
This class includes addition, multiplication, exponentiation, factorials, and many other familiar functions. However, the Ackermann function is computable but not primitive recursive, showing that recursion can go beyond primitive recursion.
The recursion theorem provides the rigorous foundation for all inductive definitions in mathematics. From defining arithmetic operations to constructing complex algorithms, recursion is indispensable, and the recursion theorem ensures that such definitions are mathematically sound.