\begin{lemma}[Exact integral many-digit retry]
Let a source slice be $IT$, where $I$ consists entirely of ASCII digits and
the first byte of $T$, if any, is a nondigit.  Let the saved integer-end
slice be exactly $T$.  Suppose $|IT|\le2^{63}-1$ and the ordinary decimal
value of $I$ is at least $10^{18}$.  If the extracted
\texttt{parse\_many\_digits} called with exponent $e$ returns mantissa $m$
and exponent $q$, then there are lists $P,R$ with $I=PR$ such that
\[
 m=\operatorname{foldl}(a,b\mapsto10a+(b-48),0,P),
 \qquad q=e+|R|.
\]
\end{lemma}
\begin{proof}
Apply \noderef{NumberHelperTryParse19SafeLength} to the first retry scan.
It supplies a partition $I=PR$, returned slice $RT$, and returned word equal
to the ordinary decimal fold over $P$.  If that word were below $10^{18}$,
the helper's low-result clause would give $R=[]$; its fold equation would
then identify the word with the assumed value of all of $I$, contradicting
the threshold hypothesis.  Thus the extracted threshold test takes the high
branch.

In that branch, unfold
\noderef{num_imp_dec2flt_parse_parse_many_digits}.  The saved integer-end
slice is $T$ and the live slice is $RT$.  By
\noderef{NumberHelperOffsetSourceLength}, the extracted offset returns
exactly $|RT|-|T|=|R|$.  This nonnegative value is at most $|IT|$ and hence
at most $2^{63}-1$, so its checked cast to signed 64 bits is exact.

The premise says the complete extracted call returned normally.  Therefore
its final checked addition also returned normally.  The scalar addition
semantics then identify its returned integer value with $|R|+e$; a failure or
divergence result cannot equal the hypothesized successful pair.  The pair
equality likewise identifies the returned mantissa with the first retry
word.  Substituting its fold equation proves both displayed conclusions.
\end{proof}
