\begin{theorem}[Execution-based decimal-sequence reconstruction]
Let $s$ be any source-valid byte slice rendering an unsigned valid numeric
lexeme $x$. Put $L=|s.\mathit{val}|$, let $F$ be its full fractional
digit list (empty when absent), $S=I\mathbin{++}F$, $C$ its leading-zero
deletion, $T$ its subsequent terminal-zero trim, and
$E=\texttt{accumulatedExplicitExponent}(x)$.
There exist a normally returned record $d$, a scan record $a$, saved
Usize operands $n,f$, and an I64 operand $e$ satisfying all of the following:
\[
 \texttt{parse\_decimal\_seq}(s)=\texttt{ok}\ d,\quad
 n=a.\mathit{num\_digits},\quad n.\mathit{val}=|C|,\quad
 f.\mathit{val}=|F|,\quad e.\mathit{val}=E.
\]
The counts $n.\mathit{val}$, $f.\mathit{val}$, and $|S|$ are at most $L$.
The actual saved-count finalizer equation is
$\texttt{final\_decimal\_point}(n,f,e)=\texttt{ok}\ d.\mathit{decimal\_point}$;
its value is zero when $|C|=0$, otherwise
$\max(-2047,\min(2047,|C|-|F|+E))$.
The returned count is $r=\min(|T|,768)\le768$; its retained value list
is $\operatorname{take}(r,T)$, and its sticky flag is true iff $768<|T|$.
The scan record has point zero, false flag, and stored value prefix
$\operatorname{take}(\min(|C|,768),C)$. The result preserves the first
$r$ actual U8 scan cells, changes precisely cells $r\le j<19$ to U8
zero, and preserves every other scan cell below 768. Every output cell
value is below ten.
Moreover $C=[]$ iff $r=0$. In that case the returned point and flag are
zero and false, and cells $j<19$ are zero. If $C\ne[]$, it has a first
digit $h$ with $1\le h<10$, and the first stored output cell has value $h$.
This construction has no A/B bound or public-reachability premise. Because
Result's normal constructor is injective, the certificate identifies every
normally returned record for this same call, not just an arbitrary ideal
decimal record.
\end{theorem}
\begin{proof}
Apply \noderef{P495_T1_SignificandScan} with the given source, sign,
validity, and rendering premises. It constructs the actual normal prefix
results: exponent residual $u$, scan record $a$, and fractional operand $f$.
Set $n=a.\mathit{num\_digits}$. Its conclusions give
$n.\mathit{val}=|C|$, $f.\mathit{val}=|F|$, $n.\mathit{val},f.\mathit{val},
|S|\le L$, zero scan point, false flag, and all-cell digit bounds.
The scan cell equation, restricted to its first $\min(|C|,768)$ cells
and combined with their exact array length 768, gives its claimed stored
prefix by list extensionality. Nothing here assumes retained-point semantics.

Apply \noderef{P495_T1_ExponentSuffix} to $u$ and $x$. Its slice premise
is the exponent residual conclusion of the scan theorem. This gives the
actual normal explicit-exponent result $e$, of value $E$. It applies
equally to zero significands and scans any present suffix completely.
With no exponent it returns I64 zero. The source's duplicated exponent
computations have precisely the same empty, index, marker, drop, scientific,
and unwrap operations. In a fractional branch their fresh empty test is
the one in the suffix theorem. In the integer branch the earlier empty
test and earlier head read concern the SAME unchanged residual $u$;
substituting their deterministic results gives this same exponent equation.
In the initially empty branch the exponent computation selects zero without
indexing, again the same result. Thus these witnesses identify the actual
operands, not a replacement suffix computation.

Use \noderef{DecimalDigitTrimDecomposition} on $S$ to obtain
$C=T\mathbin{++}0^q$ with $q=|C|-|T|$, and a nonzero first entry
when $C$ is nonempty. Suppose first $C\ne[]$. The residual premise for
\noderef{P495_T1_TrailingCount} is supplied by the scan theorem.
That principal provides the actual normal length difference $c$ and
reverse count $z$, with $z.\mathit{val}=q$. The split therefore is
$C=T\mathbin{++}0^{z.\mathit{val}}$.
If $C=[]$, the decomposition makes $T=[]$ and $q=0$. Choose Usize zero
for $z$. The rendering equations give $|s|=H+|u|$, where $H$ is the
significand byte length, so the checked length difference still has a
normal value $c=H$. No reverse-count equation is required in this case:
the source and the finalization theorem both skip that call.

\noderef{SourceValidByteSlice} gives $L\le2^{63}-1$. Hence the count
bounds just derived discharge the two saved-count hypotheses of
\noderef{P495_T1_FinalizationExact}. Its other hypotheses are the scan
flag, prefix and all-cell bounds, the split, the actual length difference,
and, only in the nonzero case, the reverse-count equation established above.
Apply it to $s,u,a,f,e,c,z,C,T$. It supplies the normal finalized $d$,
actual finalizer equation with operand $a.\mathit{num\_digits}=n$, exact
clamped point, retained count and values, sticky equivalence, and exact
fill effects. Replacing $f.\mathit{val}$ and $e.\mathit{val}$ by $|F|,E$
gives the point formula in the statement.

To identify its normal computation with the WHOLE pinned parser, unfold
\noderef{num_imp_dec2flt_decimal_seq_parse_decimal_seq} and split at
the exact guards already resolved in the prefix proof. If the integer
residual is empty, the source finalizes $a$ with fractional count zero
and fill loop 1. If it is nonempty and nonpoint-headed, it is e/E-headed
and the source finalizes $a$ with fractional count zero and fill loop 7.
If it is point-headed with zero integer count, the prefix gives exactly
loop 2, loop 3, scalar remainder, and full fractional difference, and the
source uses fill loop 4. If it is point-headed with nonzero integer count,
the prefix gives loop 5, scalar remainder, and the same full difference,
and the source uses fill loop 6. The fill equations of
\noderef{DecimalSeqDuplicateLoops} replace loops 7, 4, and 6 by loop 1
on these SAME arrays and selected counts. Every arm's trim/cap operation
is the one in the finalization theorem and uses the untrimmed scan count
in its finalizer, even when the stored count is already capped.
Substitute the actual exponent equation in each arm. Its execution is
normal, so sequencing it after the trim/cap and before the finalizer
(as the source does) yields exactly the normal results constructed above.
Thus all binds return the shown values in the source order, proving
$\texttt{parse\_decimal\_seq}(s)=\texttt{ok}\ d$.

For the last clauses, if $C=[]$ then $T=[]$, hence $r=0$, false flag,
point value zero and therefore I32 zero. The fill cell equation sets all
$j<19$ to zero. Conversely if $C\ne[]$, $T$ cannot be empty: its
decomposition would otherwise make $C$ a nonempty zero list, contradicting
its nonzero head. Thus $r=\min(|T|,768)>0$. Trimming trailing zeros from
this nonempty $C$ leaves its first digit unchanged. That digit is nonzero
and below ten by validity, so it is at least one. The stored prefix
equation at index zero supplies the claimed output cell. This also proves
the equivalence $C=[]\leftrightarrow r=0$.

All normality statements used here were CONSTRUCTED from digit and source
length bounds; no normal public trace, A/B hypothesis, or slow-correctness
theorem was used. For any other equation of this same parser to
$\texttt{ok}\ d'$, equality with the constructed normal equation and
injectivity give $d'=d$, transporting all of the certificate. In particular
the normal-existence conjunct is already available on every A-bounded
numeric body, as a restriction of this stronger source-valid construction.
\end{proof}
