\begin{lemma}[Canonical nonreset right-shift result]
Let $d$ have at most 768 retained cells, all decimal, with a positive leading
digit and retained-list length equal to its count. Let $k\le60$ be a
Usize shift. Suppose the actual right shift returns normally with $d'$,
whose count is nonzero. Define the retained value $V(a)$ by the digit fold
times $10^{a.\mathit{point}-a.\mathit{count}}$.
If $X=V(d)+\eta$, $Y=V(d)+u$, $0\le\eta<u$, and the input sticky flag
is true iff $\eta>0$, then $d'$ has point at least $-2047$, count at most
768, decimal retained cells, positive leading digit, exact retained-list
length, and a nonzero last retained cell. There are $\eta',u'$ with
$X/2^k=V(d')+\eta'$, $Y/2^k=V(d')+u'$, $0\le\eta'<u'$, and output
sticky true iff $\eta'>0$. The input prefix need not be terminally trimmed.
\end{lemma}
\begin{proof}
The positive input head makes its natural digit fold positive: starting
with a positive digit, each update $a\mapsto10a+z$ for $z\ge0$ remains
positive. Multiplication by a positive power of ten gives $V(d)>0$.
Apply the right-shift implication of
\noderef{P472_T1_DecimalSeqDyadicShiftSemantics} to the given endpoint
witnesses. Its reset alternative has output count zero and contradicts
the hypothesis. Its other alternative supplies $\eta',u'$, the first
value equation, inequalities, sticky equivalence, and
$V(d')+u'=(V(d)+u)/2^k$. Substituting $Y=V(d)+u$ gives the other endpoint.
This transports the fixed upper endpoint, not a new power-of-ten cutoff.

For shape, invert the successful binds in
\noderef{num_imp_dec2flt_decimal_seq_DecimalSeq_right_shift}.
\noderef{P472_T1_DecimalRightShiftPrefixLoopSemantics} applies to the
obtained actual prefix result: its positive-fold and digit hypotheses
are the input facts just established. It leaves the record unchanged,
returns all-zero false, and gives $1\le r\le n+k\le828$ with
$B=2^k\le c<10B$. The cast of $r$ to I32 is therefore exact. The normal
checked point update has value $p-r+1$. The reset threshold is $-2047$
by \noderef{num_imp_dec2flt_decimal_seq_DecimalSeq_DECIMAL_POINT_RANGE}.
The reset arm would return count zero; hence it was not taken, and
$p-r+1\ge-2047$.

The normal power/mask binds have exact values $B$ and $B-1$, because
$k\le60<64$. If $r<n$, apply
\noderef{P472_T1_DecimalRightShiftMainLoopSemantics} to its actual main
loop, using $r\le n\le768$, the retained digit bounds, and $c<10B$.
Its written list is decimal, has length $n-r$, and occupies exactly
the output cells below that length. Its remaining accumulator is below
$10B$. If $r\ge n$, the main guard is false initially, so the main loop
returns the original array, write index zero, and $c$; its written list
is empty. In both cases apply
\noderef{P472_T1_DecimalRightShiftFinalLoopSemantics} to the actual final
loop. It appends decimal cells, caps the written count at 768, and preserves
the earlier written cells. Thus the pre-trim count is at most 768 and
every cell below that count is decimal: split the index into the main
written interval and the subsequent final-written interval.

Its FIRST output digit is positive. If $r<n$, the main loop's first
iteration starts with $B\le c<10B$ and write index zero, so it writes
$\lfloor c/B\rfloor\in[1,9]$ at zero. If $r\ge n$, its first output
iteration instead belongs to the final loop, whose accumulator is $c>0$
and whose write index is zero; it writes the very same quotient in
$[1,9]$. This assertion follows directly by expanding the two bodies in
the right-shift model: arithmetic right shifts of U64 are division by
$B$, the U8 cast is exact for a quotient below ten, and update zero is
in bounds. In later main iterations the read index strictly exceeds the
write index ($r\ge1$ initially and both advance once per iteration), so
the unread digit is still the original digit. The next accumulator is
$10(c\bmod B)+z<10B$, justifying the quotient range at every write.
The final loop has the same inequality with $z=0$. The main body advances
its write index by one after each write. The final body does so only below
768; at capacity it keeps index 768 and suppresses every further write.
Induction over these transitions shows that no later write returns to
index zero. The preservation
clauses of the two loop principals agree with this calculation. These operations preserve the
positive first digit until trim, whether or not the storage cap is reached.

The final normal bind is trim on this pre-trim record. Apply
\noderef{DecimalSeqTrimSemantics}, since its count is at most the array
length 768. It leaves the array, point and flag unchanged, decreases
count, and returns either count zero or a nonzero last retained cell.
The given nonzero result excludes its zero alternative. Its retained
prefix is a nonempty prefix of the decimal pre-trim list, so its first
cell remains positive, all its members remain decimal, and its length is
exactly its count. This proves all shape and point assertions. Together
with the endpoint argument these prove the principal statement, without
assuming terminal trimming before the shift.
\end{proof}
