\begin{helper}[All-digit scalar scan]
Let \texttt{s} be an Aeneas byte slice all of whose bytes are ASCII digits,
and let \texttt{d} be a decimal sequence.  If the current digit count plus
$|\texttt{s}|$ is at most the platform unsigned maximum, then
\texttt{parse\_digits\_into\_seq(s,d)} succeeds, leaves an empty residual
slice, and returns a sequence whose digit count is
\texttt{d.num\_digits}$+|\texttt{s}|$.
\end{helper}
\begin{proof}
Use the scalar-loop definition in
\noderef{num_imp_dec2flt_decimal_seq_parse_digits_into_seq}.  Maintain after
\texttt{count} iterations that \texttt{count}$\leq|\texttt{s}|$ and that the
current sequence count is the initial count plus \texttt{count}.  If a byte
remains, the hypothesis places it in $[48,57]$, so wrapping subtraction of
48 is its value minus 48 and is below 10.  The call to
\noderef{num_imp_dec2flt_decimal_seq_DecimalSeq_try_add_digit} either updates
the array when the old count is below the exact 768 bound from
\noderef{num_imp_dec2flt_decimal_seq_DecimalSeq_MAX_DIGITS}, or leaves the
array unchanged; in both cases its checked count increment succeeds by the
stated unsigned bound.  The loop index increment succeeds for the same
reason, preserves the invariant, and strictly decreases
$|\texttt{s}|-\texttt{count}$.  When no byte remains, the index is exactly
$|\texttt{s}|$.  The final slice drop in the cited parser definition is
therefore empty, and the invariant gives the claimed final count.
\end{proof}
