\begin{definition}
A \emph{dispatcher contract package} consists of operations for sign stripping,
numeric and special lexical parsing, the native shortcut, checked increment of
the truncated mantissa, integer-tier conversion, raw-pair comparison and forced
deferral, the slow fallback, raw-pair assembly, and lexical-sign application.
It also has a relation saying when a parsed decimal record represents an
unsigned numeric lexeme and an explicit dispatcher-flow relation.  Source-valid
Rust strings, their byte lists, numeric and special grammars and classification,
decimal magnitudes, rounding targets, NaN and infinity predicates, raw-pair
assembly, and signed magnitudes have exactly the meanings in
\noderef{DecimalGoalVocabularyDefault}; source-valid byte-slice carriers have
the meaning in \noderef{SourceValidByteSlice}.

On the bytes of every source-valid Rust string, sign stripping has the following
exact behavior.  The empty byte list returns none.  A leading ASCII
\texttt{+} is removed and records the optional Boolean sign
$\operatorname{some}(\mathit{false})$, while a leading ASCII \texttt{-} is
removed and records $\operatorname{some}(\mathit{true})$; either case returns
none when the remainder is empty and otherwise returns that exact nonempty
remainder as the body.  Every other nonempty byte list is returned unchanged as
the body with no leading sign.  Failed sign stripping classifies the input as
invalid.  Successful sign stripping produces a nonempty body, the same optional
leading sign, and a source-valid Rust byte-slice carrier for exactly that body.
The original string's bytes are classified by a numeric lexeme $x$ exactly
when there is a valid unsigned lexeme whose rendering is the body and whose
complete record becomes $x$ upon replacing its absent leading sign by that
exact optional sign.  They are classified by a special kind with an optional
sign exactly when that sign is the stripped sign and the body is the
corresponding unsigned special literal.  Thus sign stripping preserves the
complete numeric, special, and invalid classification on precisely the
source-string domain: empty and sign-only inputs cannot invent a helper body,
whereas every other nonempty invalid input reaches the lexical helpers on the
exact body just described.

On every source-valid Rust byte slice, with no UTF-8 premise, numeric
completeness says that each valid unsigned numeric lexeme rendering the slice
has some returned record that represents it.  Separately, per-result
correctness says that a particular record is returned exactly when it
represents some such lexeme.  Special parsing is split into three clauses on
source-valid Rust byte slices.  Every returned value is supported by an
unsigned special literal and is a NaN for \texttt{nan} or the infinity selected
by the separate sign argument for \texttt{inf} and \texttt{infinity}.
Conversely, each unsigned special literal has some returned value satisfying
its corresponding predicate; this existential does not choose one NaN
representation and equate it with all NaNs.  When there is no unsigned special
literal, the parser returns none.  A represented record is nonnegative,
has mantissa below $10^{19}$, and either denotes the input's accumulated-
exponent magnitude when no digits were truncated or brackets that diagnostic
magnitude between the values obtained from its mantissa and from mantissa plus
one.  A distinct target-preservation clause says that a nontruncated record has
the same rounding targets as the exact input and that agreement of the two
many-digit endpoint pairs gives an exact-input rounding target.

The native contract says that a successful shortcut is possible only without
truncated digits and is obtained by applying the package's sign operation to a
clear-sign binary64 magnitude rounding the record's value.  The integer-tier
contract says that its raw pair either has a negative biased exponent, denoting
deferral, or has biased exponent in $0\ldots2047$ and assembles to a clear-sign
rounding of the supplied $w10^q$.  Increment succeeds on every parser-bounded
mantissa and produces its mathematical successor.  Pair comparison is exact;
forced deferral preserves the mantissa and sets the biased exponent to $-1$.
On each source-valid byte slice, the slow contract assembles to a clear-sign
accumulated-value rounding of the full unsigned numeric lexeme; its distinct
target-preservation clause records the exact-input target required by
dispatcher composition.  Assembly has
exactly the specified raw-pair word, while the sign operation alone applies the
requested sign to a clear-sign magnitude.

On bytes of a source-valid Rust string, the flow relation is fixed, not chosen
independently.  It strips the optional leading sign and parses the nonempty
source-valid byte-slice body.  Numeric records have their sign
field overwritten by the lexical sign and first try the native shortcut.  On
deferral it calls the integer tier on the record exponent and mantissa.  Exactly
when digits were truncated and the first pair is nondeferred, it safely
increments the mantissa and makes the second integer-tier call; unequal pairs
force deferral and equal pairs retain the first.  A negative post-comparison
exponent selects the slow result on the unchanged body, otherwise the
post-comparison pair is retained.  The selected pair is assembled and only then
is the lexical sign applied.  Failure of numeric parsing instead invokes the
special parser, and failure of both lexical helpers is the invalid result.
\end{definition}
\begin{preservation}
\begin{claim}
The dispatcher contract package separates exactly the source-valid Rust-string
domain of sign stripping and whole-dispatch flow from the source-valid Rust
byte-slice domain of the numeric, special, and slow helpers.  Its sign-stripping
equation records exactly the empty, sign-only, signed-nonempty, and
unsigned-nonempty source branches before giving their classification
consequences.  On the helper
domain it distinguishes numeric completeness, which supplies a returned record
for each valid unsigned numeric body, from per-result correctness, which
characterizes any record that is returned.  It likewise distinguishes special
per-result soundness, per-literal existential completeness, and rejection when
there is no unsigned special literal.  Within those domains it separates
exactly the observations and call boundaries of the frozen \texttt{f64}
dispatcher: it neither inserts a
conversion branch nor treats a directly returned native or special value as an
assembled raw pair.  Its record, endpoint, fallback, assembly, and sign clauses
preserve the source's distinct intermediate values and do not assume the final
combined exact-rounding-and-sign conclusion.
\end{claim}
\begin{proof}
The unadapted dispatcher receives a Rust \texttt{str}.  The meanings of its
source-string domain and bytes, grammar and classification, decimal and exact
magnitudes, rounding relation, NaN and signed-infinity observations, raw-pair
assembly, and signed-magnitude observation are precisely those fixed by
\noderef{DecimalGoalVocabularyDefault}.  Its representation is UTF-8 and
bounded by \texttt{isize::MAX}; removing at most one leading ASCII sign leaves
a subslice within the same length bound, but helper slices need not
independently satisfy UTF-8.  That slice representability distinction is
precisely the one recorded by \noderef{SourceValidByteSlice}.

The source first tests whether the byte list is empty.  If it is, the source
returns the empty-input error before any helper call.  Otherwise it compares
the first byte with ASCII \texttt{-} and \texttt{+}, removes exactly that one
byte in either signed case, and rejects exactly when the resulting body is
empty.  Hence \texttt{-} records true, \texttt{+} records false, a signed
nonempty input returns its exact tail, and every other nonempty input returns
its exact unchanged bytes with no optional sign.  This proves the stated
sign-stripping equation from the source branches.  Together with the grammar
and classification of \noderef{DecimalGoalVocabularyDefault}, the equation
also proves the retained classification consequences: only empty or sign-only
inputs can fail before obtaining a body, and every other nonempty invalid input
passes its exact unsigned or unchanged body to both lexical stages before it
is rejected.  The body is a subslice, so its carrier satisfies
\noderef{SourceValidByteSlice}.

The dispatcher then performs the two lexical calls,
overwrites the parsed record's sign, tries the native shortcut, and then follows
the first-integer, conditional second-integer, forced-deferral, slow-fallback,
assembly, and final-negation sequence.  The adapted source records, without
changing those decisions, every value named by this definition.  The extracted
Lean body retains the same calls and guards.  The direct source excerpts,
commands, hashes, and extracted field inventory are recorded in
\evidenceref{reference/model-evidence/dispatch-contracts.txt}.  The clauses
above therefore expose exactly the source computation needed for composition.
In particular, the source-facing obligation that every valid unsigned numeric
body has a successful parser return is recorded as completeness, independently
of the biconditional that rules out and characterizes individual parser
results.  The special helper's length test, ASCII case normalization, three
keyword branches, and final sign branch similarly justify separate returned-
value soundness, existential completeness for each recognized literal, and
rejection in the absence of a recognized literal.  Accumulated-value
representation, exact-target preservation, magnitude production, and sign
application are separate clauses, so the definition does not encode either
principal dispatcher's combined conclusion as a premise.
\end{proof}
\begin{goalproof}{parser_totality}The package exposes every dispatcher branch, including invalid and direct-return branches, without narrowing the Rust-string domain.
\end{goalproof}
\begin{goalproof}{parser_numeric_acceptance}Numeric acceptance uses the package's exact lexical parser and total explicit flow; it is not built into any conversion clause.
\end{goalproof}
\begin{goalproof}{parser_invalid_rejection}The exact sign-stripping equation preserves the distinct early rejection of empty and sign-only strings.  Every other invalid nonempty string produces its exact signed-tail or unchanged body, after which numeric and special parsing both fail according to the retained classification and helper clauses.
\end{goalproof}
\begin{goalproof}{parser_nan_acceptance}Special-literal completeness supplies some directly returned NaN result and does not select an arbitrary NaN in advance or conflate it with raw-pair assembly.
\end{goalproof}
\begin{goalproof}{parser_infinity}Special-literal completeness supplies a directly returned infinity satisfying the separate lexical sign argument.
\end{goalproof}
\begin{goalproof}{parser_non_nan_results}Per-result special soundness preserves the distinction between the NaN special branch, the two infinity spellings, and every numeric conversion branch.
\end{goalproof}
\begin{goalproof}{parser_numeric_sign}All numeric tiers produce or assemble magnitudes separately from the one final sign operation, except that the native helper receives the sign-overwritten record as in the source.
\end{goalproof}
\begin{goalproof}{parser_signed_zero}Clear-sign magnitudes and the separate sign operation retain the distinction between positive and negative zero.
\end{goalproof}
\begin{goalproof}{parser_exact_rounding}Exact rounding is the conclusion obtained by composing record preservation with the selected magnitude-producing tier, not a premise of the package as a whole.
\end{goalproof}
\begin{goalproof}{parser_selected_exponent}The integer and slow contracts retain the selected pair and its biased exponent before assembly.
\end{goalproof}
\begin{goalproof}{parser_selected_magnitude_sign}Assembly is separated from sign application, preserving the clear sign bit of the selected magnitude word.
\end{goalproof}
\begin{goalproof}{dispatch_abstract_composition}This package is precisely the shared component interface quantified over by the abstract-composition theorem: whole flow uses bytes of source-valid Rust strings, the exact sign/body equation supplies the source branch and unchanged helper body used by that flow, successful stripping supplies a source-valid slice carrier, and numeric completeness prevents a valid numeric body from vacuously bypassing the numeric tiers.
\end{goalproof}
\begin{goalproof}{dispatch_component_compliance}The concrete-compliance theorem instantiates this same package.  The exact sign/body equation identifies the trace's empty and sign-only branches and, on every remaining input, its precise body and Boolean lexical sign; the theorem then establishes normal returns and equality with the package operations on the exact source domains and the slice premise for every such traced body.
\end{goalproof}
\begin{goalproof}{parser_accumulated_rounding}The bracketing and slow-path clauses can be applied to the accumulated target independently of the exact-target composition claim.
\end{goalproof}
\begin{goalproof}{parser_equal_target_rounding}The package keeps component magnitudes and lexical sign separate, so an independently established equality of targets can be transported through the selected tier.
\end{goalproof}
\begin{goalproof}{number_helper_acceptance}On the GOAL's exact source-valid byte-slice domain, numeric completeness gives a returned record for every unsigned numeric body, while per-result correctness preserves the corresponding record witness.
\end{goalproof}
\begin{goalproof}{number_helper_rejection}The same exact lexical clause preserves \texttt{None} for every nonnumeric source-valid unsigned byte slice, without adding UTF-8.
\end{goalproof}
\begin{goalproof}{number_helper_record_bounds}Represented records retain false sign and the strict $10^{19}$ mantissa bound needed for safe increment.
\end{goalproof}
\begin{goalproof}{number_helper_accumulated_value}Record representation keeps the nontruncated equality and truncated half-open endpoint interval as distinct cases.
\end{goalproof}
\begin{goalproof}{special_helper_infinity}On every source-valid byte slice, special-literal completeness retains both unsigned infinity spellings and supplies a returned value satisfying the helper's separate sign argument; soundness excludes unrelated successful results.
\end{goalproof}
\begin{goalproof}{special_helper_nan}On every source-valid byte slice, special-literal completeness supplies some returned NaN, while soundness requires every value returned for that literal to be a NaN without equating all NaN representations.
\end{goalproof}
\begin{goalproof}{special_helper_rejection}The rejection clause retains \texttt{None} outside all three unsigned keywords throughout the source-valid byte-slice domain.
\end{goalproof}
\begin{goalproof}{native_correct_or_defer}The native clause retains the normal-return distinction between deferral and a record-value rounding, with sign factored through the shared sign operation.
\end{goalproof}
\begin{goalproof}{integer_correct_or_defer}The integer clause retains unrestricted machine exponent and mantissa inputs and the negative-exponent deferral alternative.
\end{goalproof}
\begin{goalproof}{slow_accumulated_rounding}On the GOAL's source-valid unsigned-numeric byte slices, the slow clause retains the unchanged full body and a separately assembled magnitude; its target can be specialized to the diagnostic vocabulary.
\end{goalproof}
\begin{goalproof}{assembly_correspondence}The assembly clause applies to every raw pair without a well-formedness precondition and is independent of later sign application.
\end{goalproof}
\begin{goalproof}{classification_totality}The standalone mathematical classification relation remains defined over every finite byte string; restricting source-facing contract applications to representable Rust values does not narrow that separate GOAL.
\end{goalproof}
\begin{goalproof}{classification_determinism}The package uses the existing unrestricted classification relation and exact helper-result equivalences on source-facing inputs, adding no competing grammar or restriction to the standalone GOAL.
\end{goalproof}
\begin{goalproof}{classification_significand_digit}Numeric bodies are tied to the existing valid-lexeme predicate, which retains its significand-digit requirement.
\end{goalproof}
\begin{goalproof}{rounding_totality}The package consumes the existing rounding relation and does not change its real-number domain or binary64 targets.
\end{goalproof}
\begin{goalproof}{rounding_determinism}Endpoint and tier clauses use the same existing rounding relation, so they introduce no alternative target notion.
\end{goalproof}
\begin{goalproof}{exponent_value_agreement}The package does not identify mathematical and accumulated explicit exponents; any agreement remains an independent bridge premise.
\end{goalproof}
\end{preservation}
