\begin{lemma}[Quantitative normal continuation of slow loop zero]
Let $d$ have a decimal retained prefix, positive head, exact prefix length
equal to its count at most 768, and point $1\le p<310$. Let the I32
exponent satisfy $0\le e\le1260$. Define $V$ by retained decimal value,
and suppose $X=V(d)+\eta$, $Y=V(d)+u$, $0\le\eta<u$, and sticky true
iff $\eta>0$. One actual specialized slow-loop-zero body step returns
normally with no early result, a right-shift result $d'$ by its selected
$k\le60$, and an I32 exponent $e'=e+k$. The right-shift call itself
returns normally. The output has count at most 768, decimal retained
prefix of exact length, positive head, and nonzero last retained cell.
Its transported endpoints are $X/2^k=V(d')+\eta'$ and
$Y/2^k=V(d')+u'$ with $0\le\eta'<u'$ and exact sticky equivalence.
If $p\ge19$, then $p'=p-18$ or $p-19$; if $p\le18$, then $p'=0$ or 1.
A stall $p=p'=1$ leaves leading output digit exactly one. A point-one
input already headed by one instead has $p'=0$.
\end{lemma}
\begin{proof}
Use the actual body in \noderef{num_imp_dec2flt_slow_parse_long_mantissa}.
Its positive-point and None guards hold. Casting $p$ to Usize is exact
since $1\le p\le309$, using the width in \noderef{Assumptions}.
\noderef{SlowShiftSelectorCertificate} supplies the actual normal selector
result $k\le60$ and its two power brackets. Apply
\noderef{P472_T1_DecimalRightShiftLoop0Execution} to this $k$ and $d$.
Its point, count, digit, and shape premises are the given ones. It constructs
the NORMAL complete right-shift call and actual prefix results $r,c$ with
$B=2^k\le c<10B$, nonzero output count, prospective point
$p'=p-r+1\ge-2047$, and unchanged input prefix record.
The positive head also implies $V(d)>0$ by positivity of its digit fold.
Thus \noderef{P472_T1_LoopZeroRightShiftTransport} applies to the given
$\eta,u$ and constructs the error and sticky transport for this same call.
Normal-result injectivity identifies its returned record with $d'$.
\noderef{P495_T1_RightShiftCanonical} supplies output shape and terminal
trimming using the same normal call and nonzero count, and transports the
fixed $Y$ endpoint. All its input and endpoint hypotheses are exactly the
ones stated here.

Apply \noderef{P495_T1_RightPrefixLengthBounds} to the actual prefix
equation exposed by the execution principal. It gives
$10^{r-1}\le c<10^r$. If $p\ge19$, the selector gives $k=60$ and
$10^{18}<B<10^{19}$. Combining $B\le c<10B$ with the decimal-length
bounds gives $19\le r\le20$: $r\le18$ would give $c<10^{18}<B$,
and $r\ge21$ would give $c\ge10^{20}>10B$. Therefore
$p'=p-18$ or $p-19$.
For $1\le p\le18$, the selector gives $B\le10^p<2B$, hence
$10^{p-1}<B$. If $r<p$, then $c<10^r\le10^{p-1}<B$.
If $r\ge p+2$, then $c\ge10^{r-1}\ge10^{p+1}\ge10B$.
Both are impossible, so $r=p$ or $p+1$, giving $p'=1$ or zero.

For a point-one stall, the selector has $k=3$, so division is by eight.
\noderef{P472_T1_DecimalSeqRightShiftRecordSemantics} on this actual call
has no reset alternative because the output count is nonzero. It gives
$V(d')=V(d)/8-\rho$, $\rho\ge0$. By
\noderef{P472_T1_DecimalValueBounds}, $V(d)<10$ and, at $p'=1$, the
positive output head $h'$ satisfies $h'\le V(d')$. Consequently
$1\le h'\le V(d')<10/8<2$; integrality makes $h'=1$.
Conversely, if the input head is one and $p=p'=1$, then $p'=p-r+1$
forces $r=1$. The input count is at least one, so the within-prefix
alternative of \noderef{P472_T1_DecimalRightShiftPrefixLoopSemantics}
makes $c$ the one-digit fold, equal to one. This contradicts $c\ge2^3$.
The exhaustive point alternatives leave $p'=0$.

The reset test in the slow body compares to $-2047$, by
\noderef{num_imp_dec2flt_decimal_seq_DecimalSeq_DECIMAL_POINT_RANGE}.
The execution bound $p'\ge-2047$ makes this test false. The cast of
$k\le60$ to I32 is exact. The checked update is safe since
$0\le e+k\le1320<2^{31}$ and returns the mathematical value $e+k$.
Substituting the selector, normal shift, false reset, and exact addition
results into the body gives the required normal None continuation.
All endpoint equations and shape clauses already proved refer to that
same $d'$. Thus each asserted conclusion holds.
\end{proof}
