\begin{definition}
The concrete decimal-goal vocabulary has the following meanings.
Bytes are their unsigned values, and an Aeneas \texttt{Str} is source-valid
exactly when its byte list has length at most
$\mathtt{isize::MAX}=9223372036854775807$ and is the UTF-8 encoding of a Lean
string.  A numeric
lexeme has an optional minus or plus sign and is valid exactly when every
recorded digit is in $0,\ldots,9$, at least
one digit occurs on either side of the optional point, and a present exponent
has at least one digit.  Rendering uses ASCII, an optional leading sign, the
recorded optional point, and an optional \texttt{e}/\texttt{E} exponent with
its optional sign.  Special literals are optionally signed
\texttt{inf}, \texttt{infinity}, or \texttt{nan}, ASCII case-insensitively.
Classification is numeric with its complete lexeme, special with its sign and
kind, or invalid exactly when neither grammar matches.

The mathematical explicit exponent is the signed base-ten value of all
exponent digits.  The accumulated exponent folds digits left-to-right, updating
$a$ to $10a+d$ exactly while $a<2^{59}=576460752303423488$, then applies the exponent sign.  Exact
and accumulated magnitudes concatenate all significand digits and multiply by
$10^{e-f}$, where $f$ is the number of fractional digits.  A source
\texttt{Decimal} has magnitude $\mathit{mantissa}\,10^{\mathit{exponent}}$.

A binary64 magnitude target is a raw word from positive zero through positive
infinity.  Below the overflow midpoint $2^{1024}-2^{970}$ it is a finite word
at minimum absolute distance from the real input, with an even low significand
bit required at a tie; at or above that midpoint it is positive infinity.
Finite-word values use the ordinary binary64 normal and subnormal formulas.
NaN, infinity, and negativity inspect the IEEE exponent, fraction, and sign
bits.  Applying a lexical sign sets that sign bit on a nonnegative magnitude.
Finally, unrestricted \texttt{BiasedFp} assembly is the low 64 bits of the
mantissa OR the Rust two's-complement \texttt{i32}-to-\texttt{u64} cast of the
biased exponent shifted left by 52.
\end{definition}
\begin{preservation}
\begin{claim}
This concrete instance of \noderef{DecimalGoalVocabulary} gives the reference
grammar and each named value or raw-word observation exactly the meaning stated
in the paired definition.  Its string predicate is exactly the configured
64-bit Rust \texttt{str} domain, while its total byte observation also applies
to every source-valid arbitrary-byte slice in \noderef{SourceValidByteSlice}.
Its rounding field expresses binary64 magnitude round-to-nearest,
ties-to-even, including subnormals and overflow, but makes no assertion that a
target exists or is unique.  Its assembly field covers every value of both
fields of an unrestricted source \texttt{BiasedFp}.  The instance supplies
vocabulary only: it does not assert parser termination, return discriminants,
record bounds, trace selection, component compliance, deferral behavior, or
the truth of any principal GOAL theorem.
\end{claim}
\begin{proof}
The fields below instantiate exactly the abstract names in
\noderef{DecimalGoalVocabulary}; \noderef{DecimalLexeme} fixes the four lexical
components, and \noderef{F64} fixes the word carrier.

First consider bytes and strings.  The pinned Aeneas definition makes
\texttt{Slice U8} an ordered list subtype, and all relevant slice observations
retain that order.  Consequently \texttt{s.val.map (fun b => b.val)} maps every
represented element, in order and without omission, to the natural-number
value of its unsigned eight-bit scalar
(\evidenceref{reference/model-evidence/aeneas-slice-observations.txt}).  Thus
\texttt{bytes} is the complete unsigned byte list, not a UTF-8-filtered
observation.  The first conjunct of \texttt{sourceString} is precisely the
$\mathtt{isize::MAX}=2^{63}-1$ source-length condition, as established for the
configured target by \noderef{SourceValidByteSlice} and
\evidenceref{reference/model-evidence/source-valid-byte-slice.txt}.

For the second conjunct, the exact pinned Lean definitions in
\evidenceref{reference/model-evidence/lean-utf8.txt} give both directions.  If
the displayed existential has witness $t$, then
\texttt{t.toUTF8} is definitionally \texttt{t.toByteArray}, and the proof field
of the \texttt{String} structure shows that this byte array is in the image of
\texttt{List.utf8Encode}; equality of the lists of unsigned byte values
identifies it with the Aeneas bytes, so those bytes are valid UTF-8.
Conversely, if the source bytes are valid UTF-8, the constructor of
\texttt{ByteArray.IsValidUTF8} supplies a character list whose
\texttt{List.utf8Encode} is exactly that byte array.  Applying
\texttt{String.fromUTF8} to the byte array and this proof constructs a Lean
string whose \texttt{toUTF8}, by definition, is the original array, furnishing
the existential.  Rust \texttt{str} requires exactly valid UTF-8 in addition
to the same length bound
(\evidenceref{reference/model-evidence/source-valid-byte-slice.txt}), so
\texttt{sourceString} is equivalent in both directions to the configured Rust
string domain rather than merely assuming an unspecified UTF-8 equivalence.

For numeric syntax, \texttt{allDigits} says exactly that each stored natural is
one of $0,\ldots,9$.  The four conjuncts of \texttt{validNumeric} require this
for the integer digits, for present fractional digits, and for present
exponent digits; require at least one digit in the integer/fraction pair; and
require a present exponent to contain at least one digit.  In
\texttt{renderNumeric}, \texttt{none}, \texttt{some false}, and
\texttt{some true} for the leading sign render respectively as no byte,
ASCII plus, and ASCII minus.  Integer digits render as $48+d$; a present
fraction renders one point byte $46$ followed by its digits; and a present
exponent renders ASCII \texttt{e} or \texttt{E}, its independently optional
plus/minus sign, and its digits.  Equality with the complete input byte list in
\texttt{numericLiteral} leaves no whitespace, suffix, second point, or other
extra byte.  These are exactly the optional-sign, point, \texttt{e}/\texttt{E},
and exponent clauses pinned from the reference in
\evidenceref{reference/model-evidence/goal-vocabulary.txt}.

For \texttt{asciiCaseEq}, \texttt{List.Forall2} first forces the two lists to
have equal length.  At each position whose required lowercase ASCII byte is
$l\in\{97,102,105,110,116,121\}$, the disjunction is
$a=l$ or $a+32=l$, hence $a$ is exactly the lowercase byte $l$ or its uppercase
byte $l-32$.  Therefore the three fixed lists accept exactly ASCII
case-variants of \texttt{nan}, \texttt{inf}, and \texttt{infinity}.
\texttt{specialLiteral} prepends precisely the optional sign bytes and selects
\texttt{nan} when its Boolean is true and one of the two infinity spellings
when it is false.  Finally, unfolding \texttt{classifies} shows: a left value
is related exactly by \texttt{numericLiteral}; a right value is related
exactly by \texttt{specialLiteral}; and \texttt{none} is related exactly when
there exists neither a numeric lexeme nor a special sign/kind witness.  Thus
the invalid case is precisely the complement of the two complete grammars,
without any assertion that successful witnesses are unique.

The Boolean \texttt{lexicalNegative} is true exactly when the
\noderef{DecimalLexeme} leading-sign field is \texttt{some true}, the encoding
of a rendered minus.  The fold \texttt{digitsValue} starts at zero and replaces
$n$ by $10n+d$ for every digit, so for all-digit lists it is their ordinary
base-ten value, including leading zeroes.  Accordingly
\texttt{mathExplicitExponent} is zero when absent and otherwise applies the
recorded minus exactly for sign \texttt{some true}.  The accumulated fold
performs the same update exactly while the previous accumulator is below
$2^{59}$, and otherwise retains it.  An update from $0\leq a<2^{59}$
and $0\leq d\leq9$ lies in $[0,10\cdot2^{59}-1]$, whose upper endpoint
is $5764607523034234879<2^{63}-1$; \noderef{P9_T1_ExponentFoldBounds}
establishes this invariant for every finite digit list and starting state.
Multiplication and addition are therefore
exact even with overflow checks.  Induction on digit prefixes identifies
the fold with the accumulator after each source update.  A stopped update
retains the accumulator, not the scanning position: the source still consumes
every following digit and returns the first nondigit suffix.  Negation after
scanning is exact because the accumulator is nonnegative and below the I64
maximum.  The fold names only that value, not acceptance or termination of
the enclosing parser. \noderef{P9_T1_ScientificVocabularyFold} proves this
natural digit fold equals the actual signed scientific result and suffix,
without an A restriction. \noderef{NumberHelperScientificClassificationSourceLength}
keeps empty digit prefixes as normal None on the exact sign-stripped suffix.
This is the current source loop,
including its update test, pinned in
\evidenceref{reference/model-evidence/goal-vocabulary.txt}.

The significand list is exactly the integer digits followed by all present
fraction digits, and \texttt{fractionCount} counts exactly the latter.
Therefore \texttt{exactMagnitude} is
$N10^{e-f}$ for the all-digit significand value $N$, mathematical explicit
exponent $e$, and fractional length $f$; \texttt{accumulatedMagnitude} is the
same all-digit formula with the bounded-fold exponent.  Independently, for
every extracted \texttt{Decimal} record $d$, \texttt{decimalMagnitude} is the
unsigned real $d.\mathit{mantissa}\,10^{d.\mathit{exponent}}$.  Its sign is not
lexical: where needed it is the separate record field $d.\mathit{negative}$.

For rounding, \noderef{F64} and
\evidenceref{reference/model-evidence/float-carriers.txt} identify the carrier
with every raw word from $0$ through $2^{64}-1$.  With sign bit zero, the words
from $0$ through
$2047\cdot2^{52}=2^{63}-2^{52}$ are exactly positive zero, every positive
finite encoding, and positive infinity; the strict upper bound excludes the
infinity word.  For a finite word, Euclidean division by $2^{52}$ uniquely
splits it into exponent field $e\in[0,2046]$ and fraction field
$m\in[0,2^{52}-1]$.  When $e=0$, \texttt{finiteMagnitudeValue} is
$m/2^{1074}=m2^{-1074}$, including zero and every subnormal.  When $e>0$, its
two executable branches are respectively
$(2^{52}+m)2^{e-1075}$ for $e\ge1075$ and
$(2^{52}+m)/2^{1075-e}=(2^{52}+m)2^{e-1075}$ below $1075$.
Thus all and only finite nonnegative binary64 magnitude candidates are covered
with their ordinary values.  The 11-bit exponent, 52-bit fraction, and IEEE
interpretation are independently pinned in
\evidenceref{reference/model-evidence/binary64-boundary.txt}.

Below the overflow threshold, \texttt{roundsMagnitude} requires its finite
candidate to have distance no greater than every other finite candidate; if a
competitor is at equal distance, it requires the selected word's low bit to be
even.  This is exactly nearest selection and the even-low-bit tie condition.
The maximum finite value is
$(2^{53}-1)2^{971}=2^{1024}-2^{971}$, its top-binade spacing is $2^{971}$,
and adding half that spacing gives the overflow midpoint
$2^{1024}-2^{970}$.  At or above that midpoint the relation selects the
positive-infinity word; below it the infinity branch is impossible and the
finite branch applies.  These clauses establish the meaning of the relation
only.  They do not supply a target or prove two targets equal, leaving
\texttt{rounding_totality} and \texttt{rounding_determinism} as the unresolved
principal theorem obligations.

The remaining word predicates use the same split.  Reduction modulo $2^{63}$
clears exactly the sign bit; division by $2^{52}$ then reads the 11-bit
exponent, while remainder modulo $2^{52}$ reads the fraction.  Hence
\texttt{isNan} means exponent $2047$ and nonzero fraction.
\texttt{isInfinity} requires exponent $2047$, zero fraction, and adds the sign
bit exactly when its Boolean is true.  Since every carrier word is below
$2^{64}$, \texttt{isNegative} tests exactly whether bit 63 is set.
\texttt{signedMagnitude} requires a zero-sign-bit input and either leaves it
unchanged or adds $2^{63}$, so it applies the requested sign without changing
the exponent or fraction; this includes the two zeros and the two infinities.

Finally, the frozen source and extraction in
\evidenceref{reference/model-evidence/goal-vocabulary.txt} show that assembly
casts \texttt{p_biased : i32} to \texttt{u64}, shifts it by the f64
significand width 52, and ORs it with \texttt{m}.  For every signed field value
$p$, sign extension to a 64-bit word has unsigned value
$(p\mathbin{\mathrm{emod}}2^{64}).\mathit{toNat}$: it is $p$ for
$p\ge0$ and $2^{64}+p$ for $p<0$.  For every such cast word, shifting left by
52 is multiplication by $2^{52}$ modulo $2^{64}$, by the complete U64 shift
semantics in \evidenceref{reference/model-evidence/u64-shl.txt}.  The
\texttt{Nat.lor} of that result with the unrestricted U64 mantissa has exactly
the per-bit disjunction of the Rust U64 OR, by
\evidenceref{reference/model-evidence/u64-bitor.txt}.  Therefore
\texttt{assembledWord} is the exact source cast/shift/OR word for every
unrestricted \texttt{BiasedFp}; no exponent-range or nonoverlap premise has
been introduced.
\end{proof}
\begin{goalproof}{parser_totality}The premise \texttt{sourceString} is exactly the complete configured Rust-string domain, and \texttt{bytes} retains its ordered bytes.  This vocabulary makes no termination, panic, or \texttt{Result} claim; those remain with the dispatcher operation and totality theorem. The obligation's A bound is on complete string length, not on any shortened body.\end{goalproof}
\begin{goalproof}{parser_numeric_acceptance}On the exact Rust-string domain, \texttt{validNumeric} plus complete rendering is exactly the whole-input numeric grammar.  Normal return and the public \texttt{Ok} discriminant remain with the parser operation. The original acceptance domain has complete string length at most A.\end{goalproof}
\begin{goalproof}{parser_invalid_rejection}On the exact Rust-string domain, the \texttt{none} classification is precisely the complement of both complete grammars.  Normal return and the public \texttt{Err} value remain with the parser operation. The original rejection domain has complete string length at most A.\end{goalproof}
\begin{goalproof}{parser_nan_acceptance}On the exact Rust-string domain, \texttt{specialLiteral} gives exactly the optionally signed case-insensitive \texttt{nan} grammar and \texttt{isNan} gives exactly the exponent-all-ones, nonzero-fraction words.  Acceptance and the returned payload are operation facts.\end{goalproof}
\begin{goalproof}{parser_infinity}On the exact Rust-string domain, the infinity branch of \texttt{specialLiteral} retains the optional lexical sign and \texttt{isInfinity} gives the corresponding signed infinity word.  Acceptance and production of that word remain parser facts.\end{goalproof}
\begin{goalproof}{parser_non_nan_results}The vocabulary preserves the exact NaN-literal grammar and raw-word NaN predicate on the complete Rust-string domain.  The claim that every other successful execution avoids that predicate remains the parser theorem, not an assumption here.\end{goalproof}
\begin{goalproof}{parser_numeric_sign}The numeric grammar retains \texttt{lexicalNegative}, and \texttt{signedMagnitude} applies that Boolean even to zero and infinity.  The connection to every successful parser result remains operation behavior.\end{goalproof}
\begin{goalproof}{parser_signed_zero}The exact numeric magnitude can be zero, and \texttt{signedMagnitude} maps its zero word to positive or negative zero according to \texttt{lexicalNegative}.  Acceptance and returned-word selection remain parser facts.\end{goalproof}
\begin{goalproof}{parser_exact_rounding}The exact magnitude uses every significand digit and the unbounded mathematical exponent, while \texttt{roundsMagnitude} is the full binary64 magnitude relation.  Parser acceptance and selection of a related word remain operation behavior. The original exact-rounding obligation restricts complete string length to B without restricting exponent digits.\end{goalproof}
\begin{goalproof}{parser_selected_exponent}The unrestricted \texttt{assembledWord} relation adds no well-formedness premise to raw pairs.  Which pairs a successful trace selects and the asserted $0\ldots2047$ bound remain with trace and dispatcher preservation.\end{goalproof}
\begin{goalproof}{parser_selected_magnitude_sign}The unrestricted assembly relation identifies the source word and \texttt{isNegative} reads its sign bit exactly.  Successful trace selection and the proof that selected magnitudes have clear sign bits remain with the dispatcher.\end{goalproof}
\begin{goalproof}{dispatch_abstract_composition}The abstract contracts use exactly these classification, exact/accumulated value, rounding, signing, and assembly meanings on the complete Rust-string domain.  Existence of components and the dispatcher's conditional behavior remain with the contract and composition nodes. The original composition uses A-bounded complete strings and lexical slices, and B-bounded exact transport, retaining full-domain/on-normal conversion laws.\end{goalproof}
\begin{goalproof}{dispatch_component_compliance}Whole inputs use the exact Rust-string domain; every helper slice uses the exact arbitrary-byte $\mathtt{isize::MAX}$ domain of \noderef{SourceValidByteSlice}.  Call-site preconditions, actual component behavior, returned values, and trace guards remain with their operation-preservation owners. The original compliance separates A-bounded reached calls and lexical realization from B-exact transport and full-domain normal refinement.\end{goalproof}
\begin{goalproof}{parser_accumulated_rounding}On the exact Rust-string domain, \texttt{accumulatedMagnitude} retains every significand digit and uses exactly the source threshold fold.  Acceptance and production of a related target remain parser behavior. The original diagnostic restricts complete string length to A.\end{goalproof}
\begin{goalproof}{parser_equal_target_rounding}Both exact and accumulated magnitudes use the same preserved rounding relation and sign relation.  The goal's equality hypothesis and conclusion are retained literally; no rounding uniqueness is assumed here. The original bridge restricts complete string length to A and retains its equality-of-targets premise.\end{goalproof}
\begin{goalproof}{number_helper_acceptance}The helper ranges over the exact arbitrary-byte $\mathtt{isize::MAX}$ slice domain of \noderef{SourceValidByteSlice}.  An unsigned numeric literal is represented by \texttt{validNumeric} and \texttt{renderNumeric} with leading sign \texttt{none}; normal return and \texttt{Some} remain numeric-helper behavior. The original acceptance domain also requires nonemptiness and slice length at most A.\end{goalproof}
\begin{goalproof}{number_helper_rejection}The helper ranges over the exact arbitrary-byte $\mathtt{isize::MAX}$ slice domain of \noderef{SourceValidByteSlice}, with no UTF-8 premise.  Failure of the unsigned numeric grammar is exact; normal return and \texttt{None} remain numeric-helper behavior. The original rejection domain also requires nonemptiness and slice length at most A.\end{goalproof}
\begin{goalproof}{number_helper_record_bounds}The exact arbitrary-byte $\mathtt{isize::MAX}$ helper domain is \noderef{SourceValidByteSlice}, and \texttt{bytes} adds no content restriction.  Nonemptiness, normal return, \texttt{Some}, record negativity, and the mantissa bound remain with numeric-helper preservation.\end{goalproof}
\begin{goalproof}{number_helper_accumulated_value}On the exact arbitrary-byte $\mathtt{isize::MAX}$ domain of \noderef{SourceValidByteSlice}, the vocabulary gives the unsigned grammar, full-significand accumulated magnitude, and unsigned Decimal-record magnitude.  The returned record, its \texttt{many_digits} branch, equality, and half-open bounds remain helper behavior. The original representation obligation restricts this unsigned slice to length at most A.\end{goalproof}
\begin{goalproof}{special_helper_infinity}On the exact arbitrary-byte $\mathtt{isize::MAX}$ domain of \noderef{SourceValidByteSlice}, the unsigned keyword is \texttt{specialLiteral (bytes s) none false}.  The separate Boolean argument is not a lexical sign and is used only in \texttt{isInfinity} for the returned word; normal return and \texttt{Some} remain special-helper behavior.\end{goalproof}
\begin{goalproof}{special_helper_nan}On the exact arbitrary-byte $\mathtt{isize::MAX}$ domain of \noderef{SourceValidByteSlice}, the unsigned keyword is \texttt{specialLiteral (bytes s) none true}; the separate sign argument does not alter that grammar.  \texttt{isNan} accepts every NaN payload, while normal return and \texttt{Some} remain special-helper behavior.\end{goalproof}
\begin{goalproof}{special_helper_rejection}On the exact arbitrary-byte $\mathtt{isize::MAX}$ domain of \noderef{SourceValidByteSlice}, failure of all three \texttt{specialLiteral} cases with sign \texttt{none} is exactly failure of the unsigned keyword grammar, independently of the separate sign argument.  Normal return and \texttt{None} remain special-helper behavior.\end{goalproof}
\begin{goalproof}{native_correct_or_defer}For every unrestricted Decimal record $d$, \texttt{decimalMagnitude d} is its unsigned $\mathit{mantissa}\,10^{\mathit{exponent}}$, and \texttt{signedMagnitude d.negative} uses the Decimal record sign, not a lexical sign.  Normal return, \texttt{None}/\texttt{Some}, \texttt{many_digits}, and both native paths remain native-operation behavior.\end{goalproof}
\begin{goalproof}{integer_correct_or_defer}The real $w10^q$, nonnegative rounding relation, and unrestricted pair assembly have their exact stated meanings.  Normal return, negative-exponent deferral, and which pair is produced remain integer-tier behavior.\end{goalproof}
\begin{goalproof}{slow_accumulated_rounding}On the exact arbitrary-byte $\mathtt{isize::MAX}$ domain of \noderef{SourceValidByteSlice}, unsigned grammar uses leading sign \texttt{none}, accumulated magnitude retains the full significand, and rounding plus assembly have their exact meanings.  Normal return and production of a raw pair remain slow-operation behavior.\end{goalproof}
\begin{goalproof}{assembly_correspondence}For every unrestricted raw pair, \texttt{assembledWord} is exactly the Rust i32-to-u64 cast modulo $2^{64}$, 52-bit left shift modulo $2^{64}$, and U64 bitwise OR.  Normal return and the final \texttt{from_u64_bits} observation remain with the assembly operation and float binding.\end{goalproof}
\begin{goalproof}{classification_totality}The relation is available on every finite natural-number byte list: its numeric and special branches retain all witnesses, and its invalid branch is their exact complement.  The principal existence theorem is not assumed by this preservation application.\end{goalproof}
\begin{goalproof}{classification_determinism}The complete classification relation, including every numeric lexeme and special sign/kind witness, is preserved exactly.  No uniqueness of classification or parsed content is asserted here; both remain the unresolved principal theorem obligation.\end{goalproof}
\begin{goalproof}{classification_significand_digit}Every \texttt{validNumeric} lexeme explicitly has a nonempty integer list or a present nonempty fraction list.  The principal grammar consequence is left to its theorem proof.\end{goalproof}
\begin{goalproof}{rounding_totality}The rounding relation has exactly the nonnegative-real, finite/subnormal/infinite candidate, distance, tie, and overflow meanings required by the GOAL.  This application does not assert existence of a target; totality remains the unresolved principal theorem.\end{goalproof}
\begin{goalproof}{rounding_determinism}The rounding relation preserves minimum distance, selected-word evenness at every tie, and the exact overflow midpoint.  It does not assert that two related words are equal; uniqueness remains the unresolved principal theorem obligation.\end{goalproof}
\begin{goalproof}{exponent_value_agreement}Exact and accumulated magnitudes share the identical all-significand-digit and fraction-count formula and differ only in the two explicitly derived exponent folds.  Their conditional agreement remains the theorem obligation.\end{goalproof}
\end{preservation}
