\begin{lemma}[Reverse count on the actual consumed significand]
Let $s$ render a source-valid unsigned valid lexeme $x$, and let $u$ render
exactly its optional e/E exponent suffix. Let $S$ be the full significand
digit list, $C$ its leading-zero deletion, and $T$ its terminal-zero trim.
If $C\ne[]$, there are actual normal operands $c,z:\texttt{Usize}$ with
\[
 \texttt{Slice.len}(s)-\texttt{Slice.len}(u)=\texttt{ok}\ c,
 \qquad \texttt{count\_trailing\_zeros}(s,c)=\texttt{ok}\ z.
\]
Here $z.\mathit{val}=|C|-|T|<|C|$, and $c.\mathit{val}$ is the byte
length of the rendered significand, including its point if present:
$|I|$ without a fraction and $|I|+1+|F|$ with a fraction.
\end{lemma}
\begin{proof}
Expand the two render equations using \noderef{DecimalGoalVocabularyDefault}.
They give $|s|=H+|u|$, where $H$ is the displayed significand byte length.
Thus checked length subtraction is safe and yields $c$ with value $H$.
By \noderef{DecimalDigitTrimDecomposition}, write
$S=0^\ell\mathbin{++}C$ and $C=T\mathbin{++}0^q$, with
$q=|C|-|T|$, and $C$ nonzero-headed. In this nonempty case $T$ cannot
be empty: otherwise $C=0^q$ would be a nonempty zero-headed list.
Consequently $q<|C|$ and $T$ ends in a nonzero digit. Digit validity makes
that last digit a value between one and nine.

Split the rendered significand immediately after its LAST nonzero digit.
Call the prefix $A$ and the suffix $Z$. The prefix ends in byte value
$48+d$ with $1\le d<10$, so its last value is neither 48 nor 46.
Every digit in $Z$ is zero: deleting the point leaves exactly the $q$
terminal zeros of $S$, also the terminal zeros of $C$. There is at most
one point, and it belongs to $Z$ exactly when it follows the last
nonzero digit. Thus every member of $Z$ is 48 or 46 and its count of
48 is exactly $q$. This also treats an empty fractional list: a terminal
point contributes a 46 to $Z$ but contributes no zero.
The source value list is $A\mathbin{++}Z\mathbin{++}R$, where $R$
is the rendered exponent suffix, and $|A\mathbin{++}Z|=H=c.\mathit{val}$.

The count bound needed by \noderef{DecimalSeqTrailingZeroValues} is
$0+q\le|C|\le|S|\le|s|\le2^{63}-1<2^{64}$, using
\noderef{SourceValidByteSlice} and the width in \noderef{Assumptions}.
Apply that principal with initial count Usize zero and cursor $c$.
It returns $z$ with value $q$, skipping a point on either side of any
zeros without counting it. Unfolding the wrapper in
\noderef{num_imp_dec2flt_decimal_seq_count_trailing_zeros} identifies
this loop equation with the actual call in the conclusion. The cursor
starts before $R$, so no exponent byte is visited. Substituting the
decomposition's $q$ gives all assertions, including the strict count bound.
\end{proof}
