Ackermann function is not primitive recursive
In this entry, we show that the Ackermann function A(x,y), given by
A(0,y)=y+1,A(x+1,0)=A(x,1),A(x+1,y+1)=A(x,A(x+1,y)) |
is not primitive recursive. We will utilize the properties of A listed in this entry (http://planetmath.org/PropertiesOfAckermannFunction).
The key to showing that A is not primitive recursive, is to find a properties shared by all primitive recursive functions, but not by A. One such property is in showing that A in some way “grows” faster than any primitive recursive function. This is formalized by the notion of “majorization”, which is explained here (http://planetmath.org/SuperexponentiationIsNotElementary).
Proposition 1.
Let A be the set of all functions majorized by A. Then PR⊆A.
Proof.
We break this up into three parts: show all initial functions are in 𝒜, show 𝒜 is closed under functional composition
, and show 𝒜 is closed under primitive recursion. The proof is completed by realizing that 𝒫ℛ is the smallest set satisfying the three conditions.
In the proofs below, 𝒙 denotes some tuple of non-negative integers (x1,…,xn) for some n, and x=max{x1,…,xn}. Likewise for 𝒚 and y.
-
1.
We show that the zero function, the successor function, and the projection functions are in 𝒜.
-
–
z(n)=0<n+1=A(0,n), so z∈𝒜.
-
–
s(n)=n+1<n+2=A(1,n), so s∈𝒜.
-
–
pkm(x1,…,xk)=xm≤x<x+1=A(0,x), so pkm∈𝒜.
-
–
-
2.
Next, suppose g1,…,gm are k-ary, and h is m-ary, and that each gi, and h are in 𝒜. This means that gi(𝒙)<A(ri,x), and h(𝒚)<A(s,y). Let
f=h(g1,…,gm),and Then , showing that .
-
3.
Finally, suppose is -ary and is -ary, and that . This means that and . We want to show that , defined by primitive recursion via functions and , is in .
We first prove the following claim:
Pick , and induct on . First, . Next, suppose . Then , where . By the induction hypothesis, together with the fact that , we see that . Thus, , proving the claim.
To finish the proof, let . Then, by the claim, , showing that .
Since is by definition the smallest set containing the initial functions, and closed under composition and primitive recursion, . ∎
As a corollary, we have
Corollary 1.
The Ackermann function is not primitive recursive.
Proof.
Otherwise, , which is impossible. ∎
Title | Ackermann function is not primitive recursive |
---|---|
Canonical name | AckermannFunctionIsNotPrimitiveRecursive |
Date of creation | 2013-03-22 19:07:29 |
Last modified on | 2013-03-22 19:07:29 |
Owner | CWoo (3771) |
Last modified by | CWoo (3771) |
Numerical id | 11 |
Author | CWoo (3771) |
Entry type | Theorem |
Classification | msc 03D75 |
Related topic | AckermannFunctionIsTotalRecursive |