\begin{helper}[Sharp prefix bound for the loop-2 right shift]
Let a nonempty decimal record have at most 768 digits, all below ten, and
leading digit $z\geq5$.  If the extracted right-shift prefix loop is called
with a shift $k\leq58$ and returns cursor $r$ and accumulator $C$, then
$r\leq18$.
\end{helper}
\begin{proof}
The prefix-loop semantics in
\noderef{DecimalRightShiftPrefixLoopSemantics} gives $r\geq1$,
$C<10\,2^k$, and two exhaustive accumulator forms.  If the cursor remains
inside the retained digits, $C$ is the fold of their first $r$ digits.  If
the cursor has passed their end, $C$ is the full fold followed by exactly
$r-N$ zero digits.  In either case, induction on the tail of the relevant
prefix gives
\[
 z10^{r-1}\leq C.
\]
The induction step replaces an accumulator $a$ by $10a+q\geq10a$; its
ordinary positive-fold base case is also supplied by
\noderef{P804_T1_DecimalFoldBounds}.  Were $r\geq19$, monotonicity of natural
powers, $z\geq5$, and $k\leq58$ would give
\[
 5\,10^{18}\leq z10^{r-1}\leq C
 <10\,2^k\leq10\,2^{58},
\]
contradicting the kernel-normalized integer inequality
$10\,2^{58}<5\,10^{18}$.  Hence $r\leq18$.
\end{proof}
