\begin{helper}[Exact adjustment for the long decimal witness]
Let \texttt{start} contain the ASCII bytes \texttt{0.}, followed by exactly
$65{,}535$ zero bytes, and then \texttt{1e655360}.  When the extracted
\texttt{adjust\_many\_digit\_count} operation starts with count $65{,}518$,
it returns the signed count $-18$.
\end{helper}
\begin{proof}
Unfold the extracted adjustment loop in
\noderef{num_imp_dec2flt_parse_adjust_many_digit_count}.  The first byte is
\texttt{0}; subtracting $47$ saturatingly from its byte value produces one,
so the checked signed subtraction changes the count from $65{,}518$ to
$65{,}517$.  The next byte is the point.  Its saturating difference from
$47$ is zero, so the count remains $65{,}517$.  Both checked index increments
remain within either possible model \texttt{usize} bound.

For the remaining scan use $k$, with $0\leq k\leq65{,}535$, as the number
of fractional zero bytes already consumed.  While scanning is true, the
loop index is $2+k$ and the signed count is $65{,}517-k$.  If
$k<65{,}535$, the byte at that index is a zero: this follows symbolically
from the append and replicate indexing laws, without expanding the replicate.
The byte calculation is one, the checked subtraction gives
$65{,}516-k$, and the checked index increment gives $3+k$.  Thus the
invariant holds with $k+1$.  These counts range only from $65{,}517$ down to
$-18$, and the indices range only up to $65{,}537$, so all signed
subtractions and unsigned increments remain in bounds on both the 32-bit and
64-bit platforms admitted by Aeneas.

At $k=65{,}535$, the indexed byte is the terminal \texttt{1}.  It is neither
the point nor zero, so the loop preserves the count
$65{,}517-65{,}535=-18$ and changes the scanning flag to false.  The next
loop body returns that count.  Termination follows from the decreasing
measure twice the distance from index $65{,}537$, plus one exactly while
scanning is true.  Hence the extracted operation returns $-18$ as claimed.
\end{proof}
