\begin{lemma}[Pre-update cutoff fold comparison]
For any natural cutoff $H$ and list $D$ of natural numbers, start both folds
at zero.  In the first fold update $a$ to $10a+d$ if the previous $a<H$,
and otherwise keep $a$; in the second always update $b$ to $10b+d$.
Their final values satisfy $a\leq b$ and $(a=b\text{ or }H\leq a)$.
There is no digit bound in this claim.
\end{lemma}
\begin{proof}
Induct on the remaining list, with arbitrary current values satisfying
$a\leq b$ and $(a=b\text{ or }H\leq a)$.  The empty list preserves both
assertions.  For a next entry $d$, if $a<H$, the second assertion forces
$a=b$, since its other alternative contradicts $a<H$.  Both updates are
therefore $10a+d$, so their order and equality are preserved.  If $H\leq a$,
the first update is $a$, while the second is $10b+d\geq b\geq a$ because
$b,d$ are natural.  Thus the order persists and the first value remains
at least $H$.  Apply the induction hypothesis to these updated values.
Initially $a=b=0$, proving the claim.  This argument permits an update
from below $H$ to any value above it, and still processes every later
entry; it does not replace the update rule by a clamp at $H$.
\end{proof}
