\begin{lemma}[Safe many-digit retry with a decimal point]
Let a starting byte slice of length at most \(9223372036854775807\) consist
of an integer digit list, a decimal point, a fractional digit list, and a tail
whose first byte, if any, is not a digit.
Let \(I\) and \(F\) be the two digit-list lengths, and let the saved integer
end be exactly the suffix beginning at the point.  For an explicit exponent
\(E\), assume
\[
 \mathtt{i64::MIN}\leq -F+E
 \quad\hbox{and}\quad
 I-19+E\leq\mathtt{i64::MAX}.
\]
Then the extracted \texttt{parse\_many\_digits} call returns normally with
an unsigned mantissa and signed exponent.
\end{lemma}
\begin{proof}
Unfold \noderef{num_imp_dec2flt_parse_parse_many_digits}, and apply
\noderef{NumberHelperTryParse19SafeLength} to the integer digits with
the saved integer-end slice as tail.  If the first retry reaches the
\(10^{18}\) threshold from
\noderef{num_imp_dec2flt_parse_MIN_19DIGIT_INT}, its returned suffix is a
remaining integer-digit list followed by the saved end.  Its offset to the
saved end is therefore the remaining integer length, which lies in
\([0,I-19]\): the sharp threshold clause of
\noderef{NumberHelperTryParse19SafeLength} says that reaching \(10^{18}\)
from zero consumed at least 19 integer digits.  The assumed bound
\(\lvert\mathtt{start}\rvert\leq9223372036854775807\) makes
\noderef{NumberHelperOffsetSourceLength} applicable, and the cast to
\texttt{i64} is exact.  Adding \(E\) is safe: its lower endpoint is at
least \(E\), hence at least \(-F+E\), while its upper endpoint is at most
\(I-19+E\).

Otherwise the first retry's accumulator is below \(10^{18}\).  The last
clause of \noderef{NumberHelperTryParse19SafeLength} says that no integer
digit remains, so its suffix is exactly the saved end.  The first byte is
the displayed decimal point, making the one-byte range slice in the
unfolded routine in bounds and leaving the
fractional digits followed by the fixed tail.  Apply
\noderef{NumberHelperTryParse19SafeLength} again.  If \(R\) fractional
digits were consumed, its exact suffix and length bound give
\(0\leq R\leq F\).  The offset lemma returns \(R\); checked negation and
the equal-width signed cast give a retry base in \([-F,0]\).  Adding \(E\)
is therefore bounded below by \(-F+E\) and above by the intrinsic
\texttt{i64} upper bound on \(E\), since this retry base is nonpositive.
Both assumed endpoint bounds are within the signed 64-bit range, so all
offsets, casts, negation, and the final addition succeed.  These are every
fallible operation of the extracted many-digit routine, proving the claim.
\end{proof}
