Suppose $g\colon \mathbb{N}^k \to \mathbb{N}$, $v_1,\ldots,v_r\colon \mathbb{N}^k \to \mathbb{N}^k$ and $h\colon \mathbb{N}^{k+r+1} \to \mathbb{N}$ are all primitive recursive, and define $f\colon \mathbb{N}^{k+1} \to \mathbb{N}$ by $$ \begin{aligned} f(0,\underline{x}) &= g(\underline{x}) \cr f(n+1,\underline{x}) &= h(n, \underline{x}, f(n,v_1(\underline{x})),\ldots, f(n,v_r(\underline{x}))) \end{aligned} $$ (note that for $r=1$ and $v_1$ the identity function, this is precisely a definition by primitive recursion).
If I am not mistaken, $f$ is then primitive recursive as well¹.
Questions:
Does this form of recursion have a name²? (Or if not exactly this, then a more general form which includes the one above and which is satisfied by p.r. functions.)
Is there some standard reference for this fact?
Is there a proof that isn't horribly tedious (contra the one sketched in footnote 1 below), based on the standard textbook definition of p.r. functions (e.g., as found in Wikipedia)?
Sketch of proof: from $n$ and $x$ we can primitive recursively construct some encoding of the full $r$-ary tree of depth $n$ of values $v_{i_1}(v_{i_2}(\cdots(v_{i_s}(\underline{x}))\cdots))$, since this is requires at most exponentially many computations, and then evaluate $f(i,\underline{y})$ on each node $\underline{y}$ at depth $n-i$ in this tree.
Note: I thought it was “course-of-values” recursion, but “course-of-values” actually refers to the so-to-speak dual case when $f(n,\underline{x})$ refers to $f(i,\underline{x})$ for several different $i<n$ but for the same $\underline{x}$ rather than, as is the case here, $f(n-1,\underline{v})$ for several different $\underline{v}$.
Edit+comment: answering a comment by Saroupille, the $v_i$ take values in $\mathbb{N}^k$ (rather than, as I had initially written, in $\mathbb{N}$). Maybe I should also have allowed $v_i$ bo take $n$ as input in the second formula, but I guess that would be easy to fix anyway. Probably more subtle, and maybe also desirable, is the case where we allow $v_i$ to take expressions in $f(n,\ldots)$ as input — but let me refrain from editing the question any further.