Software
We devise a coding: (write $\op{code}(k)$ for the encoding of $k$)
-
Instruction: $\op{code}((j, +, k)) = 2^j 5^k$ and $\op{code}((j, -, k, l) ) = 2^j35^k7^l$.
-
Program: $\op{code}((i_1, \ldots, i_n)) = 2^n 3^{\op{code}(i_1)} 5^{\op{code}(i_2)} \ldots p_{n+1}^{i_n}$.
Write $f_{n,k}: \N^k \dashrightarrow \N$ for the partial function computed by machine encoded by $n$. If $n$ does not code a program, define $\op{dom}(f_{n,k}) = \emptyset$.
The software principle: there is a universal register machine $U$ such that $$ \begin{align*} f_{U,3}(n, k, m) = f_{n,k}((m)_1, \ldots, (m)_k). \end{align*} $$ (Proof)
We can then extend notation: for arbitrary $v\in \mathbb{W}$, define $f_{v,k}(\v w) = f_{U,2}(v,\op{code}(\v w))$.