\begin{helper}
For every signed decimal exponent $q$, unsigned significand $w$, and biased
pair $b$, if the extracted binary64 call \texttt{compute\_float}$(q,w)$
returns $b$ normally, then $b$'s signed biased-exponent field is either $-1$
or lies in the inclusive interval $[0,2047]$.
\end{helper}
\begin{proof}
Use the binary64 evaluations in \noderef{ParserExponentConstants}.  In
particular, the decimal cutoffs are $-342$ and $308$, the significand width is
$52$, and the saturated exponent is $2047$.  Unfold
\noderef{num_imp_dec2flt_lemire_compute_float}.  Its three eager zero-pair
constructions give exponents $0$, $2047$, and $-1$.  Thus the zero-significand
return and the two decimal-cutoff returns are in $[0,2047]$, while either
approximation-defer return has exponent $-1$.

On every remaining normally returning path, normalization, the precision
calculation, the product approximation, and each subsequent arithmetic
operation returned normally: a failure or divergence at any monadic
predecessor cannot yield the assumed \texttt{ok} result.  Peel those
predecessors in result-monad order.  After the product, the extracted
definition contains two copies of the same exponent block: one when the low
limb is maximal and $-27\le q\le55$, and one when the low limb is not
maximal.  The proof performs the following case analysis separately in both
copies, so it does not identify the copies propositionally.

Let \texttt{power2} be the successful signed result immediately before its
comparison with zero.  If \texttt{power2}$\le0$, the next negation and
addition must succeed.  When the resulting shift count is at least $64$, the
function returns the zero sentinel, whose exponent is $0$.  Otherwise the
mantissa shifts, increment, and $1\mathbin{\mathtt{<<}}52$ must all succeed,
and the returned exponent is \texttt{IScalar.cast\_fromBool} of the final
mantissa comparison.  That cast has integer value $0$ or $1$, hence lies in
$[0,2047]$.

If \texttt{power2}$>0$, all conditional round-to-even work changes only the
mantissa.  Peel its successful result, the low-bit increment, the shift by
one, and the successful threshold computation
$2\mathbin{\mathtt{<<}}52$.  In the no-carry case the candidate exponent is
\texttt{power2}, so it is positive.  In the carry case the extracted checked
addition returns the candidate exponent
$\texttt{power2}+1$, which is also positive.  The final guard is applied to
that exact candidate.  If it is at least $2047$, the returned infinity
sentinel has exponent $2047$.  Otherwise the constructed record retains the
candidate itself, and the failed guard gives an upper bound below $2047$.
Thus every ordinary return has exponent in $[0,2047]$.  Together with the
zero, infinity, and defer sentinels, these cases exhaust every successful
return of both duplicated blocks and establish the claim.
\end{proof}
