\begin{lemma}[Generic fixed-frame classification, rounding and sign]
For every total abstract package $C$ satisfying \noderef{DispatchContracts},
every source-valid Rust string $s$ of complete byte length at most
$A=3458764513820540928$, and every normal result $(r,\tau)$ of the fixed
\noderef{P9_T1_DispatchFrame} using \noderef{P9_T1_EmbedComponents},
the following three assertions hold.  Invalid whole-input classification
implies $r$ is Rust Err.  Every complete special classification
$(\sigma,\mathit{nan})$ implies $r$ is Rust Ok of a NaN if its flag is
true, or of infinity with sign $\sigma=\mathrm{some\ true}$ otherwise.
Every complete numeric classification $x$ implies $r$ is Rust Ok of a
word $f$, with a magnitude word $m$ rounding the full-significand
accumulated-exponent magnitude of $x$, and $f$ is $m$ with exactly $x$'s
lexical sign.  No actual component compliance or actual helper normality
is assumed.  This lemma deliberately leaves ordinary exact transport to
the independent B-bounded bridge.
\end{lemma}
\begin{proof}
Fix $C$, its laws, $s$, and the normal frame equation.  All predicates
and values below are those of \noderef{DecimalGoalVocabularyDefault}.
Unfold \noderef{P9_T1_DispatchFrame} and its embedding
\noderef{P9_T1_EmbedComponents}.  Bind inversion of the normal equation
identifies the results in its executed branch with the specified abstract
values; no claim about actual source success is needed.
\noderef{ModelStrAsBytes} returns the identical byte slice and
\noderef{ModelSliceFirst} its optional head.  An empty input returns
the Rust Err and EmptyInput trace given by
\noderef{num_imp_dec2flt_pfe_empty}.  A sign-only input returns Rust Err
and SignOnly through \noderef{num_imp_dec2flt_pfe_invalid}.

Otherwise let $c$ be the first byte, $\nu=(c=45)$ its Boolean test, and
$b$ the nonempty sign-stripped body.  On either sign byte the installed
range-index primitive starts at one, whose bound follows from the head;
it gives the exact tail, and otherwise the body is unchanged.
The width is the ratified 64-bit premise in \noderef{Assumptions}.
Thus \noderef{P616_T1_SignStrippedClassification} applies, giving
source validity of $b$ and $|b|\leq|s|\leq A$, as well as its forward
and reverse classification clauses.  Every U8 value is below 256, so
\noderef{ClassificationDeterminism} is applicable to the complete byte map.
The contract fields used below are explicitly those of
\noderef{DispatchContracts}, at these just established domains.

Assume first that the complete input is invalid.  If $b$ admitted an
unsigned numeric lexeme, the reverse numeric clause of the sign-removal
lemma would give a complete numeric classification, contrary to the
invalid classification's defining exclusion.  Similarly the reverse
special clause excludes every unsigned special spelling of $b$.
The contract \texttt{number\_reject}, using nonemptiness and the A-bound, forces
$C.\mathrm{parseNumber}(b)=\mathrm{None}$.  In that branch the full-domain
\texttt{special\_reject} law forces $C.\mathrm{parseSpecial}(b,\nu)=\mathrm{None}$.
The frame returns Rust Err of the normal Invalid error and the Invalid
trace with these two None observations.  The earlier empty and sign-only
branches already returned Rust Err, so the invalid assertion holds in
all cases.

Assume next a complete special classification $(\sigma,\mathit{nan})$.
Its unsigned body is nonempty and the sign-removal lemma gives its
specialLiteral predicate and $\nu=\operatorname{decide}(\sigma=
\mathrm{some\ true})$.  No valid unsigned numeric rendering of $b$ can
exist: its reverse clause would produce a complete numeric classification,
inconsistent with the supplied special one by ClassificationDeterminism.
Thus \texttt{number\_reject} forces None before any special call.  Depending on
the NaN Boolean, \texttt{special\_nan} or \texttt{special\_infinity} supplies Some $f$ with
exactly the claimed word predicate at sign $\nu$.  The frame's Special
branch returns that same $f$ and records the numeric None and special
Some.  It executes neither numeric conversion nor a second negation;
the separate special sign has already been applied by its law.
This proves the special assertion and respects numeric-before-special
ordering rather than replacing the two calls by a free classifier.

Finally assume a complete numeric classification $x$.  Let $y$ be $x$
with leading sign removed.  The sign-removal lemma gives validity of $y$,
its rendering equal to the bytes of $b$, equality of both magnitudes,
and $x$'s lexical-negative flag equal to $\nu$.  This body is nonempty,
so the earlier error branches cannot apply.  Contract \texttt{number\_accept}
gives $C.\mathrm{parseNumber}(b)=\mathrm{Some}(d)$ for some record.
\texttt{Record\_bounds} gives $d.\mathit{negative}=\mathrm{false}$ and
$w:=d.\mathit{mantissa}.\mathit{val}<10^{19}$.
Put $q=d.\mathit{exponent}.\mathit{val}$,
$L=w10^q$, $U=(w+1)10^q$, and
$V=\mathrm{accumulatedMagnitude}(y)=\mathrm{accumulatedMagnitude}(x)$.
\texttt{Record\_accumulated} gives $V=L$ when \texttt{many\_digits} is false and
$L\leq V<U$ otherwise.  Since $10^q>0$, $L\geq0$ and $L<U$.

The native input $d'$ differs from $d$ only by overwriting its negative
flag with $\nu$.  Consequently its decimalMagnitude is still $L$ and
its \texttt{many\_digits} flag is unchanged.  If $C.\mathrm{native}(d')$ is
Some $f$, \texttt{native\_normal} supplies a magnitude $m$ rounding $L$, the
signedMagnitude$(\nu,m,f)$ predicate, and \texttt{many\_digits} false.
The latter makes $V=L$ by representation.  Substituting this equality
gives rounding of $V$ and thus of $x$'s accumulated magnitude.
The FastPath branch returns exactly $f$ and records the signed input;
there is no further sign operation on this branch.  Its supplied sign
predicate and the equality of lexical sign prove the numeric assertion.

It remains to treat native None.  Write
$f_1=C.\mathrm{integer}(d.\mathit{exponent},d.\mathit{mantissa})$.
\texttt{Integer\_normal} says either $f_1.p_{\rm biased}<0$, or
$C.\mathrm{assemble}(f_1)$ is a clear-sign rounding of $L$.
The scalar guard $f_1.p_{\rm biased}\geq0$ is exactly the opposite
integer inequality.  There are the following exhaustive selections.

If \texttt{many\_digits} is false and the first exponent is nonnegative, no second
call is executed and $f_1$ is selected without slow fallback.  Its
assembled magnitude rounds $L=V$ by the nondeferral alternative.
If the first exponent is negative, regardless of \texttt{many\_digits}, the second
guard is false and the unchanged negative pair reaches slow fallback.
\texttt{Slow\_normal} applies on the source-valid unsigned numeric $b$, with no
A restriction needed, and says that the assembled slow replacement is
a clear-sign rounding of $V$.

The remaining case has \texttt{many\_digits} true and first exponent nonnegative,
so the guarded second call is executed.  The checked successor is normal
and exactly $w+1$: $w<10^{19}$ implies $w+1\leq10^{19}<2^{64}$.
Thus its endpoint value is precisely $U$, not a wrapping successor.
Let $f_2$ be the second abstract integer result.  The pair comparison
\noderef{num_imp_dec2flt_common_BiasedFp_Insts_CoreCmpPartialEqBiasedFp_eq}
returns true precisely when both fields agree.  Pair extensionality then
gives $f_2=f_1$.  In this equality case $f_2$ too has nonnegative
exponent, so both \texttt{integer\_normal} laws take their nondeferral alternative.
The same word $m=C.\mathrm{assemble}(f_1)=C.\mathrm{assemble}(f_2)$
rounds both $L$ and $U$.  Apply
\noderef{P616_T1_RoundingCellConvexity} with $L\leq V$ and $V<U$
(hence $V\leq U$).  It gives that $m$ rounds $V$, including odd/even
ties and zero or infinity endpoints.  The post-comparison pair remains
$f_1$, \texttt{forced\_deferral} is false and there is no slow call.
If the comparison is false, the frame overwrites the first exponent
with $-1$.  The post-comparison negative test is therefore true,
\texttt{forced\_deferral} is true and the slow call uses the same $b$, not a
truncated record or a sign-bearing string.  \texttt{Slow\_normal} again supplies
the clear-sign rounding of $V$ for the selected replacement.  No value
law is required of the unequal endpoint pair itself.

In every assembled case just enumerated, let $f_*$ be the selected pair
and $m=C.\mathrm{assemble}(f_*)$.  We proved rounding of $V$ and
$m.\mathit{val}<2^{63}$ by the integer or slow law.  This also follows
from the common rounding-word bound $m.\mathit{val}\leq
2047\,2^{52}=2^{63}-2^{52}$.  We impose no exponent-range condition
on arbitrary selected pairs.  The frame's raw I32-to-U64 cast has
natural value $(f_*.p_{\rm biased}.\mathit{val}\bmod2^{64})$;
the \texttt{SIG\_BITS} computation \noderef{num_imp_traits_Float_SIG_BITS_default}
uses \noderef{ModelF64MantissaDigits}'s 53 and checked subtraction of
one to give 52.  This count is below 64, so the shift underlying
\noderef{ModelU64Shl} is the 64-bit modular shift.  The OR underlying
\noderef{ModelU64BitOr} is total.  Consequently the resulting trace
raw word has exactly the natural value in assembledWord$(f_*,\cdot)$.
Contract \texttt{assembly\_all} gives that same formula for $m$; word
extensionality identifies them.  The embedded assembly call returns ok
of $m$, as recorded in \texttt{assembly\_result}.

If $\nu$ is false, the returned word is $f=m$, so signedMagnitude
holds with no added sign bit.  If $\nu$ is true, the embedded negation
returns $f=C.\mathrm{negate}(m)$, and \texttt{negate\_all} together with
$m.\mathit{val}<2^{63}$ gives
$f.\mathit{val}=m.\mathit{val}+2^{63}$.  These are exactly both clauses
of signedMagnitude$(\nu,m,f)$, including zero and infinity.  The
sum is below $2^{64}$, so this is the full natural word equation.
Replace $\nu$ by the lexical-negative flag of $x$ to obtain the stated
predicate.

The Assembled trace is built from these same values: its \texttt{many\_digits}
record updates retain the original flag, its native input has the
overwritten sign, its first and guarded second operands and pairs are
the ones used above, and its comparison, forced-deferral and slow fields
are the selected branch's actual Booleans and options.  Its raw and
assembly words are equal as proved; its \texttt{lexical\_sign\_applied} flag is
$\nu$, and its result is the final word just signed.  Substitution in
the given normal equation and injectivity of ok identify its Rust
result $r$ with Ok of this $f$.  Native and special traces likewise
retain their direct-return values and select no assembly pair.
Thus every possible normal frame output has the three asserted
classification, accumulated-rounding and sign properties.  No public
parser theorem or dispatch-composition theorem was used.
\end{proof}
