\begin{lemma}[Safe complete scientific-exponent parsing]
Let a byte slice of length at most $9223372036854120458$ consist of an
optional ASCII plus or minus followed by a nonempty list of ASCII decimal
digits.  The extracted \texttt{parse\_scientific} returns normally with
\texttt{Some} exponent, consumes the complete slice, and the returned signed
exponent lies between $-655359$ and $655359$.
\end{lemma}
\begin{proof}
Let $q\geq1$ be the number of digit bytes.  The rendering hypothesis gives
exactly three cases for the first split in
\noderef{num_imp_dec2flt_parse_parse_scientific}: no sign, a plus, or a
minus.  By \noderef{ModelSliceSplitFirst}, the guarded
\texttt{split\_first} either retains the whole slice or removes its unique
sign byte.  In every case the resulting slice consists of exactly the $q$
digits and is nonempty.  Its index at zero is therefore
in bounds, and \noderef{ModelU8IsAsciiDigit} makes its first-byte ASCII test
true.

Induct over the scientific loop with visited count $j$, where
$0\leq j\leq q$, and accumulator $a$ satisfying
$0\leq a\leq655359$.  If $j<q$, the length guard justifies reading digit
$j$.  Wrapping subtraction by $48$ gives its value $d\in[0,9]$.  When
$a<65536$, the checked operations compute
$10a+d\leq10\cdot65535+9=655359<2^{63}$; when $a\geq65536$, the guarded
branch leaves it unchanged.  Thus the accumulator invariant is preserved.
The checked count increment is at most $q$, which is at most the whole input
length.  By \noderef{Assumptions} and the stated bound, this is strictly
below the 64-bit \texttt{usize} limit.  Hence all $q$ iterations succeed,
including those after the accumulator stops changing.

At count $q$ the loop's length guard is false.  Slicing the digit-only
suffix at that in-bounds count returns the empty slice.  Without a minus the
nonnegative accumulator is already the returned exponent.  With a minus,
checked negation is safe because $0\leq a\leq655359<2^{63}$ and returns
$-a$.  Consequently the function returns \texttt{Some}, consumes the whole
input, and its result lies in the claimed closed interval.
\end{proof}
