\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}Every source \texttt{f64} intermediate and result in a parser execution has exactly one carrier word, and every carrier word represents a source \texttt{f64} encoding.  Thus this representation adds neither a restriction on those values nor a representation failure.  Panic versus normal return, \texttt{Ok} versus \texttt{Err}, floating-point operation behavior, and control choices are established by the separate operation-binding and dispatcher preservation owners, not by this bijection.
\end{goalproof}
\begin{goalproof}{parser_numeric_acceptance}Every source \texttt{f64} intermediate and result in a numeric parse has exactly one carrier word, and every carrier word represents a source \texttt{f64} encoding, so the representation adds no restriction or failure.  Normal return, production of \texttt{Ok}, operation behavior, and branch choices remain obligations of the separate operation-binding and dispatcher preservation owners.
\end{goalproof}
\begin{goalproof}{parser_invalid_rejection}Any source \texttt{f64} intermediate produced before rejection has exactly one carrier word, every carrier word is source-representable, and an \texttt{Err} payload itself contains no float.  Hence the carrier creates no representation restriction or failure; whether the parser returns normally with \texttt{Err}, and the operations and control choices leading there, are left to their separate preservation owners.
\end{goalproof}
\begin{goalproof}{parser_nan_acceptance}The bijection retains every source float's exponent and fraction bits exactly.  \noderef{DecimalGoalVocabularyDefault} defines the GOAL's NaN predicate directly by those fields, so its truth is preserved without appealing to a classification operation.  Normal return, \texttt{Ok}, and the operations constructing the result are left to their separate preservation owners.
\end{goalproof}
\begin{goalproof}{parser_infinity}The lexical sign is a separate input observation, while the bijection retains the returned float's sign, exponent, and fraction bits exactly.  \noderef{DecimalGoalVocabularyDefault} defines signed infinity directly by those fields, so that observation is preserved.  Return behavior and construction of the infinity are left to the separate operation bindings and dispatcher preservation.
\end{goalproof}
\begin{goalproof}{parser_non_nan_results}The bijection retains every source float's exponent and fraction bits exactly, and \noderef{DecimalGoalVocabularyDefault} defines the GOAL's NaN predicate directly by those fields.  Consequently the positive and negative results of that bit predicate are preserved without appealing to a classification operation.  Successful-return and operation behavior are left to their separate preservation owners.
\end{goalproof}
\begin{goalproof}{parser_numeric_sign}The lexical sign is a distinct input observation, and the bijection retains the returned float's sign bit exactly.  \noderef{DecimalGoalVocabularyDefault} defines negativity and application of a lexical sign directly on that bit, including for zero and infinity words.  Whether parsing succeeds and whether the source negation operation is selected and behaves correctly are left to their separate preservation owners.
\end{goalproof}
\begin{goalproof}{parser_signed_zero}The input's exact-zero property and lexical sign are separate observations, while the bijection retains all bits of the returned float and therefore keeps the positive- and negative-zero encodings distinct.  \noderef{DecimalGoalVocabularyDefault} defines zero magnitude and its applied sign directly on those bits.  Acceptance, return behavior, and sign-operation behavior are left to their separate preservation owners.
\end{goalproof}
\begin{goalproof}{parser_exact_rounding}Every source \texttt{f64} intermediate or result has exactly one retained word, and every carrier word, including every binary64 rounding target of \noderef{DecimalGoalVocabularyDefault}, is representable by a source \texttt{f64}.  Thus comparison with the exact target introduces no carrier restriction or representation failure.  Successful return and rounding-operation correctness are left to their separate preservation owners.
\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.  Every float later assembled from such a pair nevertheless has exactly one carrier word and every such word is source-representable, so representation adds no failure; pair selection and assembly behavior are left to their separate preservation owners.
\end{goalproof}
\begin{goalproof}{parser_selected_magnitude_sign}The bijection admits every assembled word and retains its high sign bit exactly.  \noderef{DecimalGoalVocabularyDefault} defines unrestricted raw-pair assembly and the clear-sign observation directly on that word, so the carrier adds no restriction or representation failure.  Selection of the pair and correctness of the assembly operation are left to their separate preservation owners.
\end{goalproof}
\begin{goalproof}{dispatch_abstract_composition}Every source \texttt{f64} intermediate and result used by the native arithmetic, assembly, sign operation, and dispatcher has exactly one carrier word, and every carrier word represents a source \texttt{f64} encoding.  Hence the representation adds no restriction or representation failure to any contract implementation.  Component behavior, normal returns, operation semantics, and dispatcher control choices are left to their separate preservation owners.
\end{goalproof}
\begin{goalproof}{dispatch_component_compliance}Every source \texttt{f64} intermediate and result of the actual native, assembly, negation, and dispatcher calls has exactly one carrier word, and every carrier word is source-representable.  Thus representing component values and rounding targets introduces no restriction or representation failure.  Agreement of actual calls with their contracts, normal-return and deferral distinctions, operation behavior, and call-site control choices are left to the separate operation-binding and dispatcher preservation owners.
\end{goalproof}
\begin{goalproof}{parser_accumulated_rounding}Every source \texttt{f64} intermediate and result has exactly one retained word, and every accumulated-value rounding target of \noderef{DecimalGoalVocabularyDefault} is a carrier word representable by a source \texttt{f64}.  Hence target comparison adds no representation restriction or failure.  Successful return and rounding correctness are left to their separate preservation owners.
\end{goalproof}
\begin{goalproof}{parser_equal_target_rounding}Each source \texttt{f64} intermediate and result has exactly one retained word, and every exact- or accumulated-value target of \noderef{DecimalGoalVocabularyDefault} is source-representable.  Equality of targets and observation of the result are therefore exact complete-word observations with no representation restriction or failure.  Successful return, rounding, and lexical-sign application are left to their separate preservation owners.
\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 not identified with an output bit, while the bijection retains the returned float's sign, exponent, and fraction bits exactly.  \noderef{DecimalGoalVocabularyDefault} defines signed infinity directly by those fields, so that observation is preserved.  Normal return, \texttt{Some}, and construction of the infinity are left to their separate preservation owners.
\end{goalproof}
\begin{goalproof}{special_helper_nan}The helper's separate sign argument is an independent input, and the bijection retains every returned float's exponent and fraction bits exactly.  \noderef{DecimalGoalVocabularyDefault} defines the GOAL's NaN predicate directly by those fields, so its truth is preserved without appealing to a classification operation.  Normal return, \texttt{Some}, and result construction are left to their separate preservation owners.
\end{goalproof}
\begin{goalproof}{special_helper_rejection}A \texttt{None} result contains no float, and any source \texttt{f64} intermediate has exactly one carrier word with no representation failure.  The carrier claim does not establish that the helper returns normally with \texttt{None}; that outcome and the branch behavior leading to it are left to their separate preservation owners.
\end{goalproof}
\begin{goalproof}{native_correct_or_defer}Every source \texttt{f64} input, arithmetic intermediate, and \texttt{Some} result in either native path has exactly one carrier word, and every carrier word, including each rounding target of \noderef{DecimalGoalVocabularyDefault}, is source-representable.  Thus the carrier adds no value restriction or representation failure.  Multiplication, division, sign application, normal return, and \texttt{None}/\texttt{Some} behavior are left to their separate operation-binding preservation owners.
\end{goalproof}
\begin{goalproof}{integer_correct_or_defer}Every unrestricted raw-pair assembly word of \noderef{DecimalGoalVocabularyDefault} is admitted by the carrier and represents a source \texttt{f64}, so interpreting a nondeferred pair adds no restriction or representation failure.  The integer computation, deferral test, and correctness of the assembly operation are left to their separate preservation owners.
\end{goalproof}
\begin{goalproof}{slow_accumulated_rounding}Every unrestricted raw-pair assembly word of \noderef{DecimalGoalVocabularyDefault} is admitted by the carrier and represents a source \texttt{f64}; its bits are retained exactly for comparison with the accumulated-value target.  Thus interpretation adds no restriction or representation failure.  Normal return, raw-pair computation, and assembly behavior are left to their separate preservation owners.
\end{goalproof}
\begin{goalproof}{assembly_correspondence}Every cast-shift-OR word described by \noderef{DecimalGoalVocabularyDefault} is admitted by the carrier and represents a source \texttt{f64}, and the returned float has that unique retained word.  Hence the carrier adds no well-formedness condition or representation failure.  Normal return and correctness of the cast, shift, OR, and \texttt{from\_bits} operations are left to their separate operation-binding preservation owners.
\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}Every binary64 magnitude target word of \noderef{DecimalGoalVocabularyDefault} is admitted by the carrier and represents a source \texttt{f64}, so the carrier places no additional restriction on the target relation.  Existence of a target is a property of that separate mathematical relation, not a consequence of the carrier bijection.
\end{goalproof}
\begin{goalproof}{rounding_determinism}Every binary64 magnitude target of \noderef{DecimalGoalVocabularyDefault} is a complete carrier word representing a source \texttt{f64}; the bijection neither identifies distinct words nor excludes any word.  Thus target equality is preserved exactly, while uniqueness itself remains a property of the separate rounding relation.
\end{goalproof}
\begin{goalproof}{exponent_value_agreement}The exact- and accumulated-value targets of \noderef{DecimalGoalVocabularyDefault} are complete carrier words, every such word is source-representable, and the bijection neither identifies distinct words nor excludes any word.  Consequently equality of their target words is preserved without a representation restriction; agreement of the mathematical values and targets is left to the separate vocabulary relation.
\end{goalproof}
\end{preservation}
