\begin{lemma}[Exact eight-digit decoder]
Let $w$ be a modeled unsigned 64-bit word for which the extracted
eight-digit test succeeds.  Then the extracted eight-digit parser returns a
word $z$, and its natural value is
\[
\begin{split}
z={}&10^7(b_0-48)+10^6(b_1-48)+10^5(b_2-48)+10^4(b_3-48)\\
   &+10^3(b_4-48)+10^2(b_5-48)+10(b_6-48)+(b_7-48),
\end{split}
\]
where $b_i=(\lfloor w/256^i\rfloor\bmod256)$.
\end{lemma}
\begin{proof}
By \noderef{NumberHelperEightDigitWord}, success of the eight-digit test
puts each $b_i$ in the interval $[48,57]$.  Unfold
\noderef{num_imp_dec2flt_parse_parse_8digits}.  Its checked subtraction of
the repeated byte $48$, multiplication by $10$, addition of the shifted
copy, two masks, two fixed multiplications, their addition, the final shift,
and the cast to 32 bits all return normally.  The bounds on the eight bytes
give, prefix by prefix, the numerical bounds required by every checked
operation; in particular the final result is below $10^8<2^{64}$.

It remains to identify the fixed-width expression.  For an arbitrary
64-bit vector whose eight bytes lie in $[48,57]$, exhaustive Boolean
bit-vector reasoning proves that the expression computed by the extracted
masks and multipliers is exactly the base-ten polynomial displayed in the
statement.  This is a kernel-checked finite certificate.  For each byte,
subtraction of 48 does not wrap, and widening from 8 to 64 bits preserves its
natural value.  Bit-vector addition and multiplication agree with natural
addition and multiplication modulo $2^{64}$; the displayed polynomial is
below $10^8$, so the modulus has no effect.  Combining this identity with
the unfolded checked execution supplies the returned word $z$ and the
claimed equality.
\end{proof}
