\begin{lemma}[Partial-parser continuation after a specified significand]
Let $s$ be nonempty, with $|s|\le A=3458764513820540928$.
Suppose $s.\mathit{val}=I++(\text{if }p\text{ then }[46]++F++T
\text{ else }T)$, all bytes of $I,F$ lie in $[48,57]$, and $T$ is
empty or nondigit-headed. If $p$ is false, require $F=[]$ and any
head of $T$ to differ from 46. There exist slices $i,t$, a U64 $w$,
an Isize $n$, and an I64 $b$, with $t.\mathit{val}=T$ and
$n.\mathit{val}=|I|+|F|$, such that the partial parser equals the
following continuation.
Define $C(e,a,r)$ by the extracted sequence: compute
$z=\operatorname{offset\_from}(r,s)$, cast $z$ with the Isize-to-Usize
reinterpreting cast to $k$; if $n\le19$, return
$\texttt{ok}(\texttt{some}(\operatorname{Decimal}(e,w,\texttt{false},
\texttt{false}),k))$. Otherwise compute $m=n-19$ and
$q=\operatorname{adjust\_many\_digit\_count}(s,m)$; if $q>0$ compute
$(w',e')=\operatorname{parse\_many\_digits}(s,i,a)$ and return
$\texttt{ok}(\texttt{some}(\operatorname{Decimal}(e',w',\texttt{false},
\texttt{true}),k))$; otherwise return the first record and $k$.
Define $E(u)$ by parsing the scientific suffix $u$, branching its
optional exponent: None takes the extracted option residual return,
and Some $a$ computes $e=b+a$ and continues with $C(e,a,r)$, using
the returned scientific residual $r$. All these sequences are Result
binds, retaining failures and divergence.
The partial parser is $\texttt{ok}(\texttt{none})$ when $n=0$.
Otherwise split the first byte of $t$: empty takes $C(b,0,t)$;
head 101 or 69 takes $E(u)$ on the split suffix $u$; every other
head takes $C(b,0,t)$.
\end{lemma}
\begin{proof}
Apply \noderef{P435_T1_SignificandScanA} with the stated decomposition,
digit ranges, residual condition, absent-point condition and A bound.
Its statement supplies the actual integer scan, its residual $i$,
integer word and count, the optional fractional scan returning
$(t,w)$ with fractional count and base $b$, and the successful count
addition with value $|I|+|F|$. Use these very slices and scalars.
Nonemptiness makes the initial is-empty call return false, hence
the assertion in \noderef{num_imp_dec2flt_parse_parse_partial_number}
succeeds. Substitute the integer scan and integer offset equations
from the significand theorem. Reassociate Result binds around the
split-first and optional-fraction match; substitute that theorem's
normal optional-fraction equation, followed by its count-addition
equation. This leaves the count-zero conditional and the split of $t$.
The empty and nonmarker arms are exactly $C(b,0,t)$ as defined above.
Both marker arms have the same scientific call, option branch, checked
base addition and record continuation, so are exactly $E(u)$.
Reassociation of binds does not change their failure or divergence
behavior. Thus this is equality of the complete Result computations,
not a normality assertion or a restriction to successful records.
\end{proof}
