\begin{theorem}[Successful decimal-sequence lexical state]
For a source-valid unsigned valid numeric lexeme whose rendered bytes are
parsed successfully by \texttt{parse\_decimal\_seq}, let $S$ be its integer
and fractional digits with the maximal leading zero run removed, let $R$ be
$S$ with its maximal terminal zero run removed, let
$P=|I|-(|I|+|F|-|S|)$, and let $E$ be the guarded accumulated explicit
exponent.  The returned logical count is $\min(|R|,768)$, its retained array
prefix is exactly the corresponding prefix of $R$, and its truncation flag
is true exactly when $768<|R|$.  Moreover its returned decimal point is
congruent to $P+E$ modulo $2^{32}$.
\end{theorem}
\begin{proof}
Write $I$ for the integer digits and, when present, $F$ for the fractional
digits.  Validity gives the decimal bound on every digit, says that $I$ or
$F$ is nonempty, and says that every explicit exponent has a nonempty decimal
digit list.  Expanding the rendering equation gives either the bytes of $I$
alone, those bytes followed by an exact exponent suffix, or the bytes of $I$,
byte 46, the bytes of $F$, and an optional exact exponent suffix.  The
unsigned-sign hypothesis removes the only preceding sign byte.

First suppose there is no fraction.  Nonemptiness then makes $I$ nonempty.
If there is no exponent, all hypotheses of
\noderef{DecimalSeqIntegerNoExponentState} hold, and that theorem gives the
three record clauses and point congruent to the length of the leading-zero
deleted $I$.  If an exponent is present, split according to whether the
leading-zero deletion of $I$ is empty.  In the empty case apply
\noderef{DecimalSeqIntegerExponentZeroState}; in the nonempty case apply
\noderef{DecimalSeqIntegerExponentState}.  Both theorems give the same three
record clauses and a point congruent to the significant length plus the
guarded signed exponent.  If $z=|I|-|S|$, then
$|I|-z=|S|$ because deletion cannot increase length.  Thus in every
integer-only branch the point is congruent to $P+E$ with the $P$ defined in
the statement; the absent exponent has $E=0$ by its definition.

Now suppose $F$ is present.  Define the residual suffix to be empty when the
exponent is absent, and otherwise to be its rendered marker, optional sign,
and digit bytes.  Define $E$ to be zero in the absent case and the guarded
signed digit fold in the present case.  The expanded rendering equation has
exactly the form required by each fractional state theorem, and validity
supplies their suffix nonemptiness and digit-bound premises.

Split according to whether deleting leading zeroes from $I$ is empty.  If it
is nonempty, \noderef{DecimalSeqFractionalIntegerState} applies and yields
the three exact record clauses together with
$d.\mathit{decimal\_point}=|I|-z+E+k2^{32}$.  If it is empty, split again on
the leading-zero deletion of $F$.  When that deletion is nonempty, apply
\noderef{DecimalSeqFractionalLeadingState}; when it is empty, apply
\noderef{DecimalSeqFractionalZeroState}.  These theorems give the identical
record clauses and point formula, including the all-zero significand case.
In all three fractional branches, their $z$ is exactly
$|I F|-|S|$, hence their $|I|-z$ is the present statement's $P$.

Finally, in every branch the lists called $S$ and $R$ by the cited theorem
are definitionally the statement's leading-zero-deleted significand and its
reverse/drop/reverse terminal-zero trim.  Substituting these definitions and
$2^{32}=4294967296$ gives the asserted count, retained prefix, truncation
equivalence, and existential point congruence.
\end{proof}
