\begin{lemma}
For every signed exponent $q$, unsigned mantissa $w$, and biased pair $fp$, a
normal return \texttt{compute\_float}$(q,w)=fp$ belongs to at least one of the
following exhaustive classes:
\begin{enumerate}
\item $fp$ has negative biased exponent;
\item $w=0$ and $fp=(0,0)$;
\item $w>0$, $q<-342$, and $fp=(0,0)$;
\item $w>0$, $q>308$, and $fp=(0,2047)$;
\item $w>0$, $-342\le q\le308$, and the biased exponent of $fp$ is
nonnegative.
\end{enumerate}
\end{lemma}
\begin{proof}
The binary64 constants in \noderef{ParserExponentConstants} show that the
smallest and largest admitted decimal exponents are $-342$ and $308$, and
that the infinite biased exponent is $2047$.  Unfold
\noderef{num_imp_dec2flt_lemire_compute_float}.  Each of its first three
monadic calls is an invocation of
\noderef{num_imp_dec2flt_common_BiasedFp_zero_pow2}; unfolding that
definition gives, without any possible failure,
\[
 fp_0=(0,0),\qquad fp_\infty=(0,2047),\qquad fp_{err}=(0,-1). \tag{1}
\]

The first conditional tests $w=0$.  On its true branch the assumed return
equation and (1) identify $fp$ with $fp_0$, giving class 2.  On the false
branch, unsignedness gives $w>0$.  The next trait call returns $-342$, its
cast to signed 64 bits is exact, and the next conditional tests $q<-342$.
Its true branch returns $fp_0$, giving class 3.  On its false branch one has
$-342\le q$.  Similarly, the largest-power trait call returns $308$, its cast
is exact, and the next conditional tests $q>308$.  Its true branch returns
$fp_\infty$, giving class 4; its false branch leaves
$-342\le q\le308$.

It remains only to classify a normal return from the duplicated arithmetic
blocks after normalization and product approximation.  The principal
statement of \noderef{ParserComputeFloatExponentRange} applies to exactly the
assumed \texttt{compute\_float} return and says that $fp.p_{biased}$ is $-1$
or is in $[0,2047]$.  In the first alternative it is negative, giving class
1.  In the second it is nonnegative, and the inequalities already obtained
for $w$ and $q$ give class 5.  This argument does not assume that intermediate
checked operations succeed: on any path producing the assumed \texttt{ok}
result, every earlier result-monad bind must already have returned
\texttt{ok}.  Failure and divergence therefore contribute no omitted normal
return.  The five classes exhaust the three immediate tests and both copies
of the continuing block.
\end{proof}
