Background: The following three functions (which map naturals to naturals) form a "complete basis" for universal computation, in the sense that any Turing machine can be simulated by iterating some finite composition of instances of these functions with some initial value of $n$: $$\begin{align} f_0(n) & = n + [n>0][n\ \text{even}]\ 2^{|n|_2} \\ f_1(n) & = n + [n>0][n\ \text{even}]\ 2^{|n|_2 + 1}\\ f_2(n) & = [n>0] \left\lfloor\frac{n-1}{2}\right\rfloor \end{align}$$ where $[...]$ are Iverson brackets and $|n|_2 = \lfloor\log_2(n+1)\rfloor$ is the number of digits in the bijective base-2 representation of n.
Question: Does the same result hold for the following three functions (which are approximations to $f_0,f_1,f_2$ respectively)? ... $$\begin{align} \hat{f}_0(n) & = n + [n \text{ is even}]\ n &= 2n \text{ IF }n \text{ is even ELSE }n\\ \hat{f}_1(n) & = n + [n \text{ is even}]\ 2n &= 3n\text{ IF }n \text{ is even ELSE }n\\ \hat{f}_2(n) & = \left\lfloor\frac{n}{2}\right\rfloor \end{align} $$
(Or perhaps the number of functions can be reduced without introducing undue complexity?)
NB: I don't know if this can be related, but it can be shown that the functions
$$\begin{align} f(n) &= 3 n\\ g(n) &= \left \lfloor \frac{n}{2} \right \rfloor \end{align}$$
are such that for all $x,y \in \mathbb{N_+}$, there exists a composition $F = g \circ g \circ \cdots \circ g \circ f \circ f \cdots \circ f $ with $\ y = F(x)$.
Motivation: The functions $f_0,f_1,f_2$ are designed to arithmetically mimic the exact behavior of three extremely simple operations on binary strings, which are nevertheless sufficient to simulate any Turing machine. It seems likely that simpler arithmetic operations can accomplish the same thing, although the proof may be elusive.
while c not in H: c -> t(c)
, wherec
is the complete configuration of the system,H
is a set of halting configurations, andt()
is the so-called Turing transformation which is primitive recursive (and hence total). I.e., a TM computes a partial function by means of iterations of a (total) primitive recursive function. – r.e.s. Sep 01 '15 at 03:09