\begin{lemma}[Bulk scan with exact residual and splice]
Let a slice render decimal digits $D$ followed by $R$, with every digit
below ten and with $R$ empty or headed by 46, 69, or 101. Assume
$i.\mathit{val}+|D|+|R|\le\texttt{Usize.max}$. Bulk loop 3 returns normally
after consuming a length $k\le|D|$ divisible by eight. Its residual renders
$\operatorname{drop}(k,D)$ followed by $R$, its count is
$i.\mathit{val}+k$, and there is a $k$-byte list $W$ with value list
$\operatorname{take}(k,D)$ such that its returned array is
$\operatorname{take}(i.\mathit{val},a.\mathit{val})\mathbin{++}W
\mathbin{++}\operatorname{drop}(i.\mathit{val}+k,a.\mathit{val})$.
\end{lemma}
\begin{proof}
Use the loop in \noderef{num_imp_dec2flt_decimal_seq_parse_decimal_seq}.
Maintain the displayed residual/count/splice equations for the consumed
$k$ and written $W$, together with $k\le|D|$ and $8\mid k$. Initially
$k=0$, $W=[]$, and take/drop reconstructs the array, including when
$i.\mathit{val}>768$. Use residual source length as the decreasing rank.

At any state the current count is $j=i.\mathit{val}+k$, and current
source length is $|D|-k+|R|$. Their sum is
$i.\mathit{val}+|D|+|R|$, within the assumed maximum. Whenever the first
length guard permits a word read, that length is at least eight, so
$j+8\le\texttt{Usize.max}$. This proves safety of the addition which
is executed BEFORE the storage guard, even when $j\ge768$ or a mixed
block remains.

If at least eight digits remain and $j+8<768$, their ASCII ranges follow
from the residual equation. Apply \noderef{P495_T1_BulkStepExact}.
Append its eight-byte block to $W$ and replace $k$ by $k+8$. The identities
$\operatorname{take}(k,D)\mathbin{++}\operatorname{take}(8,
\operatorname{drop}(k,D))=\operatorname{take}(k+8,D)$ and
drop/drop give the written and residual equations. For the array splice,
the current prefix of length $j$ is the original prefix of length $i$
followed by $W$, and its suffix after $j+8$ is the original array suffix
after $i+k+8$. These lengths are in bounds by the strict guard. Thus the
two splices combine into the asserted single splice. The rank falls by eight.

If the source has fewer than eight bytes, the body stops before the
addition. Otherwise the addition is safe by the bound above; if the
storage guard is false, the body stops without reading, regardless of
the number of remaining digits. In the remaining case both guards hold.
If fewer than eight digits remain and the source still has eight bytes,
$R$ cannot be empty. When $j+8<768$, apply
\noderef{P495_T1_BulkMixedStop} at marker position $|D|-k$; the state
is returned unchanged. If at least eight digits remain, the continuation
case already proved applies. These alternatives exhaust the body and establish the postcondition
on every done branch. Well-founded loop induction now supplies the claimed
normal return and all invariant equations.
\end{proof}
