\begin{definition}
The model carrier $\mathsf{F64}$ is the set of unsigned 64-bit words.  A word
records the complete IEEE-754 binary64 representation, including its sign bit,
exponent, significand, signed-zero distinction, infinities, and NaN payload.
\end{definition}
\begin{preservation}
\begin{claim}
Representing a Rust \texttt{f64} by its complete \texttt{to\_bits} word loses
no source encoding or public bit-level observation: on the full 64-bit domain,
including every NaN encoding, \texttt{from\_bits} interprets every carrier word
and is inverse to \texttt{to\_bits} at the level of raw encodings.
\end{claim}
\begin{proof}
The frozen \texttt{f64} specialization sets \texttt{Int = u64}; its
\texttt{to\_bits} method calls \texttt{f64::to\_bits}, and its
\texttt{from\_u64\_bits} method passes the complete \texttt{u64} to
\texttt{f64::from\_bits}.  Rust implements those two operations as the opposite
same-size transmutations and explicitly specifies exact-bit preservation,
including NaN payloads.  The exact excerpts, hashes, tool identities, and
reproduction commands are recorded in
\evidenceref{reference/model-evidence/float-carriers.txt}.

For the first inverse direction, take any source \texttt{f64} with raw memory
word $w$.  Transmutation by \texttt{to\_bits} returns that same $w$, and
transmutation of $w$ by \texttt{from\_bits} creates an \texttt{f64} with the
same raw memory word.  Thus
\texttt{from\_bits(to\_bits(x))} has exactly the encoding of $x$; this is a
bitwise statement and does not incorrectly use Rust floating-point equality on
NaNs.  For the other direction, take any of the $2^{64}$ words $w$.
\texttt{from\_bits(w)} creates the float encoding $w$, so applying
\texttt{to\_bits} returns exactly $w$.  This includes all words with an
all-ones exponent and nonzero fraction, regardless of sign, quiet/signaling
bit, or payload.

The pinned Aeneas declarations make \texttt{Std.U64} a structure with one
\texttt{BitVec 64} field, and every such bit vector is admitted.  Therefore the
model carrier contains exactly the words in the two inverse arguments.  The
carrier correspondence retains every raw encoding; meanings of classification
and operations on those words are supplied by their separate bindings.
\end{proof}
\begin{goalproof}{parser_totality}The carrier is used only to represent a float after one is returned; it changes neither source control flow nor the distinction between panic, normal return, and parsing error.
\end{goalproof}
\begin{goalproof}{parser_numeric_acceptance}Whether the source returns \texttt{Ok} is unchanged, and any float inside such a result has exactly one retained raw word.
\end{goalproof}
\begin{goalproof}{parser_invalid_rejection}Whether the source returns \texttt{Err} is unchanged; an error contains no float to which this carrier choice could apply.
\end{goalproof}
\begin{goalproof}{parser_nan_acceptance}For any returned float, the carrier retains its exponent and fraction fields exactly, while \noderef{ModelF64Classify} supplies the source-correct classification of that word as NaN.
\end{goalproof}
\begin{goalproof}{parser_infinity}The lexical sign remains a separate source-input observation, and the returned infinity's sign, exponent, and fraction are retained in its word as specified by \noderef{DecimalGoalVocabularyDefault}.
\end{goalproof}
\begin{goalproof}{parser_non_nan_results}For any returned float, the exponent/fraction NaN test is an exact word observation under \noderef{DecimalGoalVocabularyDefault}, and \noderef{ModelF64Classify} supplies the matching source classification.
\end{goalproof}
\begin{goalproof}{parser_numeric_sign}The lexical sign is a distinct source-input observation left unchanged by the carrier; only the returned float's negativity is represented by the retained high bit, as specified by \noderef{DecimalGoalVocabularyDefault}.
\end{goalproof}
\begin{goalproof}{parser_signed_zero}Whether the numeric input denotes zero and its lexical sign are unchanged input observations; the returned positive- and negative-zero encodings remain distinct retained words under \noderef{DecimalGoalVocabularyDefault}.
\end{goalproof}
\begin{goalproof}{parser_exact_rounding}The exact decimal input value is unchanged; both its binary64 rounding target and the returned float are observed as exact words under \noderef{DecimalGoalVocabularyDefault}.
\end{goalproof}
\begin{goalproof}{parser_selected_exponent}The selected raw pair's biased-exponent field is a trace observation that does not use the float carrier, so this choice is noninterfering.
\end{goalproof}
\begin{goalproof}{parser_selected_magnitude_sign}The selected raw pair is unchanged, and its assembled magnitude and clear-high-bit requirement are exact word observations under \noderef{DecimalGoalVocabularyDefault}.
\end{goalproof}
\begin{goalproof}{dispatch_abstract_composition}The component contracts, source inputs, and control choices are unchanged; any component or dispatcher float result is represented by its complete word, including the word-valued classification, rounding, and output-sign observations of \noderef{DecimalGoalVocabularyDefault}.
\end{goalproof}
\begin{goalproof}{dispatch_component_compliance}Actual component calls and their input observations are unchanged; their returned floats and preserved rounding targets are compared as complete words under \noderef{DecimalGoalVocabularyDefault}.
\end{goalproof}
\begin{goalproof}{parser_accumulated_rounding}The accumulated decimal value and lexical sign remain separate input observations; the rounding target and returned float are retained words under \noderef{DecimalGoalVocabularyDefault}.
\end{goalproof}
\begin{goalproof}{parser_equal_target_rounding}The exact and accumulated values are unchanged, while their target equality and the returned result are equality and observation of complete words under \noderef{DecimalGoalVocabularyDefault}.
\end{goalproof}
\begin{goalproof}{number_helper_acceptance}This helper returns an optional Decimal record rather than a float, so its acceptance observation does not use this carrier.
\end{goalproof}
\begin{goalproof}{number_helper_rejection}This helper returns an optional Decimal record rather than a float, so its rejection observation does not use this carrier.
\end{goalproof}
\begin{goalproof}{number_helper_record_bounds}The record's \texttt{negative}, \texttt{mantissa}, and other fields are distinct source observations and do not use this float carrier.
\end{goalproof}
\begin{goalproof}{number_helper_accumulated_value}The unsigned input, Decimal-record fields, and accumulated mathematical value do not use this float carrier.
\end{goalproof}
\begin{goalproof}{special_helper_infinity}The helper's separate sign argument is left unchanged and is not identified with an output bit; the returned infinity's sign, exponent, and fraction are retained in its word under \noderef{DecimalGoalVocabularyDefault}.
\end{goalproof}
\begin{goalproof}{special_helper_nan}The helper's separate sign argument is left unchanged; every returned word is retained, and \noderef{ModelF64Classify} supplies its source-correct NaN classification.
\end{goalproof}
\begin{goalproof}{special_helper_rejection}A \texttt{None} result contains no float, and the input bytes and separate sign argument are unchanged by this carrier choice.
\end{goalproof}
\begin{goalproof}{native_correct_or_defer}The Decimal record's sign and magnitude fields remain distinct source-input observations; a rounding target and any \texttt{Some} float are retained as words under \noderef{DecimalGoalVocabularyDefault}.
\end{goalproof}
\begin{goalproof}{integer_correct_or_defer}The integer inputs and deferral condition are unchanged, while the raw-pair assembly used for a nondeferred result is an exact word operation under \noderef{DecimalGoalVocabularyDefault}.
\end{goalproof}
\begin{goalproof}{slow_accumulated_rounding}The unsigned input and accumulated value are unchanged, while the helper's raw-pair result is interpreted by the exact word assembly of \noderef{DecimalGoalVocabularyDefault}.
\end{goalproof}
\begin{goalproof}{assembly_correspondence}The input raw pair is unchanged, and its cast-shift-OR assembly is exactly a retained 64-bit word under \noderef{DecimalGoalVocabularyDefault}.
\end{goalproof}
\begin{goalproof}{classification_totality}This claim concerns classification of input byte lists, before any float result exists, so the float carrier is noninterfering.
\end{goalproof}
\begin{goalproof}{classification_determinism}This claim compares classifications and lexeme content of input byte lists, so the float carrier is noninterfering.
\end{goalproof}
\begin{goalproof}{classification_significand_digit}This grammar property concerns the input lexeme's digit lists and does not use the float carrier.
\end{goalproof}
\begin{goalproof}{rounding_totality}The nonnegative real input is unchanged, and the binary64 magnitude target is an exact nonnegative word under \noderef{DecimalGoalVocabularyDefault}.
\end{goalproof}
\begin{goalproof}{rounding_determinism}The real input is unchanged, and equality of two binary64 magnitude targets is equality of their complete words under \noderef{DecimalGoalVocabularyDefault}.
\end{goalproof}
\begin{goalproof}{exponent_value_agreement}The lexeme and its two mathematical values are unchanged, and equality of their rounding targets is complete-word equality under \noderef{DecimalGoalVocabularyDefault}.
\end{goalproof}
\end{preservation}
