\begin{lemma}[Decimal length of the executed prefix accumulator]
Let $d$ have a retained digit list of length $n=d.\mathit{num\_digits.val}$,
with $n\le768$, decimal entries, and a positive head. For $k\le60$, if
its actual right-shift prefix loop returns normally with cursor $r$ and
accumulator $c$, then $10^{r.\mathit{val}-1}\le c.\mathit{val}<10^{r.\mathit{val}}$.
\end{lemma}
\begin{proof}
The positive head makes the input digit fold positive. Apply
\noderef{P472_T1_DecimalRightShiftPrefixLoopSemantics} to the given
prefix-loop equation. It gives $r\ge1$ and two alternatives.
If $r\le n$, the accumulator is the fold of the first $r$ retained digits.
This list has length $r$, the same positive head, and decimal entries.
\noderef{P804_T1_DecimalFoldBounds} therefore gives its lower bound
$10^{r-1}$ and strict upper bound $10^r$.
If $r>n$, that principal gives $c=I10^{r-n}$, where $I$ is the whole
input fold. The head and length hypotheses give $n\ge1$. Applying the
same fold-bounds principal to the whole list gives
$10^{n-1}\le I<10^n$. Multiply by the positive integer $10^{r-n}$.
The exponent identities $(n-1)+(r-n)=r-1$ and $n+(r-n)=r$ give the
asserted bounds. These exhaust the prefix-loop alternatives. No fact about
a cursor or accumulator that appears only in another theorem's proof is used.
\end{proof}
