\begin{helper}[Quantitative step of slow normalization loop one]
Let the retained digits of $d$ form a list of length $d.\mathit{num\_digits}$,
all below ten, with positive leading digit, and with
$d.\mathit{num\_digits}\leq768$.  Write $I$ for their base-ten fold and
\[
 V=I10^{p-d.\mathit{num\_digits}},
 \qquad p=d.\mathit{decimal\_point}.
\]
Suppose $-324\leq p\leq0$, $e\geq-1260$, and there are real numbers
$\eta,u$ such that
\[
 X=V+\eta,\qquad Y=V+u,\qquad
 0\leq\eta<u,\qquad
 (d.\mathit{truncated}=\mathsf{true}\iff0<\eta).             \tag{E}
\]
One execution of the second extracted slow-loop body either returns the
unchanged done state, with $p=0$ and leading digit at least five, or returns a
continuation.  In the continuation case there are a selected shift $k\leq60$,
its extracted digit growth $g$, a returned record $d'$, exponent $e'=e-k$,
and leading digits $z,z'\in[1,9]$ for the input and output retained words;
the extracted growth and left-shift calls return $g$ and $d'$ exactly.

The output retained digits have length $d'.\mathit{num\_digits}$, are all
below ten, and number at most $768$.  If $I'$ is their base-ten fold and
\[
 V'=I'10^{p'-d'.\mathit{num\_digits}},
 \qquad p'=d'.\mathit{decimal\_point},
\]
then there are real numbers $\eta',u'$ satisfying the corresponding
continuation endpoint equations
\[
 2^kX=V'+\eta',\qquad 2^kY=V'+u',\qquad
 0\leq\eta'<u',\qquad
 (d'.\mathit{truncated}=\mathsf{true}\iff0<\eta').          \tag{E'}
\]

Quantitatively, $p\le-19$ implies $p'=p+18$ or $p'=p+19$, while
$-18\le p<0$ implies $p'\in\{-1,0\}$.  The correlated tail facts are:
if $p=p'=-1$, then $z'\ge7$; if $p=-1$ and $z\ge7$, then
$p'=0$ and $z'\ge5$; and if $p=0$, then $p'=0$, the input has
$z<5$, an input $z\le2$ gives $z'\ge3$, and an input $z\ge3$
gives $z'\ge5$.
These alternatives, the endpoint equations above, and all exact call equations
are the conjunctions of the Lean statement.
\end{helper}
\begin{proof}
Let the retained input word be $z::z_s$.  Its stated length and the fixed
array length make the read of cell zero legal, and the list equality
identifies the read byte with $z$.  If $p=0$ and $z\ge5$, unfold
\noderef{num_imp_dec2flt_slow_parse_long_mantissa}: the loop-one body takes
its immediate-exit branch, changes no field, and returns the asserted done
state.

Assume that this exit test is false.  If $p<0$, checked I32 negation gives
$-p\in[1,324]$, its Usize cast has that same natural value, and
\noderef{SlowShiftSelectorCertificate} returns the selected $k\le60$ with
the exact extracted closure-call equation.  Applying
\noderef{P804_T1_SelectedLeftGrowth} to $n=-p$ supplies the exact growth call
and gives
\[
 p\le-19\Rightarrow g\in\{18,19\},\qquad
 -18\le p<0\Rightarrow g\in\{-p-1,-p\}.                 \tag{1}
\]
If instead $p=0$, the failed exit test gives $z<5$.  The extracted selector
chooses $k=2$ for $z=1$ and $k=1$ for $z=2,3,4$.
\noderef{P804_T1_PointZeroGrowth} proves that the growth call returns
$g=0$ in all four cases.  Thus in every continuing branch the selector and
growth calls appearing in the body have been constructed, with $k\le60$.

Apply \noderef{DecimalLeftShiftLoop1Execution}.  It constructs the complete
left-shift call, returns a nonempty positive-leading record $d'$, and bounds
its growth by nineteen.  Then
\noderef{P804_T1_LeftShiftPointGrowth}, using the same growth-call equation,
identifies the point update exactly as
\[
                              p'=p+g.                  \tag{2}
\]
Equations (1)--(2) give the two large- and small-negative point alternatives.
At point zero, $g=0$ gives $p'=0$.

It remains to correlate the possible tail states.  On the $p=-1$ branch the
literal selector chooses $k=3$.  If it stalls at $p'=-1$, clause one of
\noderef{P804_T1_LeftLeadingProgress} gives $z'\ge7$.  Conversely, when the
input already has $z\ge7$,
\noderef{P804_T1_PointMinusOneGrowth} forces $g=1$; (2) gives $p'=0$, and
clause four of \noderef{P804_T1_LeftLeadingProgress} gives $z'\ge5$.
At point zero, the selector is $(z,k)=(1,2)$ or has $k=1$.  Clauses two and
three of the same leading-progress lemma therefore give respectively
$z\le2\Rightarrow z'\ge3$ and $z\ge3\Rightarrow z'\ge5$.  This is the
simultaneous three-state tail information in the statement, rather than
independent worst-case estimates.

Apply \noderef{DecimalSeqLeftShiftCanonical} to the successful shift.  Its
nonzero alternative supplies the output capacity, decimal-cell, exact-length,
positive-leading, sticky, and endpoint clauses, with endpoints
$2^kX,2^kY$.  In particular it also gives $p'\le19$.  The extracted reset
constant is exactly $2047$ by
\noderef{num_imp_dec2flt_decimal_seq_DecimalSeq_DECIMAL_POINT_RANGE}; hence
$p'\le19$ makes the post-shift reset comparison false.

Finally, the Usize-to-I32 cast of $k$ is exact because $k\le60$.  Before the
update, $e\ge-1260$, so $e-k\ge-1320$, above the I32 minimum; its upper bound
follows from the intrinsic I32 upper bound on $e$ and $k\ge0$.  Therefore the
checked subtraction succeeds and returns the mathematical value $e-k$.
Substitute the read, selector, growth, shift, reset-test, cast, and subtraction
equations into the unfolded extracted body.  This gives exactly the stated
continuation and completes every output clause.
\end{proof}
