\begin{lemma}[Decimal-sequence point agrees with the lexical point]
Let a source-valid slice $s$ render a valid unsigned numeric lexeme $x$, and
suppose \texttt{parse\_decimal\_seq($s$)} returns $d$.  Let $S$ be the
concatenated integer and fractional digit word, let $z$ be the length of its
maximal leading zero run, and put
\[
 P=|x.\mathit{integerDigits}|-z,
 \qquad E=\operatorname{accumulatedExplicitExponent}(x).
\]
If $-342\le P+E\le327$, then
\[
                 d.\mathit{decimal\_point}=P+E.
\]
The leading-zero and point quantities are the exact \texttt{let}-bound
expressions in Lean.
\end{lemma}
\begin{proof}
Apply \noderef{DecimalSeqLexicalState} with the given source-validity,
unsigned-sign, numeric-validity, rendering, and successful-parse hypotheses.
Its point-congruence clause supplies an integer $k$ such that
\[
 d.\mathit{decimal\_point}=(P+E)+k\,2^{32}.                 \tag{1}
\]
Here its definitions of the significand, maximal leading-zero run, $P$, and
$E$ are exactly the let-bound definitions in the present statement.

Put $q=P+E$.  The two range hypotheses give
$-342\le q\le327$.  Since $d.\mathit{decimal\_point}$ has the I32 carrier,
its integer value lies in the interval
\[
 -2^{31}\le d.\mathit{decimal\_point}\le2^{31}-1.          \tag{2}
\]
If $k\ge1$, then (1) and the lower bound on $q$ imply
\[
 d.\mathit{decimal\_point}
 \ge -342+2^{32}>2^{31}-1,
\]
contradicting the upper bound in (2).  If $k\le-1$, then (1) and the upper
bound on $q$ imply
\[
 d.\mathit{decimal\_point}
 \le327-2^{32}<-2^{31},
\]
contradicting the lower bound in (2).  Every integer $k$ is either positive,
negative, or zero, so these contradictions force $k=0$.  Substituting this
in (1) gives $d.\mathit{decimal\_point}=q=P+E$, as required.
\end{proof}
