\begin{lemma}[Invalid overflow immediately beyond the rejection bound]
There is a source-valid Rust string and byte slice whose bytes are
\[
 [46]\mathbin{++}\operatorname{replicate}(9223372036854120450,49)
 \mathbin{++}[101,45,54,53,53,51,53,57,120].
\]
It has length $9223372036854120460$, is nonempty, belongs to neither the
complete numeric grammar nor the complete special grammar, and hence is
classified invalid.  Nevertheless, the extracted \texttt{parse\_number} and
the public extracted \texttt{f64} (binary64) specialization of \texttt{dec2flt} both return
\texttt{fail integerOverflow}.
\end{lemma}
\begin{proof}
Put
\[
 K=9223372036854120450,\qquad q=1152921504606765056.
\]
Thus $K=8q+2$.  Let $s$ be the displayed list, regarded as an Aeneas
\texttt{Str}; its byte list is also the \texttt{Slice U8} passed to the
extracted parser.  Its length is
$1+K+9=9223372036854120460$.  This is below both
$2^{63}-1=9223372036854775807$ and the 64-bit \texttt{Usize} maximum supplied
by \noderef{Assumptions}, so the carrier exists and satisfies
\noderef{SourceValidByteSlice}.  Every displayed byte is ASCII.  Taking the
Lean string consisting of a point, $K$ copies of the character \texttt{1},
and \texttt{e-655359x} gives exactly these UTF-8 bytes.  The source-string
clause of \noderef{DecimalGoalVocabularyDefault} therefore holds.  The first
byte also proves nonemptiness.  Write
\[
 E=[101,45,54,53,53,51,53,57,120]
\]
for the nine-byte suffix \texttt{e-655359x}.

Unfold the two complete grammars in
\noderef{DecimalGoalVocabularyDefault}.  A numeric rendering that begins
with a point has no leading sign and no integer digit, so validity forces the
run of bytes $49$ following the point to be its nonempty fractional digit
list.  The following byte $101$ can then only be the lower-case exponent
marker, byte $45$ its minus sign, and the next six bytes the exponent digits
$655359$.  The remaining final byte $120$ is neither an exponent digit nor
any byte that the numeric renderer may append.  Thus no valid numeric lexeme
renders the complete list.  A special rendering begins, after an optional
sign, with an ASCII case variant of \texttt{i} or \texttt{n}; the first byte
here is a point.  Hence no special literal renders it either.  These are
exactly the two negated existentials in the \texttt{none} case of
\texttt{classifies}, proving the stated invalid classification.

It remains to check that failure occurs before the unmatched \texttt{x} can
be used for whole-input rejection.  First execute the initial digit scan in
\noderef{num_imp_dec2flt_parse_try_parse_digits}.  Its input begins with
$[46,49,49,49,49,49,49,49]$.  The bulk-loop length guard is true, so the
eight-byte range in
\noderef{SliceU8_Insts_Dec2flt_modelNumImpDec2fltCommonByteSlice_read_u64}
is in bounds.  That definition copies those bytes and returns the
little-endian word \texttt{0x313131313131312e}.  In
\noderef{num_imp_dec2flt_common_is_8digits}, the fixed wrapping addition and
subtraction give respectively \texttt{0x7777777777777774} and
\texttt{0x01010101010100fe}; after OR and masking by
\texttt{0x8080808080808080}, the result is \texttt{0x80}, not zero.  The
bulk loop therefore stops without parsing or dropping a block.  Its scalar
loop reads the point at the guarded index zero; wrapping subtraction of $48$
from $46$ gives $254$, which is not below ten, so the scalar count remains
zero and slicing at index zero returns the whole input.  Finally,
\noderef{SliceU8_Insts_Dec2flt_modelNumImpDec2fltCommonByteSlice_offset_from}
casts the two equal lengths to \texttt{isize} and subtracts them.  Both casts
are exact because the common length is below $2^{63}-1$, and the result is
the integer-digit count zero.

The guarded split in
\noderef{num_imp_dec2flt_parse_parse_partial_number} now removes the point and
presents
\[
 T_0=\operatorname{replicate}(K,49)\mathbin{++}E
\]
to the fractional digit scan.  We prove the exact behavior of its bulk loop
by induction on the number of completed iterations.  For $0\le r\le q$, let
\[
 T_r=\operatorname{replicate}(K-8r,49)\mathbin{++}E.
\]
The induction assertion is that after $r$ continuing iterations the residual
slice is exactly $T_r$, exactly $8r$ fractional bytes have been dropped, the
accumulator is a normally returned \texttt{u64}, and every operation so far
has returned normally.  The base case is the displayed $T_0$, with zero bytes
dropped and the normally returned accumulator from the initial scan.  Also
$8r\le8q=K-2<K+9<2^{63}<2^{64}$, so every implicit byte count in the
assertion is a valid \texttt{Usize}.

For the induction step, assume $r<q$.  Then
\[
 K-8r=8(q-r)+2\ge10.
\]
Thus the first eight bytes of $T_r$ are all $49$, and
$|T_r|=(K-8r)+9\ge19$.  The length guard is consequently true and justifies
both the eight-byte read in
\noderef{SliceU8_Insts_Dec2flt_modelNumImpDec2fltCommonByteSlice_read_u64}
and the later range slice dropping exactly eight bytes.  The read returns the
little-endian word
\[
 v=\texttt{0x3131313131313131}.
\]
For the test in \noderef{num_imp_dec2flt_common_is_8digits}, the wrapping sum
and difference are \texttt{0x7777777777777777} and
\texttt{0x0101010101010101}; their OR has zero intersection with
\texttt{0x8080808080808080}.  Hence the test returns true.

Every checked operation in
\noderef{num_imp_dec2flt_parse_parse_8digits} is also in range.  Subtracting
\texttt{0x3030303030303030} from $v$ gives
\texttt{0x0101010101010101}.  Multiplication by ten gives
\texttt{0x0a0a0a0a0a0a0a0a}, shifting the subtracted word right by eight
gives \texttt{0x0001010101010101}, and their checked sum is
\texttt{0x0a0b0b0b0b0b0b0b}<2^{64}$.  The remaining masked multiplications
and addition are wrapping.  On this input the first mask gives
\texttt{0x0000000b0000000b}; the two wrapping products are
\texttt{0x00a7dd0c0000044c} and \texttt{0x0001adbb0000000b}; and their
wrapping sum is \texttt{0x00a98ac700000457}.  The fixed right shifts by $8$,
$16$, and $32$ are all below the 64-bit width.  The last result is
\texttt{0x0000000000a98ac7}=11111111<2^{32}$, so the \texttt{u32} cast
succeeds and the helper returns $11111111$.  The enclosing accumulator
multiplication by $100000000$ and addition are explicitly wrapping and hence
return some \texttt{u64} for every prior accumulator.  Dropping the first
eight bytes is in bounds and leaves exactly
\[
 \operatorname{replicate}(K-8(r+1),49)\mathbin{++}E=T_{r+1}.
\]
This proves the induction step, including every guarded read, test, decimal
parse, cast, accumulator update, and slice operation in all $q$ continuing
iterations.

At the endpoint $K-8q=2$, so the exact residual is the eleven-byte slice
\[
 T_q=[49,49,101,45,54,53,53,51,53,57,120].
\]
Its length guard is still true.  The guarded read of its first eight bytes
returns the little-endian word \texttt{0x333535362d653131}.  In the cited
eight-digit test, the wrapping sum and difference are
\texttt{0x797b7b7c73ab7777} and \texttt{0x03050505fd350101}; their OR masked by
\texttt{0x8080808080808080} is \texttt{0x0000000080800000}, which is
nonzero.  The bulk loop therefore rejects this mixed block, calls neither
\texttt{parse\_8digits} nor the drop operation, and hands exactly $T_q$ to
the scalar loop.

That loop begins with count zero.  At counts zero and one, the guard is true,
the indexed byte is $49$, wrapping subtraction by $48$ gives digit $1$, and
the accumulator multiplication and addition are wrapping.  The checked
count increments yield one and two, both within \texttt{Usize} and below the
eleven-byte slice length.  At count two the guard is again true and the
indexed byte is $101$; wrapping subtraction gives $53$, not below ten, so the
loop stops without a third increment.  Its final range slice at the in-bounds
index two is precisely $E$.  Thus the scan consumes exactly
$8q+2=K$ ones and no byte of \texttt{e-655359x}.

The fractional call to the cited \texttt{offset\_from} now casts the original
fractional-scan length $K+9=9223372036854120459$ and the residual length $9$
to \texttt{isize}, then computes their checked difference $K$.  Both casts
are exact because both lengths are below $2^{63}-1$, and the nonnegative
difference is in range.  Its checked negation is $-K$, still above
\texttt{i64::MIN}, and its cast to the 64-bit \texttt{i64} is exact.  The
earlier integer-digit count is zero, so the checked significand-count addition
is $0+K=K$, in range and nonzero.

The exponent split then consumes byte $101$ and passes
$[45,54,53,53,51,53,57,120]$, namely \texttt{-655359x}, to
\noderef{num_imp_dec2flt_parse_parse_scientific}.  That function's guarded
first split removes the minus sign, leaving the seven-byte slice
$[54,53,53,51,53,57,120]$.  Its initial slice is nonempty and byte $54$ is
an ASCII digit.  At loop counts $0,1,2,3,4,5$, all strictly below seven, the
indexed bytes are the six digits and the accumulated values after their
updates are successively $6,65,655,6553,65535,655359$.  Before every update
the previous value is below $65536$; each digit-to-\texttt{i64} cast is exact;
each multiplication, addition, and count increment is in range; and the
largest checked arithmetic is
$10\cdot65535+9=655359<2^{63}$.  At count six the guard is still true but the
indexed byte is $120$; subtracting $48$ gives $72$, not below ten, so the loop
stops without incrementing or consuming it.  Slicing at the in-bounds index
six returns exactly $[120]$, and checked negation of $655359$ returns
$-655359$.  Thus the scientific parser returns that value with precisely the
one-byte residual suffix \texttt{x}.  The option branch continues, and the
next operation in
\noderef{num_imp_dec2flt_parse_parse_partial_number} is the checked addition
\[
 -K+(-655359)
 =-(9223372036854120450+655359)
 =-9223372036854775809=-2^{63}-1.
\]
This is one below \texttt{i64::MIN}, so the extracted addition returns
\texttt{fail integerOverflow}.  In particular, the partial parser fails
before its subsequent \texttt{offset\_from}, consumed-length cast,
many-digit branch, or return record, and hence before the trailing byte can
cause ordinary whole-input rejection.  The defining bind in
\noderef{num_imp_dec2flt_parse_parse_number} propagates exactly that failure.

Finally, \noderef{ModelStrAsBytes} gives the identical byte slice to the
public dispatcher, and \noderef{ModelSliceFirst} returns its initial point.
That byte is neither sign, so
\noderef{num_imp_dec2flt_dec2flt_with_trace} calls \texttt{parse\_number} on
the unchanged nonempty slice.  Concretely, the tests against bytes $45$ and
$43$ both fail, the body remains the entire nonempty slice, and the next bind
is the numeric helper call.  The failure just established propagates from
that bind before the numeric-result match, special parsing, or construction
of a source-level error; this prefix is independent of the later F64
operations, so it applies to exactly the four concrete instances in the Lean
equation.  The traced F64 call therefore has the same failure.
The outer bind in \noderef{num_imp_dec2flt_dec2flt} propagates it once more,
which proves the asserted public failure.
\end{proof}
