\begin{helper}[Decimal length of the right-shift prefix accumulator]
Let $d$ be a positive-leading, nonempty decimal record with at most 768
retained cells, all below ten.  Suppose the extracted prefix loop for a shift
$k\leq60$ returns cursor $r$ and accumulator $C$.  Then
\[
                           10^{r-1}\leq C<10^r.
\]
\end{helper}
\begin{proof}
Apply \noderef{DecimalRightShiftPrefixLoopSemantics}.  Its two alternatives
are exhaustive.  If the returned cursor $r$ is within the retained count,
the accumulator is the base-ten fold of the first $r$ stored digits.  The
prefix-loop statement also gives $r\geq1$.  Hence this prefix is nonempty,
has the same positive leading digit as the input, has length $r$, and all its
digits are below ten.  Applying \noderef{P804_T1_DecimalFoldBounds} to that
prefix gives the displayed inequalities.

In the zero-extension alternative, write $n$ for the retained count and $I$
for the fold of all retained digits.  The prefix-loop statement gives
$r>n$ and
\[
                             C=I10^{r-n}.               \tag{1}
\]
The input shape makes $n\geq1$, and
\noderef{P804_T1_DecimalFoldBounds} gives
$10^{n-1}\leq I<10^n$.  Multiplying those inequalities by the positive
integer $10^{r-n}$ and using
$(n-1)+(r-n)=r-1$ and $n+(r-n)=r$ yields
$10^{r-1}\leq C<10^r$.  This proves the result in both alternatives.
\end{proof}
