\begin{lemma}[Classification of a scientific prefix]
Let a byte slice be an optional exponent sign followed by a maximal decimal
digit prefix and a tail whose first byte, if present, is not a digit.  When
the sign is absent, additionally suppose that an empty digit prefix is not
caused by a leading plus or minus byte.  If the digit prefix is empty, the
extracted scientific parser returns normally with no exponent and exactly
the sign-stripped tail. Otherwise it
returns an exponent and leaves exactly the stated tail, with value in
$[-5764607523034234879,5764607523034234879]$, value in $[-99999,99999]$ for at most five digits, and
nonnegative value unless the sign is minus.
\end{lemma}
\begin{proof}
Split on whether the digit prefix is empty.  In the nonempty case all the
hypotheses are exactly those of
\noderef{NumberHelperScientificPrefixSafeLength}, which gives normal return,
the exact tail, both numerical bounds, and the sign-dependent nonnegativity.

Suppose instead that the digit prefix is empty.  Unfold
\noderef{num_imp_dec2flt_parse_parse_scientific}.  If the optional sign is
absent, the extra hypothesis says that a present first tail byte is neither
45 nor 43, so the sign test consumes nothing.  If the sign is present, the
first split consumes exactly its byte, 43 for plus or 45 for minus.  Thus in
all cases the slice inspected for a first exponent digit is exactly the
tail.  An empty tail triggers the parser's empty-slice branch and returns
no exponent.  For a nonempty tail, maximality says its first byte is outside
the interval $[48,57]$.  By
\noderef{ModelU8IsAsciiDigit}, the extracted ASCII-digit test is therefore
false, and the parser again returns normally with no exponent.  The slice
constructions used after removing a sign are legitimate because each is a
suffix of the original Aeneas slice and hence respects its
\texttt{usize}-length bound.
\end{proof}
