\begin{lemma}[Slow normalization loop zero with fixed endpoints]
Let the nonempty parsed record $d$ have decimal cells, positive leading digit,
point $-324\leq p<310$, and canonical initial cell
\[
 A=V(d)+\eta,\quad0\leq\eta<10^{p-768},\quad
 d.\mathit{truncated}\iff0<\eta,
\]
and fix its upper endpoint $B=V(d)+10^{p-768}$.  The first extracted slow
loop terminates after at most 21 right shifts, returns no early result, and
returns a nonreset record $d_0$ with $-324\leq p_0\leq0$ and exponent $e_0$
satisfying $0\leq e_0\leq60\,\mathit{steps}$.  Its selector is the literal
table stated in Lean.  The output has decimal cells and positive-leading
shape, $10^{-325}\leq A$, and witnesses
\[
 A/2^{e_0}=V(d_0)+\eta_0,\qquad
 B/2^{e_0}=V(d_0)+u_0,\qquad
 0\leq\eta_0<u_0,\qquad
 d_0.\mathit{truncated}\iff0<\eta_0.
\]
The exact loop-call equation and all these facts form the Lean existential.
\end{lemma}
\begin{proof}
Use the extracted loop definition in
\noderef{num_imp_dec2flt_slow_parse_long_mantissa}.  For a state after $s$
right shifts, with record $q$, point $r$, and exponent $e$, maintain the
following simultaneous invariant:
\[
 \begin{gathered}
 -324\le r<310,\qquad 0\le e\le60s,\\
 q\text{ has at most 768 decimal cells and a positive leading cell},\\
 A/2^e=V(q)+\eta_s,\quad B/2^e=V(q)+u_s,quad
 0\le\eta_s<u_s,quad q.\mathit{truncated}\iff0<\eta_s.
 \end{gathered}                                                    \tag{1}
\]
The quantitative part of the invariant is
\[
\begin{array}{ll}
r\ge19&\Longrightarrow 18s+r\le309,\\
2\le r\le18&\Longrightarrow s\le17,\\
r=1\text{ and the leading cell is }1&\Longrightarrow s\le19,\\
r=1\text{ and the leading cell is not }1&\Longrightarrow s\le18,\\
r\le0&\Longrightarrow s\le20.
\end{array}                                                        \tag{2}
\]
At the initial state take $s=e=0$.  The hypothesis $r<310$ is integral, so
$r\le309$, which proves the first clause of (2); all other clauses with a
true antecedent have zero on their right-hand side.  The supplied $\eta$ is
strictly below the positive cutoff.  Taking $u=10^{p-768}$ and using the
given equation for $B$ proves the two endpoint clauses of (1).

If $r\le0$, the guard in the cited extracted definition returns this state
unchanged.  Suppose therefore that $r>0$.  The alternatives in (2) imply
$s\le20$: in the large regime the first clause even gives $s\le16$, in the
middle regime the second gives $s\le17$, and at point one the two leading-cell
clauses give $s\le19$.  Consequently the pre-update exponent satisfies
$0\le e\le1200$.  Apply \noderef{P804_T1_RightLoopStep} with endpoints
$A/2^e$ and $B/2^e$.  It proves the exact body call, a selected
$k\le60$, the successful right shift, the nonreset continuation, and
\[
 e'=e+k.                                                           \tag{3}
\]
Thus the I32 addition is justified at the instant it is executed:
$0\le e+k\le1260<2^{31}$.  The helper also transports the digit shape,
sticky equivalence, and endpoint errors.  Since
$(A/2^e)/2^k=A/2^{e+k}$, and similarly for $B$, (3) converts its transported
endpoints precisely into (1) for the successor.  Moreover
$e'le60s+60=60(s+1)$.

We check (2) for $s+1$ from the quantitative alternatives in the same
helper.  If $r\ge19$, then $r'=r-18$ or $r'=r-19$.  When $r'\ge19$,
\[
 18(s+1)+r'\le18s+r\le309.
\]
If that step instead enters any smaller regime, $18s+r\le309$ and $r\ge19$
give $s\le16$, so $s+1\le17$, stronger than every required new bound.  If
$2\le r\le18$, then $r'$ is zero or one and $s\le17$, hence
$s+1\le18$; this proves the non-leading-one point-one clause and the terminal
clause, and is also stronger than the leading-one clause.  Finally let
$r=1$.  If its leading cell is one, the no-stall clause of
\noderef{P804_T1_RightLoopStep} forces $r'=0$, and the old $s\le19$ gives
$s+1\le20$.  If its leading cell is not one, the old bound is $s\le18$.
A return to point one has leading cell exactly one by the helper's stall
clause, so its new bound is $s+1\le19$; a return to point zero instead has
$s+1\le19\le20$.  These cases prove every clause of (2), including the
correlation that prevents two point-one stalls.

For termination use the natural-valued rank
\[
 R(q)=\begin{cases}
 2r+0,&r>0\text{ and the leading cell is }1,\\
 2r+1,&r>0\text{ and the leading cell is not }1,\\
 0,&r\le0.
 \end{cases}
\]
The large-point alternatives decrease $r$ by at least eighteen.  From
$2\le r\le18$, the successor point is at most one, so the new rank is at most
three whereas the old rank is at least four.  At $r=1$, a leading-one input
exits, while a non-leading-one stall changes rank from three to two.  Hence
every continuation strictly decreases $R$, and the extracted loop rule
applies with (1)--(2).

At exit the last clause of (2) gives $s\le20$, hence the claimed weaker
$s\le21$.  Invariant (1) supplies $0\le e\le60s$, the output point bounds,
shape, exact call, and endpoint witnesses.  Each literal selector entry is
at most sixty (the entries are
$0,3,6,9,13,16,19,23,26,29,33,36,39,43,46,49,53,56,59$, followed by the
fallback $60$), proving the displayed selector conjunct.

It remains only to prove the stated lower bound on $A$.  Apply
\noderef{P804_T1_DecimalValueBounds} to the initial retained word.  With
leading cell $z\ge1$ it gives
$V(d)\ge z10^{p-1}\ge10^{p-1}$.  Since $p\ge-324$,
$10^{p-1}\ge10^{-325}$; since $A=V(d)+\eta$ and $\eta\ge0$, this yields
$10^{-325}\le A$.  All conjuncts of the existential now follow.
\end{proof}
