\begin{lemma}[Exact nineteen-cell fill]
For every Usize start $r$ and 768-cell U8 array $a$, fill loop 1 from $r$
to \texttt{MAX\_DIGITS\_WITHOUT\_OVERFLOW} returns normally with $a'$.
It preserves $\operatorname{take}(r.\mathit{val},a.\mathit{val})$.
For every $j<768$, its cell is U8 zero when
$r.\mathit{val}\le j<19$ and is the original cell otherwise.
If all input cell values are below ten, all output cell values are below ten.
\end{lemma}
\begin{proof}
The constant is 19 in
\noderef{num_imp_dec2flt_decimal_seq_DecimalSeq_MAX_DIGITS_WITHOUT_OVERFLOW}.
Use the range iterator and fill body in
\noderef{num_imp_dec2flt_decimal_seq_parse_decimal_seq}. If $r\ge19$,
the iterator immediately returns None and the input array; the write
interval is empty, proving all assertions. Otherwise at iterator start
$t$ maintain $r\le t\le19$, zero cells on $[r,t)$, and the original
cells outside $[r,t)$. The rank is $19-t$. Initially the interval is empty.
For $t<19$, the range iterator returns index $t$ and advances to $t+1$.
Its checked successor is safe since $t+1\le19<2^{64}$, using
\noderef{Assumptions}. The array index is in bounds since $t<19<768$.
The update writes precisely U8 zero at $t$, extending the zero interval
to $[r,t+1)$ and preserving all other cells. The rank decreases by one.
At $t=19$ the iterator returns None, so well-founded induction gives the
normal result and exact cell equation. Since no changed index is below
$r$, the take-$r$ equality follows by list extensionality. Each output
cell is either an unchanged input cell or zero, proving the digit bound.
The copied loops 4, 6, and 7 can use this same statement through the
extensional equalities in \noderef{DecimalSeqDuplicateLoops}.
\end{proof}
