\begin{lemma}[Maximal numeric witness execution]
Let $M=2^{63}-1$.  On every Aeneas byte slice whose bytes are $M-7$ copies of
ASCII \texttt{1} followed by \texttt{e655360}, the extracted
\texttt{parse\_number} returns \texttt{fail integerOverflow}.
\end{lemma}
\begin{proof}
Write
\[
  N=M-7=9223372036854775800,
  \qquad q=N/8=1152921504606846975.
\]
Thus $N=8q$.  For the bulk loop in
\noderef{num_imp_dec2flt_parse_try_parse_digits}, use the invariant that after
$k$ iterations, $0\leq k\leq q$, the current slice consists of $N-8k$
one bytes followed by \texttt{e655360}; the accumulator is some
\texttt{u64}.  Suppose $k<q$.  The slice then has at least eight bytes and its
first eight are all $49=\mathtt{0x31}$.  In
\noderef{SliceU8_Insts_Dec2flt_modelNumImpDec2fltCommonByteSlice_read_u64},
the range-to-eight operation is therefore in bounds, the eight-byte source
and destination have equal length, and little-endian assembly gives
\[
  v=\sum_{r=0}^{7}\mathtt{0x31}\,2^{8r}
   =\mathtt{0x3131313131313131}.
\]
The bit test in \noderef{num_imp_dec2flt_common_is_8digits} evaluates as
\[
\begin{aligned}
 v\mathbin{\mathtt{wrapping+}}\mathtt{0x4646464646464646}
   &=\mathtt{0x7777777777777777},\\
 v\mathbin{\mathtt{wrapping-}}\mathtt{0x3030303030303030}
   &=\mathtt{0x0101010101010101},\\
 \mathtt{0x7777777777777777}\mathbin{\mathtt{|}}
   \mathtt{0x0101010101010101}
   &=\mathtt{0x7777777777777777},\\
 \mathtt{0x7777777777777777}\mathbin{\mathtt{\&}}
   \mathtt{0x8080808080808080}&=0.
\end{aligned}
\]
The sum is $8608480567731124087<2^{64}$ and the minuend exceeds the
subtrahend, so these wrapping values agree with the displayed ordinary
computations.  Consequently the extracted equality test returns true.

It remains to check that the call to
\noderef{num_imp_dec2flt_parse_parse_8digits} returns normally; its value is
irrelevant because the later many-digit retry starts from zero.  Its first
checked subtraction gives
\[
 v_1=\mathtt{0x0101010101010101}=72340172838076673.
\]
The checked product and shift are
\[
 10v_1=723401728380766730<2^{64},\qquad
 v_1\mathbin{\mathtt{>>>}}8
   =282578800148737,
\]
and their checked sum is
$723684307180915467<2^{64}$.  The shift is defined because $8<64$.
The following AND is total; both multiplications in the helper are explicitly
wrapping.  The next right shift is defined because $16<64$, the second AND is
total, and the next addition is explicitly wrapping.  Finally the shift by
$32<64$ produces a value at most
$(2^{64}-1)\mathbin{\mathtt{>>>}}32=2^{32}-1$; hence its checked cast to
\texttt{u32} succeeds, and the final widening cast back to \texttt{u64} is
exact.  Thus no operation in this helper fails.  The outer multiplication and
addition updating the bulk accumulator are also explicitly wrapping, and
dropping eight bytes is in bounds.  This proves the induction step.

At $k=q$ only the seven-byte suffix \texttt{e655360} remains, so the
eight-byte guard is false.  The scalar loop reads its first byte $101$ in
bounds; wrapping subtraction of $48$ gives $53\not<10$, so it consumes no
byte.  The final drop by its zero count is in bounds.  Hence the first digit
scan leaves exactly that suffix.  Now use the configured 64-bit widths in
\noderef{Assumptions} and the definition
\noderef{SliceU8_Insts_Dec2flt_modelNumImpDec2fltCommonByteSlice_offset_from}.
For the suffix relative to the original slice, the two length casts are
$M:\mathtt{usize}\mapsto M:\mathtt{isize}$ and
$7:\mathtt{usize}\mapsto7:\mathtt{isize}$; both are in range, as is the
checked subtraction $M-7=N$.  Thus the extracted digit count is exactly $N$.

In \noderef{num_imp_dec2flt_parse_parse_partial_number}, the next byte is not
a point, so the fractional count and initial \texttt{i64} exponent are zero.
The digit-count addition is $N+0=N$.  Splitting byte $101$ selects the
scientific branch.  Applying the concrete \texttt{655360} clause of
\noderef{NumberHelperScientificExponentBounds} to the following six bytes
returns $65536$ and the empty suffix.  The first exponent addition is
$0+65536$, which is in signed 64-bit range.  For the empty suffix relative to
the original slice, the cited \texttt{offset\_from} definition casts lengths
$M$ and zero to \texttt{isize} and performs the checked subtraction
$M-0=M$.  The casts and subtraction succeed by \noderef{Assumptions}; the
subsequent cast of this nonnegative \texttt{isize} value to 64-bit
\texttt{usize} is exact.

Since $N>19$, the checked subtraction gives
$N-19=M-26$.  The adjustment loop in
\noderef{num_imp_dec2flt_parse_adjust_many_digit_count} reads the first byte
$49$.  It is neither a point nor a zero, so no subtraction occurs, the
scanning flag becomes false, and the next loop equation returns the unchanged
positive value $M-26$.  The parser consequently takes its many-digit retry.

That retry is \noderef{num_imp_dec2flt_parse_parse_many_digits}.  Its fresh
nineteen-digit scan, defined by
\noderef{num_imp_dec2flt_parse_try_parse_19digits}, has the exact invariant
that after $j\leq19$ leading ones its accumulator is
$a_j=(10^j-1)/9$ and its remaining slice has lost exactly $j$ bytes.  The
guard constant is
$\mathtt{MIN\_19DIGIT\_INT}=1000000000000000000=10^{18}$ by
\noderef{num_imp_dec2flt_parse_MIN_19DIGIT_INT}.  For $0\leq j\leq18$,
$a_j<10^{18}$, so in particular the first eighteen one digits leave
\[
 a_{18}=111111111111111111<10^{18}
\]
and the guard permits the nineteenth step.  At every one of these nineteen
steps the slice is nonempty, splitting it removes one byte, wrapping
subtraction gives digit one, and its cast to \texttt{u64} is exact.  The
largest checked product and sum occur on the nineteenth step:
\[
 10a_{18}=1111111111111111110,
 \qquad 10a_{18}+1=1111111111111111111<2^{64}.
\]
Hence all nineteen checked multiplications and additions succeed.  The new
value $a_{19}=1111111111111111111$ is at least $10^{18}$, so the next guard
stops before splitting another byte.  The remaining retry slice therefore
has length $M-19$, while the saved integer-end suffix \texttt{e655360} has
length seven.

The first conjunct of \noderef{NumberHelperMaximalRetryOffset} now identifies
the retry offset as $M-26=9223372036854775781$.  This nonnegative value is at
most $M$, so its cast from 64-bit \texttt{isize} to \texttt{i64} is exact by
\noderef{Assumptions}.  The second conjunct of the retry-offset lemma then says
that the final checked addition of the scientific value $65536$ fails with
\texttt{integerOverflow}.  Monadic binding propagates that failure out of
\texttt{parse\_many\_digits}, then out of
\texttt{parse\_partial\_number}.  Finally, the defining bind in
\noderef{num_imp_dec2flt_parse_parse_number} propagates the same failure
without reaching its length comparison.  Hence \texttt{parse\_number} has
exactly the asserted result.
\end{proof}
