Composition-only recursive function (source code)

= Composition-only recursive function

The functions generated from the initial functions using composition alone are exactly
$$
f(\mathbf x)=c
\quad\hbox{or}\quad
f(\mathbf x)=x_i+c
$$
for a constant $c\in\mathbb N$. Structural induction proves necessity, and iterating the successor function on zero or a projection proves sufficiency.