[step:Realize the induction schema by primitive recursion]
Let $B(x,a)$ be a formula with displayed induction variable $x$ and remaining parameters $a=(a_1,\dots,a_m)$. An instance of the induction schema has the form
\begin{align*}
B(0,a)\to \bigl(\forall x\,(B(x,a)\to B(x+1,a))\bigr)\to \forall x\,B(x,a).
\end{align*}
We define a partial recursive function
\begin{align*}
R:\mathbb{N}^3\rightharpoonup\mathbb{N}
\end{align*}
by primitive recursion in the third argument:
\begin{align*}
R(b,s,0) \simeq b.
\end{align*}
\begin{align*}
R(b,s,n+1) \simeq \varphi_{\varphi_s(n)}(R(b,s,n)).
\end{align*}
Closure of partial recursive functions under primitive recursion and composition gives an index for $R$ (citing a result not yet in the wiki: closure of partial recursive functions under primitive recursion and composition).
Fix $b,s\in\mathbb{N}$ such that $b\Vdash B(0,a)$ and $s\Vdash \forall x\,(B(x,a)\to B(x+1,a))$. We prove by induction on $n\in\mathbb{N}$ that $R(b,s,n)\downarrow$ and $R(b,s,n)\Vdash B(\bar n,a)$. For $n=0$, this is the defining equation $R(b,s,0)\simeq b$ and the assumption on $b$. If the assertion holds at $n$, then $s\Vdash \forall x\,(B(x,a)\to B(x+1,a))$ implies $\varphi_s(n)\downarrow$ and
\begin{align*}
\varphi_s(n)\Vdash B(\bar n,a)\to B(\overline{n+1},a).
\end{align*}
Applying this implication realizer to $R(b,s,n)\Vdash B(\bar n,a)$ gives
\begin{align*}
\varphi_{\varphi_s(n)}(R(b,s,n))\downarrow
\end{align*}
and
\begin{align*}
\varphi_{\varphi_s(n)}(R(b,s,n))\Vdash B(\overline{n+1},a).
\end{align*}
By the recursive definition of $R$, this is exactly $R(b,s,n+1)$. Therefore $R(b,s,n)\Vdash B(\bar n,a)$ for every $n\in\mathbb{N}$.
Using the $s$-$m$-$n$ theorem once more, first fix $b$ as a parameter in the partial recursive map $(b,s,n)\mapsto R(b,s,n)$, and then fix $s$ as a parameter in the resulting binary map. Thus there is an index $e_{\mathrm{ind}}$ for a unary partial recursive function with the following curried behaviour: for every $b\in\mathbb{N}$, $\varphi_{e_{\mathrm{ind}}}(b)$ is defined and is an index for a unary partial recursive function such that, for every $s\in\mathbb{N}$, $\varphi_{\varphi_{e_{\mathrm{ind}}}(b)}(s)$ is defined and is an index for the map
\begin{align*}
n\mapsto R(b,s,n).
\end{align*}
If $b\Vdash B(0,a)$, then $\varphi_{e_{\mathrm{ind}}}(b)$ realizes
\begin{align*}
\bigl(\forall x\,(B(x,a)\to B(x+1,a))\bigr)\to \forall x\,B(x,a).
\end{align*}
If also $s\Vdash \forall x\,(B(x,a)\to B(x+1,a))$, then the index $\varphi_{\varphi_{e_{\mathrm{ind}}}(b)}(s)$ realizes $\forall x\,B(x,a)$ by the induction on $n$ just proved. Hence $e_{\mathrm{ind}}$ realizes the curried implication
\begin{align*}
B(0,a)\to \bigl(\forall x\,(B(x,a)\to B(x+1,a))\bigr)\to \forall x\,B(x,a).
\end{align*}
[/step]