\begin{lemma}[Normal record continuation preserves prefix length]
Let $s,i,r$ be byte slices, $P$ a byte list, $w$ a U64, $n$ an Isize,
and $e,a$ I64 scalars. Suppose $|s|\le3458764513820540928$ and
$s.\mathit{val}=P++r.\mathit{val}$. Consider this Result computation:
compute $z=\operatorname{offset\_from}(r,s)$ and cast $z$ by the
Isize-to-Usize reinterpreting cast to $k$. If $n\le19$, return
Some $(\operatorname{Decimal}(e,w,\texttt{false},\texttt{false}),k)$.
Otherwise compute $m=n-19$, then
$q=\operatorname{adjust\_many\_digit\_count}(s,m)$; if $q>0$ compute
$(w',e')=\operatorname{parse\_many\_digits}(s,i,a)$ and return
Some $(\operatorname{Decimal}(e',w',\texttt{false},\texttt{true}),k)$;
otherwise return the first record and $k$. Every operation is joined
by the extracted Result bind. If this computation equals
$\texttt{ok}(o)$, then there exist $d,k$ with
$o=\texttt{some}(d,k)$ and $k.\mathit{val}=|P|$.
No restriction on $n,w,e,a,i$ other than their scalar or slice types
is required.
\end{lemma}
\begin{proof}
Taking lengths of the suffix equation gives
$|s|=|P|+|r|$, so $|r|\le|s|<2^{63}-1$.
Apply \noderef{P364_T1_NumberHelperOffsetSourceLength} to $s,r$:
the offset call succeeds with $z.\mathit{val}=|s|-|r|=|P|$.
In particular $0\le z.\mathit{val}\le3458764513820540928$.
The approved 64-bit width premise in \noderef{Assumptions} makes
Usize's maximum $2^{64}-1$, so the reinterpreting cast is in bounds
and returns $k$ with $k.\mathit{val}=z.\mathit{val}=|P|$.
Substitute both successful equations in the assumed normal-call
equation. If $n\le19$, the remaining expression is explicitly
\texttt{ok} of Some of the first record paired with $k$.
If $n>19$, inspect the Result of $n-19$. A fail or divergence
propagates through bind and contradicts the assumed \texttt{ok};
its successful case supplies $m$. Inspect the adjustment Result in
the same way. For a successful $q\le0$, the first record paired with
$k$ is returned. For $q>0$, inspect the retry Result: failure and
divergence again contradict normality, and success returns the
second record paired with the same $k$. These are exactly the record
continuations of \noderef{num_imp_dec2flt_parse_parse_partial_number}.
Injectivity of \texttt{ok} identifies $o$ with the indicated Some
pair in every remaining case. This establishes both assertions without
requiring a new normality theorem for subtraction, adjustment, or retry.
\end{proof}
