\begin{lemma}
For every byte slice $s$ whose length is at most
$\mathtt{isize::MAX}=2^{63}-1$ (that is, satisfying
\noderef{SourceValidByteSlice}) and every biased pair $b$, if the concrete
binary64 slow converter \texttt{parse\_long\_mantissa} returns $b$ on $s$, then
\[
                         b.m.\mathit{val}<2^{52}.
\]
\end{lemma}
\begin{proof}
The source-validity premise fixes the concrete Rust byte-slice domain.  The
mask argument below does not use the length bound and therefore proves the
mantissa conclusion on the stronger unrestricted model domain as well.

Put $U=2^{52}$.  From \noderef{ParserExponentConstants}, the concrete
binary64 instance has \texttt{SIG\_BITS}$=52$, infinite power $2047$, and
minimum exponent $-1022$.  Unfold
\noderef{num_imp_dec2flt_slow_parse_long_mantissa}.  Its zero and infinity
pairs, constructed by
\noderef{num_imp_dec2flt_common_BiasedFp_zero_pow2}, have mantissa zero.
Thus an empty parsed digit sequence, decimal point below $-324$, decimal
point at least $310$, either loop sentinel, and either post-loop infinity
guard all satisfy the strict bound.

More explicitly, a failure of
\noderef{num_imp_dec2flt_decimal_seq_parse_decimal_seq} propagates and cannot
produce the assumed successful result.  For the first extracted loop,
\noderef{ParserSlowLoopZeroResult} says that the result option is either
\texttt{none} or the original zero pair.  Hence a \texttt{some} exit has
mantissa zero.  If it is \texttt{none}, the corresponding invariant
\noderef{ParserSlowLoopInfinityResult} says that the second loop's result is
either \texttt{none} or the original infinity pair, so its \texttt{some}
exit also has mantissa zero.  These two closed certificates account for all
iteration counts and all successful calls to the decimal right- and
left-shift operations; any checked cast, exponent update, or called decimal
operation which fails has already propagated through the result monad.

When both loop-result options are \texttt{none}, the third loop must return
normally.  The lower-exponent certificate
\noderef{ParserSlowLoopMinimumExponent} gives
$-1022\leq\texttt{exp23}$.  The checked subtraction of the concrete minimum
and the following addition therefore have their ordinary integer meanings.
If the resulting exponent reaches $2047$, the function returns the
zero-mantissa infinity pair.  Otherwise $52$ casts exactly to
\texttt{usize}, the checked addition forms $53$, and the call to
\noderef{num_imp_dec2flt_decimal_seq_DecimalSeq_left_shift} followed by
\noderef{num_imp_dec2flt_decimal_seq_DecimalSeq_round} must succeed.

The carry threshold is the legal shift
$1\mathbin{\mathtt{<<}}53=2^{53}$.  If the first rounded word reaches it,
the call to
\noderef{num_imp_dec2flt_decimal_seq_DecimalSeq_right_shift}, the checked
exponent increment, the second rounding call, and the second exponent guard
must all succeed; that guard may again return the infinity pair.  Otherwise
the code proceeds directly with the first rounded word.  In both the carrying
and noncarrying ordinary-return branches, including both subbranches of the
comparison against $U$, the final two checked operations are exactly
\[
             M=1\mathbin{\mathtt{<<}}52=U,
             \qquad K=M-1=U-1.
\]
The shift is legal by \noderef{ModelU64Shl}, and the subtraction cannot
underflow.  The stored mantissa is the rounded word conjoined with $K$.
By \noderef{ModelU64BitAnd}, its value is at most $K=U-1$, hence is strictly
less than $U$.  The Lean proof performs this same mask calculation at all
four post-loop ordinary returns.  Together with the sentinel cases above,
this exhausts every successful result of the slow converter.
\end{proof}
