\begin{lemma}[Fixed endpoints under a nonreset decimal right shift]
Let a nonzero decimal record $d$ have at most 768 decimal cells and positive
leading retained digit.  Put $V=V(d)$ and suppose
\[
 X=V+\eta,\qquad B=V+u,\qquad0\leq\eta<u,
 \qquad(d.\mathit{truncated}\iff0<\eta).
\]
If $k\leq60$, the extracted right shift returns $d'$, and $d'$ has nonzero
count, then the reset branch was not taken, $p'\geq-2047$, and $d'$ has at
most 768 decimal cells, positive leading digit, and terminally trimmed word.
There are $\eta',u'$ with
\[
 X/2^k=V(d')+\eta',\qquad B/2^k=V(d')+u',\qquad
 0\leq\eta'<u',\qquad(d'.\mathit{truncated}\iff0<\eta').
\]
This is the let-bound conjunction stated in Lean.
\end{lemma}
\begin{proof}
The positive leading digit gives $V(d)>0$.  Apply the right-shift half of
\noderef{DecimalSeqDyadicShiftSemantics} to $X,\eta,u$.  Its reset alternative
has zero digit count, so the explicit nonzero-count hypothesis excludes it.
The nonreset alternative supplies $\eta',u'$ with
\[
 X/2^k=V(d')+\eta',\quad0\leq\eta'<u',\quad
 V(d')+u'=(V(d)+u)/2^k
\]
and exact sticky equivalence.  Substitution of $B=V(d)+u$ gives the second
endpoint equation.  Again the conclusion transports $B$ itself and does not
replace it by a successor power-of-ten endpoint.

For the record facts, unfold
\noderef{num_imp_dec2flt_decimal_seq_DecimalSeq_right_shift}.  Its prefix loop
reads cells until its accumulator $c$ reaches $2^k$.  Thereafter long division
writes $\lfloor c/2^k\rfloor<10$, keeps remainder $r<2^k$, and forms the next
accumulator $10r+a$ with $a<10$.  This is below
$10\,2^k\leq10\,2^{60}<2^{64}$, so every multiplication, addition, quotient,
cast, and write on the successful execution has its mathematical value.
The positive leading input rules out the unchanged all-zero path.  Thus every
written cell lies in $[0,9]$, and a nonempty quotient begins in $[1,9]$.
The 768-cell cap gives the count and exact-list-length clauses, and the final
trim makes the last retained digit nonzero.

If $r_0$ positions precede the first quotient digit, the checked point update
is $p'=p-(r_0-1)$.  The comparison constant is 2047 by
\noderef{num_imp_dec2flt_decimal_seq_DecimalSeq_DECIMAL_POINT_RANGE}; the
extracted code resets exactly when this prospective point is below $-2047$.
Since a reset result has zero count, the hypothesis on $d'$ forces the other
branch and hence $p'\geq-2047$.  Combining these record facts with the two
transported endpoint equations proves the conclusion.
\end{proof}
