\begin{lemma}[Symbolic all-one digit scan]
Let \(N=2147483648\).  Let \(s\) be an Aeneas byte slice with
\(s.\mathit{val}=\operatorname{replicate}(N,49\#\mathrm{u8})\), and let
\(d\) be a decimal sequence whose digit count and decimal point are zero and
whose truncation flag is false.  Then
\texttt{parse\_digits\_into\_seq(s,d)} returns a pair \((r,d')\) such that
\[
 r.\mathit{val}=[],\quad d'.\mathit{num\_digits}=N,\quad
 d'.\mathit{decimal\_point}=0,\quad d'.\mathit{truncated}=\mathrm{false}.
\]
\end{lemma}
\begin{proof}
The replicate length equation gives \(|s|=N\).  The concrete
\texttt{usize} literal \(N\) exists, so its scalar bound proof gives
\(N\leq\mathtt{usize::MAX}\); no platform-width axiom is needed.

Execute the loop in
\noderef{num_imp_dec2flt_decimal_seq_parse_digits_into_seq} with state
\((e,k)\), variant \(N-k\), and invariant
\[
 0\leq k\leq N,\quad e.\mathit{num\_digits}=k,\quad
 e.\mathit{decimal\_point}=0,\quad e.\mathit{truncated}=\mathrm{false}.
\]
The hypotheses on \(d\) establish this at \(k=0\).  If \(k<N\), the
bounds-checked slice access is legal because \(k<|s|=N\).  Membership in a
replicate list makes the returned byte exactly \(49\).  Unsigned wrapping
subtraction by \(48\) therefore gives \(1\), which is below \(10\), so the
digit branch is taken.

By
\noderef{num_imp_dec2flt_decimal_seq_DecimalSeq_try_add_digit}, when
\(k<768\), the array update is in bounds by the exact bound in
\noderef{num_imp_dec2flt_decimal_seq_DecimalSeq_MAX_DIGITS}; when
\(768\leq k\), that update is skipped.  In either branch the sequence count
is increased from \(k\) to \(k+1\), while the point and truncation flag are
unchanged.  Both that addition and the loop-index addition are in range,
since \(k+1\leq N\leq\mathtt{usize::MAX}\).  The resulting state satisfies
the invariant and strictly decreases \(N-k\).

At termination the length guard is false.  Together with \(k\leq N=|s|\),
this forces \(k=N\).  The final drop in the cited parser is therefore
\(\operatorname{drop}(N,\operatorname{replicate}(N,49))=[]\).
The invariant supplies the three stated fields of \(d'\).  This argument
uses the symbolic replicate equations throughout and never expands the
\(N\)-element list.
\end{proof}
