\begin{definition}
A \emph{decimal literal witness} records a finite byte string together with its
optional leading sign, integral and fractional ASCII digits, optional decimal
point, optional \texttt{e}/\texttt{E} marker, optional exponent sign, and
exponent digits.  Every recorded digit lies in $0,\ldots,9$, the significand
has at least one digit, fractional digits occur only with a point, and exponent
digits are nonempty exactly when an exponent marker occurs.  Re-encoding these
fields gives the recorded bytes.  Its lexical sign is negative exactly for a
leading minus.  Its mathematical exponent is the signed integer represented by
all exponent digits.  Its accumulated exponent folds those same digits from
zero, performing $a\mapsto10a+d$ only while the prior accumulator is below
$65536$, and then applies the exponent sign.  The witness's exact and
accumulated values use all significand digits, subtract the fractional digit
count from the corresponding exponent, multiply by the resulting power of ten,
and apply the lexical sign.
\end{definition}
\begin{preservation}
\begin{claim}
The witness describes exactly the numeric grammar and the two decimal-value
notions fixed in \texttt{GOAL.md}; it neither accepts extra bytes nor identifies
the unbounded mathematical exponent with the source's bounded accumulator.
\end{claim}
\begin{proof}
The byte reconstruction has precisely the optional sign, digit-bearing
significand with at most one point, and optional digit-bearing exponent from the
reference grammar.  The two exponent equations respectively use the ordinary
base-ten fold and the guarded fold in \texttt{parse\_scientific}; both consume
every digit.  The value equations retain every significand digit and adjust for
the decimal point.  These facts follow directly from the definition and the
frozen grammar and loop recorded in
\evidenceref{reference/model-evidence/decimal-specification.txt}.
\end{proof}
\begin{goalproof}{parser_totality}The witness only classifies inputs and adds no execution premise.
\end{goalproof}
\begin{goalproof}{parser_numeric_acceptance}Existence of a witness is exactly the numeric-literal domain.
\end{goalproof}
\begin{goalproof}{parser_invalid_rejection}Nonexistence of numeric and special witnesses expresses being outside the grammar.
\end{goalproof}
\begin{goalproof}{parser_nan_acceptance}Numeric witnesses are disjoint from the separately defined special grammar.
\end{goalproof}
\begin{goalproof}{parser_infinity}Numeric witnesses are disjoint from the separately defined special grammar.
\end{goalproof}
\begin{goalproof}{parser_non_nan_results}The witness identifies exactly which successful inputs are numeric rather than NaN literals.
\end{goalproof}
\begin{goalproof}{parser_numeric_sign}Its negative field is precisely the literal's lexical sign.
\end{goalproof}
\begin{goalproof}{parser_signed_zero}Its exact value and lexical sign retain the two observations needed for signed zero.
\end{goalproof}
\begin{goalproof}{parser_exact_rounding}Its exact value is the ordinary unbounded mathematical decimal value.
\end{goalproof}
\begin{goalproof}{parser_selected_exponent}The witness supplies exactly the successful numeric input domain for trace observations.
\end{goalproof}
\begin{goalproof}{parser_selected_magnitude_sign}The witness supplies exactly the successful numeric input domain for trace observations.
\end{goalproof}
\begin{goalproof}{dispatch_abstract_composition}Lexical contracts can quantify over the complete numeric grammar and both value notions.
\end{goalproof}
\begin{goalproof}{dispatch_component_compliance}The actual lexical component can be compared with the witness byte-for-byte.
\end{goalproof}
\begin{goalproof}{parser_accumulated_rounding}Its accumulated value uses the source's guarded exponent fold while retaining all significand digits.
\end{goalproof}
\begin{goalproof}{parser_equal_target_rounding}Both distinct values are available on the same witness for the bridge premise.
\end{goalproof}
\begin{goalproof}{number_helper_acceptance}Requiring no leading sign gives exactly an unsigned numeric literal.
\end{goalproof}
\begin{goalproof}{number_helper_rejection}Failure of an unsigned witness gives exactly the helper's rejection domain.
\end{goalproof}
\begin{goalproof}{number_helper_record_bounds}The witness does not restrict arbitrary returned records; the theorem retains its nonempty-slice domain.
\end{goalproof}
\begin{goalproof}{number_helper_accumulated_value}The accumulated value and all significand digits are explicit on the witness.
\end{goalproof}
\begin{goalproof}{special_helper_infinity}Numeric syntax is separate from the unsigned special-keyword domain.
\end{goalproof}
\begin{goalproof}{special_helper_nan}Numeric syntax is separate from the unsigned special-keyword domain.
\end{goalproof}
\begin{goalproof}{special_helper_rejection}Numeric witnesses do not enlarge the special helper's keyword set.
\end{goalproof}
\begin{goalproof}{native_correct_or_defer}This goal uses a decimal record directly, so the literal witness is noninterfering.
\end{goalproof}
\begin{goalproof}{integer_correct_or_defer}This goal quantifies directly over an \texttt{i64} and \texttt{u64}, so the witness is noninterfering.
\end{goalproof}
\begin{goalproof}{slow_accumulated_rounding}An unsigned witness provides the full-significand accumulated value of the helper input.
\end{goalproof}
\begin{goalproof}{assembly_correspondence}Assembly is independent of literal syntax.
\end{goalproof}
\begin{goalproof}{classification_totality}Witness existence is the numeric arm of the exhaustive classification.
\end{goalproof}
\begin{goalproof}{classification_determinism}All parsed content is recorded, so uniqueness can be stated as witness equality.
\end{goalproof}
\begin{goalproof}{classification_significand_digit}The nonempty-significand field states the required digit property.
\end{goalproof}
\begin{goalproof}{rounding_totality}Literal syntax is independent of existence of a binary64 target.
\end{goalproof}
\begin{goalproof}{rounding_determinism}Literal syntax is independent of uniqueness of a binary64 target.
\end{goalproof}
\begin{goalproof}{exponent_value_agreement}The two explicit exponents and two values are retained separately for the agreement premise and conclusion.
\end{goalproof}
\end{preservation}
