\begin{lemma}[Scalar scan with all cell regions]
Let a modeled U8 slice $s$ have value list
$\operatorname{map}(z\mapsto48+z,D)\mathbin{++}R$, with every $z\in D$
below ten. Assume $R=[]$, or its head is 46, 69, or 101, and that
$m+|D|\le\texttt{Usize.max}$, where $m=d.\mathit{num\_digits.val}$.
The actual scalar digit parser returns normally with residual value list
$R$ and a record $d'$ with count $m+|D|$, unchanged point and sticky flag,
and the following effects on its 768-cell array. Cells $j<\min(m,768)$
retain their original U8 values; cells
$m\le j<\min(m+|D|,768)$ have natural value $D[j-m]$; cells
$\min(m+|D|,768)\le j<768$ retain their original U8 values.
\end{lemma}
\begin{proof}
Use the loop, cursor, and wrapper in
\noderef{num_imp_dec2flt_decimal_seq_parse_digits_into_seq}. Put $m$ equal
to the initial logical count. The ratified width in \noderef{Assumptions}
and \noderef{num_imp_dec2flt_decimal_seq_DecimalSeq_MAX_DIGITS} identify
the array length and storage guard with 768. At cursor $k$ maintain $k\le|D|$, count
$m+k$, unchanged point and flag, the original cells below $\min(m,768)$,
the digit values $D[j-m]$ on $m\le j<\min(m+k,768)$, and original cells
on $\min(m+k,768)\le j<768$. The rank is $|D|-k$.
The invariant holds at $k=0$: the write interval is empty, and the other
two intervals partition the array.

For $k<|D|$, the input equation gives $k<|s|$ and byte value
$48+D[k]\in[48,57]$. The checked index therefore succeeds. Both wrapping
U8 subtractions by 48 return exactly $D[k]$, without wrap, and the test
against ten is true. Expand
\noderef{num_imp_dec2flt_decimal_seq_DecimalSeq_try_add_digit}.
If $m+k<768$, its array update is in bounds and changes precisely cell
$m+k$ to that digit; if $m+k\ge768$, it makes no array write. In both
branches it increments the logical count, since
$m+k+1\le m+|D|\le\texttt{Usize.max}$. It leaves the point and sticky
flag unchanged in both branches, including at capacity. The cursor
increment is also checked-safe since $k+1\le|D|\le\texttt{Usize.max}$.
For each cell use the single-update law: the newly written index, if in
the array, obtains $D[k]$; a different index retains its former value.
Splitting the claimed write interval at $m+k$ proves the new invariant.
The rank decreases by one even when the logical count exceeds 768.

At $k=|D|$, if $R=[]$ the cursor equals the slice length, so the body
returns the invariant state. Otherwise it is in bounds and reads the
head of $R$. Wrapping subtraction gives respectively 254, 21, or 53 for
head values 46, 69, or 101. Each fails the less-than-ten test, so the
body returns without consuming the marker or changing the record.
Well-founded loop induction gives this normal terminal state. The wrapper's
range-from-$k$ is in bounds because $k=|D|\le|s|$; map/drop/append gives
exactly $R$. Substitution of $k=|D|$ in the invariant gives every conclusion.
\end{proof}
