\begin{lemma}[Checked decrement and constructed minimum-exponent adjustment]
Let $d_1$ have point zero, decimal retained cells, count at most 768,
and exact-length retained word headed by a digit in $[5,9]$.
Suppose $e_1\ge-1079$ and
\[
 X/2^{e_1}=V(d_1)+\eta_1,\quad
 Y/2^{e_1}=V(d_1)+u_1,\quad
 0\le\eta_1<u_1,\quad d_1.\mathit{truncated}\iff\eta_1>0 .
\]
The checked decrement returns $e_s=e_1-1\ge-1080$, and the actual
specialized loop-two call returns normally to $(d_2,e_2)$ with
\[
 e_2=\max(e_s,-1022),\qquad k=e_2-e_s\in[0,58].
\]
If $e_s\ge-1022$, then $k=0,d_2=d_1,e_2=e_s$.
Otherwise $1\le k\le58$, the actual right shift of $d_1$ by $k$ returns
$d_2$, and $e_2=-1022$. The output has $-18\le p_2\le0$,
positive exact-length decimal shape and count at most 768; its last
retained cell is nonzero whenever $k>0$. Its endpoint equations are
\[
 X/2^{e_2+1}=V(d_2)+\eta_2,\quad
 Y/2^{e_2+1}=V(d_2)+u_2,\quad
 0\le\eta_2<u_2,\quad d_2.\mathit{truncated}\iff\eta_2>0 .
\]
The Lean conclusion includes all normal calls and the exhaustive alternatives.
\end{lemma}
\begin{proof}
The checked subtraction of one is safe since
$e_1-1\ge-1080>-2^{31}$ and $e_1-1\le2^{31}-2$ by the intrinsic
I32 upper bound. Its exact value is $e_s=e_1-1$.
By \noderef{ParserExponentConstants} the minimum binary64 exponent is
$-1022$. Unfold loop two in
\noderef{num_imp_dec2flt_slow_parse_long_mantissa}.

If $e_s\ge-1022$, the first guard is false and the body returns done
unchanged. Take $k=0$. The point and shape facts are inherited and the
terminal-cell disjunction holds by its zero alternative.
Since $e_s+1=e_1$, both endpoint equations are inherited exactly.

If $e_s<-1022$, put $k=-1022-e_s$. Then $1\le k\le58$.
The checked gap subtraction lies in I32 bounds, its Usize cast is exact,
and its comparison to the cap 60 of
\noderef{num_imp_dec2flt_slow_parse_long_mantissa_MAX_SHIFT} is false.
The Usize cast bound uses the width in \noderef{Assumptions}.
\noderef{P472_T1_DecimalRightShiftLoop0Execution} applies with input
point zero and shift $k\le58\le60$; the head is positive and all count,
digit and length hypotheses are given.
It constructs the actual normal right shift and an actual prefix return
with read cursor $r\ge1$ and accumulator $c$, satisfying
\[
 2^k\le c<10\,2^k,\qquad p_2=1-r,\qquad d_2.n\ne0 .
\]
Apply \noderef{P495_T1_RightPrefixLengthBounds} to THAT prefix call:
$10^{r-1}\le c<10^r$.
Since $2^{58}<10^{18}$, we have $c<10^{19}$.
Thus $r\le19$ (otherwise $10^{r-1}\ge10^{19}$);
$r\ge1$ gives $-18\le1-r\le0$.
In particular no reset can occur: the prospective point is greater
than $-2047$, and the execution certificate's output count is nonzero.

The Usize-to-I32 cast of $k\le58$ is exact.
The checked addition has value $e_s+k=-1022$, within I32 bounds.
Thus the first body returns the normal continuation $(d_2,-1022)$,
and the next body has false guard and returns done unchanged.
The defining loop equation therefore constructs the stated normal loop
return after this one shift, with $e_2=\max(e_s,-1022)$.

Apply \noderef{P495_T1_RightShiftCanonical} to the same right call and
its nonzero output, with endpoints $X/2^{e_1},Y/2^{e_1}$.
Its input shape and ordered-error hypotheses are precisely the stated
ones. It supplies positive decimal shape, count, terminal trimming,
and the two endpoints divided by $2^k$, with exact sticky equivalence.
Since $e_2+1=e_1+k$, these are exactly the displayed output endpoints.
Both branches construct their operations independently of any enclosing
slow or public success premise. The sharp exponent input supplied for
the regular slow path by \noderef{P529_T1_NormalizationBounds} is the
history-specific bound, not a bound on an arbitrary upper endpoint.
\end{proof}
