Ackermann function

[5/60%]
Show
LaTeX

For the Ackermann function

?
(a)

find A(1,y)A(1, y) and A(2,y)A(2, y) for all natural numbers yy;

(b)

prove that A(3,y)=2y+3−3A(3, y)=2^{y+3}-3.

The Ackermann function is defined as follows:

A(0,y)=y+1A(x+1,0)=A(x,1)A(x+1,y+1)=A(x,A(x+1,y)) \begin{aligned} A(0, y) & =y+1 \\ A(x+1,0) & =A(x, 1) \\ A(x+1, y+1) & =A(x, A(x+1, y)) \end{aligned}
?
(a)

Find A(1,y)A(1, y) and A(2,y)A(2, y) for all natural yy.

(b)

Prove that A(3,y)=2y+3−3A(3, y)=2^{y+3}-3.

(c)

Prove that the Ackermann function is general recursive. Hint. Using the functions KK and K′K^{\prime } (Problem 581 on the facing page), construct sequences (x1,x2,…,xn,z)(x_{1}, x_{2}, \ldots , x_{n}, z) such that ⊛\circledast

A(x,y)=A(x1,A(x2,…,A(xn,z)…)). A(x, y)=A\left(x_{1}, A\left(x_{2}, \ldots , A\left(x_{n}, z\right) \ldots \right)\right).

(Ackermann function) Define a function A:N2→NA: \mathbf{N}^{2} \rightarrow \mathbf{N} as follows:

A(0,n)={n+1 if n≤1n+2 otherwise A(m+1,0)=1,A(m+1,n+1)=A(m,A(m+1,n)) \begin{aligned} A(0, n) & =\begin{cases} n+1 \quad \text{ if } n \leq 1 \\ n+2 \quad \text{ otherwise } \end{cases} \\ A(m+1,0) & =1, \\ A(m+1, n+1) & =A(m, A(m+1, n)) \end{aligned}
?
(a)

Let Am(n)=A(m,n)A_{m}(n)=A(m, n). What is A2(n)A_{2}(n)? A3(n)A_{3}(n)? Show that each AmA_{m} is primitive recursive.

(b)

Show that AA is a recursive function.

(c)

Show that for every primitive recursive function f:N→Nf: \mathbf{N} \rightarrow \mathbf{N}, there exists an integer k≥0k \geq 0 such that f(n)≤Ak(n)f(n) \leq A_{k}(n) for almost all n≥0n \geq 0 (i.e., for all but finitely many n≥0n \geq 0).

(d)

Show that AA is not primitive recursive.

Recall the Ackermann function AA defined in Exercise 8 of Section 4.8.

?
(a)

Compare the function f(n)=A(n,n)f(n)=A(n, n) with 22n2^{2^{n}}.

(b)

Compare the function g(n)=max⁡{k∣A(k,k)≤n}g(n)=\max \left\{ k \mid A(k, k) \leq n\right\} with log⁡∗n\log^{*} n.

Consider the following Ackermann functions:

B(0,y)=2+y;B(x+1,0)=sg⁡x;B(x+1,y+1)=B(x,B(x+1,y));A(x)=B(x,x). B(0, y) = 2+y; \qquad B(x+1, 0) = \operatorname {sg} x; \qquad B(x+1, y+1) = B(x, B(x+1, y)); \qquad A(x) = B(x, x).

Call an everywhere defined function f(x1,…,xn)f(x_{1}, \ldots , x_{n}) BB-majorized, if there is a natural number mm such that

f(x1,…,xn)<B(m,max⁡(x1,…,xn)+3). f(x_{1}, \ldots , x_{n}) < B(m, \max (x_{1}, \ldots , x_{n}) + 3).

Prove that:

?
(a)

B(x,y)B(x, y) and A(x)A(x) are general recursive;

(b)

B(n+2,x+1)≥2x+1B(n+2, x+1) \geq 2^{x+1};

(c)

B(n+1,x+2)≥B(n+1,x+1)B(n+1, x+2) \geq B(n+1, x+1);

(d)

B(n+2,x+3)≥B(n+1,x+4)B(n+2, x+3) \geq B(n+1, x+4);

(e)

the simplest functions are BB-majorized;

(f)

a function obtained by means of superposition from BB-majorized functions is BB-majorized;

(g)

a function obtained by means of primitive recursion from BB-majorized functions is BB-majorized;

(h)

the function AA is not primitive recursive.

References

[ДДК+21a] Дехтярь М.И., Дудаков С.М., Карлов М.И., Карлов Б.Н. Лекции по дискретной математике. 3-е изд., Тверской государственный университет, 2021.
[ДДК+21b] Дехтярь М.И., Дудаков С.М., Карлов М.И., Карлов Б.Н. Задачник по дискретной математике. 2-е изд., Тверской государственный университет, 2021.
[DuKo01] Du D., Ko K. Problem Solving in Automata, Languages, and Complexity. John Wiley & Sons, 2001.
[LaMa02] Lavrov I.A., Maksimova L.L. Задачи по теории множеств, математической логике и теории алгоритмов. 5-е изд., Физматлит, 2002.