\begin{lemma}[Scientific parsing from rendered digit values]
Let an Aeneas byte slice have byte
values equal to the standard rendering of an optional exponent sign followed
by a nonempty list of decimal digits.  If every digit is below ten, then
\texttt{parse\_scientific} consumes the whole slice and returns an exponent in
([-5764607523034234879,5764607523034234879]).  When at most five digits are rendered, the returned
exponent lies in the sharper interval ([-99999,99999]).  Unless the optional
sign is a minus sign, the exponent is nonnegative.
\end{lemma}
\begin{proof}
Apply \noderef{NumberHelperSplitExponentSuffix} to the assumed byte-value
equality.  It produces the exact optional ASCII sign prefix and a byte list
whose values are the rendered digit values.  Every such byte has value
(48+d) for a stated digit (d<10), so it lies from 48 through 57.  The
digit-byte list is nonempty because equality of its mapped length with the
nonempty source digit list rules out the empty list; the same length equality
shows that the two digit counts coincide.

Apply \noderef{NumberHelperScientificPrefixSafeLength} once to this exact
byte decomposition with an empty tail.  The digit-byte list is nonempty
and consists of decimal bytes, and the empty tail has no first byte, so its
nondigit condition is vacuous.  The theorem returns one exponent and residual
slice together with the coarse interval, short-list refinement, and
nonnegativity unless the sign is minus.  Its exact residual-tail equality
gives complete consumption.  Transporting the established digit-list length
equality makes the short-list refinement apply whenever the original natural
digit list has length at most five.  Thus the same returned exponent satisfies
all three bounds and sign claims without any additional length restriction.
\end{proof}
