\begin{lemma}[Partial-parser normality on the full A domain]
For every nonempty Aeneas byte-slice carrier $s$ with
$|s|\le A=3458764513820540928$, the actual extracted
$\texttt{parse\_partial\_number}(s)$ returns
$\texttt{ok}(o)$ for some
$o:\texttt{Option}(\texttt{Decimal}\times\texttt{Usize})$.
All byte values are permitted. There is no grammar, UTF-8, successful-call,
or exponent-digit-count premise. Both None and Some are normal results;
failure and divergence are excluded.
\end{lemma}
\begin{proof}
Write $L=|s|$, $M=2^{63}-1$ and $C=10\cdot2^{59}-1$.
The selected target in \noderef{Assumptions} makes Isize and Usize
64-bit, with ranges $[-2^{63},M]$ and $[0,2^{64}-1]$.
Here $L\le A<M$ and $A+C=M$.
The A bound is the bound in the acceptance, rejection and record-value
clauses of \texttt{GOAL.md}; no B bound is used.
We follow \noderef{num_imp_dec2flt_parse_parse_partial_number} in its
actual order, proving a normal result for every reached operation.
Its empty-slice test is exact, and nonemptiness makes the initial
assertion true.

Apply \noderef{P364_T1_NumberHelperDigitPrefix} to $s.\mathit{val}$.
Write the resulting decomposition as $I\mathbin{++}T_1$, with $I$
all ASCII digits and $T_1$ empty or nondigit-headed. Apply
\noderef{NumberHelperDigitScanSourceLength} with initial word zero.
Its source-length premise follows from $L\le A<M$; it returns normally
with a word $m_0$ and residual $s_1$ of contents $T_1$, regardless of
whether the wrapping word represents the unbounded fold exactly.
Since $|T_1|\le L$, \noderef{P364_T1_NumberHelperOffsetSourceLength}
applied to $s,s_1$ gives a normal offset
$N_I=L-|T_1|=|I|\in[0,L]$. Both length casts in that offset are
exact, as required by that lemma.

By \noderef{ModelSliceSplitFirst}, splitting $s_1$ returns normally.
If its first byte is not a point, or it is empty, the fractional tuple
is $(s_1,m_0,0,0)$; put $F=[]$ and $T_2=T_1$.
If its first byte is 46, that split gives a legitimate suffix $u$ with
$T_1=[46]\mathbin{++}u.\mathit{val}$. Apply
\noderef{P364_T1_NumberHelperDigitPrefix} to $u.\mathit{val}$ and write
$u.\mathit{val}=F\mathbin{++}T_2$. The second use of
\noderef{NumberHelperDigitScanSourceLength}, now starting from $m_0$,
returns normally with word $m_1$ and residual $s_2$ of contents $T_2$.
The arbitrary-initial-word clause is essential here. The suffix length
is at most $L$, so \noderef{P364_T1_NumberHelperOffsetSourceLength}
gives fractional count $N_F=|F|\in[0,L]$.
This count is nonnegative and no greater than $A$, so it is not
$-2^{63}$; checked negation is normal with value $-|F|$.
The following Isize-to-I64 cast is exact because
$-|F|\in[-A,0]\subset[-2^{63},M]$. In the no-point case the same
base-exponent formula holds with $|F|=0$.

In both cases all bytes of $I,F$ are digits, $T_2$ is empty or
nondigit-headed, and the source has contents either $I\mathbin{++}T_2$
or $I\mathbin{++}[46]\mathbin{++}F\mathbin{++}T_2$.
Hence $D=|I|+|F|\le L$. The checked sum $N_I+N_F$ is normal
and exact: it is in $[0,A]$, inside the Isize range.
If $D=0$ the extracted call returns $\texttt{ok none}$ immediately.
Suppose $D>0$ for the remaining branches.

The next split of $s_2$ is normal by
\noderef{ModelSliceSplitFirst}. If $T_2$ is empty or its first byte
is neither 101 nor 69, no scientific call is made; set $E=0$ and final
residual $r=s_2$. The base exponent is already the normal $-|F|$.
If its first byte is an exponent marker, the split removes just that
byte and gives a suffix $v$ of length at most $L$.
Apply \noderef{P367_T1_NumberHelperScientificScan} to $v$.
It returns normally on every byte list, stripping at most one sign,
scanning the complete maximal exponent-digit run, and leaving its
exact tail. If it returns None, \noderef{ModelOptionBranch} and
\noderef{ModelOptionFromResidual} make the enclosing partial call
return $\texttt{ok none}$. If it returns Some exponent $e$, put
$E=e.\mathit{val}$. Its statement gives $-C\le E\le C$,
and its tail decomposition gives $|r|\le|v|\le L$.
Apply \noderef{P367_T1_NumberHelperExponentAddA} to the I64 base
$-|F|\in[-A,0]$ and $e$. This is exactly the checked sum preceding
any many-digit test in both marker branches. It returns normally with
value $-|F|+E$. In particular, no short exponent-digit assumption or
mantissa bound has been used to justify that addition.

On every branch that reaches record construction, the residual $r$
has length at most $L$ and is a suffix of the original slice. Apply
\noderef{P364_T1_NumberHelperOffsetSourceLength} to $s,r$.
It gives normal consumed offset $k=L-|r|\in[0,L]$.
Its cast to Usize is exact: $0\le k\le A<2^{64}$.
This proves the consumed-length operations even for an unmatched
arbitrary-byte suffix. The three record-construction continuations
(empty residual, marker success, and a nonmarker head) differ only
in the just-audited residual and explicit exponent.

If $D\le19$, the corresponding constructor returns normally with
$\texttt{many\_digits=false}$. Suppose $D>19$. The checked
subtraction $D-19$ is in $[1,A]$, and so returns normally as Isize.
Apply \noderef{P367_T1_NumberHelperAdjustmentA} to this count and
the original $s$. It returns normally with
$n'=D-19-z$, where $z$ counts zero bytes in the maximal initial
zero-or-point prefix of the \emph{whole} input.
Its hypotheses hold since $D-19\le L$. This use permits that prefix
to continue into a malformed tail, and does not assume $z\le D$.
If $n'\le0$, the existing retained constructor returns normally,
without a retry or additional arithmetic.

It remains to justify each retry when $n'>0$.
If a point was scanned, the source and saved integer-end slice have
exactly the shapes $I[46]FT_2$ and $[46]FT_2$ proved above.
Apply \noderef{P367_T1_NumberHelperFractionalRetryA} with these lists
and explicit exponent $e$, or I64 zero on a nonmarker branch.
The digit, nondigit-tail, A-length and $[-C,C]$ premises all hold.
It establishes the guarded one-byte retry slice, both digit scans,
exact offsets, safe negation and cast, and the final checked exponent
sum, yielding a normal pair. No additional significant-digit premise
is needed for this fractional retry theorem.

If no point was scanned, the saved integer-end is $T_2=T_1$ and its
head, if present, is neither a digit nor a point. Let $Z_0$ be the
maximal initial zero-digit prefix of $I$ and write $I=Z_0\mathbin{++}H$.
If $H=[]$, the raw zero-or-point prefix contains all of $I$, so
$z\ge D$ and $D-19-z<0$, contradicting $n'>0$.
Otherwise $H$ starts with a nonzero digit; the raw prefix stops
at that digit and has $z=|Z_0|$. Thus
$|H|=D-z>19$. Decode $H$ by $b\mapsto b.\mathit{val}-48$:
all digits are below ten and its first digit is at least one.
\noderef{P804_T1_DecimalFoldBounds} gives its natural value at least
$10^{|H|-1}\ge10^{19}\ge10^{18}$.
Folding the zero prefix from zero leaves zero, by induction over that
prefix, so the fold of $I$ equals the fold of $H$.
Apply \noderef{P367_T1_NumberHelperIntegralRetryA} to $s,s_1,I,T_1$
and the explicit exponent (or zero). All its premises, including the
ordinary fold lower bound, are now proved. It returns a normal pair
with exact source-bounded offset, cast and safe checked addition.

The retry constructors simply insert these pairs into a Decimal with
$\texttt{negative=false}$ and $\texttt{many\_digits=true}$, preserving
the already constructed $k$. Every reached loop is normal by a cited
scanner or adjustment theorem; every remaining operation has been
shown normal in its execution order. Substituting the successful
results into the Result monad therefore produces $\texttt{ok}(o)$
in every branch. This excludes both outer failure and divergence.
\end{proof}
