\begin{helper}[Decimal value interval determined by the leading digit]
Let $x=z::z_s$ be a nonempty list of decimal digits, let $I$ be its
base-ten fold, and let $p$ be any integer.  Then
\[
 z10^{p-1}\le I10^{p-|x|}<(z+1)10^{p-1}.
\]
The Lean statement retains the harmless positive-leading hypothesis used by
its callers.
\end{helper}
\begin{proof}
Writing $F$ for the base-ten fold, induction on a list $y$ proves both
\[
 F(y,a)=a10^{|y|}+F(y,0),\qquad F(y,0)<10^{|y|}
\]
when every member of $y$ is below ten.  Applying these identities to the
tail $z_s$ gives
\[
 I=z10^{|z_s|}+F(z_s,0),qquad 0\le F(z_s,0)<10^{|z_s|}.
\]
Thus $z10^{|z_s|}\le I<(z+1)10^{|z_s|}$.  Since
$|x|=|z_s|+1$, multiply both inequalities by the positive factor
$10^{p-|x|}$.  The integer-power addition law gives
$10^{|z_s|}10^{p-|x|}=10^{p-1}$, yielding exactly the displayed interval.
\end{proof}
