\begin{lemma}[Slow subnormal adjustment with fixed endpoints]
Let the loop-1 exit have point zero, nonzero count, leading digit at least
five, exponent $e_1\geq-1079$, and fixed-endpoint invariant for $A<B$.
The checked decrement gives $e_s=e_1-1$.  The third extracted loop returns
$(d_2,e_2)$ with
\[
 e_2=\max(e_s,-1022),\qquad
 q=(e_2-e_s)_{\mathbb N}\leq58,
\]
where $q$ is the exact total right shift.  No shift resets the record, and
$d_2$ has point at least $-2047$, nonzero count, decimal cells and positive
leading digit.  Its endpoint invariant is
\[
 A/2^{e_2+1}=V(d_2)+\eta_2,qquad
 B/2^{e_2+1}=V(d_2)+u_2,qquad0\leq\eta_2<u_2,qquad
 d_2.\mathit{truncated}\iff0<\eta_2.
\]
\end{lemma}
\begin{proof}
First derive the canonical retained-list shape that is not explicit among the
hypotheses.  The digit array has length $768$, and the count is at most $768$,
so taking the first $n_1$ cells and mapping to naturals gives a list of length
exactly $n_1$.  Since $n_1\ne0$, write that list as $z::z_s$.  Looking at
index zero in the take and map shows
$z=d_1.\mathit{digits}[0]$.  Thus $z\geq5$, and the digit-bound hypothesis
applied to the first retained cell gives $z<10$.  In particular the input has
the positive-leading shape required below.

Checked subtraction of one from $e_1\geq-1079$ is within I32 range; call its
result $e_s$, so $e_s=e_1-1\geq-1080$.  By
\noderef{ParserExponentConstants}, the binary64 minimum exponent returned by
the traits record is $-1022$.

Suppose first that $e_s\geq-1022$.  Unfold loop 2 in
\noderef{num_imp_dec2flt_slow_parse_long_mantissa}.  Its initial comparison
$-1022>e_s$ is false, so the body returns the unchanged pair and the generic
loop finishes immediately.  Take $d_2=d_1$, $e_2=e_s$, and $q=0$.  Then
$e_2=\max(e_s,-1022)$ and
$q=(e_2-e_s)_{\mathbb N}=0\leq58$.  Point, count, digits, leading shape, and
sticky relation are unchanged.  Since $e_s+1=e_1$, the two assumed endpoint
equations are already the required final equations.

Now suppose $e_s<-1022$.  The checked I32 difference
\(g=-1022-e_s\) exists and satisfies
\[
 1\leq g\leq58,
\]
the upper bound following from $e_s\geq-1080$.  Its checked cast to Usize
therefore has the same value.  The extracted cap is literally $60$ by
\noderef{num_imp_dec2flt_slow_parse_long_mantissa_MAX_SHIFT}; hence the
comparison with the cap is false and the selected shift is exactly $g$.
Apply \noderef{DecimalRightShiftLoop0Execution} to the point-zero record,
the canonical list just derived, and $g\leq58\leq60$.  Its point hypotheses
$0\leq p<310$ follow from $p=0$.  It executes every checked
operation in the decimal right shift, proves the prospective point is at
least $-2047$, excludes reset, and supplies a normally returned record $d_2$
with nonzero count.

The checked cast of $g\leq58$ back to I32 exists.  Adding it to $e_s$ is
within range and gives
\[
 e_2=e_s+g=-1022.
\]
Thus the first loop body returns a continuation at $(d_2,e_2)$.  On the next
body call the strict comparison $-1022>e_2$ is false, so the loop terminates.
This proves the exact loop call, $e_2=\max(e_s,-1022)$, and
$q=g=(e_2-e_s)_{\mathbb N}\leq58$.

Finally apply \noderef{DecimalSeqRightShiftCanonical} to the successful shift
call.  Its hypotheses are precisely the count bound, per-cell digit bound,
positive-leading shape, fixed endpoints, $g\leq58\leq60$, and nonzero output
established above.  It supplies the output count and digit bounds, positive
leading list shape, point lower bound, sticky equivalence, and errors
$\eta_2,u_2$ with transported endpoints.  Since
\[
 e_2+1=e_s+g+1=e_1+g,
\]
the elementary power law
$2^{e_1+g}=2^{e_1}2^g$ rewrites those transported equations as
\[
 A/2^{e_2+1}=V(d_2)+\eta_2,
 \qquad B/2^{e_2+1}=V(d_2)+u_2.
\]
All remaining inequalities and the truncation equivalence are exactly those
returned by the canonical-shift theorem, completing every existential clause.
\end{proof}
