\begin{helper}[All-digit decimal bulk scan]
Let \texttt{s} be an Aeneas slice consisting entirely of ASCII digits, let
\texttt{i}$\leq767$, and let \texttt{a} be the 768-byte decimal digit array.
The extracted decimal bulk loop succeeds with some residual slice
\texttt{s'}, index \texttt{i'}, and array \texttt{a'}.  The residual is still
all digits, \texttt{i'}$\leq767$, and
\[
  \texttt{i'}+|\texttt{s'}|=\texttt{i}+|\texttt{s}|.
\]
\end{helper}
\begin{proof}
Induct over the bulk loop with the residual length as the decreasing measure.
Maintain the three conclusions in the statement as the invariant.  If fewer
than eight input bytes remain, the loop returns the state unchanged.  If
eight remain but \texttt{i}$+8<768$ is false, the checked index addition still
succeeds because \texttt{i}$\leq767$ and the configured platform width is 64
bits by \noderef{Assumptions}; the storage guard then returns the state
unchanged.  In the remaining case,
\noderef{ParserNumericDecimalBulkStepCertificate} drops eight bytes and adds
eight to the index.  Membership in the dropped suffix implies membership in
the preceding residual, so the digit property is preserved.  The new index
is below 768, the two changes preserve the displayed sum, and dropping eight
strictly decreases the residual length.  Well-founded loop induction now
gives normal termination and the three invariant clauses at the returned
state.
\end{proof}
