\begin{lemma}[Normal rounding suffix executes]
Let $p$ be a modeled I32 and $M$ a modeled U64 with
$0<p.\mathrm{val}\le2110$ and $M.\mathrm{val}<2^{55}$.
The following source-ordered Result computation returns normally:
lift $c=M\mathbin{\&}1$; checked addition $M_2=M+c$;
checked right shift $M_3=M_2\gg1$; checked left shift
$T=2\ll52$; if $M_3\ge T$, compute $K=1\ll52$ and
the checked I32 addition $p_2=p+1$ and take $(M_4,p_1)=(K,p_2)$,
otherwise take $(M_4,p_1)=(M_3,p)$; then compute $B=1\ll52$,
lift $C=\mathord{\sim}B$, and lift $M_5=M_4\mathbin{\&}C$.
Return $(0,2047)$ if $p_1\ge2047$, and $(M_5,p_1)$ otherwise.
The literals 1 in right shifts and exponent addition have I32 type;
52 has U32 type; mantissa literals have U64 type. Normality means
$\mathrm{WP.spec}$ with the identically true postcondition, equivalently
existence of an $\mathrm{ok}$ biased pair, with no failure or divergence.
\end{lemma}
\begin{proof}
All U64 bitwise AND and complement operations are total with their usual
64-bit semantics. In particular the first lifted AND returns $c$ with
$0\le c.\mathrm{val}\le1$. Thus
$M.\mathrm{val}+c.\mathrm{val}\le2^{55}<2^{64}$, so the checked U64
addition returns $M_2$ normally. Its right shift has count 1, which is
nonnegative and below 64, so it returns $M_3$ normally. The left shift
of 2 has count 52 below 64 and returns $T$ normally. Such shifts use
bitvector semantics and require only the shift-count bound.

Split on the total comparison $M_3\ge T$. In its true arm,
$1\ll52$ succeeds by the same count bound. The hypotheses give
$2\le p.\mathrm{val}+1\le2111$, strictly within the signed 32-bit
range $[-2^{31},2^{31}-1]$, so the checked addition returns $p_2$.
The pair is then returned normally. In the false arm the pair
$(M_3,p)$ is returned without additional arithmetic. In either arm the
subsequent $1\ll52$ succeeds, and its lifted complement and the lifted
AND with $M_4$ are total. Finally the comparison of $p_1$ with 2047 is
total; each branch is an immediate normal return of a biased pair.
Substituting each normal result into the next monadic bind proves the
claimed normality of the entire computation, including the carry and
non-carry arms. No correctness-on-normal assumption is used.
\end{proof}

