We first establish the lifted substitution and the second claim.
\begin{aligned}
&\semtyeq[\Gamma', x:\ensuremath{\texttt{Nat}}]{q(\sigma)}{q(\sigma')}{\Gamma, x:\ensuremath{\texttt{Nat}}}
&& \text{(by \Cref{lem:sem-q} on $\sigma \approx \sigma'$ and $\ensuremath{\texttt{Nat}}$,
using $\ensuremath{\texttt{Nat}}[\sigma] = \ensuremath{\texttt{Nat}}$)} \\
&(\Gamma', x:\ensuremath{\texttt{Nat}}) \approx (\Gamma', x:\ensuremath{\texttt{Nat}}) \searrow R_{\Gamma', x:\ensuremath{\texttt{Nat}}}
&& \text{(carried by the lifted substitution)} \\
&(\Gamma, x:\ensuremath{\texttt{Nat}}) \approx (\Gamma, x:\ensuremath{\texttt{Nat}}) \searrow R_{\Gamma, x:\ensuremath{\texttt{Nat}}}
&& \text{(carried by the lifted substitution)} \\
&\text{both head PERs are $\textsf{Nat}$}
&& \text{(by \textsc{U-Nat})} \\
&(\rho, a/x) \approx (\rho', a'/x) \in R_{\Gamma', x:\ensuremath{\texttt{Nat}}}
&& \text{(by \textsc{Ctx-Ext}'s biconditional)}
\end{aligned}
Apply \semtyeq[\Gamma, x:\ensuremath{\texttt{Nat}}]{T}{T'}{\ensuremath{\texttt{Ty}_{i}}} at \Gamma', x:\ensuremath{\texttt{Nat}}, the lifted substitution, and the env-pair above:
\begin{aligned}
&\ensuremath{\llbracket T[q(\sigma)] \rrbracket((\rho, a/x))} \approx
\ensuremath{\llbracket T' \rrbracket(\ensuremath{\llbracket q(\sigma') \rrbracket((\rho', a'/x))})} \in \mathcal{U}_i \searrow R_T
&& \text{(outer-left vs inner-right of the four-value pattern)}
\end{aligned}
Bridge \ensuremath{\llbracket q(\sigma') \rrbracket((\rho', a'/x))} to (\ensuremath{\llbracket \sigma' \rrbracket(\rho')}, a'/x):
\begin{aligned}
&\ensuremath{\llbracket q(\sigma') \rrbracket((\rho', a'/x))} \approx (\ensuremath{\llbracket \sigma' \rrbracket(\rho')}, a'/x)
\in R_{\Gamma, x:\ensuremath{\texttt{Nat}}}
&& \text{(by \textsc{Ctx-Ext}, tail via $\sigma'$ at $\Uparrow$, head $a' \approx a'$)} \\
&\ensuremath{\llbracket T' \rrbracket(\ensuremath{\llbracket q(\sigma') \rrbracket((\rho', a'/x))})} \approx
\ensuremath{\llbracket T' \rrbracket((\ensuremath{\llbracket \sigma' \rrbracket(\rho')}, a'/x))} \in \mathcal{U}_i
&& \text{(by \Cref{lem:sem-ty-id} on $T' \approx T'$, derived from} \\
& && \text{$T \approx T'$ via symmetry and transitivity)}
\end{aligned}
By transitivity of \mathcal{U}_i and ?, \ensuremath{\llbracket T[q(\sigma)] \rrbracket((\rho, a/x))} \approx
\ensuremath{\llbracket T' \rrbracket((\ensuremath{\llbracket \sigma' \rrbracket(\rho')}, a'/x))} \in \mathcal{U}_i \searrow R_T, establishing the second claim.
We prove the first claim by induction on a \approx a' \in \textsf{Nat}.
Case
Here a = a' = \texttt{ze}. Apply \semtyeq[\Gamma]{z}{z'}{T[\textsf{zero}/x]} at \Gamma', \sigma \approx \sigma', and \rho \approx \rho' \in R' (this gives the four-value pattern of z, z'):
\begin{aligned}
&\ensuremath{\llbracket z[\sigma] \rrbracket(\rho)} \searrow b,\;\; \ensuremath{\llbracket z' \rrbracket(\ensuremath{\llbracket \sigma' \rrbracket(\rho')})} \searrow b'
&& \text{(termination, by hypothesis on $z, z'$)} \\
&b \approx b' \in R_z
&& \text{(outer-left vs inner-right of $z, z'$)} \\
&\ensuremath{\llbracket \rrbracket(\rho)} \approx
\ensuremath{\llbracket T[\textsf{zero}/x] \rrbracket(\ensuremath{\llbracket \sigma' \rrbracket(\rho')})} \in \mathcal{U}_i \searrow R_z
&& \text{(corresponding type part)}
\end{aligned}
Then by rec-ze applied to these evaluations:
\begin{aligned}
&\mathsf{rec}(\texttt{ze},\, T[q(\sigma)],\, z[\sigma],\, s[q^2(\sigma)],\, \rho)
\searrow b
&& \text{(by \textsc{rec-ze}, using $\ensuremath{\llbracket z[\sigma] \rrbracket(\rho)} \searrow b$)} \\
&\mathsf{rec}(\texttt{ze},\, T',\, z',\, s',\, \ensuremath{\llbracket \sigma' \rrbracket(\rho')}) \searrow b'
&& \text{(by \textsc{rec-ze}, using $\ensuremath{\llbracket z' \rrbracket(\ensuremath{\llbracket \sigma' \rrbracket(\rho')})} \searrow b'$)}
\end{aligned}
We must show b \approx b' \in R_T. Currently b \approx b' \in R_z where R_z is governed by \ensuremath{\llbracket \rrbracket(\rho)}, while R_T is governed by \ensuremath{\llbracket T[q(\sigma)] \rrbracket((\rho, \texttt{ze}/x))} (substituted left, second-claim instance at a = a' = \texttt{ze}). We bridge R_z \Leftrightarrow R_T via two type-hypothesis instantiations.
Left bridge. By ? on \semtyeq[\Gamma']{\sigma}{\sigma}{\Gamma} (reflexive instance via ?, ?) and \semtyeq[\Gamma']{\textsf{zero}[\sigma]}{\textsf{zero}[\sigma]}{\ensuremath{\texttt{Nat}}[\sigma]} (using \textsf{zero}[\sigma] = \textsf{zero}, \ensuremath{\texttt{Nat}}[\sigma] = \ensuremath{\texttt{Nat}}, and ?):
\begin{aligned}
&\semtyeq[\Gamma']{(\sigma, \textsf{zero}/x)}{(\sigma, \textsf{zero}/x)}{\Gamma, x:\ensuremath{\texttt{Nat}}}
&& \text{(by \Cref{lem:sem-ext-pre})}
\end{aligned}
Apply \semtyeq[\Gamma, x:\ensuremath{\texttt{Nat}}]{T}{T}{\ensuremath{\texttt{Ty}_{i}}} at \Gamma', this substitution, and \rho \approx \rho \in R' (reflexive):
\begin{aligned}
&\ensuremath{\llbracket T[(\sigma, \textsf{zero}/x)] \rrbracket(\rho)} \approx
\ensuremath{\llbracket T \rrbracket(\ensuremath{\llbracket (\sigma, \textsf{zero}/x) \rrbracket(\rho)})} \in \mathcal{U}_i \searrow R_z'
&& \text{(outer-left vs inner-left)} \\
&T[(\sigma, \textsf{zero}/x)] =
&& \text{(by \Cref{lem:subst-ext-comm})} \\
&\ensuremath{\llbracket (\sigma, \textsf{zero}/x) \rrbracket(\rho)} = (\ensuremath{\llbracket \sigma \rrbracket(\rho)}, \texttt{ze}/x)
&& \text{(by pointwise eval, ev-ze)} \\
&R_z' \Leftrightarrow R_z
&& \text{(by \Cref{lem:univ-functional} on shared
$\ensuremath{\llbracket \rrbracket(\rho)}$)}
\end{aligned}
Hence \ensuremath{\llbracket \rrbracket(\rho)} \approx \ensuremath{\llbracket T \rrbracket((\ensuremath{\llbracket \sigma \rrbracket(\rho)}, \texttt{ze}/x))}
\in \mathcal{U}_i \searrow R_z.
Right bridge. Symmetrically, instantiate T at (\ensuremath{\textsf{id}}, \textsf{zero}/x) over \Gamma at the env-pair \ensuremath{\llbracket \sigma \rrbracket(\rho)} \approx \ensuremath{\llbracket \sigma' \rrbracket(\rho')} \in R_\Gamma (carried by the semantic-substitution hypothesis):
\begin{aligned}
&\semtyeq[\Gamma]{(\ensuremath{\textsf{id}}, \textsf{zero}/x)}{(\ensuremath{\textsf{id}}, \textsf{zero}/x)}{\Gamma, x:\ensuremath{\texttt{Nat}}}
&& \text{(by \Cref{lem:sem-ext-pre} and \Cref{lem:fund-ze})} \\
&\ensuremath{\llbracket T[\textsf{zero}/x] \rrbracket(\ensuremath{\llbracket \sigma' \rrbracket(\rho')})} \approx
\ensuremath{\llbracket T \rrbracket((\ensuremath{\llbracket \sigma' \rrbracket(\rho')}, \texttt{ze}/x))} \in \mathcal{U}_i
&& \text{(outer-vs-inner of the four-value pattern of $T$)}
\end{aligned}
Combining via the second claim. The second claim (proved above) gives:
\begin{aligned}
&\ensuremath{\llbracket T[q(\sigma)] \rrbracket((\rho, \texttt{ze}/x))} \approx
\ensuremath{\llbracket T' \rrbracket((\ensuremath{\llbracket \sigma' \rrbracket(\rho')}, \texttt{ze}/x))} \in \mathcal{U}_i \searrow R_T
\end{aligned}
Chaining via the bridges (using ?, ?, ?):
\begin{aligned}
&\ensuremath{\llbracket \rrbracket(\rho)}
\approx \ensuremath{\llbracket T \rrbracket((\ensuremath{\llbracket \sigma \rrbracket(\rho)}, \texttt{ze}/x))} \\
& \quad \approx \ensuremath{\llbracket T \rrbracket((\ensuremath{\llbracket \sigma' \rrbracket(\rho')}, \texttt{ze}/x))} \\
& \quad \approx \ensuremath{\llbracket T[q(\sigma)] \rrbracket((\rho, \texttt{ze}/x))} \in \mathcal{U}_i \\
&R_z \Leftrightarrow R_T
&& \text{(by \Cref{lem:univ-functional})}
\end{aligned}
Hence b \approx b' \in R_T.
Case
Mathpar. a_0 a_0’ Nat su(a_0) su(a_0’) Nat
with a = \texttt{su}(a_0), a' = \texttt{su}(a_0'). By IH on a_0 \approx a_0', there exist b_0, b_0' with
\begin{aligned}
&\mathsf{rec}(a_0,\, T[q(\sigma)],\, z[\sigma],\, s[q^2(\sigma)],\, \rho)
\searrow b_0
&& \text{(by IH)} \\
&\mathsf{rec}(a_0',\, T',\, z',\, s',\, \ensuremath{\llbracket \sigma' \rrbracket(\rho')}) \searrow b_0'
&& \text{(by IH)} \\
&b_0 \approx b_0' \in R_T^0
&& \text{(by IH, with $R_T^0$ governed by $\ensuremath{\llbracket T[q(\sigma)] \rrbracket((\rho, a_0/x))}$)}
\end{aligned}
We derive the evaluations of s[q^2(\sigma)] and s' from the hypothesis on s, s'. First, lift \sigma, \sigma' over \ensuremath{\texttt{Nat}} and T:
\begin{aligned}
&\semtyeq[\Gamma', x:\ensuremath{\texttt{Nat}}]{q(\sigma)}{q(\sigma')}{\Gamma, x:\ensuremath{\texttt{Nat}}}
&& \text{(by \Cref{lem:sem-q} on
$\sigma \approx \sigma'$ and $\ensuremath{\texttt{Nat}}$;} \\
& && \text{using $\ensuremath{\texttt{Nat}}[\sigma] = \ensuremath{\texttt{Nat}}$)} \\
&\semtyeq[\Gamma', x:\ensuremath{\texttt{Nat}}, y:T[q(\sigma)]]
{q^2(\sigma)}{q^2(\sigma')}{\Gamma, x:\ensuremath{\texttt{Nat}}, y:T}
&& \text{(by \Cref{lem:sem-q} again on $T$)}
\end{aligned}
Build the env-pair via two applications of Ctx-Ext:
\begin{aligned}
&(\rho, a_0/x) \approx (\rho', a_0'/x) \in R_{\Gamma', x:\ensuremath{\texttt{Nat}}}
&& \text{(by \textsc{Ctx-Ext}, head PER $\textsf{Nat}$)} \\
&(\rho, a_0/x, b_0/y) \approx (\rho', a_0'/x, b_0'/y)
\in R_{\Gamma', x:\ensuremath{\texttt{Nat}}, y:T[q(\sigma)]}
&& \text{(by \textsc{Ctx-Ext}, head PER $R_T^0$)}
\end{aligned}
Apply \semtyeq[\Gamma, x:\ensuremath{\texttt{Nat}}, y:T]{s}{s'}{T[\Uparrow \circ \Uparrow, \textsf{succ}~x_1/x]} at \Gamma', x:\ensuremath{\texttt{Nat}}, y:T[q(\sigma)], the doubly-lifted substitution q^2(\sigma) \approx q^2(\sigma'), and this env-pair (this gives the four-value pattern of s, s'):
\begin{aligned}
&\ensuremath{\llbracket s[q^2(\sigma)] \rrbracket((\rho, a_0/x, b_0/y))} \searrow b
&& \text{(termination, by hypothesis on $s$)} \\
&\ensuremath{\llbracket s' \rrbracket(\ensuremath{\llbracket q^2(\sigma') \rrbracket((\rho', a_0'/x, b_0'/y))})} \searrow b'_0
&& \text{(termination, by hypothesis on $s'$)} \\
&\ensuremath{\llbracket s' \rrbracket((\ensuremath{\llbracket \sigma' \rrbracket(\rho')}, a_0'/x, b_0'/y))} \searrow b'
&& \text{(termination, by reflexive instance $\semtyeq[\ldots]{s'}{s'}{\ldots}$)}
\end{aligned}
By rec-su:
\begin{aligned}
&\mathsf{rec}(\texttt{su}(a_0),\, T[q(\sigma)],\, z[\sigma],\, s[q^2(\sigma)],\, \rho)
\searrow b
&& \text{(by \textsc{rec-su}, using $\ensuremath{\llbracket s[q^2(\sigma)] \rrbracket((\rho, a_0/x, b_0/y))} \searrow b$)} \\
&\mathsf{rec}(\texttt{su}(a_0'),\, T',\, z',\, s',\, \ensuremath{\llbracket \sigma' \rrbracket(\rho')}) \searrow b'
&& \text{(by \textsc{rec-su}, using $\ensuremath{\llbracket s' \rrbracket((\ensuremath{\llbracket \sigma' \rrbracket(\rho')}, a_0'/x, b_0'/y))} \searrow b'$)}
\end{aligned}
We must show b \approx b' \in R_T. Outer-left vs inner-right of the four-value pattern of s, s':
\begin{aligned}
&\ensuremath{\llbracket (T[\Uparrow \circ \Uparrow, \textsf{succ}~x_1/x])[q^2(\sigma)] \rrbracket((\rho, a_0/x, b_0/y))} \approx \\
&\quad
\ensuremath{\llbracket T[\Uparrow \circ \Uparrow, \textsf{succ}~x_1/x] \rrbracket(\ensuremath{\llbracket q^2(\sigma') \rrbracket((\rho', a_0'/x, b_0'/y))})}
\in \mathcal{U}_i \searrow R_s
&& \text{(type part)} \\
&\ensuremath{\llbracket s[q^2(\sigma)] \rrbracket((\rho, a_0/x, b_0/y))} \approx
\ensuremath{\llbracket s' \rrbracket(\ensuremath{\llbracket q^2(\sigma') \rrbracket((\rho', a_0'/x, b_0'/y))})} \in R_s
&& \text{(term part, by hypothesis on $s, s'$)}
\end{aligned}
where R_s is the PER governed by \ensuremath{\llbracket (T[\Uparrow \circ \Uparrow, \textsf{succ}~x_1/x])[q^2(\sigma)] \rrbracket((\rho, a_0/x, b_0/y))}. Bridge \ensuremath{\llbracket q^2(\sigma') \rrbracket((\rho', a_0'/x, b_0'/y))} to (\ensuremath{\llbracket \sigma' \rrbracket(\rho')}, a_0'/x, b_0'/y) in R_{\Gamma, x:\ensuremath{\texttt{Nat}}, y:T} analogously, then apply ? on \semtyeq[\Gamma, x:\ensuremath{\texttt{Nat}}, y:T]{s'}{s'}{T[\Uparrow \circ \Uparrow, \textsf{succ}~x_1/x]} (the reflexive instance):
\begin{aligned}
&\ensuremath{\llbracket s' \rrbracket(\ensuremath{\llbracket q^2(\sigma') \rrbracket((\rho', a_0'/x, b_0'/y))})} \approx
\ensuremath{\llbracket s' \rrbracket((\ensuremath{\llbracket \sigma' \rrbracket(\rho')}, a_0'/x, b_0'/y))} \in R_s
&& \text{(by \Cref{lem:sem-ty-id})}
\end{aligned}
By transitivity, b \approx b' \in R_s.
We bridge R_s \Leftrightarrow R_T, where R_s is governed by \ensuremath{\llbracket (T[\Uparrow \circ \Uparrow, \textsf{succ}~x_1/x])[q^2(\sigma)] \rrbracket((\rho, a_0/x, b_0/y))} and R_T is governed by \ensuremath{\llbracket T[q(\sigma)] \rrbracket((\rho, \texttt{su}(a_0)/x))} (the second-claim pattern instantiated at \texttt{su}(a_0) \approx \texttt{su}(a_0')):
\begin{aligned}
&\ensuremath{\llbracket T[q(\sigma)] \rrbracket((\rho, \texttt{su}(a_0)/x))} \\
&\quad \approx \ensuremath{\llbracket T' \rrbracket((\ensuremath{\llbracket \sigma' \rrbracket(\rho')}, \texttt{su}(a_0')/x))}
\in \mathcal{U}_i \searrow R_T
&& \text{(second claim)}
\end{aligned}
All bridging uses syntactic substitution-composition lemmas (?, ?, ?) and instantiations of hypothesis on T.
Bridge B1: collapse (T[\Uparrow \circ \Uparrow, \textsf{succ}~x_1/x])[q^2(\sigma)] into a single substitution.
\begin{aligned}
(T[\Uparrow \circ \Uparrow, \textsf{succ}~x_1/x])[q^2(\sigma)]
&= T[(\Uparrow \circ \Uparrow, \textsf{succ}~x_1/x) \circ q^2(\sigma)]
\tag{by \Cref{lem:subst-assoc}} \\
&= T[(\Uparrow \circ \Uparrow) \circ q^2(\sigma),\;
\textsf{succ}~x_1[q^2(\sigma)]/x]
\tag{by \Cref{lem:ext-comp}} \\
&= T[\sigma \circ (\Uparrow \circ \Uparrow),\; \textsf{succ}~x_1/x]
\tag{using $\textsf{succ}~x_1[q^2(\sigma)] = \textsf{succ}~x_1$ (since $q^2(\sigma)(1) = x_1$)} \\
& \tag{and $(\Uparrow \circ \Uparrow) \circ q^2(\sigma) = \sigma \circ (\Uparrow \circ \Uparrow)$
(\Cref{lem:wk-subst-comm})}
\end{aligned}
Denote the collapsed substitution by \tau := (\sigma \circ (\Uparrow \circ \Uparrow),\, \textsf{succ}~x_1/x), with \judge[\Gamma', x:\ensuremath{\texttt{Nat}}, y:T[q(\sigma)]]{\tau : \Gamma, x:\ensuremath{\texttt{Nat}}}.
Bridge B2: instantiate hypothesis on T via \tau. We show \tau is a semantic substitution from \Gamma', x:\ensuremath{\texttt{Nat}}, y:T[q(\sigma)] to \Gamma, x:\ensuremath{\texttt{Nat}}. By ? (twice) and ?: \semweak[\Gamma', x:\ensuremath{\texttt{Nat}}, y:T[q(\sigma)]]{\Uparrow \circ \Uparrow}{\Gamma'}. Apply ? to \semtyeq[\Gamma']{\sigma}{\sigma}{\Gamma} (reflexive, by ?, ?) and this semantic weakening:
\begin{aligned}
&\semtyeq[\Gamma', x:\ensuremath{\texttt{Nat}}, y:T[q(\sigma)]]
{\sigma \circ (\Uparrow \circ \Uparrow)}
{\sigma \circ (\Uparrow \circ \Uparrow)}
{\Gamma}
\end{aligned}
By ?, ?: \semtyeq[\Gamma', x:\ensuremath{\texttt{Nat}}, y:T[q(\sigma)]]
{\textsf{succ}~x_1}{\textsf{succ}~x_1}{\ensuremath{\texttt{Nat}}} (lookup x_1 : \ensuremath{\texttt{Nat}} at the second slot of \Gamma', x:\ensuremath{\texttt{Nat}}, y:T[q(\sigma)], with \ensuremath{\texttt{Nat}}[\Uparrow] = \ensuremath{\texttt{Nat}}). By ?:
\begin{aligned}
&\semtyeq[\Gamma', x:\ensuremath{\texttt{Nat}}, y:T[q(\sigma)]]{\tau}{\tau}{\Gamma, x:\ensuremath{\texttt{Nat}}}
&& \text{(\Cref{lem:sem-ext-pre})}
\end{aligned}
Apply \semtyeq[\Gamma, x:\ensuremath{\texttt{Nat}}]{T}{T}{\ensuremath{\texttt{Ty}_{i}}} at \Gamma', x:\ensuremath{\texttt{Nat}}, y:T[q(\sigma)], \tau \approx \tau, and the reflexive env-pair (\rho, a_0/x, b_0/y) \approx (\rho, a_0/x, b_0/y)
\in R_{\Gamma', x:\ensuremath{\texttt{Nat}}, y:T[q(\sigma)]}. Outer-left vs inner-left:
\begin{aligned}
&\ensuremath{\llbracket T[\tau] \rrbracket((\rho, a_0/x, b_0/y))} \\
&\quad \approx \ensuremath{\llbracket T \rrbracket(\ensuremath{\llbracket \tau \rrbracket((\rho, a_0/x, b_0/y))})}
\in \mathcal{U}_i \searrow R_{B2}
\end{aligned}
By Bridge B1,
T[\tau] = (T[\Uparrow \circ \Uparrow, \textsf{succ}~x_1/x])[q^2(\sigma)],
so the outer-left is exactly
\ensuremath{\llbracket (T[\Uparrow \circ \Uparrow, \textsf{succ}~x_1/x])[q^2(\sigma)] \rrbracket((\rho, a_0/x, b_0/y))}
— the value governing R_s. Hence R_s \Leftrightarrow R_{B2}.
By pointwise definition of substitution evaluation:
\begin{aligned}
&\ensuremath{\llbracket \tau \rrbracket((\rho, a_0/x, b_0/y))}
= (\ensuremath{\llbracket \sigma \circ (\Uparrow \circ \Uparrow) \rrbracket((\rho, a_0/x, b_0/y))},\,
\texttt{su}(a_0)/x) \\
& \text{(pointwise; head: $\ensuremath{\llbracket \textsf{succ}~x_1 \rrbracket((\rho, a_0/x, b_0/y))} = \texttt{su}(a_0)$ via ev-su, ev-var)}
\end{aligned}
We do not equate the tail \ensuremath{\llbracket \sigma \circ (\Uparrow \circ \Uparrow) \rrbracket((\rho, a_0/x, b_0/y))} with \ensuremath{\llbracket \sigma \rrbracket(\rho)} definitionally — such an equality is a substitution–evaluation commutation that does not hold for operational substitutions. Instead, we relate them in R_\Gamma via the four-value pattern of \sigma \circ (\Uparrow \circ \Uparrow) := \sigma[\Uparrow \circ \Uparrow] established by ?, and the four-value pattern of \sigma itself:
\begin{aligned}
&\ensuremath{\llbracket \sigma[\Uparrow \circ \Uparrow] \rrbracket((\rho, a_0/x, b_0/y))}
\approx \ensuremath{\llbracket \sigma \rrbracket(\ensuremath{\llbracket \Uparrow \circ \Uparrow \rrbracket((\rho, a_0/x, b_0/y))})} \in R_\Gamma
&& \text{(four-value pattern of $\sigma[\Uparrow \circ \Uparrow]$,} \\
& && \text{outer-left vs inner-left)} \\
&\ensuremath{\llbracket \Uparrow \circ \Uparrow \rrbracket((\rho, a_0/x, b_0/y))}
\approx \rho \in R_{\Gamma'}
&& \text{(four-value pattern of $\Uparrow \circ \Uparrow$,} \\
& && \text{by \Cref{lem:sem-shift,lem:sem-wk-comp})} \\
&\ensuremath{\llbracket \sigma \rrbracket(\ensuremath{\llbracket \Uparrow \circ \Uparrow \rrbracket((\rho, a_0/x, b_0/y))})}
\approx \ensuremath{\llbracket \sigma \rrbracket(\rho)} \in R_\Gamma
&& \text{(by \Cref{lem:sem-ty-id} on the reflexive $\sigma$)}
\end{aligned}
By transitivity of R_\Gamma:
\begin{aligned}
&\ensuremath{\llbracket \sigma \circ (\Uparrow \circ \Uparrow) \rrbracket((\rho, a_0/x, b_0/y))}
\approx \ensuremath{\llbracket \sigma \rrbracket(\rho)} \in R_\Gamma \\
&\ensuremath{\llbracket \tau \rrbracket((\rho, a_0/x, b_0/y))} \approx (\ensuremath{\llbracket \sigma \rrbracket(\rho)},\, \texttt{su}(a_0)/x)
\in R_{\Gamma, x:\ensuremath{\texttt{Nat}}}
&& \text{(by \textsc{Ctx-Ext}, head $\texttt{su}(a_0) \approx \texttt{su}(a_0)$)}
\end{aligned}
Bridge B3: instantiate hypothesis on T via q(\sigma). Apply \semtyeq[\Gamma, x:\ensuremath{\texttt{Nat}}]{T}{T}{\ensuremath{\texttt{Ty}_{i}}} at \Gamma', x:\ensuremath{\texttt{Nat}}, the lifted q(\sigma) \approx q(\sigma), and reflexive (\rho, \texttt{su}(a_0)/x) \approx (\rho, \texttt{su}(a_0)/x) \in R_{\Gamma', x:\ensuremath{\texttt{Nat}}} (head \texttt{su}(a_0) \approx \texttt{su}(a_0) via ? reflexivity). Outer-left vs inner-left:
\begin{aligned}
&\ensuremath{\llbracket T[q(\sigma)] \rrbracket((\rho, \texttt{su}(a_0)/x))} \\
&\quad \approx \ensuremath{\llbracket T \rrbracket(\ensuremath{\llbracket q(\sigma) \rrbracket((\rho, \texttt{su}(a_0)/x))})}
\in \mathcal{U}_i \searrow R_{B3} \\
&\ensuremath{\llbracket q(\sigma) \rrbracket((\rho, \texttt{su}(a_0)/x))}
\approx (\ensuremath{\llbracket \sigma \rrbracket(\rho)}, \texttt{su}(a_0)/x) \in R_{\Gamma, x:\ensuremath{\texttt{Nat}}}
&& \text{(by \textsc{Ctx-Ext})}
\end{aligned}
Combining B2 and B3. By B2’s bridging, \ensuremath{\llbracket \tau \rrbracket((\rho, a_0/x, b_0/y))} \approx (\ensuremath{\llbracket \sigma \rrbracket(\rho)}, \texttt{su}(a_0)/x)
\in R_{\Gamma, x:\ensuremath{\texttt{Nat}}}. By B3’s Ctx-Ext computation, \ensuremath{\llbracket q(\sigma) \rrbracket((\rho, \texttt{su}(a_0)/x))} \approx (\ensuremath{\llbracket \sigma \rrbracket(\rho)}, \texttt{su}(a_0)/x)
\in R_{\Gamma, x:\ensuremath{\texttt{Nat}}} (PER-related, via the lifted-substitution evidence). Apply ? on T to bridge the B3 inner-left:
\begin{aligned}
&\ensuremath{\llbracket T \rrbracket(\ensuremath{\llbracket q(\sigma) \rrbracket((\rho, \texttt{su}(a_0)/x))})}
\approx \ensuremath{\llbracket T \rrbracket((\ensuremath{\llbracket \sigma \rrbracket(\rho)}, \texttt{su}(a_0)/x))} \in \mathcal{U}_i
&& \text{(\Cref{lem:sem-ty-id})}
\end{aligned}
Both B2 and B3 inner-left values are now \mathcal{U}_i-related to the common value \ensuremath{\llbracket T \rrbracket((\ensuremath{\llbracket \sigma \rrbracket(\rho)}, \texttt{su}(a_0)/x))}, so by transitivity and ?, R_{B2} \Leftrightarrow R_{B3}.
Chaining: R_s \Leftrightarrow R_{B2} \Leftrightarrow R_{B3} \Leftrightarrow R_T. Hence b \approx b' \in R_T.
Case
Mathpar. e e’ Ne ^N(e) ^N(e’) Nat
with a = {\uparrow}^N(e), a' = {\uparrow}^N(e'). Compute the eliminator outputs by rec-ne:
\begin{aligned}
&\ensuremath{\llbracket T[q(\sigma)] \rrbracket((\rho, {\uparrow}^N(e)/x))} \searrow A
&& \text{(governing the left motive)} \\
&\ensuremath{\llbracket T' \rrbracket((\ensuremath{\llbracket \sigma' \rrbracket(\rho')}, {\uparrow}^N(e')/x))} \searrow A'
&& \text{(governing the right motive)} \\
&A \approx A' \in \mathcal{U}_i \searrow R_T
&& \text{(by the second claim at ${\uparrow}^N(e) \approx {\uparrow}^N(e')$)} \\
&\ensuremath{\llbracket z[\sigma] \rrbracket(\rho)} \searrow a_z,\;\;
\ensuremath{\llbracket z' \rrbracket(\ensuremath{\llbracket \sigma' \rrbracket(\rho')})} \searrow a_z',\;\;
a_z \approx a_z' \in R_z
&& \text{(by hypothesis on $z, z'$)} \\
&b = {\uparrow}^A(\mathsf{rec}(T[q(\sigma)], a_z, s[q^2(\sigma)], \rho, e))
&& \text{(by \textsc{rec-ne})} \\
&b' = {\uparrow}^{A'}(\mathsf{rec}(T', a_z', s', \ensuremath{\llbracket \sigma' \rrbracket(\rho')}, e'))
&& \text{(by \textsc{rec-ne})}
\end{aligned}
We must show b \approx b' \in R_T. By ? on A \approx A' \in \mathcal{U}_i \searrow R_T, it suffices to show
\begin{aligned}
&\mathsf{rec}(T[q(\sigma)], a_z, s[q^2(\sigma)], \rho, e)
\approx
\mathsf{rec}(T', a_z', s', \ensuremath{\llbracket \sigma' \rrbracket(\rho')}, e') \in \textsf{Ne},
\end{aligned}
i.e. for every depth n both sides read back via \textsf{R}^{\textsf{Ne}}_n to the same neutral normal form. By rule Re-rec:
\begin{aligned}
&\textsf{R}^{\textsf{Ne}}_n(\mathsf{rec}(T[q(\sigma)], a_z, s[q^2(\sigma)], \rho, e))
\searrow \ensuremath{\textsf{elim}_{\ensuremath{\texttt{Nat}}}~(x.\,W_T)~w_z~(x, y.\,w_s)~u}
\end{aligned}
whenever
\begin{aligned}
&\textsf{R}^{\textsf{Ty}}_{n+1}(A_x) \searrow W_T
&& \text{where $\ensuremath{\llbracket T[q(\sigma)] \rrbracket((\rho, {\uparrow}^N(\ell_n)/x))} \searrow A_x$} \\
&\textsf{R}^{\textsf{Nf}}_n({\downarrow}^{A_z}(a_z)) \searrow w_z
&& \text{where $\ensuremath{\llbracket T[q(\sigma)] \rrbracket((\rho, \texttt{ze}/x))} \searrow A_z$} \\
&\ensuremath{\llbracket s[q^2(\sigma)] \rrbracket((\rho, {\uparrow}^N(\ell_n)/x, {\uparrow}^{A_x}(\ell_{n+1})/y))}
\searrow b_s \\
&\textsf{R}^{\textsf{Nf}}_{n+2}({\downarrow}^{A_x^{\textsf{succ}~}}(b_s)) \searrow w_s
&& \text{where $\ensuremath{\llbracket T[q(\sigma)] \rrbracket((\rho, \texttt{su}({\uparrow}^N(\ell_n))/x))}
\searrow A_x^{\textsf{succ}~}$} \\
&\textsf{R}^{\textsf{Ne}}_n(e) \searrow u
\end{aligned}
and analogously for the primed side, producing \ensuremath{\textsf{elim}_{\ensuremath{\texttt{Nat}}}~(x.\,W_T')~w_z'~(x, y.\,w_s')~u'}. We show each component reads back to the same syntactic form.
Motive W_T = W_T'. Apply the second claim of this lemma at the fresh-level relation {\uparrow}^N(\ell_n) \approx {\uparrow}^N(\ell_n) \in \textsf{Nat} (by Nat-Ne, \ell_n \approx \ell_n \in \textsf{Ne}):
\begin{aligned}
&\ensuremath{\llbracket T[q(\sigma)] \rrbracket((\rho, {\uparrow}^N(\ell_n)/x))} \approx
\ensuremath{\llbracket T' \rrbracket((\ensuremath{\llbracket \sigma' \rrbracket(\rho')}, {\uparrow}^N(\ell_n)/x))}
\in \mathcal{U}_i \searrow R_T^\ell
&& \text{(second claim at $\ell_n$)} \\
&W_T = W_T'
&& \text{(by \Cref{lem:type-readback})}
\end{aligned}
No separate env-pair construction is needed: the second claim is parametric in a \approx a' \in \textsf{Nat} and directly relates the two motive values at envs over the heterogeneous source–target contexts.
Zero branch w_z = w_z'. By the Nat-Ze sub-case proved above, a_z \approx a_z' \in R_T-at-\texttt{ze} (the PER governed by \ensuremath{\llbracket T[q(\sigma)] \rrbracket((\rho, \texttt{ze}/x))}, which equals A_z). By ?:
\begin{aligned}
&w_z = w_z'
&& \text{(by \Cref{lem:R-readback})}
\end{aligned}
Step branch w_s = w_s'. We obtain b_s \approx b_s' at fresh levels by replaying the Nat-Su case with a_0 := {\uparrow}^N(\ell_n). First, lift \sigma, \sigma' to handle the binders of s:
\begin{aligned}
&\semtyeq[\Gamma', x:\ensuremath{\texttt{Nat}}]{q(\sigma)}{q(\sigma')}{\Gamma, x:\ensuremath{\texttt{Nat}}}
&& \text{(by \Cref{lem:sem-q} on $\sigma \approx \sigma'$ and $\ensuremath{\texttt{Nat}}$)} \\
&\semtyeq[\Gamma', x:\ensuremath{\texttt{Nat}}, y:T[q(\sigma)]]
{q^2(\sigma)}{q^2(\sigma')}{\Gamma, x:\ensuremath{\texttt{Nat}}, y:T}
&& \text{(by \Cref{lem:sem-q} again on $T$)}
\end{aligned}
Build the env-pair via two applications of Ctx-Ext:
\begin{aligned}
&{\uparrow}^N(\ell_n) \approx {\uparrow}^N(\ell_n) \in \textsf{Nat}
&& \text{(\textsc{Nat-Ne}, $\ell_n \approx \ell_n \in \textsf{Ne}$)} \\
&(\rho, {\uparrow}^N(\ell_n)/x) \approx (\rho', {\uparrow}^N(\ell_n)/x)
\in R_{\Gamma', x:\ensuremath{\texttt{Nat}}}
&& \text{(\textsc{Ctx-Ext}, head $\textsf{Nat}$)} \\
&{\uparrow}^{A_x}(\ell_{n+1}) \approx {\uparrow}^{A_x'}(\ell_{n+1}) \in R_T^\ell
&& \text{(by \Cref{lem:ne-in-R} on $\ell_{n+1} \approx \ell_{n+1} \in \textsf{Ne}$)} \\
&(\rho, {\uparrow}^N(\ell_n)/x, {\uparrow}^{A_x}(\ell_{n+1})/y) \\
&\quad \approx (\rho', {\uparrow}^N(\ell_n)/x, {\uparrow}^{A_x'}(\ell_{n+1})/y)
\in R_{\Gamma', x:\ensuremath{\texttt{Nat}}, y:T[q(\sigma)]}
&& \text{(\textsc{Ctx-Ext}, head $R_T^\ell$)}
\end{aligned}
Apply \semtyeq[\Gamma, x:\ensuremath{\texttt{Nat}}, y:T]{s}{s'}{T[\Uparrow \circ \Uparrow, \textsf{succ}~x_1/x]} at \Gamma', x:\ensuremath{\texttt{Nat}}, y:T[q(\sigma)], the doubly-lifted substitution q^2(\sigma) \approx q^2(\sigma'), and this env-pair. The four-value pattern of s, s' gives:
\begin{aligned}
&b_s \approx b_s' \in R_T^{step}
&& \text{(outer-left vs inner-right, parallel to the helper's} \\
& && \text{Nat-Su case)}
\end{aligned}
where R_T^{step} is governed by \ensuremath{\llbracket (T[\Uparrow \circ \Uparrow, \textsf{succ}~x_1/x])[q^2(\sigma)] \rrbracket((\rho, {\uparrow}^N(\ell_n)/x, {\uparrow}^{A_x}(\ell_{n+1})/y))}.
By the B1/B2/B3 bridging of the Nat-Su case (with a_0 replaced by {\uparrow}^N(\ell_n)):
\begin{aligned}
&R_T^{step} \Leftrightarrow R_T^\ell\text{-at-}\texttt{su}({\uparrow}^N(\ell_n))
&& \text{(B1/B2/B3 bridges, \Cref{lem:univ-functional})}
\end{aligned}
i.e. the PER at \ensuremath{\llbracket T[q(\sigma)] \rrbracket((\rho, \texttt{su}({\uparrow}^N(\ell_n))/x))}, which equals A_x^{\textsf{succ}~}. Hence b_s \approx b_s' \in R_T^\ell-at-\texttt{su}(\ell_n), and:
\begin{aligned}
&w_s = w_s'
&& \text{(by \Cref{lem:R-readback})}
\end{aligned}
Underlying neutral u = u'. By hypothesis e \approx e' \in \textsf{Ne}:
\begin{aligned}
&\textsf{R}^{\textsf{Ne}}_n(e) \searrow u,\;\; \textsf{R}^{\textsf{Ne}}_n(e') \searrow u
&& \text{(by definition of $\textsf{Ne}$)}
\end{aligned}
Combining:
\begin{aligned}
&\textsf{R}^{\textsf{Ne}}_n(\mathsf{rec}(T[q(\sigma)], a_z, s[q^2(\sigma)], \rho, e))
\searrow \ensuremath{\textsf{elim}_{\ensuremath{\texttt{Nat}}}~(x.\,W_T)~w_z~(x, y.\,w_s)~u} \\
&\textsf{R}^{\textsf{Ne}}_n(\mathsf{rec}(T', a_z', s', \ensuremath{\llbracket \sigma' \rrbracket(\rho')}, e'))
\searrow \ensuremath{\textsf{elim}_{\ensuremath{\texttt{Nat}}}~(x.\,W_T)~w_z~(x, y.\,w_s)~u}
&& \text{(same syntactic form)} \\
&\mathsf{rec}(T[q(\sigma)], a_z, s[q^2(\sigma)], \rho, e)
\approx \mathsf{rec}(T', a_z', s', \ensuremath{\llbracket \sigma' \rrbracket(\rho')}, e') \in \textsf{Ne}
&& \text{(definition of $\textsf{Ne}$)}
\end{aligned}
Hence b \approx b' \in R_T.