\begin{lemma}[Sharpness of the uniform safe-length bound]
There are a source-valid unsigned numeric slice $s$ and its valid exactly
rendered lexeme $x$ of length $9223372036854120459$, one more than the uniform
safe bound, for which the extracted \texttt{parse\_number} returns
\texttt{fail integerOverflow}.  Concretely, its bytes are a point, then
$9223372036854120450$ copies of ASCII \texttt{1}, then
\texttt{e-655359}.
\end{lemma}
\begin{proof}
Put
\[
 C=9223372036854120458,\qquad
 K=9223372036854120450,\qquad
 q=1152921504606765056.
\]
Thus $K=C-8=8q+2$.  By \noderef{Assumptions}, the list
\[
 [46]\mathbin{++}\operatorname{replicate}(K,49)\mathbin{++}
 [101,45,54,53,53,51,53,57]
\]
constructs an Aeneas slice: its length is
$1+K+8=C+1<2^{63}-1<2^{64}-1$.  Take it for $s$.  Its displayed length also
proves \noderef{SourceValidByteSlice} and nonemptiness.  Write
\[
 E=[101,45,54,53,53,51,53,57]
\]
for the eight bytes of \texttt{e-655359}.  Take $x$ with no
leading sign, no integer digits, $K$ fractional digits all equal to one, and
negative exponent digits $[6,5,5,3,5,9]$.  Under
\noderef{DecimalGoalVocabularyDefault}, all digits are below ten; the
fraction and exponent lists are nonempty; and rendering emits exactly the
point, the $K$ one bytes, and \texttt{e-655359}.  Thus all lexical premises in
the statement hold.

We next execute the initial digit scan in
\noderef{num_imp_dec2flt_parse_try_parse_digits}.  Its input begins with the
eight bytes $[46,49,49,49,49,49,49,49]$.  The length guard is true, so the
subslice in
\noderef{SliceU8_Insts_Dec2flt_modelNumImpDec2fltCommonByteSlice_read_u64}
is in bounds and that definition copies exactly those bytes and reads the
little-endian word
\texttt{0x313131313131312e}.  In
\noderef{num_imp_dec2flt_common_is_8digits}, adding the fixed
\texttt{0x4646464646464646}, subtracting
\texttt{0x3030303030303030}, ORing, and masking by
\texttt{0x8080808080808080} gives \texttt{0x80}, not zero.  The bulk loop
therefore returns without dropping a byte.  The scalar loop reads the point
at its guarded index zero; wrapping subtraction of $48$ from $46$ is $254$,
which is not below $10$, so its count remains zero.  Slicing at zero returns
the complete input.  Finally,
\noderef{SliceU8_Insts_Dec2flt_modelNumImpDec2fltCommonByteSlice_offset_from}
casts the two equal lengths and subtracts them, so the integer-digit count is
exactly zero.  The following guarded split removes the point and presents
\[
 T_0=\operatorname{replicate}(K,49)\mathbin{++}E
\]
to the fractional digit scan.

We prove the exact behavior of that scan's 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$, the accumulator is some \texttt{u64} value, and every
operation so far has returned normally.  The base case is the displayed
$T_0$; the initial accumulator is the normally returned accumulator from the
integer scan.

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

It remains to check the non-wrapping arithmetic of
\noderef{num_imp_dec2flt_parse_parse_8digits}, rather than merely using the
truth of the test.  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}, still below $2^{64}$.  The remaining masked
multiplications and addition in that definition are explicitly wrapping.  By
\noderef{num_imp_dec2flt_parse_parse_8digits_MASK}, the mask is
$1095216660735=\texttt{0x000000ff000000ff}$.  Thus masking the checked sum,
and masking that sum after its right shift by $16$, both give
\texttt{0x0000000b0000000b}.  By
\noderef{num_imp_dec2flt_parse_parse_8digits_MUL1}, the first multiplier is
$4294967296000100=\texttt{0x000f424000000064}$, so its wrapping product with
that masked word is \texttt{0x00a7dd0c0000044c}.  By
\noderef{num_imp_dec2flt_parse_parse_8digits_MUL2}, the second multiplier is
$42949672960001=\texttt{0x0000271000000001}$, so its wrapping product with
the second masked word is \texttt{0x0001adbb0000000b}.  Their wrapping sum is
\texttt{0x00a98ac700000457}.  All three right shifts use the fixed in-range
amounts $8$, $16$, and $32$.  The last shift is therefore
\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 also explicitly wrapping.
Dropping the first eight bytes of $T_r$ therefore returns normally with precisely
\[
 \operatorname{replicate}(K-8(r+1),49)\mathbin{++}E=T_{r+1}.
\]
This proves the induction step, including the read, digit test, decimal
parse, wrapping accumulator update, and slice operation of every one of the
$q$ continuing iterations.

At the endpoint, $K-8q=2$, so the exact residual is the ten-byte slice
\[
 T_q=[49,49,101,45,54,53,53,51,53,57].
\]
Its length guard is still true.  The guarded eight-byte read returns the
little-endian word \texttt{0x333535362d653131}, corresponding to
$[49,49,101,45,54,53,53,51]$.  In the cited eight-digit test, the same fixed
wrapping sum and difference are
\texttt{0x797b7b7c73ab7777} and
\texttt{0x03050505fd350101}; after OR and masking the result is
\texttt{0x0000000080800000}, which is nonzero.  Thus the bulk loop rejects
this mixed block, does not call \texttt{parse\_8digits}, does not drop any
byte, and hands exactly $T_q$ to the scalar loop.

That loop starts with count zero.  At counts zero and one, its guarded index
reads $49$, wrapping subtraction by $48$ gives the digit $1$, the accumulator
update is wrapping, and the checked count increments give respectively one
and two, both at most the ten-byte slice length.  At count two, the guarded
index reads $101$; wrapping subtraction gives $53$, not below ten, so the
loop stops without a third increment.  Its final slice at the in-bounds index
two is exactly $E$.  We have therefore accounted for $8q+2=K$ fractional
digits and identified every residual suffix used by either loop.

The fractional call to
\noderef{SliceU8_Insts_Dec2flt_modelNumImpDec2fltCommonByteSlice_offset_from}
now casts the original fractional-scan length $K+8=C$ and the residual length
$8$ to \texttt{isize}, then computes their checked difference $K$.  Both
casts are exact because $C<2^{63}-1$, and the subtraction is nonnegative and
in range.  Consequently its checked negation is $-K$, its cast to
\texttt{i64} is exact, and adding the zero integer-digit count to $K$ gives
the positive total significand count $K$ without overflow.

Splitting the exponent marker passes the suffix \texttt{-655359} to the
scientific parser.  The concrete negative clause of
\noderef{NumberHelperScientificExponentBounds} returns $-655359$ and an empty
suffix.  More explicitly, the guarded split of $E$ in
\noderef{num_imp_dec2flt_parse_parse_partial_number} reads $101$, selects its
\texttt{e} branch, and passes $[45,54,53,53,51,53,57]$ to that cited
scientific result.  The option branch therefore continues with value
$-655359$.  The next operation in
\noderef{num_imp_dec2flt_parse_parse_partial_number} is the checked addition
of the point exponent and this explicit exponent.  Its mathematical result is
\[
 -K-655359=-(9223372036854120450+655359)
 =-9223372036854775809=-2^{63}-1.
\]
This is one below \texttt{i64::MIN}; hence the extracted signed addition
returns \texttt{fail integerOverflow}.  Monadic binding propagates the failure
out of the partial parser and then, through
\noderef{num_imp_dec2flt_parse_parse_number}, out of \texttt{parse\_number}.
This failure occurs before any many-digit retry or consumed-length
calculation can be reached.

Finally, \noderef{NumberHelperAcceptanceSafeLength} establishes independently
that every source-valid, nonempty, exactly rendered unsigned valid numeric
slice of length at most $C$ makes \texttt{parse\_number} return normally with
\texttt{Some}.  The witness just executed has length exactly $C+1$ and instead
returns \texttt{fail integerOverflow}.  Hence the uniform safe length $C$ is
sharp; this conclusion uses the cited uniform theorem, not an analogy with
one boundary arithmetic calculation.
\end{proof}
