Primary evidence for the F64 raw-word carrier

Scope
-----
This record supports only the representation claim that the source f64
specialization and the authored F64 carrier have the same set of 64-bit
encodings. It does not supply arithmetic or classification semantics.

All commands below were run from:

  /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0001/dec2flt-r0001

Tool and input identities
-------------------------
Command:

  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc --version --verbose

Raw result:

  rustc 1.98.0-nightly (14210df0e 2026-05-31)
  binary: rustc
  commit-hash: 14210df0e27ccd7d9e6a05b8085cbd438e4bbc65
  commit-date: 2026-05-31
  host: x86_64-unknown-linux-gnu
  release: 1.98.0-nightly
  LLVM version: 22.1.6

Command:

  /home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin/lean --version

Raw result:

  Lean (version 4.30.0-rc2, x86_64-unknown-linux-gnu, commit 3dc1a088b6d2d8eafe25a7cd7ec7b58d731bd7cc, Release)

Command:

  git -C /home/leanagent/pv_spike/tools/aeneas rev-parse HEAD

Raw result:

  fa699427cdfa8f604b891fb0223ef42883dd7dc4

Command:

  git -C /home/leanagent/pv_spike/tools/aeneas status --short

Raw result: empty (the pinned Aeneas checkout was clean).

Command:

  sha256sum upstream/traits.rs modeling-input/manifest.json \
    /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/num/f64.rs \
    /home/leanagent/pv_spike/tools/aeneas/backends/lean/Aeneas/Std/Scalar/Core.lean

Raw result:

  66a02c44d72dfcc3ddae7e34a290e390dabaf98c5911b283d2d97f2f0075a44e  upstream/traits.rs
  2fc182c0c7acccad30c449ca349b999759b84e8ed4ec9d590e8295e43eeec077  modeling-input/manifest.json
  84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/num/f64.rs
  a1c26c125a59bba635a2b2c170186ce07168c43308bcf386d508ebd77f01520e  /home/leanagent/pv_spike/tools/aeneas/backends/lean/Aeneas/Std/Scalar/Core.lean

The manifest's effective_tools entry selects the rustc and Lean paths above,
and its effective_tools.lean_paths begins with the displayed Aeneas checkout.

Frozen f64 specialization
-------------------------
Command:

  nl -ba upstream/traits.rs | sed -n '264,295p'

Raw result:

     264 impl Float for f64 {
     265     type Int = u64;
     266
     267     const INFINITY: Self = Self::INFINITY;
     268     const NEG_INFINITY: Self = Self::NEG_INFINITY;
     269     const NAN: Self = Self::NAN;
     270     const NEG_NAN: Self = -Self::NAN;
     271
     272     const BITS: u32 = 64;
     273     const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
     274     const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
     275     const SIG_MASK: Self::Int = Self::MANTISSA_MASK;
     276
     277     const MIN_EXPONENT_ROUND_TO_EVEN: i32 = -4;
     278     const MAX_EXPONENT_ROUND_TO_EVEN: i32 = 23;
     279     const SMALLEST_POWER_OF_TEN: i32 = -342;
     280
     281     fn to_bits(self) -> Self::Int {
     282         self.to_bits()
     283     }
     284
     285     fn classify(self) -> FpCategory {
     286         self.classify()
     287     }
     288 }
     289
     290 impl FloatExt for f64 {
     291     #[inline]
     292     fn from_u64_bits(v: u64) -> Self {
     293         f64::from_bits(v)
     294     }
     295 }

Thus the exact specialization boundary uses u64 in both directions: its
observation calls f64::to_bits, and its constructor calls f64::from_bits with
the complete u64, without a mask or numeric cast.

Pinned Rust exact-bit operations
--------------------------------
The source path was obtained with this command:

  printf '%s/lib/rustlib/src/rust/library/core/src/num/f64.rs\n' \
    "$(/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc --print sysroot)"

Raw result:

  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/num/f64.rs

Command (with F equal to that raw result):

  nl -ba "$F" | sed -n '1201,1273p'

Raw result:

    1201     /// Raw transmutation to `u64`.
    1202     ///
    1203     /// This is currently identical to `transmute::<f64, u64>(self)` on all platforms.
    1204     ///
    1205     /// See [`from_bits`](Self::from_bits) for some discussion of the
    1206     /// portability of this operation (there are almost no issues).
    1207     ///
    1208     /// Note that this function is distinct from `as` casting, which attempts to
    1209     /// preserve the *numeric* value, and not the bitwise value.
    1210     ///
    1211     /// # Examples
    1212     ///
    1213     /// ```
    1214     /// assert!((1f64).to_bits() != 1f64 as u64); // to_bits() is not casting!
    1215     /// assert_eq!((12.5f64).to_bits(), 0x4029000000000000);
    1216     /// ```
    1217     #[must_use = "this returns the result of the operation, \
    1218                   without modifying the original"]
    1219     #[stable(feature = "float_bits_conv", since = "1.20.0")]
    1220     #[rustc_const_stable(feature = "const_float_bits_conv", since = "1.83.0")]
    1221     #[allow(unnecessary_transmutes)]
    1222     #[inline]
    1223     pub const fn to_bits(self) -> u64 {
    1224         // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
    1225         unsafe { mem::transmute(self) }
    1226     }
    1227
    1228     /// Raw transmutation from `u64`.
    1229     ///
    1230     /// This is currently identical to `transmute::<u64, f64>(v)` on all platforms.
    1231     /// It turns out this is incredibly portable, for two reasons:
    1232     ///
    1233     /// * Floats and Ints have the same endianness on all supported platforms.
    1234     /// * IEEE 754 very precisely specifies the bit layout of floats.
    1235     ///
    1236     /// However there is one caveat: prior to the 2008 version of IEEE 754, how
    1237     /// to interpret the NaN signaling bit wasn't actually specified. Most platforms
    1238     /// (notably x86 and ARM) picked the interpretation that was ultimately
    1239     /// standardized in 2008, but some didn't (notably MIPS). As a result, all
    1240     /// signaling NaNs on MIPS are quiet NaNs on x86, and vice-versa.
    1241     ///
    1242     /// Rather than trying to preserve signaling-ness cross-platform, this
    1243     /// implementation favors preserving the exact bits. This means that
    1244     /// any payloads encoded in NaNs will be preserved even if the result of
    1245     /// this method is sent over the network from an x86 machine to a MIPS one.
    1246     ///
    1247     /// If the results of this method are only manipulated by the same
    1248     /// architecture that produced them, then there is no portability concern.
    1249     ///
    1250     /// If the input isn't NaN, then there is no portability concern.
    1251     ///
    1252     /// If you don't care about signaling-ness (very likely), then there is no
    1253     /// portability concern.
    1254     ///
    1255     /// Note that this function is distinct from `as` casting, which attempts to
    1256     /// preserve the *numeric* value, and not the bitwise value.
    1257     ///
    1258     /// # Examples
    1259     ///
    1260     /// ```
    1261     /// let v = f64::from_bits(0x4029000000000000);
    1262     /// assert_eq!(v, 12.5);
    1263     /// ```
    1264     #[stable(feature = "float_bits_conv", since = "1.20.0")]
    1265     #[rustc_const_stable(feature = "const_float_bits_conv", since = "1.83.0")]
    1266     #[must_use]
    1267     #[inline]
    1268     #[allow(unnecessary_transmutes)]
    1269     pub const fn from_bits(v: u64) -> Self {
    1270         // It turns out the safety issues with sNaN were overblown! Hooray!
    1271         // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
    1272         unsafe { mem::transmute(v) }
    1273     }

These are opposite same-size transmutations, and the source explicitly chooses
exact bit preservation for NaNs, including their payloads.

Pinned Aeneas 64-bit carrier
----------------------------
Command:

  nl -ba /home/leanagent/pv_spike/tools/aeneas/backends/lean/Aeneas/Std/Scalar/Core.lean \
    | sed -n '27,34p;45,53p;65,69p;650,656p;1089,1094p'

Raw result:

      27 /-- Kinds of unsigned integers -/
      28 inductive UScalarTy where
      29 | Usize
      30 | U8
      31 | U16
      32 | U32
      33 | U64
      34 | U128
      45 @[implicit_reducible]
      46 def UScalarTy.numBits (ty : UScalarTy) : Nat :=
      47   match ty with
      48   | Usize => System.Platform.numBits
      49   | U8 => 8
      50   | U16 => 16
      51   | U32 => 32
      52   | U64 => 64
      53   | U128 => 128
      65 /-- Unsigned integer -/
      66 structure UScalar (ty : UScalarTy) where
      67   /- The internal representation is a bit-vector -/
      68   bv : BitVec ty.numBits
      69 deriving Repr, BEq, DecidableEq
     650 /-! The scalar types. -/
     651 abbrev  Usize := UScalar .Usize
     652 abbrev  U8    := UScalar .U8
     653 abbrev  U16   := UScalar .U16
     654 abbrev  U32   := UScalar .U32
     655 abbrev  U64   := UScalar .U64
     656 abbrev  U128  := UScalar .U128
    1089 abbrev U8.bv (x : U8)   : BitVec 8 := UScalar.bv x
    1090 abbrev U16.bv (x : U16) : BitVec 16 := UScalar.bv x
    1091 abbrev U32.bv (x : U32) : BitVec 32 := UScalar.bv x
    1092 abbrev U64.bv (x : U64) : BitVec 64 := UScalar.bv x
    1093 abbrev U128.bv (x : U128) : BitVec 128 := UScalar.bv x
    1094 abbrev Usize.bv (x : Usize) : BitVec System.Platform.numBits := UScalar.bv x

Consequently Std.U64 is a one-field structure whose field ranges over every
BitVec 64. There is neither a validity predicate nor a quotient that could
remove, merge, or add raw words.
