Modeling choices · Original program

Where modeling judgment enters

Trellis authors models for operations outside the mechanical extraction and reviews their meaning against Rust. Each item explains the choice, its evidence, and the review result.

24 hand-modeled rust operations · 11 specification vocabulary and authored definitions · 8 source adaptations · 1 platform and environment premises

Hand-modeled Rust operations (24)

core::clone::impls::{impl core::clone::Clone for f64}::clone

Inspect related source (1)

Related source and models come from the extraction records and declared dependencies.

Rust itemcore::clone::impls::{impl core::clone::Clone for f64}::clone
Recorded source/rustc/library/core/src/clone.rs
Lines698:20–698:43

The related-source link includes this operation’s Rust standard-library implementation.

Opaque extraction signature
: F64 → Result F64
Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Tablet.Binary64ModelDefault
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelF64Clone]
def ModelF64Clone : F64 -> Result F64 :=
-- BODY
  Binary64ModelDefault.clone
end dec2flt_model

Why this model is faithful

Definition

\mathsf{ModelF64Clone}(x) returns the same binary64 word x successfully.

Preservation argument

Claim

For every binary64 word, this binding is the source scalar clone: it returns the identical word without failure.

Proof

The definition is the clone field of Binary64ModelDefault. That package returns its input word, exactly as the frozen scalar Clone implementation returns *self; see reference/model-evidence/binary64-boundary.txt.
Authored arguments for individual requirements

Requirement: assembly correspondence

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification significand digit

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch abstract composition

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch component compliance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: exponent value agreement

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: integer correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: native correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper accumulated value

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper record bounds

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser equal target rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser exact rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser invalid rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser nan acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser non nan results

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected exponent

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected magnitude sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser signed zero

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: slow accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper nan

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Recorded review

CorrespondencePass
PreservationVerifierPass

ModelF64Clone · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/binary64-boundary.txt

Open file

Primary evidence for the binary64 boundary
==========================================

Scope and identities
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction, the
adapted Rust crate retained in this repository, and the installed toolchain
named by modeling-input/SETUP.md. The probe source is retained at
reference/model-evidence/binary64-probe.rs; no scratch source is required to
reproduce it.

Toolchain executable:
  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
Target:
  x86_64-unknown-linux-gnu
rustc executable SHA-256:
  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
Probe source SHA-256:
  68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
Compiled probe SHA-256:
  f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
Frozen generated.lean SHA-256:
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9
Frozen modeling-input/manifest.json SHA-256:
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2
Approved Binary64ModelDefault.lean SHA-256 at the time of this record:
  03ae48fb631e6242bd21bf95d0481b66acae05f8cab343c7ab279b3c116538a3

Exact reproduction commands
---------------------------

Run from the repository root:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-probe.rs
  B=.trellis/scratch/binary64-probe
  "$R" --version --verbose
  sha256sum "$R"
  sha256sum "$P"
  "$R" --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$B"
  "$B"

Raw output
----------

  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
  rustc_sha256=162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  probe_sha256=68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
  binary_sha256=f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
  target_arch=x86_64
  mantissa_digits=53
  exponent_mask=7ff0000000000000
  mantissa_mask=000fffffffffffff
  nan=7ff8000000000000
  infinity=7ff0000000000000
  neg_infinity=fff0000000000000
  nan_category=Nan
  infinity_category=Infinite
  zero_category=Zero
  subnormal_category=Subnormal
  normal_category=Normal
  from_bits_to_bits=7ff0000000000001
  neg_payload_nan=fff0000000000001
  neg_zero=8000000000000000
  subnormal_tie_to_even_zero=0000000000000000
  subnormal_tie_to_even_two=0000000000000002
  normal_division=3fb999999999999a
  mul_negative_zero=8000000000000000
  div_negative_zero=8000000000000000
  div_negative_infinity=fff0000000000000
  mul_overflow=7ff0000000000000
  mul_zero_infinity_is_nan=true
  div_zero_zero_is_nan=true
  mul_nan_is_nan=true
  cast_2_pow_53=4340000000000000
  cast_2_pow_53_plus_1=4340000000000000

Pinned Rust library sources
---------------------------

The installed sources below belong to the same named toolchain. Their
SHA-256 identities are:

  core/src/primitive_docs.rs
    c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5
  core/src/num/f64.rs
    84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618
  core/src/clone.rs
    23f9cfc80347fde6b8457d46fbf7a2b8d9f34c8c58601b0b6f714ca2f6d1976b

The exact relevant text of core/src/primitive_docs.rs is:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The referenced primitive-f32 documentation supplies the common primitive
floating-point operation rules quoted next:

  /// - −0.0: IEEE 754 floating-point numbers have a bit that indicates their sign, so −0.0 is a
  ///   possible value. For comparison −0.0 = +0.0, but floating-point operations can carry
  ///   the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
  ///   a negative number rounded to a value smaller than a float can represent also produces −0.0.
  /// - [∞](#associatedconstant.INFINITY) and
  ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
  ///   like `1.0 / 0.0`.
  ///
  /// When a primitive operation (addition, subtraction, multiplication, or
  /// division) is performed on this type, the result is rounded according to the
  /// roundTiesToEven direction defined in IEEE 754-2008. That means:
  ///
  /// - The result is the representable value closest to the true value, if there
  ///   is a unique closest representable value.
  /// - If the true value is exactly half-way between two representable values,
  ///   the result is the one with an even least-significant binary digit.
  /// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
  ///   `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
  ///   true value's sign).

The same file explicitly separates arithmetic NaN choice from exact bitwise
operations; its exact relevant text is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.
  ///
  /// The following rules apply when a NaN value is returned from an arithmetic operation:
  /// - The result has a non-deterministic sign.
  /// - The quiet bit and payload are non-deterministically chosen from
  ///   the following set of options:
  ///
  ///   - **Preferred NaN**: The quiet bit is set and the payload is all-zero.
  ///   - **Quieting NaN propagation**: The quiet bit is set and the payload is copied from any input
  ///     operand that is a NaN. If the inputs and outputs do not have the same payload size (i.e., for
  ///     `as` casts), then
  ///     - If the output is smaller than the input, low-order bits of the payload get dropped.
  ///     - If the output is larger than the input, the payload gets filled up with 0s in the low-order
  ///       bits.
  ///   - **Unchanged NaN propagation**: The quiet bit and payload are copied from any input operand
  ///     that is a NaN. If the inputs and outputs do not have the same size (i.e., for `as` casts), the
  ///     same rules as for "quieting NaN propagation" apply, with one caveat: if the output is smaller
  ///     than the input, dropping the low-order bits may result in a payload of 0; a payload of 0 is not
  ///     possible with a signaling NaN (the all-0 significand encodes an infinity) so unchanged NaN
  ///     propagation cannot occur with some inputs.
  ///   - **Target-specific NaN**: The quiet bit is set and the payload is picked from a target-specific
  ///     set of "extra" possible NaN payloads. The set can depend on the input operand values.
  ///     See the table below for the concrete NaNs this set contains on various targets.
  ///
  /// | `target_arch` | Extra payloads possible on this platform |
  /// |---------------|------------------------------------------|
  /// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |

Thus the model's preferred quiet NaN is one permitted result whenever
multiplication or division returns NaN. This does not claim that arbitrary
Rust arithmetic NaNs have those exact bits. By contrast, unary negation and
bit conversion must preserve all non-sign bits exactly, including for every
NaN payload.

The exact relevant declarations in core/src/num/f64.rs are:

  pub const MANTISSA_DIGITS: u32 = 53;
  pub const NAN: f64 = 0.0_f64 / 0.0_f64;
  pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
  pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
  pub const SIGN_MASK: u64 = 0x8000_0000_0000_0000;
  pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;
  pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff;

  pub const fn classify(self) -> FpCategory {
      // We used to have complicated logic here that avoids the simple bit-based tests to work
      // around buggy codegen for x87 targets (see
      // https://github.com/rust-lang/rust/issues/114479). However, some LLVM versions later, none
      // of our tests is able to find any difference between the complicated and the naive
      // version, so now we are back to the naive version.
      let b = self.to_bits();
      match (b & Self::MANTISSA_MASK, b & Self::EXPONENT_MASK) {
          (0, Self::EXPONENT_MASK) => FpCategory::Infinite,
          (_, Self::EXPONENT_MASK) => FpCategory::Nan,
          (0, 0) => FpCategory::Zero,
          (_, 0) => FpCategory::Subnormal,
          _ => FpCategory::Normal,
      }
  }

  pub const fn to_bits(self) -> u64 {
      // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
      unsafe { mem::transmute(self) }
  }

  pub const fn from_bits(v: u64) -> Self {
      // It turns out the safety issues with sNaN were overblown! Hooray!
      // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
      unsafe { mem::transmute(v) }
  }

The exact scalar clone body in core/src/clone.rs is:

  impl const Clone for $t {
      #[inline(always)]
      fn clone(&self) -> Self {
          *self
      }
  }

Frozen adapted source
---------------------

The relevant retained source file hashes are:

  crate/traits.rs
    9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  crate/dec2flt/decimal.rs
    633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb
  crate/dec2flt/lemire.rs
    fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1
  crate/dec2flt/slow.rs
    93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485

The dispatcher excerpts below are reproduced from the identified file by
running these commands from the repository root:

  sha256sum crate/dec2flt/mod.rs
  sed -n '354,403p' crate/dec2flt/mod.rs
  sed -n '405,422p' crate/dec2flt/mod.rs
  sed -n '465,475p' crate/dec2flt/mod.rs
  sed -n '506,523p' crate/dec2flt/mod.rs

Exact constant and bit-conversion excerpt from crate/traits.rs:

  impl Float for f64 {
      type Int = u64;

      const INFINITY: Self = Self::INFINITY;
      const NEG_INFINITY: Self = Self::NEG_INFINITY;
      const NAN: Self = Self::NAN;
      // Bit-identical to the upstream `-f64::NAN`, without the unsupported
      // compile-time float negation.
      const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);

      const BITS: u32 = 64;
      const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
      const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
      const SIG_MASK: Self::Int = Self::MANTISSA_MASK;

      fn to_bits(self) -> Self::Int {
          self.to_bits()
      }

      fn classify(self) -> FpCategory {
          self.classify()
      }
  }

  impl FloatExt for f64 {
      #[inline]
      fn from_u64_bits(v: u64) -> Self {
          f64::from_bits(v)
      }

Exact derived-constant defaults from crate/traits.rs:

  /// The number of bits in the significand, *excluding* the hidden bit.
  const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;

  /// Number of bits in the exponent.
  const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

  /// The saturated (maximum bitpattern) value of the exponent, i.e. the infinite
  /// representation.
  ///
  /// This shifted fully right, use `EXP_MASK` for the shifted value.
  const EXP_SAT: u32 = (1 << Self::EXP_BITS) - 1;

  /// Signed version of `EXP_SAT` since we convert a lot.
  const INFINITE_POWER: i32 = Self::EXP_SAT as i32;

  /// The exponent bias value. This is also the maximum value of the exponent.
  const EXP_BIAS: u32 = Self::EXP_SAT >> 1;

  /// Minimum exponent value of normal values.
  const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Together with the f64-instance lines `BITS = 64` and
`SIG_TOTAL_BITS = Self::MANTISSA_DIGITS` in the preceding excerpt, these
defaults derive SIG_BITS, EXP_MIN, and INFINITE_POWER from the primitive
mantissa-digit constant rather than introducing independent parameters.

Exact asserted-conversion excerpt from crate/dec2flt/mod.rs:

  #[inline]
  // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
  // `charon::opaque` makes this entire asserted conversion external: both the
  // unchanged `debug_assert!` and the unchanged cast below are in the opaque
  // body. The callers, their fast-path guards, and their surrounding
  // computation remain mechanically visible. A corresponding model binding
  // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
  // exact binary64 conversion at or below that bound.
  #[charon::opaque]
  fn from_u64(v: u64) -> Self {
      debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
      v as _
  }

Here MAX_MANTISSA_FAST_PATH is the retained default 1 << 53.  The attribute is
attached to the function item, so the generated external stands for the whole
method, not merely the cast.  In the enabled-debug configuration the source
succeeds only when v <= 2^53; above it the assertion fails before the cast. On
the successful branch every integer is exactly representable, so the source
cast and the model rounder return the same word.

Exact power-table and assembly excerpts from crate/dec2flt/mod.rs:

  /// Maximum mantissa for the fast-path (`1 << 53` for f64).
  const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;

  const MAX_EXPONENT_FAST_PATH: i64 = 22;
  const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
  const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;

  fn pow10_fast_path(exponent: usize) -> Self {
      // These bit patterns are exactly the source table's rounded binary64
      // literals.  The match is the same masked lookup; it merely keeps float
      // constants out of Aeneas's unsupported constant interpreter.
      match exponent & 31 {
          0 => f64::from_bits(0x3FF0_0000_0000_0000),
          1 => f64::from_bits(0x4024_0000_0000_0000),
          2 => f64::from_bits(0x4059_0000_0000_0000),
          3 => f64::from_bits(0x408F_4000_0000_0000),
          4 => f64::from_bits(0x40C3_8800_0000_0000),
          5 => f64::from_bits(0x40F8_6A00_0000_0000),
          6 => f64::from_bits(0x412E_8480_0000_0000),
          7 => f64::from_bits(0x4163_12D0_0000_0000),
          8 => f64::from_bits(0x4197_D784_0000_0000),
          9 => f64::from_bits(0x41CD_CD65_0000_0000),
          10 => f64::from_bits(0x4202_A05F_2000_0000),
          11 => f64::from_bits(0x4237_4876_E800_0000),
          12 => f64::from_bits(0x426D_1A94_A200_0000),
          13 => f64::from_bits(0x42A2_309C_E540_0000),
          14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
          15 => f64::from_bits(0x430C_6BF5_2634_0000),
          16 => f64::from_bits(0x4341_C379_37E0_8000),
          17 => f64::from_bits(0x4376_3457_85D8_A000),
          18 => f64::from_bits(0x43AB_C16D_674E_C800),
          19 => f64::from_bits(0x43E1_58E4_6091_3D00),
          20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
          21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
          22 => f64::from_bits(0x4480_F0CF_064D_D592),
          _ => f64::from_bits(0),
      }
  }

  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

Exact native-call excerpt from crate/dec2flt/decimal.rs:

  fn can_use_fast_path<F: Lemire>(&self) -> bool {
      F::MIN_EXPONENT_FAST_PATH <= self.exponent
          && self.exponent <= F::MAX_EXPONENT_DISGUISED_FAST_PATH
          && self.mantissa <= F::MAX_MANTISSA_FAST_PATH
          && !self.many_digits
  }

  if !self.can_use_fast_path::<F>() {
      return None;
  }

  let value = if self.exponent <= F::MAX_EXPONENT_FAST_PATH {
      // normal fast path
      let value = F::from_u64(self.mantissa);
      if self.exponent < 0 {
          // Explicit trait calls preserve Rust arithmetic and resolve
          // the generic output type that Charon leaves ambiguous.
          core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
      } else {
          core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
      }
  } else {
      // disguised fast path
      let shift = self.exponent - F::MAX_EXPONENT_FAST_PATH;
      let mantissa = self.mantissa.checked_mul(INT_POW10[shift as usize])?;
      if mantissa > F::MAX_MANTISSA_FAST_PATH {
          return None;
      }
      core::ops::Mul::mul(
          F::from_u64(mantissa),
          F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
      )
  };

  if self.negative {
      Some(core::ops::Neg::neg(value))
  } else {
      Some(value)
  }

The preceding can_use_fast_path body, together with
MAX_MANTISSA_FAST_PATH = 1 << SIG_TOTAL_BITS and SIG_TOTAL_BITS = 53 for f64,
requires the exponent to lie between -22 and 37, the input mantissa to be at
most 2^53, and many_digits to be false. Consequently an ordinary arithmetic
call has a from_u64 operand in 0..=2^53. In its negative-exponent arm,
`-self.exponent` lies in 1..=22; in its nonnegative arm, `self.exponent` lies
in 0..=22. The disguised branch checks its multiplied mantissa against 2^53
before from_u64 and uses table index 22. The paired statement
Binary64NativeCallDomain does not assert this source reachability. It says
conditionally that a from_u64 argument at most 2^53 succeeds with a finite,
non-NaN word and that a table index at most 22 succeeds with a positive,
nonzero, finite, non-NaN word. Applying that conditional statement to the
guards just derived establishes those properties for the actual ordinary and
disguised calls, and in particular establishes that every executed divisor is
nonzero.

Exact special-value excerpt from crate/dec2flt/parse.rs:

  let float = match (register, len) {
      (INF_3, 3) => F::INFINITY,
      (INF_8, 8) => F::INFINITY,
      (NAN, 3) => F::NAN,
      _ => return None,
  };

  if negative { Some(-float) } else { Some(float) }

Thus the executed special route is INFINITY or NAN followed by conditional
negation; it does not select NEG_INFINITY or NEG_NAN directly.

The number helper has the exact source body

  pub fn parse_number(s: &[u8]) -> Option<Decimal> {
      if let Some((float, rest)) = parse_partial_number(s) {
          if rest == s.len() {
              return Some(float);
          }
      }
      None
  }

It returns only the Decimal produced by parse_partial_number; there is no
float type parameter or float operation at this boundary.

Exact dispatcher excerpts from crate/dec2flt/mod.rs
---------------------------------------------------

The entry of `dec2flt_with_trace` strips at most one leading sign, rejects
empty and sign-only inputs, calls `parse_number` on the unsigned body, and
calls `parse_inf_nan` only when `parse_number` returns `None`:

  /// Run the actual dispatcher while retaining its approved internal observations.
  pub fn dec2flt_with_trace<
      'a,
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {
          return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
      };
      let negative = c == b'-';
      if c == b'-' || c == b'+' {
          body = &body[1..];
      }
      if body.is_empty() {
          return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
      }

      let parse_number_result = parse_number(body);
      let parsed = match parse_number_result {
          Some(r) => r,
          None => {
              let parse_inf_nan_result = parse_inf_nan(body, negative);
              return match parse_inf_nan_result {
                  Some(value) => (
                      Ok(value),
                      Dec2FltTrace::Special {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                          result: value,
                      },
                  ),
                  None => (
                      Err(pfe_invalid()),
                      Dec2FltTrace::Invalid {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                      },
                  ),
              };
          }
      };

Thus every `Err` arm shown here returns before `parsed` is available and before
the native, integer, slow, assembly, or final-negation code below it can run.
On a numeric result, the lexical sign is copied into the parsed record before
the native attempt, whose successful result also returns before raw-pair
assembly:

      let mut num = parsed;
      num.negative = negative;
      if !cfg!(feature = "optimize_for_size") {
          let fast_path_result = num.try_fast_path::<F>();
          if let Some(value) = fast_path_result {
              return (
                  Ok(value),
                  Dec2FltTrace::FastPath {
                      body,
                      negative,
                      parse_number_result,
                      fast_path_input: num,
                      fast_path_result,
                      result: value,
                  },
              );
          }
      }

If the native attempt does not return, the selected raw pair is assembled and
the source then conditionally negates it according to the lexical-sign flag:

      let selected_pair = fp;
      // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
      // it neither changes the selected pair nor introduces a new branch or call.
      let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
      let assembly_result = biased_fp_to_float::<F>(fp);
      let lexical_sign_applied = num.negative;
      let result = if lexical_sign_applied {
          core::ops::Neg::neg(assembly_result)
      } else {
          assembly_result
      };

The public `dec2flt` executes that same route and returns its result projection;
it does not reimplement or reorder any parsing or float operation:

  /// Converts a decimal string into a floating point number.
  #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
  pub fn dec2flt<
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &str,
  ) -> Result<F, ParseFloatError> {
      // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
      // clause admits exactly the same instances and lets Charon resolve the
      // explicit, source-equivalent final negation.
      // The public function is now exactly the result projection of the single
      // instrumented implementation.  No conversion step is duplicated, and
      // discarding the trace cannot affect Rust evaluation or the returned bits.
      dec2flt_with_trace::<F>(s).0
  }

The integer-tier helper has the source type and exact executable excerpts
below (long explanatory comments are elided). In particular it returns a raw
BiasedFp and contains no from_u64 cast, primitive float multiplication,
division, negation, or from_bits call:

  pub fn compute_float<F: Float>(q: i64, mut w: u64) -> BiasedFp {
      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);
      let fp_error = BiasedFp::zero_pow2(-1);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if w == 0 || q < F::SMALLEST_POWER_OF_TEN as i64 {
          return fp_zero;
      } else if q > F::LARGEST_POWER_OF_TEN as i64 {
          return fp_inf;
      }
      // Normalize our significant digits, so the most-significant bit is set.
      let lz = w.leading_zeros();
      w <<= lz;
      let (lo, hi) = compute_product_approx(q, w, F::SIG_BITS as usize + 3);
      if lo == 0xFFFF_FFFF_FFFF_FFFF {
          let inside_safe_exponent = (q >= -27) && (q <= 55);
          if !inside_safe_exponent {
              return fp_error;
          }
      }
      let upperbit = (hi >> 63) as i32;
      let mut mantissa = hi >> (upperbit + 64 - F::SIG_BITS as i32 - 3);
      let mut power2 = power(q as i32) + upperbit - lz as i32 - F::EXP_MIN + 1;
      if power2 <= 0 {
          if -power2 + 1 >= 64 {
              // Have more than 64 bits below the minimum exponent, must be 0.
              return fp_zero;
          }
          // Have a subnormal value.
          mantissa >>= -power2 + 1;
          mantissa += mantissa & 1;
          mantissa >>= 1;
          power2 = (mantissa >= (1_u64 << F::SIG_BITS)) as i32;
          return BiasedFp { m: mantissa, p_biased: power2 };
      }
      // Need to handle rounding ties. Normally, we need to round up,
      // but if we fall right in between and we have an even basis, we
      // need to round down.
      if lo <= 1
          && q >= F::MIN_EXPONENT_ROUND_TO_EVEN as i64
          && q <= F::MAX_EXPONENT_ROUND_TO_EVEN as i64
          && mantissa & 0b11 == 0b01
          && (mantissa << (upperbit + 64 - F::SIG_BITS as i32 - 3)) == hi
      {
          // Zero the lowest bit, so we don't round up.
          mantissa &= !1_u64;
      }
      // Round-to-even, then shift the significant digits into place.
      mantissa += mantissa & 1;
      mantissa >>= 1;
      if mantissa >= (2_u64 << F::SIG_BITS) {
          // Rounding up overflowed, so the carry bit is set. Set the
          // mantissa to 1 (only the implicit, hidden bit is set) and
          // increase the exponent.
          mantissa = 1_u64 << F::SIG_BITS;
          power2 += 1;
      }
      // Zero out the hidden bit.
      mantissa &= !(1_u64 << F::SIG_BITS);
      if power2 >= F::INFINITE_POWER {
          // Exponent is above largest normal value, must be infinite.
          return fp_inf;
      }
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact slow-tier source body from crate/dec2flt/slow.rs:

  pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {
      const MAX_SHIFT: usize = 60;
      const NUM_POWERS: usize = 19;
      const POWERS: [u8; 19] =
          [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];

      let get_shift = |n| {
          if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }
      };

      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);

      let mut d = parse_decimal_seq(s);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if d.num_digits == 0 || d.decimal_point < -324 {
          return fp_zero;
      } else if d.decimal_point >= 310 {
          return fp_inf;
      }
      let mut exp2 = 0_i32;
      let mut loop_result = None;
      // Shift right toward (1/2 ... 1].
      while d.decimal_point > 0 && loop_result.is_none() {
          let n = d.decimal_point as usize;
          let shift = get_shift(n);
          d.right_shift(shift);
          if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_zero);
          } else {
              exp2 += shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // Shift left toward (1/2 ... 1].
      while d.decimal_point <= 0 && loop_result.is_none() {
          let shift = if d.decimal_point == 0 {
              match d.digits[0] {
                  digit if digit >= 5 => break,
                  0 | 1 => 2,
                  _ => 1,
              }
          } else {
              get_shift((-d.decimal_point) as _)
          };
          d.left_shift(shift);
          if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_inf);
          } else {
              exp2 -= shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
      exp2 -= 1;
      while F::EXP_MIN > exp2 {
          let mut n = (F::EXP_MIN - exp2) as usize;
          if n > MAX_SHIFT {
              n = MAX_SHIFT;
          }
          d.right_shift(n);
          exp2 += n as i32;
      }
      if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
          return fp_inf;
      }
      // Shift the decimal to the hidden bit, and then round the value
      // to get the high mantissa+1 bits.
      d.left_shift(F::SIG_BITS as usize + 1);
      let mut mantissa = d.round();
      if mantissa >= (1_u64 << (F::SIG_BITS + 1)) {
          // Rounding up overflowed to the carry bit, need to
          // shift back to the hidden bit.
          d.right_shift(1);
          exp2 += 1;
          mantissa = d.round();
          if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
              return fp_inf;
          }
      }
      let mut power2 = exp2 - F::EXP_MIN + 1;
      if mantissa < (1_u64 << F::SIG_BITS) {
          power2 -= 1;
      }
      // Zero out all the bits above the explicit mantissa bits.
      mantissa &= (1_u64 << F::SIG_BITS) - 1;
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact final numeric-sign excerpt from crate/dec2flt/mod.rs:

  let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
  let assembly_result = biased_fp_to_float::<F>(fp);
  let lexical_sign_applied = num.negative;
  let result = if lexical_sign_applied {
      core::ops::Neg::neg(assembly_result)
  } else {
      assembly_result
  };

Thus a numeric execution that reaches the integer/slow selection route
assembles its selected pair with from_bits through biased_fp_to_float and only
then conditionally negates it. A successful try_fast_path returns earlier and
does not perform this assembly. compute_float and parse_long_mantissa produce
raw BiasedFp pairs and do not call from_u64, primitive float multiplication,
division, negation, or from_bits; they do, however, execute constants derived
from SIG_TOTAL_BITS before producing those pairs.

Retained structural-boundary evidence
-------------------------------------

Several adjacent structural bindings cite this same evidence record. Their
pinned library source identities are:

  core/src/num/mod.rs
    f0820f9dfb94999440c8cb4a349736fa21df7e5668e19b6b49e016ff67c05ce3
  core/src/option.rs
    7cf61204b05d98a95bc2e322d5fbfc1f4f91505109971917d9a7fb47151c50e6
  core/src/slice/mod.rs
    354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840
  core/src/str/mod.rs
    284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78

Exact ASCII-digit body from core/src/num/mod.rs:

  pub const fn is_ascii_digit(&self) -> bool {
      matches!(*self, b'0'..=b'9')
  }

Exact Option control-flow bodies from core/src/option.rs:

  fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
      match self {
          Some(v) => ControlFlow::Continue(v),
          None => ControlFlow::Break(None),
      }
  }

  fn from_residual(residual: Option<convert::Infallible>) -> Self {
      match residual {
          None => None,
      }
  }

Exact slice observation bodies from core/src/slice/mod.rs:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

Exact string-byte body from core/src/str/mod.rs:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }
reference/model-evidence/binary64-probe.rs

Open file

#![feature(float_masks)]

use std::num::FpCategory;

fn bits(label: &str, value: f64) {
    println!("{label}={:016x}", value.to_bits());
}

fn main() {
    println!("target_arch={}", std::env::consts::ARCH);
    println!("mantissa_digits={}", f64::MANTISSA_DIGITS);
    println!("exponent_mask={:016x}", f64::EXPONENT_MASK);
    println!("mantissa_mask={:016x}", f64::MANTISSA_MASK);
    bits("nan", f64::NAN);
    bits("infinity", f64::INFINITY);
    bits("neg_infinity", f64::NEG_INFINITY);

    for (label, value) in [
        ("nan_category", f64::NAN),
        ("infinity_category", f64::INFINITY),
        ("zero_category", 0.0),
        ("subnormal_category", f64::from_bits(1)),
        ("normal_category", 1.0),
    ] {
        let category = match value.classify() {
            FpCategory::Nan => "Nan",
            FpCategory::Infinite => "Infinite",
            FpCategory::Zero => "Zero",
            FpCategory::Subnormal => "Subnormal",
            FpCategory::Normal => "Normal",
        };
        println!("{label}={category}");
    }

    let payload_nan_word = 0x7ff0_0000_0000_0001_u64;
    println!(
        "from_bits_to_bits={:016x}",
        f64::from_bits(payload_nan_word).to_bits()
    );
    bits("neg_payload_nan", -f64::from_bits(payload_nan_word));
    bits("neg_zero", -0.0);

    bits("subnormal_tie_to_even_zero", f64::from_bits(1) * 0.5);
    bits("subnormal_tie_to_even_two", f64::from_bits(3) * 0.5);
    bits("normal_division", 1.0 / 10.0);
    bits("mul_negative_zero", -0.0 * 2.0);
    bits("div_negative_zero", -1.0 / f64::INFINITY);
    bits("div_negative_infinity", 1.0 / -0.0);
    bits("mul_overflow", f64::MAX * (1.0 + f64::EPSILON));
    println!("mul_zero_infinity_is_nan={}", (0.0 * f64::INFINITY).is_nan());
    println!("div_zero_zero_is_nan={}", (0.0_f64 / 0.0_f64).is_nan());
    println!("mul_nan_is_nan={}", (f64::NAN * 1.0).is_nan());

    bits("cast_2_pow_53", (1_u64 << 53) as f64);
    bits("cast_2_pow_53_plus_1", ((1_u64 << 53) + 1) as f64);
}
Assumptions / kernel axioms
  • Classical.choice
  • Quot.sound
  • propext

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (32)
All 32 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourceTablet/model-support.json
Kindopaque external binding
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:251d7c3cb00e7d050df5059d5692b563b4bb4623655d58f5f62e5022153607e7
Preservation current fingerprintpreservation-v1:251d7c3cb00e7d050df5059d5692b563b4bb4623655d58f5f62e5022153607e7
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"ded9f491be3645b6ae10ebf1288579776c2387c3e73da2da65a7c225d08863c9","lean_semantic_closure":"068fedc14b4d117f34e0a8caa8b7a66c56c5ff8f94b5c41fed41524fc71c431a","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","Binary64ModelDefault":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","Binary64ModelDefault","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence current fingerprint{"own_tex":"ded9f491be3645b6ae10ebf1288579776c2387c3e73da2da65a7c225d08863c9","lean_semantic_closure":"068fedc14b4d117f34e0a8caa8b7a66c56c5ff8f94b5c41fed41524fc71c431a","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","Binary64ModelDefault":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","Binary64ModelDefault","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "0b943575dab488f76e6737a2191ce18367df6b48f31ab70a42bce1ade52ad5aa",
    "dep_statement_hashes": {
      "Binary64ModelDefault": "be5dcc4afe23616ca8fd1d15d30fbbe4ee2621d68be3341b8e74a66e6dcd736f"
    },
    "combined_sound_fp": "preservation-v1:251d7c3cb00e7d050df5059d5692b563b4bb4623655d58f5f62e5022153607e7"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Exact source record
{
  "name": "F64.Insts.CoreCloneClone.clone",
  "extracted_signature": ": F64 → Result F64",
  "rust_symbol": "core::clone::impls::{impl core::clone::Clone for f64}::clone",
  "raw_declaration_sha256": "5eaad5fb9af034045cf0dafed5af85445fe4af9a78958259a15a1faddd1e8f05",
  "node": "ModelF64Clone",
  "declaration": "dec2flt_model.ModelF64Clone"
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/binary64-boundary.txt",
    "sha256": "fa45c924747337e8d6f84a19fe9e83fb9b33c73434887c0cf57c062533f51fe1",
    "cited_by": [
      "Tablet/ModelF64Clone.tex",
      "Tablet/model-support.json"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-probe.rs",
    "sha256": "68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e",
    "cited_by": [
      "reference/model-evidence/binary64-boundary.txt"
    ]
  }
]

core::f64::{f64}::MANTISSA_DIGITS

Inspect related source (1)

Related source and models come from the extraction records and declared dependencies.

Rust itemcore::f64::{f64}::MANTISSA_DIGITS
Recorded source/rustc/library/core/src/num/f64.rs
Lines412:4–412:34

The related-source link includes this operation’s Rust standard-library implementation.

Opaque extraction signature
: Result Std.U32
Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Tablet.Binary64ModelDefault
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelF64MantissaDigits]
def ModelF64MantissaDigits : Result Std.U32 :=
-- BODY
  Binary64ModelDefault.mantissaDigits
end dec2flt_model

Why this model is faithful

Definition

\mathsf{ModelF64MantissaDigits} returns 53 successfully.

Preservation argument

Claim

This binding is the source binary64 precision constant, returning 53.

Proof

The definition is the precision field of Binary64ModelDefault. The frozen f64::MANTISSA_DIGITS declaration is 53; see reference/model-evidence/binary64-boundary.txt.
Authored arguments for individual requirements

Requirement: assembly correspondence

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification significand digit

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch abstract composition

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch component compliance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: exponent value agreement

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: integer correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: native correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper accumulated value

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper record bounds

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser equal target rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser exact rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser invalid rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser nan acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser non nan results

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected exponent

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected magnitude sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser signed zero

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: slow accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper nan

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Recorded review

CorrespondencePass
PreservationVerifierPass

ModelF64MantissaDigits · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/binary64-boundary.txt

Open file

Primary evidence for the binary64 boundary
==========================================

Scope and identities
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction, the
adapted Rust crate retained in this repository, and the installed toolchain
named by modeling-input/SETUP.md. The probe source is retained at
reference/model-evidence/binary64-probe.rs; no scratch source is required to
reproduce it.

Toolchain executable:
  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
Target:
  x86_64-unknown-linux-gnu
rustc executable SHA-256:
  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
Probe source SHA-256:
  68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
Compiled probe SHA-256:
  f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
Frozen generated.lean SHA-256:
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9
Frozen modeling-input/manifest.json SHA-256:
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2
Approved Binary64ModelDefault.lean SHA-256 at the time of this record:
  03ae48fb631e6242bd21bf95d0481b66acae05f8cab343c7ab279b3c116538a3

Exact reproduction commands
---------------------------

Run from the repository root:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-probe.rs
  B=.trellis/scratch/binary64-probe
  "$R" --version --verbose
  sha256sum "$R"
  sha256sum "$P"
  "$R" --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$B"
  "$B"

Raw output
----------

  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
  rustc_sha256=162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  probe_sha256=68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
  binary_sha256=f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
  target_arch=x86_64
  mantissa_digits=53
  exponent_mask=7ff0000000000000
  mantissa_mask=000fffffffffffff
  nan=7ff8000000000000
  infinity=7ff0000000000000
  neg_infinity=fff0000000000000
  nan_category=Nan
  infinity_category=Infinite
  zero_category=Zero
  subnormal_category=Subnormal
  normal_category=Normal
  from_bits_to_bits=7ff0000000000001
  neg_payload_nan=fff0000000000001
  neg_zero=8000000000000000
  subnormal_tie_to_even_zero=0000000000000000
  subnormal_tie_to_even_two=0000000000000002
  normal_division=3fb999999999999a
  mul_negative_zero=8000000000000000
  div_negative_zero=8000000000000000
  div_negative_infinity=fff0000000000000
  mul_overflow=7ff0000000000000
  mul_zero_infinity_is_nan=true
  div_zero_zero_is_nan=true
  mul_nan_is_nan=true
  cast_2_pow_53=4340000000000000
  cast_2_pow_53_plus_1=4340000000000000

Pinned Rust library sources
---------------------------

The installed sources below belong to the same named toolchain. Their
SHA-256 identities are:

  core/src/primitive_docs.rs
    c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5
  core/src/num/f64.rs
    84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618
  core/src/clone.rs
    23f9cfc80347fde6b8457d46fbf7a2b8d9f34c8c58601b0b6f714ca2f6d1976b

The exact relevant text of core/src/primitive_docs.rs is:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The referenced primitive-f32 documentation supplies the common primitive
floating-point operation rules quoted next:

  /// - −0.0: IEEE 754 floating-point numbers have a bit that indicates their sign, so −0.0 is a
  ///   possible value. For comparison −0.0 = +0.0, but floating-point operations can carry
  ///   the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
  ///   a negative number rounded to a value smaller than a float can represent also produces −0.0.
  /// - [∞](#associatedconstant.INFINITY) and
  ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
  ///   like `1.0 / 0.0`.
  ///
  /// When a primitive operation (addition, subtraction, multiplication, or
  /// division) is performed on this type, the result is rounded according to the
  /// roundTiesToEven direction defined in IEEE 754-2008. That means:
  ///
  /// - The result is the representable value closest to the true value, if there
  ///   is a unique closest representable value.
  /// - If the true value is exactly half-way between two representable values,
  ///   the result is the one with an even least-significant binary digit.
  /// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
  ///   `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
  ///   true value's sign).

The same file explicitly separates arithmetic NaN choice from exact bitwise
operations; its exact relevant text is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.
  ///
  /// The following rules apply when a NaN value is returned from an arithmetic operation:
  /// - The result has a non-deterministic sign.
  /// - The quiet bit and payload are non-deterministically chosen from
  ///   the following set of options:
  ///
  ///   - **Preferred NaN**: The quiet bit is set and the payload is all-zero.
  ///   - **Quieting NaN propagation**: The quiet bit is set and the payload is copied from any input
  ///     operand that is a NaN. If the inputs and outputs do not have the same payload size (i.e., for
  ///     `as` casts), then
  ///     - If the output is smaller than the input, low-order bits of the payload get dropped.
  ///     - If the output is larger than the input, the payload gets filled up with 0s in the low-order
  ///       bits.
  ///   - **Unchanged NaN propagation**: The quiet bit and payload are copied from any input operand
  ///     that is a NaN. If the inputs and outputs do not have the same size (i.e., for `as` casts), the
  ///     same rules as for "quieting NaN propagation" apply, with one caveat: if the output is smaller
  ///     than the input, dropping the low-order bits may result in a payload of 0; a payload of 0 is not
  ///     possible with a signaling NaN (the all-0 significand encodes an infinity) so unchanged NaN
  ///     propagation cannot occur with some inputs.
  ///   - **Target-specific NaN**: The quiet bit is set and the payload is picked from a target-specific
  ///     set of "extra" possible NaN payloads. The set can depend on the input operand values.
  ///     See the table below for the concrete NaNs this set contains on various targets.
  ///
  /// | `target_arch` | Extra payloads possible on this platform |
  /// |---------------|------------------------------------------|
  /// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |

Thus the model's preferred quiet NaN is one permitted result whenever
multiplication or division returns NaN. This does not claim that arbitrary
Rust arithmetic NaNs have those exact bits. By contrast, unary negation and
bit conversion must preserve all non-sign bits exactly, including for every
NaN payload.

The exact relevant declarations in core/src/num/f64.rs are:

  pub const MANTISSA_DIGITS: u32 = 53;
  pub const NAN: f64 = 0.0_f64 / 0.0_f64;
  pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
  pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
  pub const SIGN_MASK: u64 = 0x8000_0000_0000_0000;
  pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;
  pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff;

  pub const fn classify(self) -> FpCategory {
      // We used to have complicated logic here that avoids the simple bit-based tests to work
      // around buggy codegen for x87 targets (see
      // https://github.com/rust-lang/rust/issues/114479). However, some LLVM versions later, none
      // of our tests is able to find any difference between the complicated and the naive
      // version, so now we are back to the naive version.
      let b = self.to_bits();
      match (b & Self::MANTISSA_MASK, b & Self::EXPONENT_MASK) {
          (0, Self::EXPONENT_MASK) => FpCategory::Infinite,
          (_, Self::EXPONENT_MASK) => FpCategory::Nan,
          (0, 0) => FpCategory::Zero,
          (_, 0) => FpCategory::Subnormal,
          _ => FpCategory::Normal,
      }
  }

  pub const fn to_bits(self) -> u64 {
      // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
      unsafe { mem::transmute(self) }
  }

  pub const fn from_bits(v: u64) -> Self {
      // It turns out the safety issues with sNaN were overblown! Hooray!
      // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
      unsafe { mem::transmute(v) }
  }

The exact scalar clone body in core/src/clone.rs is:

  impl const Clone for $t {
      #[inline(always)]
      fn clone(&self) -> Self {
          *self
      }
  }

Frozen adapted source
---------------------

The relevant retained source file hashes are:

  crate/traits.rs
    9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  crate/dec2flt/decimal.rs
    633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb
  crate/dec2flt/lemire.rs
    fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1
  crate/dec2flt/slow.rs
    93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485

The dispatcher excerpts below are reproduced from the identified file by
running these commands from the repository root:

  sha256sum crate/dec2flt/mod.rs
  sed -n '354,403p' crate/dec2flt/mod.rs
  sed -n '405,422p' crate/dec2flt/mod.rs
  sed -n '465,475p' crate/dec2flt/mod.rs
  sed -n '506,523p' crate/dec2flt/mod.rs

Exact constant and bit-conversion excerpt from crate/traits.rs:

  impl Float for f64 {
      type Int = u64;

      const INFINITY: Self = Self::INFINITY;
      const NEG_INFINITY: Self = Self::NEG_INFINITY;
      const NAN: Self = Self::NAN;
      // Bit-identical to the upstream `-f64::NAN`, without the unsupported
      // compile-time float negation.
      const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);

      const BITS: u32 = 64;
      const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
      const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
      const SIG_MASK: Self::Int = Self::MANTISSA_MASK;

      fn to_bits(self) -> Self::Int {
          self.to_bits()
      }

      fn classify(self) -> FpCategory {
          self.classify()
      }
  }

  impl FloatExt for f64 {
      #[inline]
      fn from_u64_bits(v: u64) -> Self {
          f64::from_bits(v)
      }

Exact derived-constant defaults from crate/traits.rs:

  /// The number of bits in the significand, *excluding* the hidden bit.
  const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;

  /// Number of bits in the exponent.
  const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

  /// The saturated (maximum bitpattern) value of the exponent, i.e. the infinite
  /// representation.
  ///
  /// This shifted fully right, use `EXP_MASK` for the shifted value.
  const EXP_SAT: u32 = (1 << Self::EXP_BITS) - 1;

  /// Signed version of `EXP_SAT` since we convert a lot.
  const INFINITE_POWER: i32 = Self::EXP_SAT as i32;

  /// The exponent bias value. This is also the maximum value of the exponent.
  const EXP_BIAS: u32 = Self::EXP_SAT >> 1;

  /// Minimum exponent value of normal values.
  const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Together with the f64-instance lines `BITS = 64` and
`SIG_TOTAL_BITS = Self::MANTISSA_DIGITS` in the preceding excerpt, these
defaults derive SIG_BITS, EXP_MIN, and INFINITE_POWER from the primitive
mantissa-digit constant rather than introducing independent parameters.

Exact asserted-conversion excerpt from crate/dec2flt/mod.rs:

  #[inline]
  // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
  // `charon::opaque` makes this entire asserted conversion external: both the
  // unchanged `debug_assert!` and the unchanged cast below are in the opaque
  // body. The callers, their fast-path guards, and their surrounding
  // computation remain mechanically visible. A corresponding model binding
  // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
  // exact binary64 conversion at or below that bound.
  #[charon::opaque]
  fn from_u64(v: u64) -> Self {
      debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
      v as _
  }

Here MAX_MANTISSA_FAST_PATH is the retained default 1 << 53.  The attribute is
attached to the function item, so the generated external stands for the whole
method, not merely the cast.  In the enabled-debug configuration the source
succeeds only when v <= 2^53; above it the assertion fails before the cast. On
the successful branch every integer is exactly representable, so the source
cast and the model rounder return the same word.

Exact power-table and assembly excerpts from crate/dec2flt/mod.rs:

  /// Maximum mantissa for the fast-path (`1 << 53` for f64).
  const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;

  const MAX_EXPONENT_FAST_PATH: i64 = 22;
  const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
  const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;

  fn pow10_fast_path(exponent: usize) -> Self {
      // These bit patterns are exactly the source table's rounded binary64
      // literals.  The match is the same masked lookup; it merely keeps float
      // constants out of Aeneas's unsupported constant interpreter.
      match exponent & 31 {
          0 => f64::from_bits(0x3FF0_0000_0000_0000),
          1 => f64::from_bits(0x4024_0000_0000_0000),
          2 => f64::from_bits(0x4059_0000_0000_0000),
          3 => f64::from_bits(0x408F_4000_0000_0000),
          4 => f64::from_bits(0x40C3_8800_0000_0000),
          5 => f64::from_bits(0x40F8_6A00_0000_0000),
          6 => f64::from_bits(0x412E_8480_0000_0000),
          7 => f64::from_bits(0x4163_12D0_0000_0000),
          8 => f64::from_bits(0x4197_D784_0000_0000),
          9 => f64::from_bits(0x41CD_CD65_0000_0000),
          10 => f64::from_bits(0x4202_A05F_2000_0000),
          11 => f64::from_bits(0x4237_4876_E800_0000),
          12 => f64::from_bits(0x426D_1A94_A200_0000),
          13 => f64::from_bits(0x42A2_309C_E540_0000),
          14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
          15 => f64::from_bits(0x430C_6BF5_2634_0000),
          16 => f64::from_bits(0x4341_C379_37E0_8000),
          17 => f64::from_bits(0x4376_3457_85D8_A000),
          18 => f64::from_bits(0x43AB_C16D_674E_C800),
          19 => f64::from_bits(0x43E1_58E4_6091_3D00),
          20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
          21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
          22 => f64::from_bits(0x4480_F0CF_064D_D592),
          _ => f64::from_bits(0),
      }
  }

  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

Exact native-call excerpt from crate/dec2flt/decimal.rs:

  fn can_use_fast_path<F: Lemire>(&self) -> bool {
      F::MIN_EXPONENT_FAST_PATH <= self.exponent
          && self.exponent <= F::MAX_EXPONENT_DISGUISED_FAST_PATH
          && self.mantissa <= F::MAX_MANTISSA_FAST_PATH
          && !self.many_digits
  }

  if !self.can_use_fast_path::<F>() {
      return None;
  }

  let value = if self.exponent <= F::MAX_EXPONENT_FAST_PATH {
      // normal fast path
      let value = F::from_u64(self.mantissa);
      if self.exponent < 0 {
          // Explicit trait calls preserve Rust arithmetic and resolve
          // the generic output type that Charon leaves ambiguous.
          core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
      } else {
          core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
      }
  } else {
      // disguised fast path
      let shift = self.exponent - F::MAX_EXPONENT_FAST_PATH;
      let mantissa = self.mantissa.checked_mul(INT_POW10[shift as usize])?;
      if mantissa > F::MAX_MANTISSA_FAST_PATH {
          return None;
      }
      core::ops::Mul::mul(
          F::from_u64(mantissa),
          F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
      )
  };

  if self.negative {
      Some(core::ops::Neg::neg(value))
  } else {
      Some(value)
  }

The preceding can_use_fast_path body, together with
MAX_MANTISSA_FAST_PATH = 1 << SIG_TOTAL_BITS and SIG_TOTAL_BITS = 53 for f64,
requires the exponent to lie between -22 and 37, the input mantissa to be at
most 2^53, and many_digits to be false. Consequently an ordinary arithmetic
call has a from_u64 operand in 0..=2^53. In its negative-exponent arm,
`-self.exponent` lies in 1..=22; in its nonnegative arm, `self.exponent` lies
in 0..=22. The disguised branch checks its multiplied mantissa against 2^53
before from_u64 and uses table index 22. The paired statement
Binary64NativeCallDomain does not assert this source reachability. It says
conditionally that a from_u64 argument at most 2^53 succeeds with a finite,
non-NaN word and that a table index at most 22 succeeds with a positive,
nonzero, finite, non-NaN word. Applying that conditional statement to the
guards just derived establishes those properties for the actual ordinary and
disguised calls, and in particular establishes that every executed divisor is
nonzero.

Exact special-value excerpt from crate/dec2flt/parse.rs:

  let float = match (register, len) {
      (INF_3, 3) => F::INFINITY,
      (INF_8, 8) => F::INFINITY,
      (NAN, 3) => F::NAN,
      _ => return None,
  };

  if negative { Some(-float) } else { Some(float) }

Thus the executed special route is INFINITY or NAN followed by conditional
negation; it does not select NEG_INFINITY or NEG_NAN directly.

The number helper has the exact source body

  pub fn parse_number(s: &[u8]) -> Option<Decimal> {
      if let Some((float, rest)) = parse_partial_number(s) {
          if rest == s.len() {
              return Some(float);
          }
      }
      None
  }

It returns only the Decimal produced by parse_partial_number; there is no
float type parameter or float operation at this boundary.

Exact dispatcher excerpts from crate/dec2flt/mod.rs
---------------------------------------------------

The entry of `dec2flt_with_trace` strips at most one leading sign, rejects
empty and sign-only inputs, calls `parse_number` on the unsigned body, and
calls `parse_inf_nan` only when `parse_number` returns `None`:

  /// Run the actual dispatcher while retaining its approved internal observations.
  pub fn dec2flt_with_trace<
      'a,
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {
          return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
      };
      let negative = c == b'-';
      if c == b'-' || c == b'+' {
          body = &body[1..];
      }
      if body.is_empty() {
          return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
      }

      let parse_number_result = parse_number(body);
      let parsed = match parse_number_result {
          Some(r) => r,
          None => {
              let parse_inf_nan_result = parse_inf_nan(body, negative);
              return match parse_inf_nan_result {
                  Some(value) => (
                      Ok(value),
                      Dec2FltTrace::Special {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                          result: value,
                      },
                  ),
                  None => (
                      Err(pfe_invalid()),
                      Dec2FltTrace::Invalid {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                      },
                  ),
              };
          }
      };

Thus every `Err` arm shown here returns before `parsed` is available and before
the native, integer, slow, assembly, or final-negation code below it can run.
On a numeric result, the lexical sign is copied into the parsed record before
the native attempt, whose successful result also returns before raw-pair
assembly:

      let mut num = parsed;
      num.negative = negative;
      if !cfg!(feature = "optimize_for_size") {
          let fast_path_result = num.try_fast_path::<F>();
          if let Some(value) = fast_path_result {
              return (
                  Ok(value),
                  Dec2FltTrace::FastPath {
                      body,
                      negative,
                      parse_number_result,
                      fast_path_input: num,
                      fast_path_result,
                      result: value,
                  },
              );
          }
      }

If the native attempt does not return, the selected raw pair is assembled and
the source then conditionally negates it according to the lexical-sign flag:

      let selected_pair = fp;
      // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
      // it neither changes the selected pair nor introduces a new branch or call.
      let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
      let assembly_result = biased_fp_to_float::<F>(fp);
      let lexical_sign_applied = num.negative;
      let result = if lexical_sign_applied {
          core::ops::Neg::neg(assembly_result)
      } else {
          assembly_result
      };

The public `dec2flt` executes that same route and returns its result projection;
it does not reimplement or reorder any parsing or float operation:

  /// Converts a decimal string into a floating point number.
  #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
  pub fn dec2flt<
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &str,
  ) -> Result<F, ParseFloatError> {
      // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
      // clause admits exactly the same instances and lets Charon resolve the
      // explicit, source-equivalent final negation.
      // The public function is now exactly the result projection of the single
      // instrumented implementation.  No conversion step is duplicated, and
      // discarding the trace cannot affect Rust evaluation or the returned bits.
      dec2flt_with_trace::<F>(s).0
  }

The integer-tier helper has the source type and exact executable excerpts
below (long explanatory comments are elided). In particular it returns a raw
BiasedFp and contains no from_u64 cast, primitive float multiplication,
division, negation, or from_bits call:

  pub fn compute_float<F: Float>(q: i64, mut w: u64) -> BiasedFp {
      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);
      let fp_error = BiasedFp::zero_pow2(-1);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if w == 0 || q < F::SMALLEST_POWER_OF_TEN as i64 {
          return fp_zero;
      } else if q > F::LARGEST_POWER_OF_TEN as i64 {
          return fp_inf;
      }
      // Normalize our significant digits, so the most-significant bit is set.
      let lz = w.leading_zeros();
      w <<= lz;
      let (lo, hi) = compute_product_approx(q, w, F::SIG_BITS as usize + 3);
      if lo == 0xFFFF_FFFF_FFFF_FFFF {
          let inside_safe_exponent = (q >= -27) && (q <= 55);
          if !inside_safe_exponent {
              return fp_error;
          }
      }
      let upperbit = (hi >> 63) as i32;
      let mut mantissa = hi >> (upperbit + 64 - F::SIG_BITS as i32 - 3);
      let mut power2 = power(q as i32) + upperbit - lz as i32 - F::EXP_MIN + 1;
      if power2 <= 0 {
          if -power2 + 1 >= 64 {
              // Have more than 64 bits below the minimum exponent, must be 0.
              return fp_zero;
          }
          // Have a subnormal value.
          mantissa >>= -power2 + 1;
          mantissa += mantissa & 1;
          mantissa >>= 1;
          power2 = (mantissa >= (1_u64 << F::SIG_BITS)) as i32;
          return BiasedFp { m: mantissa, p_biased: power2 };
      }
      // Need to handle rounding ties. Normally, we need to round up,
      // but if we fall right in between and we have an even basis, we
      // need to round down.
      if lo <= 1
          && q >= F::MIN_EXPONENT_ROUND_TO_EVEN as i64
          && q <= F::MAX_EXPONENT_ROUND_TO_EVEN as i64
          && mantissa & 0b11 == 0b01
          && (mantissa << (upperbit + 64 - F::SIG_BITS as i32 - 3)) == hi
      {
          // Zero the lowest bit, so we don't round up.
          mantissa &= !1_u64;
      }
      // Round-to-even, then shift the significant digits into place.
      mantissa += mantissa & 1;
      mantissa >>= 1;
      if mantissa >= (2_u64 << F::SIG_BITS) {
          // Rounding up overflowed, so the carry bit is set. Set the
          // mantissa to 1 (only the implicit, hidden bit is set) and
          // increase the exponent.
          mantissa = 1_u64 << F::SIG_BITS;
          power2 += 1;
      }
      // Zero out the hidden bit.
      mantissa &= !(1_u64 << F::SIG_BITS);
      if power2 >= F::INFINITE_POWER {
          // Exponent is above largest normal value, must be infinite.
          return fp_inf;
      }
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact slow-tier source body from crate/dec2flt/slow.rs:

  pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {
      const MAX_SHIFT: usize = 60;
      const NUM_POWERS: usize = 19;
      const POWERS: [u8; 19] =
          [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];

      let get_shift = |n| {
          if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }
      };

      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);

      let mut d = parse_decimal_seq(s);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if d.num_digits == 0 || d.decimal_point < -324 {
          return fp_zero;
      } else if d.decimal_point >= 310 {
          return fp_inf;
      }
      let mut exp2 = 0_i32;
      let mut loop_result = None;
      // Shift right toward (1/2 ... 1].
      while d.decimal_point > 0 && loop_result.is_none() {
          let n = d.decimal_point as usize;
          let shift = get_shift(n);
          d.right_shift(shift);
          if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_zero);
          } else {
              exp2 += shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // Shift left toward (1/2 ... 1].
      while d.decimal_point <= 0 && loop_result.is_none() {
          let shift = if d.decimal_point == 0 {
              match d.digits[0] {
                  digit if digit >= 5 => break,
                  0 | 1 => 2,
                  _ => 1,
              }
          } else {
              get_shift((-d.decimal_point) as _)
          };
          d.left_shift(shift);
          if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_inf);
          } else {
              exp2 -= shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
      exp2 -= 1;
      while F::EXP_MIN > exp2 {
          let mut n = (F::EXP_MIN - exp2) as usize;
          if n > MAX_SHIFT {
              n = MAX_SHIFT;
          }
          d.right_shift(n);
          exp2 += n as i32;
      }
      if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
          return fp_inf;
      }
      // Shift the decimal to the hidden bit, and then round the value
      // to get the high mantissa+1 bits.
      d.left_shift(F::SIG_BITS as usize + 1);
      let mut mantissa = d.round();
      if mantissa >= (1_u64 << (F::SIG_BITS + 1)) {
          // Rounding up overflowed to the carry bit, need to
          // shift back to the hidden bit.
          d.right_shift(1);
          exp2 += 1;
          mantissa = d.round();
          if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
              return fp_inf;
          }
      }
      let mut power2 = exp2 - F::EXP_MIN + 1;
      if mantissa < (1_u64 << F::SIG_BITS) {
          power2 -= 1;
      }
      // Zero out all the bits above the explicit mantissa bits.
      mantissa &= (1_u64 << F::SIG_BITS) - 1;
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact final numeric-sign excerpt from crate/dec2flt/mod.rs:

  let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
  let assembly_result = biased_fp_to_float::<F>(fp);
  let lexical_sign_applied = num.negative;
  let result = if lexical_sign_applied {
      core::ops::Neg::neg(assembly_result)
  } else {
      assembly_result
  };

Thus a numeric execution that reaches the integer/slow selection route
assembles its selected pair with from_bits through biased_fp_to_float and only
then conditionally negates it. A successful try_fast_path returns earlier and
does not perform this assembly. compute_float and parse_long_mantissa produce
raw BiasedFp pairs and do not call from_u64, primitive float multiplication,
division, negation, or from_bits; they do, however, execute constants derived
from SIG_TOTAL_BITS before producing those pairs.

Retained structural-boundary evidence
-------------------------------------

Several adjacent structural bindings cite this same evidence record. Their
pinned library source identities are:

  core/src/num/mod.rs
    f0820f9dfb94999440c8cb4a349736fa21df7e5668e19b6b49e016ff67c05ce3
  core/src/option.rs
    7cf61204b05d98a95bc2e322d5fbfc1f4f91505109971917d9a7fb47151c50e6
  core/src/slice/mod.rs
    354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840
  core/src/str/mod.rs
    284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78

Exact ASCII-digit body from core/src/num/mod.rs:

  pub const fn is_ascii_digit(&self) -> bool {
      matches!(*self, b'0'..=b'9')
  }

Exact Option control-flow bodies from core/src/option.rs:

  fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
      match self {
          Some(v) => ControlFlow::Continue(v),
          None => ControlFlow::Break(None),
      }
  }

  fn from_residual(residual: Option<convert::Infallible>) -> Self {
      match residual {
          None => None,
      }
  }

Exact slice observation bodies from core/src/slice/mod.rs:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

Exact string-byte body from core/src/str/mod.rs:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }
reference/model-evidence/binary64-probe.rs

Open file

#![feature(float_masks)]

use std::num::FpCategory;

fn bits(label: &str, value: f64) {
    println!("{label}={:016x}", value.to_bits());
}

fn main() {
    println!("target_arch={}", std::env::consts::ARCH);
    println!("mantissa_digits={}", f64::MANTISSA_DIGITS);
    println!("exponent_mask={:016x}", f64::EXPONENT_MASK);
    println!("mantissa_mask={:016x}", f64::MANTISSA_MASK);
    bits("nan", f64::NAN);
    bits("infinity", f64::INFINITY);
    bits("neg_infinity", f64::NEG_INFINITY);

    for (label, value) in [
        ("nan_category", f64::NAN),
        ("infinity_category", f64::INFINITY),
        ("zero_category", 0.0),
        ("subnormal_category", f64::from_bits(1)),
        ("normal_category", 1.0),
    ] {
        let category = match value.classify() {
            FpCategory::Nan => "Nan",
            FpCategory::Infinite => "Infinite",
            FpCategory::Zero => "Zero",
            FpCategory::Subnormal => "Subnormal",
            FpCategory::Normal => "Normal",
        };
        println!("{label}={category}");
    }

    let payload_nan_word = 0x7ff0_0000_0000_0001_u64;
    println!(
        "from_bits_to_bits={:016x}",
        f64::from_bits(payload_nan_word).to_bits()
    );
    bits("neg_payload_nan", -f64::from_bits(payload_nan_word));
    bits("neg_zero", -0.0);

    bits("subnormal_tie_to_even_zero", f64::from_bits(1) * 0.5);
    bits("subnormal_tie_to_even_two", f64::from_bits(3) * 0.5);
    bits("normal_division", 1.0 / 10.0);
    bits("mul_negative_zero", -0.0 * 2.0);
    bits("div_negative_zero", -1.0 / f64::INFINITY);
    bits("div_negative_infinity", 1.0 / -0.0);
    bits("mul_overflow", f64::MAX * (1.0 + f64::EPSILON));
    println!("mul_zero_infinity_is_nan={}", (0.0 * f64::INFINITY).is_nan());
    println!("div_zero_zero_is_nan={}", (0.0_f64 / 0.0_f64).is_nan());
    println!("mul_nan_is_nan={}", (f64::NAN * 1.0).is_nan());

    bits("cast_2_pow_53", (1_u64 << 53) as f64);
    bits("cast_2_pow_53_plus_1", ((1_u64 << 53) + 1) as f64);
}
Assumptions / kernel axioms
  • Classical.choice
  • Quot.sound
  • propext

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (32)
All 32 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourceTablet/model-support.json
Kindopaque external binding
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:19bb8646912bc74471053873dce16505d4151b2160a7083d0b33ec63dc20ac0b
Preservation current fingerprintpreservation-v1:19bb8646912bc74471053873dce16505d4151b2160a7083d0b33ec63dc20ac0b
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"b8b7cf0690e2428d01acbbf9bf6bef6fdb3f9341df552b26b74ed6e102c32ecc","lean_semantic_closure":"02593c098e85d6df521ae27a662f7e0cccae25cbd2b0b466e6e70737ec6a8a9a","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","Binary64ModelDefault":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","Binary64ModelDefault","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence current fingerprint{"own_tex":"b8b7cf0690e2428d01acbbf9bf6bef6fdb3f9341df552b26b74ed6e102c32ecc","lean_semantic_closure":"02593c098e85d6df521ae27a662f7e0cccae25cbd2b0b466e6e70737ec6a8a9a","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","Binary64ModelDefault":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","Binary64ModelDefault","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "b4bf6cb4e6311ab9df9fa33f9621dc1f31db2ce4761260252eb779b3f233e057",
    "dep_statement_hashes": {
      "Binary64ModelDefault": "be5dcc4afe23616ca8fd1d15d30fbbe4ee2621d68be3341b8e74a66e6dcd736f"
    },
    "combined_sound_fp": "preservation-v1:19bb8646912bc74471053873dce16505d4151b2160a7083d0b33ec63dc20ac0b"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Exact source record
{
  "name": "core.f64.F64.MANTISSA_DIGITS",
  "extracted_signature": ": Result Std.U32",
  "rust_symbol": "core::f64::{f64}::MANTISSA_DIGITS",
  "raw_declaration_sha256": "42b1b0c4d2c2bbc7271748fc78c518391f55bf6517c643667a6561a0ac6e771c",
  "node": "ModelF64MantissaDigits",
  "declaration": "dec2flt_model.ModelF64MantissaDigits"
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/binary64-boundary.txt",
    "sha256": "fa45c924747337e8d6f84a19fe9e83fb9b33c73434887c0cf57c062533f51fe1",
    "cited_by": [
      "Tablet/ModelF64MantissaDigits.tex",
      "Tablet/model-support.json"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-probe.rs",
    "sha256": "68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e",
    "cited_by": [
      "reference/model-evidence/binary64-boundary.txt"
    ]
  }
]

core::f64::{f64}::NAN

Inspect related source (1)

Related source and models come from the extraction records and declared dependencies.

Rust itemcore::f64::{f64}::NAN
Recorded source/rustc/library/core/src/num/f64.rs
Lines509:4–509:22

The related-source link includes this operation’s Rust standard-library implementation.

Opaque extraction signature
: Result F64
Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Tablet.Binary64ModelDefault
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelF64Nan]
def ModelF64Nan : Result F64 :=
-- BODY
  Binary64ModelDefault.nan
end dec2flt_model

Why this model is faithful

Definition

\mathsf{ModelF64Nan} returns the binary64 word \mathtt{0x7ff8000000000000} successfully.

Preservation argument

Claim

This binding returns the exact quiet-NaN word produced by f64::NAN on the frozen target and toolchain.

Proof

The definition is the NaN field of Binary64ModelDefault. The pinned target probe records 7ff8000000000000; see reference/model-evidence/binary64-boundary.txt.
Authored arguments for individual requirements

Requirement: assembly correspondence

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification significand digit

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch abstract composition

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch component compliance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: exponent value agreement

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: integer correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: native correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper accumulated value

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper record bounds

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser equal target rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser exact rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser invalid rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser nan acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser non nan results

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected exponent

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected magnitude sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser signed zero

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: slow accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper nan

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Recorded review

CorrespondencePass
PreservationVerifierPass

ModelF64Nan · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/binary64-boundary.txt

Open file

Primary evidence for the binary64 boundary
==========================================

Scope and identities
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction, the
adapted Rust crate retained in this repository, and the installed toolchain
named by modeling-input/SETUP.md. The probe source is retained at
reference/model-evidence/binary64-probe.rs; no scratch source is required to
reproduce it.

Toolchain executable:
  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
Target:
  x86_64-unknown-linux-gnu
rustc executable SHA-256:
  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
Probe source SHA-256:
  68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
Compiled probe SHA-256:
  f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
Frozen generated.lean SHA-256:
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9
Frozen modeling-input/manifest.json SHA-256:
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2
Approved Binary64ModelDefault.lean SHA-256 at the time of this record:
  03ae48fb631e6242bd21bf95d0481b66acae05f8cab343c7ab279b3c116538a3

Exact reproduction commands
---------------------------

Run from the repository root:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-probe.rs
  B=.trellis/scratch/binary64-probe
  "$R" --version --verbose
  sha256sum "$R"
  sha256sum "$P"
  "$R" --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$B"
  "$B"

Raw output
----------

  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
  rustc_sha256=162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  probe_sha256=68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
  binary_sha256=f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
  target_arch=x86_64
  mantissa_digits=53
  exponent_mask=7ff0000000000000
  mantissa_mask=000fffffffffffff
  nan=7ff8000000000000
  infinity=7ff0000000000000
  neg_infinity=fff0000000000000
  nan_category=Nan
  infinity_category=Infinite
  zero_category=Zero
  subnormal_category=Subnormal
  normal_category=Normal
  from_bits_to_bits=7ff0000000000001
  neg_payload_nan=fff0000000000001
  neg_zero=8000000000000000
  subnormal_tie_to_even_zero=0000000000000000
  subnormal_tie_to_even_two=0000000000000002
  normal_division=3fb999999999999a
  mul_negative_zero=8000000000000000
  div_negative_zero=8000000000000000
  div_negative_infinity=fff0000000000000
  mul_overflow=7ff0000000000000
  mul_zero_infinity_is_nan=true
  div_zero_zero_is_nan=true
  mul_nan_is_nan=true
  cast_2_pow_53=4340000000000000
  cast_2_pow_53_plus_1=4340000000000000

Pinned Rust library sources
---------------------------

The installed sources below belong to the same named toolchain. Their
SHA-256 identities are:

  core/src/primitive_docs.rs
    c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5
  core/src/num/f64.rs
    84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618
  core/src/clone.rs
    23f9cfc80347fde6b8457d46fbf7a2b8d9f34c8c58601b0b6f714ca2f6d1976b

The exact relevant text of core/src/primitive_docs.rs is:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The referenced primitive-f32 documentation supplies the common primitive
floating-point operation rules quoted next:

  /// - −0.0: IEEE 754 floating-point numbers have a bit that indicates their sign, so −0.0 is a
  ///   possible value. For comparison −0.0 = +0.0, but floating-point operations can carry
  ///   the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
  ///   a negative number rounded to a value smaller than a float can represent also produces −0.0.
  /// - [∞](#associatedconstant.INFINITY) and
  ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
  ///   like `1.0 / 0.0`.
  ///
  /// When a primitive operation (addition, subtraction, multiplication, or
  /// division) is performed on this type, the result is rounded according to the
  /// roundTiesToEven direction defined in IEEE 754-2008. That means:
  ///
  /// - The result is the representable value closest to the true value, if there
  ///   is a unique closest representable value.
  /// - If the true value is exactly half-way between two representable values,
  ///   the result is the one with an even least-significant binary digit.
  /// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
  ///   `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
  ///   true value's sign).

The same file explicitly separates arithmetic NaN choice from exact bitwise
operations; its exact relevant text is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.
  ///
  /// The following rules apply when a NaN value is returned from an arithmetic operation:
  /// - The result has a non-deterministic sign.
  /// - The quiet bit and payload are non-deterministically chosen from
  ///   the following set of options:
  ///
  ///   - **Preferred NaN**: The quiet bit is set and the payload is all-zero.
  ///   - **Quieting NaN propagation**: The quiet bit is set and the payload is copied from any input
  ///     operand that is a NaN. If the inputs and outputs do not have the same payload size (i.e., for
  ///     `as` casts), then
  ///     - If the output is smaller than the input, low-order bits of the payload get dropped.
  ///     - If the output is larger than the input, the payload gets filled up with 0s in the low-order
  ///       bits.
  ///   - **Unchanged NaN propagation**: The quiet bit and payload are copied from any input operand
  ///     that is a NaN. If the inputs and outputs do not have the same size (i.e., for `as` casts), the
  ///     same rules as for "quieting NaN propagation" apply, with one caveat: if the output is smaller
  ///     than the input, dropping the low-order bits may result in a payload of 0; a payload of 0 is not
  ///     possible with a signaling NaN (the all-0 significand encodes an infinity) so unchanged NaN
  ///     propagation cannot occur with some inputs.
  ///   - **Target-specific NaN**: The quiet bit is set and the payload is picked from a target-specific
  ///     set of "extra" possible NaN payloads. The set can depend on the input operand values.
  ///     See the table below for the concrete NaNs this set contains on various targets.
  ///
  /// | `target_arch` | Extra payloads possible on this platform |
  /// |---------------|------------------------------------------|
  /// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |

Thus the model's preferred quiet NaN is one permitted result whenever
multiplication or division returns NaN. This does not claim that arbitrary
Rust arithmetic NaNs have those exact bits. By contrast, unary negation and
bit conversion must preserve all non-sign bits exactly, including for every
NaN payload.

The exact relevant declarations in core/src/num/f64.rs are:

  pub const MANTISSA_DIGITS: u32 = 53;
  pub const NAN: f64 = 0.0_f64 / 0.0_f64;
  pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
  pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
  pub const SIGN_MASK: u64 = 0x8000_0000_0000_0000;
  pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;
  pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff;

  pub const fn classify(self) -> FpCategory {
      // We used to have complicated logic here that avoids the simple bit-based tests to work
      // around buggy codegen for x87 targets (see
      // https://github.com/rust-lang/rust/issues/114479). However, some LLVM versions later, none
      // of our tests is able to find any difference between the complicated and the naive
      // version, so now we are back to the naive version.
      let b = self.to_bits();
      match (b & Self::MANTISSA_MASK, b & Self::EXPONENT_MASK) {
          (0, Self::EXPONENT_MASK) => FpCategory::Infinite,
          (_, Self::EXPONENT_MASK) => FpCategory::Nan,
          (0, 0) => FpCategory::Zero,
          (_, 0) => FpCategory::Subnormal,
          _ => FpCategory::Normal,
      }
  }

  pub const fn to_bits(self) -> u64 {
      // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
      unsafe { mem::transmute(self) }
  }

  pub const fn from_bits(v: u64) -> Self {
      // It turns out the safety issues with sNaN were overblown! Hooray!
      // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
      unsafe { mem::transmute(v) }
  }

The exact scalar clone body in core/src/clone.rs is:

  impl const Clone for $t {
      #[inline(always)]
      fn clone(&self) -> Self {
          *self
      }
  }

Frozen adapted source
---------------------

The relevant retained source file hashes are:

  crate/traits.rs
    9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  crate/dec2flt/decimal.rs
    633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb
  crate/dec2flt/lemire.rs
    fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1
  crate/dec2flt/slow.rs
    93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485

The dispatcher excerpts below are reproduced from the identified file by
running these commands from the repository root:

  sha256sum crate/dec2flt/mod.rs
  sed -n '354,403p' crate/dec2flt/mod.rs
  sed -n '405,422p' crate/dec2flt/mod.rs
  sed -n '465,475p' crate/dec2flt/mod.rs
  sed -n '506,523p' crate/dec2flt/mod.rs

Exact constant and bit-conversion excerpt from crate/traits.rs:

  impl Float for f64 {
      type Int = u64;

      const INFINITY: Self = Self::INFINITY;
      const NEG_INFINITY: Self = Self::NEG_INFINITY;
      const NAN: Self = Self::NAN;
      // Bit-identical to the upstream `-f64::NAN`, without the unsupported
      // compile-time float negation.
      const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);

      const BITS: u32 = 64;
      const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
      const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
      const SIG_MASK: Self::Int = Self::MANTISSA_MASK;

      fn to_bits(self) -> Self::Int {
          self.to_bits()
      }

      fn classify(self) -> FpCategory {
          self.classify()
      }
  }

  impl FloatExt for f64 {
      #[inline]
      fn from_u64_bits(v: u64) -> Self {
          f64::from_bits(v)
      }

Exact derived-constant defaults from crate/traits.rs:

  /// The number of bits in the significand, *excluding* the hidden bit.
  const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;

  /// Number of bits in the exponent.
  const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

  /// The saturated (maximum bitpattern) value of the exponent, i.e. the infinite
  /// representation.
  ///
  /// This shifted fully right, use `EXP_MASK` for the shifted value.
  const EXP_SAT: u32 = (1 << Self::EXP_BITS) - 1;

  /// Signed version of `EXP_SAT` since we convert a lot.
  const INFINITE_POWER: i32 = Self::EXP_SAT as i32;

  /// The exponent bias value. This is also the maximum value of the exponent.
  const EXP_BIAS: u32 = Self::EXP_SAT >> 1;

  /// Minimum exponent value of normal values.
  const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Together with the f64-instance lines `BITS = 64` and
`SIG_TOTAL_BITS = Self::MANTISSA_DIGITS` in the preceding excerpt, these
defaults derive SIG_BITS, EXP_MIN, and INFINITE_POWER from the primitive
mantissa-digit constant rather than introducing independent parameters.

Exact asserted-conversion excerpt from crate/dec2flt/mod.rs:

  #[inline]
  // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
  // `charon::opaque` makes this entire asserted conversion external: both the
  // unchanged `debug_assert!` and the unchanged cast below are in the opaque
  // body. The callers, their fast-path guards, and their surrounding
  // computation remain mechanically visible. A corresponding model binding
  // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
  // exact binary64 conversion at or below that bound.
  #[charon::opaque]
  fn from_u64(v: u64) -> Self {
      debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
      v as _
  }

Here MAX_MANTISSA_FAST_PATH is the retained default 1 << 53.  The attribute is
attached to the function item, so the generated external stands for the whole
method, not merely the cast.  In the enabled-debug configuration the source
succeeds only when v <= 2^53; above it the assertion fails before the cast. On
the successful branch every integer is exactly representable, so the source
cast and the model rounder return the same word.

Exact power-table and assembly excerpts from crate/dec2flt/mod.rs:

  /// Maximum mantissa for the fast-path (`1 << 53` for f64).
  const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;

  const MAX_EXPONENT_FAST_PATH: i64 = 22;
  const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
  const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;

  fn pow10_fast_path(exponent: usize) -> Self {
      // These bit patterns are exactly the source table's rounded binary64
      // literals.  The match is the same masked lookup; it merely keeps float
      // constants out of Aeneas's unsupported constant interpreter.
      match exponent & 31 {
          0 => f64::from_bits(0x3FF0_0000_0000_0000),
          1 => f64::from_bits(0x4024_0000_0000_0000),
          2 => f64::from_bits(0x4059_0000_0000_0000),
          3 => f64::from_bits(0x408F_4000_0000_0000),
          4 => f64::from_bits(0x40C3_8800_0000_0000),
          5 => f64::from_bits(0x40F8_6A00_0000_0000),
          6 => f64::from_bits(0x412E_8480_0000_0000),
          7 => f64::from_bits(0x4163_12D0_0000_0000),
          8 => f64::from_bits(0x4197_D784_0000_0000),
          9 => f64::from_bits(0x41CD_CD65_0000_0000),
          10 => f64::from_bits(0x4202_A05F_2000_0000),
          11 => f64::from_bits(0x4237_4876_E800_0000),
          12 => f64::from_bits(0x426D_1A94_A200_0000),
          13 => f64::from_bits(0x42A2_309C_E540_0000),
          14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
          15 => f64::from_bits(0x430C_6BF5_2634_0000),
          16 => f64::from_bits(0x4341_C379_37E0_8000),
          17 => f64::from_bits(0x4376_3457_85D8_A000),
          18 => f64::from_bits(0x43AB_C16D_674E_C800),
          19 => f64::from_bits(0x43E1_58E4_6091_3D00),
          20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
          21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
          22 => f64::from_bits(0x4480_F0CF_064D_D592),
          _ => f64::from_bits(0),
      }
  }

  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

Exact native-call excerpt from crate/dec2flt/decimal.rs:

  fn can_use_fast_path<F: Lemire>(&self) -> bool {
      F::MIN_EXPONENT_FAST_PATH <= self.exponent
          && self.exponent <= F::MAX_EXPONENT_DISGUISED_FAST_PATH
          && self.mantissa <= F::MAX_MANTISSA_FAST_PATH
          && !self.many_digits
  }

  if !self.can_use_fast_path::<F>() {
      return None;
  }

  let value = if self.exponent <= F::MAX_EXPONENT_FAST_PATH {
      // normal fast path
      let value = F::from_u64(self.mantissa);
      if self.exponent < 0 {
          // Explicit trait calls preserve Rust arithmetic and resolve
          // the generic output type that Charon leaves ambiguous.
          core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
      } else {
          core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
      }
  } else {
      // disguised fast path
      let shift = self.exponent - F::MAX_EXPONENT_FAST_PATH;
      let mantissa = self.mantissa.checked_mul(INT_POW10[shift as usize])?;
      if mantissa > F::MAX_MANTISSA_FAST_PATH {
          return None;
      }
      core::ops::Mul::mul(
          F::from_u64(mantissa),
          F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
      )
  };

  if self.negative {
      Some(core::ops::Neg::neg(value))
  } else {
      Some(value)
  }

The preceding can_use_fast_path body, together with
MAX_MANTISSA_FAST_PATH = 1 << SIG_TOTAL_BITS and SIG_TOTAL_BITS = 53 for f64,
requires the exponent to lie between -22 and 37, the input mantissa to be at
most 2^53, and many_digits to be false. Consequently an ordinary arithmetic
call has a from_u64 operand in 0..=2^53. In its negative-exponent arm,
`-self.exponent` lies in 1..=22; in its nonnegative arm, `self.exponent` lies
in 0..=22. The disguised branch checks its multiplied mantissa against 2^53
before from_u64 and uses table index 22. The paired statement
Binary64NativeCallDomain does not assert this source reachability. It says
conditionally that a from_u64 argument at most 2^53 succeeds with a finite,
non-NaN word and that a table index at most 22 succeeds with a positive,
nonzero, finite, non-NaN word. Applying that conditional statement to the
guards just derived establishes those properties for the actual ordinary and
disguised calls, and in particular establishes that every executed divisor is
nonzero.

Exact special-value excerpt from crate/dec2flt/parse.rs:

  let float = match (register, len) {
      (INF_3, 3) => F::INFINITY,
      (INF_8, 8) => F::INFINITY,
      (NAN, 3) => F::NAN,
      _ => return None,
  };

  if negative { Some(-float) } else { Some(float) }

Thus the executed special route is INFINITY or NAN followed by conditional
negation; it does not select NEG_INFINITY or NEG_NAN directly.

The number helper has the exact source body

  pub fn parse_number(s: &[u8]) -> Option<Decimal> {
      if let Some((float, rest)) = parse_partial_number(s) {
          if rest == s.len() {
              return Some(float);
          }
      }
      None
  }

It returns only the Decimal produced by parse_partial_number; there is no
float type parameter or float operation at this boundary.

Exact dispatcher excerpts from crate/dec2flt/mod.rs
---------------------------------------------------

The entry of `dec2flt_with_trace` strips at most one leading sign, rejects
empty and sign-only inputs, calls `parse_number` on the unsigned body, and
calls `parse_inf_nan` only when `parse_number` returns `None`:

  /// Run the actual dispatcher while retaining its approved internal observations.
  pub fn dec2flt_with_trace<
      'a,
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {
          return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
      };
      let negative = c == b'-';
      if c == b'-' || c == b'+' {
          body = &body[1..];
      }
      if body.is_empty() {
          return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
      }

      let parse_number_result = parse_number(body);
      let parsed = match parse_number_result {
          Some(r) => r,
          None => {
              let parse_inf_nan_result = parse_inf_nan(body, negative);
              return match parse_inf_nan_result {
                  Some(value) => (
                      Ok(value),
                      Dec2FltTrace::Special {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                          result: value,
                      },
                  ),
                  None => (
                      Err(pfe_invalid()),
                      Dec2FltTrace::Invalid {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                      },
                  ),
              };
          }
      };

Thus every `Err` arm shown here returns before `parsed` is available and before
the native, integer, slow, assembly, or final-negation code below it can run.
On a numeric result, the lexical sign is copied into the parsed record before
the native attempt, whose successful result also returns before raw-pair
assembly:

      let mut num = parsed;
      num.negative = negative;
      if !cfg!(feature = "optimize_for_size") {
          let fast_path_result = num.try_fast_path::<F>();
          if let Some(value) = fast_path_result {
              return (
                  Ok(value),
                  Dec2FltTrace::FastPath {
                      body,
                      negative,
                      parse_number_result,
                      fast_path_input: num,
                      fast_path_result,
                      result: value,
                  },
              );
          }
      }

If the native attempt does not return, the selected raw pair is assembled and
the source then conditionally negates it according to the lexical-sign flag:

      let selected_pair = fp;
      // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
      // it neither changes the selected pair nor introduces a new branch or call.
      let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
      let assembly_result = biased_fp_to_float::<F>(fp);
      let lexical_sign_applied = num.negative;
      let result = if lexical_sign_applied {
          core::ops::Neg::neg(assembly_result)
      } else {
          assembly_result
      };

The public `dec2flt` executes that same route and returns its result projection;
it does not reimplement or reorder any parsing or float operation:

  /// Converts a decimal string into a floating point number.
  #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
  pub fn dec2flt<
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &str,
  ) -> Result<F, ParseFloatError> {
      // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
      // clause admits exactly the same instances and lets Charon resolve the
      // explicit, source-equivalent final negation.
      // The public function is now exactly the result projection of the single
      // instrumented implementation.  No conversion step is duplicated, and
      // discarding the trace cannot affect Rust evaluation or the returned bits.
      dec2flt_with_trace::<F>(s).0
  }

The integer-tier helper has the source type and exact executable excerpts
below (long explanatory comments are elided). In particular it returns a raw
BiasedFp and contains no from_u64 cast, primitive float multiplication,
division, negation, or from_bits call:

  pub fn compute_float<F: Float>(q: i64, mut w: u64) -> BiasedFp {
      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);
      let fp_error = BiasedFp::zero_pow2(-1);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if w == 0 || q < F::SMALLEST_POWER_OF_TEN as i64 {
          return fp_zero;
      } else if q > F::LARGEST_POWER_OF_TEN as i64 {
          return fp_inf;
      }
      // Normalize our significant digits, so the most-significant bit is set.
      let lz = w.leading_zeros();
      w <<= lz;
      let (lo, hi) = compute_product_approx(q, w, F::SIG_BITS as usize + 3);
      if lo == 0xFFFF_FFFF_FFFF_FFFF {
          let inside_safe_exponent = (q >= -27) && (q <= 55);
          if !inside_safe_exponent {
              return fp_error;
          }
      }
      let upperbit = (hi >> 63) as i32;
      let mut mantissa = hi >> (upperbit + 64 - F::SIG_BITS as i32 - 3);
      let mut power2 = power(q as i32) + upperbit - lz as i32 - F::EXP_MIN + 1;
      if power2 <= 0 {
          if -power2 + 1 >= 64 {
              // Have more than 64 bits below the minimum exponent, must be 0.
              return fp_zero;
          }
          // Have a subnormal value.
          mantissa >>= -power2 + 1;
          mantissa += mantissa & 1;
          mantissa >>= 1;
          power2 = (mantissa >= (1_u64 << F::SIG_BITS)) as i32;
          return BiasedFp { m: mantissa, p_biased: power2 };
      }
      // Need to handle rounding ties. Normally, we need to round up,
      // but if we fall right in between and we have an even basis, we
      // need to round down.
      if lo <= 1
          && q >= F::MIN_EXPONENT_ROUND_TO_EVEN as i64
          && q <= F::MAX_EXPONENT_ROUND_TO_EVEN as i64
          && mantissa & 0b11 == 0b01
          && (mantissa << (upperbit + 64 - F::SIG_BITS as i32 - 3)) == hi
      {
          // Zero the lowest bit, so we don't round up.
          mantissa &= !1_u64;
      }
      // Round-to-even, then shift the significant digits into place.
      mantissa += mantissa & 1;
      mantissa >>= 1;
      if mantissa >= (2_u64 << F::SIG_BITS) {
          // Rounding up overflowed, so the carry bit is set. Set the
          // mantissa to 1 (only the implicit, hidden bit is set) and
          // increase the exponent.
          mantissa = 1_u64 << F::SIG_BITS;
          power2 += 1;
      }
      // Zero out the hidden bit.
      mantissa &= !(1_u64 << F::SIG_BITS);
      if power2 >= F::INFINITE_POWER {
          // Exponent is above largest normal value, must be infinite.
          return fp_inf;
      }
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact slow-tier source body from crate/dec2flt/slow.rs:

  pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {
      const MAX_SHIFT: usize = 60;
      const NUM_POWERS: usize = 19;
      const POWERS: [u8; 19] =
          [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];

      let get_shift = |n| {
          if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }
      };

      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);

      let mut d = parse_decimal_seq(s);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if d.num_digits == 0 || d.decimal_point < -324 {
          return fp_zero;
      } else if d.decimal_point >= 310 {
          return fp_inf;
      }
      let mut exp2 = 0_i32;
      let mut loop_result = None;
      // Shift right toward (1/2 ... 1].
      while d.decimal_point > 0 && loop_result.is_none() {
          let n = d.decimal_point as usize;
          let shift = get_shift(n);
          d.right_shift(shift);
          if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_zero);
          } else {
              exp2 += shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // Shift left toward (1/2 ... 1].
      while d.decimal_point <= 0 && loop_result.is_none() {
          let shift = if d.decimal_point == 0 {
              match d.digits[0] {
                  digit if digit >= 5 => break,
                  0 | 1 => 2,
                  _ => 1,
              }
          } else {
              get_shift((-d.decimal_point) as _)
          };
          d.left_shift(shift);
          if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_inf);
          } else {
              exp2 -= shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
      exp2 -= 1;
      while F::EXP_MIN > exp2 {
          let mut n = (F::EXP_MIN - exp2) as usize;
          if n > MAX_SHIFT {
              n = MAX_SHIFT;
          }
          d.right_shift(n);
          exp2 += n as i32;
      }
      if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
          return fp_inf;
      }
      // Shift the decimal to the hidden bit, and then round the value
      // to get the high mantissa+1 bits.
      d.left_shift(F::SIG_BITS as usize + 1);
      let mut mantissa = d.round();
      if mantissa >= (1_u64 << (F::SIG_BITS + 1)) {
          // Rounding up overflowed to the carry bit, need to
          // shift back to the hidden bit.
          d.right_shift(1);
          exp2 += 1;
          mantissa = d.round();
          if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
              return fp_inf;
          }
      }
      let mut power2 = exp2 - F::EXP_MIN + 1;
      if mantissa < (1_u64 << F::SIG_BITS) {
          power2 -= 1;
      }
      // Zero out all the bits above the explicit mantissa bits.
      mantissa &= (1_u64 << F::SIG_BITS) - 1;
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact final numeric-sign excerpt from crate/dec2flt/mod.rs:

  let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
  let assembly_result = biased_fp_to_float::<F>(fp);
  let lexical_sign_applied = num.negative;
  let result = if lexical_sign_applied {
      core::ops::Neg::neg(assembly_result)
  } else {
      assembly_result
  };

Thus a numeric execution that reaches the integer/slow selection route
assembles its selected pair with from_bits through biased_fp_to_float and only
then conditionally negates it. A successful try_fast_path returns earlier and
does not perform this assembly. compute_float and parse_long_mantissa produce
raw BiasedFp pairs and do not call from_u64, primitive float multiplication,
division, negation, or from_bits; they do, however, execute constants derived
from SIG_TOTAL_BITS before producing those pairs.

Retained structural-boundary evidence
-------------------------------------

Several adjacent structural bindings cite this same evidence record. Their
pinned library source identities are:

  core/src/num/mod.rs
    f0820f9dfb94999440c8cb4a349736fa21df7e5668e19b6b49e016ff67c05ce3
  core/src/option.rs
    7cf61204b05d98a95bc2e322d5fbfc1f4f91505109971917d9a7fb47151c50e6
  core/src/slice/mod.rs
    354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840
  core/src/str/mod.rs
    284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78

Exact ASCII-digit body from core/src/num/mod.rs:

  pub const fn is_ascii_digit(&self) -> bool {
      matches!(*self, b'0'..=b'9')
  }

Exact Option control-flow bodies from core/src/option.rs:

  fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
      match self {
          Some(v) => ControlFlow::Continue(v),
          None => ControlFlow::Break(None),
      }
  }

  fn from_residual(residual: Option<convert::Infallible>) -> Self {
      match residual {
          None => None,
      }
  }

Exact slice observation bodies from core/src/slice/mod.rs:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

Exact string-byte body from core/src/str/mod.rs:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }
reference/model-evidence/binary64-probe.rs

Open file

#![feature(float_masks)]

use std::num::FpCategory;

fn bits(label: &str, value: f64) {
    println!("{label}={:016x}", value.to_bits());
}

fn main() {
    println!("target_arch={}", std::env::consts::ARCH);
    println!("mantissa_digits={}", f64::MANTISSA_DIGITS);
    println!("exponent_mask={:016x}", f64::EXPONENT_MASK);
    println!("mantissa_mask={:016x}", f64::MANTISSA_MASK);
    bits("nan", f64::NAN);
    bits("infinity", f64::INFINITY);
    bits("neg_infinity", f64::NEG_INFINITY);

    for (label, value) in [
        ("nan_category", f64::NAN),
        ("infinity_category", f64::INFINITY),
        ("zero_category", 0.0),
        ("subnormal_category", f64::from_bits(1)),
        ("normal_category", 1.0),
    ] {
        let category = match value.classify() {
            FpCategory::Nan => "Nan",
            FpCategory::Infinite => "Infinite",
            FpCategory::Zero => "Zero",
            FpCategory::Subnormal => "Subnormal",
            FpCategory::Normal => "Normal",
        };
        println!("{label}={category}");
    }

    let payload_nan_word = 0x7ff0_0000_0000_0001_u64;
    println!(
        "from_bits_to_bits={:016x}",
        f64::from_bits(payload_nan_word).to_bits()
    );
    bits("neg_payload_nan", -f64::from_bits(payload_nan_word));
    bits("neg_zero", -0.0);

    bits("subnormal_tie_to_even_zero", f64::from_bits(1) * 0.5);
    bits("subnormal_tie_to_even_two", f64::from_bits(3) * 0.5);
    bits("normal_division", 1.0 / 10.0);
    bits("mul_negative_zero", -0.0 * 2.0);
    bits("div_negative_zero", -1.0 / f64::INFINITY);
    bits("div_negative_infinity", 1.0 / -0.0);
    bits("mul_overflow", f64::MAX * (1.0 + f64::EPSILON));
    println!("mul_zero_infinity_is_nan={}", (0.0 * f64::INFINITY).is_nan());
    println!("div_zero_zero_is_nan={}", (0.0_f64 / 0.0_f64).is_nan());
    println!("mul_nan_is_nan={}", (f64::NAN * 1.0).is_nan());

    bits("cast_2_pow_53", (1_u64 << 53) as f64);
    bits("cast_2_pow_53_plus_1", ((1_u64 << 53) + 1) as f64);
}
Assumptions / kernel axioms
  • Classical.choice
  • Quot.sound
  • propext

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (32)
All 32 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourceTablet/model-support.json
Kindopaque external binding
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:1074df2efd3276342d7d7a8479c7c8db2f08f2b70b6cf6812dd95958879ec7b2
Preservation current fingerprintpreservation-v1:1074df2efd3276342d7d7a8479c7c8db2f08f2b70b6cf6812dd95958879ec7b2
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"3f83a9cfc9a7c9ad2cff00d1d84b47ab28751d2b89c22102bfe1c1793dbb6c8f","lean_semantic_closure":"b62ab7da14ebbf932a286022eba8b264942a2ef611d3b03e9f9f9bc3ff5b78c2","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","Binary64ModelDefault":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","Binary64ModelDefault","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence current fingerprint{"own_tex":"3f83a9cfc9a7c9ad2cff00d1d84b47ab28751d2b89c22102bfe1c1793dbb6c8f","lean_semantic_closure":"b62ab7da14ebbf932a286022eba8b264942a2ef611d3b03e9f9f9bc3ff5b78c2","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","Binary64ModelDefault":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","Binary64ModelDefault","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "9d079a25aa5cbc4b72a88eb74515a07bb31aad3c29d64c081c3f13f33db6c203",
    "dep_statement_hashes": {
      "Binary64ModelDefault": "be5dcc4afe23616ca8fd1d15d30fbbe4ee2621d68be3341b8e74a66e6dcd736f"
    },
    "combined_sound_fp": "preservation-v1:1074df2efd3276342d7d7a8479c7c8db2f08f2b70b6cf6812dd95958879ec7b2"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Exact source record
{
  "name": "core.f64.F64.NAN",
  "extracted_signature": ": Result F64",
  "rust_symbol": "core::f64::{f64}::NAN",
  "raw_declaration_sha256": "a18685a80db5dbebe39151c7375a0470bb3905fe1228e5598a995a1cf017a768",
  "node": "ModelF64Nan",
  "declaration": "dec2flt_model.ModelF64Nan"
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/binary64-boundary.txt",
    "sha256": "fa45c924747337e8d6f84a19fe9e83fb9b33c73434887c0cf57c062533f51fe1",
    "cited_by": [
      "Tablet/ModelF64Nan.tex",
      "Tablet/model-support.json"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-probe.rs",
    "sha256": "68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e",
    "cited_by": [
      "reference/model-evidence/binary64-boundary.txt"
    ]
  }
]

core::f64::{f64}::INFINITY

Inspect related source (1)

Related source and models come from the extraction records and declared dependencies.

Rust itemcore::f64::{f64}::INFINITY
Recorded source/rustc/library/core/src/num/f64.rs
Lines512:4–512:27

The related-source link includes this operation’s Rust standard-library implementation.

Opaque extraction signature
: Result F64
Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Tablet.Binary64ModelDefault
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelF64Infinity]
def ModelF64Infinity : Result F64 :=
-- BODY
  Binary64ModelDefault.infinity
end dec2flt_model

Why this model is faithful

Definition

\mathsf{ModelF64Infinity} returns the binary64 positive-infinity word \mathtt{0x7ff0000000000000} successfully.

Preservation argument

Claim

This binding returns the exact source positive-infinity word.

Proof

The definition is the infinity field of Binary64ModelDefault; the frozen source and target probe both give 7ff0000000000000, as recorded in reference/model-evidence/binary64-boundary.txt.
Authored arguments for individual requirements

Requirement: assembly correspondence

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification significand digit

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch abstract composition

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch component compliance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: exponent value agreement

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: integer correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: native correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper accumulated value

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper record bounds

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser equal target rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser exact rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser invalid rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser nan acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser non nan results

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected exponent

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected magnitude sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser signed zero

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: slow accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper nan

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Recorded review

CorrespondencePass
PreservationVerifierPass

ModelF64Infinity · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/binary64-boundary.txt

Open file

Primary evidence for the binary64 boundary
==========================================

Scope and identities
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction, the
adapted Rust crate retained in this repository, and the installed toolchain
named by modeling-input/SETUP.md. The probe source is retained at
reference/model-evidence/binary64-probe.rs; no scratch source is required to
reproduce it.

Toolchain executable:
  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
Target:
  x86_64-unknown-linux-gnu
rustc executable SHA-256:
  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
Probe source SHA-256:
  68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
Compiled probe SHA-256:
  f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
Frozen generated.lean SHA-256:
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9
Frozen modeling-input/manifest.json SHA-256:
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2
Approved Binary64ModelDefault.lean SHA-256 at the time of this record:
  03ae48fb631e6242bd21bf95d0481b66acae05f8cab343c7ab279b3c116538a3

Exact reproduction commands
---------------------------

Run from the repository root:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-probe.rs
  B=.trellis/scratch/binary64-probe
  "$R" --version --verbose
  sha256sum "$R"
  sha256sum "$P"
  "$R" --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$B"
  "$B"

Raw output
----------

  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
  rustc_sha256=162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  probe_sha256=68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
  binary_sha256=f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
  target_arch=x86_64
  mantissa_digits=53
  exponent_mask=7ff0000000000000
  mantissa_mask=000fffffffffffff
  nan=7ff8000000000000
  infinity=7ff0000000000000
  neg_infinity=fff0000000000000
  nan_category=Nan
  infinity_category=Infinite
  zero_category=Zero
  subnormal_category=Subnormal
  normal_category=Normal
  from_bits_to_bits=7ff0000000000001
  neg_payload_nan=fff0000000000001
  neg_zero=8000000000000000
  subnormal_tie_to_even_zero=0000000000000000
  subnormal_tie_to_even_two=0000000000000002
  normal_division=3fb999999999999a
  mul_negative_zero=8000000000000000
  div_negative_zero=8000000000000000
  div_negative_infinity=fff0000000000000
  mul_overflow=7ff0000000000000
  mul_zero_infinity_is_nan=true
  div_zero_zero_is_nan=true
  mul_nan_is_nan=true
  cast_2_pow_53=4340000000000000
  cast_2_pow_53_plus_1=4340000000000000

Pinned Rust library sources
---------------------------

The installed sources below belong to the same named toolchain. Their
SHA-256 identities are:

  core/src/primitive_docs.rs
    c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5
  core/src/num/f64.rs
    84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618
  core/src/clone.rs
    23f9cfc80347fde6b8457d46fbf7a2b8d9f34c8c58601b0b6f714ca2f6d1976b

The exact relevant text of core/src/primitive_docs.rs is:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The referenced primitive-f32 documentation supplies the common primitive
floating-point operation rules quoted next:

  /// - −0.0: IEEE 754 floating-point numbers have a bit that indicates their sign, so −0.0 is a
  ///   possible value. For comparison −0.0 = +0.0, but floating-point operations can carry
  ///   the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
  ///   a negative number rounded to a value smaller than a float can represent also produces −0.0.
  /// - [∞](#associatedconstant.INFINITY) and
  ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
  ///   like `1.0 / 0.0`.
  ///
  /// When a primitive operation (addition, subtraction, multiplication, or
  /// division) is performed on this type, the result is rounded according to the
  /// roundTiesToEven direction defined in IEEE 754-2008. That means:
  ///
  /// - The result is the representable value closest to the true value, if there
  ///   is a unique closest representable value.
  /// - If the true value is exactly half-way between two representable values,
  ///   the result is the one with an even least-significant binary digit.
  /// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
  ///   `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
  ///   true value's sign).

The same file explicitly separates arithmetic NaN choice from exact bitwise
operations; its exact relevant text is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.
  ///
  /// The following rules apply when a NaN value is returned from an arithmetic operation:
  /// - The result has a non-deterministic sign.
  /// - The quiet bit and payload are non-deterministically chosen from
  ///   the following set of options:
  ///
  ///   - **Preferred NaN**: The quiet bit is set and the payload is all-zero.
  ///   - **Quieting NaN propagation**: The quiet bit is set and the payload is copied from any input
  ///     operand that is a NaN. If the inputs and outputs do not have the same payload size (i.e., for
  ///     `as` casts), then
  ///     - If the output is smaller than the input, low-order bits of the payload get dropped.
  ///     - If the output is larger than the input, the payload gets filled up with 0s in the low-order
  ///       bits.
  ///   - **Unchanged NaN propagation**: The quiet bit and payload are copied from any input operand
  ///     that is a NaN. If the inputs and outputs do not have the same size (i.e., for `as` casts), the
  ///     same rules as for "quieting NaN propagation" apply, with one caveat: if the output is smaller
  ///     than the input, dropping the low-order bits may result in a payload of 0; a payload of 0 is not
  ///     possible with a signaling NaN (the all-0 significand encodes an infinity) so unchanged NaN
  ///     propagation cannot occur with some inputs.
  ///   - **Target-specific NaN**: The quiet bit is set and the payload is picked from a target-specific
  ///     set of "extra" possible NaN payloads. The set can depend on the input operand values.
  ///     See the table below for the concrete NaNs this set contains on various targets.
  ///
  /// | `target_arch` | Extra payloads possible on this platform |
  /// |---------------|------------------------------------------|
  /// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |

Thus the model's preferred quiet NaN is one permitted result whenever
multiplication or division returns NaN. This does not claim that arbitrary
Rust arithmetic NaNs have those exact bits. By contrast, unary negation and
bit conversion must preserve all non-sign bits exactly, including for every
NaN payload.

The exact relevant declarations in core/src/num/f64.rs are:

  pub const MANTISSA_DIGITS: u32 = 53;
  pub const NAN: f64 = 0.0_f64 / 0.0_f64;
  pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
  pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
  pub const SIGN_MASK: u64 = 0x8000_0000_0000_0000;
  pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;
  pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff;

  pub const fn classify(self) -> FpCategory {
      // We used to have complicated logic here that avoids the simple bit-based tests to work
      // around buggy codegen for x87 targets (see
      // https://github.com/rust-lang/rust/issues/114479). However, some LLVM versions later, none
      // of our tests is able to find any difference between the complicated and the naive
      // version, so now we are back to the naive version.
      let b = self.to_bits();
      match (b & Self::MANTISSA_MASK, b & Self::EXPONENT_MASK) {
          (0, Self::EXPONENT_MASK) => FpCategory::Infinite,
          (_, Self::EXPONENT_MASK) => FpCategory::Nan,
          (0, 0) => FpCategory::Zero,
          (_, 0) => FpCategory::Subnormal,
          _ => FpCategory::Normal,
      }
  }

  pub const fn to_bits(self) -> u64 {
      // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
      unsafe { mem::transmute(self) }
  }

  pub const fn from_bits(v: u64) -> Self {
      // It turns out the safety issues with sNaN were overblown! Hooray!
      // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
      unsafe { mem::transmute(v) }
  }

The exact scalar clone body in core/src/clone.rs is:

  impl const Clone for $t {
      #[inline(always)]
      fn clone(&self) -> Self {
          *self
      }
  }

Frozen adapted source
---------------------

The relevant retained source file hashes are:

  crate/traits.rs
    9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  crate/dec2flt/decimal.rs
    633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb
  crate/dec2flt/lemire.rs
    fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1
  crate/dec2flt/slow.rs
    93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485

The dispatcher excerpts below are reproduced from the identified file by
running these commands from the repository root:

  sha256sum crate/dec2flt/mod.rs
  sed -n '354,403p' crate/dec2flt/mod.rs
  sed -n '405,422p' crate/dec2flt/mod.rs
  sed -n '465,475p' crate/dec2flt/mod.rs
  sed -n '506,523p' crate/dec2flt/mod.rs

Exact constant and bit-conversion excerpt from crate/traits.rs:

  impl Float for f64 {
      type Int = u64;

      const INFINITY: Self = Self::INFINITY;
      const NEG_INFINITY: Self = Self::NEG_INFINITY;
      const NAN: Self = Self::NAN;
      // Bit-identical to the upstream `-f64::NAN`, without the unsupported
      // compile-time float negation.
      const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);

      const BITS: u32 = 64;
      const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
      const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
      const SIG_MASK: Self::Int = Self::MANTISSA_MASK;

      fn to_bits(self) -> Self::Int {
          self.to_bits()
      }

      fn classify(self) -> FpCategory {
          self.classify()
      }
  }

  impl FloatExt for f64 {
      #[inline]
      fn from_u64_bits(v: u64) -> Self {
          f64::from_bits(v)
      }

Exact derived-constant defaults from crate/traits.rs:

  /// The number of bits in the significand, *excluding* the hidden bit.
  const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;

  /// Number of bits in the exponent.
  const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

  /// The saturated (maximum bitpattern) value of the exponent, i.e. the infinite
  /// representation.
  ///
  /// This shifted fully right, use `EXP_MASK` for the shifted value.
  const EXP_SAT: u32 = (1 << Self::EXP_BITS) - 1;

  /// Signed version of `EXP_SAT` since we convert a lot.
  const INFINITE_POWER: i32 = Self::EXP_SAT as i32;

  /// The exponent bias value. This is also the maximum value of the exponent.
  const EXP_BIAS: u32 = Self::EXP_SAT >> 1;

  /// Minimum exponent value of normal values.
  const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Together with the f64-instance lines `BITS = 64` and
`SIG_TOTAL_BITS = Self::MANTISSA_DIGITS` in the preceding excerpt, these
defaults derive SIG_BITS, EXP_MIN, and INFINITE_POWER from the primitive
mantissa-digit constant rather than introducing independent parameters.

Exact asserted-conversion excerpt from crate/dec2flt/mod.rs:

  #[inline]
  // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
  // `charon::opaque` makes this entire asserted conversion external: both the
  // unchanged `debug_assert!` and the unchanged cast below are in the opaque
  // body. The callers, their fast-path guards, and their surrounding
  // computation remain mechanically visible. A corresponding model binding
  // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
  // exact binary64 conversion at or below that bound.
  #[charon::opaque]
  fn from_u64(v: u64) -> Self {
      debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
      v as _
  }

Here MAX_MANTISSA_FAST_PATH is the retained default 1 << 53.  The attribute is
attached to the function item, so the generated external stands for the whole
method, not merely the cast.  In the enabled-debug configuration the source
succeeds only when v <= 2^53; above it the assertion fails before the cast. On
the successful branch every integer is exactly representable, so the source
cast and the model rounder return the same word.

Exact power-table and assembly excerpts from crate/dec2flt/mod.rs:

  /// Maximum mantissa for the fast-path (`1 << 53` for f64).
  const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;

  const MAX_EXPONENT_FAST_PATH: i64 = 22;
  const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
  const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;

  fn pow10_fast_path(exponent: usize) -> Self {
      // These bit patterns are exactly the source table's rounded binary64
      // literals.  The match is the same masked lookup; it merely keeps float
      // constants out of Aeneas's unsupported constant interpreter.
      match exponent & 31 {
          0 => f64::from_bits(0x3FF0_0000_0000_0000),
          1 => f64::from_bits(0x4024_0000_0000_0000),
          2 => f64::from_bits(0x4059_0000_0000_0000),
          3 => f64::from_bits(0x408F_4000_0000_0000),
          4 => f64::from_bits(0x40C3_8800_0000_0000),
          5 => f64::from_bits(0x40F8_6A00_0000_0000),
          6 => f64::from_bits(0x412E_8480_0000_0000),
          7 => f64::from_bits(0x4163_12D0_0000_0000),
          8 => f64::from_bits(0x4197_D784_0000_0000),
          9 => f64::from_bits(0x41CD_CD65_0000_0000),
          10 => f64::from_bits(0x4202_A05F_2000_0000),
          11 => f64::from_bits(0x4237_4876_E800_0000),
          12 => f64::from_bits(0x426D_1A94_A200_0000),
          13 => f64::from_bits(0x42A2_309C_E540_0000),
          14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
          15 => f64::from_bits(0x430C_6BF5_2634_0000),
          16 => f64::from_bits(0x4341_C379_37E0_8000),
          17 => f64::from_bits(0x4376_3457_85D8_A000),
          18 => f64::from_bits(0x43AB_C16D_674E_C800),
          19 => f64::from_bits(0x43E1_58E4_6091_3D00),
          20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
          21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
          22 => f64::from_bits(0x4480_F0CF_064D_D592),
          _ => f64::from_bits(0),
      }
  }

  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

Exact native-call excerpt from crate/dec2flt/decimal.rs:

  fn can_use_fast_path<F: Lemire>(&self) -> bool {
      F::MIN_EXPONENT_FAST_PATH <= self.exponent
          && self.exponent <= F::MAX_EXPONENT_DISGUISED_FAST_PATH
          && self.mantissa <= F::MAX_MANTISSA_FAST_PATH
          && !self.many_digits
  }

  if !self.can_use_fast_path::<F>() {
      return None;
  }

  let value = if self.exponent <= F::MAX_EXPONENT_FAST_PATH {
      // normal fast path
      let value = F::from_u64(self.mantissa);
      if self.exponent < 0 {
          // Explicit trait calls preserve Rust arithmetic and resolve
          // the generic output type that Charon leaves ambiguous.
          core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
      } else {
          core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
      }
  } else {
      // disguised fast path
      let shift = self.exponent - F::MAX_EXPONENT_FAST_PATH;
      let mantissa = self.mantissa.checked_mul(INT_POW10[shift as usize])?;
      if mantissa > F::MAX_MANTISSA_FAST_PATH {
          return None;
      }
      core::ops::Mul::mul(
          F::from_u64(mantissa),
          F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
      )
  };

  if self.negative {
      Some(core::ops::Neg::neg(value))
  } else {
      Some(value)
  }

The preceding can_use_fast_path body, together with
MAX_MANTISSA_FAST_PATH = 1 << SIG_TOTAL_BITS and SIG_TOTAL_BITS = 53 for f64,
requires the exponent to lie between -22 and 37, the input mantissa to be at
most 2^53, and many_digits to be false. Consequently an ordinary arithmetic
call has a from_u64 operand in 0..=2^53. In its negative-exponent arm,
`-self.exponent` lies in 1..=22; in its nonnegative arm, `self.exponent` lies
in 0..=22. The disguised branch checks its multiplied mantissa against 2^53
before from_u64 and uses table index 22. The paired statement
Binary64NativeCallDomain does not assert this source reachability. It says
conditionally that a from_u64 argument at most 2^53 succeeds with a finite,
non-NaN word and that a table index at most 22 succeeds with a positive,
nonzero, finite, non-NaN word. Applying that conditional statement to the
guards just derived establishes those properties for the actual ordinary and
disguised calls, and in particular establishes that every executed divisor is
nonzero.

Exact special-value excerpt from crate/dec2flt/parse.rs:

  let float = match (register, len) {
      (INF_3, 3) => F::INFINITY,
      (INF_8, 8) => F::INFINITY,
      (NAN, 3) => F::NAN,
      _ => return None,
  };

  if negative { Some(-float) } else { Some(float) }

Thus the executed special route is INFINITY or NAN followed by conditional
negation; it does not select NEG_INFINITY or NEG_NAN directly.

The number helper has the exact source body

  pub fn parse_number(s: &[u8]) -> Option<Decimal> {
      if let Some((float, rest)) = parse_partial_number(s) {
          if rest == s.len() {
              return Some(float);
          }
      }
      None
  }

It returns only the Decimal produced by parse_partial_number; there is no
float type parameter or float operation at this boundary.

Exact dispatcher excerpts from crate/dec2flt/mod.rs
---------------------------------------------------

The entry of `dec2flt_with_trace` strips at most one leading sign, rejects
empty and sign-only inputs, calls `parse_number` on the unsigned body, and
calls `parse_inf_nan` only when `parse_number` returns `None`:

  /// Run the actual dispatcher while retaining its approved internal observations.
  pub fn dec2flt_with_trace<
      'a,
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {
          return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
      };
      let negative = c == b'-';
      if c == b'-' || c == b'+' {
          body = &body[1..];
      }
      if body.is_empty() {
          return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
      }

      let parse_number_result = parse_number(body);
      let parsed = match parse_number_result {
          Some(r) => r,
          None => {
              let parse_inf_nan_result = parse_inf_nan(body, negative);
              return match parse_inf_nan_result {
                  Some(value) => (
                      Ok(value),
                      Dec2FltTrace::Special {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                          result: value,
                      },
                  ),
                  None => (
                      Err(pfe_invalid()),
                      Dec2FltTrace::Invalid {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                      },
                  ),
              };
          }
      };

Thus every `Err` arm shown here returns before `parsed` is available and before
the native, integer, slow, assembly, or final-negation code below it can run.
On a numeric result, the lexical sign is copied into the parsed record before
the native attempt, whose successful result also returns before raw-pair
assembly:

      let mut num = parsed;
      num.negative = negative;
      if !cfg!(feature = "optimize_for_size") {
          let fast_path_result = num.try_fast_path::<F>();
          if let Some(value) = fast_path_result {
              return (
                  Ok(value),
                  Dec2FltTrace::FastPath {
                      body,
                      negative,
                      parse_number_result,
                      fast_path_input: num,
                      fast_path_result,
                      result: value,
                  },
              );
          }
      }

If the native attempt does not return, the selected raw pair is assembled and
the source then conditionally negates it according to the lexical-sign flag:

      let selected_pair = fp;
      // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
      // it neither changes the selected pair nor introduces a new branch or call.
      let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
      let assembly_result = biased_fp_to_float::<F>(fp);
      let lexical_sign_applied = num.negative;
      let result = if lexical_sign_applied {
          core::ops::Neg::neg(assembly_result)
      } else {
          assembly_result
      };

The public `dec2flt` executes that same route and returns its result projection;
it does not reimplement or reorder any parsing or float operation:

  /// Converts a decimal string into a floating point number.
  #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
  pub fn dec2flt<
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &str,
  ) -> Result<F, ParseFloatError> {
      // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
      // clause admits exactly the same instances and lets Charon resolve the
      // explicit, source-equivalent final negation.
      // The public function is now exactly the result projection of the single
      // instrumented implementation.  No conversion step is duplicated, and
      // discarding the trace cannot affect Rust evaluation or the returned bits.
      dec2flt_with_trace::<F>(s).0
  }

The integer-tier helper has the source type and exact executable excerpts
below (long explanatory comments are elided). In particular it returns a raw
BiasedFp and contains no from_u64 cast, primitive float multiplication,
division, negation, or from_bits call:

  pub fn compute_float<F: Float>(q: i64, mut w: u64) -> BiasedFp {
      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);
      let fp_error = BiasedFp::zero_pow2(-1);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if w == 0 || q < F::SMALLEST_POWER_OF_TEN as i64 {
          return fp_zero;
      } else if q > F::LARGEST_POWER_OF_TEN as i64 {
          return fp_inf;
      }
      // Normalize our significant digits, so the most-significant bit is set.
      let lz = w.leading_zeros();
      w <<= lz;
      let (lo, hi) = compute_product_approx(q, w, F::SIG_BITS as usize + 3);
      if lo == 0xFFFF_FFFF_FFFF_FFFF {
          let inside_safe_exponent = (q >= -27) && (q <= 55);
          if !inside_safe_exponent {
              return fp_error;
          }
      }
      let upperbit = (hi >> 63) as i32;
      let mut mantissa = hi >> (upperbit + 64 - F::SIG_BITS as i32 - 3);
      let mut power2 = power(q as i32) + upperbit - lz as i32 - F::EXP_MIN + 1;
      if power2 <= 0 {
          if -power2 + 1 >= 64 {
              // Have more than 64 bits below the minimum exponent, must be 0.
              return fp_zero;
          }
          // Have a subnormal value.
          mantissa >>= -power2 + 1;
          mantissa += mantissa & 1;
          mantissa >>= 1;
          power2 = (mantissa >= (1_u64 << F::SIG_BITS)) as i32;
          return BiasedFp { m: mantissa, p_biased: power2 };
      }
      // Need to handle rounding ties. Normally, we need to round up,
      // but if we fall right in between and we have an even basis, we
      // need to round down.
      if lo <= 1
          && q >= F::MIN_EXPONENT_ROUND_TO_EVEN as i64
          && q <= F::MAX_EXPONENT_ROUND_TO_EVEN as i64
          && mantissa & 0b11 == 0b01
          && (mantissa << (upperbit + 64 - F::SIG_BITS as i32 - 3)) == hi
      {
          // Zero the lowest bit, so we don't round up.
          mantissa &= !1_u64;
      }
      // Round-to-even, then shift the significant digits into place.
      mantissa += mantissa & 1;
      mantissa >>= 1;
      if mantissa >= (2_u64 << F::SIG_BITS) {
          // Rounding up overflowed, so the carry bit is set. Set the
          // mantissa to 1 (only the implicit, hidden bit is set) and
          // increase the exponent.
          mantissa = 1_u64 << F::SIG_BITS;
          power2 += 1;
      }
      // Zero out the hidden bit.
      mantissa &= !(1_u64 << F::SIG_BITS);
      if power2 >= F::INFINITE_POWER {
          // Exponent is above largest normal value, must be infinite.
          return fp_inf;
      }
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact slow-tier source body from crate/dec2flt/slow.rs:

  pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {
      const MAX_SHIFT: usize = 60;
      const NUM_POWERS: usize = 19;
      const POWERS: [u8; 19] =
          [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];

      let get_shift = |n| {
          if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }
      };

      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);

      let mut d = parse_decimal_seq(s);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if d.num_digits == 0 || d.decimal_point < -324 {
          return fp_zero;
      } else if d.decimal_point >= 310 {
          return fp_inf;
      }
      let mut exp2 = 0_i32;
      let mut loop_result = None;
      // Shift right toward (1/2 ... 1].
      while d.decimal_point > 0 && loop_result.is_none() {
          let n = d.decimal_point as usize;
          let shift = get_shift(n);
          d.right_shift(shift);
          if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_zero);
          } else {
              exp2 += shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // Shift left toward (1/2 ... 1].
      while d.decimal_point <= 0 && loop_result.is_none() {
          let shift = if d.decimal_point == 0 {
              match d.digits[0] {
                  digit if digit >= 5 => break,
                  0 | 1 => 2,
                  _ => 1,
              }
          } else {
              get_shift((-d.decimal_point) as _)
          };
          d.left_shift(shift);
          if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_inf);
          } else {
              exp2 -= shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
      exp2 -= 1;
      while F::EXP_MIN > exp2 {
          let mut n = (F::EXP_MIN - exp2) as usize;
          if n > MAX_SHIFT {
              n = MAX_SHIFT;
          }
          d.right_shift(n);
          exp2 += n as i32;
      }
      if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
          return fp_inf;
      }
      // Shift the decimal to the hidden bit, and then round the value
      // to get the high mantissa+1 bits.
      d.left_shift(F::SIG_BITS as usize + 1);
      let mut mantissa = d.round();
      if mantissa >= (1_u64 << (F::SIG_BITS + 1)) {
          // Rounding up overflowed to the carry bit, need to
          // shift back to the hidden bit.
          d.right_shift(1);
          exp2 += 1;
          mantissa = d.round();
          if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
              return fp_inf;
          }
      }
      let mut power2 = exp2 - F::EXP_MIN + 1;
      if mantissa < (1_u64 << F::SIG_BITS) {
          power2 -= 1;
      }
      // Zero out all the bits above the explicit mantissa bits.
      mantissa &= (1_u64 << F::SIG_BITS) - 1;
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact final numeric-sign excerpt from crate/dec2flt/mod.rs:

  let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
  let assembly_result = biased_fp_to_float::<F>(fp);
  let lexical_sign_applied = num.negative;
  let result = if lexical_sign_applied {
      core::ops::Neg::neg(assembly_result)
  } else {
      assembly_result
  };

Thus a numeric execution that reaches the integer/slow selection route
assembles its selected pair with from_bits through biased_fp_to_float and only
then conditionally negates it. A successful try_fast_path returns earlier and
does not perform this assembly. compute_float and parse_long_mantissa produce
raw BiasedFp pairs and do not call from_u64, primitive float multiplication,
division, negation, or from_bits; they do, however, execute constants derived
from SIG_TOTAL_BITS before producing those pairs.

Retained structural-boundary evidence
-------------------------------------

Several adjacent structural bindings cite this same evidence record. Their
pinned library source identities are:

  core/src/num/mod.rs
    f0820f9dfb94999440c8cb4a349736fa21df7e5668e19b6b49e016ff67c05ce3
  core/src/option.rs
    7cf61204b05d98a95bc2e322d5fbfc1f4f91505109971917d9a7fb47151c50e6
  core/src/slice/mod.rs
    354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840
  core/src/str/mod.rs
    284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78

Exact ASCII-digit body from core/src/num/mod.rs:

  pub const fn is_ascii_digit(&self) -> bool {
      matches!(*self, b'0'..=b'9')
  }

Exact Option control-flow bodies from core/src/option.rs:

  fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
      match self {
          Some(v) => ControlFlow::Continue(v),
          None => ControlFlow::Break(None),
      }
  }

  fn from_residual(residual: Option<convert::Infallible>) -> Self {
      match residual {
          None => None,
      }
  }

Exact slice observation bodies from core/src/slice/mod.rs:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

Exact string-byte body from core/src/str/mod.rs:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }
reference/model-evidence/binary64-probe.rs

Open file

#![feature(float_masks)]

use std::num::FpCategory;

fn bits(label: &str, value: f64) {
    println!("{label}={:016x}", value.to_bits());
}

fn main() {
    println!("target_arch={}", std::env::consts::ARCH);
    println!("mantissa_digits={}", f64::MANTISSA_DIGITS);
    println!("exponent_mask={:016x}", f64::EXPONENT_MASK);
    println!("mantissa_mask={:016x}", f64::MANTISSA_MASK);
    bits("nan", f64::NAN);
    bits("infinity", f64::INFINITY);
    bits("neg_infinity", f64::NEG_INFINITY);

    for (label, value) in [
        ("nan_category", f64::NAN),
        ("infinity_category", f64::INFINITY),
        ("zero_category", 0.0),
        ("subnormal_category", f64::from_bits(1)),
        ("normal_category", 1.0),
    ] {
        let category = match value.classify() {
            FpCategory::Nan => "Nan",
            FpCategory::Infinite => "Infinite",
            FpCategory::Zero => "Zero",
            FpCategory::Subnormal => "Subnormal",
            FpCategory::Normal => "Normal",
        };
        println!("{label}={category}");
    }

    let payload_nan_word = 0x7ff0_0000_0000_0001_u64;
    println!(
        "from_bits_to_bits={:016x}",
        f64::from_bits(payload_nan_word).to_bits()
    );
    bits("neg_payload_nan", -f64::from_bits(payload_nan_word));
    bits("neg_zero", -0.0);

    bits("subnormal_tie_to_even_zero", f64::from_bits(1) * 0.5);
    bits("subnormal_tie_to_even_two", f64::from_bits(3) * 0.5);
    bits("normal_division", 1.0 / 10.0);
    bits("mul_negative_zero", -0.0 * 2.0);
    bits("div_negative_zero", -1.0 / f64::INFINITY);
    bits("div_negative_infinity", 1.0 / -0.0);
    bits("mul_overflow", f64::MAX * (1.0 + f64::EPSILON));
    println!("mul_zero_infinity_is_nan={}", (0.0 * f64::INFINITY).is_nan());
    println!("div_zero_zero_is_nan={}", (0.0_f64 / 0.0_f64).is_nan());
    println!("mul_nan_is_nan={}", (f64::NAN * 1.0).is_nan());

    bits("cast_2_pow_53", (1_u64 << 53) as f64);
    bits("cast_2_pow_53_plus_1", ((1_u64 << 53) + 1) as f64);
}
Assumptions / kernel axioms
  • Classical.choice
  • Quot.sound
  • propext

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (32)
All 32 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourceTablet/model-support.json
Kindopaque external binding
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:023d708364d46d286a7819cdbb0574eec4e1ac05b2a093885fc9d0d6995b4701
Preservation current fingerprintpreservation-v1:023d708364d46d286a7819cdbb0574eec4e1ac05b2a093885fc9d0d6995b4701
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"3512da70d592e5cb1c4e373241f16ed70fc052e55e938a0994cafffd5cfc8a6a","lean_semantic_closure":"b9b8f49119dd7b86fe5a771433b4036b8e0edd4621ccccf7c0ae72b448df25b9","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","Binary64ModelDefault":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","Binary64ModelDefault","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence current fingerprint{"own_tex":"3512da70d592e5cb1c4e373241f16ed70fc052e55e938a0994cafffd5cfc8a6a","lean_semantic_closure":"b9b8f49119dd7b86fe5a771433b4036b8e0edd4621ccccf7c0ae72b448df25b9","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","Binary64ModelDefault":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","Binary64ModelDefault","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "8f045242b7b031a8f587a2f3013a8381428a7fafaa0d6b1f7be22692e510079e",
    "dep_statement_hashes": {
      "Binary64ModelDefault": "be5dcc4afe23616ca8fd1d15d30fbbe4ee2621d68be3341b8e74a66e6dcd736f"
    },
    "combined_sound_fp": "preservation-v1:023d708364d46d286a7819cdbb0574eec4e1ac05b2a093885fc9d0d6995b4701"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Exact source record
{
  "name": "core.f64.F64.INFINITY",
  "extracted_signature": ": Result F64",
  "rust_symbol": "core::f64::{f64}::INFINITY",
  "raw_declaration_sha256": "f905901e67400987f49cddd13a8768644bed9e7e3f79c3a81b34879f494a2816",
  "node": "ModelF64Infinity",
  "declaration": "dec2flt_model.ModelF64Infinity"
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/binary64-boundary.txt",
    "sha256": "fa45c924747337e8d6f84a19fe9e83fb9b33c73434887c0cf57c062533f51fe1",
    "cited_by": [
      "Tablet/ModelF64Infinity.tex",
      "Tablet/model-support.json"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-probe.rs",
    "sha256": "68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e",
    "cited_by": [
      "reference/model-evidence/binary64-boundary.txt"
    ]
  }
]

core::f64::{f64}::NEG_INFINITY

Inspect related source (1)

Related source and models come from the extraction records and declared dependencies.

Rust itemcore::f64::{f64}::NEG_INFINITY
Recorded source/rustc/library/core/src/num/f64.rs
Lines515:4–515:31

The related-source link includes this operation’s Rust standard-library implementation.

Opaque extraction signature
: Result F64
Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Tablet.Binary64ModelDefault
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelF64NegInfinity]
def ModelF64NegInfinity : Result F64 :=
-- BODY
  Binary64ModelDefault.negInfinity
end dec2flt_model

Why this model is faithful

Definition

\mathsf{ModelF64NegInfinity} returns the binary64 negative-infinity word \mathtt{0xfff0000000000000} successfully.

Preservation argument

Claim

This binding returns the exact source negative-infinity word.

Proof

The definition is the negative-infinity field of Binary64ModelDefault; the frozen source and target probe give fff0000000000000, as recorded in reference/model-evidence/binary64-boundary.txt.
Authored arguments for individual requirements

Requirement: assembly correspondence

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification significand digit

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch abstract composition

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch component compliance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: exponent value agreement

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: integer correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: native correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper accumulated value

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper record bounds

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser equal target rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser exact rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser invalid rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser nan acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser non nan results

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected exponent

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected magnitude sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser signed zero

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: slow accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper nan

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Recorded review

CorrespondencePass
PreservationVerifierPass

ModelF64NegInfinity · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/binary64-boundary.txt

Open file

Primary evidence for the binary64 boundary
==========================================

Scope and identities
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction, the
adapted Rust crate retained in this repository, and the installed toolchain
named by modeling-input/SETUP.md. The probe source is retained at
reference/model-evidence/binary64-probe.rs; no scratch source is required to
reproduce it.

Toolchain executable:
  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
Target:
  x86_64-unknown-linux-gnu
rustc executable SHA-256:
  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
Probe source SHA-256:
  68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
Compiled probe SHA-256:
  f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
Frozen generated.lean SHA-256:
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9
Frozen modeling-input/manifest.json SHA-256:
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2
Approved Binary64ModelDefault.lean SHA-256 at the time of this record:
  03ae48fb631e6242bd21bf95d0481b66acae05f8cab343c7ab279b3c116538a3

Exact reproduction commands
---------------------------

Run from the repository root:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-probe.rs
  B=.trellis/scratch/binary64-probe
  "$R" --version --verbose
  sha256sum "$R"
  sha256sum "$P"
  "$R" --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$B"
  "$B"

Raw output
----------

  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
  rustc_sha256=162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  probe_sha256=68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
  binary_sha256=f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
  target_arch=x86_64
  mantissa_digits=53
  exponent_mask=7ff0000000000000
  mantissa_mask=000fffffffffffff
  nan=7ff8000000000000
  infinity=7ff0000000000000
  neg_infinity=fff0000000000000
  nan_category=Nan
  infinity_category=Infinite
  zero_category=Zero
  subnormal_category=Subnormal
  normal_category=Normal
  from_bits_to_bits=7ff0000000000001
  neg_payload_nan=fff0000000000001
  neg_zero=8000000000000000
  subnormal_tie_to_even_zero=0000000000000000
  subnormal_tie_to_even_two=0000000000000002
  normal_division=3fb999999999999a
  mul_negative_zero=8000000000000000
  div_negative_zero=8000000000000000
  div_negative_infinity=fff0000000000000
  mul_overflow=7ff0000000000000
  mul_zero_infinity_is_nan=true
  div_zero_zero_is_nan=true
  mul_nan_is_nan=true
  cast_2_pow_53=4340000000000000
  cast_2_pow_53_plus_1=4340000000000000

Pinned Rust library sources
---------------------------

The installed sources below belong to the same named toolchain. Their
SHA-256 identities are:

  core/src/primitive_docs.rs
    c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5
  core/src/num/f64.rs
    84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618
  core/src/clone.rs
    23f9cfc80347fde6b8457d46fbf7a2b8d9f34c8c58601b0b6f714ca2f6d1976b

The exact relevant text of core/src/primitive_docs.rs is:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The referenced primitive-f32 documentation supplies the common primitive
floating-point operation rules quoted next:

  /// - −0.0: IEEE 754 floating-point numbers have a bit that indicates their sign, so −0.0 is a
  ///   possible value. For comparison −0.0 = +0.0, but floating-point operations can carry
  ///   the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
  ///   a negative number rounded to a value smaller than a float can represent also produces −0.0.
  /// - [∞](#associatedconstant.INFINITY) and
  ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
  ///   like `1.0 / 0.0`.
  ///
  /// When a primitive operation (addition, subtraction, multiplication, or
  /// division) is performed on this type, the result is rounded according to the
  /// roundTiesToEven direction defined in IEEE 754-2008. That means:
  ///
  /// - The result is the representable value closest to the true value, if there
  ///   is a unique closest representable value.
  /// - If the true value is exactly half-way between two representable values,
  ///   the result is the one with an even least-significant binary digit.
  /// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
  ///   `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
  ///   true value's sign).

The same file explicitly separates arithmetic NaN choice from exact bitwise
operations; its exact relevant text is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.
  ///
  /// The following rules apply when a NaN value is returned from an arithmetic operation:
  /// - The result has a non-deterministic sign.
  /// - The quiet bit and payload are non-deterministically chosen from
  ///   the following set of options:
  ///
  ///   - **Preferred NaN**: The quiet bit is set and the payload is all-zero.
  ///   - **Quieting NaN propagation**: The quiet bit is set and the payload is copied from any input
  ///     operand that is a NaN. If the inputs and outputs do not have the same payload size (i.e., for
  ///     `as` casts), then
  ///     - If the output is smaller than the input, low-order bits of the payload get dropped.
  ///     - If the output is larger than the input, the payload gets filled up with 0s in the low-order
  ///       bits.
  ///   - **Unchanged NaN propagation**: The quiet bit and payload are copied from any input operand
  ///     that is a NaN. If the inputs and outputs do not have the same size (i.e., for `as` casts), the
  ///     same rules as for "quieting NaN propagation" apply, with one caveat: if the output is smaller
  ///     than the input, dropping the low-order bits may result in a payload of 0; a payload of 0 is not
  ///     possible with a signaling NaN (the all-0 significand encodes an infinity) so unchanged NaN
  ///     propagation cannot occur with some inputs.
  ///   - **Target-specific NaN**: The quiet bit is set and the payload is picked from a target-specific
  ///     set of "extra" possible NaN payloads. The set can depend on the input operand values.
  ///     See the table below for the concrete NaNs this set contains on various targets.
  ///
  /// | `target_arch` | Extra payloads possible on this platform |
  /// |---------------|------------------------------------------|
  /// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |

Thus the model's preferred quiet NaN is one permitted result whenever
multiplication or division returns NaN. This does not claim that arbitrary
Rust arithmetic NaNs have those exact bits. By contrast, unary negation and
bit conversion must preserve all non-sign bits exactly, including for every
NaN payload.

The exact relevant declarations in core/src/num/f64.rs are:

  pub const MANTISSA_DIGITS: u32 = 53;
  pub const NAN: f64 = 0.0_f64 / 0.0_f64;
  pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
  pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
  pub const SIGN_MASK: u64 = 0x8000_0000_0000_0000;
  pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;
  pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff;

  pub const fn classify(self) -> FpCategory {
      // We used to have complicated logic here that avoids the simple bit-based tests to work
      // around buggy codegen for x87 targets (see
      // https://github.com/rust-lang/rust/issues/114479). However, some LLVM versions later, none
      // of our tests is able to find any difference between the complicated and the naive
      // version, so now we are back to the naive version.
      let b = self.to_bits();
      match (b & Self::MANTISSA_MASK, b & Self::EXPONENT_MASK) {
          (0, Self::EXPONENT_MASK) => FpCategory::Infinite,
          (_, Self::EXPONENT_MASK) => FpCategory::Nan,
          (0, 0) => FpCategory::Zero,
          (_, 0) => FpCategory::Subnormal,
          _ => FpCategory::Normal,
      }
  }

  pub const fn to_bits(self) -> u64 {
      // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
      unsafe { mem::transmute(self) }
  }

  pub const fn from_bits(v: u64) -> Self {
      // It turns out the safety issues with sNaN were overblown! Hooray!
      // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
      unsafe { mem::transmute(v) }
  }

The exact scalar clone body in core/src/clone.rs is:

  impl const Clone for $t {
      #[inline(always)]
      fn clone(&self) -> Self {
          *self
      }
  }

Frozen adapted source
---------------------

The relevant retained source file hashes are:

  crate/traits.rs
    9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  crate/dec2flt/decimal.rs
    633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb
  crate/dec2flt/lemire.rs
    fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1
  crate/dec2flt/slow.rs
    93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485

The dispatcher excerpts below are reproduced from the identified file by
running these commands from the repository root:

  sha256sum crate/dec2flt/mod.rs
  sed -n '354,403p' crate/dec2flt/mod.rs
  sed -n '405,422p' crate/dec2flt/mod.rs
  sed -n '465,475p' crate/dec2flt/mod.rs
  sed -n '506,523p' crate/dec2flt/mod.rs

Exact constant and bit-conversion excerpt from crate/traits.rs:

  impl Float for f64 {
      type Int = u64;

      const INFINITY: Self = Self::INFINITY;
      const NEG_INFINITY: Self = Self::NEG_INFINITY;
      const NAN: Self = Self::NAN;
      // Bit-identical to the upstream `-f64::NAN`, without the unsupported
      // compile-time float negation.
      const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);

      const BITS: u32 = 64;
      const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
      const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
      const SIG_MASK: Self::Int = Self::MANTISSA_MASK;

      fn to_bits(self) -> Self::Int {
          self.to_bits()
      }

      fn classify(self) -> FpCategory {
          self.classify()
      }
  }

  impl FloatExt for f64 {
      #[inline]
      fn from_u64_bits(v: u64) -> Self {
          f64::from_bits(v)
      }

Exact derived-constant defaults from crate/traits.rs:

  /// The number of bits in the significand, *excluding* the hidden bit.
  const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;

  /// Number of bits in the exponent.
  const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

  /// The saturated (maximum bitpattern) value of the exponent, i.e. the infinite
  /// representation.
  ///
  /// This shifted fully right, use `EXP_MASK` for the shifted value.
  const EXP_SAT: u32 = (1 << Self::EXP_BITS) - 1;

  /// Signed version of `EXP_SAT` since we convert a lot.
  const INFINITE_POWER: i32 = Self::EXP_SAT as i32;

  /// The exponent bias value. This is also the maximum value of the exponent.
  const EXP_BIAS: u32 = Self::EXP_SAT >> 1;

  /// Minimum exponent value of normal values.
  const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Together with the f64-instance lines `BITS = 64` and
`SIG_TOTAL_BITS = Self::MANTISSA_DIGITS` in the preceding excerpt, these
defaults derive SIG_BITS, EXP_MIN, and INFINITE_POWER from the primitive
mantissa-digit constant rather than introducing independent parameters.

Exact asserted-conversion excerpt from crate/dec2flt/mod.rs:

  #[inline]
  // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
  // `charon::opaque` makes this entire asserted conversion external: both the
  // unchanged `debug_assert!` and the unchanged cast below are in the opaque
  // body. The callers, their fast-path guards, and their surrounding
  // computation remain mechanically visible. A corresponding model binding
  // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
  // exact binary64 conversion at or below that bound.
  #[charon::opaque]
  fn from_u64(v: u64) -> Self {
      debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
      v as _
  }

Here MAX_MANTISSA_FAST_PATH is the retained default 1 << 53.  The attribute is
attached to the function item, so the generated external stands for the whole
method, not merely the cast.  In the enabled-debug configuration the source
succeeds only when v <= 2^53; above it the assertion fails before the cast. On
the successful branch every integer is exactly representable, so the source
cast and the model rounder return the same word.

Exact power-table and assembly excerpts from crate/dec2flt/mod.rs:

  /// Maximum mantissa for the fast-path (`1 << 53` for f64).
  const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;

  const MAX_EXPONENT_FAST_PATH: i64 = 22;
  const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
  const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;

  fn pow10_fast_path(exponent: usize) -> Self {
      // These bit patterns are exactly the source table's rounded binary64
      // literals.  The match is the same masked lookup; it merely keeps float
      // constants out of Aeneas's unsupported constant interpreter.
      match exponent & 31 {
          0 => f64::from_bits(0x3FF0_0000_0000_0000),
          1 => f64::from_bits(0x4024_0000_0000_0000),
          2 => f64::from_bits(0x4059_0000_0000_0000),
          3 => f64::from_bits(0x408F_4000_0000_0000),
          4 => f64::from_bits(0x40C3_8800_0000_0000),
          5 => f64::from_bits(0x40F8_6A00_0000_0000),
          6 => f64::from_bits(0x412E_8480_0000_0000),
          7 => f64::from_bits(0x4163_12D0_0000_0000),
          8 => f64::from_bits(0x4197_D784_0000_0000),
          9 => f64::from_bits(0x41CD_CD65_0000_0000),
          10 => f64::from_bits(0x4202_A05F_2000_0000),
          11 => f64::from_bits(0x4237_4876_E800_0000),
          12 => f64::from_bits(0x426D_1A94_A200_0000),
          13 => f64::from_bits(0x42A2_309C_E540_0000),
          14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
          15 => f64::from_bits(0x430C_6BF5_2634_0000),
          16 => f64::from_bits(0x4341_C379_37E0_8000),
          17 => f64::from_bits(0x4376_3457_85D8_A000),
          18 => f64::from_bits(0x43AB_C16D_674E_C800),
          19 => f64::from_bits(0x43E1_58E4_6091_3D00),
          20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
          21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
          22 => f64::from_bits(0x4480_F0CF_064D_D592),
          _ => f64::from_bits(0),
      }
  }

  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

Exact native-call excerpt from crate/dec2flt/decimal.rs:

  fn can_use_fast_path<F: Lemire>(&self) -> bool {
      F::MIN_EXPONENT_FAST_PATH <= self.exponent
          && self.exponent <= F::MAX_EXPONENT_DISGUISED_FAST_PATH
          && self.mantissa <= F::MAX_MANTISSA_FAST_PATH
          && !self.many_digits
  }

  if !self.can_use_fast_path::<F>() {
      return None;
  }

  let value = if self.exponent <= F::MAX_EXPONENT_FAST_PATH {
      // normal fast path
      let value = F::from_u64(self.mantissa);
      if self.exponent < 0 {
          // Explicit trait calls preserve Rust arithmetic and resolve
          // the generic output type that Charon leaves ambiguous.
          core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
      } else {
          core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
      }
  } else {
      // disguised fast path
      let shift = self.exponent - F::MAX_EXPONENT_FAST_PATH;
      let mantissa = self.mantissa.checked_mul(INT_POW10[shift as usize])?;
      if mantissa > F::MAX_MANTISSA_FAST_PATH {
          return None;
      }
      core::ops::Mul::mul(
          F::from_u64(mantissa),
          F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
      )
  };

  if self.negative {
      Some(core::ops::Neg::neg(value))
  } else {
      Some(value)
  }

The preceding can_use_fast_path body, together with
MAX_MANTISSA_FAST_PATH = 1 << SIG_TOTAL_BITS and SIG_TOTAL_BITS = 53 for f64,
requires the exponent to lie between -22 and 37, the input mantissa to be at
most 2^53, and many_digits to be false. Consequently an ordinary arithmetic
call has a from_u64 operand in 0..=2^53. In its negative-exponent arm,
`-self.exponent` lies in 1..=22; in its nonnegative arm, `self.exponent` lies
in 0..=22. The disguised branch checks its multiplied mantissa against 2^53
before from_u64 and uses table index 22. The paired statement
Binary64NativeCallDomain does not assert this source reachability. It says
conditionally that a from_u64 argument at most 2^53 succeeds with a finite,
non-NaN word and that a table index at most 22 succeeds with a positive,
nonzero, finite, non-NaN word. Applying that conditional statement to the
guards just derived establishes those properties for the actual ordinary and
disguised calls, and in particular establishes that every executed divisor is
nonzero.

Exact special-value excerpt from crate/dec2flt/parse.rs:

  let float = match (register, len) {
      (INF_3, 3) => F::INFINITY,
      (INF_8, 8) => F::INFINITY,
      (NAN, 3) => F::NAN,
      _ => return None,
  };

  if negative { Some(-float) } else { Some(float) }

Thus the executed special route is INFINITY or NAN followed by conditional
negation; it does not select NEG_INFINITY or NEG_NAN directly.

The number helper has the exact source body

  pub fn parse_number(s: &[u8]) -> Option<Decimal> {
      if let Some((float, rest)) = parse_partial_number(s) {
          if rest == s.len() {
              return Some(float);
          }
      }
      None
  }

It returns only the Decimal produced by parse_partial_number; there is no
float type parameter or float operation at this boundary.

Exact dispatcher excerpts from crate/dec2flt/mod.rs
---------------------------------------------------

The entry of `dec2flt_with_trace` strips at most one leading sign, rejects
empty and sign-only inputs, calls `parse_number` on the unsigned body, and
calls `parse_inf_nan` only when `parse_number` returns `None`:

  /// Run the actual dispatcher while retaining its approved internal observations.
  pub fn dec2flt_with_trace<
      'a,
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {
          return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
      };
      let negative = c == b'-';
      if c == b'-' || c == b'+' {
          body = &body[1..];
      }
      if body.is_empty() {
          return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
      }

      let parse_number_result = parse_number(body);
      let parsed = match parse_number_result {
          Some(r) => r,
          None => {
              let parse_inf_nan_result = parse_inf_nan(body, negative);
              return match parse_inf_nan_result {
                  Some(value) => (
                      Ok(value),
                      Dec2FltTrace::Special {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                          result: value,
                      },
                  ),
                  None => (
                      Err(pfe_invalid()),
                      Dec2FltTrace::Invalid {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                      },
                  ),
              };
          }
      };

Thus every `Err` arm shown here returns before `parsed` is available and before
the native, integer, slow, assembly, or final-negation code below it can run.
On a numeric result, the lexical sign is copied into the parsed record before
the native attempt, whose successful result also returns before raw-pair
assembly:

      let mut num = parsed;
      num.negative = negative;
      if !cfg!(feature = "optimize_for_size") {
          let fast_path_result = num.try_fast_path::<F>();
          if let Some(value) = fast_path_result {
              return (
                  Ok(value),
                  Dec2FltTrace::FastPath {
                      body,
                      negative,
                      parse_number_result,
                      fast_path_input: num,
                      fast_path_result,
                      result: value,
                  },
              );
          }
      }

If the native attempt does not return, the selected raw pair is assembled and
the source then conditionally negates it according to the lexical-sign flag:

      let selected_pair = fp;
      // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
      // it neither changes the selected pair nor introduces a new branch or call.
      let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
      let assembly_result = biased_fp_to_float::<F>(fp);
      let lexical_sign_applied = num.negative;
      let result = if lexical_sign_applied {
          core::ops::Neg::neg(assembly_result)
      } else {
          assembly_result
      };

The public `dec2flt` executes that same route and returns its result projection;
it does not reimplement or reorder any parsing or float operation:

  /// Converts a decimal string into a floating point number.
  #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
  pub fn dec2flt<
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &str,
  ) -> Result<F, ParseFloatError> {
      // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
      // clause admits exactly the same instances and lets Charon resolve the
      // explicit, source-equivalent final negation.
      // The public function is now exactly the result projection of the single
      // instrumented implementation.  No conversion step is duplicated, and
      // discarding the trace cannot affect Rust evaluation or the returned bits.
      dec2flt_with_trace::<F>(s).0
  }

The integer-tier helper has the source type and exact executable excerpts
below (long explanatory comments are elided). In particular it returns a raw
BiasedFp and contains no from_u64 cast, primitive float multiplication,
division, negation, or from_bits call:

  pub fn compute_float<F: Float>(q: i64, mut w: u64) -> BiasedFp {
      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);
      let fp_error = BiasedFp::zero_pow2(-1);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if w == 0 || q < F::SMALLEST_POWER_OF_TEN as i64 {
          return fp_zero;
      } else if q > F::LARGEST_POWER_OF_TEN as i64 {
          return fp_inf;
      }
      // Normalize our significant digits, so the most-significant bit is set.
      let lz = w.leading_zeros();
      w <<= lz;
      let (lo, hi) = compute_product_approx(q, w, F::SIG_BITS as usize + 3);
      if lo == 0xFFFF_FFFF_FFFF_FFFF {
          let inside_safe_exponent = (q >= -27) && (q <= 55);
          if !inside_safe_exponent {
              return fp_error;
          }
      }
      let upperbit = (hi >> 63) as i32;
      let mut mantissa = hi >> (upperbit + 64 - F::SIG_BITS as i32 - 3);
      let mut power2 = power(q as i32) + upperbit - lz as i32 - F::EXP_MIN + 1;
      if power2 <= 0 {
          if -power2 + 1 >= 64 {
              // Have more than 64 bits below the minimum exponent, must be 0.
              return fp_zero;
          }
          // Have a subnormal value.
          mantissa >>= -power2 + 1;
          mantissa += mantissa & 1;
          mantissa >>= 1;
          power2 = (mantissa >= (1_u64 << F::SIG_BITS)) as i32;
          return BiasedFp { m: mantissa, p_biased: power2 };
      }
      // Need to handle rounding ties. Normally, we need to round up,
      // but if we fall right in between and we have an even basis, we
      // need to round down.
      if lo <= 1
          && q >= F::MIN_EXPONENT_ROUND_TO_EVEN as i64
          && q <= F::MAX_EXPONENT_ROUND_TO_EVEN as i64
          && mantissa & 0b11 == 0b01
          && (mantissa << (upperbit + 64 - F::SIG_BITS as i32 - 3)) == hi
      {
          // Zero the lowest bit, so we don't round up.
          mantissa &= !1_u64;
      }
      // Round-to-even, then shift the significant digits into place.
      mantissa += mantissa & 1;
      mantissa >>= 1;
      if mantissa >= (2_u64 << F::SIG_BITS) {
          // Rounding up overflowed, so the carry bit is set. Set the
          // mantissa to 1 (only the implicit, hidden bit is set) and
          // increase the exponent.
          mantissa = 1_u64 << F::SIG_BITS;
          power2 += 1;
      }
      // Zero out the hidden bit.
      mantissa &= !(1_u64 << F::SIG_BITS);
      if power2 >= F::INFINITE_POWER {
          // Exponent is above largest normal value, must be infinite.
          return fp_inf;
      }
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact slow-tier source body from crate/dec2flt/slow.rs:

  pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {
      const MAX_SHIFT: usize = 60;
      const NUM_POWERS: usize = 19;
      const POWERS: [u8; 19] =
          [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];

      let get_shift = |n| {
          if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }
      };

      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);

      let mut d = parse_decimal_seq(s);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if d.num_digits == 0 || d.decimal_point < -324 {
          return fp_zero;
      } else if d.decimal_point >= 310 {
          return fp_inf;
      }
      let mut exp2 = 0_i32;
      let mut loop_result = None;
      // Shift right toward (1/2 ... 1].
      while d.decimal_point > 0 && loop_result.is_none() {
          let n = d.decimal_point as usize;
          let shift = get_shift(n);
          d.right_shift(shift);
          if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_zero);
          } else {
              exp2 += shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // Shift left toward (1/2 ... 1].
      while d.decimal_point <= 0 && loop_result.is_none() {
          let shift = if d.decimal_point == 0 {
              match d.digits[0] {
                  digit if digit >= 5 => break,
                  0 | 1 => 2,
                  _ => 1,
              }
          } else {
              get_shift((-d.decimal_point) as _)
          };
          d.left_shift(shift);
          if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_inf);
          } else {
              exp2 -= shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
      exp2 -= 1;
      while F::EXP_MIN > exp2 {
          let mut n = (F::EXP_MIN - exp2) as usize;
          if n > MAX_SHIFT {
              n = MAX_SHIFT;
          }
          d.right_shift(n);
          exp2 += n as i32;
      }
      if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
          return fp_inf;
      }
      // Shift the decimal to the hidden bit, and then round the value
      // to get the high mantissa+1 bits.
      d.left_shift(F::SIG_BITS as usize + 1);
      let mut mantissa = d.round();
      if mantissa >= (1_u64 << (F::SIG_BITS + 1)) {
          // Rounding up overflowed to the carry bit, need to
          // shift back to the hidden bit.
          d.right_shift(1);
          exp2 += 1;
          mantissa = d.round();
          if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
              return fp_inf;
          }
      }
      let mut power2 = exp2 - F::EXP_MIN + 1;
      if mantissa < (1_u64 << F::SIG_BITS) {
          power2 -= 1;
      }
      // Zero out all the bits above the explicit mantissa bits.
      mantissa &= (1_u64 << F::SIG_BITS) - 1;
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact final numeric-sign excerpt from crate/dec2flt/mod.rs:

  let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
  let assembly_result = biased_fp_to_float::<F>(fp);
  let lexical_sign_applied = num.negative;
  let result = if lexical_sign_applied {
      core::ops::Neg::neg(assembly_result)
  } else {
      assembly_result
  };

Thus a numeric execution that reaches the integer/slow selection route
assembles its selected pair with from_bits through biased_fp_to_float and only
then conditionally negates it. A successful try_fast_path returns earlier and
does not perform this assembly. compute_float and parse_long_mantissa produce
raw BiasedFp pairs and do not call from_u64, primitive float multiplication,
division, negation, or from_bits; they do, however, execute constants derived
from SIG_TOTAL_BITS before producing those pairs.

Retained structural-boundary evidence
-------------------------------------

Several adjacent structural bindings cite this same evidence record. Their
pinned library source identities are:

  core/src/num/mod.rs
    f0820f9dfb94999440c8cb4a349736fa21df7e5668e19b6b49e016ff67c05ce3
  core/src/option.rs
    7cf61204b05d98a95bc2e322d5fbfc1f4f91505109971917d9a7fb47151c50e6
  core/src/slice/mod.rs
    354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840
  core/src/str/mod.rs
    284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78

Exact ASCII-digit body from core/src/num/mod.rs:

  pub const fn is_ascii_digit(&self) -> bool {
      matches!(*self, b'0'..=b'9')
  }

Exact Option control-flow bodies from core/src/option.rs:

  fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
      match self {
          Some(v) => ControlFlow::Continue(v),
          None => ControlFlow::Break(None),
      }
  }

  fn from_residual(residual: Option<convert::Infallible>) -> Self {
      match residual {
          None => None,
      }
  }

Exact slice observation bodies from core/src/slice/mod.rs:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

Exact string-byte body from core/src/str/mod.rs:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }
reference/model-evidence/binary64-probe.rs

Open file

#![feature(float_masks)]

use std::num::FpCategory;

fn bits(label: &str, value: f64) {
    println!("{label}={:016x}", value.to_bits());
}

fn main() {
    println!("target_arch={}", std::env::consts::ARCH);
    println!("mantissa_digits={}", f64::MANTISSA_DIGITS);
    println!("exponent_mask={:016x}", f64::EXPONENT_MASK);
    println!("mantissa_mask={:016x}", f64::MANTISSA_MASK);
    bits("nan", f64::NAN);
    bits("infinity", f64::INFINITY);
    bits("neg_infinity", f64::NEG_INFINITY);

    for (label, value) in [
        ("nan_category", f64::NAN),
        ("infinity_category", f64::INFINITY),
        ("zero_category", 0.0),
        ("subnormal_category", f64::from_bits(1)),
        ("normal_category", 1.0),
    ] {
        let category = match value.classify() {
            FpCategory::Nan => "Nan",
            FpCategory::Infinite => "Infinite",
            FpCategory::Zero => "Zero",
            FpCategory::Subnormal => "Subnormal",
            FpCategory::Normal => "Normal",
        };
        println!("{label}={category}");
    }

    let payload_nan_word = 0x7ff0_0000_0000_0001_u64;
    println!(
        "from_bits_to_bits={:016x}",
        f64::from_bits(payload_nan_word).to_bits()
    );
    bits("neg_payload_nan", -f64::from_bits(payload_nan_word));
    bits("neg_zero", -0.0);

    bits("subnormal_tie_to_even_zero", f64::from_bits(1) * 0.5);
    bits("subnormal_tie_to_even_two", f64::from_bits(3) * 0.5);
    bits("normal_division", 1.0 / 10.0);
    bits("mul_negative_zero", -0.0 * 2.0);
    bits("div_negative_zero", -1.0 / f64::INFINITY);
    bits("div_negative_infinity", 1.0 / -0.0);
    bits("mul_overflow", f64::MAX * (1.0 + f64::EPSILON));
    println!("mul_zero_infinity_is_nan={}", (0.0 * f64::INFINITY).is_nan());
    println!("div_zero_zero_is_nan={}", (0.0_f64 / 0.0_f64).is_nan());
    println!("mul_nan_is_nan={}", (f64::NAN * 1.0).is_nan());

    bits("cast_2_pow_53", (1_u64 << 53) as f64);
    bits("cast_2_pow_53_plus_1", ((1_u64 << 53) + 1) as f64);
}
Assumptions / kernel axioms
  • Classical.choice
  • Quot.sound
  • propext

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (32)
All 32 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourceTablet/model-support.json
Kindopaque external binding
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:936dcd2bce8fe25086d27bc70018b6e8b56c2fab5d0729125babb4e9588d78e3
Preservation current fingerprintpreservation-v1:936dcd2bce8fe25086d27bc70018b6e8b56c2fab5d0729125babb4e9588d78e3
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"83b0894f6775fa78c9841be37195e3096ccfab2759adf691cec8a3e153f4c667","lean_semantic_closure":"c03e4ef7cdd0f3c15ff594c3a1919b5554f66e2681a60d45ffbb5badff1d2b79","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","Binary64ModelDefault":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","Binary64ModelDefault","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence current fingerprint{"own_tex":"83b0894f6775fa78c9841be37195e3096ccfab2759adf691cec8a3e153f4c667","lean_semantic_closure":"c03e4ef7cdd0f3c15ff594c3a1919b5554f66e2681a60d45ffbb5badff1d2b79","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","Binary64ModelDefault":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","Binary64ModelDefault","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "02b19232088377c7eadbcfac6a85460ce1c0cd89520b8e703aa94660ae865852",
    "dep_statement_hashes": {
      "Binary64ModelDefault": "be5dcc4afe23616ca8fd1d15d30fbbe4ee2621d68be3341b8e74a66e6dcd736f"
    },
    "combined_sound_fp": "preservation-v1:936dcd2bce8fe25086d27bc70018b6e8b56c2fab5d0729125babb4e9588d78e3"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Exact source record
{
  "name": "core.f64.F64.NEG_INFINITY",
  "extracted_signature": ": Result F64",
  "rust_symbol": "core::f64::{f64}::NEG_INFINITY",
  "raw_declaration_sha256": "85f6e517e439c2f2d5c59aa29884ff38b2381c2f5dd7cb14e7947b232efe7f0e",
  "node": "ModelF64NegInfinity",
  "declaration": "dec2flt_model.ModelF64NegInfinity"
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/binary64-boundary.txt",
    "sha256": "fa45c924747337e8d6f84a19fe9e83fb9b33c73434887c0cf57c062533f51fe1",
    "cited_by": [
      "Tablet/ModelF64NegInfinity.tex",
      "Tablet/model-support.json"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-probe.rs",
    "sha256": "68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e",
    "cited_by": [
      "reference/model-evidence/binary64-boundary.txt"
    ]
  }
]

core::f64::{f64}::EXPONENT_MASK

Inspect related source (1)

Related source and models come from the extraction records and declared dependencies.

Rust itemcore::f64::{f64}::EXPONENT_MASK
Recorded source/rustc/library/core/src/num/f64.rs
Lines615:4–615:32

The related-source link includes this operation’s Rust standard-library implementation.

Opaque extraction signature
: Result Std.U64
Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Tablet.Binary64ModelDefault
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelF64ExponentMask]
def ModelF64ExponentMask : Result Std.U64 :=
-- BODY
  Binary64ModelDefault.exponentMask
end dec2flt_model

Why this model is faithful

Definition

\mathsf{ModelF64ExponentMask} returns the binary64 exponent-field mask \mathtt{0x7ff0000000000000} successfully.

Preservation argument

Claim

This binding returns the exact source binary64 exponent-field mask.

Proof

The definition is the exponent-mask field of Binary64ModelDefault. It is 7ff0000000000000, exactly the frozen Rust constant recorded in reference/model-evidence/binary64-boundary.txt.
Authored arguments for individual requirements

Requirement: assembly correspondence

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification significand digit

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch abstract composition

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch component compliance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: exponent value agreement

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: integer correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: native correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper accumulated value

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper record bounds

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser equal target rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser exact rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser invalid rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser nan acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser non nan results

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected exponent

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected magnitude sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser signed zero

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: slow accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper nan

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Recorded review

CorrespondencePass
PreservationVerifierPass

ModelF64ExponentMask · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/binary64-boundary.txt

Open file

Primary evidence for the binary64 boundary
==========================================

Scope and identities
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction, the
adapted Rust crate retained in this repository, and the installed toolchain
named by modeling-input/SETUP.md. The probe source is retained at
reference/model-evidence/binary64-probe.rs; no scratch source is required to
reproduce it.

Toolchain executable:
  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
Target:
  x86_64-unknown-linux-gnu
rustc executable SHA-256:
  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
Probe source SHA-256:
  68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
Compiled probe SHA-256:
  f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
Frozen generated.lean SHA-256:
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9
Frozen modeling-input/manifest.json SHA-256:
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2
Approved Binary64ModelDefault.lean SHA-256 at the time of this record:
  03ae48fb631e6242bd21bf95d0481b66acae05f8cab343c7ab279b3c116538a3

Exact reproduction commands
---------------------------

Run from the repository root:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-probe.rs
  B=.trellis/scratch/binary64-probe
  "$R" --version --verbose
  sha256sum "$R"
  sha256sum "$P"
  "$R" --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$B"
  "$B"

Raw output
----------

  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
  rustc_sha256=162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  probe_sha256=68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
  binary_sha256=f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
  target_arch=x86_64
  mantissa_digits=53
  exponent_mask=7ff0000000000000
  mantissa_mask=000fffffffffffff
  nan=7ff8000000000000
  infinity=7ff0000000000000
  neg_infinity=fff0000000000000
  nan_category=Nan
  infinity_category=Infinite
  zero_category=Zero
  subnormal_category=Subnormal
  normal_category=Normal
  from_bits_to_bits=7ff0000000000001
  neg_payload_nan=fff0000000000001
  neg_zero=8000000000000000
  subnormal_tie_to_even_zero=0000000000000000
  subnormal_tie_to_even_two=0000000000000002
  normal_division=3fb999999999999a
  mul_negative_zero=8000000000000000
  div_negative_zero=8000000000000000
  div_negative_infinity=fff0000000000000
  mul_overflow=7ff0000000000000
  mul_zero_infinity_is_nan=true
  div_zero_zero_is_nan=true
  mul_nan_is_nan=true
  cast_2_pow_53=4340000000000000
  cast_2_pow_53_plus_1=4340000000000000

Pinned Rust library sources
---------------------------

The installed sources below belong to the same named toolchain. Their
SHA-256 identities are:

  core/src/primitive_docs.rs
    c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5
  core/src/num/f64.rs
    84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618
  core/src/clone.rs
    23f9cfc80347fde6b8457d46fbf7a2b8d9f34c8c58601b0b6f714ca2f6d1976b

The exact relevant text of core/src/primitive_docs.rs is:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The referenced primitive-f32 documentation supplies the common primitive
floating-point operation rules quoted next:

  /// - −0.0: IEEE 754 floating-point numbers have a bit that indicates their sign, so −0.0 is a
  ///   possible value. For comparison −0.0 = +0.0, but floating-point operations can carry
  ///   the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
  ///   a negative number rounded to a value smaller than a float can represent also produces −0.0.
  /// - [∞](#associatedconstant.INFINITY) and
  ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
  ///   like `1.0 / 0.0`.
  ///
  /// When a primitive operation (addition, subtraction, multiplication, or
  /// division) is performed on this type, the result is rounded according to the
  /// roundTiesToEven direction defined in IEEE 754-2008. That means:
  ///
  /// - The result is the representable value closest to the true value, if there
  ///   is a unique closest representable value.
  /// - If the true value is exactly half-way between two representable values,
  ///   the result is the one with an even least-significant binary digit.
  /// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
  ///   `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
  ///   true value's sign).

The same file explicitly separates arithmetic NaN choice from exact bitwise
operations; its exact relevant text is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.
  ///
  /// The following rules apply when a NaN value is returned from an arithmetic operation:
  /// - The result has a non-deterministic sign.
  /// - The quiet bit and payload are non-deterministically chosen from
  ///   the following set of options:
  ///
  ///   - **Preferred NaN**: The quiet bit is set and the payload is all-zero.
  ///   - **Quieting NaN propagation**: The quiet bit is set and the payload is copied from any input
  ///     operand that is a NaN. If the inputs and outputs do not have the same payload size (i.e., for
  ///     `as` casts), then
  ///     - If the output is smaller than the input, low-order bits of the payload get dropped.
  ///     - If the output is larger than the input, the payload gets filled up with 0s in the low-order
  ///       bits.
  ///   - **Unchanged NaN propagation**: The quiet bit and payload are copied from any input operand
  ///     that is a NaN. If the inputs and outputs do not have the same size (i.e., for `as` casts), the
  ///     same rules as for "quieting NaN propagation" apply, with one caveat: if the output is smaller
  ///     than the input, dropping the low-order bits may result in a payload of 0; a payload of 0 is not
  ///     possible with a signaling NaN (the all-0 significand encodes an infinity) so unchanged NaN
  ///     propagation cannot occur with some inputs.
  ///   - **Target-specific NaN**: The quiet bit is set and the payload is picked from a target-specific
  ///     set of "extra" possible NaN payloads. The set can depend on the input operand values.
  ///     See the table below for the concrete NaNs this set contains on various targets.
  ///
  /// | `target_arch` | Extra payloads possible on this platform |
  /// |---------------|------------------------------------------|
  /// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |

Thus the model's preferred quiet NaN is one permitted result whenever
multiplication or division returns NaN. This does not claim that arbitrary
Rust arithmetic NaNs have those exact bits. By contrast, unary negation and
bit conversion must preserve all non-sign bits exactly, including for every
NaN payload.

The exact relevant declarations in core/src/num/f64.rs are:

  pub const MANTISSA_DIGITS: u32 = 53;
  pub const NAN: f64 = 0.0_f64 / 0.0_f64;
  pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
  pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
  pub const SIGN_MASK: u64 = 0x8000_0000_0000_0000;
  pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;
  pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff;

  pub const fn classify(self) -> FpCategory {
      // We used to have complicated logic here that avoids the simple bit-based tests to work
      // around buggy codegen for x87 targets (see
      // https://github.com/rust-lang/rust/issues/114479). However, some LLVM versions later, none
      // of our tests is able to find any difference between the complicated and the naive
      // version, so now we are back to the naive version.
      let b = self.to_bits();
      match (b & Self::MANTISSA_MASK, b & Self::EXPONENT_MASK) {
          (0, Self::EXPONENT_MASK) => FpCategory::Infinite,
          (_, Self::EXPONENT_MASK) => FpCategory::Nan,
          (0, 0) => FpCategory::Zero,
          (_, 0) => FpCategory::Subnormal,
          _ => FpCategory::Normal,
      }
  }

  pub const fn to_bits(self) -> u64 {
      // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
      unsafe { mem::transmute(self) }
  }

  pub const fn from_bits(v: u64) -> Self {
      // It turns out the safety issues with sNaN were overblown! Hooray!
      // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
      unsafe { mem::transmute(v) }
  }

The exact scalar clone body in core/src/clone.rs is:

  impl const Clone for $t {
      #[inline(always)]
      fn clone(&self) -> Self {
          *self
      }
  }

Frozen adapted source
---------------------

The relevant retained source file hashes are:

  crate/traits.rs
    9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  crate/dec2flt/decimal.rs
    633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb
  crate/dec2flt/lemire.rs
    fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1
  crate/dec2flt/slow.rs
    93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485

The dispatcher excerpts below are reproduced from the identified file by
running these commands from the repository root:

  sha256sum crate/dec2flt/mod.rs
  sed -n '354,403p' crate/dec2flt/mod.rs
  sed -n '405,422p' crate/dec2flt/mod.rs
  sed -n '465,475p' crate/dec2flt/mod.rs
  sed -n '506,523p' crate/dec2flt/mod.rs

Exact constant and bit-conversion excerpt from crate/traits.rs:

  impl Float for f64 {
      type Int = u64;

      const INFINITY: Self = Self::INFINITY;
      const NEG_INFINITY: Self = Self::NEG_INFINITY;
      const NAN: Self = Self::NAN;
      // Bit-identical to the upstream `-f64::NAN`, without the unsupported
      // compile-time float negation.
      const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);

      const BITS: u32 = 64;
      const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
      const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
      const SIG_MASK: Self::Int = Self::MANTISSA_MASK;

      fn to_bits(self) -> Self::Int {
          self.to_bits()
      }

      fn classify(self) -> FpCategory {
          self.classify()
      }
  }

  impl FloatExt for f64 {
      #[inline]
      fn from_u64_bits(v: u64) -> Self {
          f64::from_bits(v)
      }

Exact derived-constant defaults from crate/traits.rs:

  /// The number of bits in the significand, *excluding* the hidden bit.
  const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;

  /// Number of bits in the exponent.
  const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

  /// The saturated (maximum bitpattern) value of the exponent, i.e. the infinite
  /// representation.
  ///
  /// This shifted fully right, use `EXP_MASK` for the shifted value.
  const EXP_SAT: u32 = (1 << Self::EXP_BITS) - 1;

  /// Signed version of `EXP_SAT` since we convert a lot.
  const INFINITE_POWER: i32 = Self::EXP_SAT as i32;

  /// The exponent bias value. This is also the maximum value of the exponent.
  const EXP_BIAS: u32 = Self::EXP_SAT >> 1;

  /// Minimum exponent value of normal values.
  const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Together with the f64-instance lines `BITS = 64` and
`SIG_TOTAL_BITS = Self::MANTISSA_DIGITS` in the preceding excerpt, these
defaults derive SIG_BITS, EXP_MIN, and INFINITE_POWER from the primitive
mantissa-digit constant rather than introducing independent parameters.

Exact asserted-conversion excerpt from crate/dec2flt/mod.rs:

  #[inline]
  // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
  // `charon::opaque` makes this entire asserted conversion external: both the
  // unchanged `debug_assert!` and the unchanged cast below are in the opaque
  // body. The callers, their fast-path guards, and their surrounding
  // computation remain mechanically visible. A corresponding model binding
  // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
  // exact binary64 conversion at or below that bound.
  #[charon::opaque]
  fn from_u64(v: u64) -> Self {
      debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
      v as _
  }

Here MAX_MANTISSA_FAST_PATH is the retained default 1 << 53.  The attribute is
attached to the function item, so the generated external stands for the whole
method, not merely the cast.  In the enabled-debug configuration the source
succeeds only when v <= 2^53; above it the assertion fails before the cast. On
the successful branch every integer is exactly representable, so the source
cast and the model rounder return the same word.

Exact power-table and assembly excerpts from crate/dec2flt/mod.rs:

  /// Maximum mantissa for the fast-path (`1 << 53` for f64).
  const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;

  const MAX_EXPONENT_FAST_PATH: i64 = 22;
  const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
  const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;

  fn pow10_fast_path(exponent: usize) -> Self {
      // These bit patterns are exactly the source table's rounded binary64
      // literals.  The match is the same masked lookup; it merely keeps float
      // constants out of Aeneas's unsupported constant interpreter.
      match exponent & 31 {
          0 => f64::from_bits(0x3FF0_0000_0000_0000),
          1 => f64::from_bits(0x4024_0000_0000_0000),
          2 => f64::from_bits(0x4059_0000_0000_0000),
          3 => f64::from_bits(0x408F_4000_0000_0000),
          4 => f64::from_bits(0x40C3_8800_0000_0000),
          5 => f64::from_bits(0x40F8_6A00_0000_0000),
          6 => f64::from_bits(0x412E_8480_0000_0000),
          7 => f64::from_bits(0x4163_12D0_0000_0000),
          8 => f64::from_bits(0x4197_D784_0000_0000),
          9 => f64::from_bits(0x41CD_CD65_0000_0000),
          10 => f64::from_bits(0x4202_A05F_2000_0000),
          11 => f64::from_bits(0x4237_4876_E800_0000),
          12 => f64::from_bits(0x426D_1A94_A200_0000),
          13 => f64::from_bits(0x42A2_309C_E540_0000),
          14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
          15 => f64::from_bits(0x430C_6BF5_2634_0000),
          16 => f64::from_bits(0x4341_C379_37E0_8000),
          17 => f64::from_bits(0x4376_3457_85D8_A000),
          18 => f64::from_bits(0x43AB_C16D_674E_C800),
          19 => f64::from_bits(0x43E1_58E4_6091_3D00),
          20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
          21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
          22 => f64::from_bits(0x4480_F0CF_064D_D592),
          _ => f64::from_bits(0),
      }
  }

  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

Exact native-call excerpt from crate/dec2flt/decimal.rs:

  fn can_use_fast_path<F: Lemire>(&self) -> bool {
      F::MIN_EXPONENT_FAST_PATH <= self.exponent
          && self.exponent <= F::MAX_EXPONENT_DISGUISED_FAST_PATH
          && self.mantissa <= F::MAX_MANTISSA_FAST_PATH
          && !self.many_digits
  }

  if !self.can_use_fast_path::<F>() {
      return None;
  }

  let value = if self.exponent <= F::MAX_EXPONENT_FAST_PATH {
      // normal fast path
      let value = F::from_u64(self.mantissa);
      if self.exponent < 0 {
          // Explicit trait calls preserve Rust arithmetic and resolve
          // the generic output type that Charon leaves ambiguous.
          core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
      } else {
          core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
      }
  } else {
      // disguised fast path
      let shift = self.exponent - F::MAX_EXPONENT_FAST_PATH;
      let mantissa = self.mantissa.checked_mul(INT_POW10[shift as usize])?;
      if mantissa > F::MAX_MANTISSA_FAST_PATH {
          return None;
      }
      core::ops::Mul::mul(
          F::from_u64(mantissa),
          F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
      )
  };

  if self.negative {
      Some(core::ops::Neg::neg(value))
  } else {
      Some(value)
  }

The preceding can_use_fast_path body, together with
MAX_MANTISSA_FAST_PATH = 1 << SIG_TOTAL_BITS and SIG_TOTAL_BITS = 53 for f64,
requires the exponent to lie between -22 and 37, the input mantissa to be at
most 2^53, and many_digits to be false. Consequently an ordinary arithmetic
call has a from_u64 operand in 0..=2^53. In its negative-exponent arm,
`-self.exponent` lies in 1..=22; in its nonnegative arm, `self.exponent` lies
in 0..=22. The disguised branch checks its multiplied mantissa against 2^53
before from_u64 and uses table index 22. The paired statement
Binary64NativeCallDomain does not assert this source reachability. It says
conditionally that a from_u64 argument at most 2^53 succeeds with a finite,
non-NaN word and that a table index at most 22 succeeds with a positive,
nonzero, finite, non-NaN word. Applying that conditional statement to the
guards just derived establishes those properties for the actual ordinary and
disguised calls, and in particular establishes that every executed divisor is
nonzero.

Exact special-value excerpt from crate/dec2flt/parse.rs:

  let float = match (register, len) {
      (INF_3, 3) => F::INFINITY,
      (INF_8, 8) => F::INFINITY,
      (NAN, 3) => F::NAN,
      _ => return None,
  };

  if negative { Some(-float) } else { Some(float) }

Thus the executed special route is INFINITY or NAN followed by conditional
negation; it does not select NEG_INFINITY or NEG_NAN directly.

The number helper has the exact source body

  pub fn parse_number(s: &[u8]) -> Option<Decimal> {
      if let Some((float, rest)) = parse_partial_number(s) {
          if rest == s.len() {
              return Some(float);
          }
      }
      None
  }

It returns only the Decimal produced by parse_partial_number; there is no
float type parameter or float operation at this boundary.

Exact dispatcher excerpts from crate/dec2flt/mod.rs
---------------------------------------------------

The entry of `dec2flt_with_trace` strips at most one leading sign, rejects
empty and sign-only inputs, calls `parse_number` on the unsigned body, and
calls `parse_inf_nan` only when `parse_number` returns `None`:

  /// Run the actual dispatcher while retaining its approved internal observations.
  pub fn dec2flt_with_trace<
      'a,
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {
          return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
      };
      let negative = c == b'-';
      if c == b'-' || c == b'+' {
          body = &body[1..];
      }
      if body.is_empty() {
          return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
      }

      let parse_number_result = parse_number(body);
      let parsed = match parse_number_result {
          Some(r) => r,
          None => {
              let parse_inf_nan_result = parse_inf_nan(body, negative);
              return match parse_inf_nan_result {
                  Some(value) => (
                      Ok(value),
                      Dec2FltTrace::Special {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                          result: value,
                      },
                  ),
                  None => (
                      Err(pfe_invalid()),
                      Dec2FltTrace::Invalid {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                      },
                  ),
              };
          }
      };

Thus every `Err` arm shown here returns before `parsed` is available and before
the native, integer, slow, assembly, or final-negation code below it can run.
On a numeric result, the lexical sign is copied into the parsed record before
the native attempt, whose successful result also returns before raw-pair
assembly:

      let mut num = parsed;
      num.negative = negative;
      if !cfg!(feature = "optimize_for_size") {
          let fast_path_result = num.try_fast_path::<F>();
          if let Some(value) = fast_path_result {
              return (
                  Ok(value),
                  Dec2FltTrace::FastPath {
                      body,
                      negative,
                      parse_number_result,
                      fast_path_input: num,
                      fast_path_result,
                      result: value,
                  },
              );
          }
      }

If the native attempt does not return, the selected raw pair is assembled and
the source then conditionally negates it according to the lexical-sign flag:

      let selected_pair = fp;
      // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
      // it neither changes the selected pair nor introduces a new branch or call.
      let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
      let assembly_result = biased_fp_to_float::<F>(fp);
      let lexical_sign_applied = num.negative;
      let result = if lexical_sign_applied {
          core::ops::Neg::neg(assembly_result)
      } else {
          assembly_result
      };

The public `dec2flt` executes that same route and returns its result projection;
it does not reimplement or reorder any parsing or float operation:

  /// Converts a decimal string into a floating point number.
  #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
  pub fn dec2flt<
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &str,
  ) -> Result<F, ParseFloatError> {
      // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
      // clause admits exactly the same instances and lets Charon resolve the
      // explicit, source-equivalent final negation.
      // The public function is now exactly the result projection of the single
      // instrumented implementation.  No conversion step is duplicated, and
      // discarding the trace cannot affect Rust evaluation or the returned bits.
      dec2flt_with_trace::<F>(s).0
  }

The integer-tier helper has the source type and exact executable excerpts
below (long explanatory comments are elided). In particular it returns a raw
BiasedFp and contains no from_u64 cast, primitive float multiplication,
division, negation, or from_bits call:

  pub fn compute_float<F: Float>(q: i64, mut w: u64) -> BiasedFp {
      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);
      let fp_error = BiasedFp::zero_pow2(-1);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if w == 0 || q < F::SMALLEST_POWER_OF_TEN as i64 {
          return fp_zero;
      } else if q > F::LARGEST_POWER_OF_TEN as i64 {
          return fp_inf;
      }
      // Normalize our significant digits, so the most-significant bit is set.
      let lz = w.leading_zeros();
      w <<= lz;
      let (lo, hi) = compute_product_approx(q, w, F::SIG_BITS as usize + 3);
      if lo == 0xFFFF_FFFF_FFFF_FFFF {
          let inside_safe_exponent = (q >= -27) && (q <= 55);
          if !inside_safe_exponent {
              return fp_error;
          }
      }
      let upperbit = (hi >> 63) as i32;
      let mut mantissa = hi >> (upperbit + 64 - F::SIG_BITS as i32 - 3);
      let mut power2 = power(q as i32) + upperbit - lz as i32 - F::EXP_MIN + 1;
      if power2 <= 0 {
          if -power2 + 1 >= 64 {
              // Have more than 64 bits below the minimum exponent, must be 0.
              return fp_zero;
          }
          // Have a subnormal value.
          mantissa >>= -power2 + 1;
          mantissa += mantissa & 1;
          mantissa >>= 1;
          power2 = (mantissa >= (1_u64 << F::SIG_BITS)) as i32;
          return BiasedFp { m: mantissa, p_biased: power2 };
      }
      // Need to handle rounding ties. Normally, we need to round up,
      // but if we fall right in between and we have an even basis, we
      // need to round down.
      if lo <= 1
          && q >= F::MIN_EXPONENT_ROUND_TO_EVEN as i64
          && q <= F::MAX_EXPONENT_ROUND_TO_EVEN as i64
          && mantissa & 0b11 == 0b01
          && (mantissa << (upperbit + 64 - F::SIG_BITS as i32 - 3)) == hi
      {
          // Zero the lowest bit, so we don't round up.
          mantissa &= !1_u64;
      }
      // Round-to-even, then shift the significant digits into place.
      mantissa += mantissa & 1;
      mantissa >>= 1;
      if mantissa >= (2_u64 << F::SIG_BITS) {
          // Rounding up overflowed, so the carry bit is set. Set the
          // mantissa to 1 (only the implicit, hidden bit is set) and
          // increase the exponent.
          mantissa = 1_u64 << F::SIG_BITS;
          power2 += 1;
      }
      // Zero out the hidden bit.
      mantissa &= !(1_u64 << F::SIG_BITS);
      if power2 >= F::INFINITE_POWER {
          // Exponent is above largest normal value, must be infinite.
          return fp_inf;
      }
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact slow-tier source body from crate/dec2flt/slow.rs:

  pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {
      const MAX_SHIFT: usize = 60;
      const NUM_POWERS: usize = 19;
      const POWERS: [u8; 19] =
          [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];

      let get_shift = |n| {
          if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }
      };

      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);

      let mut d = parse_decimal_seq(s);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if d.num_digits == 0 || d.decimal_point < -324 {
          return fp_zero;
      } else if d.decimal_point >= 310 {
          return fp_inf;
      }
      let mut exp2 = 0_i32;
      let mut loop_result = None;
      // Shift right toward (1/2 ... 1].
      while d.decimal_point > 0 && loop_result.is_none() {
          let n = d.decimal_point as usize;
          let shift = get_shift(n);
          d.right_shift(shift);
          if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_zero);
          } else {
              exp2 += shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // Shift left toward (1/2 ... 1].
      while d.decimal_point <= 0 && loop_result.is_none() {
          let shift = if d.decimal_point == 0 {
              match d.digits[0] {
                  digit if digit >= 5 => break,
                  0 | 1 => 2,
                  _ => 1,
              }
          } else {
              get_shift((-d.decimal_point) as _)
          };
          d.left_shift(shift);
          if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_inf);
          } else {
              exp2 -= shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
      exp2 -= 1;
      while F::EXP_MIN > exp2 {
          let mut n = (F::EXP_MIN - exp2) as usize;
          if n > MAX_SHIFT {
              n = MAX_SHIFT;
          }
          d.right_shift(n);
          exp2 += n as i32;
      }
      if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
          return fp_inf;
      }
      // Shift the decimal to the hidden bit, and then round the value
      // to get the high mantissa+1 bits.
      d.left_shift(F::SIG_BITS as usize + 1);
      let mut mantissa = d.round();
      if mantissa >= (1_u64 << (F::SIG_BITS + 1)) {
          // Rounding up overflowed to the carry bit, need to
          // shift back to the hidden bit.
          d.right_shift(1);
          exp2 += 1;
          mantissa = d.round();
          if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
              return fp_inf;
          }
      }
      let mut power2 = exp2 - F::EXP_MIN + 1;
      if mantissa < (1_u64 << F::SIG_BITS) {
          power2 -= 1;
      }
      // Zero out all the bits above the explicit mantissa bits.
      mantissa &= (1_u64 << F::SIG_BITS) - 1;
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact final numeric-sign excerpt from crate/dec2flt/mod.rs:

  let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
  let assembly_result = biased_fp_to_float::<F>(fp);
  let lexical_sign_applied = num.negative;
  let result = if lexical_sign_applied {
      core::ops::Neg::neg(assembly_result)
  } else {
      assembly_result
  };

Thus a numeric execution that reaches the integer/slow selection route
assembles its selected pair with from_bits through biased_fp_to_float and only
then conditionally negates it. A successful try_fast_path returns earlier and
does not perform this assembly. compute_float and parse_long_mantissa produce
raw BiasedFp pairs and do not call from_u64, primitive float multiplication,
division, negation, or from_bits; they do, however, execute constants derived
from SIG_TOTAL_BITS before producing those pairs.

Retained structural-boundary evidence
-------------------------------------

Several adjacent structural bindings cite this same evidence record. Their
pinned library source identities are:

  core/src/num/mod.rs
    f0820f9dfb94999440c8cb4a349736fa21df7e5668e19b6b49e016ff67c05ce3
  core/src/option.rs
    7cf61204b05d98a95bc2e322d5fbfc1f4f91505109971917d9a7fb47151c50e6
  core/src/slice/mod.rs
    354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840
  core/src/str/mod.rs
    284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78

Exact ASCII-digit body from core/src/num/mod.rs:

  pub const fn is_ascii_digit(&self) -> bool {
      matches!(*self, b'0'..=b'9')
  }

Exact Option control-flow bodies from core/src/option.rs:

  fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
      match self {
          Some(v) => ControlFlow::Continue(v),
          None => ControlFlow::Break(None),
      }
  }

  fn from_residual(residual: Option<convert::Infallible>) -> Self {
      match residual {
          None => None,
      }
  }

Exact slice observation bodies from core/src/slice/mod.rs:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

Exact string-byte body from core/src/str/mod.rs:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }
reference/model-evidence/binary64-probe.rs

Open file

#![feature(float_masks)]

use std::num::FpCategory;

fn bits(label: &str, value: f64) {
    println!("{label}={:016x}", value.to_bits());
}

fn main() {
    println!("target_arch={}", std::env::consts::ARCH);
    println!("mantissa_digits={}", f64::MANTISSA_DIGITS);
    println!("exponent_mask={:016x}", f64::EXPONENT_MASK);
    println!("mantissa_mask={:016x}", f64::MANTISSA_MASK);
    bits("nan", f64::NAN);
    bits("infinity", f64::INFINITY);
    bits("neg_infinity", f64::NEG_INFINITY);

    for (label, value) in [
        ("nan_category", f64::NAN),
        ("infinity_category", f64::INFINITY),
        ("zero_category", 0.0),
        ("subnormal_category", f64::from_bits(1)),
        ("normal_category", 1.0),
    ] {
        let category = match value.classify() {
            FpCategory::Nan => "Nan",
            FpCategory::Infinite => "Infinite",
            FpCategory::Zero => "Zero",
            FpCategory::Subnormal => "Subnormal",
            FpCategory::Normal => "Normal",
        };
        println!("{label}={category}");
    }

    let payload_nan_word = 0x7ff0_0000_0000_0001_u64;
    println!(
        "from_bits_to_bits={:016x}",
        f64::from_bits(payload_nan_word).to_bits()
    );
    bits("neg_payload_nan", -f64::from_bits(payload_nan_word));
    bits("neg_zero", -0.0);

    bits("subnormal_tie_to_even_zero", f64::from_bits(1) * 0.5);
    bits("subnormal_tie_to_even_two", f64::from_bits(3) * 0.5);
    bits("normal_division", 1.0 / 10.0);
    bits("mul_negative_zero", -0.0 * 2.0);
    bits("div_negative_zero", -1.0 / f64::INFINITY);
    bits("div_negative_infinity", 1.0 / -0.0);
    bits("mul_overflow", f64::MAX * (1.0 + f64::EPSILON));
    println!("mul_zero_infinity_is_nan={}", (0.0 * f64::INFINITY).is_nan());
    println!("div_zero_zero_is_nan={}", (0.0_f64 / 0.0_f64).is_nan());
    println!("mul_nan_is_nan={}", (f64::NAN * 1.0).is_nan());

    bits("cast_2_pow_53", (1_u64 << 53) as f64);
    bits("cast_2_pow_53_plus_1", ((1_u64 << 53) + 1) as f64);
}
Assumptions / kernel axioms
  • Classical.choice
  • Quot.sound
  • propext

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (32)
All 32 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourceTablet/model-support.json
Kindopaque external binding
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:67b7f470353c9d246aad6d312511da26b3381dc89a4e20a8d7d15ce708995550
Preservation current fingerprintpreservation-v1:67b7f470353c9d246aad6d312511da26b3381dc89a4e20a8d7d15ce708995550
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"255b2144e2885d8d4584092e44db1391e26adb165b2be45c62fcc1a6cb66ce69","lean_semantic_closure":"80c73ea0665302cd5c54c07197df969e3333a5d483f73afd0aafca4293e0d917","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","Binary64ModelDefault":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","Binary64ModelDefault","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence current fingerprint{"own_tex":"255b2144e2885d8d4584092e44db1391e26adb165b2be45c62fcc1a6cb66ce69","lean_semantic_closure":"80c73ea0665302cd5c54c07197df969e3333a5d483f73afd0aafca4293e0d917","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","Binary64ModelDefault":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","Binary64ModelDefault","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "99ceca5ae306fdeca62ce7f4099ce1f2cc073b8aaef69f30dd19907a76c7f2ce",
    "dep_statement_hashes": {
      "Binary64ModelDefault": "be5dcc4afe23616ca8fd1d15d30fbbe4ee2621d68be3341b8e74a66e6dcd736f"
    },
    "combined_sound_fp": "preservation-v1:67b7f470353c9d246aad6d312511da26b3381dc89a4e20a8d7d15ce708995550"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Exact source record
{
  "name": "core.f64.F64.EXPONENT_MASK",
  "extracted_signature": ": Result Std.U64",
  "rust_symbol": "core::f64::{f64}::EXPONENT_MASK",
  "raw_declaration_sha256": "f1054e64392d8f9306e8c69015f0b521d9f387edda8458a3bae4773606f46a71",
  "node": "ModelF64ExponentMask",
  "declaration": "dec2flt_model.ModelF64ExponentMask"
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/binary64-boundary.txt",
    "sha256": "fa45c924747337e8d6f84a19fe9e83fb9b33c73434887c0cf57c062533f51fe1",
    "cited_by": [
      "Tablet/ModelF64ExponentMask.tex",
      "Tablet/model-support.json"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-probe.rs",
    "sha256": "68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e",
    "cited_by": [
      "reference/model-evidence/binary64-boundary.txt"
    ]
  }
]

core::f64::{f64}::MANTISSA_MASK

Inspect related source (1)

Related source and models come from the extraction records and declared dependencies.

Rust itemcore::f64::{f64}::MANTISSA_MASK
Recorded source/rustc/library/core/src/num/f64.rs
Lines637:4–637:32

The related-source link includes this operation’s Rust standard-library implementation.

Opaque extraction signature
: Result Std.U64
Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Tablet.Binary64ModelDefault
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelF64MantissaMask]
def ModelF64MantissaMask : Result Std.U64 :=
-- BODY
  Binary64ModelDefault.mantissaMask
end dec2flt_model

Why this model is faithful

Definition

\mathsf{ModelF64MantissaMask} returns the binary64 stored-fraction mask \mathtt{0x000fffffffffffff} successfully.

Preservation argument

Claim

This binding returns the exact source binary64 stored-fraction mask.

Proof

The definition is the fraction-mask field of Binary64ModelDefault. It is 000fffffffffffff, exactly the frozen Rust constant recorded in reference/model-evidence/binary64-boundary.txt.
Authored arguments for individual requirements

Requirement: assembly correspondence

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification significand digit

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch abstract composition

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch component compliance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: exponent value agreement

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: integer correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: native correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper accumulated value

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper record bounds

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser equal target rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser exact rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser invalid rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser nan acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser non nan results

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected exponent

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected magnitude sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser signed zero

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: slow accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper nan

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Recorded review

CorrespondencePass
PreservationVerifierPass

ModelF64MantissaMask · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/binary64-boundary.txt

Open file

Primary evidence for the binary64 boundary
==========================================

Scope and identities
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction, the
adapted Rust crate retained in this repository, and the installed toolchain
named by modeling-input/SETUP.md. The probe source is retained at
reference/model-evidence/binary64-probe.rs; no scratch source is required to
reproduce it.

Toolchain executable:
  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
Target:
  x86_64-unknown-linux-gnu
rustc executable SHA-256:
  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
Probe source SHA-256:
  68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
Compiled probe SHA-256:
  f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
Frozen generated.lean SHA-256:
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9
Frozen modeling-input/manifest.json SHA-256:
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2
Approved Binary64ModelDefault.lean SHA-256 at the time of this record:
  03ae48fb631e6242bd21bf95d0481b66acae05f8cab343c7ab279b3c116538a3

Exact reproduction commands
---------------------------

Run from the repository root:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-probe.rs
  B=.trellis/scratch/binary64-probe
  "$R" --version --verbose
  sha256sum "$R"
  sha256sum "$P"
  "$R" --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$B"
  "$B"

Raw output
----------

  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
  rustc_sha256=162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  probe_sha256=68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
  binary_sha256=f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
  target_arch=x86_64
  mantissa_digits=53
  exponent_mask=7ff0000000000000
  mantissa_mask=000fffffffffffff
  nan=7ff8000000000000
  infinity=7ff0000000000000
  neg_infinity=fff0000000000000
  nan_category=Nan
  infinity_category=Infinite
  zero_category=Zero
  subnormal_category=Subnormal
  normal_category=Normal
  from_bits_to_bits=7ff0000000000001
  neg_payload_nan=fff0000000000001
  neg_zero=8000000000000000
  subnormal_tie_to_even_zero=0000000000000000
  subnormal_tie_to_even_two=0000000000000002
  normal_division=3fb999999999999a
  mul_negative_zero=8000000000000000
  div_negative_zero=8000000000000000
  div_negative_infinity=fff0000000000000
  mul_overflow=7ff0000000000000
  mul_zero_infinity_is_nan=true
  div_zero_zero_is_nan=true
  mul_nan_is_nan=true
  cast_2_pow_53=4340000000000000
  cast_2_pow_53_plus_1=4340000000000000

Pinned Rust library sources
---------------------------

The installed sources below belong to the same named toolchain. Their
SHA-256 identities are:

  core/src/primitive_docs.rs
    c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5
  core/src/num/f64.rs
    84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618
  core/src/clone.rs
    23f9cfc80347fde6b8457d46fbf7a2b8d9f34c8c58601b0b6f714ca2f6d1976b

The exact relevant text of core/src/primitive_docs.rs is:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The referenced primitive-f32 documentation supplies the common primitive
floating-point operation rules quoted next:

  /// - −0.0: IEEE 754 floating-point numbers have a bit that indicates their sign, so −0.0 is a
  ///   possible value. For comparison −0.0 = +0.0, but floating-point operations can carry
  ///   the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
  ///   a negative number rounded to a value smaller than a float can represent also produces −0.0.
  /// - [∞](#associatedconstant.INFINITY) and
  ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
  ///   like `1.0 / 0.0`.
  ///
  /// When a primitive operation (addition, subtraction, multiplication, or
  /// division) is performed on this type, the result is rounded according to the
  /// roundTiesToEven direction defined in IEEE 754-2008. That means:
  ///
  /// - The result is the representable value closest to the true value, if there
  ///   is a unique closest representable value.
  /// - If the true value is exactly half-way between two representable values,
  ///   the result is the one with an even least-significant binary digit.
  /// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
  ///   `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
  ///   true value's sign).

The same file explicitly separates arithmetic NaN choice from exact bitwise
operations; its exact relevant text is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.
  ///
  /// The following rules apply when a NaN value is returned from an arithmetic operation:
  /// - The result has a non-deterministic sign.
  /// - The quiet bit and payload are non-deterministically chosen from
  ///   the following set of options:
  ///
  ///   - **Preferred NaN**: The quiet bit is set and the payload is all-zero.
  ///   - **Quieting NaN propagation**: The quiet bit is set and the payload is copied from any input
  ///     operand that is a NaN. If the inputs and outputs do not have the same payload size (i.e., for
  ///     `as` casts), then
  ///     - If the output is smaller than the input, low-order bits of the payload get dropped.
  ///     - If the output is larger than the input, the payload gets filled up with 0s in the low-order
  ///       bits.
  ///   - **Unchanged NaN propagation**: The quiet bit and payload are copied from any input operand
  ///     that is a NaN. If the inputs and outputs do not have the same size (i.e., for `as` casts), the
  ///     same rules as for "quieting NaN propagation" apply, with one caveat: if the output is smaller
  ///     than the input, dropping the low-order bits may result in a payload of 0; a payload of 0 is not
  ///     possible with a signaling NaN (the all-0 significand encodes an infinity) so unchanged NaN
  ///     propagation cannot occur with some inputs.
  ///   - **Target-specific NaN**: The quiet bit is set and the payload is picked from a target-specific
  ///     set of "extra" possible NaN payloads. The set can depend on the input operand values.
  ///     See the table below for the concrete NaNs this set contains on various targets.
  ///
  /// | `target_arch` | Extra payloads possible on this platform |
  /// |---------------|------------------------------------------|
  /// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |

Thus the model's preferred quiet NaN is one permitted result whenever
multiplication or division returns NaN. This does not claim that arbitrary
Rust arithmetic NaNs have those exact bits. By contrast, unary negation and
bit conversion must preserve all non-sign bits exactly, including for every
NaN payload.

The exact relevant declarations in core/src/num/f64.rs are:

  pub const MANTISSA_DIGITS: u32 = 53;
  pub const NAN: f64 = 0.0_f64 / 0.0_f64;
  pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
  pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
  pub const SIGN_MASK: u64 = 0x8000_0000_0000_0000;
  pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;
  pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff;

  pub const fn classify(self) -> FpCategory {
      // We used to have complicated logic here that avoids the simple bit-based tests to work
      // around buggy codegen for x87 targets (see
      // https://github.com/rust-lang/rust/issues/114479). However, some LLVM versions later, none
      // of our tests is able to find any difference between the complicated and the naive
      // version, so now we are back to the naive version.
      let b = self.to_bits();
      match (b & Self::MANTISSA_MASK, b & Self::EXPONENT_MASK) {
          (0, Self::EXPONENT_MASK) => FpCategory::Infinite,
          (_, Self::EXPONENT_MASK) => FpCategory::Nan,
          (0, 0) => FpCategory::Zero,
          (_, 0) => FpCategory::Subnormal,
          _ => FpCategory::Normal,
      }
  }

  pub const fn to_bits(self) -> u64 {
      // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
      unsafe { mem::transmute(self) }
  }

  pub const fn from_bits(v: u64) -> Self {
      // It turns out the safety issues with sNaN were overblown! Hooray!
      // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
      unsafe { mem::transmute(v) }
  }

The exact scalar clone body in core/src/clone.rs is:

  impl const Clone for $t {
      #[inline(always)]
      fn clone(&self) -> Self {
          *self
      }
  }

Frozen adapted source
---------------------

The relevant retained source file hashes are:

  crate/traits.rs
    9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  crate/dec2flt/decimal.rs
    633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb
  crate/dec2flt/lemire.rs
    fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1
  crate/dec2flt/slow.rs
    93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485

The dispatcher excerpts below are reproduced from the identified file by
running these commands from the repository root:

  sha256sum crate/dec2flt/mod.rs
  sed -n '354,403p' crate/dec2flt/mod.rs
  sed -n '405,422p' crate/dec2flt/mod.rs
  sed -n '465,475p' crate/dec2flt/mod.rs
  sed -n '506,523p' crate/dec2flt/mod.rs

Exact constant and bit-conversion excerpt from crate/traits.rs:

  impl Float for f64 {
      type Int = u64;

      const INFINITY: Self = Self::INFINITY;
      const NEG_INFINITY: Self = Self::NEG_INFINITY;
      const NAN: Self = Self::NAN;
      // Bit-identical to the upstream `-f64::NAN`, without the unsupported
      // compile-time float negation.
      const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);

      const BITS: u32 = 64;
      const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
      const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
      const SIG_MASK: Self::Int = Self::MANTISSA_MASK;

      fn to_bits(self) -> Self::Int {
          self.to_bits()
      }

      fn classify(self) -> FpCategory {
          self.classify()
      }
  }

  impl FloatExt for f64 {
      #[inline]
      fn from_u64_bits(v: u64) -> Self {
          f64::from_bits(v)
      }

Exact derived-constant defaults from crate/traits.rs:

  /// The number of bits in the significand, *excluding* the hidden bit.
  const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;

  /// Number of bits in the exponent.
  const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

  /// The saturated (maximum bitpattern) value of the exponent, i.e. the infinite
  /// representation.
  ///
  /// This shifted fully right, use `EXP_MASK` for the shifted value.
  const EXP_SAT: u32 = (1 << Self::EXP_BITS) - 1;

  /// Signed version of `EXP_SAT` since we convert a lot.
  const INFINITE_POWER: i32 = Self::EXP_SAT as i32;

  /// The exponent bias value. This is also the maximum value of the exponent.
  const EXP_BIAS: u32 = Self::EXP_SAT >> 1;

  /// Minimum exponent value of normal values.
  const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Together with the f64-instance lines `BITS = 64` and
`SIG_TOTAL_BITS = Self::MANTISSA_DIGITS` in the preceding excerpt, these
defaults derive SIG_BITS, EXP_MIN, and INFINITE_POWER from the primitive
mantissa-digit constant rather than introducing independent parameters.

Exact asserted-conversion excerpt from crate/dec2flt/mod.rs:

  #[inline]
  // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
  // `charon::opaque` makes this entire asserted conversion external: both the
  // unchanged `debug_assert!` and the unchanged cast below are in the opaque
  // body. The callers, their fast-path guards, and their surrounding
  // computation remain mechanically visible. A corresponding model binding
  // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
  // exact binary64 conversion at or below that bound.
  #[charon::opaque]
  fn from_u64(v: u64) -> Self {
      debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
      v as _
  }

Here MAX_MANTISSA_FAST_PATH is the retained default 1 << 53.  The attribute is
attached to the function item, so the generated external stands for the whole
method, not merely the cast.  In the enabled-debug configuration the source
succeeds only when v <= 2^53; above it the assertion fails before the cast. On
the successful branch every integer is exactly representable, so the source
cast and the model rounder return the same word.

Exact power-table and assembly excerpts from crate/dec2flt/mod.rs:

  /// Maximum mantissa for the fast-path (`1 << 53` for f64).
  const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;

  const MAX_EXPONENT_FAST_PATH: i64 = 22;
  const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
  const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;

  fn pow10_fast_path(exponent: usize) -> Self {
      // These bit patterns are exactly the source table's rounded binary64
      // literals.  The match is the same masked lookup; it merely keeps float
      // constants out of Aeneas's unsupported constant interpreter.
      match exponent & 31 {
          0 => f64::from_bits(0x3FF0_0000_0000_0000),
          1 => f64::from_bits(0x4024_0000_0000_0000),
          2 => f64::from_bits(0x4059_0000_0000_0000),
          3 => f64::from_bits(0x408F_4000_0000_0000),
          4 => f64::from_bits(0x40C3_8800_0000_0000),
          5 => f64::from_bits(0x40F8_6A00_0000_0000),
          6 => f64::from_bits(0x412E_8480_0000_0000),
          7 => f64::from_bits(0x4163_12D0_0000_0000),
          8 => f64::from_bits(0x4197_D784_0000_0000),
          9 => f64::from_bits(0x41CD_CD65_0000_0000),
          10 => f64::from_bits(0x4202_A05F_2000_0000),
          11 => f64::from_bits(0x4237_4876_E800_0000),
          12 => f64::from_bits(0x426D_1A94_A200_0000),
          13 => f64::from_bits(0x42A2_309C_E540_0000),
          14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
          15 => f64::from_bits(0x430C_6BF5_2634_0000),
          16 => f64::from_bits(0x4341_C379_37E0_8000),
          17 => f64::from_bits(0x4376_3457_85D8_A000),
          18 => f64::from_bits(0x43AB_C16D_674E_C800),
          19 => f64::from_bits(0x43E1_58E4_6091_3D00),
          20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
          21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
          22 => f64::from_bits(0x4480_F0CF_064D_D592),
          _ => f64::from_bits(0),
      }
  }

  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

Exact native-call excerpt from crate/dec2flt/decimal.rs:

  fn can_use_fast_path<F: Lemire>(&self) -> bool {
      F::MIN_EXPONENT_FAST_PATH <= self.exponent
          && self.exponent <= F::MAX_EXPONENT_DISGUISED_FAST_PATH
          && self.mantissa <= F::MAX_MANTISSA_FAST_PATH
          && !self.many_digits
  }

  if !self.can_use_fast_path::<F>() {
      return None;
  }

  let value = if self.exponent <= F::MAX_EXPONENT_FAST_PATH {
      // normal fast path
      let value = F::from_u64(self.mantissa);
      if self.exponent < 0 {
          // Explicit trait calls preserve Rust arithmetic and resolve
          // the generic output type that Charon leaves ambiguous.
          core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
      } else {
          core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
      }
  } else {
      // disguised fast path
      let shift = self.exponent - F::MAX_EXPONENT_FAST_PATH;
      let mantissa = self.mantissa.checked_mul(INT_POW10[shift as usize])?;
      if mantissa > F::MAX_MANTISSA_FAST_PATH {
          return None;
      }
      core::ops::Mul::mul(
          F::from_u64(mantissa),
          F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
      )
  };

  if self.negative {
      Some(core::ops::Neg::neg(value))
  } else {
      Some(value)
  }

The preceding can_use_fast_path body, together with
MAX_MANTISSA_FAST_PATH = 1 << SIG_TOTAL_BITS and SIG_TOTAL_BITS = 53 for f64,
requires the exponent to lie between -22 and 37, the input mantissa to be at
most 2^53, and many_digits to be false. Consequently an ordinary arithmetic
call has a from_u64 operand in 0..=2^53. In its negative-exponent arm,
`-self.exponent` lies in 1..=22; in its nonnegative arm, `self.exponent` lies
in 0..=22. The disguised branch checks its multiplied mantissa against 2^53
before from_u64 and uses table index 22. The paired statement
Binary64NativeCallDomain does not assert this source reachability. It says
conditionally that a from_u64 argument at most 2^53 succeeds with a finite,
non-NaN word and that a table index at most 22 succeeds with a positive,
nonzero, finite, non-NaN word. Applying that conditional statement to the
guards just derived establishes those properties for the actual ordinary and
disguised calls, and in particular establishes that every executed divisor is
nonzero.

Exact special-value excerpt from crate/dec2flt/parse.rs:

  let float = match (register, len) {
      (INF_3, 3) => F::INFINITY,
      (INF_8, 8) => F::INFINITY,
      (NAN, 3) => F::NAN,
      _ => return None,
  };

  if negative { Some(-float) } else { Some(float) }

Thus the executed special route is INFINITY or NAN followed by conditional
negation; it does not select NEG_INFINITY or NEG_NAN directly.

The number helper has the exact source body

  pub fn parse_number(s: &[u8]) -> Option<Decimal> {
      if let Some((float, rest)) = parse_partial_number(s) {
          if rest == s.len() {
              return Some(float);
          }
      }
      None
  }

It returns only the Decimal produced by parse_partial_number; there is no
float type parameter or float operation at this boundary.

Exact dispatcher excerpts from crate/dec2flt/mod.rs
---------------------------------------------------

The entry of `dec2flt_with_trace` strips at most one leading sign, rejects
empty and sign-only inputs, calls `parse_number` on the unsigned body, and
calls `parse_inf_nan` only when `parse_number` returns `None`:

  /// Run the actual dispatcher while retaining its approved internal observations.
  pub fn dec2flt_with_trace<
      'a,
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {
          return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
      };
      let negative = c == b'-';
      if c == b'-' || c == b'+' {
          body = &body[1..];
      }
      if body.is_empty() {
          return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
      }

      let parse_number_result = parse_number(body);
      let parsed = match parse_number_result {
          Some(r) => r,
          None => {
              let parse_inf_nan_result = parse_inf_nan(body, negative);
              return match parse_inf_nan_result {
                  Some(value) => (
                      Ok(value),
                      Dec2FltTrace::Special {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                          result: value,
                      },
                  ),
                  None => (
                      Err(pfe_invalid()),
                      Dec2FltTrace::Invalid {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                      },
                  ),
              };
          }
      };

Thus every `Err` arm shown here returns before `parsed` is available and before
the native, integer, slow, assembly, or final-negation code below it can run.
On a numeric result, the lexical sign is copied into the parsed record before
the native attempt, whose successful result also returns before raw-pair
assembly:

      let mut num = parsed;
      num.negative = negative;
      if !cfg!(feature = "optimize_for_size") {
          let fast_path_result = num.try_fast_path::<F>();
          if let Some(value) = fast_path_result {
              return (
                  Ok(value),
                  Dec2FltTrace::FastPath {
                      body,
                      negative,
                      parse_number_result,
                      fast_path_input: num,
                      fast_path_result,
                      result: value,
                  },
              );
          }
      }

If the native attempt does not return, the selected raw pair is assembled and
the source then conditionally negates it according to the lexical-sign flag:

      let selected_pair = fp;
      // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
      // it neither changes the selected pair nor introduces a new branch or call.
      let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
      let assembly_result = biased_fp_to_float::<F>(fp);
      let lexical_sign_applied = num.negative;
      let result = if lexical_sign_applied {
          core::ops::Neg::neg(assembly_result)
      } else {
          assembly_result
      };

The public `dec2flt` executes that same route and returns its result projection;
it does not reimplement or reorder any parsing or float operation:

  /// Converts a decimal string into a floating point number.
  #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
  pub fn dec2flt<
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &str,
  ) -> Result<F, ParseFloatError> {
      // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
      // clause admits exactly the same instances and lets Charon resolve the
      // explicit, source-equivalent final negation.
      // The public function is now exactly the result projection of the single
      // instrumented implementation.  No conversion step is duplicated, and
      // discarding the trace cannot affect Rust evaluation or the returned bits.
      dec2flt_with_trace::<F>(s).0
  }

The integer-tier helper has the source type and exact executable excerpts
below (long explanatory comments are elided). In particular it returns a raw
BiasedFp and contains no from_u64 cast, primitive float multiplication,
division, negation, or from_bits call:

  pub fn compute_float<F: Float>(q: i64, mut w: u64) -> BiasedFp {
      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);
      let fp_error = BiasedFp::zero_pow2(-1);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if w == 0 || q < F::SMALLEST_POWER_OF_TEN as i64 {
          return fp_zero;
      } else if q > F::LARGEST_POWER_OF_TEN as i64 {
          return fp_inf;
      }
      // Normalize our significant digits, so the most-significant bit is set.
      let lz = w.leading_zeros();
      w <<= lz;
      let (lo, hi) = compute_product_approx(q, w, F::SIG_BITS as usize + 3);
      if lo == 0xFFFF_FFFF_FFFF_FFFF {
          let inside_safe_exponent = (q >= -27) && (q <= 55);
          if !inside_safe_exponent {
              return fp_error;
          }
      }
      let upperbit = (hi >> 63) as i32;
      let mut mantissa = hi >> (upperbit + 64 - F::SIG_BITS as i32 - 3);
      let mut power2 = power(q as i32) + upperbit - lz as i32 - F::EXP_MIN + 1;
      if power2 <= 0 {
          if -power2 + 1 >= 64 {
              // Have more than 64 bits below the minimum exponent, must be 0.
              return fp_zero;
          }
          // Have a subnormal value.
          mantissa >>= -power2 + 1;
          mantissa += mantissa & 1;
          mantissa >>= 1;
          power2 = (mantissa >= (1_u64 << F::SIG_BITS)) as i32;
          return BiasedFp { m: mantissa, p_biased: power2 };
      }
      // Need to handle rounding ties. Normally, we need to round up,
      // but if we fall right in between and we have an even basis, we
      // need to round down.
      if lo <= 1
          && q >= F::MIN_EXPONENT_ROUND_TO_EVEN as i64
          && q <= F::MAX_EXPONENT_ROUND_TO_EVEN as i64
          && mantissa & 0b11 == 0b01
          && (mantissa << (upperbit + 64 - F::SIG_BITS as i32 - 3)) == hi
      {
          // Zero the lowest bit, so we don't round up.
          mantissa &= !1_u64;
      }
      // Round-to-even, then shift the significant digits into place.
      mantissa += mantissa & 1;
      mantissa >>= 1;
      if mantissa >= (2_u64 << F::SIG_BITS) {
          // Rounding up overflowed, so the carry bit is set. Set the
          // mantissa to 1 (only the implicit, hidden bit is set) and
          // increase the exponent.
          mantissa = 1_u64 << F::SIG_BITS;
          power2 += 1;
      }
      // Zero out the hidden bit.
      mantissa &= !(1_u64 << F::SIG_BITS);
      if power2 >= F::INFINITE_POWER {
          // Exponent is above largest normal value, must be infinite.
          return fp_inf;
      }
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact slow-tier source body from crate/dec2flt/slow.rs:

  pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {
      const MAX_SHIFT: usize = 60;
      const NUM_POWERS: usize = 19;
      const POWERS: [u8; 19] =
          [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];

      let get_shift = |n| {
          if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }
      };

      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);

      let mut d = parse_decimal_seq(s);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if d.num_digits == 0 || d.decimal_point < -324 {
          return fp_zero;
      } else if d.decimal_point >= 310 {
          return fp_inf;
      }
      let mut exp2 = 0_i32;
      let mut loop_result = None;
      // Shift right toward (1/2 ... 1].
      while d.decimal_point > 0 && loop_result.is_none() {
          let n = d.decimal_point as usize;
          let shift = get_shift(n);
          d.right_shift(shift);
          if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_zero);
          } else {
              exp2 += shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // Shift left toward (1/2 ... 1].
      while d.decimal_point <= 0 && loop_result.is_none() {
          let shift = if d.decimal_point == 0 {
              match d.digits[0] {
                  digit if digit >= 5 => break,
                  0 | 1 => 2,
                  _ => 1,
              }
          } else {
              get_shift((-d.decimal_point) as _)
          };
          d.left_shift(shift);
          if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_inf);
          } else {
              exp2 -= shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
      exp2 -= 1;
      while F::EXP_MIN > exp2 {
          let mut n = (F::EXP_MIN - exp2) as usize;
          if n > MAX_SHIFT {
              n = MAX_SHIFT;
          }
          d.right_shift(n);
          exp2 += n as i32;
      }
      if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
          return fp_inf;
      }
      // Shift the decimal to the hidden bit, and then round the value
      // to get the high mantissa+1 bits.
      d.left_shift(F::SIG_BITS as usize + 1);
      let mut mantissa = d.round();
      if mantissa >= (1_u64 << (F::SIG_BITS + 1)) {
          // Rounding up overflowed to the carry bit, need to
          // shift back to the hidden bit.
          d.right_shift(1);
          exp2 += 1;
          mantissa = d.round();
          if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
              return fp_inf;
          }
      }
      let mut power2 = exp2 - F::EXP_MIN + 1;
      if mantissa < (1_u64 << F::SIG_BITS) {
          power2 -= 1;
      }
      // Zero out all the bits above the explicit mantissa bits.
      mantissa &= (1_u64 << F::SIG_BITS) - 1;
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact final numeric-sign excerpt from crate/dec2flt/mod.rs:

  let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
  let assembly_result = biased_fp_to_float::<F>(fp);
  let lexical_sign_applied = num.negative;
  let result = if lexical_sign_applied {
      core::ops::Neg::neg(assembly_result)
  } else {
      assembly_result
  };

Thus a numeric execution that reaches the integer/slow selection route
assembles its selected pair with from_bits through biased_fp_to_float and only
then conditionally negates it. A successful try_fast_path returns earlier and
does not perform this assembly. compute_float and parse_long_mantissa produce
raw BiasedFp pairs and do not call from_u64, primitive float multiplication,
division, negation, or from_bits; they do, however, execute constants derived
from SIG_TOTAL_BITS before producing those pairs.

Retained structural-boundary evidence
-------------------------------------

Several adjacent structural bindings cite this same evidence record. Their
pinned library source identities are:

  core/src/num/mod.rs
    f0820f9dfb94999440c8cb4a349736fa21df7e5668e19b6b49e016ff67c05ce3
  core/src/option.rs
    7cf61204b05d98a95bc2e322d5fbfc1f4f91505109971917d9a7fb47151c50e6
  core/src/slice/mod.rs
    354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840
  core/src/str/mod.rs
    284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78

Exact ASCII-digit body from core/src/num/mod.rs:

  pub const fn is_ascii_digit(&self) -> bool {
      matches!(*self, b'0'..=b'9')
  }

Exact Option control-flow bodies from core/src/option.rs:

  fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
      match self {
          Some(v) => ControlFlow::Continue(v),
          None => ControlFlow::Break(None),
      }
  }

  fn from_residual(residual: Option<convert::Infallible>) -> Self {
      match residual {
          None => None,
      }
  }

Exact slice observation bodies from core/src/slice/mod.rs:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

Exact string-byte body from core/src/str/mod.rs:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }
reference/model-evidence/binary64-probe.rs

Open file

#![feature(float_masks)]

use std::num::FpCategory;

fn bits(label: &str, value: f64) {
    println!("{label}={:016x}", value.to_bits());
}

fn main() {
    println!("target_arch={}", std::env::consts::ARCH);
    println!("mantissa_digits={}", f64::MANTISSA_DIGITS);
    println!("exponent_mask={:016x}", f64::EXPONENT_MASK);
    println!("mantissa_mask={:016x}", f64::MANTISSA_MASK);
    bits("nan", f64::NAN);
    bits("infinity", f64::INFINITY);
    bits("neg_infinity", f64::NEG_INFINITY);

    for (label, value) in [
        ("nan_category", f64::NAN),
        ("infinity_category", f64::INFINITY),
        ("zero_category", 0.0),
        ("subnormal_category", f64::from_bits(1)),
        ("normal_category", 1.0),
    ] {
        let category = match value.classify() {
            FpCategory::Nan => "Nan",
            FpCategory::Infinite => "Infinite",
            FpCategory::Zero => "Zero",
            FpCategory::Subnormal => "Subnormal",
            FpCategory::Normal => "Normal",
        };
        println!("{label}={category}");
    }

    let payload_nan_word = 0x7ff0_0000_0000_0001_u64;
    println!(
        "from_bits_to_bits={:016x}",
        f64::from_bits(payload_nan_word).to_bits()
    );
    bits("neg_payload_nan", -f64::from_bits(payload_nan_word));
    bits("neg_zero", -0.0);

    bits("subnormal_tie_to_even_zero", f64::from_bits(1) * 0.5);
    bits("subnormal_tie_to_even_two", f64::from_bits(3) * 0.5);
    bits("normal_division", 1.0 / 10.0);
    bits("mul_negative_zero", -0.0 * 2.0);
    bits("div_negative_zero", -1.0 / f64::INFINITY);
    bits("div_negative_infinity", 1.0 / -0.0);
    bits("mul_overflow", f64::MAX * (1.0 + f64::EPSILON));
    println!("mul_zero_infinity_is_nan={}", (0.0 * f64::INFINITY).is_nan());
    println!("div_zero_zero_is_nan={}", (0.0_f64 / 0.0_f64).is_nan());
    println!("mul_nan_is_nan={}", (f64::NAN * 1.0).is_nan());

    bits("cast_2_pow_53", (1_u64 << 53) as f64);
    bits("cast_2_pow_53_plus_1", ((1_u64 << 53) + 1) as f64);
}
Assumptions / kernel axioms
  • Classical.choice
  • Quot.sound
  • propext

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (32)
All 32 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourceTablet/model-support.json
Kindopaque external binding
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:73966e44425c9788844b23350b38b25f8f7336acbf175e10d2cfebae0a3713da
Preservation current fingerprintpreservation-v1:73966e44425c9788844b23350b38b25f8f7336acbf175e10d2cfebae0a3713da
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"14ed75ce28431a353750ad105bf350beec679ec936692739193ca20d4289838f","lean_semantic_closure":"68309612925deed927586c9d2e8f6907ffe089d19691618016820c589a9285b8","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","Binary64ModelDefault":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","Binary64ModelDefault","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence current fingerprint{"own_tex":"14ed75ce28431a353750ad105bf350beec679ec936692739193ca20d4289838f","lean_semantic_closure":"68309612925deed927586c9d2e8f6907ffe089d19691618016820c589a9285b8","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","Binary64ModelDefault":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","Binary64ModelDefault","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "6be1b3dd910f24bf9ca1e86b3759ae06152f273ccf9d3cd750d229ca3b48b2ed",
    "dep_statement_hashes": {
      "Binary64ModelDefault": "be5dcc4afe23616ca8fd1d15d30fbbe4ee2621d68be3341b8e74a66e6dcd736f"
    },
    "combined_sound_fp": "preservation-v1:73966e44425c9788844b23350b38b25f8f7336acbf175e10d2cfebae0a3713da"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Exact source record
{
  "name": "core.f64.F64.MANTISSA_MASK",
  "extracted_signature": ": Result Std.U64",
  "rust_symbol": "core::f64::{f64}::MANTISSA_MASK",
  "raw_declaration_sha256": "dc3517faa141b7a7a016e9f73930af3c9af23d3e6d06874440d99eabbc846538",
  "node": "ModelF64MantissaMask",
  "declaration": "dec2flt_model.ModelF64MantissaMask"
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/binary64-boundary.txt",
    "sha256": "fa45c924747337e8d6f84a19fe9e83fb9b33c73434887c0cf57c062533f51fe1",
    "cited_by": [
      "Tablet/ModelF64MantissaMask.tex",
      "Tablet/model-support.json"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-probe.rs",
    "sha256": "68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e",
    "cited_by": [
      "reference/model-evidence/binary64-boundary.txt"
    ]
  }
]

core::f64::{f64}::classify

Inspect related source (1)

Related source and models come from the extraction records and declared dependencies.

Rust itemcore::f64::{f64}::classify
Recorded source/rustc/library/core/src/num/f64.rs
Lines782:4–782:45

The related-source link includes this operation’s Rust standard-library implementation.

Opaque extraction signature
: F64 → Result core.num.FpCategory
Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Tablet.Binary64ModelDefault
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelF64Classify]
def ModelF64Classify : F64 -> Result core.num.FpCategory :=
-- BODY
  Binary64ModelDefault.classify
end dec2flt_model

Why this model is faithful

Definition

\mathsf{ModelF64Classify} returns NaN, infinite, zero, subnormal, or normal according to the standard binary64 exponent and stored-fraction fields.

Preservation argument

Claim

For every raw binary64 word, this binding returns the same floating-point category as the frozen source.

Proof

The definition is the classifier of Binary64ModelDefault. Its five field cases are verbatim the mask cases in the frozen Rust classifier recorded in reference/model-evidence/binary64-boundary.txt.
Authored arguments for individual requirements

Requirement: assembly correspondence

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification significand digit

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch abstract composition

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch component compliance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: exponent value agreement

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: integer correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: native correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper accumulated value

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper record bounds

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser equal target rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser exact rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser invalid rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser nan acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser non nan results

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected exponent

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected magnitude sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser signed zero

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: slow accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper nan

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Recorded review

CorrespondencePass
PreservationVerifierPass

ModelF64Classify · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/binary64-boundary.txt

Open file

Primary evidence for the binary64 boundary
==========================================

Scope and identities
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction, the
adapted Rust crate retained in this repository, and the installed toolchain
named by modeling-input/SETUP.md. The probe source is retained at
reference/model-evidence/binary64-probe.rs; no scratch source is required to
reproduce it.

Toolchain executable:
  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
Target:
  x86_64-unknown-linux-gnu
rustc executable SHA-256:
  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
Probe source SHA-256:
  68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
Compiled probe SHA-256:
  f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
Frozen generated.lean SHA-256:
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9
Frozen modeling-input/manifest.json SHA-256:
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2
Approved Binary64ModelDefault.lean SHA-256 at the time of this record:
  03ae48fb631e6242bd21bf95d0481b66acae05f8cab343c7ab279b3c116538a3

Exact reproduction commands
---------------------------

Run from the repository root:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-probe.rs
  B=.trellis/scratch/binary64-probe
  "$R" --version --verbose
  sha256sum "$R"
  sha256sum "$P"
  "$R" --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$B"
  "$B"

Raw output
----------

  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
  rustc_sha256=162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  probe_sha256=68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
  binary_sha256=f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
  target_arch=x86_64
  mantissa_digits=53
  exponent_mask=7ff0000000000000
  mantissa_mask=000fffffffffffff
  nan=7ff8000000000000
  infinity=7ff0000000000000
  neg_infinity=fff0000000000000
  nan_category=Nan
  infinity_category=Infinite
  zero_category=Zero
  subnormal_category=Subnormal
  normal_category=Normal
  from_bits_to_bits=7ff0000000000001
  neg_payload_nan=fff0000000000001
  neg_zero=8000000000000000
  subnormal_tie_to_even_zero=0000000000000000
  subnormal_tie_to_even_two=0000000000000002
  normal_division=3fb999999999999a
  mul_negative_zero=8000000000000000
  div_negative_zero=8000000000000000
  div_negative_infinity=fff0000000000000
  mul_overflow=7ff0000000000000
  mul_zero_infinity_is_nan=true
  div_zero_zero_is_nan=true
  mul_nan_is_nan=true
  cast_2_pow_53=4340000000000000
  cast_2_pow_53_plus_1=4340000000000000

Pinned Rust library sources
---------------------------

The installed sources below belong to the same named toolchain. Their
SHA-256 identities are:

  core/src/primitive_docs.rs
    c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5
  core/src/num/f64.rs
    84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618
  core/src/clone.rs
    23f9cfc80347fde6b8457d46fbf7a2b8d9f34c8c58601b0b6f714ca2f6d1976b

The exact relevant text of core/src/primitive_docs.rs is:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The referenced primitive-f32 documentation supplies the common primitive
floating-point operation rules quoted next:

  /// - −0.0: IEEE 754 floating-point numbers have a bit that indicates their sign, so −0.0 is a
  ///   possible value. For comparison −0.0 = +0.0, but floating-point operations can carry
  ///   the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
  ///   a negative number rounded to a value smaller than a float can represent also produces −0.0.
  /// - [∞](#associatedconstant.INFINITY) and
  ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
  ///   like `1.0 / 0.0`.
  ///
  /// When a primitive operation (addition, subtraction, multiplication, or
  /// division) is performed on this type, the result is rounded according to the
  /// roundTiesToEven direction defined in IEEE 754-2008. That means:
  ///
  /// - The result is the representable value closest to the true value, if there
  ///   is a unique closest representable value.
  /// - If the true value is exactly half-way between two representable values,
  ///   the result is the one with an even least-significant binary digit.
  /// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
  ///   `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
  ///   true value's sign).

The same file explicitly separates arithmetic NaN choice from exact bitwise
operations; its exact relevant text is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.
  ///
  /// The following rules apply when a NaN value is returned from an arithmetic operation:
  /// - The result has a non-deterministic sign.
  /// - The quiet bit and payload are non-deterministically chosen from
  ///   the following set of options:
  ///
  ///   - **Preferred NaN**: The quiet bit is set and the payload is all-zero.
  ///   - **Quieting NaN propagation**: The quiet bit is set and the payload is copied from any input
  ///     operand that is a NaN. If the inputs and outputs do not have the same payload size (i.e., for
  ///     `as` casts), then
  ///     - If the output is smaller than the input, low-order bits of the payload get dropped.
  ///     - If the output is larger than the input, the payload gets filled up with 0s in the low-order
  ///       bits.
  ///   - **Unchanged NaN propagation**: The quiet bit and payload are copied from any input operand
  ///     that is a NaN. If the inputs and outputs do not have the same size (i.e., for `as` casts), the
  ///     same rules as for "quieting NaN propagation" apply, with one caveat: if the output is smaller
  ///     than the input, dropping the low-order bits may result in a payload of 0; a payload of 0 is not
  ///     possible with a signaling NaN (the all-0 significand encodes an infinity) so unchanged NaN
  ///     propagation cannot occur with some inputs.
  ///   - **Target-specific NaN**: The quiet bit is set and the payload is picked from a target-specific
  ///     set of "extra" possible NaN payloads. The set can depend on the input operand values.
  ///     See the table below for the concrete NaNs this set contains on various targets.
  ///
  /// | `target_arch` | Extra payloads possible on this platform |
  /// |---------------|------------------------------------------|
  /// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |

Thus the model's preferred quiet NaN is one permitted result whenever
multiplication or division returns NaN. This does not claim that arbitrary
Rust arithmetic NaNs have those exact bits. By contrast, unary negation and
bit conversion must preserve all non-sign bits exactly, including for every
NaN payload.

The exact relevant declarations in core/src/num/f64.rs are:

  pub const MANTISSA_DIGITS: u32 = 53;
  pub const NAN: f64 = 0.0_f64 / 0.0_f64;
  pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
  pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
  pub const SIGN_MASK: u64 = 0x8000_0000_0000_0000;
  pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;
  pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff;

  pub const fn classify(self) -> FpCategory {
      // We used to have complicated logic here that avoids the simple bit-based tests to work
      // around buggy codegen for x87 targets (see
      // https://github.com/rust-lang/rust/issues/114479). However, some LLVM versions later, none
      // of our tests is able to find any difference between the complicated and the naive
      // version, so now we are back to the naive version.
      let b = self.to_bits();
      match (b & Self::MANTISSA_MASK, b & Self::EXPONENT_MASK) {
          (0, Self::EXPONENT_MASK) => FpCategory::Infinite,
          (_, Self::EXPONENT_MASK) => FpCategory::Nan,
          (0, 0) => FpCategory::Zero,
          (_, 0) => FpCategory::Subnormal,
          _ => FpCategory::Normal,
      }
  }

  pub const fn to_bits(self) -> u64 {
      // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
      unsafe { mem::transmute(self) }
  }

  pub const fn from_bits(v: u64) -> Self {
      // It turns out the safety issues with sNaN were overblown! Hooray!
      // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
      unsafe { mem::transmute(v) }
  }

The exact scalar clone body in core/src/clone.rs is:

  impl const Clone for $t {
      #[inline(always)]
      fn clone(&self) -> Self {
          *self
      }
  }

Frozen adapted source
---------------------

The relevant retained source file hashes are:

  crate/traits.rs
    9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  crate/dec2flt/decimal.rs
    633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb
  crate/dec2flt/lemire.rs
    fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1
  crate/dec2flt/slow.rs
    93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485

The dispatcher excerpts below are reproduced from the identified file by
running these commands from the repository root:

  sha256sum crate/dec2flt/mod.rs
  sed -n '354,403p' crate/dec2flt/mod.rs
  sed -n '405,422p' crate/dec2flt/mod.rs
  sed -n '465,475p' crate/dec2flt/mod.rs
  sed -n '506,523p' crate/dec2flt/mod.rs

Exact constant and bit-conversion excerpt from crate/traits.rs:

  impl Float for f64 {
      type Int = u64;

      const INFINITY: Self = Self::INFINITY;
      const NEG_INFINITY: Self = Self::NEG_INFINITY;
      const NAN: Self = Self::NAN;
      // Bit-identical to the upstream `-f64::NAN`, without the unsupported
      // compile-time float negation.
      const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);

      const BITS: u32 = 64;
      const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
      const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
      const SIG_MASK: Self::Int = Self::MANTISSA_MASK;

      fn to_bits(self) -> Self::Int {
          self.to_bits()
      }

      fn classify(self) -> FpCategory {
          self.classify()
      }
  }

  impl FloatExt for f64 {
      #[inline]
      fn from_u64_bits(v: u64) -> Self {
          f64::from_bits(v)
      }

Exact derived-constant defaults from crate/traits.rs:

  /// The number of bits in the significand, *excluding* the hidden bit.
  const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;

  /// Number of bits in the exponent.
  const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

  /// The saturated (maximum bitpattern) value of the exponent, i.e. the infinite
  /// representation.
  ///
  /// This shifted fully right, use `EXP_MASK` for the shifted value.
  const EXP_SAT: u32 = (1 << Self::EXP_BITS) - 1;

  /// Signed version of `EXP_SAT` since we convert a lot.
  const INFINITE_POWER: i32 = Self::EXP_SAT as i32;

  /// The exponent bias value. This is also the maximum value of the exponent.
  const EXP_BIAS: u32 = Self::EXP_SAT >> 1;

  /// Minimum exponent value of normal values.
  const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Together with the f64-instance lines `BITS = 64` and
`SIG_TOTAL_BITS = Self::MANTISSA_DIGITS` in the preceding excerpt, these
defaults derive SIG_BITS, EXP_MIN, and INFINITE_POWER from the primitive
mantissa-digit constant rather than introducing independent parameters.

Exact asserted-conversion excerpt from crate/dec2flt/mod.rs:

  #[inline]
  // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
  // `charon::opaque` makes this entire asserted conversion external: both the
  // unchanged `debug_assert!` and the unchanged cast below are in the opaque
  // body. The callers, their fast-path guards, and their surrounding
  // computation remain mechanically visible. A corresponding model binding
  // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
  // exact binary64 conversion at or below that bound.
  #[charon::opaque]
  fn from_u64(v: u64) -> Self {
      debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
      v as _
  }

Here MAX_MANTISSA_FAST_PATH is the retained default 1 << 53.  The attribute is
attached to the function item, so the generated external stands for the whole
method, not merely the cast.  In the enabled-debug configuration the source
succeeds only when v <= 2^53; above it the assertion fails before the cast. On
the successful branch every integer is exactly representable, so the source
cast and the model rounder return the same word.

Exact power-table and assembly excerpts from crate/dec2flt/mod.rs:

  /// Maximum mantissa for the fast-path (`1 << 53` for f64).
  const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;

  const MAX_EXPONENT_FAST_PATH: i64 = 22;
  const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
  const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;

  fn pow10_fast_path(exponent: usize) -> Self {
      // These bit patterns are exactly the source table's rounded binary64
      // literals.  The match is the same masked lookup; it merely keeps float
      // constants out of Aeneas's unsupported constant interpreter.
      match exponent & 31 {
          0 => f64::from_bits(0x3FF0_0000_0000_0000),
          1 => f64::from_bits(0x4024_0000_0000_0000),
          2 => f64::from_bits(0x4059_0000_0000_0000),
          3 => f64::from_bits(0x408F_4000_0000_0000),
          4 => f64::from_bits(0x40C3_8800_0000_0000),
          5 => f64::from_bits(0x40F8_6A00_0000_0000),
          6 => f64::from_bits(0x412E_8480_0000_0000),
          7 => f64::from_bits(0x4163_12D0_0000_0000),
          8 => f64::from_bits(0x4197_D784_0000_0000),
          9 => f64::from_bits(0x41CD_CD65_0000_0000),
          10 => f64::from_bits(0x4202_A05F_2000_0000),
          11 => f64::from_bits(0x4237_4876_E800_0000),
          12 => f64::from_bits(0x426D_1A94_A200_0000),
          13 => f64::from_bits(0x42A2_309C_E540_0000),
          14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
          15 => f64::from_bits(0x430C_6BF5_2634_0000),
          16 => f64::from_bits(0x4341_C379_37E0_8000),
          17 => f64::from_bits(0x4376_3457_85D8_A000),
          18 => f64::from_bits(0x43AB_C16D_674E_C800),
          19 => f64::from_bits(0x43E1_58E4_6091_3D00),
          20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
          21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
          22 => f64::from_bits(0x4480_F0CF_064D_D592),
          _ => f64::from_bits(0),
      }
  }

  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

Exact native-call excerpt from crate/dec2flt/decimal.rs:

  fn can_use_fast_path<F: Lemire>(&self) -> bool {
      F::MIN_EXPONENT_FAST_PATH <= self.exponent
          && self.exponent <= F::MAX_EXPONENT_DISGUISED_FAST_PATH
          && self.mantissa <= F::MAX_MANTISSA_FAST_PATH
          && !self.many_digits
  }

  if !self.can_use_fast_path::<F>() {
      return None;
  }

  let value = if self.exponent <= F::MAX_EXPONENT_FAST_PATH {
      // normal fast path
      let value = F::from_u64(self.mantissa);
      if self.exponent < 0 {
          // Explicit trait calls preserve Rust arithmetic and resolve
          // the generic output type that Charon leaves ambiguous.
          core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
      } else {
          core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
      }
  } else {
      // disguised fast path
      let shift = self.exponent - F::MAX_EXPONENT_FAST_PATH;
      let mantissa = self.mantissa.checked_mul(INT_POW10[shift as usize])?;
      if mantissa > F::MAX_MANTISSA_FAST_PATH {
          return None;
      }
      core::ops::Mul::mul(
          F::from_u64(mantissa),
          F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
      )
  };

  if self.negative {
      Some(core::ops::Neg::neg(value))
  } else {
      Some(value)
  }

The preceding can_use_fast_path body, together with
MAX_MANTISSA_FAST_PATH = 1 << SIG_TOTAL_BITS and SIG_TOTAL_BITS = 53 for f64,
requires the exponent to lie between -22 and 37, the input mantissa to be at
most 2^53, and many_digits to be false. Consequently an ordinary arithmetic
call has a from_u64 operand in 0..=2^53. In its negative-exponent arm,
`-self.exponent` lies in 1..=22; in its nonnegative arm, `self.exponent` lies
in 0..=22. The disguised branch checks its multiplied mantissa against 2^53
before from_u64 and uses table index 22. The paired statement
Binary64NativeCallDomain does not assert this source reachability. It says
conditionally that a from_u64 argument at most 2^53 succeeds with a finite,
non-NaN word and that a table index at most 22 succeeds with a positive,
nonzero, finite, non-NaN word. Applying that conditional statement to the
guards just derived establishes those properties for the actual ordinary and
disguised calls, and in particular establishes that every executed divisor is
nonzero.

Exact special-value excerpt from crate/dec2flt/parse.rs:

  let float = match (register, len) {
      (INF_3, 3) => F::INFINITY,
      (INF_8, 8) => F::INFINITY,
      (NAN, 3) => F::NAN,
      _ => return None,
  };

  if negative { Some(-float) } else { Some(float) }

Thus the executed special route is INFINITY or NAN followed by conditional
negation; it does not select NEG_INFINITY or NEG_NAN directly.

The number helper has the exact source body

  pub fn parse_number(s: &[u8]) -> Option<Decimal> {
      if let Some((float, rest)) = parse_partial_number(s) {
          if rest == s.len() {
              return Some(float);
          }
      }
      None
  }

It returns only the Decimal produced by parse_partial_number; there is no
float type parameter or float operation at this boundary.

Exact dispatcher excerpts from crate/dec2flt/mod.rs
---------------------------------------------------

The entry of `dec2flt_with_trace` strips at most one leading sign, rejects
empty and sign-only inputs, calls `parse_number` on the unsigned body, and
calls `parse_inf_nan` only when `parse_number` returns `None`:

  /// Run the actual dispatcher while retaining its approved internal observations.
  pub fn dec2flt_with_trace<
      'a,
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {
          return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
      };
      let negative = c == b'-';
      if c == b'-' || c == b'+' {
          body = &body[1..];
      }
      if body.is_empty() {
          return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
      }

      let parse_number_result = parse_number(body);
      let parsed = match parse_number_result {
          Some(r) => r,
          None => {
              let parse_inf_nan_result = parse_inf_nan(body, negative);
              return match parse_inf_nan_result {
                  Some(value) => (
                      Ok(value),
                      Dec2FltTrace::Special {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                          result: value,
                      },
                  ),
                  None => (
                      Err(pfe_invalid()),
                      Dec2FltTrace::Invalid {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                      },
                  ),
              };
          }
      };

Thus every `Err` arm shown here returns before `parsed` is available and before
the native, integer, slow, assembly, or final-negation code below it can run.
On a numeric result, the lexical sign is copied into the parsed record before
the native attempt, whose successful result also returns before raw-pair
assembly:

      let mut num = parsed;
      num.negative = negative;
      if !cfg!(feature = "optimize_for_size") {
          let fast_path_result = num.try_fast_path::<F>();
          if let Some(value) = fast_path_result {
              return (
                  Ok(value),
                  Dec2FltTrace::FastPath {
                      body,
                      negative,
                      parse_number_result,
                      fast_path_input: num,
                      fast_path_result,
                      result: value,
                  },
              );
          }
      }

If the native attempt does not return, the selected raw pair is assembled and
the source then conditionally negates it according to the lexical-sign flag:

      let selected_pair = fp;
      // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
      // it neither changes the selected pair nor introduces a new branch or call.
      let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
      let assembly_result = biased_fp_to_float::<F>(fp);
      let lexical_sign_applied = num.negative;
      let result = if lexical_sign_applied {
          core::ops::Neg::neg(assembly_result)
      } else {
          assembly_result
      };

The public `dec2flt` executes that same route and returns its result projection;
it does not reimplement or reorder any parsing or float operation:

  /// Converts a decimal string into a floating point number.
  #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
  pub fn dec2flt<
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &str,
  ) -> Result<F, ParseFloatError> {
      // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
      // clause admits exactly the same instances and lets Charon resolve the
      // explicit, source-equivalent final negation.
      // The public function is now exactly the result projection of the single
      // instrumented implementation.  No conversion step is duplicated, and
      // discarding the trace cannot affect Rust evaluation or the returned bits.
      dec2flt_with_trace::<F>(s).0
  }

The integer-tier helper has the source type and exact executable excerpts
below (long explanatory comments are elided). In particular it returns a raw
BiasedFp and contains no from_u64 cast, primitive float multiplication,
division, negation, or from_bits call:

  pub fn compute_float<F: Float>(q: i64, mut w: u64) -> BiasedFp {
      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);
      let fp_error = BiasedFp::zero_pow2(-1);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if w == 0 || q < F::SMALLEST_POWER_OF_TEN as i64 {
          return fp_zero;
      } else if q > F::LARGEST_POWER_OF_TEN as i64 {
          return fp_inf;
      }
      // Normalize our significant digits, so the most-significant bit is set.
      let lz = w.leading_zeros();
      w <<= lz;
      let (lo, hi) = compute_product_approx(q, w, F::SIG_BITS as usize + 3);
      if lo == 0xFFFF_FFFF_FFFF_FFFF {
          let inside_safe_exponent = (q >= -27) && (q <= 55);
          if !inside_safe_exponent {
              return fp_error;
          }
      }
      let upperbit = (hi >> 63) as i32;
      let mut mantissa = hi >> (upperbit + 64 - F::SIG_BITS as i32 - 3);
      let mut power2 = power(q as i32) + upperbit - lz as i32 - F::EXP_MIN + 1;
      if power2 <= 0 {
          if -power2 + 1 >= 64 {
              // Have more than 64 bits below the minimum exponent, must be 0.
              return fp_zero;
          }
          // Have a subnormal value.
          mantissa >>= -power2 + 1;
          mantissa += mantissa & 1;
          mantissa >>= 1;
          power2 = (mantissa >= (1_u64 << F::SIG_BITS)) as i32;
          return BiasedFp { m: mantissa, p_biased: power2 };
      }
      // Need to handle rounding ties. Normally, we need to round up,
      // but if we fall right in between and we have an even basis, we
      // need to round down.
      if lo <= 1
          && q >= F::MIN_EXPONENT_ROUND_TO_EVEN as i64
          && q <= F::MAX_EXPONENT_ROUND_TO_EVEN as i64
          && mantissa & 0b11 == 0b01
          && (mantissa << (upperbit + 64 - F::SIG_BITS as i32 - 3)) == hi
      {
          // Zero the lowest bit, so we don't round up.
          mantissa &= !1_u64;
      }
      // Round-to-even, then shift the significant digits into place.
      mantissa += mantissa & 1;
      mantissa >>= 1;
      if mantissa >= (2_u64 << F::SIG_BITS) {
          // Rounding up overflowed, so the carry bit is set. Set the
          // mantissa to 1 (only the implicit, hidden bit is set) and
          // increase the exponent.
          mantissa = 1_u64 << F::SIG_BITS;
          power2 += 1;
      }
      // Zero out the hidden bit.
      mantissa &= !(1_u64 << F::SIG_BITS);
      if power2 >= F::INFINITE_POWER {
          // Exponent is above largest normal value, must be infinite.
          return fp_inf;
      }
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact slow-tier source body from crate/dec2flt/slow.rs:

  pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {
      const MAX_SHIFT: usize = 60;
      const NUM_POWERS: usize = 19;
      const POWERS: [u8; 19] =
          [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];

      let get_shift = |n| {
          if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }
      };

      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);

      let mut d = parse_decimal_seq(s);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if d.num_digits == 0 || d.decimal_point < -324 {
          return fp_zero;
      } else if d.decimal_point >= 310 {
          return fp_inf;
      }
      let mut exp2 = 0_i32;
      let mut loop_result = None;
      // Shift right toward (1/2 ... 1].
      while d.decimal_point > 0 && loop_result.is_none() {
          let n = d.decimal_point as usize;
          let shift = get_shift(n);
          d.right_shift(shift);
          if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_zero);
          } else {
              exp2 += shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // Shift left toward (1/2 ... 1].
      while d.decimal_point <= 0 && loop_result.is_none() {
          let shift = if d.decimal_point == 0 {
              match d.digits[0] {
                  digit if digit >= 5 => break,
                  0 | 1 => 2,
                  _ => 1,
              }
          } else {
              get_shift((-d.decimal_point) as _)
          };
          d.left_shift(shift);
          if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_inf);
          } else {
              exp2 -= shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
      exp2 -= 1;
      while F::EXP_MIN > exp2 {
          let mut n = (F::EXP_MIN - exp2) as usize;
          if n > MAX_SHIFT {
              n = MAX_SHIFT;
          }
          d.right_shift(n);
          exp2 += n as i32;
      }
      if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
          return fp_inf;
      }
      // Shift the decimal to the hidden bit, and then round the value
      // to get the high mantissa+1 bits.
      d.left_shift(F::SIG_BITS as usize + 1);
      let mut mantissa = d.round();
      if mantissa >= (1_u64 << (F::SIG_BITS + 1)) {
          // Rounding up overflowed to the carry bit, need to
          // shift back to the hidden bit.
          d.right_shift(1);
          exp2 += 1;
          mantissa = d.round();
          if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
              return fp_inf;
          }
      }
      let mut power2 = exp2 - F::EXP_MIN + 1;
      if mantissa < (1_u64 << F::SIG_BITS) {
          power2 -= 1;
      }
      // Zero out all the bits above the explicit mantissa bits.
      mantissa &= (1_u64 << F::SIG_BITS) - 1;
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact final numeric-sign excerpt from crate/dec2flt/mod.rs:

  let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
  let assembly_result = biased_fp_to_float::<F>(fp);
  let lexical_sign_applied = num.negative;
  let result = if lexical_sign_applied {
      core::ops::Neg::neg(assembly_result)
  } else {
      assembly_result
  };

Thus a numeric execution that reaches the integer/slow selection route
assembles its selected pair with from_bits through biased_fp_to_float and only
then conditionally negates it. A successful try_fast_path returns earlier and
does not perform this assembly. compute_float and parse_long_mantissa produce
raw BiasedFp pairs and do not call from_u64, primitive float multiplication,
division, negation, or from_bits; they do, however, execute constants derived
from SIG_TOTAL_BITS before producing those pairs.

Retained structural-boundary evidence
-------------------------------------

Several adjacent structural bindings cite this same evidence record. Their
pinned library source identities are:

  core/src/num/mod.rs
    f0820f9dfb94999440c8cb4a349736fa21df7e5668e19b6b49e016ff67c05ce3
  core/src/option.rs
    7cf61204b05d98a95bc2e322d5fbfc1f4f91505109971917d9a7fb47151c50e6
  core/src/slice/mod.rs
    354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840
  core/src/str/mod.rs
    284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78

Exact ASCII-digit body from core/src/num/mod.rs:

  pub const fn is_ascii_digit(&self) -> bool {
      matches!(*self, b'0'..=b'9')
  }

Exact Option control-flow bodies from core/src/option.rs:

  fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
      match self {
          Some(v) => ControlFlow::Continue(v),
          None => ControlFlow::Break(None),
      }
  }

  fn from_residual(residual: Option<convert::Infallible>) -> Self {
      match residual {
          None => None,
      }
  }

Exact slice observation bodies from core/src/slice/mod.rs:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

Exact string-byte body from core/src/str/mod.rs:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }
reference/model-evidence/binary64-probe.rs

Open file

#![feature(float_masks)]

use std::num::FpCategory;

fn bits(label: &str, value: f64) {
    println!("{label}={:016x}", value.to_bits());
}

fn main() {
    println!("target_arch={}", std::env::consts::ARCH);
    println!("mantissa_digits={}", f64::MANTISSA_DIGITS);
    println!("exponent_mask={:016x}", f64::EXPONENT_MASK);
    println!("mantissa_mask={:016x}", f64::MANTISSA_MASK);
    bits("nan", f64::NAN);
    bits("infinity", f64::INFINITY);
    bits("neg_infinity", f64::NEG_INFINITY);

    for (label, value) in [
        ("nan_category", f64::NAN),
        ("infinity_category", f64::INFINITY),
        ("zero_category", 0.0),
        ("subnormal_category", f64::from_bits(1)),
        ("normal_category", 1.0),
    ] {
        let category = match value.classify() {
            FpCategory::Nan => "Nan",
            FpCategory::Infinite => "Infinite",
            FpCategory::Zero => "Zero",
            FpCategory::Subnormal => "Subnormal",
            FpCategory::Normal => "Normal",
        };
        println!("{label}={category}");
    }

    let payload_nan_word = 0x7ff0_0000_0000_0001_u64;
    println!(
        "from_bits_to_bits={:016x}",
        f64::from_bits(payload_nan_word).to_bits()
    );
    bits("neg_payload_nan", -f64::from_bits(payload_nan_word));
    bits("neg_zero", -0.0);

    bits("subnormal_tie_to_even_zero", f64::from_bits(1) * 0.5);
    bits("subnormal_tie_to_even_two", f64::from_bits(3) * 0.5);
    bits("normal_division", 1.0 / 10.0);
    bits("mul_negative_zero", -0.0 * 2.0);
    bits("div_negative_zero", -1.0 / f64::INFINITY);
    bits("div_negative_infinity", 1.0 / -0.0);
    bits("mul_overflow", f64::MAX * (1.0 + f64::EPSILON));
    println!("mul_zero_infinity_is_nan={}", (0.0 * f64::INFINITY).is_nan());
    println!("div_zero_zero_is_nan={}", (0.0_f64 / 0.0_f64).is_nan());
    println!("mul_nan_is_nan={}", (f64::NAN * 1.0).is_nan());

    bits("cast_2_pow_53", (1_u64 << 53) as f64);
    bits("cast_2_pow_53_plus_1", ((1_u64 << 53) + 1) as f64);
}
Assumptions / kernel axioms
  • Classical.choice
  • Quot.sound
  • propext

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (32)
All 32 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourceTablet/model-support.json
Kindopaque external binding
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:4f0805439de0f8a4cb1ec77df13117de8755d64a97fa1657f960a7b5f9db5cca
Preservation current fingerprintpreservation-v1:4f0805439de0f8a4cb1ec77df13117de8755d64a97fa1657f960a7b5f9db5cca
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"4a3d0c05976e97107a13b942cb21c0cf7b9f33a8538413a9ab4e1c8bacaa81bd","lean_semantic_closure":"b5f937ef31cfdf4ab4e26f96d8646a8c9f2e9e43ec2d22ee04bdaf4760adc1bf","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","Binary64ModelDefault":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","Binary64ModelDefault","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence current fingerprint{"own_tex":"4a3d0c05976e97107a13b942cb21c0cf7b9f33a8538413a9ab4e1c8bacaa81bd","lean_semantic_closure":"b5f937ef31cfdf4ab4e26f96d8646a8c9f2e9e43ec2d22ee04bdaf4760adc1bf","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","Binary64ModelDefault":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","Binary64ModelDefault","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "a1e2e4f7883124711af2ff4efbdd00aa16c7686f5e28f1714909d6bd7b0caec8",
    "dep_statement_hashes": {
      "Binary64ModelDefault": "be5dcc4afe23616ca8fd1d15d30fbbe4ee2621d68be3341b8e74a66e6dcd736f"
    },
    "combined_sound_fp": "preservation-v1:4f0805439de0f8a4cb1ec77df13117de8755d64a97fa1657f960a7b5f9db5cca"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Exact source record
{
  "name": "core.f64.F64.classify",
  "extracted_signature": ": F64 → Result core.num.FpCategory",
  "rust_symbol": "core::f64::{f64}::classify",
  "raw_declaration_sha256": "9fedd442d1d0403c4a7323d8f4e95c51b8bd39bf82d2d0ba357eaaf243e69b78",
  "node": "ModelF64Classify",
  "declaration": "dec2flt_model.ModelF64Classify"
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/binary64-boundary.txt",
    "sha256": "fa45c924747337e8d6f84a19fe9e83fb9b33c73434887c0cf57c062533f51fe1",
    "cited_by": [
      "Tablet/ModelF64Classify.tex",
      "Tablet/model-support.json"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-probe.rs",
    "sha256": "68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e",
    "cited_by": [
      "reference/model-evidence/binary64-boundary.txt"
    ]
  }
]

core::f64::{f64}::to_bits

Inspect related source (1)

Related source and models come from the extraction records and declared dependencies.

Rust itemcore::f64::{f64}::to_bits
Recorded source/rustc/library/core/src/num/f64.rs
Lines1223:4–1223:37

The related-source link includes this operation’s Rust standard-library implementation.

Opaque extraction signature
: F64 → Result Std.U64
Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Tablet.Binary64ModelDefault
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelF64ToBits]
def ModelF64ToBits : F64 -> Result Std.U64 :=
-- BODY
  Binary64ModelDefault.toBits
end dec2flt_model

Why this model is faithful

Definition

\mathsf{ModelF64ToBits}(x) successfully returns the raw word x.

Preservation argument

Claim

For every binary64 value, this binding returns its exact raw word.

Proof

The definition is the identity observation of Binary64ModelDefault. This is exactly the source transmutation specified in reference/model-evidence/float-carriers.txt.
Authored arguments for individual requirements

Requirement: assembly correspondence

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification significand digit

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch abstract composition

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch component compliance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: exponent value agreement

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: integer correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: native correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper accumulated value

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper record bounds

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser equal target rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser exact rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser invalid rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser nan acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser non nan results

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected exponent

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected magnitude sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser signed zero

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: slow accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper nan

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Recorded review

CorrespondencePass
PreservationVerifierPass

ModelF64ToBits · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/float-carriers.txt

Open file

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
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2  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.
Assumptions / kernel axioms
  • Classical.choice
  • Quot.sound
  • propext

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (32)
All 32 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourceTablet/model-support.json
Kindopaque external binding
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:2e356554b460fa20a9effc8d8d685ea07437dd3eff4d29fd039f0a345471c599
Preservation current fingerprintpreservation-v1:2e356554b460fa20a9effc8d8d685ea07437dd3eff4d29fd039f0a345471c599
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"293df8c87f6de0dd27a40fa265758f72260aea51ecd3e69edf9d51df43cb564b","lean_semantic_closure":"77d5d712dffbb54050b6077fdb30f70d9015f2aef826a25bcbee1c352227465c","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","Binary64ModelDefault":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","Binary64ModelDefault","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence current fingerprint{"own_tex":"293df8c87f6de0dd27a40fa265758f72260aea51ecd3e69edf9d51df43cb564b","lean_semantic_closure":"77d5d712dffbb54050b6077fdb30f70d9015f2aef826a25bcbee1c352227465c","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","Binary64ModelDefault":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","Binary64ModelDefault","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "3b691f6c87d67122e44ee282139adc83553fa07a7f31cc9d9824d668001fb86f",
    "dep_statement_hashes": {
      "Binary64ModelDefault": "be5dcc4afe23616ca8fd1d15d30fbbe4ee2621d68be3341b8e74a66e6dcd736f"
    },
    "combined_sound_fp": "preservation-v1:2e356554b460fa20a9effc8d8d685ea07437dd3eff4d29fd039f0a345471c599"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Exact source record
{
  "name": "core.f64.F64.to_bits",
  "extracted_signature": ": F64 → Result Std.U64",
  "rust_symbol": "core::f64::{f64}::to_bits",
  "raw_declaration_sha256": "ddaec6bb7c36ba6445a5b0b8e52f841240ca2563004e8ce1255caf0e36ec22ae",
  "node": "ModelF64ToBits",
  "declaration": "dec2flt_model.ModelF64ToBits"
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/float-carriers.txt",
    "sha256": "4367b150c75a979015e2a6063d4080d3f0a1681c640421692ff9ac8c139632e5",
    "cited_by": [
      "Tablet/ModelF64ToBits.tex",
      "Tablet/model-support.json"
    ]
  }
]

core::f64::{f64}::from_bits

Inspect related source (1)

Related source and models come from the extraction records and declared dependencies.

Rust itemcore::f64::{f64}::from_bits
Recorded source/rustc/library/core/src/num/f64.rs
Lines1269:4–1269:42

The related-source link includes this operation’s Rust standard-library implementation.

Opaque extraction signature
: Std.U64 → Result F64
Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Tablet.Binary64ModelDefault
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelF64FromBits]
def ModelF64FromBits : Std.U64 -> Result F64 :=
-- BODY
  Binary64ModelDefault.fromBits
end dec2flt_model

Why this model is faithful

Definition

\mathsf{ModelF64FromBits}(x) successfully returns the binary64 value whose raw word is x.

Preservation argument

Claim

For every 64-bit word, this binding returns the binary64 value with exactly that raw word.

Proof

The definition is the identity constructor of Binary64ModelDefault. This is exactly the source inverse transmutation specified in reference/model-evidence/float-carriers.txt.
Authored arguments for individual requirements

Requirement: assembly correspondence

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification significand digit

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch abstract composition

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch component compliance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: exponent value agreement

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: integer correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: native correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper accumulated value

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper record bounds

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser equal target rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser exact rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser invalid rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser nan acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser non nan results

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected exponent

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected magnitude sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser signed zero

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: slow accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper nan

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Recorded review

CorrespondencePass
PreservationVerifierPass

ModelF64FromBits · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/float-carriers.txt

Open file

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
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2  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.
Assumptions / kernel axioms
  • Classical.choice
  • Quot.sound
  • propext

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (32)
All 32 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourceTablet/model-support.json
Kindopaque external binding
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:f9f067dc68f4c120de5a576bf04163054c5c32c1c1c526c9ea7a4ab586e49189
Preservation current fingerprintpreservation-v1:f9f067dc68f4c120de5a576bf04163054c5c32c1c1c526c9ea7a4ab586e49189
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"ddd4e3ac18fa87485d58985fb4379a911c939601d663228453ef7e47dbb1aa31","lean_semantic_closure":"d3db342befc2f6bd15d0a8d594e7fde493bf2599e8fad4dbd81174d5bdb93c85","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","Binary64ModelDefault":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","Binary64ModelDefault","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence current fingerprint{"own_tex":"ddd4e3ac18fa87485d58985fb4379a911c939601d663228453ef7e47dbb1aa31","lean_semantic_closure":"d3db342befc2f6bd15d0a8d594e7fde493bf2599e8fad4dbd81174d5bdb93c85","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","Binary64ModelDefault":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","Binary64ModelDefault","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "70cc85fc494d5e114c00b5cbfc7898e06d368398ba64da8096a62aeb0b397c25",
    "dep_statement_hashes": {
      "Binary64ModelDefault": "be5dcc4afe23616ca8fd1d15d30fbbe4ee2621d68be3341b8e74a66e6dcd736f"
    },
    "combined_sound_fp": "preservation-v1:f9f067dc68f4c120de5a576bf04163054c5c32c1c1c526c9ea7a4ab586e49189"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Exact source record
{
  "name": "core.f64.F64.from_bits",
  "extracted_signature": ": Std.U64 → Result F64",
  "rust_symbol": "core::f64::{f64}::from_bits",
  "raw_declaration_sha256": "af8ee4387cea97d0a353a83d6280c03f3c9f739bf733af5bd39c29909f1b2b19",
  "node": "ModelF64FromBits",
  "declaration": "dec2flt_model.ModelF64FromBits"
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/float-carriers.txt",
    "sha256": "4367b150c75a979015e2a6063d4080d3f0a1681c640421692ff9ac8c139632e5",
    "cited_by": [
      "Tablet/ModelF64FromBits.tex",
      "Tablet/model-support.json"
    ]
  }
]

core::num::{u8}::is_ascii_digit

Inspect related source (1)

Related source and models come from the extraction records and declared dependencies.

Rust itemcore::num::{u8}::is_ascii_digit
Recorded source/rustc/library/core/src/num/mod.rs
Lines958:4–958:46

The related-source link includes this operation’s Rust standard-library implementation.

Opaque extraction signature
: Std.U8 → Result Bool
Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Aeneas
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelU8IsAsciiDigit]
def ModelU8IsAsciiDigit (x : Std.U8) : Result Bool :=
-- BODY
  ok (decide (48 <= x.val ∧ x.val <= 57))
end dec2flt_model

Why this model is faithful

Definition

\mathsf{ModelU8IsAsciiDigit}(x) successfully returns true exactly when 48\leq x\leq57.

Preservation argument

Claim

For every byte, this binding returns true exactly when the byte is an ASCII decimal digit.

Proof

The definition tests the inclusive values 48 through 57, exactly the frozen Rust range match recorded in reference/model-evidence/binary64-boundary.txt.
Authored arguments for individual requirements

Requirement: assembly correspondence

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification significand digit

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch abstract composition

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch component compliance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: exponent value agreement

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: integer correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: native correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper accumulated value

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper record bounds

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser equal target rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser exact rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser invalid rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser nan acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser non nan results

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected exponent

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected magnitude sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser signed zero

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: slow accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper nan

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Recorded review

CorrespondencePass
PreservationVerifierPass

ModelU8IsAsciiDigit · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/binary64-boundary.txt

Open file

Primary evidence for the binary64 boundary
==========================================

Scope and identities
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction, the
adapted Rust crate retained in this repository, and the installed toolchain
named by modeling-input/SETUP.md. The probe source is retained at
reference/model-evidence/binary64-probe.rs; no scratch source is required to
reproduce it.

Toolchain executable:
  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
Target:
  x86_64-unknown-linux-gnu
rustc executable SHA-256:
  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
Probe source SHA-256:
  68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
Compiled probe SHA-256:
  f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
Frozen generated.lean SHA-256:
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9
Frozen modeling-input/manifest.json SHA-256:
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2
Approved Binary64ModelDefault.lean SHA-256 at the time of this record:
  03ae48fb631e6242bd21bf95d0481b66acae05f8cab343c7ab279b3c116538a3

Exact reproduction commands
---------------------------

Run from the repository root:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-probe.rs
  B=.trellis/scratch/binary64-probe
  "$R" --version --verbose
  sha256sum "$R"
  sha256sum "$P"
  "$R" --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$B"
  "$B"

Raw output
----------

  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
  rustc_sha256=162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  probe_sha256=68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
  binary_sha256=f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
  target_arch=x86_64
  mantissa_digits=53
  exponent_mask=7ff0000000000000
  mantissa_mask=000fffffffffffff
  nan=7ff8000000000000
  infinity=7ff0000000000000
  neg_infinity=fff0000000000000
  nan_category=Nan
  infinity_category=Infinite
  zero_category=Zero
  subnormal_category=Subnormal
  normal_category=Normal
  from_bits_to_bits=7ff0000000000001
  neg_payload_nan=fff0000000000001
  neg_zero=8000000000000000
  subnormal_tie_to_even_zero=0000000000000000
  subnormal_tie_to_even_two=0000000000000002
  normal_division=3fb999999999999a
  mul_negative_zero=8000000000000000
  div_negative_zero=8000000000000000
  div_negative_infinity=fff0000000000000
  mul_overflow=7ff0000000000000
  mul_zero_infinity_is_nan=true
  div_zero_zero_is_nan=true
  mul_nan_is_nan=true
  cast_2_pow_53=4340000000000000
  cast_2_pow_53_plus_1=4340000000000000

Pinned Rust library sources
---------------------------

The installed sources below belong to the same named toolchain. Their
SHA-256 identities are:

  core/src/primitive_docs.rs
    c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5
  core/src/num/f64.rs
    84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618
  core/src/clone.rs
    23f9cfc80347fde6b8457d46fbf7a2b8d9f34c8c58601b0b6f714ca2f6d1976b

The exact relevant text of core/src/primitive_docs.rs is:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The referenced primitive-f32 documentation supplies the common primitive
floating-point operation rules quoted next:

  /// - −0.0: IEEE 754 floating-point numbers have a bit that indicates their sign, so −0.0 is a
  ///   possible value. For comparison −0.0 = +0.0, but floating-point operations can carry
  ///   the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
  ///   a negative number rounded to a value smaller than a float can represent also produces −0.0.
  /// - [∞](#associatedconstant.INFINITY) and
  ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
  ///   like `1.0 / 0.0`.
  ///
  /// When a primitive operation (addition, subtraction, multiplication, or
  /// division) is performed on this type, the result is rounded according to the
  /// roundTiesToEven direction defined in IEEE 754-2008. That means:
  ///
  /// - The result is the representable value closest to the true value, if there
  ///   is a unique closest representable value.
  /// - If the true value is exactly half-way between two representable values,
  ///   the result is the one with an even least-significant binary digit.
  /// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
  ///   `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
  ///   true value's sign).

The same file explicitly separates arithmetic NaN choice from exact bitwise
operations; its exact relevant text is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.
  ///
  /// The following rules apply when a NaN value is returned from an arithmetic operation:
  /// - The result has a non-deterministic sign.
  /// - The quiet bit and payload are non-deterministically chosen from
  ///   the following set of options:
  ///
  ///   - **Preferred NaN**: The quiet bit is set and the payload is all-zero.
  ///   - **Quieting NaN propagation**: The quiet bit is set and the payload is copied from any input
  ///     operand that is a NaN. If the inputs and outputs do not have the same payload size (i.e., for
  ///     `as` casts), then
  ///     - If the output is smaller than the input, low-order bits of the payload get dropped.
  ///     - If the output is larger than the input, the payload gets filled up with 0s in the low-order
  ///       bits.
  ///   - **Unchanged NaN propagation**: The quiet bit and payload are copied from any input operand
  ///     that is a NaN. If the inputs and outputs do not have the same size (i.e., for `as` casts), the
  ///     same rules as for "quieting NaN propagation" apply, with one caveat: if the output is smaller
  ///     than the input, dropping the low-order bits may result in a payload of 0; a payload of 0 is not
  ///     possible with a signaling NaN (the all-0 significand encodes an infinity) so unchanged NaN
  ///     propagation cannot occur with some inputs.
  ///   - **Target-specific NaN**: The quiet bit is set and the payload is picked from a target-specific
  ///     set of "extra" possible NaN payloads. The set can depend on the input operand values.
  ///     See the table below for the concrete NaNs this set contains on various targets.
  ///
  /// | `target_arch` | Extra payloads possible on this platform |
  /// |---------------|------------------------------------------|
  /// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |

Thus the model's preferred quiet NaN is one permitted result whenever
multiplication or division returns NaN. This does not claim that arbitrary
Rust arithmetic NaNs have those exact bits. By contrast, unary negation and
bit conversion must preserve all non-sign bits exactly, including for every
NaN payload.

The exact relevant declarations in core/src/num/f64.rs are:

  pub const MANTISSA_DIGITS: u32 = 53;
  pub const NAN: f64 = 0.0_f64 / 0.0_f64;
  pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
  pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
  pub const SIGN_MASK: u64 = 0x8000_0000_0000_0000;
  pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;
  pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff;

  pub const fn classify(self) -> FpCategory {
      // We used to have complicated logic here that avoids the simple bit-based tests to work
      // around buggy codegen for x87 targets (see
      // https://github.com/rust-lang/rust/issues/114479). However, some LLVM versions later, none
      // of our tests is able to find any difference between the complicated and the naive
      // version, so now we are back to the naive version.
      let b = self.to_bits();
      match (b & Self::MANTISSA_MASK, b & Self::EXPONENT_MASK) {
          (0, Self::EXPONENT_MASK) => FpCategory::Infinite,
          (_, Self::EXPONENT_MASK) => FpCategory::Nan,
          (0, 0) => FpCategory::Zero,
          (_, 0) => FpCategory::Subnormal,
          _ => FpCategory::Normal,
      }
  }

  pub const fn to_bits(self) -> u64 {
      // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
      unsafe { mem::transmute(self) }
  }

  pub const fn from_bits(v: u64) -> Self {
      // It turns out the safety issues with sNaN were overblown! Hooray!
      // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
      unsafe { mem::transmute(v) }
  }

The exact scalar clone body in core/src/clone.rs is:

  impl const Clone for $t {
      #[inline(always)]
      fn clone(&self) -> Self {
          *self
      }
  }

Frozen adapted source
---------------------

The relevant retained source file hashes are:

  crate/traits.rs
    9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  crate/dec2flt/decimal.rs
    633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb
  crate/dec2flt/lemire.rs
    fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1
  crate/dec2flt/slow.rs
    93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485

The dispatcher excerpts below are reproduced from the identified file by
running these commands from the repository root:

  sha256sum crate/dec2flt/mod.rs
  sed -n '354,403p' crate/dec2flt/mod.rs
  sed -n '405,422p' crate/dec2flt/mod.rs
  sed -n '465,475p' crate/dec2flt/mod.rs
  sed -n '506,523p' crate/dec2flt/mod.rs

Exact constant and bit-conversion excerpt from crate/traits.rs:

  impl Float for f64 {
      type Int = u64;

      const INFINITY: Self = Self::INFINITY;
      const NEG_INFINITY: Self = Self::NEG_INFINITY;
      const NAN: Self = Self::NAN;
      // Bit-identical to the upstream `-f64::NAN`, without the unsupported
      // compile-time float negation.
      const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);

      const BITS: u32 = 64;
      const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
      const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
      const SIG_MASK: Self::Int = Self::MANTISSA_MASK;

      fn to_bits(self) -> Self::Int {
          self.to_bits()
      }

      fn classify(self) -> FpCategory {
          self.classify()
      }
  }

  impl FloatExt for f64 {
      #[inline]
      fn from_u64_bits(v: u64) -> Self {
          f64::from_bits(v)
      }

Exact derived-constant defaults from crate/traits.rs:

  /// The number of bits in the significand, *excluding* the hidden bit.
  const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;

  /// Number of bits in the exponent.
  const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

  /// The saturated (maximum bitpattern) value of the exponent, i.e. the infinite
  /// representation.
  ///
  /// This shifted fully right, use `EXP_MASK` for the shifted value.
  const EXP_SAT: u32 = (1 << Self::EXP_BITS) - 1;

  /// Signed version of `EXP_SAT` since we convert a lot.
  const INFINITE_POWER: i32 = Self::EXP_SAT as i32;

  /// The exponent bias value. This is also the maximum value of the exponent.
  const EXP_BIAS: u32 = Self::EXP_SAT >> 1;

  /// Minimum exponent value of normal values.
  const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Together with the f64-instance lines `BITS = 64` and
`SIG_TOTAL_BITS = Self::MANTISSA_DIGITS` in the preceding excerpt, these
defaults derive SIG_BITS, EXP_MIN, and INFINITE_POWER from the primitive
mantissa-digit constant rather than introducing independent parameters.

Exact asserted-conversion excerpt from crate/dec2flt/mod.rs:

  #[inline]
  // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
  // `charon::opaque` makes this entire asserted conversion external: both the
  // unchanged `debug_assert!` and the unchanged cast below are in the opaque
  // body. The callers, their fast-path guards, and their surrounding
  // computation remain mechanically visible. A corresponding model binding
  // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
  // exact binary64 conversion at or below that bound.
  #[charon::opaque]
  fn from_u64(v: u64) -> Self {
      debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
      v as _
  }

Here MAX_MANTISSA_FAST_PATH is the retained default 1 << 53.  The attribute is
attached to the function item, so the generated external stands for the whole
method, not merely the cast.  In the enabled-debug configuration the source
succeeds only when v <= 2^53; above it the assertion fails before the cast. On
the successful branch every integer is exactly representable, so the source
cast and the model rounder return the same word.

Exact power-table and assembly excerpts from crate/dec2flt/mod.rs:

  /// Maximum mantissa for the fast-path (`1 << 53` for f64).
  const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;

  const MAX_EXPONENT_FAST_PATH: i64 = 22;
  const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
  const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;

  fn pow10_fast_path(exponent: usize) -> Self {
      // These bit patterns are exactly the source table's rounded binary64
      // literals.  The match is the same masked lookup; it merely keeps float
      // constants out of Aeneas's unsupported constant interpreter.
      match exponent & 31 {
          0 => f64::from_bits(0x3FF0_0000_0000_0000),
          1 => f64::from_bits(0x4024_0000_0000_0000),
          2 => f64::from_bits(0x4059_0000_0000_0000),
          3 => f64::from_bits(0x408F_4000_0000_0000),
          4 => f64::from_bits(0x40C3_8800_0000_0000),
          5 => f64::from_bits(0x40F8_6A00_0000_0000),
          6 => f64::from_bits(0x412E_8480_0000_0000),
          7 => f64::from_bits(0x4163_12D0_0000_0000),
          8 => f64::from_bits(0x4197_D784_0000_0000),
          9 => f64::from_bits(0x41CD_CD65_0000_0000),
          10 => f64::from_bits(0x4202_A05F_2000_0000),
          11 => f64::from_bits(0x4237_4876_E800_0000),
          12 => f64::from_bits(0x426D_1A94_A200_0000),
          13 => f64::from_bits(0x42A2_309C_E540_0000),
          14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
          15 => f64::from_bits(0x430C_6BF5_2634_0000),
          16 => f64::from_bits(0x4341_C379_37E0_8000),
          17 => f64::from_bits(0x4376_3457_85D8_A000),
          18 => f64::from_bits(0x43AB_C16D_674E_C800),
          19 => f64::from_bits(0x43E1_58E4_6091_3D00),
          20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
          21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
          22 => f64::from_bits(0x4480_F0CF_064D_D592),
          _ => f64::from_bits(0),
      }
  }

  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

Exact native-call excerpt from crate/dec2flt/decimal.rs:

  fn can_use_fast_path<F: Lemire>(&self) -> bool {
      F::MIN_EXPONENT_FAST_PATH <= self.exponent
          && self.exponent <= F::MAX_EXPONENT_DISGUISED_FAST_PATH
          && self.mantissa <= F::MAX_MANTISSA_FAST_PATH
          && !self.many_digits
  }

  if !self.can_use_fast_path::<F>() {
      return None;
  }

  let value = if self.exponent <= F::MAX_EXPONENT_FAST_PATH {
      // normal fast path
      let value = F::from_u64(self.mantissa);
      if self.exponent < 0 {
          // Explicit trait calls preserve Rust arithmetic and resolve
          // the generic output type that Charon leaves ambiguous.
          core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
      } else {
          core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
      }
  } else {
      // disguised fast path
      let shift = self.exponent - F::MAX_EXPONENT_FAST_PATH;
      let mantissa = self.mantissa.checked_mul(INT_POW10[shift as usize])?;
      if mantissa > F::MAX_MANTISSA_FAST_PATH {
          return None;
      }
      core::ops::Mul::mul(
          F::from_u64(mantissa),
          F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
      )
  };

  if self.negative {
      Some(core::ops::Neg::neg(value))
  } else {
      Some(value)
  }

The preceding can_use_fast_path body, together with
MAX_MANTISSA_FAST_PATH = 1 << SIG_TOTAL_BITS and SIG_TOTAL_BITS = 53 for f64,
requires the exponent to lie between -22 and 37, the input mantissa to be at
most 2^53, and many_digits to be false. Consequently an ordinary arithmetic
call has a from_u64 operand in 0..=2^53. In its negative-exponent arm,
`-self.exponent` lies in 1..=22; in its nonnegative arm, `self.exponent` lies
in 0..=22. The disguised branch checks its multiplied mantissa against 2^53
before from_u64 and uses table index 22. The paired statement
Binary64NativeCallDomain does not assert this source reachability. It says
conditionally that a from_u64 argument at most 2^53 succeeds with a finite,
non-NaN word and that a table index at most 22 succeeds with a positive,
nonzero, finite, non-NaN word. Applying that conditional statement to the
guards just derived establishes those properties for the actual ordinary and
disguised calls, and in particular establishes that every executed divisor is
nonzero.

Exact special-value excerpt from crate/dec2flt/parse.rs:

  let float = match (register, len) {
      (INF_3, 3) => F::INFINITY,
      (INF_8, 8) => F::INFINITY,
      (NAN, 3) => F::NAN,
      _ => return None,
  };

  if negative { Some(-float) } else { Some(float) }

Thus the executed special route is INFINITY or NAN followed by conditional
negation; it does not select NEG_INFINITY or NEG_NAN directly.

The number helper has the exact source body

  pub fn parse_number(s: &[u8]) -> Option<Decimal> {
      if let Some((float, rest)) = parse_partial_number(s) {
          if rest == s.len() {
              return Some(float);
          }
      }
      None
  }

It returns only the Decimal produced by parse_partial_number; there is no
float type parameter or float operation at this boundary.

Exact dispatcher excerpts from crate/dec2flt/mod.rs
---------------------------------------------------

The entry of `dec2flt_with_trace` strips at most one leading sign, rejects
empty and sign-only inputs, calls `parse_number` on the unsigned body, and
calls `parse_inf_nan` only when `parse_number` returns `None`:

  /// Run the actual dispatcher while retaining its approved internal observations.
  pub fn dec2flt_with_trace<
      'a,
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {
          return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
      };
      let negative = c == b'-';
      if c == b'-' || c == b'+' {
          body = &body[1..];
      }
      if body.is_empty() {
          return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
      }

      let parse_number_result = parse_number(body);
      let parsed = match parse_number_result {
          Some(r) => r,
          None => {
              let parse_inf_nan_result = parse_inf_nan(body, negative);
              return match parse_inf_nan_result {
                  Some(value) => (
                      Ok(value),
                      Dec2FltTrace::Special {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                          result: value,
                      },
                  ),
                  None => (
                      Err(pfe_invalid()),
                      Dec2FltTrace::Invalid {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                      },
                  ),
              };
          }
      };

Thus every `Err` arm shown here returns before `parsed` is available and before
the native, integer, slow, assembly, or final-negation code below it can run.
On a numeric result, the lexical sign is copied into the parsed record before
the native attempt, whose successful result also returns before raw-pair
assembly:

      let mut num = parsed;
      num.negative = negative;
      if !cfg!(feature = "optimize_for_size") {
          let fast_path_result = num.try_fast_path::<F>();
          if let Some(value) = fast_path_result {
              return (
                  Ok(value),
                  Dec2FltTrace::FastPath {
                      body,
                      negative,
                      parse_number_result,
                      fast_path_input: num,
                      fast_path_result,
                      result: value,
                  },
              );
          }
      }

If the native attempt does not return, the selected raw pair is assembled and
the source then conditionally negates it according to the lexical-sign flag:

      let selected_pair = fp;
      // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
      // it neither changes the selected pair nor introduces a new branch or call.
      let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
      let assembly_result = biased_fp_to_float::<F>(fp);
      let lexical_sign_applied = num.negative;
      let result = if lexical_sign_applied {
          core::ops::Neg::neg(assembly_result)
      } else {
          assembly_result
      };

The public `dec2flt` executes that same route and returns its result projection;
it does not reimplement or reorder any parsing or float operation:

  /// Converts a decimal string into a floating point number.
  #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
  pub fn dec2flt<
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &str,
  ) -> Result<F, ParseFloatError> {
      // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
      // clause admits exactly the same instances and lets Charon resolve the
      // explicit, source-equivalent final negation.
      // The public function is now exactly the result projection of the single
      // instrumented implementation.  No conversion step is duplicated, and
      // discarding the trace cannot affect Rust evaluation or the returned bits.
      dec2flt_with_trace::<F>(s).0
  }

The integer-tier helper has the source type and exact executable excerpts
below (long explanatory comments are elided). In particular it returns a raw
BiasedFp and contains no from_u64 cast, primitive float multiplication,
division, negation, or from_bits call:

  pub fn compute_float<F: Float>(q: i64, mut w: u64) -> BiasedFp {
      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);
      let fp_error = BiasedFp::zero_pow2(-1);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if w == 0 || q < F::SMALLEST_POWER_OF_TEN as i64 {
          return fp_zero;
      } else if q > F::LARGEST_POWER_OF_TEN as i64 {
          return fp_inf;
      }
      // Normalize our significant digits, so the most-significant bit is set.
      let lz = w.leading_zeros();
      w <<= lz;
      let (lo, hi) = compute_product_approx(q, w, F::SIG_BITS as usize + 3);
      if lo == 0xFFFF_FFFF_FFFF_FFFF {
          let inside_safe_exponent = (q >= -27) && (q <= 55);
          if !inside_safe_exponent {
              return fp_error;
          }
      }
      let upperbit = (hi >> 63) as i32;
      let mut mantissa = hi >> (upperbit + 64 - F::SIG_BITS as i32 - 3);
      let mut power2 = power(q as i32) + upperbit - lz as i32 - F::EXP_MIN + 1;
      if power2 <= 0 {
          if -power2 + 1 >= 64 {
              // Have more than 64 bits below the minimum exponent, must be 0.
              return fp_zero;
          }
          // Have a subnormal value.
          mantissa >>= -power2 + 1;
          mantissa += mantissa & 1;
          mantissa >>= 1;
          power2 = (mantissa >= (1_u64 << F::SIG_BITS)) as i32;
          return BiasedFp { m: mantissa, p_biased: power2 };
      }
      // Need to handle rounding ties. Normally, we need to round up,
      // but if we fall right in between and we have an even basis, we
      // need to round down.
      if lo <= 1
          && q >= F::MIN_EXPONENT_ROUND_TO_EVEN as i64
          && q <= F::MAX_EXPONENT_ROUND_TO_EVEN as i64
          && mantissa & 0b11 == 0b01
          && (mantissa << (upperbit + 64 - F::SIG_BITS as i32 - 3)) == hi
      {
          // Zero the lowest bit, so we don't round up.
          mantissa &= !1_u64;
      }
      // Round-to-even, then shift the significant digits into place.
      mantissa += mantissa & 1;
      mantissa >>= 1;
      if mantissa >= (2_u64 << F::SIG_BITS) {
          // Rounding up overflowed, so the carry bit is set. Set the
          // mantissa to 1 (only the implicit, hidden bit is set) and
          // increase the exponent.
          mantissa = 1_u64 << F::SIG_BITS;
          power2 += 1;
      }
      // Zero out the hidden bit.
      mantissa &= !(1_u64 << F::SIG_BITS);
      if power2 >= F::INFINITE_POWER {
          // Exponent is above largest normal value, must be infinite.
          return fp_inf;
      }
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact slow-tier source body from crate/dec2flt/slow.rs:

  pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {
      const MAX_SHIFT: usize = 60;
      const NUM_POWERS: usize = 19;
      const POWERS: [u8; 19] =
          [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];

      let get_shift = |n| {
          if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }
      };

      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);

      let mut d = parse_decimal_seq(s);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if d.num_digits == 0 || d.decimal_point < -324 {
          return fp_zero;
      } else if d.decimal_point >= 310 {
          return fp_inf;
      }
      let mut exp2 = 0_i32;
      let mut loop_result = None;
      // Shift right toward (1/2 ... 1].
      while d.decimal_point > 0 && loop_result.is_none() {
          let n = d.decimal_point as usize;
          let shift = get_shift(n);
          d.right_shift(shift);
          if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_zero);
          } else {
              exp2 += shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // Shift left toward (1/2 ... 1].
      while d.decimal_point <= 0 && loop_result.is_none() {
          let shift = if d.decimal_point == 0 {
              match d.digits[0] {
                  digit if digit >= 5 => break,
                  0 | 1 => 2,
                  _ => 1,
              }
          } else {
              get_shift((-d.decimal_point) as _)
          };
          d.left_shift(shift);
          if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_inf);
          } else {
              exp2 -= shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
      exp2 -= 1;
      while F::EXP_MIN > exp2 {
          let mut n = (F::EXP_MIN - exp2) as usize;
          if n > MAX_SHIFT {
              n = MAX_SHIFT;
          }
          d.right_shift(n);
          exp2 += n as i32;
      }
      if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
          return fp_inf;
      }
      // Shift the decimal to the hidden bit, and then round the value
      // to get the high mantissa+1 bits.
      d.left_shift(F::SIG_BITS as usize + 1);
      let mut mantissa = d.round();
      if mantissa >= (1_u64 << (F::SIG_BITS + 1)) {
          // Rounding up overflowed to the carry bit, need to
          // shift back to the hidden bit.
          d.right_shift(1);
          exp2 += 1;
          mantissa = d.round();
          if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
              return fp_inf;
          }
      }
      let mut power2 = exp2 - F::EXP_MIN + 1;
      if mantissa < (1_u64 << F::SIG_BITS) {
          power2 -= 1;
      }
      // Zero out all the bits above the explicit mantissa bits.
      mantissa &= (1_u64 << F::SIG_BITS) - 1;
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact final numeric-sign excerpt from crate/dec2flt/mod.rs:

  let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
  let assembly_result = biased_fp_to_float::<F>(fp);
  let lexical_sign_applied = num.negative;
  let result = if lexical_sign_applied {
      core::ops::Neg::neg(assembly_result)
  } else {
      assembly_result
  };

Thus a numeric execution that reaches the integer/slow selection route
assembles its selected pair with from_bits through biased_fp_to_float and only
then conditionally negates it. A successful try_fast_path returns earlier and
does not perform this assembly. compute_float and parse_long_mantissa produce
raw BiasedFp pairs and do not call from_u64, primitive float multiplication,
division, negation, or from_bits; they do, however, execute constants derived
from SIG_TOTAL_BITS before producing those pairs.

Retained structural-boundary evidence
-------------------------------------

Several adjacent structural bindings cite this same evidence record. Their
pinned library source identities are:

  core/src/num/mod.rs
    f0820f9dfb94999440c8cb4a349736fa21df7e5668e19b6b49e016ff67c05ce3
  core/src/option.rs
    7cf61204b05d98a95bc2e322d5fbfc1f4f91505109971917d9a7fb47151c50e6
  core/src/slice/mod.rs
    354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840
  core/src/str/mod.rs
    284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78

Exact ASCII-digit body from core/src/num/mod.rs:

  pub const fn is_ascii_digit(&self) -> bool {
      matches!(*self, b'0'..=b'9')
  }

Exact Option control-flow bodies from core/src/option.rs:

  fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
      match self {
          Some(v) => ControlFlow::Continue(v),
          None => ControlFlow::Break(None),
      }
  }

  fn from_residual(residual: Option<convert::Infallible>) -> Self {
      match residual {
          None => None,
      }
  }

Exact slice observation bodies from core/src/slice/mod.rs:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

Exact string-byte body from core/src/str/mod.rs:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }
reference/model-evidence/binary64-probe.rs

Open file

#![feature(float_masks)]

use std::num::FpCategory;

fn bits(label: &str, value: f64) {
    println!("{label}={:016x}", value.to_bits());
}

fn main() {
    println!("target_arch={}", std::env::consts::ARCH);
    println!("mantissa_digits={}", f64::MANTISSA_DIGITS);
    println!("exponent_mask={:016x}", f64::EXPONENT_MASK);
    println!("mantissa_mask={:016x}", f64::MANTISSA_MASK);
    bits("nan", f64::NAN);
    bits("infinity", f64::INFINITY);
    bits("neg_infinity", f64::NEG_INFINITY);

    for (label, value) in [
        ("nan_category", f64::NAN),
        ("infinity_category", f64::INFINITY),
        ("zero_category", 0.0),
        ("subnormal_category", f64::from_bits(1)),
        ("normal_category", 1.0),
    ] {
        let category = match value.classify() {
            FpCategory::Nan => "Nan",
            FpCategory::Infinite => "Infinite",
            FpCategory::Zero => "Zero",
            FpCategory::Subnormal => "Subnormal",
            FpCategory::Normal => "Normal",
        };
        println!("{label}={category}");
    }

    let payload_nan_word = 0x7ff0_0000_0000_0001_u64;
    println!(
        "from_bits_to_bits={:016x}",
        f64::from_bits(payload_nan_word).to_bits()
    );
    bits("neg_payload_nan", -f64::from_bits(payload_nan_word));
    bits("neg_zero", -0.0);

    bits("subnormal_tie_to_even_zero", f64::from_bits(1) * 0.5);
    bits("subnormal_tie_to_even_two", f64::from_bits(3) * 0.5);
    bits("normal_division", 1.0 / 10.0);
    bits("mul_negative_zero", -0.0 * 2.0);
    bits("div_negative_zero", -1.0 / f64::INFINITY);
    bits("div_negative_infinity", 1.0 / -0.0);
    bits("mul_overflow", f64::MAX * (1.0 + f64::EPSILON));
    println!("mul_zero_infinity_is_nan={}", (0.0 * f64::INFINITY).is_nan());
    println!("div_zero_zero_is_nan={}", (0.0_f64 / 0.0_f64).is_nan());
    println!("mul_nan_is_nan={}", (f64::NAN * 1.0).is_nan());

    bits("cast_2_pow_53", (1_u64 << 53) as f64);
    bits("cast_2_pow_53_plus_1", ((1_u64 << 53) + 1) as f64);
}
Requirements depending on this item (32)
All 32 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourceTablet/model-support.json
Kindopaque external binding
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:2f137df588b168db2f0a26deae7f140bd5d74c21b4c483ac9aaabd1d39489475
Preservation current fingerprintpreservation-v1:2f137df588b168db2f0a26deae7f140bd5d74c21b4c483ac9aaabd1d39489475
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"aa1fc6e8f0864cd1c431bceb74254faac1595cfb2182d5e273fbaa8a3f600efc","lean_semantic_closure":"2d851ed7d360abeae832a796cbb23db27ed267a307678d5ac068e41c140e4001","preamble_tex":""}
Correspondence current fingerprint{"own_tex":"aa1fc6e8f0864cd1c431bceb74254faac1595cfb2182d5e273fbaa8a3f600efc","lean_semantic_closure":"2d851ed7d360abeae832a796cbb23db27ed267a307678d5ac068e41c140e4001","preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "2b693d77a0f92d6a207d1c52c0098567721872c9793533b3a993acb51e98745b",
    "dep_statement_hashes": {},
    "combined_sound_fp": "preservation-v1:2f137df588b168db2f0a26deae7f140bd5d74c21b4c483ac9aaabd1d39489475"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Exact source record
{
  "name": "core.num.U8.is_ascii_digit",
  "extracted_signature": ": Std.U8 → Result Bool",
  "rust_symbol": "core::num::{u8}::is_ascii_digit",
  "raw_declaration_sha256": "fae6cbf092f55de23a7159eb77782a6336592a4609f96942008513624ed2033b",
  "node": "ModelU8IsAsciiDigit",
  "declaration": "dec2flt_model.ModelU8IsAsciiDigit"
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/binary64-boundary.txt",
    "sha256": "fa45c924747337e8d6f84a19fe9e83fb9b33c73434887c0cf57c062533f51fe1",
    "cited_by": [
      "Tablet/ModelU8IsAsciiDigit.tex",
      "Tablet/model-support.json"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-probe.rs",
    "sha256": "68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e",
    "cited_by": [
      "reference/model-evidence/binary64-boundary.txt"
    ]
  }
]

core::ops::arith::{impl core::ops::arith::Mul<f64, f64> for f64}::mul

Inspect related source (1)

Related source and models come from the extraction records and declared dependencies.

Rust itemcore::ops::arith::{impl core::ops::arith::Mul<f64, f64> for f64}::mul
Recorded source/rustc/library/core/src/ops/arith.rs
Lines350:12–350:41

The related-source link includes this operation’s Rust standard-library implementation.

Opaque extraction signature
: F64 → F64 → Result F64
Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Tablet.Binary64ModelDefault
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelF64Mul]
def ModelF64Mul : F64 -> F64 -> Result F64 :=
-- BODY
  Binary64ModelDefault.mul
end dec2flt_model

Why this model is faithful

Definition

\mathsf{ModelF64Mul} is the exact binary64 multiplication operation supplied by Binary64ModelDefault.

Preservation argument

Claim

This binding agrees with source binary64 multiplication on all finite operands and returns a source-permitted quiet NaN in NaN-producing cases.

Proof

The definition is the exact-rational multiplication field of Binary64ModelDefault. Its field decoding, nearest-even rounding, signed-zero handling, infinity cases, and permitted NaN choice are justified by reference/model-evidence/binary64-boundary.txt.
Authored arguments for individual requirements

Requirement: assembly correspondence

The subject is biased_fp_to_float, whose source body only casts the biased exponent, shifts it, ORs it with the mantissa, and calls from_u64_bits; it never invokes binary64 multiplication, as recorded in reference/model-evidence/binary64-boundary.txt. This binding therefore cannot affect the claimed assembled word.

Requirement: classification determinism

This is a mathematical uniqueness statement about the decimal classification relation. That relation performs no source execution and contains no binary64 multiplication, so this operational binding is irrelevant to its classification and parsed-content observations.

Requirement: classification significand digit

This is a mathematical statement about the grammar of a classified numeric lexeme. Its significand-digit observation neither executes the parser nor uses binary64 multiplication, so this binding cannot affect it.

Requirement: classification totality

This is a mathematical exhaustiveness statement for the decimal classification relation on finite byte strings. The relation has no binary64 operation or program execution, so multiplication is absent from the goal's subject.

Requirement: dispatch abstract composition

The abstract implication over arbitrary components does not invoke this source binding. For every actual dispatcher execution, binary64 multiplication is either not reached or occurs in one of the two native arms. In the ordinary arm, the source guards recorded in reference/model-evidence/binary64-boundary.txt give \mathit{mantissa}\leq2^{53} and a power-table index in 0,\ldots,22; in the disguised arm, the checked multiplied mantissa is at most 2^{53} and the table index is 22. By Binary64NativeCallDomain, both operands are finite and non-NaN in either case, so the exact finite-operand clause above reproduces every multiplication that is actually reached. This application asserts neither that the component contracts are inhabited nor that the source supplies a witness; those remain obligations of the positive GOAL.

Requirement: dispatch component compliance

For every actual component execution, the same source guards and Binary64NativeCallDomain show that each multiplication that is reached has finite, non-NaN operands, so the exact finite-operand clause above returns exactly the source binary64 value; an execution with no multiplication call is unaffected. This source/model equality preserves the component execution and therefore preserves the truth value of any later claim that its result agrees with a contract. It does not assert that a compliant contract instance exists or that the source agrees with one.

Requirement: exponent value agreement

This is a mathematical comparison of exact and bounded-accumulation decimal values and their rounding targets. It executes no source code and uses no binary64 multiplication operation, so the binding has no observation in this goal.

Requirement: integer correct or defer

The subject is compute_float. Its source body performs integer table arithmetic and returns a raw BiasedFp; the exact source excerpt in reference/model-evidence/binary64-boundary.txt records that it contains no primitive float multiplication. This binding therefore cannot change either deferral or the returned raw pair.

Requirement: native correct or defer

Binary64 multiplication is reached in the ordinary native arm when the exponent is nonnegative and in the disguised native arm. In the ordinary arm, the can_use_fast_path guards in reference/model-evidence/binary64-boundary.txt give \mathit{mantissa}\leq2^{53} and 0\leq\mathit{exponent}\leq22. In the disguised arm, checked_mul must succeed and the resulting mantissa is explicitly checked to be at most 2^{53} before multiplication by table entry 22. Applying Binary64NativeCallDomain gives finite non-NaN operands in both arms, so the exact finite-operand multiplication clause above agrees with the source on every executed binary64 multiplication; the negative-exponent ordinary arm divides instead.

Requirement: number helper acceptance

The goal's subject is parse_number. Its recorded source body only accepts a complete Decimal returned by parse_partial_number; it has no float type parameter and executes no float operation, including multiplication (reference/model-evidence/binary64-boundary.txt).

Requirement: number helper accumulated value

This goal observes only the Decimal record returned by parse_number. The recorded source boundary shows that this helper has no float type parameter or float operation, so no binary64 multiplication can affect the record or its represented interval (reference/model-evidence/binary64-boundary.txt).

Requirement: number helper record bounds

The relevant execution ends when parse_number returns its Decimal record. As its exact source body in reference/model-evidence/binary64-boundary.txt shows, it invokes no float conversion or arithmetic, hence no binary64 multiplication can affect the record's sign or mantissa bound.

Requirement: number helper rejection

Rejection is decided entirely inside parse_number: the helper returns None unless parse_partial_number consumed the entire slice. The recorded body has no float type parameter or float operation, so this multiplication binding is not reached (reference/model-evidence/binary64-boundary.txt).

Requirement: parser accumulated rounding

A numeric dispatcher execution can multiply in the ordinary native arm with a nonnegative exponent or in the disguised native arm. The source guards in reference/model-evidence/binary64-boundary.txt respectively give \mathit{mantissa}\leq2^{53} and a table index in 0,\ldots,22, or a checked multiplied mantissa at most 2^{53} and table index 22. Applying Binary64NativeCallDomain yields finite non-NaN operands in both cases. Hence the exact finite-operand multiplication clause above preserves the native result whose accumulated-value rounding is observed; every non-native path avoids float multiplication.

Requirement: parser equal target rounding

The relevant multiplication is in the nonnegative-exponent ordinary native arm or the disguised native arm. The source guards in reference/model-evidence/binary64-boundary.txt bound the ordinary converted mantissa by 2^{53} and its table index by 22; in the disguised arm they bound the checked multiplied mantissa by 2^{53} and fix the table index at 22. By Binary64NativeCallDomain, both operands are finite and non-NaN in either case, so the exact finite-operand multiplication clause above preserves the returned word used by the equal-target bridge. Other dispatcher paths do not perform float multiplication.

Requirement: parser exact rounding

An accepted numeric execution can multiply in the nonnegative-exponent ordinary native arm or in the disguised native arm. Its source guards, recorded in reference/model-evidence/binary64-boundary.txt, give the ordinary arm a mantissa at most 2^{53} and table index in 0,\ldots,22; the disguised arm checks its multiplied mantissa at most 2^{53} and uses table index 22. Applying Binary64NativeCallDomain makes both operands finite and non-NaN in each arm. Therefore the exact finite-operand multiplication clause above preserves the native rounded word; the integer/slow assembly route performs no float multiplication.

Requirement: parser infinity

For an infinity literal, numeric parsing returns None and the dispatcher takes the special-helper branch. The source excerpt in reference/model-evidence/binary64-boundary.txt shows that this branch selects the infinity constant and conditionally negates it; it never calls try_fast_path or binary64 multiplication.

Requirement: parser invalid rejection

On the invalid branch, parse_number and then parse_inf_nan both return None, after which the dispatcher returns the parsing error. The former has no float operation and the latter only selects a special constant and conditionally negates on success, as recorded in reference/model-evidence/binary64-boundary.txt; this branch never reaches try_fast_path or binary64 multiplication.

Requirement: parser nan acceptance

For a NaN literal, numeric parsing returns None and the dispatcher takes the special-helper branch. That branch selects the NaN constant and conditionally negates it, as recorded in reference/model-evidence/binary64-boundary.txt; it does not call try_fast_path or binary64 multiplication, and no raw-word identity for an arithmetic NaN is asserted.

Requirement: parser non nan results

A successful non-NaN parse can reach binary64 multiplication only through the nonnegative-exponent ordinary native arm or the disguised native arm. The source guards in reference/model-evidence/binary64-boundary.txt give the ordinary arm a mantissa at most 2^{53} and a table index in 0,\ldots,22; the disguised arm has a checked multiplied mantissa at most 2^{53} and table index 22. Applying Binary64NativeCallDomain yields finite non-NaN operands in either case. Thus the exact finite-operand multiplication clause above preserves the source result and cannot introduce NaN; infinity-special and non-native paths do not perform float multiplication.

Requirement: parser numeric acceptance

The only binary64 multiplication reachable while parsing a numeric literal is in the nonnegative-exponent ordinary native arm or the disguised native arm. Their guards, recorded in reference/model-evidence/binary64-boundary.txt, respectively give a mantissa at most 2^{53} with table index in 0,\ldots,22, or a successfully checked multiplied mantissa at most 2^{53} with table index 22. By Binary64NativeCallDomain, both operands are finite and non-NaN in either arm, so the exact finite-operand multiplication clause above preserves the normal native return. All remaining numeric paths avoid float multiplication.

Requirement: parser numeric sign

A numeric execution performs binary64 multiplication only in the nonnegative-exponent ordinary native arm or the disguised native arm. The source guards in reference/model-evidence/binary64-boundary.txt establish the ordinary bounds \mathit{mantissa}\leq2^{53} and table index 0,\ldots,22, and the disguised bounds of a checked multiplied mantissa at most 2^{53} and table index 22. Applying Binary64NativeCallDomain gives positive-sign finite non-NaN operands in both cases, so the exact finite-operand multiplication clause above preserves the product's magnitude sign; the record's lexical sign is applied afterward. Non-native paths do not perform float multiplication.

Requirement: parser selected exponent

This goal observes only an Assembled trace. The source dispatcher records such a trace only after try_fast_path returned None; an executed float multiplication belongs to a successful ordinary or disguised native arm and returns directly as Some. Thus no execution relevant to the selected-pair exponent observation executes binary64 multiplication, as the dispatcher excerpt in reference/model-evidence/binary64-boundary.txt records.

Requirement: parser selected magnitude sign

The assembled-word observation exists only on the dispatcher's Assembled route, reached after the native shortcut returned None. Every executed float multiplication is in an ordinary or disguised native arm that returns its value directly rather than selecting or assembling a raw pair. Consequently this binding cannot affect the selected pair or its clear sign bit (reference/model-evidence/binary64-boundary.txt).

Requirement: parser signed zero

When the mantissa is zero, either multiplication arm has a converted mantissa of positive zero: the ordinary arm uses the original zero, while the disguised arm's checked integer product is zero. The ordinary table index is in 0,\ldots,22, and the disguised index is 22, as recorded in reference/model-evidence/binary64-boundary.txt. By Binary64NativeCallDomain, the zero operand and positive power of ten are finite and non-NaN. The exact finite-operand multiplication clause above therefore preserves positive zero before the lexical sign is applied; all other routes avoid float multiplication.

Requirement: parser totality

Binary64 multiplication can be reached only after numeric parsing, in the nonnegative-exponent ordinary native arm or the disguised native arm. The source guards recorded in reference/model-evidence/binary64-boundary.txt bound the ordinary mantissa by 2^{53} and its table index by 22; the disguised branch reaches float multiplication only after checked_mul succeeded and the resulting mantissa passed the 2^{53} bound, and it uses table index 22. Applying Binary64NativeCallDomain gives finite non-NaN operands in both arms, so the exact finite-operand multiplication clause above supplies the same normal source result. Every other dispatcher branch makes no float multiplication call, so the binding introduces no panic or divergence on any source input.

Requirement: rounding determinism

The goal concerns uniqueness in the mathematical binary64 magnitude-rounding relation for nonnegative reals. It neither runs the source parser nor invokes an arithmetic operation, so this multiplication binding is absent from its subject.

Requirement: rounding totality

The goal is an existence statement in the mathematical binary64 magnitude-rounding relation. It contains no source execution and no binary64 multiplication call, so the binding cannot affect its target witness.

Requirement: slow accumulated rounding

The subject is parse_long_mantissa. Its recorded source body uses decimal-sequence shifts and integer rounding and returns a raw BiasedFp; it contains no primitive float multiplication or other float arithmetic (reference/model-evidence/binary64-boundary.txt). Thus this binding cannot affect its returned pair.

Requirement: special helper infinity

The subject is parse_inf_nan. For an infinity keyword its exact source path selects the infinity constant and conditionally applies negation; it contains no binary64 multiplication call, as recorded in reference/model-evidence/binary64-boundary.txt.

Requirement: special helper nan

The subject is parse_inf_nan. For a NaN keyword its exact source path selects the NaN constant and conditionally applies negation; it contains no binary64 multiplication call, as recorded in reference/model-evidence/binary64-boundary.txt. This application asserts only the NaN category, not equality of any arithmetic NaN raw word.

Requirement: special helper rejection

The subject is parse_inf_nan; an unrecognized keyword takes its None branch before any special constant or negation is returned. The recorded source body contains no binary64 multiplication on either success or rejection (reference/model-evidence/binary64-boundary.txt).

Recorded review

CorrespondencePass
PreservationVerifierPass

ModelF64Mul · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/binary64-boundary.txt

Open file

Primary evidence for the binary64 boundary
==========================================

Scope and identities
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction, the
adapted Rust crate retained in this repository, and the installed toolchain
named by modeling-input/SETUP.md. The probe source is retained at
reference/model-evidence/binary64-probe.rs; no scratch source is required to
reproduce it.

Toolchain executable:
  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
Target:
  x86_64-unknown-linux-gnu
rustc executable SHA-256:
  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
Probe source SHA-256:
  68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
Compiled probe SHA-256:
  f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
Frozen generated.lean SHA-256:
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9
Frozen modeling-input/manifest.json SHA-256:
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2
Approved Binary64ModelDefault.lean SHA-256 at the time of this record:
  03ae48fb631e6242bd21bf95d0481b66acae05f8cab343c7ab279b3c116538a3

Exact reproduction commands
---------------------------

Run from the repository root:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-probe.rs
  B=.trellis/scratch/binary64-probe
  "$R" --version --verbose
  sha256sum "$R"
  sha256sum "$P"
  "$R" --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$B"
  "$B"

Raw output
----------

  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
  rustc_sha256=162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  probe_sha256=68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
  binary_sha256=f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
  target_arch=x86_64
  mantissa_digits=53
  exponent_mask=7ff0000000000000
  mantissa_mask=000fffffffffffff
  nan=7ff8000000000000
  infinity=7ff0000000000000
  neg_infinity=fff0000000000000
  nan_category=Nan
  infinity_category=Infinite
  zero_category=Zero
  subnormal_category=Subnormal
  normal_category=Normal
  from_bits_to_bits=7ff0000000000001
  neg_payload_nan=fff0000000000001
  neg_zero=8000000000000000
  subnormal_tie_to_even_zero=0000000000000000
  subnormal_tie_to_even_two=0000000000000002
  normal_division=3fb999999999999a
  mul_negative_zero=8000000000000000
  div_negative_zero=8000000000000000
  div_negative_infinity=fff0000000000000
  mul_overflow=7ff0000000000000
  mul_zero_infinity_is_nan=true
  div_zero_zero_is_nan=true
  mul_nan_is_nan=true
  cast_2_pow_53=4340000000000000
  cast_2_pow_53_plus_1=4340000000000000

Pinned Rust library sources
---------------------------

The installed sources below belong to the same named toolchain. Their
SHA-256 identities are:

  core/src/primitive_docs.rs
    c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5
  core/src/num/f64.rs
    84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618
  core/src/clone.rs
    23f9cfc80347fde6b8457d46fbf7a2b8d9f34c8c58601b0b6f714ca2f6d1976b

The exact relevant text of core/src/primitive_docs.rs is:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The referenced primitive-f32 documentation supplies the common primitive
floating-point operation rules quoted next:

  /// - −0.0: IEEE 754 floating-point numbers have a bit that indicates their sign, so −0.0 is a
  ///   possible value. For comparison −0.0 = +0.0, but floating-point operations can carry
  ///   the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
  ///   a negative number rounded to a value smaller than a float can represent also produces −0.0.
  /// - [∞](#associatedconstant.INFINITY) and
  ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
  ///   like `1.0 / 0.0`.
  ///
  /// When a primitive operation (addition, subtraction, multiplication, or
  /// division) is performed on this type, the result is rounded according to the
  /// roundTiesToEven direction defined in IEEE 754-2008. That means:
  ///
  /// - The result is the representable value closest to the true value, if there
  ///   is a unique closest representable value.
  /// - If the true value is exactly half-way between two representable values,
  ///   the result is the one with an even least-significant binary digit.
  /// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
  ///   `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
  ///   true value's sign).

The same file explicitly separates arithmetic NaN choice from exact bitwise
operations; its exact relevant text is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.
  ///
  /// The following rules apply when a NaN value is returned from an arithmetic operation:
  /// - The result has a non-deterministic sign.
  /// - The quiet bit and payload are non-deterministically chosen from
  ///   the following set of options:
  ///
  ///   - **Preferred NaN**: The quiet bit is set and the payload is all-zero.
  ///   - **Quieting NaN propagation**: The quiet bit is set and the payload is copied from any input
  ///     operand that is a NaN. If the inputs and outputs do not have the same payload size (i.e., for
  ///     `as` casts), then
  ///     - If the output is smaller than the input, low-order bits of the payload get dropped.
  ///     - If the output is larger than the input, the payload gets filled up with 0s in the low-order
  ///       bits.
  ///   - **Unchanged NaN propagation**: The quiet bit and payload are copied from any input operand
  ///     that is a NaN. If the inputs and outputs do not have the same size (i.e., for `as` casts), the
  ///     same rules as for "quieting NaN propagation" apply, with one caveat: if the output is smaller
  ///     than the input, dropping the low-order bits may result in a payload of 0; a payload of 0 is not
  ///     possible with a signaling NaN (the all-0 significand encodes an infinity) so unchanged NaN
  ///     propagation cannot occur with some inputs.
  ///   - **Target-specific NaN**: The quiet bit is set and the payload is picked from a target-specific
  ///     set of "extra" possible NaN payloads. The set can depend on the input operand values.
  ///     See the table below for the concrete NaNs this set contains on various targets.
  ///
  /// | `target_arch` | Extra payloads possible on this platform |
  /// |---------------|------------------------------------------|
  /// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |

Thus the model's preferred quiet NaN is one permitted result whenever
multiplication or division returns NaN. This does not claim that arbitrary
Rust arithmetic NaNs have those exact bits. By contrast, unary negation and
bit conversion must preserve all non-sign bits exactly, including for every
NaN payload.

The exact relevant declarations in core/src/num/f64.rs are:

  pub const MANTISSA_DIGITS: u32 = 53;
  pub const NAN: f64 = 0.0_f64 / 0.0_f64;
  pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
  pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
  pub const SIGN_MASK: u64 = 0x8000_0000_0000_0000;
  pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;
  pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff;

  pub const fn classify(self) -> FpCategory {
      // We used to have complicated logic here that avoids the simple bit-based tests to work
      // around buggy codegen for x87 targets (see
      // https://github.com/rust-lang/rust/issues/114479). However, some LLVM versions later, none
      // of our tests is able to find any difference between the complicated and the naive
      // version, so now we are back to the naive version.
      let b = self.to_bits();
      match (b & Self::MANTISSA_MASK, b & Self::EXPONENT_MASK) {
          (0, Self::EXPONENT_MASK) => FpCategory::Infinite,
          (_, Self::EXPONENT_MASK) => FpCategory::Nan,
          (0, 0) => FpCategory::Zero,
          (_, 0) => FpCategory::Subnormal,
          _ => FpCategory::Normal,
      }
  }

  pub const fn to_bits(self) -> u64 {
      // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
      unsafe { mem::transmute(self) }
  }

  pub const fn from_bits(v: u64) -> Self {
      // It turns out the safety issues with sNaN were overblown! Hooray!
      // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
      unsafe { mem::transmute(v) }
  }

The exact scalar clone body in core/src/clone.rs is:

  impl const Clone for $t {
      #[inline(always)]
      fn clone(&self) -> Self {
          *self
      }
  }

Frozen adapted source
---------------------

The relevant retained source file hashes are:

  crate/traits.rs
    9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  crate/dec2flt/decimal.rs
    633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb
  crate/dec2flt/lemire.rs
    fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1
  crate/dec2flt/slow.rs
    93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485

The dispatcher excerpts below are reproduced from the identified file by
running these commands from the repository root:

  sha256sum crate/dec2flt/mod.rs
  sed -n '354,403p' crate/dec2flt/mod.rs
  sed -n '405,422p' crate/dec2flt/mod.rs
  sed -n '465,475p' crate/dec2flt/mod.rs
  sed -n '506,523p' crate/dec2flt/mod.rs

Exact constant and bit-conversion excerpt from crate/traits.rs:

  impl Float for f64 {
      type Int = u64;

      const INFINITY: Self = Self::INFINITY;
      const NEG_INFINITY: Self = Self::NEG_INFINITY;
      const NAN: Self = Self::NAN;
      // Bit-identical to the upstream `-f64::NAN`, without the unsupported
      // compile-time float negation.
      const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);

      const BITS: u32 = 64;
      const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
      const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
      const SIG_MASK: Self::Int = Self::MANTISSA_MASK;

      fn to_bits(self) -> Self::Int {
          self.to_bits()
      }

      fn classify(self) -> FpCategory {
          self.classify()
      }
  }

  impl FloatExt for f64 {
      #[inline]
      fn from_u64_bits(v: u64) -> Self {
          f64::from_bits(v)
      }

Exact derived-constant defaults from crate/traits.rs:

  /// The number of bits in the significand, *excluding* the hidden bit.
  const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;

  /// Number of bits in the exponent.
  const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

  /// The saturated (maximum bitpattern) value of the exponent, i.e. the infinite
  /// representation.
  ///
  /// This shifted fully right, use `EXP_MASK` for the shifted value.
  const EXP_SAT: u32 = (1 << Self::EXP_BITS) - 1;

  /// Signed version of `EXP_SAT` since we convert a lot.
  const INFINITE_POWER: i32 = Self::EXP_SAT as i32;

  /// The exponent bias value. This is also the maximum value of the exponent.
  const EXP_BIAS: u32 = Self::EXP_SAT >> 1;

  /// Minimum exponent value of normal values.
  const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Together with the f64-instance lines `BITS = 64` and
`SIG_TOTAL_BITS = Self::MANTISSA_DIGITS` in the preceding excerpt, these
defaults derive SIG_BITS, EXP_MIN, and INFINITE_POWER from the primitive
mantissa-digit constant rather than introducing independent parameters.

Exact asserted-conversion excerpt from crate/dec2flt/mod.rs:

  #[inline]
  // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
  // `charon::opaque` makes this entire asserted conversion external: both the
  // unchanged `debug_assert!` and the unchanged cast below are in the opaque
  // body. The callers, their fast-path guards, and their surrounding
  // computation remain mechanically visible. A corresponding model binding
  // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
  // exact binary64 conversion at or below that bound.
  #[charon::opaque]
  fn from_u64(v: u64) -> Self {
      debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
      v as _
  }

Here MAX_MANTISSA_FAST_PATH is the retained default 1 << 53.  The attribute is
attached to the function item, so the generated external stands for the whole
method, not merely the cast.  In the enabled-debug configuration the source
succeeds only when v <= 2^53; above it the assertion fails before the cast. On
the successful branch every integer is exactly representable, so the source
cast and the model rounder return the same word.

Exact power-table and assembly excerpts from crate/dec2flt/mod.rs:

  /// Maximum mantissa for the fast-path (`1 << 53` for f64).
  const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;

  const MAX_EXPONENT_FAST_PATH: i64 = 22;
  const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
  const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;

  fn pow10_fast_path(exponent: usize) -> Self {
      // These bit patterns are exactly the source table's rounded binary64
      // literals.  The match is the same masked lookup; it merely keeps float
      // constants out of Aeneas's unsupported constant interpreter.
      match exponent & 31 {
          0 => f64::from_bits(0x3FF0_0000_0000_0000),
          1 => f64::from_bits(0x4024_0000_0000_0000),
          2 => f64::from_bits(0x4059_0000_0000_0000),
          3 => f64::from_bits(0x408F_4000_0000_0000),
          4 => f64::from_bits(0x40C3_8800_0000_0000),
          5 => f64::from_bits(0x40F8_6A00_0000_0000),
          6 => f64::from_bits(0x412E_8480_0000_0000),
          7 => f64::from_bits(0x4163_12D0_0000_0000),
          8 => f64::from_bits(0x4197_D784_0000_0000),
          9 => f64::from_bits(0x41CD_CD65_0000_0000),
          10 => f64::from_bits(0x4202_A05F_2000_0000),
          11 => f64::from_bits(0x4237_4876_E800_0000),
          12 => f64::from_bits(0x426D_1A94_A200_0000),
          13 => f64::from_bits(0x42A2_309C_E540_0000),
          14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
          15 => f64::from_bits(0x430C_6BF5_2634_0000),
          16 => f64::from_bits(0x4341_C379_37E0_8000),
          17 => f64::from_bits(0x4376_3457_85D8_A000),
          18 => f64::from_bits(0x43AB_C16D_674E_C800),
          19 => f64::from_bits(0x43E1_58E4_6091_3D00),
          20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
          21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
          22 => f64::from_bits(0x4480_F0CF_064D_D592),
          _ => f64::from_bits(0),
      }
  }

  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

Exact native-call excerpt from crate/dec2flt/decimal.rs:

  fn can_use_fast_path<F: Lemire>(&self) -> bool {
      F::MIN_EXPONENT_FAST_PATH <= self.exponent
          && self.exponent <= F::MAX_EXPONENT_DISGUISED_FAST_PATH
          && self.mantissa <= F::MAX_MANTISSA_FAST_PATH
          && !self.many_digits
  }

  if !self.can_use_fast_path::<F>() {
      return None;
  }

  let value = if self.exponent <= F::MAX_EXPONENT_FAST_PATH {
      // normal fast path
      let value = F::from_u64(self.mantissa);
      if self.exponent < 0 {
          // Explicit trait calls preserve Rust arithmetic and resolve
          // the generic output type that Charon leaves ambiguous.
          core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
      } else {
          core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
      }
  } else {
      // disguised fast path
      let shift = self.exponent - F::MAX_EXPONENT_FAST_PATH;
      let mantissa = self.mantissa.checked_mul(INT_POW10[shift as usize])?;
      if mantissa > F::MAX_MANTISSA_FAST_PATH {
          return None;
      }
      core::ops::Mul::mul(
          F::from_u64(mantissa),
          F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
      )
  };

  if self.negative {
      Some(core::ops::Neg::neg(value))
  } else {
      Some(value)
  }

The preceding can_use_fast_path body, together with
MAX_MANTISSA_FAST_PATH = 1 << SIG_TOTAL_BITS and SIG_TOTAL_BITS = 53 for f64,
requires the exponent to lie between -22 and 37, the input mantissa to be at
most 2^53, and many_digits to be false. Consequently an ordinary arithmetic
call has a from_u64 operand in 0..=2^53. In its negative-exponent arm,
`-self.exponent` lies in 1..=22; in its nonnegative arm, `self.exponent` lies
in 0..=22. The disguised branch checks its multiplied mantissa against 2^53
before from_u64 and uses table index 22. The paired statement
Binary64NativeCallDomain does not assert this source reachability. It says
conditionally that a from_u64 argument at most 2^53 succeeds with a finite,
non-NaN word and that a table index at most 22 succeeds with a positive,
nonzero, finite, non-NaN word. Applying that conditional statement to the
guards just derived establishes those properties for the actual ordinary and
disguised calls, and in particular establishes that every executed divisor is
nonzero.

Exact special-value excerpt from crate/dec2flt/parse.rs:

  let float = match (register, len) {
      (INF_3, 3) => F::INFINITY,
      (INF_8, 8) => F::INFINITY,
      (NAN, 3) => F::NAN,
      _ => return None,
  };

  if negative { Some(-float) } else { Some(float) }

Thus the executed special route is INFINITY or NAN followed by conditional
negation; it does not select NEG_INFINITY or NEG_NAN directly.

The number helper has the exact source body

  pub fn parse_number(s: &[u8]) -> Option<Decimal> {
      if let Some((float, rest)) = parse_partial_number(s) {
          if rest == s.len() {
              return Some(float);
          }
      }
      None
  }

It returns only the Decimal produced by parse_partial_number; there is no
float type parameter or float operation at this boundary.

Exact dispatcher excerpts from crate/dec2flt/mod.rs
---------------------------------------------------

The entry of `dec2flt_with_trace` strips at most one leading sign, rejects
empty and sign-only inputs, calls `parse_number` on the unsigned body, and
calls `parse_inf_nan` only when `parse_number` returns `None`:

  /// Run the actual dispatcher while retaining its approved internal observations.
  pub fn dec2flt_with_trace<
      'a,
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {
          return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
      };
      let negative = c == b'-';
      if c == b'-' || c == b'+' {
          body = &body[1..];
      }
      if body.is_empty() {
          return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
      }

      let parse_number_result = parse_number(body);
      let parsed = match parse_number_result {
          Some(r) => r,
          None => {
              let parse_inf_nan_result = parse_inf_nan(body, negative);
              return match parse_inf_nan_result {
                  Some(value) => (
                      Ok(value),
                      Dec2FltTrace::Special {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                          result: value,
                      },
                  ),
                  None => (
                      Err(pfe_invalid()),
                      Dec2FltTrace::Invalid {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                      },
                  ),
              };
          }
      };

Thus every `Err` arm shown here returns before `parsed` is available and before
the native, integer, slow, assembly, or final-negation code below it can run.
On a numeric result, the lexical sign is copied into the parsed record before
the native attempt, whose successful result also returns before raw-pair
assembly:

      let mut num = parsed;
      num.negative = negative;
      if !cfg!(feature = "optimize_for_size") {
          let fast_path_result = num.try_fast_path::<F>();
          if let Some(value) = fast_path_result {
              return (
                  Ok(value),
                  Dec2FltTrace::FastPath {
                      body,
                      negative,
                      parse_number_result,
                      fast_path_input: num,
                      fast_path_result,
                      result: value,
                  },
              );
          }
      }

If the native attempt does not return, the selected raw pair is assembled and
the source then conditionally negates it according to the lexical-sign flag:

      let selected_pair = fp;
      // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
      // it neither changes the selected pair nor introduces a new branch or call.
      let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
      let assembly_result = biased_fp_to_float::<F>(fp);
      let lexical_sign_applied = num.negative;
      let result = if lexical_sign_applied {
          core::ops::Neg::neg(assembly_result)
      } else {
          assembly_result
      };

The public `dec2flt` executes that same route and returns its result projection;
it does not reimplement or reorder any parsing or float operation:

  /// Converts a decimal string into a floating point number.
  #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
  pub fn dec2flt<
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &str,
  ) -> Result<F, ParseFloatError> {
      // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
      // clause admits exactly the same instances and lets Charon resolve the
      // explicit, source-equivalent final negation.
      // The public function is now exactly the result projection of the single
      // instrumented implementation.  No conversion step is duplicated, and
      // discarding the trace cannot affect Rust evaluation or the returned bits.
      dec2flt_with_trace::<F>(s).0
  }

The integer-tier helper has the source type and exact executable excerpts
below (long explanatory comments are elided). In particular it returns a raw
BiasedFp and contains no from_u64 cast, primitive float multiplication,
division, negation, or from_bits call:

  pub fn compute_float<F: Float>(q: i64, mut w: u64) -> BiasedFp {
      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);
      let fp_error = BiasedFp::zero_pow2(-1);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if w == 0 || q < F::SMALLEST_POWER_OF_TEN as i64 {
          return fp_zero;
      } else if q > F::LARGEST_POWER_OF_TEN as i64 {
          return fp_inf;
      }
      // Normalize our significant digits, so the most-significant bit is set.
      let lz = w.leading_zeros();
      w <<= lz;
      let (lo, hi) = compute_product_approx(q, w, F::SIG_BITS as usize + 3);
      if lo == 0xFFFF_FFFF_FFFF_FFFF {
          let inside_safe_exponent = (q >= -27) && (q <= 55);
          if !inside_safe_exponent {
              return fp_error;
          }
      }
      let upperbit = (hi >> 63) as i32;
      let mut mantissa = hi >> (upperbit + 64 - F::SIG_BITS as i32 - 3);
      let mut power2 = power(q as i32) + upperbit - lz as i32 - F::EXP_MIN + 1;
      if power2 <= 0 {
          if -power2 + 1 >= 64 {
              // Have more than 64 bits below the minimum exponent, must be 0.
              return fp_zero;
          }
          // Have a subnormal value.
          mantissa >>= -power2 + 1;
          mantissa += mantissa & 1;
          mantissa >>= 1;
          power2 = (mantissa >= (1_u64 << F::SIG_BITS)) as i32;
          return BiasedFp { m: mantissa, p_biased: power2 };
      }
      // Need to handle rounding ties. Normally, we need to round up,
      // but if we fall right in between and we have an even basis, we
      // need to round down.
      if lo <= 1
          && q >= F::MIN_EXPONENT_ROUND_TO_EVEN as i64
          && q <= F::MAX_EXPONENT_ROUND_TO_EVEN as i64
          && mantissa & 0b11 == 0b01
          && (mantissa << (upperbit + 64 - F::SIG_BITS as i32 - 3)) == hi
      {
          // Zero the lowest bit, so we don't round up.
          mantissa &= !1_u64;
      }
      // Round-to-even, then shift the significant digits into place.
      mantissa += mantissa & 1;
      mantissa >>= 1;
      if mantissa >= (2_u64 << F::SIG_BITS) {
          // Rounding up overflowed, so the carry bit is set. Set the
          // mantissa to 1 (only the implicit, hidden bit is set) and
          // increase the exponent.
          mantissa = 1_u64 << F::SIG_BITS;
          power2 += 1;
      }
      // Zero out the hidden bit.
      mantissa &= !(1_u64 << F::SIG_BITS);
      if power2 >= F::INFINITE_POWER {
          // Exponent is above largest normal value, must be infinite.
          return fp_inf;
      }
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact slow-tier source body from crate/dec2flt/slow.rs:

  pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {
      const MAX_SHIFT: usize = 60;
      const NUM_POWERS: usize = 19;
      const POWERS: [u8; 19] =
          [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];

      let get_shift = |n| {
          if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }
      };

      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);

      let mut d = parse_decimal_seq(s);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if d.num_digits == 0 || d.decimal_point < -324 {
          return fp_zero;
      } else if d.decimal_point >= 310 {
          return fp_inf;
      }
      let mut exp2 = 0_i32;
      let mut loop_result = None;
      // Shift right toward (1/2 ... 1].
      while d.decimal_point > 0 && loop_result.is_none() {
          let n = d.decimal_point as usize;
          let shift = get_shift(n);
          d.right_shift(shift);
          if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_zero);
          } else {
              exp2 += shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // Shift left toward (1/2 ... 1].
      while d.decimal_point <= 0 && loop_result.is_none() {
          let shift = if d.decimal_point == 0 {
              match d.digits[0] {
                  digit if digit >= 5 => break,
                  0 | 1 => 2,
                  _ => 1,
              }
          } else {
              get_shift((-d.decimal_point) as _)
          };
          d.left_shift(shift);
          if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_inf);
          } else {
              exp2 -= shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
      exp2 -= 1;
      while F::EXP_MIN > exp2 {
          let mut n = (F::EXP_MIN - exp2) as usize;
          if n > MAX_SHIFT {
              n = MAX_SHIFT;
          }
          d.right_shift(n);
          exp2 += n as i32;
      }
      if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
          return fp_inf;
      }
      // Shift the decimal to the hidden bit, and then round the value
      // to get the high mantissa+1 bits.
      d.left_shift(F::SIG_BITS as usize + 1);
      let mut mantissa = d.round();
      if mantissa >= (1_u64 << (F::SIG_BITS + 1)) {
          // Rounding up overflowed to the carry bit, need to
          // shift back to the hidden bit.
          d.right_shift(1);
          exp2 += 1;
          mantissa = d.round();
          if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
              return fp_inf;
          }
      }
      let mut power2 = exp2 - F::EXP_MIN + 1;
      if mantissa < (1_u64 << F::SIG_BITS) {
          power2 -= 1;
      }
      // Zero out all the bits above the explicit mantissa bits.
      mantissa &= (1_u64 << F::SIG_BITS) - 1;
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact final numeric-sign excerpt from crate/dec2flt/mod.rs:

  let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
  let assembly_result = biased_fp_to_float::<F>(fp);
  let lexical_sign_applied = num.negative;
  let result = if lexical_sign_applied {
      core::ops::Neg::neg(assembly_result)
  } else {
      assembly_result
  };

Thus a numeric execution that reaches the integer/slow selection route
assembles its selected pair with from_bits through biased_fp_to_float and only
then conditionally negates it. A successful try_fast_path returns earlier and
does not perform this assembly. compute_float and parse_long_mantissa produce
raw BiasedFp pairs and do not call from_u64, primitive float multiplication,
division, negation, or from_bits; they do, however, execute constants derived
from SIG_TOTAL_BITS before producing those pairs.

Retained structural-boundary evidence
-------------------------------------

Several adjacent structural bindings cite this same evidence record. Their
pinned library source identities are:

  core/src/num/mod.rs
    f0820f9dfb94999440c8cb4a349736fa21df7e5668e19b6b49e016ff67c05ce3
  core/src/option.rs
    7cf61204b05d98a95bc2e322d5fbfc1f4f91505109971917d9a7fb47151c50e6
  core/src/slice/mod.rs
    354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840
  core/src/str/mod.rs
    284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78

Exact ASCII-digit body from core/src/num/mod.rs:

  pub const fn is_ascii_digit(&self) -> bool {
      matches!(*self, b'0'..=b'9')
  }

Exact Option control-flow bodies from core/src/option.rs:

  fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
      match self {
          Some(v) => ControlFlow::Continue(v),
          None => ControlFlow::Break(None),
      }
  }

  fn from_residual(residual: Option<convert::Infallible>) -> Self {
      match residual {
          None => None,
      }
  }

Exact slice observation bodies from core/src/slice/mod.rs:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

Exact string-byte body from core/src/str/mod.rs:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }
reference/model-evidence/binary64-probe.rs

Open file

#![feature(float_masks)]

use std::num::FpCategory;

fn bits(label: &str, value: f64) {
    println!("{label}={:016x}", value.to_bits());
}

fn main() {
    println!("target_arch={}", std::env::consts::ARCH);
    println!("mantissa_digits={}", f64::MANTISSA_DIGITS);
    println!("exponent_mask={:016x}", f64::EXPONENT_MASK);
    println!("mantissa_mask={:016x}", f64::MANTISSA_MASK);
    bits("nan", f64::NAN);
    bits("infinity", f64::INFINITY);
    bits("neg_infinity", f64::NEG_INFINITY);

    for (label, value) in [
        ("nan_category", f64::NAN),
        ("infinity_category", f64::INFINITY),
        ("zero_category", 0.0),
        ("subnormal_category", f64::from_bits(1)),
        ("normal_category", 1.0),
    ] {
        let category = match value.classify() {
            FpCategory::Nan => "Nan",
            FpCategory::Infinite => "Infinite",
            FpCategory::Zero => "Zero",
            FpCategory::Subnormal => "Subnormal",
            FpCategory::Normal => "Normal",
        };
        println!("{label}={category}");
    }

    let payload_nan_word = 0x7ff0_0000_0000_0001_u64;
    println!(
        "from_bits_to_bits={:016x}",
        f64::from_bits(payload_nan_word).to_bits()
    );
    bits("neg_payload_nan", -f64::from_bits(payload_nan_word));
    bits("neg_zero", -0.0);

    bits("subnormal_tie_to_even_zero", f64::from_bits(1) * 0.5);
    bits("subnormal_tie_to_even_two", f64::from_bits(3) * 0.5);
    bits("normal_division", 1.0 / 10.0);
    bits("mul_negative_zero", -0.0 * 2.0);
    bits("div_negative_zero", -1.0 / f64::INFINITY);
    bits("div_negative_infinity", 1.0 / -0.0);
    bits("mul_overflow", f64::MAX * (1.0 + f64::EPSILON));
    println!("mul_zero_infinity_is_nan={}", (0.0 * f64::INFINITY).is_nan());
    println!("div_zero_zero_is_nan={}", (0.0_f64 / 0.0_f64).is_nan());
    println!("mul_nan_is_nan={}", (f64::NAN * 1.0).is_nan());

    bits("cast_2_pow_53", (1_u64 << 53) as f64);
    bits("cast_2_pow_53_plus_1", ((1_u64 << 53) + 1) as f64);
}
Assumptions / kernel axioms
  • Classical.choice
  • Quot.sound
  • propext

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (32)
All 32 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourceTablet/model-support.json
Kindopaque external binding
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:9e6cf3cf564919615ed0dcf30f9c7bee804aceab10da22aeb00e8bc5e8f8d7a9
Preservation current fingerprintpreservation-v1:9e6cf3cf564919615ed0dcf30f9c7bee804aceab10da22aeb00e8bc5e8f8d7a9
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"967c7873d540d6122f7c1330d7214f4df95f5ca8b07901660a8b98da190737cf","lean_semantic_closure":"43510aafab4941ffb14dcb373fd5a4b71249109e37c9a94e16c17435345ca3da","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","Binary64ModelDefault":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","Binary64ModelDefault","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence current fingerprint{"own_tex":"967c7873d540d6122f7c1330d7214f4df95f5ca8b07901660a8b98da190737cf","lean_semantic_closure":"43510aafab4941ffb14dcb373fd5a4b71249109e37c9a94e16c17435345ca3da","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","Binary64ModelDefault":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","Binary64ModelDefault","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "a9780322242a4f7ad870e574a27b0102c69c1faad6deee69ae3f111721e00a81",
    "dep_statement_hashes": {
      "Binary64ModelDefault": "be5dcc4afe23616ca8fd1d15d30fbbe4ee2621d68be3341b8e74a66e6dcd736f",
      "Binary64NativeCallDomain": "5b06c401ea7b8fe802a4cae40bcf11c5e438e342f3284a9e27ea421e01cb3642"
    },
    "combined_sound_fp": "preservation-v1:9e6cf3cf564919615ed0dcf30f9c7bee804aceab10da22aeb00e8bc5e8f8d7a9"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Exact source record
{
  "name": "F64.Insts.CoreOpsArithMulF64F64.mul",
  "extracted_signature": ": F64 → F64 → Result F64",
  "rust_symbol": "core::ops::arith::{impl core::ops::arith::Mul<f64, f64> for f64}::mul",
  "raw_declaration_sha256": "20d985819a981e9e80485ce169c1d045ea13fa8796e9314d5b621141aae6deec",
  "node": "ModelF64Mul",
  "declaration": "dec2flt_model.ModelF64Mul"
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/binary64-boundary.txt",
    "sha256": "fa45c924747337e8d6f84a19fe9e83fb9b33c73434887c0cf57c062533f51fe1",
    "cited_by": [
      "Tablet/ModelF64Mul.tex",
      "Tablet/model-support.json"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-probe.rs",
    "sha256": "68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e",
    "cited_by": [
      "reference/model-evidence/binary64-boundary.txt"
    ]
  }
]

core::ops::arith::{impl core::ops::arith::Div<f64, f64> for f64}::div

Inspect related source (1)

Related source and models come from the extraction records and declared dependencies.

Rust itemcore::ops::arith::{impl core::ops::arith::Div<f64, f64> for f64}::div
Recorded source/rustc/library/core/src/ops/arith.rs
Lines515:12–515:41

The related-source link includes this operation’s Rust standard-library implementation.

Opaque extraction signature
: F64 → F64 → Result F64
Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Tablet.Binary64ModelDefault
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelF64Div]
def ModelF64Div : F64 -> F64 -> Result F64 :=
-- BODY
  Binary64ModelDefault.div
end dec2flt_model

Why this model is faithful

Definition

\mathsf{ModelF64Div} is the exact binary64 division operation supplied by Binary64ModelDefault.

Preservation argument

Claim

This binding agrees with source binary64 division on finite operands with nonzero divisor and implements the IEEE zero, infinity, and source-permitted NaN cases elsewhere.

Proof

The definition is the exact-rational division field of Binary64ModelDefault. Its field decoding, nearest-even rounding, signed-zero handling, special cases, and permitted NaN choice are justified by reference/model-evidence/binary64-boundary.txt.
It remains to establish the narrower fact needed at every source call site. The frozen source in that evidence record has exactly one binary64 division expression: the negative-exponent branch of the ordinary try_fast_path arm. Thus, in every execution of a pursued source subject, either that expression is not reached and no binary64 division result is replaced, or it is reached after the can_use_fast_path guards. In the latter case those guards give \mathit{mantissa}\leq 2^{53} and -22\leq\mathit{exponent}<0, so the negated power-table index is in 1,\ldots,22. Applying Binary64NativeCallDomain to these derived bounds shows that conversion of the mantissa returns a finite, non-NaN numerator and that the selected table entry returns a finite, non-NaN, positive, nonzero divisor. The exact finite-operand, nonzero-divisor clause of Binary64ModelDefault therefore makes ModelF64Div return exactly the source binary64 quotient, including its sign and rounded raw word. Consequently, on every source execution, replacing the bound division has the following local effect only: an executed division returns the same value and the subsequent execution is unchanged, while an execution with no division call is unaffected.
Authored arguments for individual requirements

Requirement: assembly correspondence

The subject is biased_fp_to_float, whose source body only casts the biased exponent, shifts it, ORs it with the mantissa, and calls from_u64_bits; it never invokes binary64 division, as recorded in reference/model-evidence/binary64-boundary.txt. This binding therefore cannot affect the claimed assembled word.

Requirement: classification determinism

This is a mathematical uniqueness statement about the decimal classification relation. That relation performs no source execution and contains no binary64 division, so this operational binding is irrelevant to its classification and parsed-content observations.

Requirement: classification significand digit

This is a mathematical statement about the grammar of a classified numeric lexeme. Its significand-digit observation neither executes the parser nor uses binary64 division, so this binding cannot affect it.

Requirement: classification totality

This is a mathematical exhaustiveness statement for the decimal classification relation on finite byte strings. The relation has no binary64 operation or program execution, so division is absent from the goal's subject.

Requirement: dispatch abstract composition

The common local-replacement fact applies to every actual dispatcher execution relevant to modeling this statement: an execution with no division is unaffected, and any executed division returns exactly its source value. A purely abstract implication over arbitrary components does not invoke this source binding. This application asserts neither that the component contracts are inhabited nor that the source supplies an inhabitant; those are the positive GOAL's own obligations, not premises of this preservation argument.

Requirement: dispatch component compliance

For every actual component execution considered by this statement, the common local-replacement fact preserves the execution: absence of a division call is unaffected, and an executed call returns exactly the same source binary64 value. This establishes only preservation of the component's source behavior; it does not assert that the behavior satisfies, agrees with, or inhabits any contract. Those compliance and call-site claims remain the unchanged positive GOAL obligations.

Requirement: exponent value agreement

This is a mathematical comparison of exact and bounded-accumulation decimal values and their rounding targets. It executes no source code and uses no binary64 division operation, so the binding has no observation in this goal.

Requirement: integer correct or defer

The subject is compute_float. Its source body performs integer table arithmetic and returns a raw BiasedFp; the exact source excerpt in reference/model-evidence/binary64-boundary.txt records that it contains no primitive float division. This binding therefore cannot change either deferral or the returned raw pair.

Requirement: native correct or defer

For every try_fast_path execution, the common exhaustive split applies: if the source makes no binary64 division call this binding is irrelevant, and if it makes the call ModelF64Div returns exactly the executed source quotient. Hence this local replacement preserves the actual None or Some result without assuming that the positive correctness-or-defer conclusion holds.

Requirement: number helper acceptance

The goal's subject is parse_number. Its recorded source body only accepts a complete Decimal returned by parse_partial_number; it has no float type parameter and executes no float operation, including division (reference/model-evidence/binary64-boundary.txt).

Requirement: number helper accumulated value

This goal observes only the Decimal record returned by parse_number. The recorded source boundary shows that this helper has no float type parameter or float operation, so no binary64 division can affect the record or its represented interval (reference/model-evidence/binary64-boundary.txt).

Requirement: number helper record bounds

The relevant execution ends when parse_number returns its Decimal record. As its exact source body in reference/model-evidence/binary64-boundary.txt shows, it invokes no float conversion or arithmetic, hence no binary64 division can affect the record's sign or mantissa bound.

Requirement: number helper rejection

Rejection is decided entirely inside parse_number: the helper returns None unless parse_partial_number consumed the entire slice. The recorded body has no float type parameter or float operation, so this division binding is not reached (reference/model-evidence/binary64-boundary.txt).

Requirement: parser accumulated rounding

For every public-parser execution quantified by this statement, the common local-replacement fact applies without assuming which route the input takes: an execution with no division is unaffected, and any executed division returns exactly its source result. Thus the binding preserves the returned word for the accumulated-value observation without assuming that the observation satisfies the positive GOAL.

Requirement: parser equal target rounding

For every public-parser execution quantified by this conditional statement, the common local-replacement fact applies independently of its route: no-call executions are unaffected, and an executed division returns exactly its source value. The binding therefore preserves the returned raw word to which the equal-target condition is applied, without assuming the bridge conclusion.

Requirement: parser exact rounding

For every public-parser execution in this statement's domain, the common local-replacement fact applies without assuming acceptance or a particular conversion route. Executions with no division are unchanged, and every executed division returns the same source raw word. This preserves the result whose exact-rounding property is stated, but does not establish that property.

Requirement: parser infinity

For every source execution on an infinity literal, without assuming how parse_number or parse_partial_number routes that input, the common local-replacement fact applies. If no division is reached the execution is unaffected; if one is reached it returns exactly its source value. Thus the binding preserves the actual returned result and sign without assuming the positive infinity conclusion.

Requirement: parser invalid rejection

For every source execution on a string outside the stated grammar, without assuming any parse_number or parse_partial_number routing fact, the common local-replacement fact applies. An execution with no division is unaffected, and any division that is reached returns exactly its source value. Hence this binding preserves the actual result or error without assuming the positive rejection conclusion.

Requirement: parser nan acceptance

For every source execution on a NaN literal, without assuming how parse_number or parse_partial_number routes that input, the common local-replacement fact applies. An execution with no division is unaffected, and any executed division returns exactly its source value. This preserves the actual result and its category without assuming acceptance or the positive NaN conclusion.

Requirement: parser non nan results

For every public-parser execution quantified by this statement, the common local-replacement fact applies independently of whether it succeeds or which route it takes. No-call executions are unchanged, and every executed division returns the same source word, hence has the same NaN classification. This preserves the observation without assuming the positive no-spurious-NaNs conclusion.

Requirement: parser numeric acceptance

For every source execution on a numeric literal, the common local-replacement fact applies without assuming that parsing succeeds or which conversion route is selected. If the execution makes no division call it is unaffected; if it makes the call, the binding returns exactly the source quotient. The actual result or error is therefore preserved without assuming numeric acceptance.

Requirement: parser numeric sign

For every public-parser execution in this statement's domain, the common local-replacement fact applies without assuming success or a particular route. Executions without division are unchanged, while an executed division returns the identical source word, including its sign bit. Thus the binding preserves the actual sign observation without assuming the positive sign conclusion.

Requirement: parser selected exponent

For every public-parser execution quantified by this trace statement, the common local-replacement fact applies without assuming that a pair is selected or which route is taken. A no-division execution is unchanged; an executed division returns the same source value and therefore leaves all subsequent control flow and trace observations unchanged. This does not assume the positive exponent-range conclusion.

Requirement: parser selected magnitude sign

For every public-parser execution quantified by this trace statement, the common local-replacement fact applies without assuming that assembly is reached or a pair is selected. Executions without division are unaffected; an executed division returns exactly its source value and preserves later control flow and trace data. This preserves the magnitude-word observation without assuming that its sign bit is clear.

Requirement: parser signed zero

For every public-parser execution in this statement's domain, including any execution whose exact input value is zero, the common local-replacement fact applies without assuming acceptance or a route. A no-call execution is unaffected; an executed division returns the identical source word, including its zero and sign bits. The binding therefore preserves the observed result without assuming the positive signed-zero conclusion.

Requirement: parser totality

For every public-parser execution on every Rust string, the common local-replacement fact applies without assuming termination or a particular route. A no-division execution is unaffected. Whenever division is reached, the binding returns normally with exactly the source quotient, so this local replacement introduces neither a new failure nor changed control flow. This preserves the source execution's termination behavior without asserting the positive totality conclusion.

Requirement: rounding determinism

The goal concerns uniqueness in the mathematical binary64 magnitude-rounding relation for nonnegative reals. It neither runs the source parser nor invokes an arithmetic operation, so this division binding is absent from its subject.

Requirement: rounding totality

The goal is an existence statement in the mathematical binary64 magnitude-rounding relation. It contains no source execution and no binary64 division call, so the binding cannot affect its target witness.

Requirement: slow accumulated rounding

The subject is parse_long_mantissa. Its recorded source body uses decimal-sequence shifts and integer rounding and returns a raw BiasedFp; it contains no primitive float division or other float arithmetic (reference/model-evidence/binary64-boundary.txt). Thus this binding cannot affect its returned pair.

Requirement: special helper infinity

The subject is parse_inf_nan. For an infinity keyword its exact source path selects the infinity constant and conditionally applies negation; it contains no division call, as recorded in reference/model-evidence/binary64-boundary.txt.

Requirement: special helper nan

The subject is parse_inf_nan. For a NaN keyword its exact source path selects the NaN constant and conditionally applies negation; it contains no division call, as recorded in reference/model-evidence/binary64-boundary.txt. This application asserts only the NaN category, not equality of any arithmetic NaN raw word.

Requirement: special helper rejection

The subject is parse_inf_nan; an unrecognized keyword takes its None branch before any special constant or negation is returned. The recorded source body contains no binary64 division on either success or rejection (reference/model-evidence/binary64-boundary.txt).

Recorded review

CorrespondencePass
PreservationVerifierPass

ModelF64Div · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/binary64-boundary.txt

Open file

Primary evidence for the binary64 boundary
==========================================

Scope and identities
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction, the
adapted Rust crate retained in this repository, and the installed toolchain
named by modeling-input/SETUP.md. The probe source is retained at
reference/model-evidence/binary64-probe.rs; no scratch source is required to
reproduce it.

Toolchain executable:
  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
Target:
  x86_64-unknown-linux-gnu
rustc executable SHA-256:
  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
Probe source SHA-256:
  68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
Compiled probe SHA-256:
  f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
Frozen generated.lean SHA-256:
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9
Frozen modeling-input/manifest.json SHA-256:
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2
Approved Binary64ModelDefault.lean SHA-256 at the time of this record:
  03ae48fb631e6242bd21bf95d0481b66acae05f8cab343c7ab279b3c116538a3

Exact reproduction commands
---------------------------

Run from the repository root:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-probe.rs
  B=.trellis/scratch/binary64-probe
  "$R" --version --verbose
  sha256sum "$R"
  sha256sum "$P"
  "$R" --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$B"
  "$B"

Raw output
----------

  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
  rustc_sha256=162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  probe_sha256=68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
  binary_sha256=f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
  target_arch=x86_64
  mantissa_digits=53
  exponent_mask=7ff0000000000000
  mantissa_mask=000fffffffffffff
  nan=7ff8000000000000
  infinity=7ff0000000000000
  neg_infinity=fff0000000000000
  nan_category=Nan
  infinity_category=Infinite
  zero_category=Zero
  subnormal_category=Subnormal
  normal_category=Normal
  from_bits_to_bits=7ff0000000000001
  neg_payload_nan=fff0000000000001
  neg_zero=8000000000000000
  subnormal_tie_to_even_zero=0000000000000000
  subnormal_tie_to_even_two=0000000000000002
  normal_division=3fb999999999999a
  mul_negative_zero=8000000000000000
  div_negative_zero=8000000000000000
  div_negative_infinity=fff0000000000000
  mul_overflow=7ff0000000000000
  mul_zero_infinity_is_nan=true
  div_zero_zero_is_nan=true
  mul_nan_is_nan=true
  cast_2_pow_53=4340000000000000
  cast_2_pow_53_plus_1=4340000000000000

Pinned Rust library sources
---------------------------

The installed sources below belong to the same named toolchain. Their
SHA-256 identities are:

  core/src/primitive_docs.rs
    c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5
  core/src/num/f64.rs
    84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618
  core/src/clone.rs
    23f9cfc80347fde6b8457d46fbf7a2b8d9f34c8c58601b0b6f714ca2f6d1976b

The exact relevant text of core/src/primitive_docs.rs is:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The referenced primitive-f32 documentation supplies the common primitive
floating-point operation rules quoted next:

  /// - −0.0: IEEE 754 floating-point numbers have a bit that indicates their sign, so −0.0 is a
  ///   possible value. For comparison −0.0 = +0.0, but floating-point operations can carry
  ///   the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
  ///   a negative number rounded to a value smaller than a float can represent also produces −0.0.
  /// - [∞](#associatedconstant.INFINITY) and
  ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
  ///   like `1.0 / 0.0`.
  ///
  /// When a primitive operation (addition, subtraction, multiplication, or
  /// division) is performed on this type, the result is rounded according to the
  /// roundTiesToEven direction defined in IEEE 754-2008. That means:
  ///
  /// - The result is the representable value closest to the true value, if there
  ///   is a unique closest representable value.
  /// - If the true value is exactly half-way between two representable values,
  ///   the result is the one with an even least-significant binary digit.
  /// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
  ///   `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
  ///   true value's sign).

The same file explicitly separates arithmetic NaN choice from exact bitwise
operations; its exact relevant text is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.
  ///
  /// The following rules apply when a NaN value is returned from an arithmetic operation:
  /// - The result has a non-deterministic sign.
  /// - The quiet bit and payload are non-deterministically chosen from
  ///   the following set of options:
  ///
  ///   - **Preferred NaN**: The quiet bit is set and the payload is all-zero.
  ///   - **Quieting NaN propagation**: The quiet bit is set and the payload is copied from any input
  ///     operand that is a NaN. If the inputs and outputs do not have the same payload size (i.e., for
  ///     `as` casts), then
  ///     - If the output is smaller than the input, low-order bits of the payload get dropped.
  ///     - If the output is larger than the input, the payload gets filled up with 0s in the low-order
  ///       bits.
  ///   - **Unchanged NaN propagation**: The quiet bit and payload are copied from any input operand
  ///     that is a NaN. If the inputs and outputs do not have the same size (i.e., for `as` casts), the
  ///     same rules as for "quieting NaN propagation" apply, with one caveat: if the output is smaller
  ///     than the input, dropping the low-order bits may result in a payload of 0; a payload of 0 is not
  ///     possible with a signaling NaN (the all-0 significand encodes an infinity) so unchanged NaN
  ///     propagation cannot occur with some inputs.
  ///   - **Target-specific NaN**: The quiet bit is set and the payload is picked from a target-specific
  ///     set of "extra" possible NaN payloads. The set can depend on the input operand values.
  ///     See the table below for the concrete NaNs this set contains on various targets.
  ///
  /// | `target_arch` | Extra payloads possible on this platform |
  /// |---------------|------------------------------------------|
  /// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |

Thus the model's preferred quiet NaN is one permitted result whenever
multiplication or division returns NaN. This does not claim that arbitrary
Rust arithmetic NaNs have those exact bits. By contrast, unary negation and
bit conversion must preserve all non-sign bits exactly, including for every
NaN payload.

The exact relevant declarations in core/src/num/f64.rs are:

  pub const MANTISSA_DIGITS: u32 = 53;
  pub const NAN: f64 = 0.0_f64 / 0.0_f64;
  pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
  pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
  pub const SIGN_MASK: u64 = 0x8000_0000_0000_0000;
  pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;
  pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff;

  pub const fn classify(self) -> FpCategory {
      // We used to have complicated logic here that avoids the simple bit-based tests to work
      // around buggy codegen for x87 targets (see
      // https://github.com/rust-lang/rust/issues/114479). However, some LLVM versions later, none
      // of our tests is able to find any difference between the complicated and the naive
      // version, so now we are back to the naive version.
      let b = self.to_bits();
      match (b & Self::MANTISSA_MASK, b & Self::EXPONENT_MASK) {
          (0, Self::EXPONENT_MASK) => FpCategory::Infinite,
          (_, Self::EXPONENT_MASK) => FpCategory::Nan,
          (0, 0) => FpCategory::Zero,
          (_, 0) => FpCategory::Subnormal,
          _ => FpCategory::Normal,
      }
  }

  pub const fn to_bits(self) -> u64 {
      // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
      unsafe { mem::transmute(self) }
  }

  pub const fn from_bits(v: u64) -> Self {
      // It turns out the safety issues with sNaN were overblown! Hooray!
      // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
      unsafe { mem::transmute(v) }
  }

The exact scalar clone body in core/src/clone.rs is:

  impl const Clone for $t {
      #[inline(always)]
      fn clone(&self) -> Self {
          *self
      }
  }

Frozen adapted source
---------------------

The relevant retained source file hashes are:

  crate/traits.rs
    9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  crate/dec2flt/decimal.rs
    633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb
  crate/dec2flt/lemire.rs
    fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1
  crate/dec2flt/slow.rs
    93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485

The dispatcher excerpts below are reproduced from the identified file by
running these commands from the repository root:

  sha256sum crate/dec2flt/mod.rs
  sed -n '354,403p' crate/dec2flt/mod.rs
  sed -n '405,422p' crate/dec2flt/mod.rs
  sed -n '465,475p' crate/dec2flt/mod.rs
  sed -n '506,523p' crate/dec2flt/mod.rs

Exact constant and bit-conversion excerpt from crate/traits.rs:

  impl Float for f64 {
      type Int = u64;

      const INFINITY: Self = Self::INFINITY;
      const NEG_INFINITY: Self = Self::NEG_INFINITY;
      const NAN: Self = Self::NAN;
      // Bit-identical to the upstream `-f64::NAN`, without the unsupported
      // compile-time float negation.
      const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);

      const BITS: u32 = 64;
      const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
      const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
      const SIG_MASK: Self::Int = Self::MANTISSA_MASK;

      fn to_bits(self) -> Self::Int {
          self.to_bits()
      }

      fn classify(self) -> FpCategory {
          self.classify()
      }
  }

  impl FloatExt for f64 {
      #[inline]
      fn from_u64_bits(v: u64) -> Self {
          f64::from_bits(v)
      }

Exact derived-constant defaults from crate/traits.rs:

  /// The number of bits in the significand, *excluding* the hidden bit.
  const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;

  /// Number of bits in the exponent.
  const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

  /// The saturated (maximum bitpattern) value of the exponent, i.e. the infinite
  /// representation.
  ///
  /// This shifted fully right, use `EXP_MASK` for the shifted value.
  const EXP_SAT: u32 = (1 << Self::EXP_BITS) - 1;

  /// Signed version of `EXP_SAT` since we convert a lot.
  const INFINITE_POWER: i32 = Self::EXP_SAT as i32;

  /// The exponent bias value. This is also the maximum value of the exponent.
  const EXP_BIAS: u32 = Self::EXP_SAT >> 1;

  /// Minimum exponent value of normal values.
  const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Together with the f64-instance lines `BITS = 64` and
`SIG_TOTAL_BITS = Self::MANTISSA_DIGITS` in the preceding excerpt, these
defaults derive SIG_BITS, EXP_MIN, and INFINITE_POWER from the primitive
mantissa-digit constant rather than introducing independent parameters.

Exact asserted-conversion excerpt from crate/dec2flt/mod.rs:

  #[inline]
  // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
  // `charon::opaque` makes this entire asserted conversion external: both the
  // unchanged `debug_assert!` and the unchanged cast below are in the opaque
  // body. The callers, their fast-path guards, and their surrounding
  // computation remain mechanically visible. A corresponding model binding
  // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
  // exact binary64 conversion at or below that bound.
  #[charon::opaque]
  fn from_u64(v: u64) -> Self {
      debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
      v as _
  }

Here MAX_MANTISSA_FAST_PATH is the retained default 1 << 53.  The attribute is
attached to the function item, so the generated external stands for the whole
method, not merely the cast.  In the enabled-debug configuration the source
succeeds only when v <= 2^53; above it the assertion fails before the cast. On
the successful branch every integer is exactly representable, so the source
cast and the model rounder return the same word.

Exact power-table and assembly excerpts from crate/dec2flt/mod.rs:

  /// Maximum mantissa for the fast-path (`1 << 53` for f64).
  const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;

  const MAX_EXPONENT_FAST_PATH: i64 = 22;
  const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
  const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;

  fn pow10_fast_path(exponent: usize) -> Self {
      // These bit patterns are exactly the source table's rounded binary64
      // literals.  The match is the same masked lookup; it merely keeps float
      // constants out of Aeneas's unsupported constant interpreter.
      match exponent & 31 {
          0 => f64::from_bits(0x3FF0_0000_0000_0000),
          1 => f64::from_bits(0x4024_0000_0000_0000),
          2 => f64::from_bits(0x4059_0000_0000_0000),
          3 => f64::from_bits(0x408F_4000_0000_0000),
          4 => f64::from_bits(0x40C3_8800_0000_0000),
          5 => f64::from_bits(0x40F8_6A00_0000_0000),
          6 => f64::from_bits(0x412E_8480_0000_0000),
          7 => f64::from_bits(0x4163_12D0_0000_0000),
          8 => f64::from_bits(0x4197_D784_0000_0000),
          9 => f64::from_bits(0x41CD_CD65_0000_0000),
          10 => f64::from_bits(0x4202_A05F_2000_0000),
          11 => f64::from_bits(0x4237_4876_E800_0000),
          12 => f64::from_bits(0x426D_1A94_A200_0000),
          13 => f64::from_bits(0x42A2_309C_E540_0000),
          14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
          15 => f64::from_bits(0x430C_6BF5_2634_0000),
          16 => f64::from_bits(0x4341_C379_37E0_8000),
          17 => f64::from_bits(0x4376_3457_85D8_A000),
          18 => f64::from_bits(0x43AB_C16D_674E_C800),
          19 => f64::from_bits(0x43E1_58E4_6091_3D00),
          20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
          21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
          22 => f64::from_bits(0x4480_F0CF_064D_D592),
          _ => f64::from_bits(0),
      }
  }

  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

Exact native-call excerpt from crate/dec2flt/decimal.rs:

  fn can_use_fast_path<F: Lemire>(&self) -> bool {
      F::MIN_EXPONENT_FAST_PATH <= self.exponent
          && self.exponent <= F::MAX_EXPONENT_DISGUISED_FAST_PATH
          && self.mantissa <= F::MAX_MANTISSA_FAST_PATH
          && !self.many_digits
  }

  if !self.can_use_fast_path::<F>() {
      return None;
  }

  let value = if self.exponent <= F::MAX_EXPONENT_FAST_PATH {
      // normal fast path
      let value = F::from_u64(self.mantissa);
      if self.exponent < 0 {
          // Explicit trait calls preserve Rust arithmetic and resolve
          // the generic output type that Charon leaves ambiguous.
          core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
      } else {
          core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
      }
  } else {
      // disguised fast path
      let shift = self.exponent - F::MAX_EXPONENT_FAST_PATH;
      let mantissa = self.mantissa.checked_mul(INT_POW10[shift as usize])?;
      if mantissa > F::MAX_MANTISSA_FAST_PATH {
          return None;
      }
      core::ops::Mul::mul(
          F::from_u64(mantissa),
          F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
      )
  };

  if self.negative {
      Some(core::ops::Neg::neg(value))
  } else {
      Some(value)
  }

The preceding can_use_fast_path body, together with
MAX_MANTISSA_FAST_PATH = 1 << SIG_TOTAL_BITS and SIG_TOTAL_BITS = 53 for f64,
requires the exponent to lie between -22 and 37, the input mantissa to be at
most 2^53, and many_digits to be false. Consequently an ordinary arithmetic
call has a from_u64 operand in 0..=2^53. In its negative-exponent arm,
`-self.exponent` lies in 1..=22; in its nonnegative arm, `self.exponent` lies
in 0..=22. The disguised branch checks its multiplied mantissa against 2^53
before from_u64 and uses table index 22. The paired statement
Binary64NativeCallDomain does not assert this source reachability. It says
conditionally that a from_u64 argument at most 2^53 succeeds with a finite,
non-NaN word and that a table index at most 22 succeeds with a positive,
nonzero, finite, non-NaN word. Applying that conditional statement to the
guards just derived establishes those properties for the actual ordinary and
disguised calls, and in particular establishes that every executed divisor is
nonzero.

Exact special-value excerpt from crate/dec2flt/parse.rs:

  let float = match (register, len) {
      (INF_3, 3) => F::INFINITY,
      (INF_8, 8) => F::INFINITY,
      (NAN, 3) => F::NAN,
      _ => return None,
  };

  if negative { Some(-float) } else { Some(float) }

Thus the executed special route is INFINITY or NAN followed by conditional
negation; it does not select NEG_INFINITY or NEG_NAN directly.

The number helper has the exact source body

  pub fn parse_number(s: &[u8]) -> Option<Decimal> {
      if let Some((float, rest)) = parse_partial_number(s) {
          if rest == s.len() {
              return Some(float);
          }
      }
      None
  }

It returns only the Decimal produced by parse_partial_number; there is no
float type parameter or float operation at this boundary.

Exact dispatcher excerpts from crate/dec2flt/mod.rs
---------------------------------------------------

The entry of `dec2flt_with_trace` strips at most one leading sign, rejects
empty and sign-only inputs, calls `parse_number` on the unsigned body, and
calls `parse_inf_nan` only when `parse_number` returns `None`:

  /// Run the actual dispatcher while retaining its approved internal observations.
  pub fn dec2flt_with_trace<
      'a,
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {
          return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
      };
      let negative = c == b'-';
      if c == b'-' || c == b'+' {
          body = &body[1..];
      }
      if body.is_empty() {
          return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
      }

      let parse_number_result = parse_number(body);
      let parsed = match parse_number_result {
          Some(r) => r,
          None => {
              let parse_inf_nan_result = parse_inf_nan(body, negative);
              return match parse_inf_nan_result {
                  Some(value) => (
                      Ok(value),
                      Dec2FltTrace::Special {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                          result: value,
                      },
                  ),
                  None => (
                      Err(pfe_invalid()),
                      Dec2FltTrace::Invalid {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                      },
                  ),
              };
          }
      };

Thus every `Err` arm shown here returns before `parsed` is available and before
the native, integer, slow, assembly, or final-negation code below it can run.
On a numeric result, the lexical sign is copied into the parsed record before
the native attempt, whose successful result also returns before raw-pair
assembly:

      let mut num = parsed;
      num.negative = negative;
      if !cfg!(feature = "optimize_for_size") {
          let fast_path_result = num.try_fast_path::<F>();
          if let Some(value) = fast_path_result {
              return (
                  Ok(value),
                  Dec2FltTrace::FastPath {
                      body,
                      negative,
                      parse_number_result,
                      fast_path_input: num,
                      fast_path_result,
                      result: value,
                  },
              );
          }
      }

If the native attempt does not return, the selected raw pair is assembled and
the source then conditionally negates it according to the lexical-sign flag:

      let selected_pair = fp;
      // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
      // it neither changes the selected pair nor introduces a new branch or call.
      let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
      let assembly_result = biased_fp_to_float::<F>(fp);
      let lexical_sign_applied = num.negative;
      let result = if lexical_sign_applied {
          core::ops::Neg::neg(assembly_result)
      } else {
          assembly_result
      };

The public `dec2flt` executes that same route and returns its result projection;
it does not reimplement or reorder any parsing or float operation:

  /// Converts a decimal string into a floating point number.
  #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
  pub fn dec2flt<
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &str,
  ) -> Result<F, ParseFloatError> {
      // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
      // clause admits exactly the same instances and lets Charon resolve the
      // explicit, source-equivalent final negation.
      // The public function is now exactly the result projection of the single
      // instrumented implementation.  No conversion step is duplicated, and
      // discarding the trace cannot affect Rust evaluation or the returned bits.
      dec2flt_with_trace::<F>(s).0
  }

The integer-tier helper has the source type and exact executable excerpts
below (long explanatory comments are elided). In particular it returns a raw
BiasedFp and contains no from_u64 cast, primitive float multiplication,
division, negation, or from_bits call:

  pub fn compute_float<F: Float>(q: i64, mut w: u64) -> BiasedFp {
      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);
      let fp_error = BiasedFp::zero_pow2(-1);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if w == 0 || q < F::SMALLEST_POWER_OF_TEN as i64 {
          return fp_zero;
      } else if q > F::LARGEST_POWER_OF_TEN as i64 {
          return fp_inf;
      }
      // Normalize our significant digits, so the most-significant bit is set.
      let lz = w.leading_zeros();
      w <<= lz;
      let (lo, hi) = compute_product_approx(q, w, F::SIG_BITS as usize + 3);
      if lo == 0xFFFF_FFFF_FFFF_FFFF {
          let inside_safe_exponent = (q >= -27) && (q <= 55);
          if !inside_safe_exponent {
              return fp_error;
          }
      }
      let upperbit = (hi >> 63) as i32;
      let mut mantissa = hi >> (upperbit + 64 - F::SIG_BITS as i32 - 3);
      let mut power2 = power(q as i32) + upperbit - lz as i32 - F::EXP_MIN + 1;
      if power2 <= 0 {
          if -power2 + 1 >= 64 {
              // Have more than 64 bits below the minimum exponent, must be 0.
              return fp_zero;
          }
          // Have a subnormal value.
          mantissa >>= -power2 + 1;
          mantissa += mantissa & 1;
          mantissa >>= 1;
          power2 = (mantissa >= (1_u64 << F::SIG_BITS)) as i32;
          return BiasedFp { m: mantissa, p_biased: power2 };
      }
      // Need to handle rounding ties. Normally, we need to round up,
      // but if we fall right in between and we have an even basis, we
      // need to round down.
      if lo <= 1
          && q >= F::MIN_EXPONENT_ROUND_TO_EVEN as i64
          && q <= F::MAX_EXPONENT_ROUND_TO_EVEN as i64
          && mantissa & 0b11 == 0b01
          && (mantissa << (upperbit + 64 - F::SIG_BITS as i32 - 3)) == hi
      {
          // Zero the lowest bit, so we don't round up.
          mantissa &= !1_u64;
      }
      // Round-to-even, then shift the significant digits into place.
      mantissa += mantissa & 1;
      mantissa >>= 1;
      if mantissa >= (2_u64 << F::SIG_BITS) {
          // Rounding up overflowed, so the carry bit is set. Set the
          // mantissa to 1 (only the implicit, hidden bit is set) and
          // increase the exponent.
          mantissa = 1_u64 << F::SIG_BITS;
          power2 += 1;
      }
      // Zero out the hidden bit.
      mantissa &= !(1_u64 << F::SIG_BITS);
      if power2 >= F::INFINITE_POWER {
          // Exponent is above largest normal value, must be infinite.
          return fp_inf;
      }
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact slow-tier source body from crate/dec2flt/slow.rs:

  pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {
      const MAX_SHIFT: usize = 60;
      const NUM_POWERS: usize = 19;
      const POWERS: [u8; 19] =
          [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];

      let get_shift = |n| {
          if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }
      };

      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);

      let mut d = parse_decimal_seq(s);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if d.num_digits == 0 || d.decimal_point < -324 {
          return fp_zero;
      } else if d.decimal_point >= 310 {
          return fp_inf;
      }
      let mut exp2 = 0_i32;
      let mut loop_result = None;
      // Shift right toward (1/2 ... 1].
      while d.decimal_point > 0 && loop_result.is_none() {
          let n = d.decimal_point as usize;
          let shift = get_shift(n);
          d.right_shift(shift);
          if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_zero);
          } else {
              exp2 += shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // Shift left toward (1/2 ... 1].
      while d.decimal_point <= 0 && loop_result.is_none() {
          let shift = if d.decimal_point == 0 {
              match d.digits[0] {
                  digit if digit >= 5 => break,
                  0 | 1 => 2,
                  _ => 1,
              }
          } else {
              get_shift((-d.decimal_point) as _)
          };
          d.left_shift(shift);
          if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_inf);
          } else {
              exp2 -= shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
      exp2 -= 1;
      while F::EXP_MIN > exp2 {
          let mut n = (F::EXP_MIN - exp2) as usize;
          if n > MAX_SHIFT {
              n = MAX_SHIFT;
          }
          d.right_shift(n);
          exp2 += n as i32;
      }
      if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
          return fp_inf;
      }
      // Shift the decimal to the hidden bit, and then round the value
      // to get the high mantissa+1 bits.
      d.left_shift(F::SIG_BITS as usize + 1);
      let mut mantissa = d.round();
      if mantissa >= (1_u64 << (F::SIG_BITS + 1)) {
          // Rounding up overflowed to the carry bit, need to
          // shift back to the hidden bit.
          d.right_shift(1);
          exp2 += 1;
          mantissa = d.round();
          if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
              return fp_inf;
          }
      }
      let mut power2 = exp2 - F::EXP_MIN + 1;
      if mantissa < (1_u64 << F::SIG_BITS) {
          power2 -= 1;
      }
      // Zero out all the bits above the explicit mantissa bits.
      mantissa &= (1_u64 << F::SIG_BITS) - 1;
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact final numeric-sign excerpt from crate/dec2flt/mod.rs:

  let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
  let assembly_result = biased_fp_to_float::<F>(fp);
  let lexical_sign_applied = num.negative;
  let result = if lexical_sign_applied {
      core::ops::Neg::neg(assembly_result)
  } else {
      assembly_result
  };

Thus a numeric execution that reaches the integer/slow selection route
assembles its selected pair with from_bits through biased_fp_to_float and only
then conditionally negates it. A successful try_fast_path returns earlier and
does not perform this assembly. compute_float and parse_long_mantissa produce
raw BiasedFp pairs and do not call from_u64, primitive float multiplication,
division, negation, or from_bits; they do, however, execute constants derived
from SIG_TOTAL_BITS before producing those pairs.

Retained structural-boundary evidence
-------------------------------------

Several adjacent structural bindings cite this same evidence record. Their
pinned library source identities are:

  core/src/num/mod.rs
    f0820f9dfb94999440c8cb4a349736fa21df7e5668e19b6b49e016ff67c05ce3
  core/src/option.rs
    7cf61204b05d98a95bc2e322d5fbfc1f4f91505109971917d9a7fb47151c50e6
  core/src/slice/mod.rs
    354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840
  core/src/str/mod.rs
    284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78

Exact ASCII-digit body from core/src/num/mod.rs:

  pub const fn is_ascii_digit(&self) -> bool {
      matches!(*self, b'0'..=b'9')
  }

Exact Option control-flow bodies from core/src/option.rs:

  fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
      match self {
          Some(v) => ControlFlow::Continue(v),
          None => ControlFlow::Break(None),
      }
  }

  fn from_residual(residual: Option<convert::Infallible>) -> Self {
      match residual {
          None => None,
      }
  }

Exact slice observation bodies from core/src/slice/mod.rs:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

Exact string-byte body from core/src/str/mod.rs:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }
reference/model-evidence/binary64-probe.rs

Open file

#![feature(float_masks)]

use std::num::FpCategory;

fn bits(label: &str, value: f64) {
    println!("{label}={:016x}", value.to_bits());
}

fn main() {
    println!("target_arch={}", std::env::consts::ARCH);
    println!("mantissa_digits={}", f64::MANTISSA_DIGITS);
    println!("exponent_mask={:016x}", f64::EXPONENT_MASK);
    println!("mantissa_mask={:016x}", f64::MANTISSA_MASK);
    bits("nan", f64::NAN);
    bits("infinity", f64::INFINITY);
    bits("neg_infinity", f64::NEG_INFINITY);

    for (label, value) in [
        ("nan_category", f64::NAN),
        ("infinity_category", f64::INFINITY),
        ("zero_category", 0.0),
        ("subnormal_category", f64::from_bits(1)),
        ("normal_category", 1.0),
    ] {
        let category = match value.classify() {
            FpCategory::Nan => "Nan",
            FpCategory::Infinite => "Infinite",
            FpCategory::Zero => "Zero",
            FpCategory::Subnormal => "Subnormal",
            FpCategory::Normal => "Normal",
        };
        println!("{label}={category}");
    }

    let payload_nan_word = 0x7ff0_0000_0000_0001_u64;
    println!(
        "from_bits_to_bits={:016x}",
        f64::from_bits(payload_nan_word).to_bits()
    );
    bits("neg_payload_nan", -f64::from_bits(payload_nan_word));
    bits("neg_zero", -0.0);

    bits("subnormal_tie_to_even_zero", f64::from_bits(1) * 0.5);
    bits("subnormal_tie_to_even_two", f64::from_bits(3) * 0.5);
    bits("normal_division", 1.0 / 10.0);
    bits("mul_negative_zero", -0.0 * 2.0);
    bits("div_negative_zero", -1.0 / f64::INFINITY);
    bits("div_negative_infinity", 1.0 / -0.0);
    bits("mul_overflow", f64::MAX * (1.0 + f64::EPSILON));
    println!("mul_zero_infinity_is_nan={}", (0.0 * f64::INFINITY).is_nan());
    println!("div_zero_zero_is_nan={}", (0.0_f64 / 0.0_f64).is_nan());
    println!("mul_nan_is_nan={}", (f64::NAN * 1.0).is_nan());

    bits("cast_2_pow_53", (1_u64 << 53) as f64);
    bits("cast_2_pow_53_plus_1", ((1_u64 << 53) + 1) as f64);
}
Assumptions / kernel axioms
  • Classical.choice
  • Quot.sound
  • propext

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (32)
All 32 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourceTablet/model-support.json
Kindopaque external binding
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:090c7e07ff2c70e7fa9e3afeb3fae23146b6aacbeedb6887a6d4e224a7d726eb
Preservation current fingerprintpreservation-v1:090c7e07ff2c70e7fa9e3afeb3fae23146b6aacbeedb6887a6d4e224a7d726eb
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"7fa348acfaef51e50ae39f618bbf92c23f7094c6e1bfb8416bae87d57b1aa712","lean_semantic_closure":"ea40a149047fde89ae7bb6a18d3dde67b92ee2c77845abb7c0be8722ee33bf31","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","Binary64ModelDefault":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","Binary64ModelDefault","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence current fingerprint{"own_tex":"7fa348acfaef51e50ae39f618bbf92c23f7094c6e1bfb8416bae87d57b1aa712","lean_semantic_closure":"ea40a149047fde89ae7bb6a18d3dde67b92ee2c77845abb7c0be8722ee33bf31","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","Binary64ModelDefault":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","Binary64ModelDefault","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "f7212c0215452e51c38f8addf1727995f16b4183bfba2e2b1e64abffa22f3bf7",
    "dep_statement_hashes": {
      "Binary64ModelDefault": "be5dcc4afe23616ca8fd1d15d30fbbe4ee2621d68be3341b8e74a66e6dcd736f",
      "Binary64NativeCallDomain": "5b06c401ea7b8fe802a4cae40bcf11c5e438e342f3284a9e27ea421e01cb3642"
    },
    "combined_sound_fp": "preservation-v1:090c7e07ff2c70e7fa9e3afeb3fae23146b6aacbeedb6887a6d4e224a7d726eb"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Exact source record
{
  "name": "F64.Insts.CoreOpsArithDivF64F64.div",
  "extracted_signature": ": F64 → F64 → Result F64",
  "rust_symbol": "core::ops::arith::{impl core::ops::arith::Div<f64, f64> for f64}::div",
  "raw_declaration_sha256": "1ebb67b412d89328acb4c5dd53168e84fdf26be6cbe1ef49f5a27edbd84ada36",
  "node": "ModelF64Div",
  "declaration": "dec2flt_model.ModelF64Div"
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/binary64-boundary.txt",
    "sha256": "fa45c924747337e8d6f84a19fe9e83fb9b33c73434887c0cf57c062533f51fe1",
    "cited_by": [
      "Tablet/ModelF64Div.tex",
      "Tablet/model-support.json"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-probe.rs",
    "sha256": "68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e",
    "cited_by": [
      "reference/model-evidence/binary64-boundary.txt"
    ]
  }
]

core::ops::arith::{impl core::ops::arith::Neg<f64> for f64}::neg

Inspect related source (1)

Related source and models come from the extraction records and declared dependencies.

Rust itemcore::ops::arith::{impl core::ops::arith::Neg<f64> for f64}::neg
Recorded source/rustc/library/core/src/ops/arith.rs
Lines719:12–719:30

The related-source link includes this operation’s Rust standard-library implementation.

Opaque extraction signature
: F64 → Result F64
Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Tablet.Binary64ModelDefault
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelF64Neg]
def ModelF64Neg : F64 -> Result F64 :=
-- BODY
  Binary64ModelDefault.neg
end dec2flt_model

Why this model is faithful

Definition

\mathsf{ModelF64Neg}(x) successfully returns x with raw bit 63 toggled.

Preservation argument

Claim

For every binary64 word, including NaNs, this binding agrees with source negation by toggling exactly sign bit 63.

Proof

The frozen core source instantiates its scalar Neg implementation for f64, and that implementation's method is exactly fn neg(self) { -self }. The frozen extraction identifies F64.Insts.CoreOpsArithNegF64.neg with this exact Rust method, and the support manifest binds that external to this definition. These source, extraction, and binding identities, with their hashes, are recorded in reference/model-evidence/binary64-negation.txt.
For the operation's full word-level meaning, the frozen parser states that negation flips the sign bit in all edge cases, while the pinned primitive documentation guarantees that unary - preserves every other bit, including every NaN payload bit. The same evidence record retains a same-rustc, same-target symbolic probe whose input is an arbitrary u64 word and whose body applies that concrete trait method to f64::from_bits(w) before to_bits. Its optimized assembly loads 0x8000000000000000 and returns its xor with the symbolic input, with no branch or input restriction. Hence the result is w\mathbin{\mathsf{xor}}2^{63} for all 2^{64} words, including every signaling and quiet NaN payload. The definition is the neg field of Binary64ModelDefault, which returns exactly that xor word in ok; therefore it agrees extensionally with the extracted source operation on the entire modeled carrier.
Authored arguments for individual requirements

Requirement: assembly correspondence

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification significand digit

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch abstract composition

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch component compliance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: exponent value agreement

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: integer correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: native correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper accumulated value

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper record bounds

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser equal target rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser exact rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser invalid rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser nan acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser non nan results

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected exponent

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected magnitude sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser signed zero

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: slow accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper nan

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Recorded review

CorrespondencePass
PreservationVerifierPass

ModelF64Neg · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/binary64-negation-probe.rs

Open file

#![no_std]
#![crate_type = "lib"]

use core::ops::Neg;

#[no_mangle]
pub extern "C" fn neg_f64_trait_bits(w: u64) -> u64 {
    <f64 as Neg>::neg(f64::from_bits(w)).to_bits()
}
reference/model-evidence/binary64-negation.txt

Open file

Primary evidence for binary64 trait negation
============================================

Scope and conclusion
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction and the
nightly-2026-06-01 toolchain fixed by modeling-input/SETUP.md and
modeling-input/manifest.json.  It establishes the following statement for the
specific extracted Rust operation bound to ModelF64Neg:

  For every u64 word w, including every signaling or quiet NaN payload,
  to_bits(<f64 as core::ops::Neg>::neg(f64::from_bits(w)))
  equals w XOR 0x8000000000000000.

Thus precisely bit 63 is toggled and every other bit is preserved.  This is a
universal symbolic result, not an inference from finitely many test inputs.

Pinned identities
-----------------

The following command was run from the repository root.  RROOT is the source
tree installed with the configured compiler.

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  RROOT=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library
  sha256sum "$R" \
    "$RROOT/core/src/ops/arith.rs" \
    "$RROOT/core/src/primitive_docs.rs" \
    crate/dec2flt/mod.rs upstream/dec2flt/mod.rs \
    generated.lean Tablet/model-support.json \
    modeling-input/tool-identities.json \
    reference/model-evidence/binary64-negation-probe.rs

Raw output:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  596368a6b3e7e16251f13ec80344f170e13517eb927ceaa9e3d4c7a1fa3b8ae0  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/arith.rs
  c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/primitive_docs.rs
  ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d  crate/dec2flt/mod.rs
  7198e238c554b692405537a446b3526ad66805ec2900cd0e299f10c51402a44a  upstream/dec2flt/mod.rs
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9  generated.lean
  c099ae8478fe2cea91a3f82f51a5d3369270ded2bc08a7596ba8cca0c8382e87  Tablet/model-support.json
  68fc7ab89dac4e5389a286b36d919fde5481b2c5673fc7006c7f693afd6ceedf  modeling-input/tool-identities.json
  268c01d8621efcf8e3771004f3b6f1f4c390f8fb133eb188540f67c7848342e5  reference/model-evidence/binary64-negation-probe.rs

modeling-input/tool-identities.json records the same rustc path and SHA-256.
The compiler reports:

  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

Concrete core implementation
----------------------------

The following exact excerpt is core/src/ops/arith.rs:709-728 in the source
whose SHA-256 is 596368a6b3e7e16251f13ec80344f170e13517eb927ceaa9e3d4c7a1fa3b8ae0:

  macro_rules! neg_impl {
      ($($t:ty)*) => ($(
          #[stable(feature = "rust1", since = "1.0.0")]
          #[rustc_const_unstable(feature = "const_ops", issue = "143802")]
          impl const Neg for $t {
              type Output = $t;

              #[inline]
              #[track_caller]
              #[rustc_inherit_overflow_checks]
              fn neg(self) -> $t { -self }
          }

          forward_ref_unop! { impl Neg, neg for $t,
          #[stable(feature = "rust1", since = "1.0.0")]
          #[rustc_const_unstable(feature = "const_ops", issue = "143802")] }
      )*)
  }

  neg_impl! { isize i8 i16 i32 i64 i128 f16 f32 f64 f128 }

The macro invocation explicitly includes f64.  Its expansion is therefore the
concrete `impl Neg for f64`, with `Output = f64`, whose method body is the
primitive expression `-self`.

Frozen parser statement and primitive guarantee
------------------------------------------------

The adapted frozen parser and supplied upstream parser have identical text at
dec2flt/mod.rs:20-22.  Their complete-file hashes are pinned above.  The exact
three lines are:

  //! First, we ignore signs. Or rather, we remove it at the very beginning of the conversion
  //! process and re-apply it at the very end. This is correct in all edge cases since IEEE
  //! floats are symmetric around zero, negating one simply flips the first bit.

The installed primitive documentation is pinned above by SHA-256
c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5.
At primitive_docs.rs:1369-1375 it identifies f64 as binary64 and directs the
reader to the f32 documentation for the common floating-point rules:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The exact common rule at primitive_docs.rs:1256-1260 is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.

This rule expressly covers unary negation and bit conversion, and expressly
distinguishes them from arithmetic NaN production.  It therefore preserves the
quiet/signaling bit and every payload bit for NaNs as well as all non-sign bits
for finite values, zeros, and infinities.  The parser statement identifies the
permitted sign-bit change as an actual flip in all edge cases.

Extraction and support binding
------------------------------

The frozen generated.lean, pinned above, contains this exact declaration and
trait implementation record:

  /-- [core::ops::arith::{impl core::ops::arith::Neg<f64> for f64}::neg]:
      Source: '/rustc/library/core/src/ops/arith.rs', lines 719:12-719:30
      Name pattern: [core::ops::arith::{core::ops::arith::Neg<f64, f64>}::neg]
      Visibility: public -/
  @[rust_fun "core::ops::arith::{core::ops::arith::Neg<f64, f64>}::neg"]
  axiom F64.Insts.CoreOpsArithNegF64.neg : F64 → Result F64

  /-- Trait implementation: [core::ops::arith::{impl core::ops::arith::Neg<f64> for f64}]
      Source: '/rustc/library/core/src/ops/arith.rs', lines 713:8-713:29
      Name pattern: [core::ops::arith::Neg<f64, f64>] -/
  @[reducible, rust_trait_impl "core::ops::arith::Neg<f64, f64>"]
  def F64.Insts.CoreOpsArithNegF64 : core.ops.arith.Neg F64 F64 := {
    neg := F64.Insts.CoreOpsArithNegF64.neg
  }

Thus the extracted external is the same f64 macro expansion and method body
identified above, not an abstract or different negation operation.  Running
`python3 .trellis/scripts/pv_modeling.py inspect-native "$PWD"` and selecting
that declaration gives the following raw inventory fields:

  name: F64.Insts.CoreOpsArithNegF64.neg
  extracted_signature: : F64 → Result F64
  rust_symbol: core::ops::arith::{impl core::ops::arith::Neg<f64> for f64}::neg
  raw_declaration_sha256: bbf93f24bd7cfbc72e47e8bb3a9acc6641df939ad6afafd9ba02c81fe27f7ed0

The raw declaration hash is independently reproduced after that inspection by:

  I=$(ls -1t .trellis/scratch/inspect-native-*.json | head -n 1)
  jq -j '.. | objects | select(.name? == "F64.Insts.CoreOpsArithNegF64.neg") | .source_utf8' "$I" | sha256sum

Raw output:

  bbf93f24bd7cfbc72e47e8bb3a9acc6641df939ad6afafd9ba02c81fe27f7ed0  -

Tablet/model-support.json, whose complete-file hash is pinned above, copies all
four identity fields unchanged and binds this external to the model definition:

  {
    "name": "F64.Insts.CoreOpsArithNegF64.neg",
    "extracted_signature": ": F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Neg<f64> for f64}::neg",
    "raw_declaration_sha256": "bbf93f24bd7cfbc72e47e8bb3a9acc6641df939ad6afafd9ba02c81fe27f7ed0",
    "node": "ModelF64Neg",
    "declaration": "dec2flt_model.ModelF64Neg"
  }

Symbolic same-toolchain probe
-----------------------------

The retained probe source is:

  #![no_std]
  #![crate_type = "lib"]

  use core::ops::Neg;

  #[no_mangle]
  pub extern "C" fn neg_f64_trait_bits(w: u64) -> u64 {
      <f64 as Neg>::neg(f64::from_bits(w)).to_bits()
  }

The argument is an arbitrary symbolic u64.  The qualified call forces the same
`Neg for f64` trait method identified by the core source and extraction.  The
following exact commands use the extraction's compiler and target and retain
both optimized LLVM IR and assembly in the worker scratch directory:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-negation-probe.rs
  IR=.trellis/scratch/binary64-negation-probe.ll
  ASM=.trellis/scratch/binary64-negation-probe.s
  "$R" --version --verbose
  "$R" --edition=2021 --crate-type=lib --target x86_64-unknown-linux-gnu -C opt-level=3 --emit=llvm-ir "$P" -o "$IR"
  "$R" --edition=2021 --crate-type=lib --target x86_64-unknown-linux-gnu -C opt-level=3 --emit=asm "$P" -o "$ASM"
  sha256sum "$R" "$P" "$IR" "$ASM"
  cat "$IR"
  cat "$ASM"

Raw hash output:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  268c01d8621efcf8e3771004f3b6f1f4c390f8fb133eb188540f67c7848342e5  reference/model-evidence/binary64-negation-probe.rs
  7bbd38648c49de5770cd6716a5556f57ce7935b8cc36cf4077f15d9aceae6ca3  .trellis/scratch/binary64-negation-probe.ll
  1b5789b02e9ece231d61a01b1b8b851b4109ea404f30d0b7d546221d1aaaa425  .trellis/scratch/binary64-negation-probe.s

Raw optimized LLVM IR function:

  define noundef i64 @neg_f64_trait_bits(i64 noundef %w) unnamed_addr #0 {
  start:
    %_3 = bitcast i64 %w to double
    %_2 = fneg double %_3
    %_0 = bitcast double %_2 to i64
    ret i64 %_0
  }

Raw optimized x86_64 assembly function:

  neg_f64_trait_bits:
          .cfi_startproc
          movabsq $-9223372036854775808, %rax
          xorq    %rdi, %rax
          retq

Under the selected x86_64 C ABI, the symbolic input w arrives in %rdi and the
u64 result is returned in %rax.  The loaded signed decimal constant
-9223372036854775808 has u64 bit pattern 0x8000000000000000, with bit 63 set
and every other bit clear.  The emitted `xorq %rdi, %rax` therefore returns
w XOR 0x8000000000000000.  There is no branch, floating-point exceptional
case, or input precondition in the emitted function.

Universal preservation conclusion
---------------------------------

The core macro and f64 instantiation connect the trait method to primitive
unary `-`; generated.lean and model-support.json connect that exact method to
ModelF64Neg.  The parser source says the operation flips the sign bit in all
edge cases, while the primitive guarantee says every non-sign bit is preserved,
including the quiet/signaling and payload bits of NaNs.  Finally, the symbolic
same-compiler/same-target probe makes the exact transformation explicit as XOR
with the bit-63 mask for its arbitrary u64 argument.

Because f64::from_bits accepts every one of the 2^64 u64 words and to_bits
returns the resulting raw word, the symbolic input covers the entire modeled
F64 carrier.  Consequently the source result for every word is exactly the
model package's `ok` result containing that word with bit 63 toggled.  This
includes both signs of zero and infinity, every finite/subnormal word, and
every possible NaN payload without canonicalization or quieting.
Assumptions / kernel axioms
  • Classical.choice
  • Quot.sound
  • propext

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (32)
All 32 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourceTablet/model-support.json
Kindopaque external binding
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:8256e97f497b77c059eada8f9a0d514173fadb27e7b5f004cef81d1882a026e7
Preservation current fingerprintpreservation-v1:8256e97f497b77c059eada8f9a0d514173fadb27e7b5f004cef81d1882a026e7
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"3117e25e4ec7d4c7e88240299df10cc344be6fc6028b0b9a1e573a777eb613f9","lean_semantic_closure":"59844a6f7d5bfde463f4598d46c8abc4b4a9441985cf6f1d2eafb5abf4a49e56","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","Binary64ModelDefault":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","Binary64ModelDefault","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence current fingerprint{"own_tex":"3117e25e4ec7d4c7e88240299df10cc344be6fc6028b0b9a1e573a777eb613f9","lean_semantic_closure":"59844a6f7d5bfde463f4598d46c8abc4b4a9441985cf6f1d2eafb5abf4a49e56","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","Binary64ModelDefault":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","Binary64ModelDefault","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "2a6b93437705b7122ee2dc8d6844d852c1e2b77b65b806b75778a1ff2868811c",
    "dep_statement_hashes": {
      "Binary64ModelDefault": "be5dcc4afe23616ca8fd1d15d30fbbe4ee2621d68be3341b8e74a66e6dcd736f"
    },
    "combined_sound_fp": "preservation-v1:8256e97f497b77c059eada8f9a0d514173fadb27e7b5f004cef81d1882a026e7"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Exact source record
{
  "name": "F64.Insts.CoreOpsArithNegF64.neg",
  "extracted_signature": ": F64 → Result F64",
  "rust_symbol": "core::ops::arith::{impl core::ops::arith::Neg<f64> for f64}::neg",
  "raw_declaration_sha256": "bbf93f24bd7cfbc72e47e8bb3a9acc6641df939ad6afafd9ba02c81fe27f7ed0",
  "node": "ModelF64Neg",
  "declaration": "dec2flt_model.ModelF64Neg"
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/binary64-negation-probe.rs",
    "sha256": "268c01d8621efcf8e3771004f3b6f1f4c390f8fb133eb188540f67c7848342e5",
    "cited_by": [
      "reference/model-evidence/binary64-negation.txt"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-negation.txt",
    "sha256": "26b16f42a13b504511ab6b688c3f2bb18a58c9311806e18e878a57accd17e56a",
    "cited_by": [
      "Tablet/ModelF64Neg.tex",
      "Tablet/model-support.json"
    ]
  }
]

core::ops::bit::{impl core::ops::bit::BitAnd<u64, u64> for u64}::bitand

Inspect related source (1)

Related source and models come from the extraction records and declared dependencies.

Rust itemcore::ops::bit::{impl core::ops::bit::BitAnd<u64, u64> for u64}::bitand
Recorded source/rustc/library/core/src/ops/bit.rs
Lines178:12–178:42

The related-source link includes this operation’s Rust standard-library implementation.

Opaque extraction signature
: Std.U64 → Std.U64 → Result Std.U64
Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Aeneas
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelU64BitAnd]
def ModelU64BitAnd (x y : Std.U64) : Result Std.U64 :=
-- BODY
  ok (x &&& y)
end dec2flt_model

Why this model is faithful

Definition

\mathsf{ModelU64BitAnd}(x,y) successfully returns the bounded 64-bit bitwise conjunction of x and y.

Preservation argument

Claim

For every pair of 64-bit words, this binding returns their exact bounded bitwise conjunction.

Proof

The complete source-to-model chain is pinned in reference/model-evidence/u64-bitand.txt. A fresh inspect-native run identifies this exact external as the extracted u64--u64 BitAnd method, with result type Result Std.U64, and records its Rust source span and raw declaration hash. At that span the approved toolchain's u64 implementation returns self & rhs for every pair, with no guard or failure branch. At the pinned Aeneas revision, Std.U64 is a scalar containing exactly a 64-bit vector, and scalar &&& constructs the vector x.bv &&& y.bv; the pinned bit-vector lemma states that each result bit is the Boolean conjunction of the corresponding input bits. The binding defined here returns ok (x &&& y) unconditionally. Consequently, for arbitrary modeled 64-bit words x and y, it succeeds and returns exactly the same bounded 64-bit conjunction as the Rust method. No reachability restriction is used.
Authored arguments for individual requirements

Requirement: assembly correspondence

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification significand digit

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch abstract composition

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch component compliance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: exponent value agreement

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: integer correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: native correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper accumulated value

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper record bounds

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser equal target rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser exact rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser invalid rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser nan acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser non nan results

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected exponent

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected magnitude sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser signed zero

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: slow accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper nan

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Recorded review

CorrespondencePass
PreservationVerifierPass

ModelU64BitAnd · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/u64-bitand.txt

Open file

U64 BitAnd preservation evidence
================================

Scope
-----

This record pins the source-to-model chain for the external declaration bound
to Tablet/ModelU64BitAnd.  The commands below were run from the repository
root on 2026-09-24.  They use the frozen generated.lean and the approved tools
recorded in modeling-input/manifest.json and modeling-input/tool-identities.json.

1. Fresh native-boundary inspection
-----------------------------------

Command:

  python3 .trellis/scripts/pv_modeling.py inspect-native .

The command reported 24 declarations and wrote its full index to:

  .trellis/scratch/inspect-native-1790258751442882118.json

SHA-256 identities:

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9  generated.lean
  1e4419e9c0fff857cbff6848d8e4d0b54267d4f2f3307ee139f058f88930ee77  .trellis/scratch/inspect-native-1790258751442882118.json

These identities are reproduced with:

  sha256sum generated.lean \
    .trellis/scratch/inspect-native-1790258751442882118.json

The exact U64 BitAnd entry in that index is:

  name: U64.Insts.CoreOpsBitBitAndU64U64.bitand
  extracted_signature: : Std.U64 → Std.U64 → Result Std.U64
  rust_symbol: core::ops::bit::{impl core::ops::bit::BitAnd<u64, u64> for u64}::bitand
  source: /rustc/library/core/src/ops/bit.rs, lines 178:12-178:42
  raw_declaration_sha256: 36ceff7ad919e1d966b58518e19d49faa70b057d1eeab97b5d99db91bdce3e02

The indexed raw declaration is:

  /-- [core::ops::bit::{impl core::ops::bit::BitAnd<u64, u64> for u64}::bitand]:
      Source: '/rustc/library/core/src/ops/bit.rs', lines 178:12-178:42
      Name pattern: [core::ops::bit::{core::ops::bit::BitAnd<u64, u64, u64>}::bitand]
      Visibility: public -/
  @[rust_fun "core::ops::bit::{core::ops::bit::BitAnd<u64, u64, u64>}::bitand"]
  axiom U64.Insts.CoreOpsBitBitAndU64U64.bitand
    : Std.U64 → Std.U64 → Result Std.U64

The declaration hash is reproducible directly from the fresh JSON index:

  jq -jr '.declarations[] | select(.name == "U64.Insts.CoreOpsBitBitAndU64U64.bitand") | .source_utf8' \
    .trellis/scratch/inspect-native-1790258751442882118.json | sha256sum

Output:

  36ceff7ad919e1d966b58518e19d49faa70b057d1eeab97b5d99db91bdce3e02  -

Thus the inspected external is exactly the u64/u64 operation, has the stated
total-looking Result signature, and is traced by extraction to the Rust source
span used below.  This inventory fact identifies the boundary; the next two
sections establish its semantics.

2. Approved Rust implementation
-------------------------------

Toolchain and compiler identity:

  toolchain: nightly-2026-06-01-x86_64-unknown-linux-gnu
  rustc path: /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  rustc SHA-256: 162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  rustc 1.98.0-nightly (14210df0e 2026-05-31)
  commit-hash: 14210df0e27ccd7d9e6a05b8085cbd438e4bbc65
  host: x86_64-unknown-linux-gnu

Reproduction commands:

  RUSTC=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  "$RUSTC" -vV
  "$RUSTC" --print sysroot
  sha256sum "$RUSTC"

The installed rust-src component is under the same sysroot.  Its relevant file
and hash are:

  path: /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/bit.rs
  SHA-256: 31db8c3d227e01a9f60f37221d258dc1b2c8274163264602837bb3f3851c2a4d

The file identity and quoted line ranges are reproduced with:

  RUSTSRC=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/bit.rs
  sha256sum "$RUSTSRC"
  nl -ba "$RUSTSRC" | sed -n '170,187p'

The pinned source says at lines 170-179:

  macro_rules! bitand_impl {
      ($($t:ty)*) => ($(
          #[stable(feature = "rust1", since = "1.0.0")]
          #[rustc_const_unstable(feature = "const_ops", issue = "143802")]
          impl const BitAnd for $t {
              type Output = $t;

              #[inline]
              fn bitand(self, rhs: $t) -> $t { self & rhs }
          }

and line 187 instantiates that implementation for u64:

  bitand_impl! { bool usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }

Consequently the extracted Rust symbol's u64 implementation returns the
primitive bounded u64 conjunction `self & rhs` for every pair of u64 values;
there is no source guard, failure branch, or reachability precondition.

3. Pinned Aeneas scalar meaning
--------------------------------

Repository identity:

  repository: https://github.com/AeneasVerif/aeneas.git
  revision: fa699427cdfa8f604b891fb0223ef42883dd7dc4
  aeneas binary SHA-256: 9f446d2aaf59e8e705e36d05cb993f1c6ab0e97f8dc6fd2f19907a86ede30922

Reproduction commands (with each relative file path listed below substituted
for PATH):

  AENEAS=/home/leanagent/pv_spike/tools/aeneas
  git -C "$AENEAS" rev-parse HEAD
  git -C "$AENEAS" remote -v
  sha256sum "$AENEAS/bin/aeneas"
  git -C "$AENEAS" diff --quiet fa699427cdfa8f604b891fb0223ef42883dd7dc4 -- PATH
  sha256sum "$AENEAS/PATH"
  git -C "$AENEAS" ls-tree fa699427cdfa8f604b891fb0223ef42883dd7dc4 PATH

`git diff --quiet fa699427cdfa8f604b891fb0223ef42883dd7dc4 -- <path>`
returned status 0 for each file recorded below, so the inspected worktree files
are the files at the pinned revision.

File:

  backends/lean/Aeneas/Std/Scalar/Core.lean
  SHA-256: a1c26c125a59bba635a2b2c170186ce07168c43308bcf386d508ebd77f01520e
  git blob: f8582928fe49a0ce75e143b46bb0a8826d7fddae

Its definitions at lines 28-34, 45-53, 65-69, and 650-656 include:

  inductive UScalarTy where
  | Usize
  | U8
  | U16
  | U32
  | U64
  | U128

  def UScalarTy.numBits (ty : UScalarTy) : Nat :=
    match ty with
    | Usize => System.Platform.numBits
    | U8 => 8
    | U16 => 16
    | U32 => 32
    | U64 => 64
    | U128 => 128

  structure UScalar (ty : UScalarTy) where
    bv : BitVec ty.numBits

  abbrev U64 := UScalar .U64

Thus Std.U64 is exactly a UScalar whose sole data field is a BitVec 64.

File:

  backends/lean/Aeneas/Std/Scalar/Bitwise.lean
  SHA-256: 63e4b1d0906c972fb4fef953d8d8a60410dcf5313261d2583b1170b4a1a5ce29
  git blob: d3eb5022efc22d1d6c3ac055965f612c7f2fbca9

Its definitions at lines 105-116 and theorem at line 274 are:

  def UScalar.and {ty} (x y : UScalar ty) : UScalar ty :=
    ⟨ x.bv &&& y.bv ⟩

  instance {ty} : HAnd (UScalar ty) (UScalar ty) (UScalar ty) where
    hAnd x y := UScalar.and x y

  theorem UScalar.bv_and {ty} (x y : UScalar ty) :
      (x &&& y).bv = x.bv &&& y.bv := by rfl

For an explicit bit-level characterization of the BitVec operation used there,
the same pinned repository contains:

  backends/lean/Aeneas/Data/BitVec.lean
  SHA-256: 66d6e1922a45beff2d75e71e10dc6e8294c7cbf69f95b22dc22f98c5667382a7
  git blob: f7bc57109569cdd0fb0c3323021c73673dcfcd33

Lines 148-153 prove, for every width and bit index:

  theorem BitVec.getElem!_and {w} (x y : BitVec w) (i : Nat) :
      (x &&& y)[i]! = (x[i]! && y[i]!) := by
    by_cases i < w
    . simp only [getElem!_eq_getElem, getElem_and, *]
    . simp_all only [not_lt, getElem!_eq_false, Bool.and_self]

Therefore `x &&& y` on Std.U64 constructs the unique 64-bit vector whose bit
at every position is the Boolean conjunction of the corresponding operand
bits.  It is total and introduces neither overflow nor a failure condition.
Assumptions / kernel axioms
  • Quot.sound
  • propext

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (32)
All 32 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourceTablet/model-support.json
Kindopaque external binding
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:5aad7ed290e8caca5e4d670e4db322a5c1d5fbf828f99898c7b41e2140473773
Preservation current fingerprintpreservation-v1:5aad7ed290e8caca5e4d670e4db322a5c1d5fbf828f99898c7b41e2140473773
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"f3791b8cb54cd55f702cb65b53b998d0d642a4f516b1f1d4dc7ef02f1a8bc180","lean_semantic_closure":"760c8d11170d28936cd7ec6e873cfae06073816f6f416afbff2e50ca335191e5","preamble_tex":""}
Correspondence current fingerprint{"own_tex":"f3791b8cb54cd55f702cb65b53b998d0d642a4f516b1f1d4dc7ef02f1a8bc180","lean_semantic_closure":"760c8d11170d28936cd7ec6e873cfae06073816f6f416afbff2e50ca335191e5","preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "3cc6f8eb1df591c5ba62cc87f856618e453abcb383ae6f1a1cc3bc030f0b5723",
    "dep_statement_hashes": {},
    "combined_sound_fp": "preservation-v1:5aad7ed290e8caca5e4d670e4db322a5c1d5fbf828f99898c7b41e2140473773"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Exact source record
{
  "name": "U64.Insts.CoreOpsBitBitAndU64U64.bitand",
  "extracted_signature": ": Std.U64 → Std.U64 → Result Std.U64",
  "rust_symbol": "core::ops::bit::{impl core::ops::bit::BitAnd<u64, u64> for u64}::bitand",
  "raw_declaration_sha256": "36ceff7ad919e1d966b58518e19d49faa70b057d1eeab97b5d99db91bdce3e02",
  "node": "ModelU64BitAnd",
  "declaration": "dec2flt_model.ModelU64BitAnd"
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/u64-bitand.txt",
    "sha256": "c6c0339fe7def4b0c1702346a007a6f82f21b17293b20739ab15608907ebcb93",
    "cited_by": [
      "Tablet/ModelU64BitAnd.tex",
      "Tablet/model-support.json"
    ]
  }
]

core::ops::bit::{impl core::ops::bit::BitOr<u64, u64> for u64}::bitor

Inspect related source (1)

Related source and models come from the extraction records and declared dependencies.

Rust itemcore::ops::bit::{impl core::ops::bit::BitOr<u64, u64> for u64}::bitor
Recorded source/rustc/library/core/src/ops/bit.rs
Lines282:12–282:41

The related-source link includes this operation’s Rust standard-library implementation.

Opaque extraction signature
: Std.U64 → Std.U64 → Result Std.U64
Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Aeneas
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelU64BitOr]
def ModelU64BitOr (x y : Std.U64) : Result Std.U64 :=
-- BODY
  ok (x ||| y)
end dec2flt_model

Why this model is faithful

Definition

\mathsf{ModelU64BitOr}(x,y) successfully returns the bounded 64-bit bitwise disjunction of x and y.

Preservation argument

Claim

For every pair of 64-bit words, this binding returns their exact bounded bitwise disjunction.

Proof

The complete source-to-model chain is pinned in reference/model-evidence/u64-bitor.txt. A fresh inspect-native run identifies this exact external as the extracted u64--u64 BitOr method, with result type Result Std.U64, and records its Rust source span and raw declaration hash. At that span the approved toolchain's u64 implementation returns self | rhs for every pair, with no guard or failure branch. At the pinned Aeneas revision, Std.U64 is a scalar containing exactly a 64-bit vector, and scalar ||| constructs the vector x.bv ||| y.bv; the pinned bit-vector lemma states that each result bit is the Boolean disjunction of the corresponding input bits. The binding defined here returns ok (x ||| y) unconditionally. Consequently, for arbitrary modeled 64-bit words x and y, it succeeds and returns exactly the same bounded 64-bit disjunction as the Rust method. No reachability restriction is used.
Authored arguments for individual requirements

Requirement: assembly correspondence

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification significand digit

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch abstract composition

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch component compliance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: exponent value agreement

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: integer correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: native correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper accumulated value

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper record bounds

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser equal target rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser exact rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser invalid rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser nan acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser non nan results

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected exponent

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected magnitude sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser signed zero

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: slow accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper nan

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Recorded review

CorrespondencePass
PreservationVerifierPass

ModelU64BitOr · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/u64-bitor.txt

Open file

U64 BitOr preservation evidence
===============================

Scope
-----

This record pins the source-to-model chain for the external declaration bound
to Tablet/ModelU64BitOr.  The commands below were run from the repository root
on 2026-09-24.  They use the frozen generated.lean and the approved tools
recorded in modeling-input/manifest.json and modeling-input/tool-identities.json.

1. Fresh native-boundary inspection
-----------------------------------

Command:

  python3 .trellis/scripts/pv_modeling.py inspect-native .

The command reported 24 declarations and wrote its full index to:

  .trellis/scratch/inspect-native-1790259866184055823.json

SHA-256 identities:

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9  generated.lean
  1e4419e9c0fff857cbff6848d8e4d0b54267d4f2f3307ee139f058f88930ee77  .trellis/scratch/inspect-native-1790259866184055823.json

These identities are reproduced with:

  sha256sum generated.lean \
    .trellis/scratch/inspect-native-1790259866184055823.json

The exact U64 BitOr entry in that index is:

  name: U64.Insts.CoreOpsBitBitOrU64U64.bitor
  extracted_signature: : Std.U64 → Std.U64 → Result Std.U64
  rust_symbol: core::ops::bit::{impl core::ops::bit::BitOr<u64, u64> for u64}::bitor
  source: /rustc/library/core/src/ops/bit.rs, lines 282:12-282:41
  raw_declaration_sha256: 85930775e3fde73729bff04aa86624f11a9b03b31d18a49dc74ce7bae71b4ed6

The indexed raw declaration is:

  /-- [core::ops::bit::{impl core::ops::bit::BitOr<u64, u64> for u64}::bitor]:
      Source: '/rustc/library/core/src/ops/bit.rs', lines 282:12-282:41
      Name pattern: [core::ops::bit::{core::ops::bit::BitOr<u64, u64, u64>}::bitor]
      Visibility: public -/
  @[rust_fun "core::ops::bit::{core::ops::bit::BitOr<u64, u64, u64>}::bitor"]
  axiom U64.Insts.CoreOpsBitBitOrU64U64.bitor
    : Std.U64 → Std.U64 → Result Std.U64

The declaration hash is reproducible directly from the fresh JSON index:

  jq -jr '.declarations[] | select(.name == "U64.Insts.CoreOpsBitBitOrU64U64.bitor") | .source_utf8' \
    .trellis/scratch/inspect-native-1790259866184055823.json | sha256sum

Output:

  85930775e3fde73729bff04aa86624f11a9b03b31d18a49dc74ce7bae71b4ed6  -

Thus the inspected external is exactly the u64/u64 operation, has the stated
total-looking Result signature, and is traced by extraction to the Rust source
span used below.  This inventory fact identifies the boundary; the next two
sections establish its semantics.

2. Approved Rust implementation
-------------------------------

Toolchain and compiler identity:

  toolchain: nightly-2026-06-01-x86_64-unknown-linux-gnu
  rustc path: /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  rustc SHA-256: 162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  rustc 1.98.0-nightly (14210df0e 2026-05-31)
  commit-hash: 14210df0e27ccd7d9e6a05b8085cbd438e4bbc65
  host: x86_64-unknown-linux-gnu

Reproduction commands:

  RUSTC=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  "$RUSTC" -vV
  "$RUSTC" --print sysroot
  sha256sum "$RUSTC"

The installed rust-src component is under the same sysroot.  Its relevant file
and hash are:

  path: /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/bit.rs
  SHA-256: 31db8c3d227e01a9f60f37221d258dc1b2c8274163264602837bb3f3851c2a4d

The file identity and quoted line range are reproduced with:

  RUSTSRC=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/bit.rs
  sha256sum "$RUSTSRC"
  nl -ba "$RUSTSRC" | sed -n '274,291p'

The pinned source says at lines 274-289:

  macro_rules! bitor_impl {
      ($($t:ty)*) => ($(
          #[stable(feature = "rust1", since = "1.0.0")]
          #[rustc_const_unstable(feature = "const_ops", issue = "143802")]
          impl const BitOr for $t {
              type Output = $t;

              #[inline]
              fn bitor(self, rhs: $t) -> $t { self | rhs }
          }

          forward_ref_binop! { impl BitOr, bitor for $t, $t,
          #[stable(feature = "rust1", since = "1.0.0")]
          #[rustc_const_unstable(feature = "const_ops", issue = "143802")] }
      )*)
  }

and line 291 instantiates that implementation for u64:

  bitor_impl! { bool usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }

Consequently the extracted Rust symbol's u64 implementation returns the
primitive bounded u64 disjunction `self | rhs` for every pair of u64 values;
there is no source guard, failure branch, or reachability precondition.

3. Pinned Aeneas scalar meaning
-------------------------------

Repository identity:

  repository: https://github.com/AeneasVerif/aeneas.git
  revision: fa699427cdfa8f604b891fb0223ef42883dd7dc4
  aeneas binary SHA-256: 9f446d2aaf59e8e705e36d05cb993f1c6ab0e97f8dc6fd2f19907a86ede30922

Reproduction commands (with each relative file path listed below substituted
for PATH):

  AENEAS=/home/leanagent/pv_spike/tools/aeneas
  git -C "$AENEAS" rev-parse HEAD
  git -C "$AENEAS" remote -v
  sha256sum "$AENEAS/bin/aeneas"
  git -C "$AENEAS" diff --quiet fa699427cdfa8f604b891fb0223ef42883dd7dc4 -- PATH
  sha256sum "$AENEAS/PATH"
  git -C "$AENEAS" ls-tree fa699427cdfa8f604b891fb0223ef42883dd7dc4 PATH

`git diff --quiet fa699427cdfa8f604b891fb0223ef42883dd7dc4 -- <path>`
returned status 0 for each file recorded below, so the inspected worktree files
are the files at the pinned revision.

File:

  backends/lean/Aeneas/Std/Scalar/Core.lean
  SHA-256: a1c26c125a59bba635a2b2c170186ce07168c43308bcf386d508ebd77f01520e
  git blob: f8582928fe49a0ce75e143b46bb0a8826d7fddae

Its definitions at lines 28-34, 45-53, 65-69, and 650-656 include:

  inductive UScalarTy where
  | Usize
  | U8
  | U16
  | U32
  | U64
  | U128

  def UScalarTy.numBits (ty : UScalarTy) : Nat :=
    match ty with
    | Usize => System.Platform.numBits
    | U8 => 8
    | U16 => 16
    | U32 => 32
    | U64 => 64
    | U128 => 128

  structure UScalar (ty : UScalarTy) where
    bv : BitVec ty.numBits

  abbrev U64 := UScalar .U64

Thus Std.U64 is exactly a UScalar whose sole data field is a BitVec 64.

File:

  backends/lean/Aeneas/Std/Scalar/Bitwise.lean
  SHA-256: 63e4b1d0906c972fb4fef953d8d8a60410dcf5313261d2583b1170b4a1a5ce29
  git blob: d3eb5022efc22d1d6c3ac055965f612c7f2fbca9

Its definitions at lines 118-126 and theorem at line 275 are:

  def UScalar.or {ty} (x y : UScalar ty) : UScalar ty :=
    ⟨ x.bv ||| y.bv ⟩

  instance {ty} : HOr (UScalar ty) (UScalar ty) (UScalar ty) where
    hOr x y := UScalar.or x y

  theorem UScalar.bv_or {ty} (x y : UScalar ty) :
      (x ||| y).bv = x.bv ||| y.bv := by rfl

For an explicit bit-level characterization of the BitVec operation used there,
the same pinned repository contains:

  backends/lean/Aeneas/Data/BitVec.lean
  SHA-256: 66d6e1922a45beff2d75e71e10dc6e8294c7cbf69f95b22dc22f98c5667382a7
  git blob: f7bc57109569cdd0fb0c3323021c73673dcfcd33

Lines 141-146 prove, for every width and bit index:

  theorem BitVec.getElem!_or {w} (x y : BitVec w) (i : Nat) :
      (x ||| y)[i]! = (x[i]! || y[i]!) := by
    by_cases i < w
    . simp only [getElem!_eq_getElem, getElem_or, *]
    . simp_all only [not_lt, getElem!_eq_false, Bool.or_self]

Therefore `x ||| y` on Std.U64 constructs the unique 64-bit vector whose bit
at every position is the Boolean disjunction of the corresponding operand
bits.  It is total and introduces neither overflow nor a failure condition.
Assumptions / kernel axioms
  • Quot.sound
  • propext

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (32)
All 32 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourceTablet/model-support.json
Kindopaque external binding
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:8beb03aa43b31c21df196ed526c745e39bbeb96336f2e2bce78f283be4b69bb7
Preservation current fingerprintpreservation-v1:8beb03aa43b31c21df196ed526c745e39bbeb96336f2e2bce78f283be4b69bb7
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"c1795ffd326d6d7b10277e6e5189adbd559da37f0b95510ab95505fdac8430e3","lean_semantic_closure":"04e1b81bf028ff964b48f52dab02eb081dc327262e2d8152947aee00dc27c1b3","preamble_tex":""}
Correspondence current fingerprint{"own_tex":"c1795ffd326d6d7b10277e6e5189adbd559da37f0b95510ab95505fdac8430e3","lean_semantic_closure":"04e1b81bf028ff964b48f52dab02eb081dc327262e2d8152947aee00dc27c1b3","preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "e55b91c8baad6e02c473f8e718fdd1e58926bc67f023eea656daecad473497eb",
    "dep_statement_hashes": {},
    "combined_sound_fp": "preservation-v1:8beb03aa43b31c21df196ed526c745e39bbeb96336f2e2bce78f283be4b69bb7"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Exact source record
{
  "name": "U64.Insts.CoreOpsBitBitOrU64U64.bitor",
  "extracted_signature": ": Std.U64 → Std.U64 → Result Std.U64",
  "rust_symbol": "core::ops::bit::{impl core::ops::bit::BitOr<u64, u64> for u64}::bitor",
  "raw_declaration_sha256": "85930775e3fde73729bff04aa86624f11a9b03b31d18a49dc74ce7bae71b4ed6",
  "node": "ModelU64BitOr",
  "declaration": "dec2flt_model.ModelU64BitOr"
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/u64-bitor.txt",
    "sha256": "7afd4000ae945f6ed47f2dda330dc2ca21dd4f0d229b3ec69b81e928a45f57d4",
    "cited_by": [
      "Tablet/ModelU64BitOr.tex",
      "Tablet/model-support.json"
    ]
  }
]

core::ops::bit::{impl core::ops::bit::Shl<u32, u64> for u64}::shl

Inspect related source (1)

Related source and models come from the extraction records and declared dependencies.

Rust itemcore::ops::bit::{impl core::ops::bit::Shl<u32, u64> for u64}::shl
Recorded source/rustc/library/core/src/ops/bit.rs
Lines489:12–489:41

The related-source link includes this operation’s Rust standard-library implementation.

Opaque extraction signature
: Std.U64 → Std.U32 → Result Std.U64
Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Aeneas
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelU64Shl]
def ModelU64Shl (x : Std.U64) (y : Std.U32) : Result Std.U64 :=
-- BODY
  x <<< y
end dec2flt_model

Why this model is faithful

Definition

For every 64-bit word x and 32-bit unsigned count n, \mathsf{ModelU64Shl}(x,n) returns the bounded 64-bit left shift when n<64 and reports integer overflow otherwise.

Preservation argument

Claim

For every 64-bit word and 32-bit count, this binding returns the bounded left shift when the count is below 64 and the checked overflow otherwise.

Proof

The complete source-to-model chain is pinned in reference/model-evidence/u64-shl.txt. A fresh inspect-native run identifies this exact external as Shl<u32> for u64, with signature Std.U64 -> Std.U32 -> Result Std.U64, its Rust source span, and its raw declaration hash. At that span the approved rust-src defines the method as self << other, instantiates it for u64/u32, and marks it rustc_inherit_overflow_checks. The frozen Cargo profiles enable overflow checks and use unwinding panics; a same-toolchain probe and MIR show the general dynamic-count guard n < 64, followed by the bounded u64 shift on success and the checked-overflow unwind edge otherwise.
At the pinned Aeneas revision, Std.U64 and Std.U32 are respectively 64- and 32-bit unsigned scalar carriers. The <<< instance resolves through UScalar.shiftLeft_UScalar to a branch on the count's full unsigned value. Below 64 it returns ok of BitVec.shiftLeft; the pinned scalar specification and bit-vector lemmas identify its value as the mathematical left shift modulo 2^{64} and its bits as the exact zero-filled, high-bit-truncated 64-bit shift. At 64 or above it returns fail integerOverflow. Thus, case by case over every 32-bit count, the binding and Rust both produce the same bounded 64-bit result below 64, while the Rust checked-shift panic and the extracted Aeneas integerOverflow failure correspond at 64 and above. No source-reachability restriction is used.
Authored arguments for individual requirements

Requirement: assembly correspondence

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification significand digit

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch abstract composition

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch component compliance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: exponent value agreement

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: integer correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: native correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper accumulated value

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper record bounds

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser equal target rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser exact rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser invalid rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser nan acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser non nan results

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected exponent

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected magnitude sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser signed zero

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: slow accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper nan

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Recorded review

CorrespondencePass
PreservationVerifierPass

ModelU64Shl · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/u64-shl-probe.rs

Open file

use std::panic::{catch_unwind, AssertUnwindSafe};

#[inline(never)]
fn shift(x: u64, count: u32) -> u64 {
    x << count
}

fn observe(x: u64, count: u32) {
    match catch_unwind(AssertUnwindSafe(|| shift(x, count))) {
        Ok(value) => println!("count={count} ok={value:#018x}"),
        Err(_) => println!("count={count} panic"),
    }
}

fn main() {
    std::panic::set_hook(Box::new(|_| {}));
    let x = 0x8000_0000_0000_0001_u64;
    for count in [0, 1, 52, 63, 64, 65, u32::MAX] {
        observe(x, count);
    }
}
reference/model-evidence/u64-shl.txt

Open file

U64 Shl preservation evidence
=============================

Scope
-----

This record pins the source-to-model chain for the external declaration bound
to Tablet/ModelU64Shl.  The commands below were run from the repository root on
2026-09-24.  They use the frozen generated.lean, extraction configuration, and
approved tools recorded in modeling-input/manifest.json and
modeling-input/tool-identities.json.  The two semantic cases are both in scope:
all U32 counts below 64 return a bounded U64 shift, and all U32 counts at least
64 encounter the enabled checked-shift failure.

1. Fresh native-boundary inspection
-----------------------------------

Command:

  python3 .trellis/scripts/pv_modeling.py inspect-native .

The command reported 24 declarations and wrote its full index to:

  .trellis/scratch/inspect-native-1790260978718245524.json

SHA-256 identities:

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9  generated.lean
  1e4419e9c0fff857cbff6848d8e4d0b54267d4f2f3307ee139f058f88930ee77  .trellis/scratch/inspect-native-1790260978718245524.json

These identities are reproduced with:

  sha256sum generated.lean \
    .trellis/scratch/inspect-native-1790260978718245524.json

The exact U64 Shl entry in that fresh index is:

  name: U64.Insts.CoreOpsBitShlU32U64.shl
  extracted_signature: : Std.U64 → Std.U32 → Result Std.U64
  rust_symbol: core::ops::bit::{impl core::ops::bit::Shl<u32, u64> for u64}::shl
  source: /rustc/library/core/src/ops/bit.rs, lines 489:12-489:41
  raw_declaration_sha256: e025ae44955b09fe95d7d8e997cb0ecafdfeea85b78bf40427e6f9bb14bb985d

The indexed raw declaration is:

  /-- [core::ops::bit::{impl core::ops::bit::Shl<u32, u64> for u64}::shl]:
      Source: '/rustc/library/core/src/ops/bit.rs', lines 489:12-489:41
      Name pattern: [core::ops::bit::{core::ops::bit::Shl<u64, u32, u64>}::shl]
      Visibility: public -/
  @[rust_fun "core::ops::bit::{core::ops::bit::Shl<u64, u32, u64>}::shl"]
  axiom U64.Insts.CoreOpsBitShlU32U64.shl
    : Std.U64 → Std.U32 → Result Std.U64

The declaration hash is reproduced directly from the fresh JSON index by:

  jq -jr '.declarations[] | select(.name ==
    "U64.Insts.CoreOpsBitShlU32U64.shl") | .source_utf8' \
    .trellis/scratch/inspect-native-1790260978718245524.json | sha256sum

Output:

  e025ae44955b09fe95d7d8e997cb0ecafdfeea85b78bf40427e6f9bb14bb985d  -

Thus this boundary is specifically u64 shifted by u32, and its extracted
codomain is the Aeneas Result used below to distinguish normal return from
checked overflow.

2. Approved Rust implementation and build mode
-----------------------------------------------

Toolchain and compiler identity:

  toolchain: nightly-2026-06-01-x86_64-unknown-linux-gnu
  rustc path: /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  rustc SHA-256: 162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  rustc 1.98.0-nightly (14210df0e 2026-05-31)
  commit-hash: 14210df0e27ccd7d9e6a05b8085cbd438e4bbc65
  host: x86_64-unknown-linux-gnu

Reproduction commands:

  RUSTC=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  "$RUSTC" -vV
  "$RUSTC" --print sysroot
  sha256sum "$RUSTC"

The installed rust-src component is under that same sysroot.  Its relevant
file and identity are:

  path: /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/bit.rs
  SHA-256: 31db8c3d227e01a9f60f37221d258dc1b2c8274163264602837bb3f3851c2a4d

The file identity and source are reproduced with:

  RUSTSRC="$($RUSTC --print sysroot)/lib/rustlib/src/rust/library/core/src/ops/bit.rs"
  sha256sum "$RUSTSRC"
  nl -ba "$RUSTSRC" | sed -n '479,520p'

Lines 479-498 define the implementation macro:

  macro_rules! shl_impl {
      ($t:ty, $f:ty) => {
          #[stable(feature = "rust1", since = "1.0.0")]
          #[rustc_const_unstable(feature = "const_ops", issue = "143802")]
          const impl Shl<$f> for $t {
              type Output = $t;

              #[inline]
              #[track_caller]
              #[rustc_inherit_overflow_checks]
              fn shl(self, other: $f) -> $t {
                  self << other
              }
          }

          forward_ref_binop! { impl Shl, shl for $t, $f,
          #[stable(feature = "rust1", since = "1.0.0")]
          #[rustc_const_unstable(feature = "const_ops", issue = "143802")] }
      };
  }

Lines 500-518 apply `shl_impl! { $t, u32 }` to every type in
`shl_impl_all!`, and instantiate that outer macro with `u64` among its types:

  macro_rules! shl_impl_all {
      ($($t:ty)*) => ($(
          shl_impl! { $t, u8 }
          shl_impl! { $t, u16 }
          shl_impl! { $t, u32 }
          shl_impl! { $t, u64 }
          shl_impl! { $t, u128 }
          shl_impl! { $t, usize }
          ...
      )*)
  }

  shl_impl_all! { u8 u16 u32 u64 u128 usize i8 i16 i32 i64 i128 isize }

Therefore the inspected symbol has exactly this method body for `Shl<u32> for
u64`, and `#[rustc_inherit_overflow_checks]` makes its primitive `self << other`
use the calling crate's overflow-check mode.

The frozen configuration identities are:

  2040ce5dc92c51b5245113f97682b692b876aa57708b5c7c483425ba152943c8  crate/Cargo.toml
  a45e9bc0c57213e415eb8fa5cec983c44259d336522e6eec8760e7237b7779d7  modeling-input/extraction.json
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2  modeling-input/manifest.json
  68fc7ab89dac4e5389a286b36d919fde5481b2c5673fc7006c7f693afd6ceedf  modeling-input/tool-identities.json

They are reproduced by `sha256sum` on those four paths.  Cargo.toml lines
18-22 set `overflow-checks = true` in both the development and release
profiles.  modeling-input/SETUP.md lines 17-22 record that extraction uses the
development profile with overflow checks enabled.  The frozen
modeling-input/extraction.json is:

  {"crate":"crate","cargo_args":[],"charon_args":[],"aeneas_args":[]}

so no extraction argument disables that setting.  The manifest pins
`RUSTUP_TOOLCHAIN=nightly-2026-06-01` and the exact cargo/rustc toolchain.  There
is no `panic` override in Cargo.toml; the approved rustc's default target cfg,
reproduced by `"$RUSTC" --print cfg`, includes:

  panic="unwind"
  target_arch="x86_64"
  target_pointer_width="64"

Thus the frozen build uses checked shifts and unwinding panics.

3. Same-toolchain checked-shift probe and MIR
---------------------------------------------

The durable probe source is:

  reference/model-evidence/u64-shl-probe.rs

with SHA-256:

  a0f0f822b3ea216799bb900835341f6117d47b59b9d6ad3d9cbc3af07e2792a8

It places the same primitive expression `x << count` in a non-inlined function,
runs it on representative boundary counts while catching unwinding panics, and
does not mask or reduce the count.  Reproduce it from the repository root with:

  RUSTC=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  cd .trellis/scratch
  "$RUSTC" -C overflow-checks=yes -C panic=unwind \
    ../../reference/model-evidence/u64-shl-probe.rs -o u64-shl-probe
  ./u64-shl-probe
  "$RUSTC" -C overflow-checks=yes -C panic=unwind --emit=mir=u64-shl-probe.mir \
    ../../reference/model-evidence/u64-shl-probe.rs
  sed -n '/fn shift(/,/^}/p' u64-shl-probe.mir

Runtime output:

  count=0 ok=0x8000000000000001
  count=1 ok=0x0000000000000002
  count=52 ok=0x0010000000000000
  count=63 ok=0x8000000000000000
  count=64 panic
  count=65 panic
  count=4294967295 panic

The same invocation emits this MIR for the complete dynamic-count function:

  fn shift(_1: u64, _2: u32) -> u64 {
      debug x => _1;
      debug count => _2;
      let mut _0: u64;
      let mut _3: bool;

      bb0: {
          _3 = Lt(copy _2, const 64_u32);
          assert(move _3, "attempt to shift left by `{}`, which would overflow", copy _2) -> [success: bb1, unwind continue];
      }

      bb1: {
          _0 = Shl(copy _1, copy _2);
          return;
      }
  }

The MIR is general in both arguments: exactly when `count < 64`, control reaches
the U64 `Shl` operation and returns its bounded 64-bit result; otherwise the
assertion takes its unwind edge.  The runtime boundary observations confirm
that the configured panic strategy makes that failure catchable at 64, 65, and
the largest U32 count, while counts 0, 1, 52, and 63 return normally with the
expected truncation to 64 bits.

4. Pinned Aeneas carrier and shift meaning
------------------------------------------

Repository and translator identity:

  repository: https://github.com/AeneasVerif/aeneas.git
  revision: fa699427cdfa8f604b891fb0223ef42883dd7dc4
  aeneas binary SHA-256: 9f446d2aaf59e8e705e36d05cb993f1c6ab0e97f8dc6fd2f19907a86ede30922

Reproduction commands (substitute each relative path below for PATH):

  AENEAS=/home/leanagent/pv_spike/tools/aeneas
  git -C "$AENEAS" rev-parse HEAD
  git -C "$AENEAS" remote -v
  sha256sum "$AENEAS/bin/aeneas"
  git -C "$AENEAS" diff --quiet fa699427cdfa8f604b891fb0223ef42883dd7dc4 -- PATH
  sha256sum "$AENEAS/PATH"
  git -C "$AENEAS" ls-tree fa699427cdfa8f604b891fb0223ef42883dd7dc4 PATH

The `git diff --quiet` command returned status 0 for every file below, so each
inspected worktree file is the file at the pinned revision.

File:

  backends/lean/Aeneas/Std/Scalar/Core.lean
  SHA-256: a1c26c125a59bba635a2b2c170186ce07168c43308bcf386d508ebd77f01520e
  git blob: f8582928fe49a0ce75e143b46bb0a8826d7fddae

Lines 28-34, 45-53, 65-71, 90-95, and 650-656 define:

  inductive UScalarTy where
  | Usize
  | U8
  | U16
  | U32
  | U64
  | U128

  def UScalarTy.numBits (ty : UScalarTy) : Nat :=
    match ty with
    | Usize => System.Platform.numBits
    | U8 => 8
    | U16 => 16
    | U32 => 32
    | U64 => 64
    | U128 => 128

  structure UScalar (ty : UScalarTy) where
    bv : BitVec ty.numBits

  def UScalar.val {ty} (x : UScalar ty) : Nat := x.bv.toNat
  irreducible_def UScalar.size (ty : UScalarTy) : Nat := 2^ty.numBits
  abbrev U32 := UScalar .U32
  abbrev U64 := UScalar .U64

Thus Std.U64 contains exactly a 64-bit vector, Std.U32 contains exactly a
32-bit vector, and the count's `val` ranges over the full U32 domain.

File:

  backends/lean/Aeneas/Std/Scalar/Bitwise.lean
  SHA-256: 63e4b1d0906c972fb4fef953d8d8a60410dcf5313261d2583b1170b4a1a5ce29
  git blob: d3eb5022efc22d1d6c3ac055965f612c7f2fbca9

Lines 17-21 and 29-31 define:

  def UScalar.shiftLeft {ty : UScalarTy} (x : UScalar ty) (s : Nat) :
      Result (UScalar ty) :=
    if s < ty.numBits then
      ok ⟨ x.bv.shiftLeft s ⟩
    else fail .integerOverflow

  def UScalar.shiftLeft_UScalar {ty tys} (x : UScalar ty) (s : UScalar tys) :
      Result (UScalar ty) :=
    x.shiftLeft s.val

Lines 81-82 resolve the notation used by Tablet/ModelU64Shl.lean:

  instance {ty0 ty1} : HShiftLeft (UScalar ty0) (UScalar ty1)
      (Result (UScalar ty0)) where
    hShiftLeft x y := UScalar.shiftLeft_UScalar x y

Consequently `x <<< y` for `x : Std.U64` and `y : Std.U32` tests exactly
`y.val < 64`: below 64 it is `ok` of the 64-bit vector shift; at least 64 it is
exactly `fail .integerOverflow`.

The same file's `UScalar.ShiftLeft_spec`, lines 193-205, proves the successful
branch has both equivalent bounded descriptions:

  theorem UScalar.ShiftLeft_spec ... (hy : y.val < ty0.numBits) ... :
    (x <<< y) ⦃ z =>
      z.val = (x.val <<< y.val) % size ∧
      z.bv = x.bv <<< y.val ⦄

For U64, `size` is `2^64`; hence the returned natural value is the mathematical
left shift reduced modulo `2^64`, and the returned carrier is exactly the
corresponding 64-bit vector.

File:

  backends/lean/Aeneas/Data/BitVec.lean
  SHA-256: 66d6e1922a45beff2d75e71e10dc6e8294c7cbf69f95b22dc22f98c5667382a7
  git blob: f7bc57109569cdd0fb0c3323021c73673dcfcd33

Its lines 248-266 give the bit-level characterization: every result bit below
the shift count (or outside the fixed width) is false, and every in-width bit at
or above the count equals the corresponding input bit at index `i - n`:

  theorem BitVec.getElem!_shiftLeft_false ...
      (h : i < n ∨ w ≤ i) : (v <<< n)[i]! = false

  theorem BitVec.getElem!_shiftLeft_eq ...
      (h : n ≤ i ∧ i < w) : (v <<< n)[i]! = v[i - n]!

Finally, the model's failure constructor is pinned in:

  backends/lean/Aeneas/Std/Primitives.lean
  SHA-256: f3e9dc9ee62646d579b97747725c07f18760498601b5a37e48031d2f4893035a
  git blob: e5733a774268c8dee71bd4ba402240d151bb8cb8

Lines 50-64 include the distinct `Error.integerOverflow` constructor and
`Result.fail`.  Therefore the at-least-64 branch is the explicit Aeneas checked
integer-overflow failure, not a wrapping or masked shift.

5. Case-by-case preservation conclusion
----------------------------------------

Let x be any source/model U64 word and n any source/model U32 count; the carrier
definitions above identify their bits and numeric values exactly.

If n < 64, the Rust checked-shift assertion succeeds and the source method runs
the primitive U64 shift.  The Aeneas branch condition also succeeds and returns
`ok` of `BitVec.shiftLeft n`.  `UScalar.ShiftLeft_spec` and the BitVec lemmas
identify both results as the same 64-bit word, equivalently `(x * 2^n) mod
2^64`, with discarded high bits and zero-filled low bits.

If n >= 64, the configured Rust operation takes the checked-overflow panic
edge.  The Aeneas branch condition fails and returns `fail .integerOverflow`,
the extracted Result representation of that checked shift failure.  This holds
for the entire remaining U32 range, including counts larger than 64; it is not
restricted to counts reached by current parser executions.

Thus Tablet/ModelU64Shl preserves both the normal result and checked-failure
observations of the exact extracted Rust operation on its full U64 x U32 input
domain.
Requirements depending on this item (32)
All 32 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourceTablet/model-support.json
Kindopaque external binding
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:4fb4381366862f4b70450f0e8c40ca40cdb21ea07f1ac48de4c0bceae5923502
Preservation current fingerprintpreservation-v1:4fb4381366862f4b70450f0e8c40ca40cdb21ea07f1ac48de4c0bceae5923502
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"b63ed97847770538f9391ba01e7547e6610c166290a0dada3d38eec1119a9ee6","lean_semantic_closure":"bbcd776bcbece10394a6604d8dbf65a3358ba69df0a542ed3aebad167aa0eca9","preamble_tex":""}
Correspondence current fingerprint{"own_tex":"b63ed97847770538f9391ba01e7547e6610c166290a0dada3d38eec1119a9ee6","lean_semantic_closure":"bbcd776bcbece10394a6604d8dbf65a3358ba69df0a542ed3aebad167aa0eca9","preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "2a681cac2bd90e71b92e17c850dff4f78fdc26fd9b5f1284cd17040ae7cc7104",
    "dep_statement_hashes": {},
    "combined_sound_fp": "preservation-v1:4fb4381366862f4b70450f0e8c40ca40cdb21ea07f1ac48de4c0bceae5923502"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Exact source record
{
  "name": "U64.Insts.CoreOpsBitShlU32U64.shl",
  "extracted_signature": ": Std.U64 → Std.U32 → Result Std.U64",
  "rust_symbol": "core::ops::bit::{impl core::ops::bit::Shl<u32, u64> for u64}::shl",
  "raw_declaration_sha256": "e025ae44955b09fe95d7d8e997cb0ecafdfeea85b78bf40427e6f9bb14bb985d",
  "node": "ModelU64Shl",
  "declaration": "dec2flt_model.ModelU64Shl"
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/u64-shl-probe.rs",
    "sha256": "a0f0f822b3ea216799bb900835341f6117d47b59b9d6ad3d9cbc3af07e2792a8",
    "cited_by": [
      "reference/model-evidence/u64-shl.txt"
    ]
  },
  {
    "path": "reference/model-evidence/u64-shl.txt",
    "sha256": "0f1f325b4ac82b37653f4d4f9d96ce8bc1df43a34ad0efb0e1f341ddaa7b45ba",
    "cited_by": [
      "Tablet/ModelU64Shl.tex",
      "Tablet/model-support.json"
    ]
  }
]

core::ops::bit::{impl core::ops::bit::Shr<u32, u64> for u64}::shr

Inspect related source (1)

Related source and models come from the extraction records and declared dependencies.

Rust itemcore::ops::bit::{impl core::ops::bit::Shr<u32, u64> for u64}::shr
Recorded source/rustc/library/core/src/ops/bit.rs
Lines612:12–612:41

The related-source link includes this operation’s Rust standard-library implementation.

Opaque extraction signature
: Std.U64 → Std.U32 → Result Std.U64
Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Aeneas
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelU64Shr]
def ModelU64Shr (x : Std.U64) (y : Std.U32) : Result Std.U64 :=
-- BODY
  x >>> y
end dec2flt_model

Why this model is faithful

Definition

For every 64-bit word x and 32-bit unsigned count n, \mathsf{ModelU64Shr}(x,n) returns the unsigned 64-bit right shift when n<64 and reports integer overflow otherwise.

Preservation argument

Claim

For every 64-bit word and 32-bit count, this binding returns the unsigned right shift when the count is below 64 and the checked overflow otherwise.

Proof

The complete source-to-model chain is pinned in reference/model-evidence/u64-shr.txt. A fresh inspect-native run identifies this exact external as Shr<u32> for u64, with signature Std.U64 -> Std.U32 -> Result Std.U64, its Rust source span, and its raw declaration hash. At that span the approved rust-src defines the method as self >> other, instantiates it for u64/u32, and marks it rustc_inherit_overflow_checks. The frozen Cargo profiles enable overflow checks and use unwinding panics; a same-toolchain probe and MIR show the general dynamic-count guard n < 64, followed by the logical u64 right shift on success and the checked-overflow unwind edge otherwise.
At the pinned Aeneas revision, Std.U64 and Std.U32 are respectively 64- and 32-bit unsigned scalar carriers. The >>> instance resolves through UScalar.shiftRight_UScalar to a branch on the count's full unsigned value. Below 64 it returns ok of BitVec.ushiftRight; the pinned scalar specification and bit-vector lemmas identify its value as the mathematical unsigned right shift and its bits as the exact lowward shift with zero-filled high bits. At 64 or above it returns fail integerOverflow. Thus, case by case over every 32-bit count, the binding and Rust both produce the same logical 64-bit result below 64, while the Rust checked-shift panic and the extracted Aeneas integerOverflow failure correspond at 64 and above. No source-reachability restriction is used.
Authored arguments for individual requirements

Requirement: assembly correspondence

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification significand digit

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch abstract composition

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch component compliance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: exponent value agreement

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: integer correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: native correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper accumulated value

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper record bounds

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser equal target rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser exact rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser invalid rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser nan acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser non nan results

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected exponent

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected magnitude sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser signed zero

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: slow accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper nan

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Recorded review

CorrespondencePass
PreservationVerifierPass

ModelU64Shr · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/u64-shr-probe.rs

Open file

use std::panic::{catch_unwind, AssertUnwindSafe};

#[inline(never)]
fn shift(x: u64, count: u32) -> u64 {
    x >> count
}

fn observe(x: u64, count: u32) {
    match catch_unwind(AssertUnwindSafe(|| shift(x, count))) {
        Ok(value) => println!("count={count} ok={value:#018x}"),
        Err(_) => println!("count={count} panic"),
    }
}

fn main() {
    std::panic::set_hook(Box::new(|_| {}));
    let x = 0x8000_0000_0000_0001_u64;
    for count in [0, 1, 52, 63, 64, 65, u32::MAX] {
        observe(x, count);
    }
}
reference/model-evidence/u64-shr.txt

Open file

U64 Shr preservation evidence
=============================

Scope
-----

This record pins the source-to-model chain for the external declaration bound
to Tablet/ModelU64Shr.  The commands below were run from the repository root on
2026-09-24.  They use the frozen generated.lean, extraction configuration, and
approved tools recorded in modeling-input/manifest.json and
modeling-input/tool-identities.json.  The two semantic cases are both in scope:
all U32 counts below 64 return a logical U64 right shift, and all U32 counts at
least 64 encounter the enabled checked-shift failure.

1. Fresh native-boundary inspection
-----------------------------------

Command:

  python3 .trellis/scripts/pv_modeling.py inspect-native .

The command reported 24 declarations and wrote its full index to:

  .trellis/scratch/inspect-native-1790262316075577976.json

SHA-256 identities:

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9  generated.lean
  1e4419e9c0fff857cbff6848d8e4d0b54267d4f2f3307ee139f058f88930ee77  .trellis/scratch/inspect-native-1790262316075577976.json

These identities are reproduced with:

  sha256sum generated.lean \
    .trellis/scratch/inspect-native-1790262316075577976.json

The exact U64 Shr entry in that fresh index is:

  name: U64.Insts.CoreOpsBitShrU32U64.shr
  extracted_signature: : Std.U64 -> Std.U32 -> Result Std.U64
  rust_symbol: core::ops::bit::{impl core::ops::bit::Shr<u32, u64> for u64}::shr
  source: /rustc/library/core/src/ops/bit.rs, lines 612:12-612:41
  raw_declaration_sha256: 77bb0909a8e98b3624eb10ad550c04968db2c68776dcd3da10fb338b029a7c1f

The indexed raw declaration is:

  /-- [core::ops::bit::{impl core::ops::bit::Shr<u32, u64> for u64}::shr]:
      Source: '/rustc/library/core/src/ops/bit.rs', lines 612:12-612:41
      Name pattern: [core::ops::bit::{core::ops::bit::Shr<u64, u32, u64>}::shr]
      Visibility: public -/
  @[rust_fun "core::ops::bit::{core::ops::bit::Shr<u64, u32, u64>}::shr"]
  axiom U64.Insts.CoreOpsBitShrU32U64.shr
    : Std.U64 -> Std.U32 -> Result Std.U64

The declaration hash is reproduced directly from the fresh JSON index by:

  jq -jr '.declarations[] | select(.name ==
    "U64.Insts.CoreOpsBitShrU32U64.shr") | .source_utf8' \
    .trellis/scratch/inspect-native-1790262316075577976.json | sha256sum

Output:

  77bb0909a8e98b3624eb10ad550c04968db2c68776dcd3da10fb338b029a7c1f  -

Tablet/model-support.json binds precisely this indexed declaration and
signature to dec2flt_model.ModelU64Shr.  Thus the boundary is specifically u64
shifted by u32, and its extracted codomain is the Aeneas Result used below to
distinguish normal return from checked overflow.

2. Approved Rust implementation and build mode
-----------------------------------------------

Toolchain and compiler identity:

  toolchain: nightly-2026-06-01-x86_64-unknown-linux-gnu
  rustc path: /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  rustc SHA-256: 162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  rustc 1.98.0-nightly (14210df0e 2026-05-31)
  commit-hash: 14210df0e27ccd7d9e6a05b8085cbd438e4bbc65
  host: x86_64-unknown-linux-gnu

Reproduction commands:

  RUSTC=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  "$RUSTC" -vV
  "$RUSTC" --print sysroot
  sha256sum "$RUSTC"

The installed rust-src component is under that same sysroot.  Its relevant
file and identity are:

  path: /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/bit.rs
  SHA-256: 31db8c3d227e01a9f60f37221d258dc1b2c8274163264602837bb3f3851c2a4d

The file identity and source are reproduced with:

  RUSTSRC="$($RUSTC --print sysroot)/lib/rustlib/src/rust/library/core/src/ops/bit.rs"
  sha256sum "$RUSTSRC"
  nl -ba "$RUSTSRC" | sed -n '602,641p'

Lines 602-620 define the implementation macro:

  macro_rules! shr_impl {
      ($t:ty, $f:ty) => {
          #[stable(feature = "rust1", since = "1.0.0")]
          #[rustc_const_unstable(feature = "const_ops", issue = "143802")]
          const impl Shr<$f> for $t {
              type Output = $t;

              #[inline]
              #[track_caller]
              #[rustc_inherit_overflow_checks]
              fn shr(self, other: $f) -> $t {
                  self >> other
              }
          }

          forward_ref_binop! { impl Shr, shr for $t, $f,
          #[stable(feature = "rust1", since = "1.0.0")]
          #[rustc_const_unstable(feature = "const_ops", issue = "143802")] }
      };
  }

Lines 623-641 apply `shr_impl! { $t, u32 }` to every type in
`shr_impl_all!`, and instantiate that outer macro with `u64` among its types:

  macro_rules! shr_impl_all {
      ($($t:ty)*) => ($(
          shr_impl! { $t, u8 }
          shr_impl! { $t, u16 }
          shr_impl! { $t, u32 }
          shr_impl! { $t, u64 }
          shr_impl! { $t, u128 }
          shr_impl! { $t, usize }
          ...
      )*)
  }

  shr_impl_all! { u8 u16 u32 u64 u128 usize i8 i16 i32 i64 i128 isize }

Therefore the inspected symbol has exactly this method body for `Shr<u32> for
u64`, and `#[rustc_inherit_overflow_checks]` makes its primitive `self >> other`
use the calling crate's overflow-check mode.

The frozen configuration identities are:

  2040ce5dc92c51b5245113f97682b692b876aa57708b5c7c483425ba152943c8  crate/Cargo.toml
  a45e9bc0c57213e415eb8fa5cec983c44259d336522e6eec8760e7237b7779d7  modeling-input/extraction.json
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2  modeling-input/manifest.json
  68fc7ab89dac4e5389a286b36d919fde5481b2c5673fc7006c7f693afd6ceedf  modeling-input/tool-identities.json

They are reproduced by `sha256sum` on those four paths.  Cargo.toml lines
18-22 set `overflow-checks = true` in both the development and release
profiles.  modeling-input/SETUP.md lines 17-22 record that extraction uses the
development profile with overflow checks enabled.  The frozen
modeling-input/extraction.json is:

  {"crate":"crate","cargo_args":[],"charon_args":[],"aeneas_args":[]}

so no extraction argument disables that setting.  The manifest pins
`RUSTUP_TOOLCHAIN=nightly-2026-06-01` and the exact cargo/rustc toolchain.  There
is no `panic` override in Cargo.toml; the approved rustc's default target cfg,
reproduced by `"$RUSTC" --print cfg`, includes:

  panic="unwind"
  target_arch="x86_64"
  target_pointer_width="64"

Thus the frozen build uses checked shifts and unwinding panics.

3. Same-toolchain checked-shift probe and MIR
---------------------------------------------

The durable probe source is:

  reference/model-evidence/u64-shr-probe.rs

with SHA-256:

  11f10c4d4eb07e9aaa518e6e08a52796814b6f29d09e2ada5138e61f70551fee

It places the same primitive expression `x >> count` in a non-inlined function,
runs it on representative boundary counts while catching unwinding panics, and
does not mask or reduce the count.  Reproduce it from the repository root with:

  RUSTC=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  cd .trellis/scratch
  "$RUSTC" -C overflow-checks=yes -C panic=unwind \
    ../../reference/model-evidence/u64-shr-probe.rs -o u64-shr-probe
  ./u64-shr-probe
  "$RUSTC" -C overflow-checks=yes -C panic=unwind --emit=mir=u64-shr-probe.mir \
    ../../reference/model-evidence/u64-shr-probe.rs
  sed -n '/fn shift(/,/^}/p' u64-shr-probe.mir

Runtime output:

  count=0 ok=0x8000000000000001
  count=1 ok=0x4000000000000000
  count=52 ok=0x0000000000000800
  count=63 ok=0x0000000000000001
  count=64 panic
  count=65 panic
  count=4294967295 panic

The same invocation emits this MIR for the complete dynamic-count function:

  fn shift(_1: u64, _2: u32) -> u64 {
      debug x => _1;
      debug count => _2;
      let mut _0: u64;
      let mut _3: bool;

      bb0: {
          _3 = Lt(copy _2, const 64_u32);
          assert(move _3, "attempt to shift right by `{}`, which would overflow", copy _2) -> [success: bb1, unwind continue];
      }

      bb1: {
          _0 = Shr(copy _1, copy _2);
          return;
      }
  }

The MIR is general in both arguments: exactly when `count < 64`, control reaches
the U64 `Shr` operation and returns its logical 64-bit result; otherwise the
assertion takes its unwind edge.  The runtime boundary observations confirm
that the configured panic strategy makes that failure catchable at 64, 65, and
the largest U32 count, while counts 0, 1, 52, and 63 return normally with
zero-filled high bits.

4. Pinned Aeneas carrier and shift meaning
------------------------------------------

Repository and translator identity:

  repository: https://github.com/AeneasVerif/aeneas.git
  revision: fa699427cdfa8f604b891fb0223ef42883dd7dc4
  aeneas binary SHA-256: 9f446d2aaf59e8e705e36d05cb993f1c6ab0e97f8dc6fd2f19907a86ede30922

Reproduction commands (substitute each relative path below for PATH):

  AENEAS=/home/leanagent/pv_spike/tools/aeneas
  git -C "$AENEAS" rev-parse HEAD
  git -C "$AENEAS" remote -v
  sha256sum "$AENEAS/bin/aeneas"
  git -C "$AENEAS" diff --quiet fa699427cdfa8f604b891fb0223ef42883dd7dc4 -- PATH
  sha256sum "$AENEAS/PATH"
  git -C "$AENEAS" ls-tree fa699427cdfa8f604b891fb0223ef42883dd7dc4 PATH

The `git diff --quiet` command returned status 0 for every file below, so each
inspected worktree file is the file at the pinned revision.

File:

  backends/lean/Aeneas/Std/Scalar/Core.lean
  SHA-256: a1c26c125a59bba635a2b2c170186ce07168c43308bcf386d508ebd77f01520e
  git blob: f8582928fe49a0ce75e143b46bb0a8826d7fddae

Lines 28-34, 45-53, 65-71, 90-95, and 650-656 define:

  inductive UScalarTy where
  | Usize
  | U8
  | U16
  | U32
  | U64
  | U128

  def UScalarTy.numBits (ty : UScalarTy) : Nat :=
    match ty with
    | Usize => System.Platform.numBits
    | U8 => 8
    | U16 => 16
    | U32 => 32
    | U64 => 64
    | U128 => 128

  structure UScalar (ty : UScalarTy) where
    bv : BitVec ty.numBits

  def UScalar.val {ty} (x : UScalar ty) : Nat := x.bv.toNat
  irreducible_def UScalar.size (ty : UScalarTy) : Nat := 2^ty.numBits
  abbrev U32 := UScalar .U32
  abbrev U64 := UScalar .U64

Thus Std.U64 contains exactly a 64-bit vector, Std.U32 contains exactly a
32-bit vector, and the count's `val` ranges over the full U32 domain.

File:

  backends/lean/Aeneas/Std/Scalar/Bitwise.lean
  SHA-256: 63e4b1d0906c972fb4fef953d8d8a60410dcf5313261d2583b1170b4a1a5ce29
  git blob: d3eb5022efc22d1d6c3ac055965f612c7f2fbca9

Lines 23-35 define:

  def UScalar.shiftRight {ty : UScalarTy} (x : UScalar ty) (s : Nat) :
      Result (UScalar ty) :=
    if s < ty.numBits then
      ok ⟨ x.bv.ushiftRight s ⟩
    else fail .integerOverflow

  def UScalar.shiftRight_UScalar {ty tys} (x : UScalar ty)
      (s : UScalar tys) : Result (UScalar ty) :=
    x.shiftRight s.val

Lines 93-94 resolve the notation used by Tablet/ModelU64Shr.lean:

  instance {ty0 ty1} : HShiftRight (UScalar ty0) (UScalar ty1)
      (Result (UScalar ty0)) where
    hShiftRight x y := UScalar.shiftRight_UScalar x y

Consequently `x >>> y` for `x : Std.U64` and `y : Std.U32` tests exactly
`y.val < 64`: below 64 it is `ok` of the unsigned 64-bit vector shift; at least
64 it is exactly `fail .integerOverflow`.

The same file's `UScalar.ShiftRight_spec`, lines 166-174, proves the successful
branch has both equivalent logical-shift descriptions:

  theorem UScalar.ShiftRight_spec ... (hy : y.val < ty0.numBits) :
    (x >>> y) ⦃ z =>
      z.val = x.val >>> y.val ∧
      z.bv = x.bv >>> y.val ⦄

Here natural-number `>>>` is division by `2^y.val`, so the returned numeric
value is `floor(x.val / 2^y.val)`, and the returned carrier is exactly the
unsigned shift of the fixed-width bit vector.

File:

  backends/lean/Aeneas/Data/BitVec.lean
  SHA-256: 66d6e1922a45beff2d75e71e10dc6e8294c7cbf69f95b22dc22f98c5667382a7
  git blob: f7bc57109569cdd0fb0c3323021c73673dcfcd33

Its lines 268-283 give the bit-level logical zero-fill characterization.  For
every result position, the total bit lookup is the input bit at the offset
position; positions whose offset is outside the 64-bit input are false:

  theorem BitVec.getElem!_shiftRight {w} (v : BitVec w) (n i : Nat) :
    (v >>> n)[i]! = v[n + i]!

  theorem BitVec.getElem_shiftRight_false {m n : Nat} (v : BitVec m)
      (hm : i < m) (h : m <= n + i) :
    (v >>> n)[i]'hm = false

Together with `BitVec.getElem_shiftRight_lt`, this states that every in-range
source bit moves downward by the count and every newly exposed high bit is
zero.  Because the carrier is unsigned, there is no sign extension.

Finally, the model's failure constructor is pinned in:

  backends/lean/Aeneas/Std/Primitives.lean
  SHA-256: f3e9dc9ee62646d579b97747725c07f18760498601b5a37e48031d2f4893035a
  git blob: e5733a774268c8dee71bd4ba402240d151bb8cb8

Lines 50-64 include the distinct `Error.integerOverflow` constructor and
`Result.fail`.  Therefore the at-least-64 branch is the explicit Aeneas checked
integer-overflow failure, not a wrapping or masked shift.

5. Case-by-case preservation conclusion
----------------------------------------

Let x be any source/model U64 word and n any source/model U32 count; the carrier
definitions above identify their bits and numeric values exactly.

If n < 64, the Rust checked-shift assertion succeeds and the source method runs
the primitive unsigned U64 right shift.  The Aeneas branch condition also
succeeds and returns `ok` of `BitVec.ushiftRight n`.  `UScalar.ShiftRight_spec`
and the BitVec lemmas identify both results as the same 64-bit word,
equivalently `floor(x / 2^n)`, with every newly exposed high bit filled by zero.

If n >= 64, the configured Rust operation takes the checked-overflow panic
edge.  The Aeneas branch condition fails and returns `fail .integerOverflow`,
the extracted Result representation of that checked shift failure.  This holds
for the entire remaining U32 range, including counts larger than 64; it is not
restricted to counts reached by current parser executions.

Thus Tablet/ModelU64Shr preserves both the normal result and checked-failure
observations of the exact extracted Rust operation on its full U64 x U32 input
domain.
Assumptions / kernel axioms
  • propext

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (32)
All 32 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourceTablet/model-support.json
Kindopaque external binding
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:38b5619bb6f0073414fcc3fe0c08a1066ea04d1de1b04f0fd280b37204ef3417
Preservation current fingerprintpreservation-v1:38b5619bb6f0073414fcc3fe0c08a1066ea04d1de1b04f0fd280b37204ef3417
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"5ad44572d12a36ad385208a68bb9ccd600e8e297c44925442323eabdc625445e","lean_semantic_closure":"9a6c17e6318e8cad264124e8cc76df4b6f714d16b74dd7bd880882b2428694bf","preamble_tex":""}
Correspondence current fingerprint{"own_tex":"5ad44572d12a36ad385208a68bb9ccd600e8e297c44925442323eabdc625445e","lean_semantic_closure":"9a6c17e6318e8cad264124e8cc76df4b6f714d16b74dd7bd880882b2428694bf","preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "2a0f5f33832c86acd17a2cd5aa5f01c45efbbdd6de01f5eaf96df6745ceb8ca5",
    "dep_statement_hashes": {},
    "combined_sound_fp": "preservation-v1:38b5619bb6f0073414fcc3fe0c08a1066ea04d1de1b04f0fd280b37204ef3417"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Exact source record
{
  "name": "U64.Insts.CoreOpsBitShrU32U64.shr",
  "extracted_signature": ": Std.U64 → Std.U32 → Result Std.U64",
  "rust_symbol": "core::ops::bit::{impl core::ops::bit::Shr<u32, u64> for u64}::shr",
  "raw_declaration_sha256": "77bb0909a8e98b3624eb10ad550c04968db2c68776dcd3da10fb338b029a7c1f",
  "node": "ModelU64Shr",
  "declaration": "dec2flt_model.ModelU64Shr"
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/u64-shr-probe.rs",
    "sha256": "11f10c4d4eb07e9aaa518e6e08a52796814b6f29d09e2ada5138e61f70551fee",
    "cited_by": [
      "reference/model-evidence/u64-shr.txt"
    ]
  },
  {
    "path": "reference/model-evidence/u64-shr.txt",
    "sha256": "857c56b6fa14bf261d684b1e45d1d3c5ac8479a3c95dcbcc65ce2811a61a0c96",
    "cited_by": [
      "Tablet/ModelU64Shr.tex",
      "Tablet/model-support.json"
    ]
  }
]

core::option::{impl core::ops::try_trait::Try for core::option::Option<T>}::branch

Inspect related source (1)

Related source and models come from the extraction records and declared dependencies.

Rust itemcore::option::{impl core::ops::try_trait::Try for core::option::Option<T>}::branch
Recorded source/rustc/library/core/src/option.rs
Lines2779:4–2779:64

The related-source link includes this operation’s Rust standard-library implementation.

Opaque extraction signature
{T : Type} : Option T → Result (core.ops.control_flow.ControlFlow (Option core.convert.Infallible) T)
Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Aeneas
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelOptionBranch]
def ModelOptionBranch {T : Type} (x : Option T) :
    Result (core.ops.control_flow.ControlFlow
      (Option core.convert.Infallible) T) :=
-- BODY
  match x with
  | some v => ok (.Continue v)
  | none => ok (.Break none)
end dec2flt_model

Why this model is faithful

Definition

\mathsf{ModelOptionBranch} maps \mathsf{some}(x) to successful \mathsf{Continue}(x) and \mathsf{none} to successful \mathsf{Break}(\mathsf{none}).

Preservation argument

Claim

For every optional value, this binding preserves the source Option try-control-flow branch exactly.

Proof

The two constructors map respectively to Continue of the value and Break of None, verbatim the frozen Rust implementation recorded in reference/model-evidence/binary64-boundary.txt.
Authored arguments for individual requirements

Requirement: assembly correspondence

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification significand digit

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch abstract composition

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch component compliance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: exponent value agreement

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: integer correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: native correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper accumulated value

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper record bounds

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser equal target rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser exact rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser invalid rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser nan acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser non nan results

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected exponent

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected magnitude sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser signed zero

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: slow accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper nan

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Recorded review

CorrespondencePass
PreservationVerifierPass

ModelOptionBranch · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/binary64-boundary.txt

Open file

Primary evidence for the binary64 boundary
==========================================

Scope and identities
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction, the
adapted Rust crate retained in this repository, and the installed toolchain
named by modeling-input/SETUP.md. The probe source is retained at
reference/model-evidence/binary64-probe.rs; no scratch source is required to
reproduce it.

Toolchain executable:
  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
Target:
  x86_64-unknown-linux-gnu
rustc executable SHA-256:
  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
Probe source SHA-256:
  68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
Compiled probe SHA-256:
  f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
Frozen generated.lean SHA-256:
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9
Frozen modeling-input/manifest.json SHA-256:
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2
Approved Binary64ModelDefault.lean SHA-256 at the time of this record:
  03ae48fb631e6242bd21bf95d0481b66acae05f8cab343c7ab279b3c116538a3

Exact reproduction commands
---------------------------

Run from the repository root:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-probe.rs
  B=.trellis/scratch/binary64-probe
  "$R" --version --verbose
  sha256sum "$R"
  sha256sum "$P"
  "$R" --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$B"
  "$B"

Raw output
----------

  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
  rustc_sha256=162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  probe_sha256=68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
  binary_sha256=f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
  target_arch=x86_64
  mantissa_digits=53
  exponent_mask=7ff0000000000000
  mantissa_mask=000fffffffffffff
  nan=7ff8000000000000
  infinity=7ff0000000000000
  neg_infinity=fff0000000000000
  nan_category=Nan
  infinity_category=Infinite
  zero_category=Zero
  subnormal_category=Subnormal
  normal_category=Normal
  from_bits_to_bits=7ff0000000000001
  neg_payload_nan=fff0000000000001
  neg_zero=8000000000000000
  subnormal_tie_to_even_zero=0000000000000000
  subnormal_tie_to_even_two=0000000000000002
  normal_division=3fb999999999999a
  mul_negative_zero=8000000000000000
  div_negative_zero=8000000000000000
  div_negative_infinity=fff0000000000000
  mul_overflow=7ff0000000000000
  mul_zero_infinity_is_nan=true
  div_zero_zero_is_nan=true
  mul_nan_is_nan=true
  cast_2_pow_53=4340000000000000
  cast_2_pow_53_plus_1=4340000000000000

Pinned Rust library sources
---------------------------

The installed sources below belong to the same named toolchain. Their
SHA-256 identities are:

  core/src/primitive_docs.rs
    c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5
  core/src/num/f64.rs
    84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618
  core/src/clone.rs
    23f9cfc80347fde6b8457d46fbf7a2b8d9f34c8c58601b0b6f714ca2f6d1976b

The exact relevant text of core/src/primitive_docs.rs is:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The referenced primitive-f32 documentation supplies the common primitive
floating-point operation rules quoted next:

  /// - −0.0: IEEE 754 floating-point numbers have a bit that indicates their sign, so −0.0 is a
  ///   possible value. For comparison −0.0 = +0.0, but floating-point operations can carry
  ///   the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
  ///   a negative number rounded to a value smaller than a float can represent also produces −0.0.
  /// - [∞](#associatedconstant.INFINITY) and
  ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
  ///   like `1.0 / 0.0`.
  ///
  /// When a primitive operation (addition, subtraction, multiplication, or
  /// division) is performed on this type, the result is rounded according to the
  /// roundTiesToEven direction defined in IEEE 754-2008. That means:
  ///
  /// - The result is the representable value closest to the true value, if there
  ///   is a unique closest representable value.
  /// - If the true value is exactly half-way between two representable values,
  ///   the result is the one with an even least-significant binary digit.
  /// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
  ///   `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
  ///   true value's sign).

The same file explicitly separates arithmetic NaN choice from exact bitwise
operations; its exact relevant text is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.
  ///
  /// The following rules apply when a NaN value is returned from an arithmetic operation:
  /// - The result has a non-deterministic sign.
  /// - The quiet bit and payload are non-deterministically chosen from
  ///   the following set of options:
  ///
  ///   - **Preferred NaN**: The quiet bit is set and the payload is all-zero.
  ///   - **Quieting NaN propagation**: The quiet bit is set and the payload is copied from any input
  ///     operand that is a NaN. If the inputs and outputs do not have the same payload size (i.e., for
  ///     `as` casts), then
  ///     - If the output is smaller than the input, low-order bits of the payload get dropped.
  ///     - If the output is larger than the input, the payload gets filled up with 0s in the low-order
  ///       bits.
  ///   - **Unchanged NaN propagation**: The quiet bit and payload are copied from any input operand
  ///     that is a NaN. If the inputs and outputs do not have the same size (i.e., for `as` casts), the
  ///     same rules as for "quieting NaN propagation" apply, with one caveat: if the output is smaller
  ///     than the input, dropping the low-order bits may result in a payload of 0; a payload of 0 is not
  ///     possible with a signaling NaN (the all-0 significand encodes an infinity) so unchanged NaN
  ///     propagation cannot occur with some inputs.
  ///   - **Target-specific NaN**: The quiet bit is set and the payload is picked from a target-specific
  ///     set of "extra" possible NaN payloads. The set can depend on the input operand values.
  ///     See the table below for the concrete NaNs this set contains on various targets.
  ///
  /// | `target_arch` | Extra payloads possible on this platform |
  /// |---------------|------------------------------------------|
  /// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |

Thus the model's preferred quiet NaN is one permitted result whenever
multiplication or division returns NaN. This does not claim that arbitrary
Rust arithmetic NaNs have those exact bits. By contrast, unary negation and
bit conversion must preserve all non-sign bits exactly, including for every
NaN payload.

The exact relevant declarations in core/src/num/f64.rs are:

  pub const MANTISSA_DIGITS: u32 = 53;
  pub const NAN: f64 = 0.0_f64 / 0.0_f64;
  pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
  pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
  pub const SIGN_MASK: u64 = 0x8000_0000_0000_0000;
  pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;
  pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff;

  pub const fn classify(self) -> FpCategory {
      // We used to have complicated logic here that avoids the simple bit-based tests to work
      // around buggy codegen for x87 targets (see
      // https://github.com/rust-lang/rust/issues/114479). However, some LLVM versions later, none
      // of our tests is able to find any difference between the complicated and the naive
      // version, so now we are back to the naive version.
      let b = self.to_bits();
      match (b & Self::MANTISSA_MASK, b & Self::EXPONENT_MASK) {
          (0, Self::EXPONENT_MASK) => FpCategory::Infinite,
          (_, Self::EXPONENT_MASK) => FpCategory::Nan,
          (0, 0) => FpCategory::Zero,
          (_, 0) => FpCategory::Subnormal,
          _ => FpCategory::Normal,
      }
  }

  pub const fn to_bits(self) -> u64 {
      // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
      unsafe { mem::transmute(self) }
  }

  pub const fn from_bits(v: u64) -> Self {
      // It turns out the safety issues with sNaN were overblown! Hooray!
      // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
      unsafe { mem::transmute(v) }
  }

The exact scalar clone body in core/src/clone.rs is:

  impl const Clone for $t {
      #[inline(always)]
      fn clone(&self) -> Self {
          *self
      }
  }

Frozen adapted source
---------------------

The relevant retained source file hashes are:

  crate/traits.rs
    9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  crate/dec2flt/decimal.rs
    633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb
  crate/dec2flt/lemire.rs
    fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1
  crate/dec2flt/slow.rs
    93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485

The dispatcher excerpts below are reproduced from the identified file by
running these commands from the repository root:

  sha256sum crate/dec2flt/mod.rs
  sed -n '354,403p' crate/dec2flt/mod.rs
  sed -n '405,422p' crate/dec2flt/mod.rs
  sed -n '465,475p' crate/dec2flt/mod.rs
  sed -n '506,523p' crate/dec2flt/mod.rs

Exact constant and bit-conversion excerpt from crate/traits.rs:

  impl Float for f64 {
      type Int = u64;

      const INFINITY: Self = Self::INFINITY;
      const NEG_INFINITY: Self = Self::NEG_INFINITY;
      const NAN: Self = Self::NAN;
      // Bit-identical to the upstream `-f64::NAN`, without the unsupported
      // compile-time float negation.
      const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);

      const BITS: u32 = 64;
      const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
      const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
      const SIG_MASK: Self::Int = Self::MANTISSA_MASK;

      fn to_bits(self) -> Self::Int {
          self.to_bits()
      }

      fn classify(self) -> FpCategory {
          self.classify()
      }
  }

  impl FloatExt for f64 {
      #[inline]
      fn from_u64_bits(v: u64) -> Self {
          f64::from_bits(v)
      }

Exact derived-constant defaults from crate/traits.rs:

  /// The number of bits in the significand, *excluding* the hidden bit.
  const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;

  /// Number of bits in the exponent.
  const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

  /// The saturated (maximum bitpattern) value of the exponent, i.e. the infinite
  /// representation.
  ///
  /// This shifted fully right, use `EXP_MASK` for the shifted value.
  const EXP_SAT: u32 = (1 << Self::EXP_BITS) - 1;

  /// Signed version of `EXP_SAT` since we convert a lot.
  const INFINITE_POWER: i32 = Self::EXP_SAT as i32;

  /// The exponent bias value. This is also the maximum value of the exponent.
  const EXP_BIAS: u32 = Self::EXP_SAT >> 1;

  /// Minimum exponent value of normal values.
  const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Together with the f64-instance lines `BITS = 64` and
`SIG_TOTAL_BITS = Self::MANTISSA_DIGITS` in the preceding excerpt, these
defaults derive SIG_BITS, EXP_MIN, and INFINITE_POWER from the primitive
mantissa-digit constant rather than introducing independent parameters.

Exact asserted-conversion excerpt from crate/dec2flt/mod.rs:

  #[inline]
  // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
  // `charon::opaque` makes this entire asserted conversion external: both the
  // unchanged `debug_assert!` and the unchanged cast below are in the opaque
  // body. The callers, their fast-path guards, and their surrounding
  // computation remain mechanically visible. A corresponding model binding
  // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
  // exact binary64 conversion at or below that bound.
  #[charon::opaque]
  fn from_u64(v: u64) -> Self {
      debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
      v as _
  }

Here MAX_MANTISSA_FAST_PATH is the retained default 1 << 53.  The attribute is
attached to the function item, so the generated external stands for the whole
method, not merely the cast.  In the enabled-debug configuration the source
succeeds only when v <= 2^53; above it the assertion fails before the cast. On
the successful branch every integer is exactly representable, so the source
cast and the model rounder return the same word.

Exact power-table and assembly excerpts from crate/dec2flt/mod.rs:

  /// Maximum mantissa for the fast-path (`1 << 53` for f64).
  const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;

  const MAX_EXPONENT_FAST_PATH: i64 = 22;
  const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
  const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;

  fn pow10_fast_path(exponent: usize) -> Self {
      // These bit patterns are exactly the source table's rounded binary64
      // literals.  The match is the same masked lookup; it merely keeps float
      // constants out of Aeneas's unsupported constant interpreter.
      match exponent & 31 {
          0 => f64::from_bits(0x3FF0_0000_0000_0000),
          1 => f64::from_bits(0x4024_0000_0000_0000),
          2 => f64::from_bits(0x4059_0000_0000_0000),
          3 => f64::from_bits(0x408F_4000_0000_0000),
          4 => f64::from_bits(0x40C3_8800_0000_0000),
          5 => f64::from_bits(0x40F8_6A00_0000_0000),
          6 => f64::from_bits(0x412E_8480_0000_0000),
          7 => f64::from_bits(0x4163_12D0_0000_0000),
          8 => f64::from_bits(0x4197_D784_0000_0000),
          9 => f64::from_bits(0x41CD_CD65_0000_0000),
          10 => f64::from_bits(0x4202_A05F_2000_0000),
          11 => f64::from_bits(0x4237_4876_E800_0000),
          12 => f64::from_bits(0x426D_1A94_A200_0000),
          13 => f64::from_bits(0x42A2_309C_E540_0000),
          14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
          15 => f64::from_bits(0x430C_6BF5_2634_0000),
          16 => f64::from_bits(0x4341_C379_37E0_8000),
          17 => f64::from_bits(0x4376_3457_85D8_A000),
          18 => f64::from_bits(0x43AB_C16D_674E_C800),
          19 => f64::from_bits(0x43E1_58E4_6091_3D00),
          20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
          21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
          22 => f64::from_bits(0x4480_F0CF_064D_D592),
          _ => f64::from_bits(0),
      }
  }

  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

Exact native-call excerpt from crate/dec2flt/decimal.rs:

  fn can_use_fast_path<F: Lemire>(&self) -> bool {
      F::MIN_EXPONENT_FAST_PATH <= self.exponent
          && self.exponent <= F::MAX_EXPONENT_DISGUISED_FAST_PATH
          && self.mantissa <= F::MAX_MANTISSA_FAST_PATH
          && !self.many_digits
  }

  if !self.can_use_fast_path::<F>() {
      return None;
  }

  let value = if self.exponent <= F::MAX_EXPONENT_FAST_PATH {
      // normal fast path
      let value = F::from_u64(self.mantissa);
      if self.exponent < 0 {
          // Explicit trait calls preserve Rust arithmetic and resolve
          // the generic output type that Charon leaves ambiguous.
          core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
      } else {
          core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
      }
  } else {
      // disguised fast path
      let shift = self.exponent - F::MAX_EXPONENT_FAST_PATH;
      let mantissa = self.mantissa.checked_mul(INT_POW10[shift as usize])?;
      if mantissa > F::MAX_MANTISSA_FAST_PATH {
          return None;
      }
      core::ops::Mul::mul(
          F::from_u64(mantissa),
          F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
      )
  };

  if self.negative {
      Some(core::ops::Neg::neg(value))
  } else {
      Some(value)
  }

The preceding can_use_fast_path body, together with
MAX_MANTISSA_FAST_PATH = 1 << SIG_TOTAL_BITS and SIG_TOTAL_BITS = 53 for f64,
requires the exponent to lie between -22 and 37, the input mantissa to be at
most 2^53, and many_digits to be false. Consequently an ordinary arithmetic
call has a from_u64 operand in 0..=2^53. In its negative-exponent arm,
`-self.exponent` lies in 1..=22; in its nonnegative arm, `self.exponent` lies
in 0..=22. The disguised branch checks its multiplied mantissa against 2^53
before from_u64 and uses table index 22. The paired statement
Binary64NativeCallDomain does not assert this source reachability. It says
conditionally that a from_u64 argument at most 2^53 succeeds with a finite,
non-NaN word and that a table index at most 22 succeeds with a positive,
nonzero, finite, non-NaN word. Applying that conditional statement to the
guards just derived establishes those properties for the actual ordinary and
disguised calls, and in particular establishes that every executed divisor is
nonzero.

Exact special-value excerpt from crate/dec2flt/parse.rs:

  let float = match (register, len) {
      (INF_3, 3) => F::INFINITY,
      (INF_8, 8) => F::INFINITY,
      (NAN, 3) => F::NAN,
      _ => return None,
  };

  if negative { Some(-float) } else { Some(float) }

Thus the executed special route is INFINITY or NAN followed by conditional
negation; it does not select NEG_INFINITY or NEG_NAN directly.

The number helper has the exact source body

  pub fn parse_number(s: &[u8]) -> Option<Decimal> {
      if let Some((float, rest)) = parse_partial_number(s) {
          if rest == s.len() {
              return Some(float);
          }
      }
      None
  }

It returns only the Decimal produced by parse_partial_number; there is no
float type parameter or float operation at this boundary.

Exact dispatcher excerpts from crate/dec2flt/mod.rs
---------------------------------------------------

The entry of `dec2flt_with_trace` strips at most one leading sign, rejects
empty and sign-only inputs, calls `parse_number` on the unsigned body, and
calls `parse_inf_nan` only when `parse_number` returns `None`:

  /// Run the actual dispatcher while retaining its approved internal observations.
  pub fn dec2flt_with_trace<
      'a,
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {
          return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
      };
      let negative = c == b'-';
      if c == b'-' || c == b'+' {
          body = &body[1..];
      }
      if body.is_empty() {
          return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
      }

      let parse_number_result = parse_number(body);
      let parsed = match parse_number_result {
          Some(r) => r,
          None => {
              let parse_inf_nan_result = parse_inf_nan(body, negative);
              return match parse_inf_nan_result {
                  Some(value) => (
                      Ok(value),
                      Dec2FltTrace::Special {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                          result: value,
                      },
                  ),
                  None => (
                      Err(pfe_invalid()),
                      Dec2FltTrace::Invalid {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                      },
                  ),
              };
          }
      };

Thus every `Err` arm shown here returns before `parsed` is available and before
the native, integer, slow, assembly, or final-negation code below it can run.
On a numeric result, the lexical sign is copied into the parsed record before
the native attempt, whose successful result also returns before raw-pair
assembly:

      let mut num = parsed;
      num.negative = negative;
      if !cfg!(feature = "optimize_for_size") {
          let fast_path_result = num.try_fast_path::<F>();
          if let Some(value) = fast_path_result {
              return (
                  Ok(value),
                  Dec2FltTrace::FastPath {
                      body,
                      negative,
                      parse_number_result,
                      fast_path_input: num,
                      fast_path_result,
                      result: value,
                  },
              );
          }
      }

If the native attempt does not return, the selected raw pair is assembled and
the source then conditionally negates it according to the lexical-sign flag:

      let selected_pair = fp;
      // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
      // it neither changes the selected pair nor introduces a new branch or call.
      let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
      let assembly_result = biased_fp_to_float::<F>(fp);
      let lexical_sign_applied = num.negative;
      let result = if lexical_sign_applied {
          core::ops::Neg::neg(assembly_result)
      } else {
          assembly_result
      };

The public `dec2flt` executes that same route and returns its result projection;
it does not reimplement or reorder any parsing or float operation:

  /// Converts a decimal string into a floating point number.
  #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
  pub fn dec2flt<
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &str,
  ) -> Result<F, ParseFloatError> {
      // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
      // clause admits exactly the same instances and lets Charon resolve the
      // explicit, source-equivalent final negation.
      // The public function is now exactly the result projection of the single
      // instrumented implementation.  No conversion step is duplicated, and
      // discarding the trace cannot affect Rust evaluation or the returned bits.
      dec2flt_with_trace::<F>(s).0
  }

The integer-tier helper has the source type and exact executable excerpts
below (long explanatory comments are elided). In particular it returns a raw
BiasedFp and contains no from_u64 cast, primitive float multiplication,
division, negation, or from_bits call:

  pub fn compute_float<F: Float>(q: i64, mut w: u64) -> BiasedFp {
      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);
      let fp_error = BiasedFp::zero_pow2(-1);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if w == 0 || q < F::SMALLEST_POWER_OF_TEN as i64 {
          return fp_zero;
      } else if q > F::LARGEST_POWER_OF_TEN as i64 {
          return fp_inf;
      }
      // Normalize our significant digits, so the most-significant bit is set.
      let lz = w.leading_zeros();
      w <<= lz;
      let (lo, hi) = compute_product_approx(q, w, F::SIG_BITS as usize + 3);
      if lo == 0xFFFF_FFFF_FFFF_FFFF {
          let inside_safe_exponent = (q >= -27) && (q <= 55);
          if !inside_safe_exponent {
              return fp_error;
          }
      }
      let upperbit = (hi >> 63) as i32;
      let mut mantissa = hi >> (upperbit + 64 - F::SIG_BITS as i32 - 3);
      let mut power2 = power(q as i32) + upperbit - lz as i32 - F::EXP_MIN + 1;
      if power2 <= 0 {
          if -power2 + 1 >= 64 {
              // Have more than 64 bits below the minimum exponent, must be 0.
              return fp_zero;
          }
          // Have a subnormal value.
          mantissa >>= -power2 + 1;
          mantissa += mantissa & 1;
          mantissa >>= 1;
          power2 = (mantissa >= (1_u64 << F::SIG_BITS)) as i32;
          return BiasedFp { m: mantissa, p_biased: power2 };
      }
      // Need to handle rounding ties. Normally, we need to round up,
      // but if we fall right in between and we have an even basis, we
      // need to round down.
      if lo <= 1
          && q >= F::MIN_EXPONENT_ROUND_TO_EVEN as i64
          && q <= F::MAX_EXPONENT_ROUND_TO_EVEN as i64
          && mantissa & 0b11 == 0b01
          && (mantissa << (upperbit + 64 - F::SIG_BITS as i32 - 3)) == hi
      {
          // Zero the lowest bit, so we don't round up.
          mantissa &= !1_u64;
      }
      // Round-to-even, then shift the significant digits into place.
      mantissa += mantissa & 1;
      mantissa >>= 1;
      if mantissa >= (2_u64 << F::SIG_BITS) {
          // Rounding up overflowed, so the carry bit is set. Set the
          // mantissa to 1 (only the implicit, hidden bit is set) and
          // increase the exponent.
          mantissa = 1_u64 << F::SIG_BITS;
          power2 += 1;
      }
      // Zero out the hidden bit.
      mantissa &= !(1_u64 << F::SIG_BITS);
      if power2 >= F::INFINITE_POWER {
          // Exponent is above largest normal value, must be infinite.
          return fp_inf;
      }
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact slow-tier source body from crate/dec2flt/slow.rs:

  pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {
      const MAX_SHIFT: usize = 60;
      const NUM_POWERS: usize = 19;
      const POWERS: [u8; 19] =
          [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];

      let get_shift = |n| {
          if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }
      };

      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);

      let mut d = parse_decimal_seq(s);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if d.num_digits == 0 || d.decimal_point < -324 {
          return fp_zero;
      } else if d.decimal_point >= 310 {
          return fp_inf;
      }
      let mut exp2 = 0_i32;
      let mut loop_result = None;
      // Shift right toward (1/2 ... 1].
      while d.decimal_point > 0 && loop_result.is_none() {
          let n = d.decimal_point as usize;
          let shift = get_shift(n);
          d.right_shift(shift);
          if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_zero);
          } else {
              exp2 += shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // Shift left toward (1/2 ... 1].
      while d.decimal_point <= 0 && loop_result.is_none() {
          let shift = if d.decimal_point == 0 {
              match d.digits[0] {
                  digit if digit >= 5 => break,
                  0 | 1 => 2,
                  _ => 1,
              }
          } else {
              get_shift((-d.decimal_point) as _)
          };
          d.left_shift(shift);
          if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_inf);
          } else {
              exp2 -= shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
      exp2 -= 1;
      while F::EXP_MIN > exp2 {
          let mut n = (F::EXP_MIN - exp2) as usize;
          if n > MAX_SHIFT {
              n = MAX_SHIFT;
          }
          d.right_shift(n);
          exp2 += n as i32;
      }
      if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
          return fp_inf;
      }
      // Shift the decimal to the hidden bit, and then round the value
      // to get the high mantissa+1 bits.
      d.left_shift(F::SIG_BITS as usize + 1);
      let mut mantissa = d.round();
      if mantissa >= (1_u64 << (F::SIG_BITS + 1)) {
          // Rounding up overflowed to the carry bit, need to
          // shift back to the hidden bit.
          d.right_shift(1);
          exp2 += 1;
          mantissa = d.round();
          if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
              return fp_inf;
          }
      }
      let mut power2 = exp2 - F::EXP_MIN + 1;
      if mantissa < (1_u64 << F::SIG_BITS) {
          power2 -= 1;
      }
      // Zero out all the bits above the explicit mantissa bits.
      mantissa &= (1_u64 << F::SIG_BITS) - 1;
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact final numeric-sign excerpt from crate/dec2flt/mod.rs:

  let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
  let assembly_result = biased_fp_to_float::<F>(fp);
  let lexical_sign_applied = num.negative;
  let result = if lexical_sign_applied {
      core::ops::Neg::neg(assembly_result)
  } else {
      assembly_result
  };

Thus a numeric execution that reaches the integer/slow selection route
assembles its selected pair with from_bits through biased_fp_to_float and only
then conditionally negates it. A successful try_fast_path returns earlier and
does not perform this assembly. compute_float and parse_long_mantissa produce
raw BiasedFp pairs and do not call from_u64, primitive float multiplication,
division, negation, or from_bits; they do, however, execute constants derived
from SIG_TOTAL_BITS before producing those pairs.

Retained structural-boundary evidence
-------------------------------------

Several adjacent structural bindings cite this same evidence record. Their
pinned library source identities are:

  core/src/num/mod.rs
    f0820f9dfb94999440c8cb4a349736fa21df7e5668e19b6b49e016ff67c05ce3
  core/src/option.rs
    7cf61204b05d98a95bc2e322d5fbfc1f4f91505109971917d9a7fb47151c50e6
  core/src/slice/mod.rs
    354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840
  core/src/str/mod.rs
    284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78

Exact ASCII-digit body from core/src/num/mod.rs:

  pub const fn is_ascii_digit(&self) -> bool {
      matches!(*self, b'0'..=b'9')
  }

Exact Option control-flow bodies from core/src/option.rs:

  fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
      match self {
          Some(v) => ControlFlow::Continue(v),
          None => ControlFlow::Break(None),
      }
  }

  fn from_residual(residual: Option<convert::Infallible>) -> Self {
      match residual {
          None => None,
      }
  }

Exact slice observation bodies from core/src/slice/mod.rs:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

Exact string-byte body from core/src/str/mod.rs:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }
reference/model-evidence/binary64-probe.rs

Open file

#![feature(float_masks)]

use std::num::FpCategory;

fn bits(label: &str, value: f64) {
    println!("{label}={:016x}", value.to_bits());
}

fn main() {
    println!("target_arch={}", std::env::consts::ARCH);
    println!("mantissa_digits={}", f64::MANTISSA_DIGITS);
    println!("exponent_mask={:016x}", f64::EXPONENT_MASK);
    println!("mantissa_mask={:016x}", f64::MANTISSA_MASK);
    bits("nan", f64::NAN);
    bits("infinity", f64::INFINITY);
    bits("neg_infinity", f64::NEG_INFINITY);

    for (label, value) in [
        ("nan_category", f64::NAN),
        ("infinity_category", f64::INFINITY),
        ("zero_category", 0.0),
        ("subnormal_category", f64::from_bits(1)),
        ("normal_category", 1.0),
    ] {
        let category = match value.classify() {
            FpCategory::Nan => "Nan",
            FpCategory::Infinite => "Infinite",
            FpCategory::Zero => "Zero",
            FpCategory::Subnormal => "Subnormal",
            FpCategory::Normal => "Normal",
        };
        println!("{label}={category}");
    }

    let payload_nan_word = 0x7ff0_0000_0000_0001_u64;
    println!(
        "from_bits_to_bits={:016x}",
        f64::from_bits(payload_nan_word).to_bits()
    );
    bits("neg_payload_nan", -f64::from_bits(payload_nan_word));
    bits("neg_zero", -0.0);

    bits("subnormal_tie_to_even_zero", f64::from_bits(1) * 0.5);
    bits("subnormal_tie_to_even_two", f64::from_bits(3) * 0.5);
    bits("normal_division", 1.0 / 10.0);
    bits("mul_negative_zero", -0.0 * 2.0);
    bits("div_negative_zero", -1.0 / f64::INFINITY);
    bits("div_negative_infinity", 1.0 / -0.0);
    bits("mul_overflow", f64::MAX * (1.0 + f64::EPSILON));
    println!("mul_zero_infinity_is_nan={}", (0.0 * f64::INFINITY).is_nan());
    println!("div_zero_zero_is_nan={}", (0.0_f64 / 0.0_f64).is_nan());
    println!("mul_nan_is_nan={}", (f64::NAN * 1.0).is_nan());

    bits("cast_2_pow_53", (1_u64 << 53) as f64);
    bits("cast_2_pow_53_plus_1", ((1_u64 << 53) + 1) as f64);
}
Requirements depending on this item (32)
All 32 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourceTablet/model-support.json
Kindopaque external binding
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:8977fa78a04ffffa29236c2c1f31705760f72d5c8012337006ca8753b17365ee
Preservation current fingerprintpreservation-v1:8977fa78a04ffffa29236c2c1f31705760f72d5c8012337006ca8753b17365ee
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"52346a9eff57b2df264690fd9889257a49117a5df41389641f6e99d744ca19f4","lean_semantic_closure":"a30d1280b20ea5a49f1544af33a49ddeead48555dbbbc00b6bdf09c6f463add2","preamble_tex":""}
Correspondence current fingerprint{"own_tex":"52346a9eff57b2df264690fd9889257a49117a5df41389641f6e99d744ca19f4","lean_semantic_closure":"a30d1280b20ea5a49f1544af33a49ddeead48555dbbbc00b6bdf09c6f463add2","preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "3cb10eeb84ba33a59ed36af81970c9eb35112c64d8c26abd5f42dad6c8a38fac",
    "dep_statement_hashes": {},
    "combined_sound_fp": "preservation-v1:8977fa78a04ffffa29236c2c1f31705760f72d5c8012337006ca8753b17365ee"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Exact source record
{
  "name": "core.option.Option.Insts.CoreOpsTry_traitTry.branch",
  "extracted_signature": "{T : Type} : Option T → Result (core.ops.control_flow.ControlFlow (Option core.convert.Infallible) T)",
  "rust_symbol": "core::option::{impl core::ops::try_trait::Try for core::option::Option<T>}::branch",
  "raw_declaration_sha256": "0bf9b9d904111c7989cfc386f7bf22bbc7b1b9fd128306025fc6fe3916ef2bcf",
  "node": "ModelOptionBranch",
  "declaration": "dec2flt_model.ModelOptionBranch"
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/binary64-boundary.txt",
    "sha256": "fa45c924747337e8d6f84a19fe9e83fb9b33c73434887c0cf57c062533f51fe1",
    "cited_by": [
      "Tablet/ModelOptionBranch.tex",
      "Tablet/model-support.json"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-probe.rs",
    "sha256": "68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e",
    "cited_by": [
      "reference/model-evidence/binary64-boundary.txt"
    ]
  }
]

core::option::{impl core::ops::try_trait::FromResidual<core::option::Option<core::convert::Infallible>> for core::option::Option<T>}::from_residual

Inspect related source (1)

Related source and models come from the extraction records and declared dependencies.

Rust itemcore::option::{impl core::ops::try_trait::FromResidual<core::option::Option<core::convert::Infallible>> for core::option::Option<T>}::from_residual
Recorded source/rustc/library/core/src/option.rs
Lines2793:4–2793:67

The related-source link includes this operation’s Rust standard-library implementation.

Opaque extraction signature
(T : Type) : Option core.convert.Infallible → Result (Option T)
Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Aeneas
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelOptionFromResidual]
def ModelOptionFromResidual (T : Type)
    (x : Option core.convert.Infallible) : Result (Option T) :=
-- BODY
  match x with
  | none => ok none
  | some v => nomatch v
end dec2flt_model

Why this model is faithful

Definition

\mathsf{ModelOptionFromResidual} maps the only possible optional infallible residual, \mathsf{none}, to successful \mathsf{none}.

Preservation argument

Claim

For every optional infallible residual, this binding preserves the source residual conversion exactly.

Proof

Infallible has no values, so None is the sole possible residual and maps to None, verbatim the frozen Rust implementation recorded in reference/model-evidence/binary64-boundary.txt.
Authored arguments for individual requirements

Requirement: assembly correspondence

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification significand digit

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch abstract composition

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch component compliance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: exponent value agreement

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: integer correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: native correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper accumulated value

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper record bounds

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser equal target rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser exact rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser invalid rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser nan acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser non nan results

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected exponent

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected magnitude sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser signed zero

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: slow accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper nan

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Recorded review

CorrespondencePass
PreservationVerifierPass

ModelOptionFromResidual · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/binary64-boundary.txt

Open file

Primary evidence for the binary64 boundary
==========================================

Scope and identities
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction, the
adapted Rust crate retained in this repository, and the installed toolchain
named by modeling-input/SETUP.md. The probe source is retained at
reference/model-evidence/binary64-probe.rs; no scratch source is required to
reproduce it.

Toolchain executable:
  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
Target:
  x86_64-unknown-linux-gnu
rustc executable SHA-256:
  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
Probe source SHA-256:
  68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
Compiled probe SHA-256:
  f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
Frozen generated.lean SHA-256:
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9
Frozen modeling-input/manifest.json SHA-256:
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2
Approved Binary64ModelDefault.lean SHA-256 at the time of this record:
  03ae48fb631e6242bd21bf95d0481b66acae05f8cab343c7ab279b3c116538a3

Exact reproduction commands
---------------------------

Run from the repository root:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-probe.rs
  B=.trellis/scratch/binary64-probe
  "$R" --version --verbose
  sha256sum "$R"
  sha256sum "$P"
  "$R" --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$B"
  "$B"

Raw output
----------

  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
  rustc_sha256=162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  probe_sha256=68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
  binary_sha256=f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
  target_arch=x86_64
  mantissa_digits=53
  exponent_mask=7ff0000000000000
  mantissa_mask=000fffffffffffff
  nan=7ff8000000000000
  infinity=7ff0000000000000
  neg_infinity=fff0000000000000
  nan_category=Nan
  infinity_category=Infinite
  zero_category=Zero
  subnormal_category=Subnormal
  normal_category=Normal
  from_bits_to_bits=7ff0000000000001
  neg_payload_nan=fff0000000000001
  neg_zero=8000000000000000
  subnormal_tie_to_even_zero=0000000000000000
  subnormal_tie_to_even_two=0000000000000002
  normal_division=3fb999999999999a
  mul_negative_zero=8000000000000000
  div_negative_zero=8000000000000000
  div_negative_infinity=fff0000000000000
  mul_overflow=7ff0000000000000
  mul_zero_infinity_is_nan=true
  div_zero_zero_is_nan=true
  mul_nan_is_nan=true
  cast_2_pow_53=4340000000000000
  cast_2_pow_53_plus_1=4340000000000000

Pinned Rust library sources
---------------------------

The installed sources below belong to the same named toolchain. Their
SHA-256 identities are:

  core/src/primitive_docs.rs
    c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5
  core/src/num/f64.rs
    84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618
  core/src/clone.rs
    23f9cfc80347fde6b8457d46fbf7a2b8d9f34c8c58601b0b6f714ca2f6d1976b

The exact relevant text of core/src/primitive_docs.rs is:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The referenced primitive-f32 documentation supplies the common primitive
floating-point operation rules quoted next:

  /// - −0.0: IEEE 754 floating-point numbers have a bit that indicates their sign, so −0.0 is a
  ///   possible value. For comparison −0.0 = +0.0, but floating-point operations can carry
  ///   the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
  ///   a negative number rounded to a value smaller than a float can represent also produces −0.0.
  /// - [∞](#associatedconstant.INFINITY) and
  ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
  ///   like `1.0 / 0.0`.
  ///
  /// When a primitive operation (addition, subtraction, multiplication, or
  /// division) is performed on this type, the result is rounded according to the
  /// roundTiesToEven direction defined in IEEE 754-2008. That means:
  ///
  /// - The result is the representable value closest to the true value, if there
  ///   is a unique closest representable value.
  /// - If the true value is exactly half-way between two representable values,
  ///   the result is the one with an even least-significant binary digit.
  /// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
  ///   `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
  ///   true value's sign).

The same file explicitly separates arithmetic NaN choice from exact bitwise
operations; its exact relevant text is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.
  ///
  /// The following rules apply when a NaN value is returned from an arithmetic operation:
  /// - The result has a non-deterministic sign.
  /// - The quiet bit and payload are non-deterministically chosen from
  ///   the following set of options:
  ///
  ///   - **Preferred NaN**: The quiet bit is set and the payload is all-zero.
  ///   - **Quieting NaN propagation**: The quiet bit is set and the payload is copied from any input
  ///     operand that is a NaN. If the inputs and outputs do not have the same payload size (i.e., for
  ///     `as` casts), then
  ///     - If the output is smaller than the input, low-order bits of the payload get dropped.
  ///     - If the output is larger than the input, the payload gets filled up with 0s in the low-order
  ///       bits.
  ///   - **Unchanged NaN propagation**: The quiet bit and payload are copied from any input operand
  ///     that is a NaN. If the inputs and outputs do not have the same size (i.e., for `as` casts), the
  ///     same rules as for "quieting NaN propagation" apply, with one caveat: if the output is smaller
  ///     than the input, dropping the low-order bits may result in a payload of 0; a payload of 0 is not
  ///     possible with a signaling NaN (the all-0 significand encodes an infinity) so unchanged NaN
  ///     propagation cannot occur with some inputs.
  ///   - **Target-specific NaN**: The quiet bit is set and the payload is picked from a target-specific
  ///     set of "extra" possible NaN payloads. The set can depend on the input operand values.
  ///     See the table below for the concrete NaNs this set contains on various targets.
  ///
  /// | `target_arch` | Extra payloads possible on this platform |
  /// |---------------|------------------------------------------|
  /// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |

Thus the model's preferred quiet NaN is one permitted result whenever
multiplication or division returns NaN. This does not claim that arbitrary
Rust arithmetic NaNs have those exact bits. By contrast, unary negation and
bit conversion must preserve all non-sign bits exactly, including for every
NaN payload.

The exact relevant declarations in core/src/num/f64.rs are:

  pub const MANTISSA_DIGITS: u32 = 53;
  pub const NAN: f64 = 0.0_f64 / 0.0_f64;
  pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
  pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
  pub const SIGN_MASK: u64 = 0x8000_0000_0000_0000;
  pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;
  pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff;

  pub const fn classify(self) -> FpCategory {
      // We used to have complicated logic here that avoids the simple bit-based tests to work
      // around buggy codegen for x87 targets (see
      // https://github.com/rust-lang/rust/issues/114479). However, some LLVM versions later, none
      // of our tests is able to find any difference between the complicated and the naive
      // version, so now we are back to the naive version.
      let b = self.to_bits();
      match (b & Self::MANTISSA_MASK, b & Self::EXPONENT_MASK) {
          (0, Self::EXPONENT_MASK) => FpCategory::Infinite,
          (_, Self::EXPONENT_MASK) => FpCategory::Nan,
          (0, 0) => FpCategory::Zero,
          (_, 0) => FpCategory::Subnormal,
          _ => FpCategory::Normal,
      }
  }

  pub const fn to_bits(self) -> u64 {
      // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
      unsafe { mem::transmute(self) }
  }

  pub const fn from_bits(v: u64) -> Self {
      // It turns out the safety issues with sNaN were overblown! Hooray!
      // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
      unsafe { mem::transmute(v) }
  }

The exact scalar clone body in core/src/clone.rs is:

  impl const Clone for $t {
      #[inline(always)]
      fn clone(&self) -> Self {
          *self
      }
  }

Frozen adapted source
---------------------

The relevant retained source file hashes are:

  crate/traits.rs
    9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  crate/dec2flt/decimal.rs
    633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb
  crate/dec2flt/lemire.rs
    fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1
  crate/dec2flt/slow.rs
    93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485

The dispatcher excerpts below are reproduced from the identified file by
running these commands from the repository root:

  sha256sum crate/dec2flt/mod.rs
  sed -n '354,403p' crate/dec2flt/mod.rs
  sed -n '405,422p' crate/dec2flt/mod.rs
  sed -n '465,475p' crate/dec2flt/mod.rs
  sed -n '506,523p' crate/dec2flt/mod.rs

Exact constant and bit-conversion excerpt from crate/traits.rs:

  impl Float for f64 {
      type Int = u64;

      const INFINITY: Self = Self::INFINITY;
      const NEG_INFINITY: Self = Self::NEG_INFINITY;
      const NAN: Self = Self::NAN;
      // Bit-identical to the upstream `-f64::NAN`, without the unsupported
      // compile-time float negation.
      const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);

      const BITS: u32 = 64;
      const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
      const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
      const SIG_MASK: Self::Int = Self::MANTISSA_MASK;

      fn to_bits(self) -> Self::Int {
          self.to_bits()
      }

      fn classify(self) -> FpCategory {
          self.classify()
      }
  }

  impl FloatExt for f64 {
      #[inline]
      fn from_u64_bits(v: u64) -> Self {
          f64::from_bits(v)
      }

Exact derived-constant defaults from crate/traits.rs:

  /// The number of bits in the significand, *excluding* the hidden bit.
  const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;

  /// Number of bits in the exponent.
  const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

  /// The saturated (maximum bitpattern) value of the exponent, i.e. the infinite
  /// representation.
  ///
  /// This shifted fully right, use `EXP_MASK` for the shifted value.
  const EXP_SAT: u32 = (1 << Self::EXP_BITS) - 1;

  /// Signed version of `EXP_SAT` since we convert a lot.
  const INFINITE_POWER: i32 = Self::EXP_SAT as i32;

  /// The exponent bias value. This is also the maximum value of the exponent.
  const EXP_BIAS: u32 = Self::EXP_SAT >> 1;

  /// Minimum exponent value of normal values.
  const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Together with the f64-instance lines `BITS = 64` and
`SIG_TOTAL_BITS = Self::MANTISSA_DIGITS` in the preceding excerpt, these
defaults derive SIG_BITS, EXP_MIN, and INFINITE_POWER from the primitive
mantissa-digit constant rather than introducing independent parameters.

Exact asserted-conversion excerpt from crate/dec2flt/mod.rs:

  #[inline]
  // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
  // `charon::opaque` makes this entire asserted conversion external: both the
  // unchanged `debug_assert!` and the unchanged cast below are in the opaque
  // body. The callers, their fast-path guards, and their surrounding
  // computation remain mechanically visible. A corresponding model binding
  // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
  // exact binary64 conversion at or below that bound.
  #[charon::opaque]
  fn from_u64(v: u64) -> Self {
      debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
      v as _
  }

Here MAX_MANTISSA_FAST_PATH is the retained default 1 << 53.  The attribute is
attached to the function item, so the generated external stands for the whole
method, not merely the cast.  In the enabled-debug configuration the source
succeeds only when v <= 2^53; above it the assertion fails before the cast. On
the successful branch every integer is exactly representable, so the source
cast and the model rounder return the same word.

Exact power-table and assembly excerpts from crate/dec2flt/mod.rs:

  /// Maximum mantissa for the fast-path (`1 << 53` for f64).
  const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;

  const MAX_EXPONENT_FAST_PATH: i64 = 22;
  const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
  const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;

  fn pow10_fast_path(exponent: usize) -> Self {
      // These bit patterns are exactly the source table's rounded binary64
      // literals.  The match is the same masked lookup; it merely keeps float
      // constants out of Aeneas's unsupported constant interpreter.
      match exponent & 31 {
          0 => f64::from_bits(0x3FF0_0000_0000_0000),
          1 => f64::from_bits(0x4024_0000_0000_0000),
          2 => f64::from_bits(0x4059_0000_0000_0000),
          3 => f64::from_bits(0x408F_4000_0000_0000),
          4 => f64::from_bits(0x40C3_8800_0000_0000),
          5 => f64::from_bits(0x40F8_6A00_0000_0000),
          6 => f64::from_bits(0x412E_8480_0000_0000),
          7 => f64::from_bits(0x4163_12D0_0000_0000),
          8 => f64::from_bits(0x4197_D784_0000_0000),
          9 => f64::from_bits(0x41CD_CD65_0000_0000),
          10 => f64::from_bits(0x4202_A05F_2000_0000),
          11 => f64::from_bits(0x4237_4876_E800_0000),
          12 => f64::from_bits(0x426D_1A94_A200_0000),
          13 => f64::from_bits(0x42A2_309C_E540_0000),
          14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
          15 => f64::from_bits(0x430C_6BF5_2634_0000),
          16 => f64::from_bits(0x4341_C379_37E0_8000),
          17 => f64::from_bits(0x4376_3457_85D8_A000),
          18 => f64::from_bits(0x43AB_C16D_674E_C800),
          19 => f64::from_bits(0x43E1_58E4_6091_3D00),
          20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
          21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
          22 => f64::from_bits(0x4480_F0CF_064D_D592),
          _ => f64::from_bits(0),
      }
  }

  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

Exact native-call excerpt from crate/dec2flt/decimal.rs:

  fn can_use_fast_path<F: Lemire>(&self) -> bool {
      F::MIN_EXPONENT_FAST_PATH <= self.exponent
          && self.exponent <= F::MAX_EXPONENT_DISGUISED_FAST_PATH
          && self.mantissa <= F::MAX_MANTISSA_FAST_PATH
          && !self.many_digits
  }

  if !self.can_use_fast_path::<F>() {
      return None;
  }

  let value = if self.exponent <= F::MAX_EXPONENT_FAST_PATH {
      // normal fast path
      let value = F::from_u64(self.mantissa);
      if self.exponent < 0 {
          // Explicit trait calls preserve Rust arithmetic and resolve
          // the generic output type that Charon leaves ambiguous.
          core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
      } else {
          core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
      }
  } else {
      // disguised fast path
      let shift = self.exponent - F::MAX_EXPONENT_FAST_PATH;
      let mantissa = self.mantissa.checked_mul(INT_POW10[shift as usize])?;
      if mantissa > F::MAX_MANTISSA_FAST_PATH {
          return None;
      }
      core::ops::Mul::mul(
          F::from_u64(mantissa),
          F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
      )
  };

  if self.negative {
      Some(core::ops::Neg::neg(value))
  } else {
      Some(value)
  }

The preceding can_use_fast_path body, together with
MAX_MANTISSA_FAST_PATH = 1 << SIG_TOTAL_BITS and SIG_TOTAL_BITS = 53 for f64,
requires the exponent to lie between -22 and 37, the input mantissa to be at
most 2^53, and many_digits to be false. Consequently an ordinary arithmetic
call has a from_u64 operand in 0..=2^53. In its negative-exponent arm,
`-self.exponent` lies in 1..=22; in its nonnegative arm, `self.exponent` lies
in 0..=22. The disguised branch checks its multiplied mantissa against 2^53
before from_u64 and uses table index 22. The paired statement
Binary64NativeCallDomain does not assert this source reachability. It says
conditionally that a from_u64 argument at most 2^53 succeeds with a finite,
non-NaN word and that a table index at most 22 succeeds with a positive,
nonzero, finite, non-NaN word. Applying that conditional statement to the
guards just derived establishes those properties for the actual ordinary and
disguised calls, and in particular establishes that every executed divisor is
nonzero.

Exact special-value excerpt from crate/dec2flt/parse.rs:

  let float = match (register, len) {
      (INF_3, 3) => F::INFINITY,
      (INF_8, 8) => F::INFINITY,
      (NAN, 3) => F::NAN,
      _ => return None,
  };

  if negative { Some(-float) } else { Some(float) }

Thus the executed special route is INFINITY or NAN followed by conditional
negation; it does not select NEG_INFINITY or NEG_NAN directly.

The number helper has the exact source body

  pub fn parse_number(s: &[u8]) -> Option<Decimal> {
      if let Some((float, rest)) = parse_partial_number(s) {
          if rest == s.len() {
              return Some(float);
          }
      }
      None
  }

It returns only the Decimal produced by parse_partial_number; there is no
float type parameter or float operation at this boundary.

Exact dispatcher excerpts from crate/dec2flt/mod.rs
---------------------------------------------------

The entry of `dec2flt_with_trace` strips at most one leading sign, rejects
empty and sign-only inputs, calls `parse_number` on the unsigned body, and
calls `parse_inf_nan` only when `parse_number` returns `None`:

  /// Run the actual dispatcher while retaining its approved internal observations.
  pub fn dec2flt_with_trace<
      'a,
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {
          return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
      };
      let negative = c == b'-';
      if c == b'-' || c == b'+' {
          body = &body[1..];
      }
      if body.is_empty() {
          return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
      }

      let parse_number_result = parse_number(body);
      let parsed = match parse_number_result {
          Some(r) => r,
          None => {
              let parse_inf_nan_result = parse_inf_nan(body, negative);
              return match parse_inf_nan_result {
                  Some(value) => (
                      Ok(value),
                      Dec2FltTrace::Special {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                          result: value,
                      },
                  ),
                  None => (
                      Err(pfe_invalid()),
                      Dec2FltTrace::Invalid {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                      },
                  ),
              };
          }
      };

Thus every `Err` arm shown here returns before `parsed` is available and before
the native, integer, slow, assembly, or final-negation code below it can run.
On a numeric result, the lexical sign is copied into the parsed record before
the native attempt, whose successful result also returns before raw-pair
assembly:

      let mut num = parsed;
      num.negative = negative;
      if !cfg!(feature = "optimize_for_size") {
          let fast_path_result = num.try_fast_path::<F>();
          if let Some(value) = fast_path_result {
              return (
                  Ok(value),
                  Dec2FltTrace::FastPath {
                      body,
                      negative,
                      parse_number_result,
                      fast_path_input: num,
                      fast_path_result,
                      result: value,
                  },
              );
          }
      }

If the native attempt does not return, the selected raw pair is assembled and
the source then conditionally negates it according to the lexical-sign flag:

      let selected_pair = fp;
      // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
      // it neither changes the selected pair nor introduces a new branch or call.
      let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
      let assembly_result = biased_fp_to_float::<F>(fp);
      let lexical_sign_applied = num.negative;
      let result = if lexical_sign_applied {
          core::ops::Neg::neg(assembly_result)
      } else {
          assembly_result
      };

The public `dec2flt` executes that same route and returns its result projection;
it does not reimplement or reorder any parsing or float operation:

  /// Converts a decimal string into a floating point number.
  #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
  pub fn dec2flt<
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &str,
  ) -> Result<F, ParseFloatError> {
      // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
      // clause admits exactly the same instances and lets Charon resolve the
      // explicit, source-equivalent final negation.
      // The public function is now exactly the result projection of the single
      // instrumented implementation.  No conversion step is duplicated, and
      // discarding the trace cannot affect Rust evaluation or the returned bits.
      dec2flt_with_trace::<F>(s).0
  }

The integer-tier helper has the source type and exact executable excerpts
below (long explanatory comments are elided). In particular it returns a raw
BiasedFp and contains no from_u64 cast, primitive float multiplication,
division, negation, or from_bits call:

  pub fn compute_float<F: Float>(q: i64, mut w: u64) -> BiasedFp {
      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);
      let fp_error = BiasedFp::zero_pow2(-1);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if w == 0 || q < F::SMALLEST_POWER_OF_TEN as i64 {
          return fp_zero;
      } else if q > F::LARGEST_POWER_OF_TEN as i64 {
          return fp_inf;
      }
      // Normalize our significant digits, so the most-significant bit is set.
      let lz = w.leading_zeros();
      w <<= lz;
      let (lo, hi) = compute_product_approx(q, w, F::SIG_BITS as usize + 3);
      if lo == 0xFFFF_FFFF_FFFF_FFFF {
          let inside_safe_exponent = (q >= -27) && (q <= 55);
          if !inside_safe_exponent {
              return fp_error;
          }
      }
      let upperbit = (hi >> 63) as i32;
      let mut mantissa = hi >> (upperbit + 64 - F::SIG_BITS as i32 - 3);
      let mut power2 = power(q as i32) + upperbit - lz as i32 - F::EXP_MIN + 1;
      if power2 <= 0 {
          if -power2 + 1 >= 64 {
              // Have more than 64 bits below the minimum exponent, must be 0.
              return fp_zero;
          }
          // Have a subnormal value.
          mantissa >>= -power2 + 1;
          mantissa += mantissa & 1;
          mantissa >>= 1;
          power2 = (mantissa >= (1_u64 << F::SIG_BITS)) as i32;
          return BiasedFp { m: mantissa, p_biased: power2 };
      }
      // Need to handle rounding ties. Normally, we need to round up,
      // but if we fall right in between and we have an even basis, we
      // need to round down.
      if lo <= 1
          && q >= F::MIN_EXPONENT_ROUND_TO_EVEN as i64
          && q <= F::MAX_EXPONENT_ROUND_TO_EVEN as i64
          && mantissa & 0b11 == 0b01
          && (mantissa << (upperbit + 64 - F::SIG_BITS as i32 - 3)) == hi
      {
          // Zero the lowest bit, so we don't round up.
          mantissa &= !1_u64;
      }
      // Round-to-even, then shift the significant digits into place.
      mantissa += mantissa & 1;
      mantissa >>= 1;
      if mantissa >= (2_u64 << F::SIG_BITS) {
          // Rounding up overflowed, so the carry bit is set. Set the
          // mantissa to 1 (only the implicit, hidden bit is set) and
          // increase the exponent.
          mantissa = 1_u64 << F::SIG_BITS;
          power2 += 1;
      }
      // Zero out the hidden bit.
      mantissa &= !(1_u64 << F::SIG_BITS);
      if power2 >= F::INFINITE_POWER {
          // Exponent is above largest normal value, must be infinite.
          return fp_inf;
      }
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact slow-tier source body from crate/dec2flt/slow.rs:

  pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {
      const MAX_SHIFT: usize = 60;
      const NUM_POWERS: usize = 19;
      const POWERS: [u8; 19] =
          [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];

      let get_shift = |n| {
          if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }
      };

      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);

      let mut d = parse_decimal_seq(s);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if d.num_digits == 0 || d.decimal_point < -324 {
          return fp_zero;
      } else if d.decimal_point >= 310 {
          return fp_inf;
      }
      let mut exp2 = 0_i32;
      let mut loop_result = None;
      // Shift right toward (1/2 ... 1].
      while d.decimal_point > 0 && loop_result.is_none() {
          let n = d.decimal_point as usize;
          let shift = get_shift(n);
          d.right_shift(shift);
          if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_zero);
          } else {
              exp2 += shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // Shift left toward (1/2 ... 1].
      while d.decimal_point <= 0 && loop_result.is_none() {
          let shift = if d.decimal_point == 0 {
              match d.digits[0] {
                  digit if digit >= 5 => break,
                  0 | 1 => 2,
                  _ => 1,
              }
          } else {
              get_shift((-d.decimal_point) as _)
          };
          d.left_shift(shift);
          if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_inf);
          } else {
              exp2 -= shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
      exp2 -= 1;
      while F::EXP_MIN > exp2 {
          let mut n = (F::EXP_MIN - exp2) as usize;
          if n > MAX_SHIFT {
              n = MAX_SHIFT;
          }
          d.right_shift(n);
          exp2 += n as i32;
      }
      if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
          return fp_inf;
      }
      // Shift the decimal to the hidden bit, and then round the value
      // to get the high mantissa+1 bits.
      d.left_shift(F::SIG_BITS as usize + 1);
      let mut mantissa = d.round();
      if mantissa >= (1_u64 << (F::SIG_BITS + 1)) {
          // Rounding up overflowed to the carry bit, need to
          // shift back to the hidden bit.
          d.right_shift(1);
          exp2 += 1;
          mantissa = d.round();
          if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
              return fp_inf;
          }
      }
      let mut power2 = exp2 - F::EXP_MIN + 1;
      if mantissa < (1_u64 << F::SIG_BITS) {
          power2 -= 1;
      }
      // Zero out all the bits above the explicit mantissa bits.
      mantissa &= (1_u64 << F::SIG_BITS) - 1;
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact final numeric-sign excerpt from crate/dec2flt/mod.rs:

  let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
  let assembly_result = biased_fp_to_float::<F>(fp);
  let lexical_sign_applied = num.negative;
  let result = if lexical_sign_applied {
      core::ops::Neg::neg(assembly_result)
  } else {
      assembly_result
  };

Thus a numeric execution that reaches the integer/slow selection route
assembles its selected pair with from_bits through biased_fp_to_float and only
then conditionally negates it. A successful try_fast_path returns earlier and
does not perform this assembly. compute_float and parse_long_mantissa produce
raw BiasedFp pairs and do not call from_u64, primitive float multiplication,
division, negation, or from_bits; they do, however, execute constants derived
from SIG_TOTAL_BITS before producing those pairs.

Retained structural-boundary evidence
-------------------------------------

Several adjacent structural bindings cite this same evidence record. Their
pinned library source identities are:

  core/src/num/mod.rs
    f0820f9dfb94999440c8cb4a349736fa21df7e5668e19b6b49e016ff67c05ce3
  core/src/option.rs
    7cf61204b05d98a95bc2e322d5fbfc1f4f91505109971917d9a7fb47151c50e6
  core/src/slice/mod.rs
    354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840
  core/src/str/mod.rs
    284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78

Exact ASCII-digit body from core/src/num/mod.rs:

  pub const fn is_ascii_digit(&self) -> bool {
      matches!(*self, b'0'..=b'9')
  }

Exact Option control-flow bodies from core/src/option.rs:

  fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
      match self {
          Some(v) => ControlFlow::Continue(v),
          None => ControlFlow::Break(None),
      }
  }

  fn from_residual(residual: Option<convert::Infallible>) -> Self {
      match residual {
          None => None,
      }
  }

Exact slice observation bodies from core/src/slice/mod.rs:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

Exact string-byte body from core/src/str/mod.rs:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }
reference/model-evidence/binary64-probe.rs

Open file

#![feature(float_masks)]

use std::num::FpCategory;

fn bits(label: &str, value: f64) {
    println!("{label}={:016x}", value.to_bits());
}

fn main() {
    println!("target_arch={}", std::env::consts::ARCH);
    println!("mantissa_digits={}", f64::MANTISSA_DIGITS);
    println!("exponent_mask={:016x}", f64::EXPONENT_MASK);
    println!("mantissa_mask={:016x}", f64::MANTISSA_MASK);
    bits("nan", f64::NAN);
    bits("infinity", f64::INFINITY);
    bits("neg_infinity", f64::NEG_INFINITY);

    for (label, value) in [
        ("nan_category", f64::NAN),
        ("infinity_category", f64::INFINITY),
        ("zero_category", 0.0),
        ("subnormal_category", f64::from_bits(1)),
        ("normal_category", 1.0),
    ] {
        let category = match value.classify() {
            FpCategory::Nan => "Nan",
            FpCategory::Infinite => "Infinite",
            FpCategory::Zero => "Zero",
            FpCategory::Subnormal => "Subnormal",
            FpCategory::Normal => "Normal",
        };
        println!("{label}={category}");
    }

    let payload_nan_word = 0x7ff0_0000_0000_0001_u64;
    println!(
        "from_bits_to_bits={:016x}",
        f64::from_bits(payload_nan_word).to_bits()
    );
    bits("neg_payload_nan", -f64::from_bits(payload_nan_word));
    bits("neg_zero", -0.0);

    bits("subnormal_tie_to_even_zero", f64::from_bits(1) * 0.5);
    bits("subnormal_tie_to_even_two", f64::from_bits(3) * 0.5);
    bits("normal_division", 1.0 / 10.0);
    bits("mul_negative_zero", -0.0 * 2.0);
    bits("div_negative_zero", -1.0 / f64::INFINITY);
    bits("div_negative_infinity", 1.0 / -0.0);
    bits("mul_overflow", f64::MAX * (1.0 + f64::EPSILON));
    println!("mul_zero_infinity_is_nan={}", (0.0 * f64::INFINITY).is_nan());
    println!("div_zero_zero_is_nan={}", (0.0_f64 / 0.0_f64).is_nan());
    println!("mul_nan_is_nan={}", (f64::NAN * 1.0).is_nan());

    bits("cast_2_pow_53", (1_u64 << 53) as f64);
    bits("cast_2_pow_53_plus_1", ((1_u64 << 53) + 1) as f64);
}
Requirements depending on this item (32)
All 32 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourceTablet/model-support.json
Kindopaque external binding
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:8c069446ece4c6e316cf2d1164b6a8b1677e411b64b676e8370669482de5f36b
Preservation current fingerprintpreservation-v1:8c069446ece4c6e316cf2d1164b6a8b1677e411b64b676e8370669482de5f36b
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"f3d98cec684f8005e8fc2d92d579677f40c057555c8038016be87f598d853d28","lean_semantic_closure":"a92cc17aaf6bc78d97354592f0cdef183839d0e8d53ae8111bc07a81d1baa8c7","preamble_tex":""}
Correspondence current fingerprint{"own_tex":"f3d98cec684f8005e8fc2d92d579677f40c057555c8038016be87f598d853d28","lean_semantic_closure":"a92cc17aaf6bc78d97354592f0cdef183839d0e8d53ae8111bc07a81d1baa8c7","preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "579f42346f1f174e3adf073e89ba2a7430538f6d45182d9f441ac52689b0393b",
    "dep_statement_hashes": {},
    "combined_sound_fp": "preservation-v1:8c069446ece4c6e316cf2d1164b6a8b1677e411b64b676e8370669482de5f36b"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Exact source record
{
  "name": "core.option.Option.Insts.CoreOpsTry_traitFromResidualOptionInfallible.from_residual",
  "extracted_signature": "(T : Type) : Option core.convert.Infallible → Result (Option T)",
  "rust_symbol": "core::option::{impl core::ops::try_trait::FromResidual<core::option::Option<core::convert::Infallible>> for core::option::Option<T>}::from_residual",
  "raw_declaration_sha256": "4c10afcd703d980e458ca8e8ce2ecf1d0c415721467b76953e9223648ea5106c",
  "node": "ModelOptionFromResidual",
  "declaration": "dec2flt_model.ModelOptionFromResidual"
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/binary64-boundary.txt",
    "sha256": "fa45c924747337e8d6f84a19fe9e83fb9b33c73434887c0cf57c062533f51fe1",
    "cited_by": [
      "Tablet/ModelOptionFromResidual.tex",
      "Tablet/model-support.json"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-probe.rs",
    "sha256": "68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e",
    "cited_by": [
      "reference/model-evidence/binary64-boundary.txt"
    ]
  }
]

core::slice::{[T]}::first

Inspect related source (1)

Related source and models come from the extraction records and declared dependencies.

Rust itemcore::slice::{[T]}::first
Recorded source/rustc/library/core/src/slice/mod.rs
Lines155:4–155:43

The related-source link includes this operation’s Rust standard-library implementation.

Opaque extraction signature
{T : Type} : Slice T → Result (Option T)
Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Aeneas
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelSliceFirst]
def ModelSliceFirst {T : Type} (s : Slice T) : Result (Option T) :=
-- BODY
  ok s.val.head?
end dec2flt_model

Why this model is faithful

Definition

\mathsf{ModelSliceFirst}(s) successfully returns the first element of s when present and \mathsf{none} when s is empty.

Preservation argument

Claim

For every Aeneas Slice Std.U8 value satisfying SourceValidByteSlice and representing a Rust &[u8] in the complete configured source domain, this binding returns Ok None for the empty slice and otherwise returns Ok (Some x), where x is the same first byte that the source returns by shared reference.

Proof

By SourceValidByteSlice and the configured-domain evidence in reference/model-evidence/source-valid-byte-slice.txt, the stated predicate covers every configured Rust &[u8] and adds no restriction on its byte values. The pinned Aeneas definition represents a slice by its complete ordered list. If that list is empty, both the binding and the pinned Rust first body return None. If it is x :: xs, the binding returns Some x, while the Rust body returns a shared reference to that same head. These bodies are pinned in reference/model-evidence/binary64-boundary.txt; the Aeneas commit, slice representation, shared-borrow translation rule, extracted signature, and complete call-site inventory are pinned in reference/model-evidence/aeneas-slice-observations.txt. Every frozen call infers T = Std.U8. Aeneas therefore represents the returned &u8 by the same copied U8 value. All such call sites only read that byte, so neither mutable state nor reference identity is observable; erasing its lifetime and aliasing information is harmless. The input ordered list is unchanged in both cases.
Authored arguments for individual requirements

Requirement: assembly correspondence

The direct biased_fp_to_float subject has no slice-first call, so this binding is noninterfering.

Requirement: classification determinism

This mathematical classification statement executes no source slice operation, so the binding does not alter its finite-byte-string domain.

Requirement: classification significand digit

This mathematical grammar statement executes no source slice operation, so the binding does not alter its digit conclusion.

Requirement: classification totality

This mathematical classification statement executes no source slice operation, so the binding does not restrict its finite-byte-string domain.

Requirement: dispatch abstract composition

The dispatcher uses this binding only to observe the first byte of the source-valid Std.U8 body. The proved empty/head correspondence preserves exactly the branch input used by abstract composition.

Requirement: dispatch component compliance

The configured Rust string supplies a byte slice satisfying SourceValidByteSlice; the binding preserves the dispatcher's empty test and copied sign byte before any component call.

Requirement: exponent value agreement

This mathematical comparison of two decimal-value interpretations has no slice-first call, so the binding is noninterfering.

Requirement: integer correct or defer

The direct compute_float subject accepts integer values and has no slice-first call, so the binding is noninterfering.

Requirement: native correct or defer

The direct try_fast_path subject accepts a Decimal and has no slice-first call, so the binding is noninterfering.

Requirement: number helper acceptance

The direct parse_number subject has no first call; its slice observations are therefore unchanged by this binding.

Requirement: number helper accumulated value

The direct parse_number subject has no first call; its returned record and accumulated value are therefore unchanged by this binding.

Requirement: number helper record bounds

The direct parse_number subject has no first call, so this binding neither narrows its SourceValidByteSlice domain nor changes a returned record.

Requirement: number helper rejection

The direct parse_number subject has no first call; its None observations are therefore unchanged by this binding.

Requirement: parser accumulated rounding

Every configured parser input yields a source-valid byte body; preserving its empty/head observation keeps the same execution and hence the same accumulated-rounding result.

Requirement: parser equal target rounding

On the full SourceValidByteSlice body domain, the same first byte selects the same parser path, leaving the stated equal-target bridge unchanged.

Requirement: parser exact rounding

On the full source-valid byte-body domain, the exact empty/head result preserves the parser execution whose returned rounding this goal observes.

Requirement: parser infinity

The copied first byte is exactly the byte used for lexical sign removal, so infinity spelling and its lexical sign are preserved.

Requirement: parser invalid rejection

The empty/head cases and first byte are unchanged for every source-valid string, so the parser reaches the same invalid-input decision.

Requirement: parser nan acceptance

The empty/head cases and copied sign byte are unchanged, so the parser passes the same unsigned body to the NaN helper and preserves its result.

Requirement: parser non nan results

The exact first-byte observation preserves sign stripping and subsequent branch selection, so no successful-result or NaN-classification observation changes.

Requirement: parser numeric acceptance

The binding preserves the initial nonempty test and optional sign byte on every configured Rust string, so the same numeric body is accepted.

Requirement: parser numeric sign

Returning the same copied first byte preserves whether the dispatcher strips + or - and records the negative flag.

Requirement: parser selected exponent

The same initial byte selects the same sign-stripped body and subsequent execution, so every selected raw pair and exponent observation is unchanged.

Requirement: parser selected magnitude sign

The same initial byte preserves lexical sign stripping and the selected unsigned raw-pair assembly observed by this goal.

Requirement: parser signed zero

The copied head byte preserves the lexical sign that the source later applies to an accepted zero.

Requirement: parser totality

For every configured Rust string, its bytes satisfy SourceValidByteSlice; both empty and nonempty first-byte observations return normally exactly as the source does.

Requirement: rounding determinism

This mathematical real-number rounding statement has no slice-first call, so the binding is noninterfering.

Requirement: rounding totality

This mathematical real-number rounding statement has no slice-first call, so the binding is noninterfering.

Requirement: slow accumulated rounding

The direct parse_long_mantissa subject has no slice-first call, so its full source-valid slice domain and result are unchanged.

Requirement: special helper infinity

The direct parse_inf_nan subject has no slice-first call, so its byte-slice and separate-sign observations are unchanged.

Requirement: special helper nan

The direct parse_inf_nan subject has no slice-first call, so its byte-slice and NaN observations are unchanged.

Requirement: special helper rejection

The direct parse_inf_nan subject has no slice-first call, so its rejection observation on every source-valid byte slice is unchanged.

Recorded review

CorrespondencePass
PreservationVerifierPass

ModelSliceFirst · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/aeneas-slice-observations.txt

Open file

Aeneas slice-observation evidence

Commands were run from the repository root unless an explicit -C directory is
shown.  The Aeneas checkout and executable used for the frozen extraction are:

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

  sha256sum /home/leanagent/pv_spike/tools/aeneas/bin/aeneas
  9f446d2aaf59e8e705e36d05cb993f1c6ab0e97f8dc6fd2f19907a86ede30922

  sha256sum /home/leanagent/pv_spike/tools/aeneas/backends/lean/Aeneas/Std/Slice.lean
  c941826e8da78e1c517cae719b9f58e64671331957cce0b3c22c321a6c62c328

At that commit, Aeneas/Std/Slice.lean:22 defines:

  def Slice (α : Type u) := { l : List α // l.length ≤ Usize.max }

Thus an Aeneas Slice is an ordered List subtype.  Its val field is the complete
ordered element list; the subtype property is the Usize.max length bound.

  sha256sum /home/leanagent/pv_spike/tools/aeneas/documentation/aeneas-overview.md
  8ba474e55ec3375f6eaccc7532715e29dc1d0d6473423a02100bb805a446c3a7

At that commit, aeneas-overview.md:240 states the translation convention that
shared borrows (&T) become plain T parameters and that the value may be copied.
The summary table at line 432 additionally describes the resulting value as
immutable.  Returned shared byte references therefore have no mutable backward
continuation or separately observable identity in the generated model.

The Rust source is the configured nightly-2026-06-01 core library:

  sha256sum /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/slice/mod.rs
  354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840

Its exact observation bodies at core/src/slice/mod.rs:155-156 and 198-199 are:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

These bodies and the same core source hash are also pinned in
reference/model-evidence/binary64-boundary.txt.  The complete configured Rust
&[u8] domain, including the isize::MAX byte-length condition, is independently
pinned in reference/model-evidence/source-valid-byte-slice.txt.

The frozen generated module has this identity:

  sha256sum generated.lean
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9

Its external signatures at generated.lean:316 and 323-324 are:

  axiom core.slice.Slice.first {T : Type} :
    Slice T → Result (Option T)

  axiom core.slice.Slice.split_first {T : Type} :
    Slice T → Result (Option (T × Slice T))

The following command enumerates every declaration or call occurrence:

  rg -n 'core\.slice\.Slice\.(first|split_first)' generated.lean

Raw result:

  316:axiom core.slice.Slice.first {T : Type} : Slice T → Result (Option T)
  323:axiom core.slice.Slice.split_first
  4290:  let o ← core.slice.Slice.split_first s_ref
  4338:    let o ← core.slice.Slice.split_first s
  4591:  let o ← core.slice.Slice.split_first s1
  4613:    let o1 ← core.slice.Slice.split_first s2
  4812:  let o ← core.slice.Slice.first body

All five calls infer T = Std.U8:

* generated.lean:4288-4290 declares parse_scientific with
  s_ref : Slice Std.U8 and calls split_first on s_ref.
* generated.lean:4332-4338 declares try_parse_19digits_loop.body with
  s : Slice Std.U8 and calls split_first on s.
* generated.lean:4582-4591 declares parse_partial_number with
  s : Slice Std.U8; try_parse_digits returns s1 : Slice Std.U8, which is the
  first split_first argument.
* In the same parse_partial_number definition, every branch defining s2 returns
  either s1 or the Std.U8 tail s_next.  Hence the call on s2 at line 4613 also
  has T = Std.U8.
* generated.lean:4803-4812 declares dec2flt_with_trace; body is returned by
  core.str.Str.as_bytes, whose signature at line 330 is
  Str → Result (Slice Std.U8), and first is called on body.

The adapted sources containing the corresponding calls are pinned by:

  sha256sum crate/dec2flt/parse.rs crate/dec2flt/mod.rs
  50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f  crate/dec2flt/parse.rs
  ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d  crate/dec2flt/mod.rs

The five exact Rust call sites are:

  crate/dec2flt/parse.rs:65
      if let Some((c, s_next)) = s.split_first() {
          let digit = c.wrapping_sub(b'0');
          ...
          s = s_next;

  crate/dec2flt/parse.rs:127
      if let Some((&c, s_next)) = s.split_first() {
          negative = c == b'-';
          if c == b'-' || c == b'+' { s = s_next; }

  crate/dec2flt/parse.rs:177
      if let Some((&b'.', s_next)) = s.split_first() {
          s = s_next;

  crate/dec2flt/parse.rs:194
      if let Some((&c, s_next)) = s.split_first() {
          if c == b'e' || c == b'E' { s = s_next; ... }

  crate/dec2flt/mod.rs:365
      let Some(&c) = body.first() else { ... };

Thus every call is on &[u8].  The call sites either destructure the shared byte
reference into a copied byte or invoke an immutable u8 method through it, and
they use the shared tail only as the next immutable slice.  There is no mutation
through a returned reference and no pointer or lifetime identity observation.
Consequently, at every frozen GOAL-facing call site, erasing the
shared-reference lifetime/aliasing data retains the observed U8 value and, for
split_first, the same ordered suffix.
reference/model-evidence/binary64-boundary.txt

Open file

Primary evidence for the binary64 boundary
==========================================

Scope and identities
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction, the
adapted Rust crate retained in this repository, and the installed toolchain
named by modeling-input/SETUP.md. The probe source is retained at
reference/model-evidence/binary64-probe.rs; no scratch source is required to
reproduce it.

Toolchain executable:
  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
Target:
  x86_64-unknown-linux-gnu
rustc executable SHA-256:
  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
Probe source SHA-256:
  68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
Compiled probe SHA-256:
  f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
Frozen generated.lean SHA-256:
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9
Frozen modeling-input/manifest.json SHA-256:
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2
Approved Binary64ModelDefault.lean SHA-256 at the time of this record:
  03ae48fb631e6242bd21bf95d0481b66acae05f8cab343c7ab279b3c116538a3

Exact reproduction commands
---------------------------

Run from the repository root:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-probe.rs
  B=.trellis/scratch/binary64-probe
  "$R" --version --verbose
  sha256sum "$R"
  sha256sum "$P"
  "$R" --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$B"
  "$B"

Raw output
----------

  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
  rustc_sha256=162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  probe_sha256=68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
  binary_sha256=f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
  target_arch=x86_64
  mantissa_digits=53
  exponent_mask=7ff0000000000000
  mantissa_mask=000fffffffffffff
  nan=7ff8000000000000
  infinity=7ff0000000000000
  neg_infinity=fff0000000000000
  nan_category=Nan
  infinity_category=Infinite
  zero_category=Zero
  subnormal_category=Subnormal
  normal_category=Normal
  from_bits_to_bits=7ff0000000000001
  neg_payload_nan=fff0000000000001
  neg_zero=8000000000000000
  subnormal_tie_to_even_zero=0000000000000000
  subnormal_tie_to_even_two=0000000000000002
  normal_division=3fb999999999999a
  mul_negative_zero=8000000000000000
  div_negative_zero=8000000000000000
  div_negative_infinity=fff0000000000000
  mul_overflow=7ff0000000000000
  mul_zero_infinity_is_nan=true
  div_zero_zero_is_nan=true
  mul_nan_is_nan=true
  cast_2_pow_53=4340000000000000
  cast_2_pow_53_plus_1=4340000000000000

Pinned Rust library sources
---------------------------

The installed sources below belong to the same named toolchain. Their
SHA-256 identities are:

  core/src/primitive_docs.rs
    c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5
  core/src/num/f64.rs
    84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618
  core/src/clone.rs
    23f9cfc80347fde6b8457d46fbf7a2b8d9f34c8c58601b0b6f714ca2f6d1976b

The exact relevant text of core/src/primitive_docs.rs is:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The referenced primitive-f32 documentation supplies the common primitive
floating-point operation rules quoted next:

  /// - −0.0: IEEE 754 floating-point numbers have a bit that indicates their sign, so −0.0 is a
  ///   possible value. For comparison −0.0 = +0.0, but floating-point operations can carry
  ///   the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
  ///   a negative number rounded to a value smaller than a float can represent also produces −0.0.
  /// - [∞](#associatedconstant.INFINITY) and
  ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
  ///   like `1.0 / 0.0`.
  ///
  /// When a primitive operation (addition, subtraction, multiplication, or
  /// division) is performed on this type, the result is rounded according to the
  /// roundTiesToEven direction defined in IEEE 754-2008. That means:
  ///
  /// - The result is the representable value closest to the true value, if there
  ///   is a unique closest representable value.
  /// - If the true value is exactly half-way between two representable values,
  ///   the result is the one with an even least-significant binary digit.
  /// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
  ///   `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
  ///   true value's sign).

The same file explicitly separates arithmetic NaN choice from exact bitwise
operations; its exact relevant text is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.
  ///
  /// The following rules apply when a NaN value is returned from an arithmetic operation:
  /// - The result has a non-deterministic sign.
  /// - The quiet bit and payload are non-deterministically chosen from
  ///   the following set of options:
  ///
  ///   - **Preferred NaN**: The quiet bit is set and the payload is all-zero.
  ///   - **Quieting NaN propagation**: The quiet bit is set and the payload is copied from any input
  ///     operand that is a NaN. If the inputs and outputs do not have the same payload size (i.e., for
  ///     `as` casts), then
  ///     - If the output is smaller than the input, low-order bits of the payload get dropped.
  ///     - If the output is larger than the input, the payload gets filled up with 0s in the low-order
  ///       bits.
  ///   - **Unchanged NaN propagation**: The quiet bit and payload are copied from any input operand
  ///     that is a NaN. If the inputs and outputs do not have the same size (i.e., for `as` casts), the
  ///     same rules as for "quieting NaN propagation" apply, with one caveat: if the output is smaller
  ///     than the input, dropping the low-order bits may result in a payload of 0; a payload of 0 is not
  ///     possible with a signaling NaN (the all-0 significand encodes an infinity) so unchanged NaN
  ///     propagation cannot occur with some inputs.
  ///   - **Target-specific NaN**: The quiet bit is set and the payload is picked from a target-specific
  ///     set of "extra" possible NaN payloads. The set can depend on the input operand values.
  ///     See the table below for the concrete NaNs this set contains on various targets.
  ///
  /// | `target_arch` | Extra payloads possible on this platform |
  /// |---------------|------------------------------------------|
  /// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |

Thus the model's preferred quiet NaN is one permitted result whenever
multiplication or division returns NaN. This does not claim that arbitrary
Rust arithmetic NaNs have those exact bits. By contrast, unary negation and
bit conversion must preserve all non-sign bits exactly, including for every
NaN payload.

The exact relevant declarations in core/src/num/f64.rs are:

  pub const MANTISSA_DIGITS: u32 = 53;
  pub const NAN: f64 = 0.0_f64 / 0.0_f64;
  pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
  pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
  pub const SIGN_MASK: u64 = 0x8000_0000_0000_0000;
  pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;
  pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff;

  pub const fn classify(self) -> FpCategory {
      // We used to have complicated logic here that avoids the simple bit-based tests to work
      // around buggy codegen for x87 targets (see
      // https://github.com/rust-lang/rust/issues/114479). However, some LLVM versions later, none
      // of our tests is able to find any difference between the complicated and the naive
      // version, so now we are back to the naive version.
      let b = self.to_bits();
      match (b & Self::MANTISSA_MASK, b & Self::EXPONENT_MASK) {
          (0, Self::EXPONENT_MASK) => FpCategory::Infinite,
          (_, Self::EXPONENT_MASK) => FpCategory::Nan,
          (0, 0) => FpCategory::Zero,
          (_, 0) => FpCategory::Subnormal,
          _ => FpCategory::Normal,
      }
  }

  pub const fn to_bits(self) -> u64 {
      // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
      unsafe { mem::transmute(self) }
  }

  pub const fn from_bits(v: u64) -> Self {
      // It turns out the safety issues with sNaN were overblown! Hooray!
      // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
      unsafe { mem::transmute(v) }
  }

The exact scalar clone body in core/src/clone.rs is:

  impl const Clone for $t {
      #[inline(always)]
      fn clone(&self) -> Self {
          *self
      }
  }

Frozen adapted source
---------------------

The relevant retained source file hashes are:

  crate/traits.rs
    9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  crate/dec2flt/decimal.rs
    633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb
  crate/dec2flt/lemire.rs
    fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1
  crate/dec2flt/slow.rs
    93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485

The dispatcher excerpts below are reproduced from the identified file by
running these commands from the repository root:

  sha256sum crate/dec2flt/mod.rs
  sed -n '354,403p' crate/dec2flt/mod.rs
  sed -n '405,422p' crate/dec2flt/mod.rs
  sed -n '465,475p' crate/dec2flt/mod.rs
  sed -n '506,523p' crate/dec2flt/mod.rs

Exact constant and bit-conversion excerpt from crate/traits.rs:

  impl Float for f64 {
      type Int = u64;

      const INFINITY: Self = Self::INFINITY;
      const NEG_INFINITY: Self = Self::NEG_INFINITY;
      const NAN: Self = Self::NAN;
      // Bit-identical to the upstream `-f64::NAN`, without the unsupported
      // compile-time float negation.
      const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);

      const BITS: u32 = 64;
      const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
      const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
      const SIG_MASK: Self::Int = Self::MANTISSA_MASK;

      fn to_bits(self) -> Self::Int {
          self.to_bits()
      }

      fn classify(self) -> FpCategory {
          self.classify()
      }
  }

  impl FloatExt for f64 {
      #[inline]
      fn from_u64_bits(v: u64) -> Self {
          f64::from_bits(v)
      }

Exact derived-constant defaults from crate/traits.rs:

  /// The number of bits in the significand, *excluding* the hidden bit.
  const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;

  /// Number of bits in the exponent.
  const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

  /// The saturated (maximum bitpattern) value of the exponent, i.e. the infinite
  /// representation.
  ///
  /// This shifted fully right, use `EXP_MASK` for the shifted value.
  const EXP_SAT: u32 = (1 << Self::EXP_BITS) - 1;

  /// Signed version of `EXP_SAT` since we convert a lot.
  const INFINITE_POWER: i32 = Self::EXP_SAT as i32;

  /// The exponent bias value. This is also the maximum value of the exponent.
  const EXP_BIAS: u32 = Self::EXP_SAT >> 1;

  /// Minimum exponent value of normal values.
  const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Together with the f64-instance lines `BITS = 64` and
`SIG_TOTAL_BITS = Self::MANTISSA_DIGITS` in the preceding excerpt, these
defaults derive SIG_BITS, EXP_MIN, and INFINITE_POWER from the primitive
mantissa-digit constant rather than introducing independent parameters.

Exact asserted-conversion excerpt from crate/dec2flt/mod.rs:

  #[inline]
  // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
  // `charon::opaque` makes this entire asserted conversion external: both the
  // unchanged `debug_assert!` and the unchanged cast below are in the opaque
  // body. The callers, their fast-path guards, and their surrounding
  // computation remain mechanically visible. A corresponding model binding
  // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
  // exact binary64 conversion at or below that bound.
  #[charon::opaque]
  fn from_u64(v: u64) -> Self {
      debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
      v as _
  }

Here MAX_MANTISSA_FAST_PATH is the retained default 1 << 53.  The attribute is
attached to the function item, so the generated external stands for the whole
method, not merely the cast.  In the enabled-debug configuration the source
succeeds only when v <= 2^53; above it the assertion fails before the cast. On
the successful branch every integer is exactly representable, so the source
cast and the model rounder return the same word.

Exact power-table and assembly excerpts from crate/dec2flt/mod.rs:

  /// Maximum mantissa for the fast-path (`1 << 53` for f64).
  const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;

  const MAX_EXPONENT_FAST_PATH: i64 = 22;
  const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
  const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;

  fn pow10_fast_path(exponent: usize) -> Self {
      // These bit patterns are exactly the source table's rounded binary64
      // literals.  The match is the same masked lookup; it merely keeps float
      // constants out of Aeneas's unsupported constant interpreter.
      match exponent & 31 {
          0 => f64::from_bits(0x3FF0_0000_0000_0000),
          1 => f64::from_bits(0x4024_0000_0000_0000),
          2 => f64::from_bits(0x4059_0000_0000_0000),
          3 => f64::from_bits(0x408F_4000_0000_0000),
          4 => f64::from_bits(0x40C3_8800_0000_0000),
          5 => f64::from_bits(0x40F8_6A00_0000_0000),
          6 => f64::from_bits(0x412E_8480_0000_0000),
          7 => f64::from_bits(0x4163_12D0_0000_0000),
          8 => f64::from_bits(0x4197_D784_0000_0000),
          9 => f64::from_bits(0x41CD_CD65_0000_0000),
          10 => f64::from_bits(0x4202_A05F_2000_0000),
          11 => f64::from_bits(0x4237_4876_E800_0000),
          12 => f64::from_bits(0x426D_1A94_A200_0000),
          13 => f64::from_bits(0x42A2_309C_E540_0000),
          14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
          15 => f64::from_bits(0x430C_6BF5_2634_0000),
          16 => f64::from_bits(0x4341_C379_37E0_8000),
          17 => f64::from_bits(0x4376_3457_85D8_A000),
          18 => f64::from_bits(0x43AB_C16D_674E_C800),
          19 => f64::from_bits(0x43E1_58E4_6091_3D00),
          20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
          21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
          22 => f64::from_bits(0x4480_F0CF_064D_D592),
          _ => f64::from_bits(0),
      }
  }

  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

Exact native-call excerpt from crate/dec2flt/decimal.rs:

  fn can_use_fast_path<F: Lemire>(&self) -> bool {
      F::MIN_EXPONENT_FAST_PATH <= self.exponent
          && self.exponent <= F::MAX_EXPONENT_DISGUISED_FAST_PATH
          && self.mantissa <= F::MAX_MANTISSA_FAST_PATH
          && !self.many_digits
  }

  if !self.can_use_fast_path::<F>() {
      return None;
  }

  let value = if self.exponent <= F::MAX_EXPONENT_FAST_PATH {
      // normal fast path
      let value = F::from_u64(self.mantissa);
      if self.exponent < 0 {
          // Explicit trait calls preserve Rust arithmetic and resolve
          // the generic output type that Charon leaves ambiguous.
          core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
      } else {
          core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
      }
  } else {
      // disguised fast path
      let shift = self.exponent - F::MAX_EXPONENT_FAST_PATH;
      let mantissa = self.mantissa.checked_mul(INT_POW10[shift as usize])?;
      if mantissa > F::MAX_MANTISSA_FAST_PATH {
          return None;
      }
      core::ops::Mul::mul(
          F::from_u64(mantissa),
          F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
      )
  };

  if self.negative {
      Some(core::ops::Neg::neg(value))
  } else {
      Some(value)
  }

The preceding can_use_fast_path body, together with
MAX_MANTISSA_FAST_PATH = 1 << SIG_TOTAL_BITS and SIG_TOTAL_BITS = 53 for f64,
requires the exponent to lie between -22 and 37, the input mantissa to be at
most 2^53, and many_digits to be false. Consequently an ordinary arithmetic
call has a from_u64 operand in 0..=2^53. In its negative-exponent arm,
`-self.exponent` lies in 1..=22; in its nonnegative arm, `self.exponent` lies
in 0..=22. The disguised branch checks its multiplied mantissa against 2^53
before from_u64 and uses table index 22. The paired statement
Binary64NativeCallDomain does not assert this source reachability. It says
conditionally that a from_u64 argument at most 2^53 succeeds with a finite,
non-NaN word and that a table index at most 22 succeeds with a positive,
nonzero, finite, non-NaN word. Applying that conditional statement to the
guards just derived establishes those properties for the actual ordinary and
disguised calls, and in particular establishes that every executed divisor is
nonzero.

Exact special-value excerpt from crate/dec2flt/parse.rs:

  let float = match (register, len) {
      (INF_3, 3) => F::INFINITY,
      (INF_8, 8) => F::INFINITY,
      (NAN, 3) => F::NAN,
      _ => return None,
  };

  if negative { Some(-float) } else { Some(float) }

Thus the executed special route is INFINITY or NAN followed by conditional
negation; it does not select NEG_INFINITY or NEG_NAN directly.

The number helper has the exact source body

  pub fn parse_number(s: &[u8]) -> Option<Decimal> {
      if let Some((float, rest)) = parse_partial_number(s) {
          if rest == s.len() {
              return Some(float);
          }
      }
      None
  }

It returns only the Decimal produced by parse_partial_number; there is no
float type parameter or float operation at this boundary.

Exact dispatcher excerpts from crate/dec2flt/mod.rs
---------------------------------------------------

The entry of `dec2flt_with_trace` strips at most one leading sign, rejects
empty and sign-only inputs, calls `parse_number` on the unsigned body, and
calls `parse_inf_nan` only when `parse_number` returns `None`:

  /// Run the actual dispatcher while retaining its approved internal observations.
  pub fn dec2flt_with_trace<
      'a,
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {
          return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
      };
      let negative = c == b'-';
      if c == b'-' || c == b'+' {
          body = &body[1..];
      }
      if body.is_empty() {
          return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
      }

      let parse_number_result = parse_number(body);
      let parsed = match parse_number_result {
          Some(r) => r,
          None => {
              let parse_inf_nan_result = parse_inf_nan(body, negative);
              return match parse_inf_nan_result {
                  Some(value) => (
                      Ok(value),
                      Dec2FltTrace::Special {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                          result: value,
                      },
                  ),
                  None => (
                      Err(pfe_invalid()),
                      Dec2FltTrace::Invalid {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                      },
                  ),
              };
          }
      };

Thus every `Err` arm shown here returns before `parsed` is available and before
the native, integer, slow, assembly, or final-negation code below it can run.
On a numeric result, the lexical sign is copied into the parsed record before
the native attempt, whose successful result also returns before raw-pair
assembly:

      let mut num = parsed;
      num.negative = negative;
      if !cfg!(feature = "optimize_for_size") {
          let fast_path_result = num.try_fast_path::<F>();
          if let Some(value) = fast_path_result {
              return (
                  Ok(value),
                  Dec2FltTrace::FastPath {
                      body,
                      negative,
                      parse_number_result,
                      fast_path_input: num,
                      fast_path_result,
                      result: value,
                  },
              );
          }
      }

If the native attempt does not return, the selected raw pair is assembled and
the source then conditionally negates it according to the lexical-sign flag:

      let selected_pair = fp;
      // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
      // it neither changes the selected pair nor introduces a new branch or call.
      let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
      let assembly_result = biased_fp_to_float::<F>(fp);
      let lexical_sign_applied = num.negative;
      let result = if lexical_sign_applied {
          core::ops::Neg::neg(assembly_result)
      } else {
          assembly_result
      };

The public `dec2flt` executes that same route and returns its result projection;
it does not reimplement or reorder any parsing or float operation:

  /// Converts a decimal string into a floating point number.
  #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
  pub fn dec2flt<
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &str,
  ) -> Result<F, ParseFloatError> {
      // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
      // clause admits exactly the same instances and lets Charon resolve the
      // explicit, source-equivalent final negation.
      // The public function is now exactly the result projection of the single
      // instrumented implementation.  No conversion step is duplicated, and
      // discarding the trace cannot affect Rust evaluation or the returned bits.
      dec2flt_with_trace::<F>(s).0
  }

The integer-tier helper has the source type and exact executable excerpts
below (long explanatory comments are elided). In particular it returns a raw
BiasedFp and contains no from_u64 cast, primitive float multiplication,
division, negation, or from_bits call:

  pub fn compute_float<F: Float>(q: i64, mut w: u64) -> BiasedFp {
      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);
      let fp_error = BiasedFp::zero_pow2(-1);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if w == 0 || q < F::SMALLEST_POWER_OF_TEN as i64 {
          return fp_zero;
      } else if q > F::LARGEST_POWER_OF_TEN as i64 {
          return fp_inf;
      }
      // Normalize our significant digits, so the most-significant bit is set.
      let lz = w.leading_zeros();
      w <<= lz;
      let (lo, hi) = compute_product_approx(q, w, F::SIG_BITS as usize + 3);
      if lo == 0xFFFF_FFFF_FFFF_FFFF {
          let inside_safe_exponent = (q >= -27) && (q <= 55);
          if !inside_safe_exponent {
              return fp_error;
          }
      }
      let upperbit = (hi >> 63) as i32;
      let mut mantissa = hi >> (upperbit + 64 - F::SIG_BITS as i32 - 3);
      let mut power2 = power(q as i32) + upperbit - lz as i32 - F::EXP_MIN + 1;
      if power2 <= 0 {
          if -power2 + 1 >= 64 {
              // Have more than 64 bits below the minimum exponent, must be 0.
              return fp_zero;
          }
          // Have a subnormal value.
          mantissa >>= -power2 + 1;
          mantissa += mantissa & 1;
          mantissa >>= 1;
          power2 = (mantissa >= (1_u64 << F::SIG_BITS)) as i32;
          return BiasedFp { m: mantissa, p_biased: power2 };
      }
      // Need to handle rounding ties. Normally, we need to round up,
      // but if we fall right in between and we have an even basis, we
      // need to round down.
      if lo <= 1
          && q >= F::MIN_EXPONENT_ROUND_TO_EVEN as i64
          && q <= F::MAX_EXPONENT_ROUND_TO_EVEN as i64
          && mantissa & 0b11 == 0b01
          && (mantissa << (upperbit + 64 - F::SIG_BITS as i32 - 3)) == hi
      {
          // Zero the lowest bit, so we don't round up.
          mantissa &= !1_u64;
      }
      // Round-to-even, then shift the significant digits into place.
      mantissa += mantissa & 1;
      mantissa >>= 1;
      if mantissa >= (2_u64 << F::SIG_BITS) {
          // Rounding up overflowed, so the carry bit is set. Set the
          // mantissa to 1 (only the implicit, hidden bit is set) and
          // increase the exponent.
          mantissa = 1_u64 << F::SIG_BITS;
          power2 += 1;
      }
      // Zero out the hidden bit.
      mantissa &= !(1_u64 << F::SIG_BITS);
      if power2 >= F::INFINITE_POWER {
          // Exponent is above largest normal value, must be infinite.
          return fp_inf;
      }
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact slow-tier source body from crate/dec2flt/slow.rs:

  pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {
      const MAX_SHIFT: usize = 60;
      const NUM_POWERS: usize = 19;
      const POWERS: [u8; 19] =
          [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];

      let get_shift = |n| {
          if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }
      };

      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);

      let mut d = parse_decimal_seq(s);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if d.num_digits == 0 || d.decimal_point < -324 {
          return fp_zero;
      } else if d.decimal_point >= 310 {
          return fp_inf;
      }
      let mut exp2 = 0_i32;
      let mut loop_result = None;
      // Shift right toward (1/2 ... 1].
      while d.decimal_point > 0 && loop_result.is_none() {
          let n = d.decimal_point as usize;
          let shift = get_shift(n);
          d.right_shift(shift);
          if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_zero);
          } else {
              exp2 += shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // Shift left toward (1/2 ... 1].
      while d.decimal_point <= 0 && loop_result.is_none() {
          let shift = if d.decimal_point == 0 {
              match d.digits[0] {
                  digit if digit >= 5 => break,
                  0 | 1 => 2,
                  _ => 1,
              }
          } else {
              get_shift((-d.decimal_point) as _)
          };
          d.left_shift(shift);
          if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_inf);
          } else {
              exp2 -= shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
      exp2 -= 1;
      while F::EXP_MIN > exp2 {
          let mut n = (F::EXP_MIN - exp2) as usize;
          if n > MAX_SHIFT {
              n = MAX_SHIFT;
          }
          d.right_shift(n);
          exp2 += n as i32;
      }
      if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
          return fp_inf;
      }
      // Shift the decimal to the hidden bit, and then round the value
      // to get the high mantissa+1 bits.
      d.left_shift(F::SIG_BITS as usize + 1);
      let mut mantissa = d.round();
      if mantissa >= (1_u64 << (F::SIG_BITS + 1)) {
          // Rounding up overflowed to the carry bit, need to
          // shift back to the hidden bit.
          d.right_shift(1);
          exp2 += 1;
          mantissa = d.round();
          if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
              return fp_inf;
          }
      }
      let mut power2 = exp2 - F::EXP_MIN + 1;
      if mantissa < (1_u64 << F::SIG_BITS) {
          power2 -= 1;
      }
      // Zero out all the bits above the explicit mantissa bits.
      mantissa &= (1_u64 << F::SIG_BITS) - 1;
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact final numeric-sign excerpt from crate/dec2flt/mod.rs:

  let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
  let assembly_result = biased_fp_to_float::<F>(fp);
  let lexical_sign_applied = num.negative;
  let result = if lexical_sign_applied {
      core::ops::Neg::neg(assembly_result)
  } else {
      assembly_result
  };

Thus a numeric execution that reaches the integer/slow selection route
assembles its selected pair with from_bits through biased_fp_to_float and only
then conditionally negates it. A successful try_fast_path returns earlier and
does not perform this assembly. compute_float and parse_long_mantissa produce
raw BiasedFp pairs and do not call from_u64, primitive float multiplication,
division, negation, or from_bits; they do, however, execute constants derived
from SIG_TOTAL_BITS before producing those pairs.

Retained structural-boundary evidence
-------------------------------------

Several adjacent structural bindings cite this same evidence record. Their
pinned library source identities are:

  core/src/num/mod.rs
    f0820f9dfb94999440c8cb4a349736fa21df7e5668e19b6b49e016ff67c05ce3
  core/src/option.rs
    7cf61204b05d98a95bc2e322d5fbfc1f4f91505109971917d9a7fb47151c50e6
  core/src/slice/mod.rs
    354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840
  core/src/str/mod.rs
    284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78

Exact ASCII-digit body from core/src/num/mod.rs:

  pub const fn is_ascii_digit(&self) -> bool {
      matches!(*self, b'0'..=b'9')
  }

Exact Option control-flow bodies from core/src/option.rs:

  fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
      match self {
          Some(v) => ControlFlow::Continue(v),
          None => ControlFlow::Break(None),
      }
  }

  fn from_residual(residual: Option<convert::Infallible>) -> Self {
      match residual {
          None => None,
      }
  }

Exact slice observation bodies from core/src/slice/mod.rs:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

Exact string-byte body from core/src/str/mod.rs:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }
reference/model-evidence/binary64-probe.rs

Open file

#![feature(float_masks)]

use std::num::FpCategory;

fn bits(label: &str, value: f64) {
    println!("{label}={:016x}", value.to_bits());
}

fn main() {
    println!("target_arch={}", std::env::consts::ARCH);
    println!("mantissa_digits={}", f64::MANTISSA_DIGITS);
    println!("exponent_mask={:016x}", f64::EXPONENT_MASK);
    println!("mantissa_mask={:016x}", f64::MANTISSA_MASK);
    bits("nan", f64::NAN);
    bits("infinity", f64::INFINITY);
    bits("neg_infinity", f64::NEG_INFINITY);

    for (label, value) in [
        ("nan_category", f64::NAN),
        ("infinity_category", f64::INFINITY),
        ("zero_category", 0.0),
        ("subnormal_category", f64::from_bits(1)),
        ("normal_category", 1.0),
    ] {
        let category = match value.classify() {
            FpCategory::Nan => "Nan",
            FpCategory::Infinite => "Infinite",
            FpCategory::Zero => "Zero",
            FpCategory::Subnormal => "Subnormal",
            FpCategory::Normal => "Normal",
        };
        println!("{label}={category}");
    }

    let payload_nan_word = 0x7ff0_0000_0000_0001_u64;
    println!(
        "from_bits_to_bits={:016x}",
        f64::from_bits(payload_nan_word).to_bits()
    );
    bits("neg_payload_nan", -f64::from_bits(payload_nan_word));
    bits("neg_zero", -0.0);

    bits("subnormal_tie_to_even_zero", f64::from_bits(1) * 0.5);
    bits("subnormal_tie_to_even_two", f64::from_bits(3) * 0.5);
    bits("normal_division", 1.0 / 10.0);
    bits("mul_negative_zero", -0.0 * 2.0);
    bits("div_negative_zero", -1.0 / f64::INFINITY);
    bits("div_negative_infinity", 1.0 / -0.0);
    bits("mul_overflow", f64::MAX * (1.0 + f64::EPSILON));
    println!("mul_zero_infinity_is_nan={}", (0.0 * f64::INFINITY).is_nan());
    println!("div_zero_zero_is_nan={}", (0.0_f64 / 0.0_f64).is_nan());
    println!("mul_nan_is_nan={}", (f64::NAN * 1.0).is_nan());

    bits("cast_2_pow_53", (1_u64 << 53) as f64);
    bits("cast_2_pow_53_plus_1", ((1_u64 << 53) + 1) as f64);
}
reference/model-evidence/source-valid-byte-slice-probe.out

Open file

arch=x86_64
usize_bits=64
isize_max=9223372036854775807
u8_size=1
reference/model-evidence/source-valid-byte-slice-probe.rs

Open file

fn main() {
    println!("arch={}", std::env::consts::ARCH);
    println!("usize_bits={}", usize::BITS);
    println!("isize_max={}", isize::MAX);
    println!("u8_size={}", std::mem::size_of::<u8>());
}
reference/model-evidence/source-valid-byte-slice.txt

Open file

Source-valid byte-slice and string domain evidence
==================================================

Scope and pinned identities
---------------------------

All commands below were run from the repository root.  The configured compiler
is:

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

Its SHA-256 is:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b

The exact identity commands were:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  sha256sum "$R"
  "$R" --version --verbose
  "$R" --target x86_64-unknown-linux-gnu --print cfg | LC_ALL=C sort | \
    rg 'target_(arch|pointer_width)'

Their relevant raw output was:

  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
  target_arch="x86_64"
  target_pointer_width="64"

Retained configured-target probe
--------------------------------

The retained probe source is
reference/model-evidence/source-valid-byte-slice-probe.rs.  It was compiled
for the configured target and executed with this exact command, which depends
only on the retained source and the pinned compiler:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/source-valid-byte-slice-probe.rs
  B=/tmp/dec2flt-source-valid-byte-slice-probe
  O=reference/model-evidence/source-valid-byte-slice-probe.out
  "$R" --edition 2024 --target x86_64-unknown-linux-gnu -C opt-level=0 \
    -C debuginfo=0 -C overflow-checks=on -C debug-assertions=on \
    --crate-name source_valid_byte_slice_probe "$P" -o "$B"
  sha256sum "$R" "$P" "$B"
  "$B" > "$O"
  sha256sum "$O"
  cat "$O"

The actual hashes were:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd  reference/model-evidence/source-valid-byte-slice-probe.rs
  87dc3b9b7a46506d2205503d8aa007b451c452968af48d1ba5961a821934ee55  /tmp/dec2flt-source-valid-byte-slice-probe
  01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4  reference/model-evidence/source-valid-byte-slice-probe.out

The retained raw output file contains exactly:

  arch=x86_64
  usize_bits=64
  isize_max=9223372036854775807
  u8_size=1

Pinned core-library source
--------------------------

Let:

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

The exact commands used to identify and inspect the relevant core sources were:

  sha256sum "$S/slice/mod.rs" "$S/num/int_macros.rs" "$S/str/mod.rs"
  sed -n '798,808p' "$S/slice/mod.rs"
  sed -n '43,51p' "$S/num/int_macros.rs"
  sed -n '495,510p' "$S/str/mod.rs"

The file identities are:

  354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840  core/src/slice/mod.rs
  3896304e7cb14628e293134ac41fd18be2b5369bedc02d1c6a7408bd8c755a31  core/src/num/int_macros.rs
  284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78  core/src/str/mod.rs

The relevant exact excerpt of slice/mod.rs, line 801, is:

  //   - The size of the slice is never larger than `isize::MAX` bytes, as

The relevant exact declaration in num/int_macros.rs, line 47, is:

  pub const MAX: Self = (<$UnsignedT>::MAX >> 1) as Self;

The relevant exact excerpts of str/mod.rs are its same-layout byte-slice
conversion at lines 498-500:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }

and its UTF-8 invariant at lines 507-510:

  /// The caller must ensure that the content of the slice is valid UTF-8
  /// before the borrow ends and the underlying `str` is used.
  ///
  /// Use of a `str` whose contents are not valid UTF-8 is undefined behavior.

Conclusion
----------

The configured target has 64-bit usize/isize and one-byte u8 elements.
The pinned signed-MAX definition therefore gives
isize::MAX = 2^63 - 1 = 9223372036854775807, and the pinned slice rule bounds a
slice by that many bytes.  For &[u8], this is exactly an element-count bound;
the rule adds no UTF-8 condition or other restriction on the byte contents.
The pinned str source exposes the identical-layout &[u8] bytes and separately
requires them to be valid UTF-8.  Consequently the exact configured domains
are arbitrary &[u8] bytes of length at most isize::MAX, and Rust str bytes of
length at most isize::MAX that are valid UTF-8.  No smaller convenience bound
is introduced.
Assumptions / kernel axioms
  • propext

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (32)
All 32 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourceTablet/model-support.json
Kindopaque external binding
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:613b2edd8feaccbb058727b693d4737fa58dfa7db6665e3ee2272038e963e6c7
Preservation current fingerprintpreservation-v1:613b2edd8feaccbb058727b693d4737fa58dfa7db6665e3ee2272038e963e6c7
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"daa1d788720f27eca31e722db51d2d3e6e80bb4fb62e35d6bc6d9686e17ab381","lean_semantic_closure":"c02db9c8475e537013729680a2bfb86330285c45f141bc1a8a5f7fd0490e03d1","preamble_tex":""}
Correspondence current fingerprint{"own_tex":"daa1d788720f27eca31e722db51d2d3e6e80bb4fb62e35d6bc6d9686e17ab381","lean_semantic_closure":"c02db9c8475e537013729680a2bfb86330285c45f141bc1a8a5f7fd0490e03d1","preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "a5268d5fd87c67a6b7968ea937dc0d2e04c21cc120edb01c1c81409ffb059996",
    "dep_statement_hashes": {
      "SourceValidByteSlice": "52522ae5b8602c6279dde2af31f94e21db249400641f5d3e951f68a74c3c11e2"
    },
    "combined_sound_fp": "preservation-v1:613b2edd8feaccbb058727b693d4737fa58dfa7db6665e3ee2272038e963e6c7"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Exact source record
{
  "name": "core.slice.Slice.first",
  "extracted_signature": "{T : Type} : Slice T → Result (Option T)",
  "rust_symbol": "core::slice::{[T]}::first",
  "raw_declaration_sha256": "221298364b1df3a924d1ee3951ad3e7d786065b4aa48e2b74eedb0a49f643105",
  "node": "ModelSliceFirst",
  "declaration": "dec2flt_model.ModelSliceFirst"
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/aeneas-slice-observations.txt",
    "sha256": "6d031558a189d52c1583babffeeea3fe6775f5d00c85077cc0a07064d725d96f",
    "cited_by": [
      "Tablet/ModelSliceFirst.tex",
      "Tablet/model-support.json"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-boundary.txt",
    "sha256": "fa45c924747337e8d6f84a19fe9e83fb9b33c73434887c0cf57c062533f51fe1",
    "cited_by": [
      "Tablet/ModelSliceFirst.tex",
      "Tablet/model-support.json",
      "reference/model-evidence/aeneas-slice-observations.txt"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-probe.rs",
    "sha256": "68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e",
    "cited_by": [
      "reference/model-evidence/binary64-boundary.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.out",
    "sha256": "01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.rs",
    "sha256": "b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice.txt",
    "sha256": "eb501317621baa00236f9773885466bd38ec1a45cb56457d555b9e9139dc780a",
    "cited_by": [
      "Tablet/ModelSliceFirst.tex",
      "Tablet/model-support.json",
      "reference/model-evidence/aeneas-slice-observations.txt"
    ]
  }
]

core::slice::{[T]}::split_first

Inspect related source (1)

Related source and models come from the extraction records and declared dependencies.

Rust itemcore::slice::{[T]}::split_first
Recorded source/rustc/library/core/src/slice/mod.rs
Lines198:4–198:57

The related-source link includes this operation’s Rust standard-library implementation.

Opaque extraction signature
{T : Type} : Slice T → Result (Option (T × (Slice T)))
Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Aeneas
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelSliceSplitFirst]
def ModelSliceSplitFirst {T : Type}
    (s : Slice T) : Result (Option (T × Slice T)) :=
-- BODY
  match h : s.val with
  | [] => ok none
  | x :: xs => ok (some (x, ⟨xs, by
      have p := s.property
      rw [h] at p
      have p' : 1 + xs.length ≤ Usize.max := by
        simpa [Nat.add_comm] using p
      exact Nat.le_trans (Nat.le_add_left xs.length 1) p'⟩))
end dec2flt_model

Why this model is faithful

Definition

\mathsf{ModelSliceSplitFirst}(s) successfully returns the first element and remaining suffix of s when present and \mathsf{none} when s is empty.

Preservation argument

Claim

For every Aeneas Slice Std.U8 value satisfying SourceValidByteSlice and representing a Rust &[u8] in the complete configured source domain, this binding returns Ok None for the empty slice and otherwise returns Ok (Some (x, xs)), where x is the same first byte returned by the source's shared reference and xs is the same ordered tail returned by its shared subslice.

Proof

By SourceValidByteSlice and the configured-domain evidence in reference/model-evidence/source-valid-byte-slice.txt, the stated predicate covers every configured Rust &[u8] and adds no restriction on its byte values. The pinned Aeneas definition represents a slice by its complete ordered list. If that list is empty, both the binding and the pinned Rust split_first body return None. If it is x :: xs, the binding returns the head x and precisely the ordered suffix xs; the Rust body returns shared references to that same head and tail. These bodies are pinned in reference/model-evidence/binary64-boundary.txt; the Aeneas commit, slice representation, shared-borrow translation rule, extracted signature, and complete call-site inventory are pinned in reference/model-evidence/aeneas-slice-observations.txt.
The Lean constructor's internal slice obligation follows because |\mathit{xs}|\leq 1+|\mathit{xs}|=|\mathit{x::xs}|\leq \mathtt{Usize.max}. More importantly for the source domain, the original SourceValidByteSlice hypothesis gives |\mathit{x::xs}|\leq\mathtt{isize::MAX}, hence |\mathit{xs}|\leq|\mathit{x::xs}|\leq\mathtt{isize::MAX}; the returned tail is therefore source-valid too. Every frozen call infers T = Std.U8. Aeneas represents the returned &u8 by the same copied U8 value and the shared tail by that ordered byte suffix. All call sites only read these results, so neither mutation nor reference identity is observable; erasing lifetimes and aliasing is harmless.
Authored arguments for individual requirements

Requirement: assembly correspondence

The direct biased_fp_to_float subject has no split-first call, so this binding is noninterfering.

Requirement: classification determinism

This mathematical classification statement executes no source slice operation, so the binding does not alter its finite-byte-string domain.

Requirement: classification significand digit

This mathematical grammar statement executes no source slice operation, so the binding does not alter its digit conclusion.

Requirement: classification totality

This mathematical classification statement executes no source slice operation, so the binding does not restrict its finite-byte-string domain.

Requirement: dispatch abstract composition

Numeric component calls receive the same source-valid byte body, and each split returns the same byte and suffix; the abstract dispatcher therefore observes the same component behavior.

Requirement: dispatch component compliance

The proved preservation of SourceValidByteSlice for every returned tail keeps all actual numeric-parser calls within the complete Rust slice domain while preserving their bytes.

Requirement: exponent value agreement

This mathematical comparison of two decimal-value interpretations has no split-first call, so the binding is noninterfering.

Requirement: integer correct or defer

The direct compute_float subject accepts integer values and has no split-first call, so the binding is noninterfering.

Requirement: native correct or defer

The direct try_fast_path subject accepts a Decimal and has no split-first call, so the binding is noninterfering.

Requirement: number helper acceptance

For every source-valid unsigned numeric slice, each numeric-parser split sees the same head and passes the same source-valid ordered tail, preserving Some acceptance.

Requirement: number helper accumulated value

Preserving every consumed byte and exact remaining suffix preserves the returned record from which this goal computes its accumulated value.

Requirement: number helper record bounds

The full domain is exactly SourceValidByteSlice; the tail derivation keeps recursive parser states in that domain and the exact split results leave every returned record unchanged.

Requirement: number helper rejection

For every source-valid invalid slice, the same sequence of empty/head-tail observations reaches the same None result.

Requirement: parser accumulated rounding

The public parser's numeric component consumes the same bytes and suffixes, so its accepted record and accumulated-rounding observation are unchanged.

Requirement: parser equal target rounding

Exact preservation of all numeric head-tail observations leaves the accepted record and the equal-target bridge's parser result unchanged.

Requirement: parser exact rounding

On the full SourceValidByteSlice helper domain, the same ordered byte suffixes preserve the parser execution whose returned rounding is observed.

Requirement: parser infinity

The special helper has no split-first call; numeric parsing still returns the same None before the unchanged special path is selected.

Requirement: parser invalid rejection

The numeric parser consumes the same head bytes and tails and therefore makes the same Some/None decision before invalid rejection.

Requirement: parser nan acceptance

The numeric parser's exact split behavior preserves the None branch that passes the unchanged body to the NaN helper.

Requirement: parser non nan results

Preserving all numeric parsing splits preserves both numeric-versus-special branch selection and the resulting float observation.

Requirement: parser numeric acceptance

Each split of a source-valid numeric body returns the same byte and source-valid suffix, so the public parser receives the same successful numeric record.

Requirement: parser numeric sign

Split-first is used only after the dispatcher has recorded the lexical sign; preserving numeric bytes and tails leaves the result magnitude and that sign unchanged.

Requirement: parser selected exponent

The same sequence of numeric bytes and remaining suffixes yields the same parsed record and hence the same selected raw-pair exponent.

Requirement: parser selected magnitude sign

The same sequence of numeric bytes and tails yields the same selected raw pair and its unchanged unsigned assembled word.

Requirement: parser signed zero

Preserving the numeric parser's bytes, tails, and returned record leaves acceptance of zero and the later lexical-sign application unchanged.

Requirement: parser totality

Every numeric parser split returns normally in both list cases, and every returned tail again satisfies SourceValidByteSlice; this binding introduces no panic on any configured string.

Requirement: rounding determinism

This mathematical real-number rounding statement has no split-first call, so the binding is noninterfering.

Requirement: rounding totality

This mathematical real-number rounding statement has no split-first call, so the binding is noninterfering.

Requirement: slow accumulated rounding

The direct parse_long_mantissa subject and its extracted callees contain no split-first call, so its full source-valid domain and result are unchanged.

Requirement: special helper infinity

The direct parse_inf_nan subject has no split-first call, so its byte-slice and separate-sign observations are unchanged.

Requirement: special helper nan

The direct parse_inf_nan subject has no split-first call, so its byte-slice and NaN observations are unchanged.

Requirement: special helper rejection

The direct parse_inf_nan subject has no split-first call, so its rejection observation on every source-valid byte slice is unchanged.

Recorded review

CorrespondencePass
PreservationVerifierPass

ModelSliceSplitFirst · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/aeneas-slice-observations.txt

Open file

Aeneas slice-observation evidence

Commands were run from the repository root unless an explicit -C directory is
shown.  The Aeneas checkout and executable used for the frozen extraction are:

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

  sha256sum /home/leanagent/pv_spike/tools/aeneas/bin/aeneas
  9f446d2aaf59e8e705e36d05cb993f1c6ab0e97f8dc6fd2f19907a86ede30922

  sha256sum /home/leanagent/pv_spike/tools/aeneas/backends/lean/Aeneas/Std/Slice.lean
  c941826e8da78e1c517cae719b9f58e64671331957cce0b3c22c321a6c62c328

At that commit, Aeneas/Std/Slice.lean:22 defines:

  def Slice (α : Type u) := { l : List α // l.length ≤ Usize.max }

Thus an Aeneas Slice is an ordered List subtype.  Its val field is the complete
ordered element list; the subtype property is the Usize.max length bound.

  sha256sum /home/leanagent/pv_spike/tools/aeneas/documentation/aeneas-overview.md
  8ba474e55ec3375f6eaccc7532715e29dc1d0d6473423a02100bb805a446c3a7

At that commit, aeneas-overview.md:240 states the translation convention that
shared borrows (&T) become plain T parameters and that the value may be copied.
The summary table at line 432 additionally describes the resulting value as
immutable.  Returned shared byte references therefore have no mutable backward
continuation or separately observable identity in the generated model.

The Rust source is the configured nightly-2026-06-01 core library:

  sha256sum /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/slice/mod.rs
  354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840

Its exact observation bodies at core/src/slice/mod.rs:155-156 and 198-199 are:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

These bodies and the same core source hash are also pinned in
reference/model-evidence/binary64-boundary.txt.  The complete configured Rust
&[u8] domain, including the isize::MAX byte-length condition, is independently
pinned in reference/model-evidence/source-valid-byte-slice.txt.

The frozen generated module has this identity:

  sha256sum generated.lean
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9

Its external signatures at generated.lean:316 and 323-324 are:

  axiom core.slice.Slice.first {T : Type} :
    Slice T → Result (Option T)

  axiom core.slice.Slice.split_first {T : Type} :
    Slice T → Result (Option (T × Slice T))

The following command enumerates every declaration or call occurrence:

  rg -n 'core\.slice\.Slice\.(first|split_first)' generated.lean

Raw result:

  316:axiom core.slice.Slice.first {T : Type} : Slice T → Result (Option T)
  323:axiom core.slice.Slice.split_first
  4290:  let o ← core.slice.Slice.split_first s_ref
  4338:    let o ← core.slice.Slice.split_first s
  4591:  let o ← core.slice.Slice.split_first s1
  4613:    let o1 ← core.slice.Slice.split_first s2
  4812:  let o ← core.slice.Slice.first body

All five calls infer T = Std.U8:

* generated.lean:4288-4290 declares parse_scientific with
  s_ref : Slice Std.U8 and calls split_first on s_ref.
* generated.lean:4332-4338 declares try_parse_19digits_loop.body with
  s : Slice Std.U8 and calls split_first on s.
* generated.lean:4582-4591 declares parse_partial_number with
  s : Slice Std.U8; try_parse_digits returns s1 : Slice Std.U8, which is the
  first split_first argument.
* In the same parse_partial_number definition, every branch defining s2 returns
  either s1 or the Std.U8 tail s_next.  Hence the call on s2 at line 4613 also
  has T = Std.U8.
* generated.lean:4803-4812 declares dec2flt_with_trace; body is returned by
  core.str.Str.as_bytes, whose signature at line 330 is
  Str → Result (Slice Std.U8), and first is called on body.

The adapted sources containing the corresponding calls are pinned by:

  sha256sum crate/dec2flt/parse.rs crate/dec2flt/mod.rs
  50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f  crate/dec2flt/parse.rs
  ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d  crate/dec2flt/mod.rs

The five exact Rust call sites are:

  crate/dec2flt/parse.rs:65
      if let Some((c, s_next)) = s.split_first() {
          let digit = c.wrapping_sub(b'0');
          ...
          s = s_next;

  crate/dec2flt/parse.rs:127
      if let Some((&c, s_next)) = s.split_first() {
          negative = c == b'-';
          if c == b'-' || c == b'+' { s = s_next; }

  crate/dec2flt/parse.rs:177
      if let Some((&b'.', s_next)) = s.split_first() {
          s = s_next;

  crate/dec2flt/parse.rs:194
      if let Some((&c, s_next)) = s.split_first() {
          if c == b'e' || c == b'E' { s = s_next; ... }

  crate/dec2flt/mod.rs:365
      let Some(&c) = body.first() else { ... };

Thus every call is on &[u8].  The call sites either destructure the shared byte
reference into a copied byte or invoke an immutable u8 method through it, and
they use the shared tail only as the next immutable slice.  There is no mutation
through a returned reference and no pointer or lifetime identity observation.
Consequently, at every frozen GOAL-facing call site, erasing the
shared-reference lifetime/aliasing data retains the observed U8 value and, for
split_first, the same ordered suffix.
reference/model-evidence/binary64-boundary.txt

Open file

Primary evidence for the binary64 boundary
==========================================

Scope and identities
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction, the
adapted Rust crate retained in this repository, and the installed toolchain
named by modeling-input/SETUP.md. The probe source is retained at
reference/model-evidence/binary64-probe.rs; no scratch source is required to
reproduce it.

Toolchain executable:
  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
Target:
  x86_64-unknown-linux-gnu
rustc executable SHA-256:
  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
Probe source SHA-256:
  68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
Compiled probe SHA-256:
  f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
Frozen generated.lean SHA-256:
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9
Frozen modeling-input/manifest.json SHA-256:
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2
Approved Binary64ModelDefault.lean SHA-256 at the time of this record:
  03ae48fb631e6242bd21bf95d0481b66acae05f8cab343c7ab279b3c116538a3

Exact reproduction commands
---------------------------

Run from the repository root:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-probe.rs
  B=.trellis/scratch/binary64-probe
  "$R" --version --verbose
  sha256sum "$R"
  sha256sum "$P"
  "$R" --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$B"
  "$B"

Raw output
----------

  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
  rustc_sha256=162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  probe_sha256=68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
  binary_sha256=f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
  target_arch=x86_64
  mantissa_digits=53
  exponent_mask=7ff0000000000000
  mantissa_mask=000fffffffffffff
  nan=7ff8000000000000
  infinity=7ff0000000000000
  neg_infinity=fff0000000000000
  nan_category=Nan
  infinity_category=Infinite
  zero_category=Zero
  subnormal_category=Subnormal
  normal_category=Normal
  from_bits_to_bits=7ff0000000000001
  neg_payload_nan=fff0000000000001
  neg_zero=8000000000000000
  subnormal_tie_to_even_zero=0000000000000000
  subnormal_tie_to_even_two=0000000000000002
  normal_division=3fb999999999999a
  mul_negative_zero=8000000000000000
  div_negative_zero=8000000000000000
  div_negative_infinity=fff0000000000000
  mul_overflow=7ff0000000000000
  mul_zero_infinity_is_nan=true
  div_zero_zero_is_nan=true
  mul_nan_is_nan=true
  cast_2_pow_53=4340000000000000
  cast_2_pow_53_plus_1=4340000000000000

Pinned Rust library sources
---------------------------

The installed sources below belong to the same named toolchain. Their
SHA-256 identities are:

  core/src/primitive_docs.rs
    c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5
  core/src/num/f64.rs
    84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618
  core/src/clone.rs
    23f9cfc80347fde6b8457d46fbf7a2b8d9f34c8c58601b0b6f714ca2f6d1976b

The exact relevant text of core/src/primitive_docs.rs is:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The referenced primitive-f32 documentation supplies the common primitive
floating-point operation rules quoted next:

  /// - −0.0: IEEE 754 floating-point numbers have a bit that indicates their sign, so −0.0 is a
  ///   possible value. For comparison −0.0 = +0.0, but floating-point operations can carry
  ///   the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
  ///   a negative number rounded to a value smaller than a float can represent also produces −0.0.
  /// - [∞](#associatedconstant.INFINITY) and
  ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
  ///   like `1.0 / 0.0`.
  ///
  /// When a primitive operation (addition, subtraction, multiplication, or
  /// division) is performed on this type, the result is rounded according to the
  /// roundTiesToEven direction defined in IEEE 754-2008. That means:
  ///
  /// - The result is the representable value closest to the true value, if there
  ///   is a unique closest representable value.
  /// - If the true value is exactly half-way between two representable values,
  ///   the result is the one with an even least-significant binary digit.
  /// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
  ///   `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
  ///   true value's sign).

The same file explicitly separates arithmetic NaN choice from exact bitwise
operations; its exact relevant text is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.
  ///
  /// The following rules apply when a NaN value is returned from an arithmetic operation:
  /// - The result has a non-deterministic sign.
  /// - The quiet bit and payload are non-deterministically chosen from
  ///   the following set of options:
  ///
  ///   - **Preferred NaN**: The quiet bit is set and the payload is all-zero.
  ///   - **Quieting NaN propagation**: The quiet bit is set and the payload is copied from any input
  ///     operand that is a NaN. If the inputs and outputs do not have the same payload size (i.e., for
  ///     `as` casts), then
  ///     - If the output is smaller than the input, low-order bits of the payload get dropped.
  ///     - If the output is larger than the input, the payload gets filled up with 0s in the low-order
  ///       bits.
  ///   - **Unchanged NaN propagation**: The quiet bit and payload are copied from any input operand
  ///     that is a NaN. If the inputs and outputs do not have the same size (i.e., for `as` casts), the
  ///     same rules as for "quieting NaN propagation" apply, with one caveat: if the output is smaller
  ///     than the input, dropping the low-order bits may result in a payload of 0; a payload of 0 is not
  ///     possible with a signaling NaN (the all-0 significand encodes an infinity) so unchanged NaN
  ///     propagation cannot occur with some inputs.
  ///   - **Target-specific NaN**: The quiet bit is set and the payload is picked from a target-specific
  ///     set of "extra" possible NaN payloads. The set can depend on the input operand values.
  ///     See the table below for the concrete NaNs this set contains on various targets.
  ///
  /// | `target_arch` | Extra payloads possible on this platform |
  /// |---------------|------------------------------------------|
  /// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |

Thus the model's preferred quiet NaN is one permitted result whenever
multiplication or division returns NaN. This does not claim that arbitrary
Rust arithmetic NaNs have those exact bits. By contrast, unary negation and
bit conversion must preserve all non-sign bits exactly, including for every
NaN payload.

The exact relevant declarations in core/src/num/f64.rs are:

  pub const MANTISSA_DIGITS: u32 = 53;
  pub const NAN: f64 = 0.0_f64 / 0.0_f64;
  pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
  pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
  pub const SIGN_MASK: u64 = 0x8000_0000_0000_0000;
  pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;
  pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff;

  pub const fn classify(self) -> FpCategory {
      // We used to have complicated logic here that avoids the simple bit-based tests to work
      // around buggy codegen for x87 targets (see
      // https://github.com/rust-lang/rust/issues/114479). However, some LLVM versions later, none
      // of our tests is able to find any difference between the complicated and the naive
      // version, so now we are back to the naive version.
      let b = self.to_bits();
      match (b & Self::MANTISSA_MASK, b & Self::EXPONENT_MASK) {
          (0, Self::EXPONENT_MASK) => FpCategory::Infinite,
          (_, Self::EXPONENT_MASK) => FpCategory::Nan,
          (0, 0) => FpCategory::Zero,
          (_, 0) => FpCategory::Subnormal,
          _ => FpCategory::Normal,
      }
  }

  pub const fn to_bits(self) -> u64 {
      // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
      unsafe { mem::transmute(self) }
  }

  pub const fn from_bits(v: u64) -> Self {
      // It turns out the safety issues with sNaN were overblown! Hooray!
      // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
      unsafe { mem::transmute(v) }
  }

The exact scalar clone body in core/src/clone.rs is:

  impl const Clone for $t {
      #[inline(always)]
      fn clone(&self) -> Self {
          *self
      }
  }

Frozen adapted source
---------------------

The relevant retained source file hashes are:

  crate/traits.rs
    9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  crate/dec2flt/decimal.rs
    633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb
  crate/dec2flt/lemire.rs
    fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1
  crate/dec2flt/slow.rs
    93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485

The dispatcher excerpts below are reproduced from the identified file by
running these commands from the repository root:

  sha256sum crate/dec2flt/mod.rs
  sed -n '354,403p' crate/dec2flt/mod.rs
  sed -n '405,422p' crate/dec2flt/mod.rs
  sed -n '465,475p' crate/dec2flt/mod.rs
  sed -n '506,523p' crate/dec2flt/mod.rs

Exact constant and bit-conversion excerpt from crate/traits.rs:

  impl Float for f64 {
      type Int = u64;

      const INFINITY: Self = Self::INFINITY;
      const NEG_INFINITY: Self = Self::NEG_INFINITY;
      const NAN: Self = Self::NAN;
      // Bit-identical to the upstream `-f64::NAN`, without the unsupported
      // compile-time float negation.
      const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);

      const BITS: u32 = 64;
      const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
      const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
      const SIG_MASK: Self::Int = Self::MANTISSA_MASK;

      fn to_bits(self) -> Self::Int {
          self.to_bits()
      }

      fn classify(self) -> FpCategory {
          self.classify()
      }
  }

  impl FloatExt for f64 {
      #[inline]
      fn from_u64_bits(v: u64) -> Self {
          f64::from_bits(v)
      }

Exact derived-constant defaults from crate/traits.rs:

  /// The number of bits in the significand, *excluding* the hidden bit.
  const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;

  /// Number of bits in the exponent.
  const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

  /// The saturated (maximum bitpattern) value of the exponent, i.e. the infinite
  /// representation.
  ///
  /// This shifted fully right, use `EXP_MASK` for the shifted value.
  const EXP_SAT: u32 = (1 << Self::EXP_BITS) - 1;

  /// Signed version of `EXP_SAT` since we convert a lot.
  const INFINITE_POWER: i32 = Self::EXP_SAT as i32;

  /// The exponent bias value. This is also the maximum value of the exponent.
  const EXP_BIAS: u32 = Self::EXP_SAT >> 1;

  /// Minimum exponent value of normal values.
  const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Together with the f64-instance lines `BITS = 64` and
`SIG_TOTAL_BITS = Self::MANTISSA_DIGITS` in the preceding excerpt, these
defaults derive SIG_BITS, EXP_MIN, and INFINITE_POWER from the primitive
mantissa-digit constant rather than introducing independent parameters.

Exact asserted-conversion excerpt from crate/dec2flt/mod.rs:

  #[inline]
  // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
  // `charon::opaque` makes this entire asserted conversion external: both the
  // unchanged `debug_assert!` and the unchanged cast below are in the opaque
  // body. The callers, their fast-path guards, and their surrounding
  // computation remain mechanically visible. A corresponding model binding
  // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
  // exact binary64 conversion at or below that bound.
  #[charon::opaque]
  fn from_u64(v: u64) -> Self {
      debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
      v as _
  }

Here MAX_MANTISSA_FAST_PATH is the retained default 1 << 53.  The attribute is
attached to the function item, so the generated external stands for the whole
method, not merely the cast.  In the enabled-debug configuration the source
succeeds only when v <= 2^53; above it the assertion fails before the cast. On
the successful branch every integer is exactly representable, so the source
cast and the model rounder return the same word.

Exact power-table and assembly excerpts from crate/dec2flt/mod.rs:

  /// Maximum mantissa for the fast-path (`1 << 53` for f64).
  const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;

  const MAX_EXPONENT_FAST_PATH: i64 = 22;
  const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
  const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;

  fn pow10_fast_path(exponent: usize) -> Self {
      // These bit patterns are exactly the source table's rounded binary64
      // literals.  The match is the same masked lookup; it merely keeps float
      // constants out of Aeneas's unsupported constant interpreter.
      match exponent & 31 {
          0 => f64::from_bits(0x3FF0_0000_0000_0000),
          1 => f64::from_bits(0x4024_0000_0000_0000),
          2 => f64::from_bits(0x4059_0000_0000_0000),
          3 => f64::from_bits(0x408F_4000_0000_0000),
          4 => f64::from_bits(0x40C3_8800_0000_0000),
          5 => f64::from_bits(0x40F8_6A00_0000_0000),
          6 => f64::from_bits(0x412E_8480_0000_0000),
          7 => f64::from_bits(0x4163_12D0_0000_0000),
          8 => f64::from_bits(0x4197_D784_0000_0000),
          9 => f64::from_bits(0x41CD_CD65_0000_0000),
          10 => f64::from_bits(0x4202_A05F_2000_0000),
          11 => f64::from_bits(0x4237_4876_E800_0000),
          12 => f64::from_bits(0x426D_1A94_A200_0000),
          13 => f64::from_bits(0x42A2_309C_E540_0000),
          14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
          15 => f64::from_bits(0x430C_6BF5_2634_0000),
          16 => f64::from_bits(0x4341_C379_37E0_8000),
          17 => f64::from_bits(0x4376_3457_85D8_A000),
          18 => f64::from_bits(0x43AB_C16D_674E_C800),
          19 => f64::from_bits(0x43E1_58E4_6091_3D00),
          20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
          21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
          22 => f64::from_bits(0x4480_F0CF_064D_D592),
          _ => f64::from_bits(0),
      }
  }

  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

Exact native-call excerpt from crate/dec2flt/decimal.rs:

  fn can_use_fast_path<F: Lemire>(&self) -> bool {
      F::MIN_EXPONENT_FAST_PATH <= self.exponent
          && self.exponent <= F::MAX_EXPONENT_DISGUISED_FAST_PATH
          && self.mantissa <= F::MAX_MANTISSA_FAST_PATH
          && !self.many_digits
  }

  if !self.can_use_fast_path::<F>() {
      return None;
  }

  let value = if self.exponent <= F::MAX_EXPONENT_FAST_PATH {
      // normal fast path
      let value = F::from_u64(self.mantissa);
      if self.exponent < 0 {
          // Explicit trait calls preserve Rust arithmetic and resolve
          // the generic output type that Charon leaves ambiguous.
          core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
      } else {
          core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
      }
  } else {
      // disguised fast path
      let shift = self.exponent - F::MAX_EXPONENT_FAST_PATH;
      let mantissa = self.mantissa.checked_mul(INT_POW10[shift as usize])?;
      if mantissa > F::MAX_MANTISSA_FAST_PATH {
          return None;
      }
      core::ops::Mul::mul(
          F::from_u64(mantissa),
          F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
      )
  };

  if self.negative {
      Some(core::ops::Neg::neg(value))
  } else {
      Some(value)
  }

The preceding can_use_fast_path body, together with
MAX_MANTISSA_FAST_PATH = 1 << SIG_TOTAL_BITS and SIG_TOTAL_BITS = 53 for f64,
requires the exponent to lie between -22 and 37, the input mantissa to be at
most 2^53, and many_digits to be false. Consequently an ordinary arithmetic
call has a from_u64 operand in 0..=2^53. In its negative-exponent arm,
`-self.exponent` lies in 1..=22; in its nonnegative arm, `self.exponent` lies
in 0..=22. The disguised branch checks its multiplied mantissa against 2^53
before from_u64 and uses table index 22. The paired statement
Binary64NativeCallDomain does not assert this source reachability. It says
conditionally that a from_u64 argument at most 2^53 succeeds with a finite,
non-NaN word and that a table index at most 22 succeeds with a positive,
nonzero, finite, non-NaN word. Applying that conditional statement to the
guards just derived establishes those properties for the actual ordinary and
disguised calls, and in particular establishes that every executed divisor is
nonzero.

Exact special-value excerpt from crate/dec2flt/parse.rs:

  let float = match (register, len) {
      (INF_3, 3) => F::INFINITY,
      (INF_8, 8) => F::INFINITY,
      (NAN, 3) => F::NAN,
      _ => return None,
  };

  if negative { Some(-float) } else { Some(float) }

Thus the executed special route is INFINITY or NAN followed by conditional
negation; it does not select NEG_INFINITY or NEG_NAN directly.

The number helper has the exact source body

  pub fn parse_number(s: &[u8]) -> Option<Decimal> {
      if let Some((float, rest)) = parse_partial_number(s) {
          if rest == s.len() {
              return Some(float);
          }
      }
      None
  }

It returns only the Decimal produced by parse_partial_number; there is no
float type parameter or float operation at this boundary.

Exact dispatcher excerpts from crate/dec2flt/mod.rs
---------------------------------------------------

The entry of `dec2flt_with_trace` strips at most one leading sign, rejects
empty and sign-only inputs, calls `parse_number` on the unsigned body, and
calls `parse_inf_nan` only when `parse_number` returns `None`:

  /// Run the actual dispatcher while retaining its approved internal observations.
  pub fn dec2flt_with_trace<
      'a,
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {
          return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
      };
      let negative = c == b'-';
      if c == b'-' || c == b'+' {
          body = &body[1..];
      }
      if body.is_empty() {
          return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
      }

      let parse_number_result = parse_number(body);
      let parsed = match parse_number_result {
          Some(r) => r,
          None => {
              let parse_inf_nan_result = parse_inf_nan(body, negative);
              return match parse_inf_nan_result {
                  Some(value) => (
                      Ok(value),
                      Dec2FltTrace::Special {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                          result: value,
                      },
                  ),
                  None => (
                      Err(pfe_invalid()),
                      Dec2FltTrace::Invalid {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                      },
                  ),
              };
          }
      };

Thus every `Err` arm shown here returns before `parsed` is available and before
the native, integer, slow, assembly, or final-negation code below it can run.
On a numeric result, the lexical sign is copied into the parsed record before
the native attempt, whose successful result also returns before raw-pair
assembly:

      let mut num = parsed;
      num.negative = negative;
      if !cfg!(feature = "optimize_for_size") {
          let fast_path_result = num.try_fast_path::<F>();
          if let Some(value) = fast_path_result {
              return (
                  Ok(value),
                  Dec2FltTrace::FastPath {
                      body,
                      negative,
                      parse_number_result,
                      fast_path_input: num,
                      fast_path_result,
                      result: value,
                  },
              );
          }
      }

If the native attempt does not return, the selected raw pair is assembled and
the source then conditionally negates it according to the lexical-sign flag:

      let selected_pair = fp;
      // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
      // it neither changes the selected pair nor introduces a new branch or call.
      let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
      let assembly_result = biased_fp_to_float::<F>(fp);
      let lexical_sign_applied = num.negative;
      let result = if lexical_sign_applied {
          core::ops::Neg::neg(assembly_result)
      } else {
          assembly_result
      };

The public `dec2flt` executes that same route and returns its result projection;
it does not reimplement or reorder any parsing or float operation:

  /// Converts a decimal string into a floating point number.
  #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
  pub fn dec2flt<
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &str,
  ) -> Result<F, ParseFloatError> {
      // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
      // clause admits exactly the same instances and lets Charon resolve the
      // explicit, source-equivalent final negation.
      // The public function is now exactly the result projection of the single
      // instrumented implementation.  No conversion step is duplicated, and
      // discarding the trace cannot affect Rust evaluation or the returned bits.
      dec2flt_with_trace::<F>(s).0
  }

The integer-tier helper has the source type and exact executable excerpts
below (long explanatory comments are elided). In particular it returns a raw
BiasedFp and contains no from_u64 cast, primitive float multiplication,
division, negation, or from_bits call:

  pub fn compute_float<F: Float>(q: i64, mut w: u64) -> BiasedFp {
      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);
      let fp_error = BiasedFp::zero_pow2(-1);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if w == 0 || q < F::SMALLEST_POWER_OF_TEN as i64 {
          return fp_zero;
      } else if q > F::LARGEST_POWER_OF_TEN as i64 {
          return fp_inf;
      }
      // Normalize our significant digits, so the most-significant bit is set.
      let lz = w.leading_zeros();
      w <<= lz;
      let (lo, hi) = compute_product_approx(q, w, F::SIG_BITS as usize + 3);
      if lo == 0xFFFF_FFFF_FFFF_FFFF {
          let inside_safe_exponent = (q >= -27) && (q <= 55);
          if !inside_safe_exponent {
              return fp_error;
          }
      }
      let upperbit = (hi >> 63) as i32;
      let mut mantissa = hi >> (upperbit + 64 - F::SIG_BITS as i32 - 3);
      let mut power2 = power(q as i32) + upperbit - lz as i32 - F::EXP_MIN + 1;
      if power2 <= 0 {
          if -power2 + 1 >= 64 {
              // Have more than 64 bits below the minimum exponent, must be 0.
              return fp_zero;
          }
          // Have a subnormal value.
          mantissa >>= -power2 + 1;
          mantissa += mantissa & 1;
          mantissa >>= 1;
          power2 = (mantissa >= (1_u64 << F::SIG_BITS)) as i32;
          return BiasedFp { m: mantissa, p_biased: power2 };
      }
      // Need to handle rounding ties. Normally, we need to round up,
      // but if we fall right in between and we have an even basis, we
      // need to round down.
      if lo <= 1
          && q >= F::MIN_EXPONENT_ROUND_TO_EVEN as i64
          && q <= F::MAX_EXPONENT_ROUND_TO_EVEN as i64
          && mantissa & 0b11 == 0b01
          && (mantissa << (upperbit + 64 - F::SIG_BITS as i32 - 3)) == hi
      {
          // Zero the lowest bit, so we don't round up.
          mantissa &= !1_u64;
      }
      // Round-to-even, then shift the significant digits into place.
      mantissa += mantissa & 1;
      mantissa >>= 1;
      if mantissa >= (2_u64 << F::SIG_BITS) {
          // Rounding up overflowed, so the carry bit is set. Set the
          // mantissa to 1 (only the implicit, hidden bit is set) and
          // increase the exponent.
          mantissa = 1_u64 << F::SIG_BITS;
          power2 += 1;
      }
      // Zero out the hidden bit.
      mantissa &= !(1_u64 << F::SIG_BITS);
      if power2 >= F::INFINITE_POWER {
          // Exponent is above largest normal value, must be infinite.
          return fp_inf;
      }
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact slow-tier source body from crate/dec2flt/slow.rs:

  pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {
      const MAX_SHIFT: usize = 60;
      const NUM_POWERS: usize = 19;
      const POWERS: [u8; 19] =
          [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];

      let get_shift = |n| {
          if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }
      };

      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);

      let mut d = parse_decimal_seq(s);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if d.num_digits == 0 || d.decimal_point < -324 {
          return fp_zero;
      } else if d.decimal_point >= 310 {
          return fp_inf;
      }
      let mut exp2 = 0_i32;
      let mut loop_result = None;
      // Shift right toward (1/2 ... 1].
      while d.decimal_point > 0 && loop_result.is_none() {
          let n = d.decimal_point as usize;
          let shift = get_shift(n);
          d.right_shift(shift);
          if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_zero);
          } else {
              exp2 += shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // Shift left toward (1/2 ... 1].
      while d.decimal_point <= 0 && loop_result.is_none() {
          let shift = if d.decimal_point == 0 {
              match d.digits[0] {
                  digit if digit >= 5 => break,
                  0 | 1 => 2,
                  _ => 1,
              }
          } else {
              get_shift((-d.decimal_point) as _)
          };
          d.left_shift(shift);
          if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_inf);
          } else {
              exp2 -= shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
      exp2 -= 1;
      while F::EXP_MIN > exp2 {
          let mut n = (F::EXP_MIN - exp2) as usize;
          if n > MAX_SHIFT {
              n = MAX_SHIFT;
          }
          d.right_shift(n);
          exp2 += n as i32;
      }
      if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
          return fp_inf;
      }
      // Shift the decimal to the hidden bit, and then round the value
      // to get the high mantissa+1 bits.
      d.left_shift(F::SIG_BITS as usize + 1);
      let mut mantissa = d.round();
      if mantissa >= (1_u64 << (F::SIG_BITS + 1)) {
          // Rounding up overflowed to the carry bit, need to
          // shift back to the hidden bit.
          d.right_shift(1);
          exp2 += 1;
          mantissa = d.round();
          if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
              return fp_inf;
          }
      }
      let mut power2 = exp2 - F::EXP_MIN + 1;
      if mantissa < (1_u64 << F::SIG_BITS) {
          power2 -= 1;
      }
      // Zero out all the bits above the explicit mantissa bits.
      mantissa &= (1_u64 << F::SIG_BITS) - 1;
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact final numeric-sign excerpt from crate/dec2flt/mod.rs:

  let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
  let assembly_result = biased_fp_to_float::<F>(fp);
  let lexical_sign_applied = num.negative;
  let result = if lexical_sign_applied {
      core::ops::Neg::neg(assembly_result)
  } else {
      assembly_result
  };

Thus a numeric execution that reaches the integer/slow selection route
assembles its selected pair with from_bits through biased_fp_to_float and only
then conditionally negates it. A successful try_fast_path returns earlier and
does not perform this assembly. compute_float and parse_long_mantissa produce
raw BiasedFp pairs and do not call from_u64, primitive float multiplication,
division, negation, or from_bits; they do, however, execute constants derived
from SIG_TOTAL_BITS before producing those pairs.

Retained structural-boundary evidence
-------------------------------------

Several adjacent structural bindings cite this same evidence record. Their
pinned library source identities are:

  core/src/num/mod.rs
    f0820f9dfb94999440c8cb4a349736fa21df7e5668e19b6b49e016ff67c05ce3
  core/src/option.rs
    7cf61204b05d98a95bc2e322d5fbfc1f4f91505109971917d9a7fb47151c50e6
  core/src/slice/mod.rs
    354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840
  core/src/str/mod.rs
    284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78

Exact ASCII-digit body from core/src/num/mod.rs:

  pub const fn is_ascii_digit(&self) -> bool {
      matches!(*self, b'0'..=b'9')
  }

Exact Option control-flow bodies from core/src/option.rs:

  fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
      match self {
          Some(v) => ControlFlow::Continue(v),
          None => ControlFlow::Break(None),
      }
  }

  fn from_residual(residual: Option<convert::Infallible>) -> Self {
      match residual {
          None => None,
      }
  }

Exact slice observation bodies from core/src/slice/mod.rs:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

Exact string-byte body from core/src/str/mod.rs:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }
reference/model-evidence/binary64-probe.rs

Open file

#![feature(float_masks)]

use std::num::FpCategory;

fn bits(label: &str, value: f64) {
    println!("{label}={:016x}", value.to_bits());
}

fn main() {
    println!("target_arch={}", std::env::consts::ARCH);
    println!("mantissa_digits={}", f64::MANTISSA_DIGITS);
    println!("exponent_mask={:016x}", f64::EXPONENT_MASK);
    println!("mantissa_mask={:016x}", f64::MANTISSA_MASK);
    bits("nan", f64::NAN);
    bits("infinity", f64::INFINITY);
    bits("neg_infinity", f64::NEG_INFINITY);

    for (label, value) in [
        ("nan_category", f64::NAN),
        ("infinity_category", f64::INFINITY),
        ("zero_category", 0.0),
        ("subnormal_category", f64::from_bits(1)),
        ("normal_category", 1.0),
    ] {
        let category = match value.classify() {
            FpCategory::Nan => "Nan",
            FpCategory::Infinite => "Infinite",
            FpCategory::Zero => "Zero",
            FpCategory::Subnormal => "Subnormal",
            FpCategory::Normal => "Normal",
        };
        println!("{label}={category}");
    }

    let payload_nan_word = 0x7ff0_0000_0000_0001_u64;
    println!(
        "from_bits_to_bits={:016x}",
        f64::from_bits(payload_nan_word).to_bits()
    );
    bits("neg_payload_nan", -f64::from_bits(payload_nan_word));
    bits("neg_zero", -0.0);

    bits("subnormal_tie_to_even_zero", f64::from_bits(1) * 0.5);
    bits("subnormal_tie_to_even_two", f64::from_bits(3) * 0.5);
    bits("normal_division", 1.0 / 10.0);
    bits("mul_negative_zero", -0.0 * 2.0);
    bits("div_negative_zero", -1.0 / f64::INFINITY);
    bits("div_negative_infinity", 1.0 / -0.0);
    bits("mul_overflow", f64::MAX * (1.0 + f64::EPSILON));
    println!("mul_zero_infinity_is_nan={}", (0.0 * f64::INFINITY).is_nan());
    println!("div_zero_zero_is_nan={}", (0.0_f64 / 0.0_f64).is_nan());
    println!("mul_nan_is_nan={}", (f64::NAN * 1.0).is_nan());

    bits("cast_2_pow_53", (1_u64 << 53) as f64);
    bits("cast_2_pow_53_plus_1", ((1_u64 << 53) + 1) as f64);
}
reference/model-evidence/source-valid-byte-slice-probe.out

Open file

arch=x86_64
usize_bits=64
isize_max=9223372036854775807
u8_size=1
reference/model-evidence/source-valid-byte-slice-probe.rs

Open file

fn main() {
    println!("arch={}", std::env::consts::ARCH);
    println!("usize_bits={}", usize::BITS);
    println!("isize_max={}", isize::MAX);
    println!("u8_size={}", std::mem::size_of::<u8>());
}
reference/model-evidence/source-valid-byte-slice.txt

Open file

Source-valid byte-slice and string domain evidence
==================================================

Scope and pinned identities
---------------------------

All commands below were run from the repository root.  The configured compiler
is:

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

Its SHA-256 is:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b

The exact identity commands were:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  sha256sum "$R"
  "$R" --version --verbose
  "$R" --target x86_64-unknown-linux-gnu --print cfg | LC_ALL=C sort | \
    rg 'target_(arch|pointer_width)'

Their relevant raw output was:

  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
  target_arch="x86_64"
  target_pointer_width="64"

Retained configured-target probe
--------------------------------

The retained probe source is
reference/model-evidence/source-valid-byte-slice-probe.rs.  It was compiled
for the configured target and executed with this exact command, which depends
only on the retained source and the pinned compiler:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/source-valid-byte-slice-probe.rs
  B=/tmp/dec2flt-source-valid-byte-slice-probe
  O=reference/model-evidence/source-valid-byte-slice-probe.out
  "$R" --edition 2024 --target x86_64-unknown-linux-gnu -C opt-level=0 \
    -C debuginfo=0 -C overflow-checks=on -C debug-assertions=on \
    --crate-name source_valid_byte_slice_probe "$P" -o "$B"
  sha256sum "$R" "$P" "$B"
  "$B" > "$O"
  sha256sum "$O"
  cat "$O"

The actual hashes were:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd  reference/model-evidence/source-valid-byte-slice-probe.rs
  87dc3b9b7a46506d2205503d8aa007b451c452968af48d1ba5961a821934ee55  /tmp/dec2flt-source-valid-byte-slice-probe
  01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4  reference/model-evidence/source-valid-byte-slice-probe.out

The retained raw output file contains exactly:

  arch=x86_64
  usize_bits=64
  isize_max=9223372036854775807
  u8_size=1

Pinned core-library source
--------------------------

Let:

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

The exact commands used to identify and inspect the relevant core sources were:

  sha256sum "$S/slice/mod.rs" "$S/num/int_macros.rs" "$S/str/mod.rs"
  sed -n '798,808p' "$S/slice/mod.rs"
  sed -n '43,51p' "$S/num/int_macros.rs"
  sed -n '495,510p' "$S/str/mod.rs"

The file identities are:

  354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840  core/src/slice/mod.rs
  3896304e7cb14628e293134ac41fd18be2b5369bedc02d1c6a7408bd8c755a31  core/src/num/int_macros.rs
  284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78  core/src/str/mod.rs

The relevant exact excerpt of slice/mod.rs, line 801, is:

  //   - The size of the slice is never larger than `isize::MAX` bytes, as

The relevant exact declaration in num/int_macros.rs, line 47, is:

  pub const MAX: Self = (<$UnsignedT>::MAX >> 1) as Self;

The relevant exact excerpts of str/mod.rs are its same-layout byte-slice
conversion at lines 498-500:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }

and its UTF-8 invariant at lines 507-510:

  /// The caller must ensure that the content of the slice is valid UTF-8
  /// before the borrow ends and the underlying `str` is used.
  ///
  /// Use of a `str` whose contents are not valid UTF-8 is undefined behavior.

Conclusion
----------

The configured target has 64-bit usize/isize and one-byte u8 elements.
The pinned signed-MAX definition therefore gives
isize::MAX = 2^63 - 1 = 9223372036854775807, and the pinned slice rule bounds a
slice by that many bytes.  For &[u8], this is exactly an element-count bound;
the rule adds no UTF-8 condition or other restriction on the byte contents.
The pinned str source exposes the identical-layout &[u8] bytes and separately
requires them to be valid UTF-8.  Consequently the exact configured domains
are arbitrary &[u8] bytes of length at most isize::MAX, and Rust str bytes of
length at most isize::MAX that are valid UTF-8.  No smaller convenience bound
is introduced.
Assumptions / kernel axioms
  • Classical.choice
  • Quot.sound
  • propext

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (32)
All 32 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourceTablet/model-support.json
Kindopaque external binding
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:26b49c7c49d49814e1a51411bf568f7da00bae4f8bf32f6ec912937a0dfec17c
Preservation current fingerprintpreservation-v1:26b49c7c49d49814e1a51411bf568f7da00bae4f8bf32f6ec912937a0dfec17c
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"b941136529ebbb99d2692bd8b5047d080684eea508b678b8cf7b06ef567ee21f","lean_semantic_closure":"f2d984413bfd9b1860de8e3d5e54d883a9edf8c6755551f3e6a7eec141a714e9","preamble_tex":""}
Correspondence current fingerprint{"own_tex":"b941136529ebbb99d2692bd8b5047d080684eea508b678b8cf7b06ef567ee21f","lean_semantic_closure":"f2d984413bfd9b1860de8e3d5e54d883a9edf8c6755551f3e6a7eec141a714e9","preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "f4806fb5f72859608f5f25744c5305687df9e5a59e6841c68e10f0d87726ae9a",
    "dep_statement_hashes": {
      "SourceValidByteSlice": "52522ae5b8602c6279dde2af31f94e21db249400641f5d3e951f68a74c3c11e2"
    },
    "combined_sound_fp": "preservation-v1:26b49c7c49d49814e1a51411bf568f7da00bae4f8bf32f6ec912937a0dfec17c"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Exact source record
{
  "name": "core.slice.Slice.split_first",
  "extracted_signature": "{T : Type} : Slice T → Result (Option (T × (Slice T)))",
  "rust_symbol": "core::slice::{[T]}::split_first",
  "raw_declaration_sha256": "f983904621cafa667f0bfd9822b4d95fb0bd6820ee84b107130e7c4f7bac3c49",
  "node": "ModelSliceSplitFirst",
  "declaration": "dec2flt_model.ModelSliceSplitFirst"
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/aeneas-slice-observations.txt",
    "sha256": "6d031558a189d52c1583babffeeea3fe6775f5d00c85077cc0a07064d725d96f",
    "cited_by": [
      "Tablet/ModelSliceSplitFirst.tex",
      "Tablet/model-support.json"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-boundary.txt",
    "sha256": "fa45c924747337e8d6f84a19fe9e83fb9b33c73434887c0cf57c062533f51fe1",
    "cited_by": [
      "Tablet/ModelSliceSplitFirst.tex",
      "Tablet/model-support.json",
      "reference/model-evidence/aeneas-slice-observations.txt"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-probe.rs",
    "sha256": "68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e",
    "cited_by": [
      "reference/model-evidence/binary64-boundary.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.out",
    "sha256": "01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.rs",
    "sha256": "b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice.txt",
    "sha256": "eb501317621baa00236f9773885466bd38ec1a45cb56457d555b9e9139dc780a",
    "cited_by": [
      "Tablet/ModelSliceSplitFirst.tex",
      "Tablet/model-support.json",
      "reference/model-evidence/aeneas-slice-observations.txt"
    ]
  }
]

core::str::{str}::as_bytes

Inspect related source (1)

Related source and models come from the extraction records and declared dependencies.

Rust itemcore::str::{str}::as_bytes
Recorded source/rustc/library/core/src/str/mod.rs
Lines498:4–498:41

The related-source link includes this operation’s Rust standard-library implementation.

Opaque extraction signature
: Str → Result (Slice Std.U8)
Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Aeneas
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelStrAsBytes]
def ModelStrAsBytes (s : Str) : Result (Slice Std.U8) :=
-- BODY
  ok s
end dec2flt_model

Why this model is faithful

Definition

For every modeled Aeneas Str byte slice s, \mathsf{ModelStrAsBytes}(s) successfully returns s itself.

Preservation argument

Claim

For every Aeneas Str value s satisfying \mathsf{DecimalGoalVocabularyDefault.sourceString}(s), the configured Rust str represented by s has exactly the same complete ordered UTF-8 bytes, source str::as_bytes returns normally with a shared slice of exactly those bytes, and \mathsf{ModelStrAsBytes}(s) returns ok of the identical ordered Aeneas Slice U8 s.

Proof

Aeneas defines Str to be Slice U8; its exact definition, the frozen external declaration, its sole generated call, the support binding, and the configured Rust as_bytes body are pinned in reference/model-evidence/aeneas-string-bytes.txt. By itself this Aeneas type overapproximates Rust str: it permits arbitrary byte values up to Aeneas's Usize.max slice bound, rather than requiring UTF-8 and the stricter configured isize::MAX byte bound. The paired definition DecimalGoalVocabularyDefault supplies exactly the missing restriction: its sourceString predicate requires length at most 9223372036854775807 and a witness Lean string whose UTF-8 encoding is the entire byte list of s. Those are precisely the configured Rust str representation conditions established by reference/model-evidence/source-valid-byte-slice.txt.
For such an s, the witness therefore identifies a source-valid Rust str with the same complete ordered bytes. The frozen Rust body is an infallible same-layout transmutation from that str to a shared [u8] slice, so it neither changes the byte sequence nor introduces a panic or error. Aeneas represents the slice as the complete ordered list subtype and erases this immutable shared borrow to its value observation, as pinned in reference/model-evidence/aeneas-slice-observations.txt. Finally, the bound implementation is literally ok s. Hence, on exactly the sourceString subset and without making a claim about other Aeneas Str values, the source call and its replacement both continue normally with the identical complete ordered U8 slice.
Authored arguments for individual requirements

Requirement: assembly correspondence

The source subject biased_fp_to_float begins from a BiasedFp and contains no string-to-bytes conversion; the unique frozen as_bytes call is instead in dec2flt_with_trace, as shown by reference/model-evidence/aeneas-string-bytes.txt. This binding is therefore noninterfering with every execution and raw-word observation of the assembly goal.

Requirement: classification determinism

This is a mathematical claim about the classification relation on arbitrary finite byte strings, not an execution of a Rust string operation. It therefore contains no as_bytes call, so this binding neither restricts its byte domain nor supplies its uniqueness conclusion.

Requirement: classification significand digit

This mathematical goal inspects the significand of a classified finite byte string and performs no source call. Consequently string conversion is absent and this binding is noninterfering; in particular, it does not assume that a numeric classification contains a digit.

Requirement: classification totality

The goal quantifies over every finite byte string without a source-string or UTF-8 restriction and is stated entirely in the mathematical classification relation. It never executes as_bytes; this source-valid-string claim therefore adds no restriction and does not assert total classification.

Requirement: dispatch abstract composition

For the theorem's source-valid-string input, the claim identifies exactly the complete ordered byte slice passed to its abstract flow. Thus the string input and abstract byte-domain input are connected without changing bytes or adding a failure at conversion. The abstract flow itself does not execute the frozen source call; this application asserts neither contract inhabitation nor any classification, rounding, sign, or normal-return conclusion.

Requirement: dispatch component compliance

The unique frozen as_bytes call is the first operation of the concrete dec2flt_with_trace execution, as pinned in reference/model-evidence/aeneas-string-bytes.txt. On the goal's source-valid strings, the replacement succeeds exactly when the infallible source call does and feeds the identical ordered bytes to every subsequent branch, helper call, trace field, and result; later panic-versus-normal behavior is therefore unchanged. This establishes only preservation of the concrete execution and of later comparisons with contracts, not existence of a compliant contract instance or the component-compliance conclusion.

Requirement: exponent value agreement

This is a mathematical relation among a valid numeric lexeme, its two exponent interpretations, and their rounding targets. It contains no source operation, so the string binding is noninterfering and does not assume that the targets agree.

Requirement: integer correct or defer

The source subject compute_float starts directly from an i64 exponent and u64 mantissa and has no string conversion. The sole as_bytes call belongs to the outer traced dispatcher, so this binding does not affect the integer tier's return, deferral, or assembled-word behavior.

Requirement: native correct or defer

The source subject try_fast_path starts directly from a Decimal record and contains no str::as_bytes call. Hence the binding is noninterfering with its panic/normal, None/Some, and float-result observations and does not assert native correctness.

Requirement: number helper acceptance

The source subject parse_number receives a Rust byte slice directly; it does not convert a Rust string. The sole frozen as_bytes call is in the outer traced dispatcher, so this binding neither restricts helper slices nor asserts that this helper accepts numeric input.

Requirement: number helper accumulated value

This helper goal starts with the byte slice passed directly to parse_number. Since that source function contains no string conversion, this binding changes neither its returned record nor the values compared with that record, and supplies none of the interval conclusion.

Requirement: number helper record bounds

The quantified source-valid object here is already a Rust byte slice in the sense of SourceValidByteSlice, not a Rust str. The helper therefore does not call as_bytes; this binding is noninterfering with normal return and the record-field bounds.

Requirement: number helper rejection

The source subject parse_number takes its arbitrary nonempty byte slice directly and performs no string conversion. Thus this binding adds no UTF-8 premise, changes no helper execution, and does not presume the asserted None result.

Requirement: parser accumulated rounding

The sole frozen as_bytes call is the first operation of the public parser path through dec2flt_with_trace, as pinned in reference/model-evidence/aeneas-string-bytes.txt. On each source-valid input the source call and replacement both continue with identical ordered bytes, so every later branch, panic/normal outcome, returned word, and trace observation is unchanged. This does not assume accumulated-value rounding.

Requirement: parser equal target rounding

At the unique frozen public-parser as_bytes call recorded in reference/model-evidence/aeneas-string-bytes.txt, the sourceString premise places the input exactly in the claim's domain. Both sides continue infallibly with the same ordered bytes, preserving all downstream branches, panic/normal behavior, words, and traces without assuming the equal-target bridge.

Requirement: parser exact rounding

The unique frozen string conversion on the public parser path is pinned in reference/model-evidence/aeneas-string-bytes.txt. For every source-valid numeric input it is replaced by ok of precisely the same ordered bytes, with no new failure; hence all subsequent control flow, panic-versus-normal behavior, and result words are preserved. No exact-rounding conclusion is used here.

Requirement: parser infinity

For a source-valid infinity literal, the unique public-parser as_bytes call pinned in reference/model-evidence/aeneas-string-bytes.txt and its model both continue normally with the literal's identical ordered bytes. All subsequent matching, sign handling, panic/normal behavior, and returned word are therefore unchanged; this does not assert acceptance or the infinity result.

Requirement: parser invalid rejection

For every source-valid string in this goal, the unique conversion at the start of dec2flt_with_trace, pinned in reference/model-evidence/aeneas-string-bytes.txt, is infallible and is replaced by ok of the exact same bytes. Downstream classification, panic/normal behavior, and Ok/Err observations are preserved without assuming that invalid inputs are rejected.

Requirement: parser nan acceptance

The source-valid NaN spelling reaches the sole frozen public-parser as_bytes call recorded in reference/model-evidence/aeneas-string-bytes.txt. That call and the replacement both continue with exactly the same ordered bytes, preserving later case matching, sign handling, panic/normal behavior, and result bits; no NaN acceptance claim is assumed.

Requirement: parser non nan results

The unique public-parser as_bytes call is pinned in reference/model-evidence/aeneas-string-bytes.txt. On every source-valid non-NaN input it and the replacement succeed with identical bytes, so later branches, panic/normal outcomes, and the returned word are unchanged. Whether that word is non-NaN remains the separate GOAL obligation.

Requirement: parser numeric acceptance

The unique conversion at the start of the public parser's traced execution is pinned in reference/model-evidence/aeneas-string-bytes.txt. The source-valid numeric input satisfies the claim premise, so source and model continue infallibly with identical ordered bytes; all later control flow, panic/normal behavior, and Ok/Err results are preserved without asserting acceptance.

Requirement: parser numeric sign

At the sole frozen public-parser as_bytes call pinned in reference/model-evidence/aeneas-string-bytes.txt, each source-valid numeric input and its model expose the same first sign byte and remaining ordered bytes. Thus all downstream branches, panic/normal behavior, assembly, and returned words are unchanged, without assuming the claimed lexical sign.

Requirement: parser selected exponent

The unique frozen as_bytes call on the public traced-parser path is pinned in reference/model-evidence/aeneas-string-bytes.txt. On source-valid inputs the model supplies its exact bytes with the same infallible boundary behavior, preserving every later branch, panic/normal outcome, and recorded selected pair. It does not assume that the selected exponent is in range.

Requirement: parser selected magnitude sign

At the sole public-parser string conversion recorded in reference/model-evidence/aeneas-string-bytes.txt, source and model continue normally with identical ordered bytes for every source-valid input. Therefore downstream control, panic/normal behavior, selected-pair and assembled word observations are unchanged; the clear-sign-bit conclusion is not assumed.

Requirement: parser signed zero

For a source-valid numeric zero literal, the unique frozen public-parser as_bytes call pinned in reference/model-evidence/aeneas-string-bytes.txt and the replacement both continue infallibly with the identical sign and digit bytes. This preserves later branches, panic/normal behavior, and the returned word but does not assert the signed-zero conclusion.

Requirement: parser totality

The unique string conversion at the beginning of the public parser's traced execution is pinned in reference/model-evidence/aeneas-string-bytes.txt. Every input satisfying sourceString lies in the claim's exact domain, and source and model both pass the same ordered bytes without failure at this boundary. Thus all later execution, including any panic, normal return, or divergence, is unchanged; this application does not assume totality.

Requirement: rounding determinism

This mathematical goal quantifies over nonnegative reals and binary64 rounding targets and contains no source execution. It never calls as_bytes, so the binding is noninterfering and supplies no uniqueness premise or conclusion.

Requirement: rounding totality

This mathematical existence statement concerns every nonnegative real and the binary64 rounding relation, not a Rust parser call. String conversion is absent, so the binding neither changes its domain nor assumes a rounding target exists.

Requirement: slow accumulated rounding

The source subject parse_long_mantissa begins directly from a Rust byte slice and does not call str::as_bytes; the sole frozen call is in the outer traced dispatcher. This binding therefore changes neither helper execution nor its raw pair and does not assert the rounding conclusion.

Requirement: special helper infinity

The specialized parse_inf_nan source subject receives its keyword as a Rust byte slice directly, so it performs no string conversion. This binding adds no UTF-8 condition and is noninterfering with its return and sign observations, without assuming infinity acceptance.

Requirement: special helper nan

This helper starts directly from a Rust byte slice and a separate sign argument; it contains no as_bytes call. The string binding therefore changes no branch, panic/normal outcome, or returned word and does not assume NaN acceptance.

Requirement: special helper rejection

The source subject parse_inf_nan receives an arbitrary Rust byte slice directly and never converts a Rust string. Consequently this binding is noninterfering, imposes no UTF-8 restriction, and supplies none of the claimed None result.

Recorded review

CorrespondencePass
PreservationVerifierPass

ModelStrAsBytes · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/aeneas-slice-observations.txt

Open file

Aeneas slice-observation evidence

Commands were run from the repository root unless an explicit -C directory is
shown.  The Aeneas checkout and executable used for the frozen extraction are:

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

  sha256sum /home/leanagent/pv_spike/tools/aeneas/bin/aeneas
  9f446d2aaf59e8e705e36d05cb993f1c6ab0e97f8dc6fd2f19907a86ede30922

  sha256sum /home/leanagent/pv_spike/tools/aeneas/backends/lean/Aeneas/Std/Slice.lean
  c941826e8da78e1c517cae719b9f58e64671331957cce0b3c22c321a6c62c328

At that commit, Aeneas/Std/Slice.lean:22 defines:

  def Slice (α : Type u) := { l : List α // l.length ≤ Usize.max }

Thus an Aeneas Slice is an ordered List subtype.  Its val field is the complete
ordered element list; the subtype property is the Usize.max length bound.

  sha256sum /home/leanagent/pv_spike/tools/aeneas/documentation/aeneas-overview.md
  8ba474e55ec3375f6eaccc7532715e29dc1d0d6473423a02100bb805a446c3a7

At that commit, aeneas-overview.md:240 states the translation convention that
shared borrows (&T) become plain T parameters and that the value may be copied.
The summary table at line 432 additionally describes the resulting value as
immutable.  Returned shared byte references therefore have no mutable backward
continuation or separately observable identity in the generated model.

The Rust source is the configured nightly-2026-06-01 core library:

  sha256sum /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/slice/mod.rs
  354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840

Its exact observation bodies at core/src/slice/mod.rs:155-156 and 198-199 are:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

These bodies and the same core source hash are also pinned in
reference/model-evidence/binary64-boundary.txt.  The complete configured Rust
&[u8] domain, including the isize::MAX byte-length condition, is independently
pinned in reference/model-evidence/source-valid-byte-slice.txt.

The frozen generated module has this identity:

  sha256sum generated.lean
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9

Its external signatures at generated.lean:316 and 323-324 are:

  axiom core.slice.Slice.first {T : Type} :
    Slice T → Result (Option T)

  axiom core.slice.Slice.split_first {T : Type} :
    Slice T → Result (Option (T × Slice T))

The following command enumerates every declaration or call occurrence:

  rg -n 'core\.slice\.Slice\.(first|split_first)' generated.lean

Raw result:

  316:axiom core.slice.Slice.first {T : Type} : Slice T → Result (Option T)
  323:axiom core.slice.Slice.split_first
  4290:  let o ← core.slice.Slice.split_first s_ref
  4338:    let o ← core.slice.Slice.split_first s
  4591:  let o ← core.slice.Slice.split_first s1
  4613:    let o1 ← core.slice.Slice.split_first s2
  4812:  let o ← core.slice.Slice.first body

All five calls infer T = Std.U8:

* generated.lean:4288-4290 declares parse_scientific with
  s_ref : Slice Std.U8 and calls split_first on s_ref.
* generated.lean:4332-4338 declares try_parse_19digits_loop.body with
  s : Slice Std.U8 and calls split_first on s.
* generated.lean:4582-4591 declares parse_partial_number with
  s : Slice Std.U8; try_parse_digits returns s1 : Slice Std.U8, which is the
  first split_first argument.
* In the same parse_partial_number definition, every branch defining s2 returns
  either s1 or the Std.U8 tail s_next.  Hence the call on s2 at line 4613 also
  has T = Std.U8.
* generated.lean:4803-4812 declares dec2flt_with_trace; body is returned by
  core.str.Str.as_bytes, whose signature at line 330 is
  Str → Result (Slice Std.U8), and first is called on body.

The adapted sources containing the corresponding calls are pinned by:

  sha256sum crate/dec2flt/parse.rs crate/dec2flt/mod.rs
  50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f  crate/dec2flt/parse.rs
  ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d  crate/dec2flt/mod.rs

The five exact Rust call sites are:

  crate/dec2flt/parse.rs:65
      if let Some((c, s_next)) = s.split_first() {
          let digit = c.wrapping_sub(b'0');
          ...
          s = s_next;

  crate/dec2flt/parse.rs:127
      if let Some((&c, s_next)) = s.split_first() {
          negative = c == b'-';
          if c == b'-' || c == b'+' { s = s_next; }

  crate/dec2flt/parse.rs:177
      if let Some((&b'.', s_next)) = s.split_first() {
          s = s_next;

  crate/dec2flt/parse.rs:194
      if let Some((&c, s_next)) = s.split_first() {
          if c == b'e' || c == b'E' { s = s_next; ... }

  crate/dec2flt/mod.rs:365
      let Some(&c) = body.first() else { ... };

Thus every call is on &[u8].  The call sites either destructure the shared byte
reference into a copied byte or invoke an immutable u8 method through it, and
they use the shared tail only as the next immutable slice.  There is no mutation
through a returned reference and no pointer or lifetime identity observation.
Consequently, at every frozen GOAL-facing call site, erasing the
shared-reference lifetime/aliasing data retains the observed U8 value and, for
split_first, the same ordered suffix.
reference/model-evidence/aeneas-string-bytes.txt

Open file

Aeneas string/as_bytes evidence

Commands were run from the repository root unless an explicit -C directory is
shown.  The Aeneas checkout used for the frozen extraction is pinned by:

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

The configured executable and its identity are pinned by:

  jq -r '.effective_tools.aeneas' modeling-input/manifest.json
  /home/leanagent/pv_spike/tools/aeneas/bin/aeneas

  sha256sum /home/leanagent/pv_spike/tools/aeneas/bin/aeneas
  9f446d2aaf59e8e705e36d05cb993f1c6ab0e97f8dc6fd2f19907a86ede30922  /home/leanagent/pv_spike/tools/aeneas/bin/aeneas

The Aeneas string definition at that commit is pinned by:

  sha256sum /home/leanagent/pv_spike/tools/aeneas/backends/lean/Aeneas/Std/String.lean
  412329294f15a509ea526c7506c5f0c2d1a00f45e719049e87c6977b2e365978  /home/leanagent/pv_spike/tools/aeneas/backends/lean/Aeneas/Std/String.lean

Its exact definition at Aeneas/Std/String.lean:6 is:

  def Str := Slice U8

Thus Aeneas Str itself has only the Aeneas Slice U8 constraints; it does not by
itself impose Rust str's UTF-8 validity or isize::MAX byte-length restriction.
The ordered-list representation of Aeneas Slice, including its Usize.max bound,
is pinned separately in reference/model-evidence/aeneas-slice-observations.txt.
The configured Rust str validity and isize::MAX byte-length conditions are
pinned separately in reference/model-evidence/source-valid-byte-slice.txt.

The frozen generated module and its string external are pinned by:

  sha256sum generated.lean
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9  generated.lean

The raw declaration at generated.lean:326-331 is:

  /-- [core::str::{str}::as_bytes]:
      Source: '/rustc/library/core/src/str/mod.rs', lines 498:4-498:41
      Name pattern: [core::str::{str}::as_bytes]
      Visibility: public -/
  @[rust_fun "core::str::{str}::as_bytes"]
  axiom core.str.Str.as_bytes : Str → Result (Slice Std.U8)

The inspect-native raw declaration digest recorded in the support binding is:

  11bae0b1f519e9d892c9835bacc776977e8d5dbf1013af4a24178a41025a8b3f

The command

  rg -n 'core\.str\.Str\.as_bytes' generated.lean

has the complete raw result:

  331:axiom core.str.Str.as_bytes : Str → Result (Slice Std.U8)
  4811:  let body ← core.str.Str.as_bytes s

Consequently the only call in the frozen generated module is the first
operation in num.imp.dec2flt.dec2flt_with_trace, whose parameter and call at
generated.lean:4807-4811 are:

  (coreopsarithNegInst : core.ops.arith.Neg F F) (s : Str) :
  Result ((core.result.Result F num.float_parse.ParseFloatError) ×
    (num.imp.dec2flt.Dec2FltTrace F))
  := do
  let body ← core.str.Str.as_bytes s

The support manifest itself is pinned by:

  sha256sum Tablet/model-support.json
  c099ae8478fe2cea91a3f82f51a5d3369270ded2bc08a7596ba8cca0c8382e87  Tablet/model-support.json

Its exact binding at Tablet/model-support.json:183-190 is:

  {
    "name": "core.str.Str.as_bytes",
    "extracted_signature": ": Str → Result (Slice Std.U8)",
    "rust_symbol": "core::str::{str}::as_bytes",
    "raw_declaration_sha256": "11bae0b1f519e9d892c9835bacc776977e8d5dbf1013af4a24178a41025a8b3f",
    "node": "ModelStrAsBytes",
    "declaration": "dec2flt_model.ModelStrAsBytes"
  }

The configured Rust core implementation is pinned by:

  sha256sum /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/str/mod.rs
  284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/str/mod.rs

Its exact same-layout body at core/src/str/mod.rs:498-501 is:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }

The frozen adapted dispatcher source and its sole source call are pinned by:

  sha256sum crate/dec2flt/mod.rs
  ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d  crate/dec2flt/mod.rs

  rg -n 'as_bytes' crate
  crate/dec2flt/mod.rs:364:    let mut body = s.as_bytes();

  crate/dec2flt/mod.rs:362-365
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {

The core body returns a shared byte slice by same-layout transmutation: it does
not change, reorder, add, or remove bytes and has no failure branch.  The Aeneas
shared-borrow convention and the later immutable ordered-byte observations are
pinned in reference/model-evidence/aeneas-slice-observations.txt.
reference/model-evidence/binary64-boundary.txt

Open file

Primary evidence for the binary64 boundary
==========================================

Scope and identities
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction, the
adapted Rust crate retained in this repository, and the installed toolchain
named by modeling-input/SETUP.md. The probe source is retained at
reference/model-evidence/binary64-probe.rs; no scratch source is required to
reproduce it.

Toolchain executable:
  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
Target:
  x86_64-unknown-linux-gnu
rustc executable SHA-256:
  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
Probe source SHA-256:
  68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
Compiled probe SHA-256:
  f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
Frozen generated.lean SHA-256:
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9
Frozen modeling-input/manifest.json SHA-256:
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2
Approved Binary64ModelDefault.lean SHA-256 at the time of this record:
  03ae48fb631e6242bd21bf95d0481b66acae05f8cab343c7ab279b3c116538a3

Exact reproduction commands
---------------------------

Run from the repository root:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-probe.rs
  B=.trellis/scratch/binary64-probe
  "$R" --version --verbose
  sha256sum "$R"
  sha256sum "$P"
  "$R" --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$B"
  "$B"

Raw output
----------

  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
  rustc_sha256=162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  probe_sha256=68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
  binary_sha256=f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
  target_arch=x86_64
  mantissa_digits=53
  exponent_mask=7ff0000000000000
  mantissa_mask=000fffffffffffff
  nan=7ff8000000000000
  infinity=7ff0000000000000
  neg_infinity=fff0000000000000
  nan_category=Nan
  infinity_category=Infinite
  zero_category=Zero
  subnormal_category=Subnormal
  normal_category=Normal
  from_bits_to_bits=7ff0000000000001
  neg_payload_nan=fff0000000000001
  neg_zero=8000000000000000
  subnormal_tie_to_even_zero=0000000000000000
  subnormal_tie_to_even_two=0000000000000002
  normal_division=3fb999999999999a
  mul_negative_zero=8000000000000000
  div_negative_zero=8000000000000000
  div_negative_infinity=fff0000000000000
  mul_overflow=7ff0000000000000
  mul_zero_infinity_is_nan=true
  div_zero_zero_is_nan=true
  mul_nan_is_nan=true
  cast_2_pow_53=4340000000000000
  cast_2_pow_53_plus_1=4340000000000000

Pinned Rust library sources
---------------------------

The installed sources below belong to the same named toolchain. Their
SHA-256 identities are:

  core/src/primitive_docs.rs
    c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5
  core/src/num/f64.rs
    84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618
  core/src/clone.rs
    23f9cfc80347fde6b8457d46fbf7a2b8d9f34c8c58601b0b6f714ca2f6d1976b

The exact relevant text of core/src/primitive_docs.rs is:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The referenced primitive-f32 documentation supplies the common primitive
floating-point operation rules quoted next:

  /// - −0.0: IEEE 754 floating-point numbers have a bit that indicates their sign, so −0.0 is a
  ///   possible value. For comparison −0.0 = +0.0, but floating-point operations can carry
  ///   the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
  ///   a negative number rounded to a value smaller than a float can represent also produces −0.0.
  /// - [∞](#associatedconstant.INFINITY) and
  ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
  ///   like `1.0 / 0.0`.
  ///
  /// When a primitive operation (addition, subtraction, multiplication, or
  /// division) is performed on this type, the result is rounded according to the
  /// roundTiesToEven direction defined in IEEE 754-2008. That means:
  ///
  /// - The result is the representable value closest to the true value, if there
  ///   is a unique closest representable value.
  /// - If the true value is exactly half-way between two representable values,
  ///   the result is the one with an even least-significant binary digit.
  /// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
  ///   `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
  ///   true value's sign).

The same file explicitly separates arithmetic NaN choice from exact bitwise
operations; its exact relevant text is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.
  ///
  /// The following rules apply when a NaN value is returned from an arithmetic operation:
  /// - The result has a non-deterministic sign.
  /// - The quiet bit and payload are non-deterministically chosen from
  ///   the following set of options:
  ///
  ///   - **Preferred NaN**: The quiet bit is set and the payload is all-zero.
  ///   - **Quieting NaN propagation**: The quiet bit is set and the payload is copied from any input
  ///     operand that is a NaN. If the inputs and outputs do not have the same payload size (i.e., for
  ///     `as` casts), then
  ///     - If the output is smaller than the input, low-order bits of the payload get dropped.
  ///     - If the output is larger than the input, the payload gets filled up with 0s in the low-order
  ///       bits.
  ///   - **Unchanged NaN propagation**: The quiet bit and payload are copied from any input operand
  ///     that is a NaN. If the inputs and outputs do not have the same size (i.e., for `as` casts), the
  ///     same rules as for "quieting NaN propagation" apply, with one caveat: if the output is smaller
  ///     than the input, dropping the low-order bits may result in a payload of 0; a payload of 0 is not
  ///     possible with a signaling NaN (the all-0 significand encodes an infinity) so unchanged NaN
  ///     propagation cannot occur with some inputs.
  ///   - **Target-specific NaN**: The quiet bit is set and the payload is picked from a target-specific
  ///     set of "extra" possible NaN payloads. The set can depend on the input operand values.
  ///     See the table below for the concrete NaNs this set contains on various targets.
  ///
  /// | `target_arch` | Extra payloads possible on this platform |
  /// |---------------|------------------------------------------|
  /// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |

Thus the model's preferred quiet NaN is one permitted result whenever
multiplication or division returns NaN. This does not claim that arbitrary
Rust arithmetic NaNs have those exact bits. By contrast, unary negation and
bit conversion must preserve all non-sign bits exactly, including for every
NaN payload.

The exact relevant declarations in core/src/num/f64.rs are:

  pub const MANTISSA_DIGITS: u32 = 53;
  pub const NAN: f64 = 0.0_f64 / 0.0_f64;
  pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
  pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
  pub const SIGN_MASK: u64 = 0x8000_0000_0000_0000;
  pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;
  pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff;

  pub const fn classify(self) -> FpCategory {
      // We used to have complicated logic here that avoids the simple bit-based tests to work
      // around buggy codegen for x87 targets (see
      // https://github.com/rust-lang/rust/issues/114479). However, some LLVM versions later, none
      // of our tests is able to find any difference between the complicated and the naive
      // version, so now we are back to the naive version.
      let b = self.to_bits();
      match (b & Self::MANTISSA_MASK, b & Self::EXPONENT_MASK) {
          (0, Self::EXPONENT_MASK) => FpCategory::Infinite,
          (_, Self::EXPONENT_MASK) => FpCategory::Nan,
          (0, 0) => FpCategory::Zero,
          (_, 0) => FpCategory::Subnormal,
          _ => FpCategory::Normal,
      }
  }

  pub const fn to_bits(self) -> u64 {
      // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
      unsafe { mem::transmute(self) }
  }

  pub const fn from_bits(v: u64) -> Self {
      // It turns out the safety issues with sNaN were overblown! Hooray!
      // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
      unsafe { mem::transmute(v) }
  }

The exact scalar clone body in core/src/clone.rs is:

  impl const Clone for $t {
      #[inline(always)]
      fn clone(&self) -> Self {
          *self
      }
  }

Frozen adapted source
---------------------

The relevant retained source file hashes are:

  crate/traits.rs
    9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  crate/dec2flt/decimal.rs
    633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb
  crate/dec2flt/lemire.rs
    fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1
  crate/dec2flt/slow.rs
    93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485

The dispatcher excerpts below are reproduced from the identified file by
running these commands from the repository root:

  sha256sum crate/dec2flt/mod.rs
  sed -n '354,403p' crate/dec2flt/mod.rs
  sed -n '405,422p' crate/dec2flt/mod.rs
  sed -n '465,475p' crate/dec2flt/mod.rs
  sed -n '506,523p' crate/dec2flt/mod.rs

Exact constant and bit-conversion excerpt from crate/traits.rs:

  impl Float for f64 {
      type Int = u64;

      const INFINITY: Self = Self::INFINITY;
      const NEG_INFINITY: Self = Self::NEG_INFINITY;
      const NAN: Self = Self::NAN;
      // Bit-identical to the upstream `-f64::NAN`, without the unsupported
      // compile-time float negation.
      const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);

      const BITS: u32 = 64;
      const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
      const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
      const SIG_MASK: Self::Int = Self::MANTISSA_MASK;

      fn to_bits(self) -> Self::Int {
          self.to_bits()
      }

      fn classify(self) -> FpCategory {
          self.classify()
      }
  }

  impl FloatExt for f64 {
      #[inline]
      fn from_u64_bits(v: u64) -> Self {
          f64::from_bits(v)
      }

Exact derived-constant defaults from crate/traits.rs:

  /// The number of bits in the significand, *excluding* the hidden bit.
  const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;

  /// Number of bits in the exponent.
  const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

  /// The saturated (maximum bitpattern) value of the exponent, i.e. the infinite
  /// representation.
  ///
  /// This shifted fully right, use `EXP_MASK` for the shifted value.
  const EXP_SAT: u32 = (1 << Self::EXP_BITS) - 1;

  /// Signed version of `EXP_SAT` since we convert a lot.
  const INFINITE_POWER: i32 = Self::EXP_SAT as i32;

  /// The exponent bias value. This is also the maximum value of the exponent.
  const EXP_BIAS: u32 = Self::EXP_SAT >> 1;

  /// Minimum exponent value of normal values.
  const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Together with the f64-instance lines `BITS = 64` and
`SIG_TOTAL_BITS = Self::MANTISSA_DIGITS` in the preceding excerpt, these
defaults derive SIG_BITS, EXP_MIN, and INFINITE_POWER from the primitive
mantissa-digit constant rather than introducing independent parameters.

Exact asserted-conversion excerpt from crate/dec2flt/mod.rs:

  #[inline]
  // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
  // `charon::opaque` makes this entire asserted conversion external: both the
  // unchanged `debug_assert!` and the unchanged cast below are in the opaque
  // body. The callers, their fast-path guards, and their surrounding
  // computation remain mechanically visible. A corresponding model binding
  // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
  // exact binary64 conversion at or below that bound.
  #[charon::opaque]
  fn from_u64(v: u64) -> Self {
      debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
      v as _
  }

Here MAX_MANTISSA_FAST_PATH is the retained default 1 << 53.  The attribute is
attached to the function item, so the generated external stands for the whole
method, not merely the cast.  In the enabled-debug configuration the source
succeeds only when v <= 2^53; above it the assertion fails before the cast. On
the successful branch every integer is exactly representable, so the source
cast and the model rounder return the same word.

Exact power-table and assembly excerpts from crate/dec2flt/mod.rs:

  /// Maximum mantissa for the fast-path (`1 << 53` for f64).
  const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;

  const MAX_EXPONENT_FAST_PATH: i64 = 22;
  const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
  const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;

  fn pow10_fast_path(exponent: usize) -> Self {
      // These bit patterns are exactly the source table's rounded binary64
      // literals.  The match is the same masked lookup; it merely keeps float
      // constants out of Aeneas's unsupported constant interpreter.
      match exponent & 31 {
          0 => f64::from_bits(0x3FF0_0000_0000_0000),
          1 => f64::from_bits(0x4024_0000_0000_0000),
          2 => f64::from_bits(0x4059_0000_0000_0000),
          3 => f64::from_bits(0x408F_4000_0000_0000),
          4 => f64::from_bits(0x40C3_8800_0000_0000),
          5 => f64::from_bits(0x40F8_6A00_0000_0000),
          6 => f64::from_bits(0x412E_8480_0000_0000),
          7 => f64::from_bits(0x4163_12D0_0000_0000),
          8 => f64::from_bits(0x4197_D784_0000_0000),
          9 => f64::from_bits(0x41CD_CD65_0000_0000),
          10 => f64::from_bits(0x4202_A05F_2000_0000),
          11 => f64::from_bits(0x4237_4876_E800_0000),
          12 => f64::from_bits(0x426D_1A94_A200_0000),
          13 => f64::from_bits(0x42A2_309C_E540_0000),
          14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
          15 => f64::from_bits(0x430C_6BF5_2634_0000),
          16 => f64::from_bits(0x4341_C379_37E0_8000),
          17 => f64::from_bits(0x4376_3457_85D8_A000),
          18 => f64::from_bits(0x43AB_C16D_674E_C800),
          19 => f64::from_bits(0x43E1_58E4_6091_3D00),
          20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
          21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
          22 => f64::from_bits(0x4480_F0CF_064D_D592),
          _ => f64::from_bits(0),
      }
  }

  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

Exact native-call excerpt from crate/dec2flt/decimal.rs:

  fn can_use_fast_path<F: Lemire>(&self) -> bool {
      F::MIN_EXPONENT_FAST_PATH <= self.exponent
          && self.exponent <= F::MAX_EXPONENT_DISGUISED_FAST_PATH
          && self.mantissa <= F::MAX_MANTISSA_FAST_PATH
          && !self.many_digits
  }

  if !self.can_use_fast_path::<F>() {
      return None;
  }

  let value = if self.exponent <= F::MAX_EXPONENT_FAST_PATH {
      // normal fast path
      let value = F::from_u64(self.mantissa);
      if self.exponent < 0 {
          // Explicit trait calls preserve Rust arithmetic and resolve
          // the generic output type that Charon leaves ambiguous.
          core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
      } else {
          core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
      }
  } else {
      // disguised fast path
      let shift = self.exponent - F::MAX_EXPONENT_FAST_PATH;
      let mantissa = self.mantissa.checked_mul(INT_POW10[shift as usize])?;
      if mantissa > F::MAX_MANTISSA_FAST_PATH {
          return None;
      }
      core::ops::Mul::mul(
          F::from_u64(mantissa),
          F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
      )
  };

  if self.negative {
      Some(core::ops::Neg::neg(value))
  } else {
      Some(value)
  }

The preceding can_use_fast_path body, together with
MAX_MANTISSA_FAST_PATH = 1 << SIG_TOTAL_BITS and SIG_TOTAL_BITS = 53 for f64,
requires the exponent to lie between -22 and 37, the input mantissa to be at
most 2^53, and many_digits to be false. Consequently an ordinary arithmetic
call has a from_u64 operand in 0..=2^53. In its negative-exponent arm,
`-self.exponent` lies in 1..=22; in its nonnegative arm, `self.exponent` lies
in 0..=22. The disguised branch checks its multiplied mantissa against 2^53
before from_u64 and uses table index 22. The paired statement
Binary64NativeCallDomain does not assert this source reachability. It says
conditionally that a from_u64 argument at most 2^53 succeeds with a finite,
non-NaN word and that a table index at most 22 succeeds with a positive,
nonzero, finite, non-NaN word. Applying that conditional statement to the
guards just derived establishes those properties for the actual ordinary and
disguised calls, and in particular establishes that every executed divisor is
nonzero.

Exact special-value excerpt from crate/dec2flt/parse.rs:

  let float = match (register, len) {
      (INF_3, 3) => F::INFINITY,
      (INF_8, 8) => F::INFINITY,
      (NAN, 3) => F::NAN,
      _ => return None,
  };

  if negative { Some(-float) } else { Some(float) }

Thus the executed special route is INFINITY or NAN followed by conditional
negation; it does not select NEG_INFINITY or NEG_NAN directly.

The number helper has the exact source body

  pub fn parse_number(s: &[u8]) -> Option<Decimal> {
      if let Some((float, rest)) = parse_partial_number(s) {
          if rest == s.len() {
              return Some(float);
          }
      }
      None
  }

It returns only the Decimal produced by parse_partial_number; there is no
float type parameter or float operation at this boundary.

Exact dispatcher excerpts from crate/dec2flt/mod.rs
---------------------------------------------------

The entry of `dec2flt_with_trace` strips at most one leading sign, rejects
empty and sign-only inputs, calls `parse_number` on the unsigned body, and
calls `parse_inf_nan` only when `parse_number` returns `None`:

  /// Run the actual dispatcher while retaining its approved internal observations.
  pub fn dec2flt_with_trace<
      'a,
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {
          return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
      };
      let negative = c == b'-';
      if c == b'-' || c == b'+' {
          body = &body[1..];
      }
      if body.is_empty() {
          return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
      }

      let parse_number_result = parse_number(body);
      let parsed = match parse_number_result {
          Some(r) => r,
          None => {
              let parse_inf_nan_result = parse_inf_nan(body, negative);
              return match parse_inf_nan_result {
                  Some(value) => (
                      Ok(value),
                      Dec2FltTrace::Special {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                          result: value,
                      },
                  ),
                  None => (
                      Err(pfe_invalid()),
                      Dec2FltTrace::Invalid {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                      },
                  ),
              };
          }
      };

Thus every `Err` arm shown here returns before `parsed` is available and before
the native, integer, slow, assembly, or final-negation code below it can run.
On a numeric result, the lexical sign is copied into the parsed record before
the native attempt, whose successful result also returns before raw-pair
assembly:

      let mut num = parsed;
      num.negative = negative;
      if !cfg!(feature = "optimize_for_size") {
          let fast_path_result = num.try_fast_path::<F>();
          if let Some(value) = fast_path_result {
              return (
                  Ok(value),
                  Dec2FltTrace::FastPath {
                      body,
                      negative,
                      parse_number_result,
                      fast_path_input: num,
                      fast_path_result,
                      result: value,
                  },
              );
          }
      }

If the native attempt does not return, the selected raw pair is assembled and
the source then conditionally negates it according to the lexical-sign flag:

      let selected_pair = fp;
      // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
      // it neither changes the selected pair nor introduces a new branch or call.
      let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
      let assembly_result = biased_fp_to_float::<F>(fp);
      let lexical_sign_applied = num.negative;
      let result = if lexical_sign_applied {
          core::ops::Neg::neg(assembly_result)
      } else {
          assembly_result
      };

The public `dec2flt` executes that same route and returns its result projection;
it does not reimplement or reorder any parsing or float operation:

  /// Converts a decimal string into a floating point number.
  #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
  pub fn dec2flt<
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &str,
  ) -> Result<F, ParseFloatError> {
      // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
      // clause admits exactly the same instances and lets Charon resolve the
      // explicit, source-equivalent final negation.
      // The public function is now exactly the result projection of the single
      // instrumented implementation.  No conversion step is duplicated, and
      // discarding the trace cannot affect Rust evaluation or the returned bits.
      dec2flt_with_trace::<F>(s).0
  }

The integer-tier helper has the source type and exact executable excerpts
below (long explanatory comments are elided). In particular it returns a raw
BiasedFp and contains no from_u64 cast, primitive float multiplication,
division, negation, or from_bits call:

  pub fn compute_float<F: Float>(q: i64, mut w: u64) -> BiasedFp {
      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);
      let fp_error = BiasedFp::zero_pow2(-1);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if w == 0 || q < F::SMALLEST_POWER_OF_TEN as i64 {
          return fp_zero;
      } else if q > F::LARGEST_POWER_OF_TEN as i64 {
          return fp_inf;
      }
      // Normalize our significant digits, so the most-significant bit is set.
      let lz = w.leading_zeros();
      w <<= lz;
      let (lo, hi) = compute_product_approx(q, w, F::SIG_BITS as usize + 3);
      if lo == 0xFFFF_FFFF_FFFF_FFFF {
          let inside_safe_exponent = (q >= -27) && (q <= 55);
          if !inside_safe_exponent {
              return fp_error;
          }
      }
      let upperbit = (hi >> 63) as i32;
      let mut mantissa = hi >> (upperbit + 64 - F::SIG_BITS as i32 - 3);
      let mut power2 = power(q as i32) + upperbit - lz as i32 - F::EXP_MIN + 1;
      if power2 <= 0 {
          if -power2 + 1 >= 64 {
              // Have more than 64 bits below the minimum exponent, must be 0.
              return fp_zero;
          }
          // Have a subnormal value.
          mantissa >>= -power2 + 1;
          mantissa += mantissa & 1;
          mantissa >>= 1;
          power2 = (mantissa >= (1_u64 << F::SIG_BITS)) as i32;
          return BiasedFp { m: mantissa, p_biased: power2 };
      }
      // Need to handle rounding ties. Normally, we need to round up,
      // but if we fall right in between and we have an even basis, we
      // need to round down.
      if lo <= 1
          && q >= F::MIN_EXPONENT_ROUND_TO_EVEN as i64
          && q <= F::MAX_EXPONENT_ROUND_TO_EVEN as i64
          && mantissa & 0b11 == 0b01
          && (mantissa << (upperbit + 64 - F::SIG_BITS as i32 - 3)) == hi
      {
          // Zero the lowest bit, so we don't round up.
          mantissa &= !1_u64;
      }
      // Round-to-even, then shift the significant digits into place.
      mantissa += mantissa & 1;
      mantissa >>= 1;
      if mantissa >= (2_u64 << F::SIG_BITS) {
          // Rounding up overflowed, so the carry bit is set. Set the
          // mantissa to 1 (only the implicit, hidden bit is set) and
          // increase the exponent.
          mantissa = 1_u64 << F::SIG_BITS;
          power2 += 1;
      }
      // Zero out the hidden bit.
      mantissa &= !(1_u64 << F::SIG_BITS);
      if power2 >= F::INFINITE_POWER {
          // Exponent is above largest normal value, must be infinite.
          return fp_inf;
      }
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact slow-tier source body from crate/dec2flt/slow.rs:

  pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {
      const MAX_SHIFT: usize = 60;
      const NUM_POWERS: usize = 19;
      const POWERS: [u8; 19] =
          [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];

      let get_shift = |n| {
          if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }
      };

      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);

      let mut d = parse_decimal_seq(s);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if d.num_digits == 0 || d.decimal_point < -324 {
          return fp_zero;
      } else if d.decimal_point >= 310 {
          return fp_inf;
      }
      let mut exp2 = 0_i32;
      let mut loop_result = None;
      // Shift right toward (1/2 ... 1].
      while d.decimal_point > 0 && loop_result.is_none() {
          let n = d.decimal_point as usize;
          let shift = get_shift(n);
          d.right_shift(shift);
          if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_zero);
          } else {
              exp2 += shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // Shift left toward (1/2 ... 1].
      while d.decimal_point <= 0 && loop_result.is_none() {
          let shift = if d.decimal_point == 0 {
              match d.digits[0] {
                  digit if digit >= 5 => break,
                  0 | 1 => 2,
                  _ => 1,
              }
          } else {
              get_shift((-d.decimal_point) as _)
          };
          d.left_shift(shift);
          if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_inf);
          } else {
              exp2 -= shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
      exp2 -= 1;
      while F::EXP_MIN > exp2 {
          let mut n = (F::EXP_MIN - exp2) as usize;
          if n > MAX_SHIFT {
              n = MAX_SHIFT;
          }
          d.right_shift(n);
          exp2 += n as i32;
      }
      if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
          return fp_inf;
      }
      // Shift the decimal to the hidden bit, and then round the value
      // to get the high mantissa+1 bits.
      d.left_shift(F::SIG_BITS as usize + 1);
      let mut mantissa = d.round();
      if mantissa >= (1_u64 << (F::SIG_BITS + 1)) {
          // Rounding up overflowed to the carry bit, need to
          // shift back to the hidden bit.
          d.right_shift(1);
          exp2 += 1;
          mantissa = d.round();
          if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
              return fp_inf;
          }
      }
      let mut power2 = exp2 - F::EXP_MIN + 1;
      if mantissa < (1_u64 << F::SIG_BITS) {
          power2 -= 1;
      }
      // Zero out all the bits above the explicit mantissa bits.
      mantissa &= (1_u64 << F::SIG_BITS) - 1;
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact final numeric-sign excerpt from crate/dec2flt/mod.rs:

  let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
  let assembly_result = biased_fp_to_float::<F>(fp);
  let lexical_sign_applied = num.negative;
  let result = if lexical_sign_applied {
      core::ops::Neg::neg(assembly_result)
  } else {
      assembly_result
  };

Thus a numeric execution that reaches the integer/slow selection route
assembles its selected pair with from_bits through biased_fp_to_float and only
then conditionally negates it. A successful try_fast_path returns earlier and
does not perform this assembly. compute_float and parse_long_mantissa produce
raw BiasedFp pairs and do not call from_u64, primitive float multiplication,
division, negation, or from_bits; they do, however, execute constants derived
from SIG_TOTAL_BITS before producing those pairs.

Retained structural-boundary evidence
-------------------------------------

Several adjacent structural bindings cite this same evidence record. Their
pinned library source identities are:

  core/src/num/mod.rs
    f0820f9dfb94999440c8cb4a349736fa21df7e5668e19b6b49e016ff67c05ce3
  core/src/option.rs
    7cf61204b05d98a95bc2e322d5fbfc1f4f91505109971917d9a7fb47151c50e6
  core/src/slice/mod.rs
    354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840
  core/src/str/mod.rs
    284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78

Exact ASCII-digit body from core/src/num/mod.rs:

  pub const fn is_ascii_digit(&self) -> bool {
      matches!(*self, b'0'..=b'9')
  }

Exact Option control-flow bodies from core/src/option.rs:

  fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
      match self {
          Some(v) => ControlFlow::Continue(v),
          None => ControlFlow::Break(None),
      }
  }

  fn from_residual(residual: Option<convert::Infallible>) -> Self {
      match residual {
          None => None,
      }
  }

Exact slice observation bodies from core/src/slice/mod.rs:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

Exact string-byte body from core/src/str/mod.rs:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }
reference/model-evidence/binary64-probe.rs

Open file

#![feature(float_masks)]

use std::num::FpCategory;

fn bits(label: &str, value: f64) {
    println!("{label}={:016x}", value.to_bits());
}

fn main() {
    println!("target_arch={}", std::env::consts::ARCH);
    println!("mantissa_digits={}", f64::MANTISSA_DIGITS);
    println!("exponent_mask={:016x}", f64::EXPONENT_MASK);
    println!("mantissa_mask={:016x}", f64::MANTISSA_MASK);
    bits("nan", f64::NAN);
    bits("infinity", f64::INFINITY);
    bits("neg_infinity", f64::NEG_INFINITY);

    for (label, value) in [
        ("nan_category", f64::NAN),
        ("infinity_category", f64::INFINITY),
        ("zero_category", 0.0),
        ("subnormal_category", f64::from_bits(1)),
        ("normal_category", 1.0),
    ] {
        let category = match value.classify() {
            FpCategory::Nan => "Nan",
            FpCategory::Infinite => "Infinite",
            FpCategory::Zero => "Zero",
            FpCategory::Subnormal => "Subnormal",
            FpCategory::Normal => "Normal",
        };
        println!("{label}={category}");
    }

    let payload_nan_word = 0x7ff0_0000_0000_0001_u64;
    println!(
        "from_bits_to_bits={:016x}",
        f64::from_bits(payload_nan_word).to_bits()
    );
    bits("neg_payload_nan", -f64::from_bits(payload_nan_word));
    bits("neg_zero", -0.0);

    bits("subnormal_tie_to_even_zero", f64::from_bits(1) * 0.5);
    bits("subnormal_tie_to_even_two", f64::from_bits(3) * 0.5);
    bits("normal_division", 1.0 / 10.0);
    bits("mul_negative_zero", -0.0 * 2.0);
    bits("div_negative_zero", -1.0 / f64::INFINITY);
    bits("div_negative_infinity", 1.0 / -0.0);
    bits("mul_overflow", f64::MAX * (1.0 + f64::EPSILON));
    println!("mul_zero_infinity_is_nan={}", (0.0 * f64::INFINITY).is_nan());
    println!("div_zero_zero_is_nan={}", (0.0_f64 / 0.0_f64).is_nan());
    println!("mul_nan_is_nan={}", (f64::NAN * 1.0).is_nan());

    bits("cast_2_pow_53", (1_u64 << 53) as f64);
    bits("cast_2_pow_53_plus_1", ((1_u64 << 53) + 1) as f64);
}
reference/model-evidence/source-valid-byte-slice-probe.out

Open file

arch=x86_64
usize_bits=64
isize_max=9223372036854775807
u8_size=1
reference/model-evidence/source-valid-byte-slice-probe.rs

Open file

fn main() {
    println!("arch={}", std::env::consts::ARCH);
    println!("usize_bits={}", usize::BITS);
    println!("isize_max={}", isize::MAX);
    println!("u8_size={}", std::mem::size_of::<u8>());
}
reference/model-evidence/source-valid-byte-slice.txt

Open file

Source-valid byte-slice and string domain evidence
==================================================

Scope and pinned identities
---------------------------

All commands below were run from the repository root.  The configured compiler
is:

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

Its SHA-256 is:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b

The exact identity commands were:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  sha256sum "$R"
  "$R" --version --verbose
  "$R" --target x86_64-unknown-linux-gnu --print cfg | LC_ALL=C sort | \
    rg 'target_(arch|pointer_width)'

Their relevant raw output was:

  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
  target_arch="x86_64"
  target_pointer_width="64"

Retained configured-target probe
--------------------------------

The retained probe source is
reference/model-evidence/source-valid-byte-slice-probe.rs.  It was compiled
for the configured target and executed with this exact command, which depends
only on the retained source and the pinned compiler:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/source-valid-byte-slice-probe.rs
  B=/tmp/dec2flt-source-valid-byte-slice-probe
  O=reference/model-evidence/source-valid-byte-slice-probe.out
  "$R" --edition 2024 --target x86_64-unknown-linux-gnu -C opt-level=0 \
    -C debuginfo=0 -C overflow-checks=on -C debug-assertions=on \
    --crate-name source_valid_byte_slice_probe "$P" -o "$B"
  sha256sum "$R" "$P" "$B"
  "$B" > "$O"
  sha256sum "$O"
  cat "$O"

The actual hashes were:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd  reference/model-evidence/source-valid-byte-slice-probe.rs
  87dc3b9b7a46506d2205503d8aa007b451c452968af48d1ba5961a821934ee55  /tmp/dec2flt-source-valid-byte-slice-probe
  01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4  reference/model-evidence/source-valid-byte-slice-probe.out

The retained raw output file contains exactly:

  arch=x86_64
  usize_bits=64
  isize_max=9223372036854775807
  u8_size=1

Pinned core-library source
--------------------------

Let:

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

The exact commands used to identify and inspect the relevant core sources were:

  sha256sum "$S/slice/mod.rs" "$S/num/int_macros.rs" "$S/str/mod.rs"
  sed -n '798,808p' "$S/slice/mod.rs"
  sed -n '43,51p' "$S/num/int_macros.rs"
  sed -n '495,510p' "$S/str/mod.rs"

The file identities are:

  354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840  core/src/slice/mod.rs
  3896304e7cb14628e293134ac41fd18be2b5369bedc02d1c6a7408bd8c755a31  core/src/num/int_macros.rs
  284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78  core/src/str/mod.rs

The relevant exact excerpt of slice/mod.rs, line 801, is:

  //   - The size of the slice is never larger than `isize::MAX` bytes, as

The relevant exact declaration in num/int_macros.rs, line 47, is:

  pub const MAX: Self = (<$UnsignedT>::MAX >> 1) as Self;

The relevant exact excerpts of str/mod.rs are its same-layout byte-slice
conversion at lines 498-500:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }

and its UTF-8 invariant at lines 507-510:

  /// The caller must ensure that the content of the slice is valid UTF-8
  /// before the borrow ends and the underlying `str` is used.
  ///
  /// Use of a `str` whose contents are not valid UTF-8 is undefined behavior.

Conclusion
----------

The configured target has 64-bit usize/isize and one-byte u8 elements.
The pinned signed-MAX definition therefore gives
isize::MAX = 2^63 - 1 = 9223372036854775807, and the pinned slice rule bounds a
slice by that many bytes.  For &[u8], this is exactly an element-count bound;
the rule adds no UTF-8 condition or other restriction on the byte contents.
The pinned str source exposes the identical-layout &[u8] bytes and separately
requires them to be valid UTF-8.  Consequently the exact configured domains
are arbitrary &[u8] bytes of length at most isize::MAX, and Rust str bytes of
length at most isize::MAX that are valid UTF-8.  No smaller convenience bound
is introduced.
Assumptions / kernel axioms
  • propext

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (32)
All 32 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourceTablet/model-support.json
Kindopaque external binding
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:71a95de8883b0a988e9389c8489ef382ae05dfb9eafc47a61a198d21de57d498
Preservation current fingerprintpreservation-v1:71a95de8883b0a988e9389c8489ef382ae05dfb9eafc47a61a198d21de57d498
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"7df2b5123e579ab4bfb5510ea39ca58bceb2387aa50af74f44127e51a1e7f281","lean_semantic_closure":"d53346dcad87db5a726f330ad015dd667460351ed0ca2ed56f7916a28b27ce6f","preamble_tex":""}
Correspondence current fingerprint{"own_tex":"7df2b5123e579ab4bfb5510ea39ca58bceb2387aa50af74f44127e51a1e7f281","lean_semantic_closure":"d53346dcad87db5a726f330ad015dd667460351ed0ca2ed56f7916a28b27ce6f","preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "fc1b8b034a281f8916503d898a319b35a9776b40a245809d2705e205e5ba0ff4",
    "dep_statement_hashes": {
      "DecimalGoalVocabularyDefault": "09f5cd567fc767000aace8b560207d9bd82783d4b665d3e95b462af37dcb387f",
      "SourceValidByteSlice": "52522ae5b8602c6279dde2af31f94e21db249400641f5d3e951f68a74c3c11e2"
    },
    "combined_sound_fp": "preservation-v1:71a95de8883b0a988e9389c8489ef382ae05dfb9eafc47a61a198d21de57d498"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Exact source record
{
  "name": "core.str.Str.as_bytes",
  "extracted_signature": ": Str → Result (Slice Std.U8)",
  "rust_symbol": "core::str::{str}::as_bytes",
  "raw_declaration_sha256": "11bae0b1f519e9d892c9835bacc776977e8d5dbf1013af4a24178a41025a8b3f",
  "node": "ModelStrAsBytes",
  "declaration": "dec2flt_model.ModelStrAsBytes"
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/aeneas-slice-observations.txt",
    "sha256": "6d031558a189d52c1583babffeeea3fe6775f5d00c85077cc0a07064d725d96f",
    "cited_by": [
      "Tablet/ModelStrAsBytes.tex",
      "Tablet/model-support.json",
      "reference/model-evidence/aeneas-string-bytes.txt"
    ]
  },
  {
    "path": "reference/model-evidence/aeneas-string-bytes.txt",
    "sha256": "f0d2c9fa5fdc3d067ec46e2a98816374b14cb917846b2caa245561dc55c9f42f",
    "cited_by": [
      "Tablet/ModelStrAsBytes.tex",
      "Tablet/model-support.json"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-boundary.txt",
    "sha256": "fa45c924747337e8d6f84a19fe9e83fb9b33c73434887c0cf57c062533f51fe1",
    "cited_by": [
      "reference/model-evidence/aeneas-slice-observations.txt"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-probe.rs",
    "sha256": "68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e",
    "cited_by": [
      "reference/model-evidence/binary64-boundary.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.out",
    "sha256": "01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.rs",
    "sha256": "b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice.txt",
    "sha256": "eb501317621baa00236f9773885466bd38ec1a45cb56457d555b9e9139dc780a",
    "cited_by": [
      "Tablet/ModelStrAsBytes.tex",
      "Tablet/model-support.json",
      "reference/model-evidence/aeneas-slice-observations.txt",
      "reference/model-evidence/aeneas-string-bytes.txt"
    ]
  }
]

dec2flt_model::num::imp::dec2flt::{impl dec2flt_model::num::imp::dec2flt::Lemire<u64> for f64}::from_u64

Inspect related source (1)

Related source and models come from the extraction records and declared dependencies.

Rust itemdec2flt_model::num::imp::dec2flt::{impl dec2flt_model::num::imp::dec2flt::Lemire<u64> for f64}::from_u64
Recorded sourcenum/imp/../../dec2flt/mod.rs
Lines263:4–266:5

Captured Rust source

Opaque extraction signature
: Std.U64 → Result F64
Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Tablet.Binary64ModelDefault
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelF64FromU64]
def ModelF64FromU64 : Std.U64 -> Result F64 :=
-- BODY
  Binary64ModelDefault.fromU64
end dec2flt_model

Why this model is faithful

Definition

\mathsf{ModelF64FromU64}(x) returns the exact binary64 conversion of x when x\leq2^{53}, and reports assertion failure otherwise.

Preservation argument

Claim

This binding agrees with the frozen opaque u64-to-f64 cast on its asserted domain and reports assertion failure outside it.

Proof

The definition is the checked exact-integer conversion field of Binary64ModelDefault. The frozen implementation asserts the same bound 2^{53} before the cast; see reference/model-evidence/binary64-boundary.txt.
Authored arguments for individual requirements

Requirement: assembly correspondence

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification significand digit

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch abstract composition

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch component compliance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: exponent value agreement

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: integer correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: native correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper accumulated value

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper record bounds

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser equal target rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser exact rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser invalid rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser nan acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser non nan results

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected exponent

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected magnitude sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser signed zero

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: slow accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper nan

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Recorded review

CorrespondencePass
PreservationVerifierPass

ModelF64FromU64 · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/binary64-boundary.txt

Open file

Primary evidence for the binary64 boundary
==========================================

Scope and identities
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction, the
adapted Rust crate retained in this repository, and the installed toolchain
named by modeling-input/SETUP.md. The probe source is retained at
reference/model-evidence/binary64-probe.rs; no scratch source is required to
reproduce it.

Toolchain executable:
  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
Target:
  x86_64-unknown-linux-gnu
rustc executable SHA-256:
  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
Probe source SHA-256:
  68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
Compiled probe SHA-256:
  f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
Frozen generated.lean SHA-256:
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9
Frozen modeling-input/manifest.json SHA-256:
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2
Approved Binary64ModelDefault.lean SHA-256 at the time of this record:
  03ae48fb631e6242bd21bf95d0481b66acae05f8cab343c7ab279b3c116538a3

Exact reproduction commands
---------------------------

Run from the repository root:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-probe.rs
  B=.trellis/scratch/binary64-probe
  "$R" --version --verbose
  sha256sum "$R"
  sha256sum "$P"
  "$R" --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$B"
  "$B"

Raw output
----------

  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
  rustc_sha256=162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  probe_sha256=68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
  binary_sha256=f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
  target_arch=x86_64
  mantissa_digits=53
  exponent_mask=7ff0000000000000
  mantissa_mask=000fffffffffffff
  nan=7ff8000000000000
  infinity=7ff0000000000000
  neg_infinity=fff0000000000000
  nan_category=Nan
  infinity_category=Infinite
  zero_category=Zero
  subnormal_category=Subnormal
  normal_category=Normal
  from_bits_to_bits=7ff0000000000001
  neg_payload_nan=fff0000000000001
  neg_zero=8000000000000000
  subnormal_tie_to_even_zero=0000000000000000
  subnormal_tie_to_even_two=0000000000000002
  normal_division=3fb999999999999a
  mul_negative_zero=8000000000000000
  div_negative_zero=8000000000000000
  div_negative_infinity=fff0000000000000
  mul_overflow=7ff0000000000000
  mul_zero_infinity_is_nan=true
  div_zero_zero_is_nan=true
  mul_nan_is_nan=true
  cast_2_pow_53=4340000000000000
  cast_2_pow_53_plus_1=4340000000000000

Pinned Rust library sources
---------------------------

The installed sources below belong to the same named toolchain. Their
SHA-256 identities are:

  core/src/primitive_docs.rs
    c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5
  core/src/num/f64.rs
    84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618
  core/src/clone.rs
    23f9cfc80347fde6b8457d46fbf7a2b8d9f34c8c58601b0b6f714ca2f6d1976b

The exact relevant text of core/src/primitive_docs.rs is:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The referenced primitive-f32 documentation supplies the common primitive
floating-point operation rules quoted next:

  /// - −0.0: IEEE 754 floating-point numbers have a bit that indicates their sign, so −0.0 is a
  ///   possible value. For comparison −0.0 = +0.0, but floating-point operations can carry
  ///   the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
  ///   a negative number rounded to a value smaller than a float can represent also produces −0.0.
  /// - [∞](#associatedconstant.INFINITY) and
  ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
  ///   like `1.0 / 0.0`.
  ///
  /// When a primitive operation (addition, subtraction, multiplication, or
  /// division) is performed on this type, the result is rounded according to the
  /// roundTiesToEven direction defined in IEEE 754-2008. That means:
  ///
  /// - The result is the representable value closest to the true value, if there
  ///   is a unique closest representable value.
  /// - If the true value is exactly half-way between two representable values,
  ///   the result is the one with an even least-significant binary digit.
  /// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
  ///   `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
  ///   true value's sign).

The same file explicitly separates arithmetic NaN choice from exact bitwise
operations; its exact relevant text is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.
  ///
  /// The following rules apply when a NaN value is returned from an arithmetic operation:
  /// - The result has a non-deterministic sign.
  /// - The quiet bit and payload are non-deterministically chosen from
  ///   the following set of options:
  ///
  ///   - **Preferred NaN**: The quiet bit is set and the payload is all-zero.
  ///   - **Quieting NaN propagation**: The quiet bit is set and the payload is copied from any input
  ///     operand that is a NaN. If the inputs and outputs do not have the same payload size (i.e., for
  ///     `as` casts), then
  ///     - If the output is smaller than the input, low-order bits of the payload get dropped.
  ///     - If the output is larger than the input, the payload gets filled up with 0s in the low-order
  ///       bits.
  ///   - **Unchanged NaN propagation**: The quiet bit and payload are copied from any input operand
  ///     that is a NaN. If the inputs and outputs do not have the same size (i.e., for `as` casts), the
  ///     same rules as for "quieting NaN propagation" apply, with one caveat: if the output is smaller
  ///     than the input, dropping the low-order bits may result in a payload of 0; a payload of 0 is not
  ///     possible with a signaling NaN (the all-0 significand encodes an infinity) so unchanged NaN
  ///     propagation cannot occur with some inputs.
  ///   - **Target-specific NaN**: The quiet bit is set and the payload is picked from a target-specific
  ///     set of "extra" possible NaN payloads. The set can depend on the input operand values.
  ///     See the table below for the concrete NaNs this set contains on various targets.
  ///
  /// | `target_arch` | Extra payloads possible on this platform |
  /// |---------------|------------------------------------------|
  /// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |

Thus the model's preferred quiet NaN is one permitted result whenever
multiplication or division returns NaN. This does not claim that arbitrary
Rust arithmetic NaNs have those exact bits. By contrast, unary negation and
bit conversion must preserve all non-sign bits exactly, including for every
NaN payload.

The exact relevant declarations in core/src/num/f64.rs are:

  pub const MANTISSA_DIGITS: u32 = 53;
  pub const NAN: f64 = 0.0_f64 / 0.0_f64;
  pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
  pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
  pub const SIGN_MASK: u64 = 0x8000_0000_0000_0000;
  pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;
  pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff;

  pub const fn classify(self) -> FpCategory {
      // We used to have complicated logic here that avoids the simple bit-based tests to work
      // around buggy codegen for x87 targets (see
      // https://github.com/rust-lang/rust/issues/114479). However, some LLVM versions later, none
      // of our tests is able to find any difference between the complicated and the naive
      // version, so now we are back to the naive version.
      let b = self.to_bits();
      match (b & Self::MANTISSA_MASK, b & Self::EXPONENT_MASK) {
          (0, Self::EXPONENT_MASK) => FpCategory::Infinite,
          (_, Self::EXPONENT_MASK) => FpCategory::Nan,
          (0, 0) => FpCategory::Zero,
          (_, 0) => FpCategory::Subnormal,
          _ => FpCategory::Normal,
      }
  }

  pub const fn to_bits(self) -> u64 {
      // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
      unsafe { mem::transmute(self) }
  }

  pub const fn from_bits(v: u64) -> Self {
      // It turns out the safety issues with sNaN were overblown! Hooray!
      // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
      unsafe { mem::transmute(v) }
  }

The exact scalar clone body in core/src/clone.rs is:

  impl const Clone for $t {
      #[inline(always)]
      fn clone(&self) -> Self {
          *self
      }
  }

Frozen adapted source
---------------------

The relevant retained source file hashes are:

  crate/traits.rs
    9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  crate/dec2flt/decimal.rs
    633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb
  crate/dec2flt/lemire.rs
    fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1
  crate/dec2flt/slow.rs
    93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485

The dispatcher excerpts below are reproduced from the identified file by
running these commands from the repository root:

  sha256sum crate/dec2flt/mod.rs
  sed -n '354,403p' crate/dec2flt/mod.rs
  sed -n '405,422p' crate/dec2flt/mod.rs
  sed -n '465,475p' crate/dec2flt/mod.rs
  sed -n '506,523p' crate/dec2flt/mod.rs

Exact constant and bit-conversion excerpt from crate/traits.rs:

  impl Float for f64 {
      type Int = u64;

      const INFINITY: Self = Self::INFINITY;
      const NEG_INFINITY: Self = Self::NEG_INFINITY;
      const NAN: Self = Self::NAN;
      // Bit-identical to the upstream `-f64::NAN`, without the unsupported
      // compile-time float negation.
      const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);

      const BITS: u32 = 64;
      const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
      const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
      const SIG_MASK: Self::Int = Self::MANTISSA_MASK;

      fn to_bits(self) -> Self::Int {
          self.to_bits()
      }

      fn classify(self) -> FpCategory {
          self.classify()
      }
  }

  impl FloatExt for f64 {
      #[inline]
      fn from_u64_bits(v: u64) -> Self {
          f64::from_bits(v)
      }

Exact derived-constant defaults from crate/traits.rs:

  /// The number of bits in the significand, *excluding* the hidden bit.
  const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;

  /// Number of bits in the exponent.
  const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

  /// The saturated (maximum bitpattern) value of the exponent, i.e. the infinite
  /// representation.
  ///
  /// This shifted fully right, use `EXP_MASK` for the shifted value.
  const EXP_SAT: u32 = (1 << Self::EXP_BITS) - 1;

  /// Signed version of `EXP_SAT` since we convert a lot.
  const INFINITE_POWER: i32 = Self::EXP_SAT as i32;

  /// The exponent bias value. This is also the maximum value of the exponent.
  const EXP_BIAS: u32 = Self::EXP_SAT >> 1;

  /// Minimum exponent value of normal values.
  const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Together with the f64-instance lines `BITS = 64` and
`SIG_TOTAL_BITS = Self::MANTISSA_DIGITS` in the preceding excerpt, these
defaults derive SIG_BITS, EXP_MIN, and INFINITE_POWER from the primitive
mantissa-digit constant rather than introducing independent parameters.

Exact asserted-conversion excerpt from crate/dec2flt/mod.rs:

  #[inline]
  // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
  // `charon::opaque` makes this entire asserted conversion external: both the
  // unchanged `debug_assert!` and the unchanged cast below are in the opaque
  // body. The callers, their fast-path guards, and their surrounding
  // computation remain mechanically visible. A corresponding model binding
  // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
  // exact binary64 conversion at or below that bound.
  #[charon::opaque]
  fn from_u64(v: u64) -> Self {
      debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
      v as _
  }

Here MAX_MANTISSA_FAST_PATH is the retained default 1 << 53.  The attribute is
attached to the function item, so the generated external stands for the whole
method, not merely the cast.  In the enabled-debug configuration the source
succeeds only when v <= 2^53; above it the assertion fails before the cast. On
the successful branch every integer is exactly representable, so the source
cast and the model rounder return the same word.

Exact power-table and assembly excerpts from crate/dec2flt/mod.rs:

  /// Maximum mantissa for the fast-path (`1 << 53` for f64).
  const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;

  const MAX_EXPONENT_FAST_PATH: i64 = 22;
  const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
  const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;

  fn pow10_fast_path(exponent: usize) -> Self {
      // These bit patterns are exactly the source table's rounded binary64
      // literals.  The match is the same masked lookup; it merely keeps float
      // constants out of Aeneas's unsupported constant interpreter.
      match exponent & 31 {
          0 => f64::from_bits(0x3FF0_0000_0000_0000),
          1 => f64::from_bits(0x4024_0000_0000_0000),
          2 => f64::from_bits(0x4059_0000_0000_0000),
          3 => f64::from_bits(0x408F_4000_0000_0000),
          4 => f64::from_bits(0x40C3_8800_0000_0000),
          5 => f64::from_bits(0x40F8_6A00_0000_0000),
          6 => f64::from_bits(0x412E_8480_0000_0000),
          7 => f64::from_bits(0x4163_12D0_0000_0000),
          8 => f64::from_bits(0x4197_D784_0000_0000),
          9 => f64::from_bits(0x41CD_CD65_0000_0000),
          10 => f64::from_bits(0x4202_A05F_2000_0000),
          11 => f64::from_bits(0x4237_4876_E800_0000),
          12 => f64::from_bits(0x426D_1A94_A200_0000),
          13 => f64::from_bits(0x42A2_309C_E540_0000),
          14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
          15 => f64::from_bits(0x430C_6BF5_2634_0000),
          16 => f64::from_bits(0x4341_C379_37E0_8000),
          17 => f64::from_bits(0x4376_3457_85D8_A000),
          18 => f64::from_bits(0x43AB_C16D_674E_C800),
          19 => f64::from_bits(0x43E1_58E4_6091_3D00),
          20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
          21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
          22 => f64::from_bits(0x4480_F0CF_064D_D592),
          _ => f64::from_bits(0),
      }
  }

  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

Exact native-call excerpt from crate/dec2flt/decimal.rs:

  fn can_use_fast_path<F: Lemire>(&self) -> bool {
      F::MIN_EXPONENT_FAST_PATH <= self.exponent
          && self.exponent <= F::MAX_EXPONENT_DISGUISED_FAST_PATH
          && self.mantissa <= F::MAX_MANTISSA_FAST_PATH
          && !self.many_digits
  }

  if !self.can_use_fast_path::<F>() {
      return None;
  }

  let value = if self.exponent <= F::MAX_EXPONENT_FAST_PATH {
      // normal fast path
      let value = F::from_u64(self.mantissa);
      if self.exponent < 0 {
          // Explicit trait calls preserve Rust arithmetic and resolve
          // the generic output type that Charon leaves ambiguous.
          core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
      } else {
          core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
      }
  } else {
      // disguised fast path
      let shift = self.exponent - F::MAX_EXPONENT_FAST_PATH;
      let mantissa = self.mantissa.checked_mul(INT_POW10[shift as usize])?;
      if mantissa > F::MAX_MANTISSA_FAST_PATH {
          return None;
      }
      core::ops::Mul::mul(
          F::from_u64(mantissa),
          F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
      )
  };

  if self.negative {
      Some(core::ops::Neg::neg(value))
  } else {
      Some(value)
  }

The preceding can_use_fast_path body, together with
MAX_MANTISSA_FAST_PATH = 1 << SIG_TOTAL_BITS and SIG_TOTAL_BITS = 53 for f64,
requires the exponent to lie between -22 and 37, the input mantissa to be at
most 2^53, and many_digits to be false. Consequently an ordinary arithmetic
call has a from_u64 operand in 0..=2^53. In its negative-exponent arm,
`-self.exponent` lies in 1..=22; in its nonnegative arm, `self.exponent` lies
in 0..=22. The disguised branch checks its multiplied mantissa against 2^53
before from_u64 and uses table index 22. The paired statement
Binary64NativeCallDomain does not assert this source reachability. It says
conditionally that a from_u64 argument at most 2^53 succeeds with a finite,
non-NaN word and that a table index at most 22 succeeds with a positive,
nonzero, finite, non-NaN word. Applying that conditional statement to the
guards just derived establishes those properties for the actual ordinary and
disguised calls, and in particular establishes that every executed divisor is
nonzero.

Exact special-value excerpt from crate/dec2flt/parse.rs:

  let float = match (register, len) {
      (INF_3, 3) => F::INFINITY,
      (INF_8, 8) => F::INFINITY,
      (NAN, 3) => F::NAN,
      _ => return None,
  };

  if negative { Some(-float) } else { Some(float) }

Thus the executed special route is INFINITY or NAN followed by conditional
negation; it does not select NEG_INFINITY or NEG_NAN directly.

The number helper has the exact source body

  pub fn parse_number(s: &[u8]) -> Option<Decimal> {
      if let Some((float, rest)) = parse_partial_number(s) {
          if rest == s.len() {
              return Some(float);
          }
      }
      None
  }

It returns only the Decimal produced by parse_partial_number; there is no
float type parameter or float operation at this boundary.

Exact dispatcher excerpts from crate/dec2flt/mod.rs
---------------------------------------------------

The entry of `dec2flt_with_trace` strips at most one leading sign, rejects
empty and sign-only inputs, calls `parse_number` on the unsigned body, and
calls `parse_inf_nan` only when `parse_number` returns `None`:

  /// Run the actual dispatcher while retaining its approved internal observations.
  pub fn dec2flt_with_trace<
      'a,
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {
          return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
      };
      let negative = c == b'-';
      if c == b'-' || c == b'+' {
          body = &body[1..];
      }
      if body.is_empty() {
          return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
      }

      let parse_number_result = parse_number(body);
      let parsed = match parse_number_result {
          Some(r) => r,
          None => {
              let parse_inf_nan_result = parse_inf_nan(body, negative);
              return match parse_inf_nan_result {
                  Some(value) => (
                      Ok(value),
                      Dec2FltTrace::Special {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                          result: value,
                      },
                  ),
                  None => (
                      Err(pfe_invalid()),
                      Dec2FltTrace::Invalid {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                      },
                  ),
              };
          }
      };

Thus every `Err` arm shown here returns before `parsed` is available and before
the native, integer, slow, assembly, or final-negation code below it can run.
On a numeric result, the lexical sign is copied into the parsed record before
the native attempt, whose successful result also returns before raw-pair
assembly:

      let mut num = parsed;
      num.negative = negative;
      if !cfg!(feature = "optimize_for_size") {
          let fast_path_result = num.try_fast_path::<F>();
          if let Some(value) = fast_path_result {
              return (
                  Ok(value),
                  Dec2FltTrace::FastPath {
                      body,
                      negative,
                      parse_number_result,
                      fast_path_input: num,
                      fast_path_result,
                      result: value,
                  },
              );
          }
      }

If the native attempt does not return, the selected raw pair is assembled and
the source then conditionally negates it according to the lexical-sign flag:

      let selected_pair = fp;
      // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
      // it neither changes the selected pair nor introduces a new branch or call.
      let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
      let assembly_result = biased_fp_to_float::<F>(fp);
      let lexical_sign_applied = num.negative;
      let result = if lexical_sign_applied {
          core::ops::Neg::neg(assembly_result)
      } else {
          assembly_result
      };

The public `dec2flt` executes that same route and returns its result projection;
it does not reimplement or reorder any parsing or float operation:

  /// Converts a decimal string into a floating point number.
  #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
  pub fn dec2flt<
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &str,
  ) -> Result<F, ParseFloatError> {
      // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
      // clause admits exactly the same instances and lets Charon resolve the
      // explicit, source-equivalent final negation.
      // The public function is now exactly the result projection of the single
      // instrumented implementation.  No conversion step is duplicated, and
      // discarding the trace cannot affect Rust evaluation or the returned bits.
      dec2flt_with_trace::<F>(s).0
  }

The integer-tier helper has the source type and exact executable excerpts
below (long explanatory comments are elided). In particular it returns a raw
BiasedFp and contains no from_u64 cast, primitive float multiplication,
division, negation, or from_bits call:

  pub fn compute_float<F: Float>(q: i64, mut w: u64) -> BiasedFp {
      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);
      let fp_error = BiasedFp::zero_pow2(-1);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if w == 0 || q < F::SMALLEST_POWER_OF_TEN as i64 {
          return fp_zero;
      } else if q > F::LARGEST_POWER_OF_TEN as i64 {
          return fp_inf;
      }
      // Normalize our significant digits, so the most-significant bit is set.
      let lz = w.leading_zeros();
      w <<= lz;
      let (lo, hi) = compute_product_approx(q, w, F::SIG_BITS as usize + 3);
      if lo == 0xFFFF_FFFF_FFFF_FFFF {
          let inside_safe_exponent = (q >= -27) && (q <= 55);
          if !inside_safe_exponent {
              return fp_error;
          }
      }
      let upperbit = (hi >> 63) as i32;
      let mut mantissa = hi >> (upperbit + 64 - F::SIG_BITS as i32 - 3);
      let mut power2 = power(q as i32) + upperbit - lz as i32 - F::EXP_MIN + 1;
      if power2 <= 0 {
          if -power2 + 1 >= 64 {
              // Have more than 64 bits below the minimum exponent, must be 0.
              return fp_zero;
          }
          // Have a subnormal value.
          mantissa >>= -power2 + 1;
          mantissa += mantissa & 1;
          mantissa >>= 1;
          power2 = (mantissa >= (1_u64 << F::SIG_BITS)) as i32;
          return BiasedFp { m: mantissa, p_biased: power2 };
      }
      // Need to handle rounding ties. Normally, we need to round up,
      // but if we fall right in between and we have an even basis, we
      // need to round down.
      if lo <= 1
          && q >= F::MIN_EXPONENT_ROUND_TO_EVEN as i64
          && q <= F::MAX_EXPONENT_ROUND_TO_EVEN as i64
          && mantissa & 0b11 == 0b01
          && (mantissa << (upperbit + 64 - F::SIG_BITS as i32 - 3)) == hi
      {
          // Zero the lowest bit, so we don't round up.
          mantissa &= !1_u64;
      }
      // Round-to-even, then shift the significant digits into place.
      mantissa += mantissa & 1;
      mantissa >>= 1;
      if mantissa >= (2_u64 << F::SIG_BITS) {
          // Rounding up overflowed, so the carry bit is set. Set the
          // mantissa to 1 (only the implicit, hidden bit is set) and
          // increase the exponent.
          mantissa = 1_u64 << F::SIG_BITS;
          power2 += 1;
      }
      // Zero out the hidden bit.
      mantissa &= !(1_u64 << F::SIG_BITS);
      if power2 >= F::INFINITE_POWER {
          // Exponent is above largest normal value, must be infinite.
          return fp_inf;
      }
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact slow-tier source body from crate/dec2flt/slow.rs:

  pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {
      const MAX_SHIFT: usize = 60;
      const NUM_POWERS: usize = 19;
      const POWERS: [u8; 19] =
          [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];

      let get_shift = |n| {
          if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }
      };

      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);

      let mut d = parse_decimal_seq(s);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if d.num_digits == 0 || d.decimal_point < -324 {
          return fp_zero;
      } else if d.decimal_point >= 310 {
          return fp_inf;
      }
      let mut exp2 = 0_i32;
      let mut loop_result = None;
      // Shift right toward (1/2 ... 1].
      while d.decimal_point > 0 && loop_result.is_none() {
          let n = d.decimal_point as usize;
          let shift = get_shift(n);
          d.right_shift(shift);
          if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_zero);
          } else {
              exp2 += shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // Shift left toward (1/2 ... 1].
      while d.decimal_point <= 0 && loop_result.is_none() {
          let shift = if d.decimal_point == 0 {
              match d.digits[0] {
                  digit if digit >= 5 => break,
                  0 | 1 => 2,
                  _ => 1,
              }
          } else {
              get_shift((-d.decimal_point) as _)
          };
          d.left_shift(shift);
          if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_inf);
          } else {
              exp2 -= shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
      exp2 -= 1;
      while F::EXP_MIN > exp2 {
          let mut n = (F::EXP_MIN - exp2) as usize;
          if n > MAX_SHIFT {
              n = MAX_SHIFT;
          }
          d.right_shift(n);
          exp2 += n as i32;
      }
      if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
          return fp_inf;
      }
      // Shift the decimal to the hidden bit, and then round the value
      // to get the high mantissa+1 bits.
      d.left_shift(F::SIG_BITS as usize + 1);
      let mut mantissa = d.round();
      if mantissa >= (1_u64 << (F::SIG_BITS + 1)) {
          // Rounding up overflowed to the carry bit, need to
          // shift back to the hidden bit.
          d.right_shift(1);
          exp2 += 1;
          mantissa = d.round();
          if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
              return fp_inf;
          }
      }
      let mut power2 = exp2 - F::EXP_MIN + 1;
      if mantissa < (1_u64 << F::SIG_BITS) {
          power2 -= 1;
      }
      // Zero out all the bits above the explicit mantissa bits.
      mantissa &= (1_u64 << F::SIG_BITS) - 1;
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact final numeric-sign excerpt from crate/dec2flt/mod.rs:

  let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
  let assembly_result = biased_fp_to_float::<F>(fp);
  let lexical_sign_applied = num.negative;
  let result = if lexical_sign_applied {
      core::ops::Neg::neg(assembly_result)
  } else {
      assembly_result
  };

Thus a numeric execution that reaches the integer/slow selection route
assembles its selected pair with from_bits through biased_fp_to_float and only
then conditionally negates it. A successful try_fast_path returns earlier and
does not perform this assembly. compute_float and parse_long_mantissa produce
raw BiasedFp pairs and do not call from_u64, primitive float multiplication,
division, negation, or from_bits; they do, however, execute constants derived
from SIG_TOTAL_BITS before producing those pairs.

Retained structural-boundary evidence
-------------------------------------

Several adjacent structural bindings cite this same evidence record. Their
pinned library source identities are:

  core/src/num/mod.rs
    f0820f9dfb94999440c8cb4a349736fa21df7e5668e19b6b49e016ff67c05ce3
  core/src/option.rs
    7cf61204b05d98a95bc2e322d5fbfc1f4f91505109971917d9a7fb47151c50e6
  core/src/slice/mod.rs
    354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840
  core/src/str/mod.rs
    284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78

Exact ASCII-digit body from core/src/num/mod.rs:

  pub const fn is_ascii_digit(&self) -> bool {
      matches!(*self, b'0'..=b'9')
  }

Exact Option control-flow bodies from core/src/option.rs:

  fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
      match self {
          Some(v) => ControlFlow::Continue(v),
          None => ControlFlow::Break(None),
      }
  }

  fn from_residual(residual: Option<convert::Infallible>) -> Self {
      match residual {
          None => None,
      }
  }

Exact slice observation bodies from core/src/slice/mod.rs:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

Exact string-byte body from core/src/str/mod.rs:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }
reference/model-evidence/binary64-probe.rs

Open file

#![feature(float_masks)]

use std::num::FpCategory;

fn bits(label: &str, value: f64) {
    println!("{label}={:016x}", value.to_bits());
}

fn main() {
    println!("target_arch={}", std::env::consts::ARCH);
    println!("mantissa_digits={}", f64::MANTISSA_DIGITS);
    println!("exponent_mask={:016x}", f64::EXPONENT_MASK);
    println!("mantissa_mask={:016x}", f64::MANTISSA_MASK);
    bits("nan", f64::NAN);
    bits("infinity", f64::INFINITY);
    bits("neg_infinity", f64::NEG_INFINITY);

    for (label, value) in [
        ("nan_category", f64::NAN),
        ("infinity_category", f64::INFINITY),
        ("zero_category", 0.0),
        ("subnormal_category", f64::from_bits(1)),
        ("normal_category", 1.0),
    ] {
        let category = match value.classify() {
            FpCategory::Nan => "Nan",
            FpCategory::Infinite => "Infinite",
            FpCategory::Zero => "Zero",
            FpCategory::Subnormal => "Subnormal",
            FpCategory::Normal => "Normal",
        };
        println!("{label}={category}");
    }

    let payload_nan_word = 0x7ff0_0000_0000_0001_u64;
    println!(
        "from_bits_to_bits={:016x}",
        f64::from_bits(payload_nan_word).to_bits()
    );
    bits("neg_payload_nan", -f64::from_bits(payload_nan_word));
    bits("neg_zero", -0.0);

    bits("subnormal_tie_to_even_zero", f64::from_bits(1) * 0.5);
    bits("subnormal_tie_to_even_two", f64::from_bits(3) * 0.5);
    bits("normal_division", 1.0 / 10.0);
    bits("mul_negative_zero", -0.0 * 2.0);
    bits("div_negative_zero", -1.0 / f64::INFINITY);
    bits("div_negative_infinity", 1.0 / -0.0);
    bits("mul_overflow", f64::MAX * (1.0 + f64::EPSILON));
    println!("mul_zero_infinity_is_nan={}", (0.0 * f64::INFINITY).is_nan());
    println!("div_zero_zero_is_nan={}", (0.0_f64 / 0.0_f64).is_nan());
    println!("mul_nan_is_nan={}", (f64::NAN * 1.0).is_nan());

    bits("cast_2_pow_53", (1_u64 << 53) as f64);
    bits("cast_2_pow_53_plus_1", ((1_u64 << 53) + 1) as f64);
}
Assumptions / kernel axioms
  • Classical.choice
  • Quot.sound
  • propext

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (32)
All 32 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourceTablet/model-support.json
Kindopaque external binding
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:36fe3735e95568b5f6b4e828b7e15dea1b846411e5595e7632f099aa4ef38344
Preservation current fingerprintpreservation-v1:36fe3735e95568b5f6b4e828b7e15dea1b846411e5595e7632f099aa4ef38344
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"8d2638f64a331a029d6ae0d22b87b2d11cc4bd8ebb1c2c5ccd6dbe16f103283d","lean_semantic_closure":"6cbb08481544edb52e8b26d6bae4bca0cec628f574e86986141494017d56dac1","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","Binary64ModelDefault":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","Binary64ModelDefault","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence current fingerprint{"own_tex":"8d2638f64a331a029d6ae0d22b87b2d11cc4bd8ebb1c2c5ccd6dbe16f103283d","lean_semantic_closure":"6cbb08481544edb52e8b26d6bae4bca0cec628f574e86986141494017d56dac1","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","Binary64ModelDefault":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","Binary64ModelDefault","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "003bb56ef6c83cef40341e57301bd973eac1bfe5cda4a7cbe5608d9d60a3c451",
    "dep_statement_hashes": {
      "Binary64ModelDefault": "be5dcc4afe23616ca8fd1d15d30fbbe4ee2621d68be3341b8e74a66e6dcd736f"
    },
    "combined_sound_fp": "preservation-v1:36fe3735e95568b5f6b4e828b7e15dea1b846411e5595e7632f099aa4ef38344"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Exact source record
{
  "name": "F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64",
  "extracted_signature": ": Std.U64 → Result F64",
  "rust_symbol": "dec2flt_model::num::imp::dec2flt::{impl dec2flt_model::num::imp::dec2flt::Lemire<u64> for f64}::from_u64",
  "raw_declaration_sha256": "ad172bce0522e7e41bceb8c66a5adff962822ee8a9454dfd59b7019086797ba8",
  "node": "ModelF64FromU64",
  "declaration": "dec2flt_model.ModelF64FromU64"
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/binary64-boundary.txt",
    "sha256": "fa45c924747337e8d6f84a19fe9e83fb9b33c73434887c0cf57c062533f51fe1",
    "cited_by": [
      "Tablet/ModelF64FromU64.tex",
      "Tablet/model-support.json"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-probe.rs",
    "sha256": "68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e",
    "cited_by": [
      "reference/model-evidence/binary64-boundary.txt"
    ]
  }
]

Specification vocabulary and authored definitions (11)

Assumptions

Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Tablet.Preamble
open Aeneas Aeneas.Std Result ControlFlow Error

-- [PV UNDER-MODEL ASSUMPTIONS]
-- Worker-authored staged assumptions live between markers:
--   -- BEGIN UNDERMODEL ASSUMPTION <id>
--   axiom <name> : <type>
--   -- END UNDERMODEL ASSUMPTION <id>

-- BEGIN UNDERMODEL ASSUMPTION configured-x86_64-platform-width
axiom Dec2Flt.configured_x86_64_numBits : System.Platform.numBits = 64
-- END UNDERMODEL ASSUMPTION configured-x86_64-platform-width

Why this model is faithful

Definition

For the configured x86_64-unknown-linux-gnu extraction environment, the Aeneas platform parameter satisfies \mathtt{System.Platform.numBits}=64.

Preservation argument

Claim

The axiom binds the Aeneas pointer-width parameter to the already-selected x86_64-unknown-linux-gnu source environment. Consequently the Aeneas Usize and Isize widths are both 64, exactly matching the configured Rust usize and isize widths. This binding does not remove any configured source value or introduce a smaller slice or string bound.

Proof

The accepted extraction scope fixes nightly-2026-06-01 and target x86_64-unknown-linux-gnu; the setup record fixes the same target and the extraction command actually passes it to cargo rustc. The pinned compiler's raw --print cfg result for that invocation contains target_arch="x86_64" and target_pointer_width="64". A separately retained program compiled for that target reports usize::BITS = 64 and isize::MAX = 9223372036854775807. The compiler identity, commands, hashes, and raw results are recorded in reference/model-evidence/platform-width.txt and reference/model-evidence/source-valid-byte-slice.txt.
The pinned Aeneas scalar source defines UScalarTy.Usize.numBits and IScalarTy.Isize.numBits to be System.Platform.numBits, and defines Usize and Isize using exactly those two scalar kinds. The source excerpt and its hash are also recorded in reference/model-evidence/platform-width.txt. Substituting the configured compiler fact therefore gives both Aeneas widths as 64. The usual Aeneas definition Usize.max = 2^{\mathtt{Usize.numBits}}-1 then gives Usize.max = 2^{64}-1, so in particular 2^{63}-1\leq\mathtt{Usize.max}. Thus every Rust byte slice allowed by the configured isize::MAX byte-size rule remains representable by the Aeneas slice carrier. The axiom supplies only the omitted target parameter: it neither assumes parser behavior nor changes any goal proposition, and the same environment binding applies whether a goal is proved or disproved.
Authored arguments for individual requirements

Requirement: assembly correspondence

This goal uses fixed-width u64, u32, and binary64 values; fixing the pointer width changes none of its inputs or observations.

Requirement: classification determinism

This finite-byte-string classification statement has no pointer-sized scalar or Aeneas slice carrier, so the environment binding is noninterfering.

Requirement: classification significand digit

This grammar consequence concerns finite byte strings and digit positions; it is independent of the platform-width parameter.

Requirement: classification totality

The mathematical finite-byte-string domain is unchanged; the width equation only instantiates the extracted model's pointer-sized environment parameter.

Requirement: dispatch abstract composition

The abstract dispatch statement keeps its existing source-valid string and byte-slice domains. The binding makes their 64-bit bounds representable and does not alter the statement in either its positive or refutation direction.

Requirement: dispatch component compliance

Every configured dispatcher slice/string value retains the same bytes and source bound. The binding only aligns Aeneas pointer-sized widths with the selected target, independently of the currently selected disproof direction.

Requirement: exponent value agreement

This decimal-value comparison is purely mathematical and contains no pointer-sized model carrier, so the binding is noninterfering.

Requirement: integer correct or defer

The helper's arithmetic inputs are fixed-width integers; assigning the configured pointer width changes neither its execution nor observations.

Requirement: native correct or defer

The native helper consumes the fixed-field decimal record and fixed-width binary64 operations, so this environment equality is noninterfering.

Requirement: number helper acceptance

The goal quantifies over the full configured source-valid byte-slice domain. The equality supplies the 64-bit Aeneas carrier capacity for that same domain, including its largest Rust-valid length, without imposing a smaller bound.

Requirement: number helper accumulated value

The same source-valid slices and returned record fields remain in scope; the binding only makes their configured pointer-sized indices and lengths 64-bit.

Requirement: number helper record bounds

The source-valid slice predicate and record conclusion are unchanged. The environment equality aligns their pointer-sized bounds with the selected target rather than strengthening either one.

Requirement: number helper rejection

Every source-valid invalid byte slice keeps the same bytes and Rust length bound, so the rejection proposition is unchanged by the environment binding.

Requirement: parser accumulated rounding

All configured strings and their byte bodies remain representable with the same contents; no rounding observation or parser premise is added.

Requirement: parser equal target rounding

The equality preserves the full string/body domain and changes no decimal or binary64 value used by the equal-target statement.

Requirement: parser exact rounding

The configured parser domain is unchanged. This target binding applies also to the selected exact-negation direction and assumes no rounding result.

Requirement: parser infinity

All source-valid spellings and sign bytes retain their contents and lengths; the infinity observation uses no additional platform-dependent fact.

Requirement: parser invalid rejection

Every configured invalid Rust string remains in the model domain with the same bytes, so neither its classification nor rejection proposition changes.

Requirement: parser nan acceptance

The binding preserves all NaN spellings and the fixed-width binary64 classification observation without adding an acceptance premise.

Requirement: parser non nan results

The full configured string domain and fixed-width classification result are unchanged; only the model's target parameter is instantiated.

Requirement: parser numeric acceptance

All source-valid numeric strings and byte bodies remain representable under their original 64-bit Rust bounds, with no smaller length condition added.

Requirement: parser numeric sign

Lexical sign bytes and returned binary64 sign observations are unchanged by the pointer-width equality.

Requirement: parser selected exponent

The binding preserves every input byte and only fixes pointer-sized indices; selected fixed-width exponent observations are unchanged.

Requirement: parser selected magnitude sign

The same strings, unsigned raw pairs, and assembled binary64 words remain in scope, so the selected magnitude/sign observation is unchanged.

Requirement: parser signed zero

The full configured input domain, lexical sign, and binary64 zero word are unchanged by fixing the model's pointer width.

Requirement: parser totality

Every configured Rust string remains represented with its original 64-bit length bound. The equality does not assume termination or successful return.

Requirement: rounding determinism

This nonnegative-real rounding statement has no platform-sized carrier, so the environment binding is noninterfering.

Requirement: rounding totality

This nonnegative-real existence statement has no platform-sized carrier, so the environment binding is noninterfering.

Requirement: slow accumulated rounding

The source-valid slice domain is preserved in full, including the configured 64-bit bound; the binding assumes no slow-parser result and applies equally to the selected refutation direction.

Requirement: special helper infinity

All source-valid byte slices and separate sign arguments remain unchanged; the result is a fixed-width binary64 observation.

Requirement: special helper nan

All source-valid NaN byte slices and their fixed-width classification observations remain unchanged.

Requirement: special helper rejection

Every source-valid non-special byte slice retains the same bytes and 64-bit Rust bound, with no additional rejection assumption.

Recorded review

CorrespondencePass
PreservationVerifierPass

Assumptions · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

extraction-evidence/COMMAND.json

Open file

{"declaration_reader_sha256":"76f60cf0b867fad9727d2256d32b306c8cba3725216a4225d0f83add77fd6158","extraction_provenance":{"extraction_toolchain":{"aeneas":"fa699427","aeneas_revision":"fa699427cdfa8f604b891fb0223ef42883dd7dc4","cargo_features":[{"features":["default"],"name":"dec2flt-model","source":"workspace:Cargo.toml","version":"0.1.0"}],"cargo_lock_sha256":"bc644c624ded89197356bbd65d995054b7fb08e5bdfbaa38c6e7c7a53772cecf","cfg":["debug_assertions","emscripten_wasm_eh","feature=\"default\"","fmt_debug=\"full\"","overflow_checks","panic=\"unwind\"","relocation_model=\"pic\"","target_abi=\"\"","target_arch=\"x86_64\"","target_endian=\"little\"","target_env=\"gnu\"","target_family=\"unix\"","target_feature=\"fxsr\"","target_feature=\"sse\"","target_feature=\"sse2\"","target_feature=\"x87\"","target_has_atomic","target_has_atomic=\"16\"","target_has_atomic=\"32\"","target_has_atomic=\"64\"","target_has_atomic=\"8\"","target_has_atomic=\"ptr\"","target_has_atomic_load_store","target_has_atomic_load_store=\"16\"","target_has_atomic_load_store=\"32\"","target_has_atomic_load_store=\"64\"","target_has_atomic_load_store=\"8\"","target_has_atomic_load_store=\"ptr\"","target_has_atomic_primitive_alignment=\"16\"","target_has_atomic_primitive_alignment=\"32\"","target_has_atomic_primitive_alignment=\"64\"","target_has_atomic_primitive_alignment=\"8\"","target_has_atomic_primitive_alignment=\"ptr\"","target_has_reliable_f128","target_has_reliable_f16","target_has_reliable_f16_math","target_object_format=\"elf\"","target_os=\"linux\"","target_pointer_width=\"64\"","target_thread_local","target_vendor=\"unknown\"","ub_checks","unix"],"charon":"0.1.216","charon_revision":"6f058254eb741c12e9b388df07adaf7cc8aac8ed","extraction_profile":"dev","lean":"4.30.0-rc2","overflow_checks":true,"panic_strategy":"unwind","rustc_vv":"rustc 1.98.0-nightly (14210df0e 2026-05-31)\nbinary: rustc\ncommit-hash: 14210df0e27ccd7d9e6a05b8085cbd438e4bbc65\ncommit-date: 2026-05-31\nhost: x86_64-unknown-linux-gnu\nrelease: 1.98.0-nightly\nLLVM version: 22.1.6\n","target_pointer_width":64,"target_triple":"x86_64-unknown-linux-gnu"},"extractor_stack":["charon@0.1.216","aeneas@fa699427"],"extractor_toolchain_sha256":"18657da0659dee7889ed8a937b136c9abbc3a35e9050241cd8201c94fd232323","not_recorded":[],"source_digests":[{"source_file":"lib.rs","source_sha256":"63c7f58df6caff552519c92155d902daf8a1015797adcd3f357f8b8cf1652b00"}]},"extractor_script_path":"/home/leanagent/pv_runs/trellis-native-implementation-v91/scripts/extract_pv_model.py","extractor_script_sha256":"cc1fdd50a78185c7bb564b715c554cb35d9fc09ed566b6c3d4f482f2d27ef67d","kernel_gate_checkers":[],"log_concatenation_order":"runs_then_steps_in_array_order","runs":[{"run_role":"primary","steps":[{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","-vV"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"rustc-version","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/pv_spike/tools/charon/bin/charon","cargo","--preset=aeneas","--dest-file","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc","--","--offline","--profile","dev","--target","x86_64-unknown-linux-gnu"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"charon","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/cargo","metadata","--format-version=1","--locked","--offline","--filter-platform","x86_64-unknown-linux-gnu"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"cargo-metadata","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/cargo","rustc","--lib","--locked","--offline","--profile","dev","--target","x86_64-unknown-linux-gnu","--","--print","cfg"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"cargo-rustc-cfg","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/pv_spike/tools/aeneas/bin/aeneas","-backend","lean","-dest","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen","-emit-json","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"aeneas","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"}]}],"schema":"trellis-extraction-command/v1","tool_source_checkouts":[]}
extraction-evidence/STDOUT.bin

Open file

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
{"packages":[{"name":"dec2flt-model","version":"0.1.0","id":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0","license":null,"license_file":null,"description":null,"source":null,"dependencies":[],"targets":[{"kind":["lib"],"crate_types":["lib"],"name":"dec2flt_model","src_path":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate/lib.rs","edition":"2024","doc":true,"doctest":true,"test":true}],"features":{"default":[],"optimize_for_size":[]},"manifest_path":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate/Cargo.toml","metadata":null,"publish":[],"authors":[],"categories":[],"keywords":[],"readme":null,"repository":null,"homepage":null,"documentation":null,"edition":"2024","links":null,"default_run":null,"rust_version":null}],"workspace_members":["path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"],"workspace_default_members":["path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"],"resolve":{"nodes":[{"id":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0","dependencies":[],"deps":[],"features":["default"]}],"root":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"},"target_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","build_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","version":1,"workspace_root":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate","metadata":null}
debug_assertions
emscripten_wasm_eh
feature="default"
fmt_debug="full"
overflow_checks
panic="unwind"
relocation_model="pic"
target_abi=""
target_arch="x86_64"
target_endian="little"
target_env="gnu"
target_family="unix"
target_feature="fxsr"
target_feature="sse"
target_feature="sse2"
target_feature="x87"
target_has_atomic
target_has_atomic="16"
target_has_atomic="32"
target_has_atomic="64"
target_has_atomic="8"
target_has_atomic="ptr"
target_has_atomic_load_store
target_has_atomic_load_store="16"
target_has_atomic_load_store="32"
target_has_atomic_load_store="64"
target_has_atomic_load_store="8"
target_has_atomic_load_store="ptr"
target_has_atomic_primitive_alignment="16"
target_has_atomic_primitive_alignment="32"
target_has_atomic_primitive_alignment="64"
target_has_atomic_primitive_alignment="8"
target_has_atomic_primitive_alignment="ptr"
target_has_reliable_f128
target_has_reliable_f16
target_has_reliable_f16_math
target_object_format="elf"
target_os="linux"
target_pointer_width="64"
target_thread_local
target_vendor="unknown"
ub_checks
unix
[Info ] Imported: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc
[Info ] Generated: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/M.lean
[Info ] Generated: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/translation.json
[Warn ] The crate contains extracted external, unknown definitions: we advise using the option -split-files to allow manually providing these definitions in separate files.
[Info ] Total execution time: 7.337683 seconds
reference/model-evidence/platform-width.txt

Open file

Configured x86_64 platform-width binding
========================================

Selected environment and extraction provenance
-----------------------------------------------

The accepted scope in modeling-input/manifest.json, line 215, selects
nightly-2026-06-01 and x86_64-unknown-linux-gnu.  The setup record repeats
that target at modeling-input/SETUP.md, lines 17-23.  The byte-pinned
extraction command record has these SHA-256 identities:

  5f26225136b8c7c4d7f95615e3e8ff8b357e523eeada4bc649e50f9c76cb9bda  extraction-evidence/COMMAND.json
  8e0aed62f6941e7c81b09d5c5b63ea7602756e69e4bcce9944258b229a9a0ba3  extraction-evidence/STDOUT.bin

COMMAND.json records target_triple "x86_64-unknown-linux-gnu",
target_pointer_width 64, and invokes cargo rustc with both
"--target", "x86_64-unknown-linux-gnu" and "--print", "cfg".  The
corresponding raw compiler output in STDOUT.bin, lines 17 and 47, is:

  target_arch="x86_64"
  target_pointer_width="64"

The pinned compiler identity and a separately reproducible invocation are in
reference/model-evidence/source-valid-byte-slice.txt, lines 7-34.  The retained
probe source and output are identified there at lines 36-68; the raw output is:

  arch=x86_64
  usize_bits=64
  isize_max=9223372036854775807
  u8_size=1

Aeneas model correspondence
----------------------------

The exact Aeneas scalar source used by the selected extractor is:

  /home/leanagent/pv_spike/tools/aeneas/backends/lean/Aeneas/Std/Scalar/Core.lean

Its SHA-256 is:

  a1c26c125a59bba635a2b2c170186ce07168c43308bcf386d508ebd77f01520e

The reproducing command was:

  nl -ba /home/leanagent/pv_spike/tools/aeneas/backends/lean/Aeneas/Std/Scalar/Core.lean \
    | sed -n '27,63p;650,662p'

The relevant raw definitions are:

  inductive UScalarTy where
  | Usize
  ...
  inductive IScalarTy where
  | Isize
  ...
  def UScalarTy.numBits (ty : UScalarTy) : Nat :=
    match ty with
    | Usize => System.Platform.numBits
    ...
  def IScalarTy.numBits (ty : IScalarTy) : Nat :=
    match ty with
    | Isize => System.Platform.numBits
    ...
  abbrev Usize := UScalar .Usize
  ...
  abbrev Isize := IScalar .Isize

Thus System.Platform.numBits is precisely the Aeneas environment parameter
for both Rust pointer-sized integer widths.  Binding it to 64 represents the
already-selected target; it does not narrow the configured Rust slice or
string domain.  By the displayed definitions, Usize.numBits and Isize.numBits
then both reduce to 64.  In particular Usize.max reduces to 2^64 - 1, so the
Rust slice byte limit 2^63 - 1 is within the Aeneas Slice carrier bound.
reference/model-evidence/source-valid-byte-slice-probe.out

Open file

arch=x86_64
usize_bits=64
isize_max=9223372036854775807
u8_size=1
reference/model-evidence/source-valid-byte-slice-probe.rs

Open file

fn main() {
    println!("arch={}", std::env::consts::ARCH);
    println!("usize_bits={}", usize::BITS);
    println!("isize_max={}", isize::MAX);
    println!("u8_size={}", std::mem::size_of::<u8>());
}
reference/model-evidence/source-valid-byte-slice.txt

Open file

Source-valid byte-slice and string domain evidence
==================================================

Scope and pinned identities
---------------------------

All commands below were run from the repository root.  The configured compiler
is:

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

Its SHA-256 is:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b

The exact identity commands were:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  sha256sum "$R"
  "$R" --version --verbose
  "$R" --target x86_64-unknown-linux-gnu --print cfg | LC_ALL=C sort | \
    rg 'target_(arch|pointer_width)'

Their relevant raw output was:

  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
  target_arch="x86_64"
  target_pointer_width="64"

Retained configured-target probe
--------------------------------

The retained probe source is
reference/model-evidence/source-valid-byte-slice-probe.rs.  It was compiled
for the configured target and executed with this exact command, which depends
only on the retained source and the pinned compiler:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/source-valid-byte-slice-probe.rs
  B=/tmp/dec2flt-source-valid-byte-slice-probe
  O=reference/model-evidence/source-valid-byte-slice-probe.out
  "$R" --edition 2024 --target x86_64-unknown-linux-gnu -C opt-level=0 \
    -C debuginfo=0 -C overflow-checks=on -C debug-assertions=on \
    --crate-name source_valid_byte_slice_probe "$P" -o "$B"
  sha256sum "$R" "$P" "$B"
  "$B" > "$O"
  sha256sum "$O"
  cat "$O"

The actual hashes were:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd  reference/model-evidence/source-valid-byte-slice-probe.rs
  87dc3b9b7a46506d2205503d8aa007b451c452968af48d1ba5961a821934ee55  /tmp/dec2flt-source-valid-byte-slice-probe
  01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4  reference/model-evidence/source-valid-byte-slice-probe.out

The retained raw output file contains exactly:

  arch=x86_64
  usize_bits=64
  isize_max=9223372036854775807
  u8_size=1

Pinned core-library source
--------------------------

Let:

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

The exact commands used to identify and inspect the relevant core sources were:

  sha256sum "$S/slice/mod.rs" "$S/num/int_macros.rs" "$S/str/mod.rs"
  sed -n '798,808p' "$S/slice/mod.rs"
  sed -n '43,51p' "$S/num/int_macros.rs"
  sed -n '495,510p' "$S/str/mod.rs"

The file identities are:

  354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840  core/src/slice/mod.rs
  3896304e7cb14628e293134ac41fd18be2b5369bedc02d1c6a7408bd8c755a31  core/src/num/int_macros.rs
  284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78  core/src/str/mod.rs

The relevant exact excerpt of slice/mod.rs, line 801, is:

  //   - The size of the slice is never larger than `isize::MAX` bytes, as

The relevant exact declaration in num/int_macros.rs, line 47, is:

  pub const MAX: Self = (<$UnsignedT>::MAX >> 1) as Self;

The relevant exact excerpts of str/mod.rs are its same-layout byte-slice
conversion at lines 498-500:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }

and its UTF-8 invariant at lines 507-510:

  /// The caller must ensure that the content of the slice is valid UTF-8
  /// before the borrow ends and the underlying `str` is used.
  ///
  /// Use of a `str` whose contents are not valid UTF-8 is undefined behavior.

Conclusion
----------

The configured target has 64-bit usize/isize and one-byte u8 elements.
The pinned signed-MAX definition therefore gives
isize::MAX = 2^63 - 1 = 9223372036854775807, and the pinned slice rule bounds a
slice by that many bytes.  For &[u8], this is exactly an element-count bound;
the rule adds no UTF-8 condition or other restriction on the byte contents.
The pinned str source exposes the identical-layout &[u8] bytes and separately
requires them to be valid UTF-8.  Consequently the exact configured domains
are arbitrary &[u8] bytes of length at most isize::MAX, and Rust str bytes of
length at most isize::MAX that are valid UTF-8.  No smaller convenience bound
is introduced.
Assumptions / kernel axioms
  • Dec2Flt.configured_x86_64_numBits

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (32)
All 32 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourcecommitted_node_kinds / pv_tablet.json
Kindauthored definition
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:2e8560a60376a71d6b681ff6aef045877a329a22c62dc36c7af88688b28cabc9
Preservation current fingerprintpreservation-v1:2e8560a60376a71d6b681ff6aef045877a329a22c62dc36c7af88688b28cabc9
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"377b830bb2aff90794a84e173c447397eab4fd293cfff15427429e532d5de3ce","lean_semantic_closure":"5321b6e0bb17aef0416df9b09af7059861db39dbd3746762824e996343488a47","preamble_tex":""}
Correspondence current fingerprint{"own_tex":"377b830bb2aff90794a84e173c447397eab4fd293cfff15427429e532d5de3ce","lean_semantic_closure":"5321b6e0bb17aef0416df9b09af7059861db39dbd3746762824e996343488a47","preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "9708f2bb4122e6f15fbd700698e224f69f8c12b152b7f800bf4b1703f82f764e",
    "dep_statement_hashes": {},
    "combined_sound_fp": "preservation-v1:2e8560a60376a71d6b681ff6aef045877a329a22c62dc36c7af88688b28cabc9"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Captured evidence identities
[
  {
    "path": "extraction-evidence/COMMAND.json",
    "sha256": "5f26225136b8c7c4d7f95615e3e8ff8b357e523eeada4bc649e50f9c76cb9bda",
    "cited_by": [
      "reference/model-evidence/platform-width.txt"
    ]
  },
  {
    "path": "extraction-evidence/STDOUT.bin",
    "sha256": "8e0aed62f6941e7c81b09d5c5b63ea7602756e69e4bcce9944258b229a9a0ba3",
    "cited_by": [
      "reference/model-evidence/platform-width.txt"
    ]
  },
  {
    "path": "reference/model-evidence/platform-width.txt",
    "sha256": "b1f954fbdc0e8add22e6a4e6770f04b577aafc8db12a9dbc1f19941f0a90bdcb",
    "cited_by": [
      "Tablet/Assumptions.tex",
      "committed_node_kinds / pv_tablet.json"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.out",
    "sha256": "01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.rs",
    "sha256": "b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice.txt",
    "sha256": "eb501317621baa00236f9773885466bd38ec1a45cb56457d555b9e9139dc780a",
    "cited_by": [
      "Tablet/Assumptions.tex",
      "committed_node_kinds / pv_tablet.json",
      "reference/model-evidence/platform-width.txt"
    ]
  }
]

Binary64Model

Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Tablet.F64
import Tablet.core_num_FpCategory

open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false

namespace dec2flt_model

-- [TABLET NODE: Binary64Model]
structure Binary64Model where
-- BODY
  clone : F64 -> Result F64
  mantissaDigits : Result Std.U32
  nan : Result F64
  infinity : Result F64
  negInfinity : Result F64
  exponentMask : Result Std.U64
  mantissaMask : Result Std.U64
  classify : F64 -> Result core.num.FpCategory
  toBits : F64 -> Result Std.U64
  fromBits : Std.U64 -> Result F64
  mul : F64 -> F64 -> Result F64
  div : F64 -> F64 -> Result F64
  neg : F64 -> Result F64
  fromU64 : Std.U64 -> Result F64

end dec2flt_model

Why this model is faithful

Definition

A binary64 model package supplies the fourteen operations left opaque by the extraction boundary: cloning; the precision, NaN, signed-infinity, and field-mask constants; classification; exact conversion to and from raw bits; multiplication, division, and negation; and the parser's checked conversion from an unsigned 64-bit integer.

Preservation argument

Claim

This package type records exactly the signatures of the fourteen frozen binary64 externals and introduces no equation or behavioral assumption.

Proof

The reproduced inspect-native records in reference/model-evidence/native-boundary.txt give the following field-to-external correspondence, with the same argument order and result type in every row: clone to F64.Insts.CoreCloneClone.clone; mantissaDigits to core.f64.F64.MANTISSA_DIGITS; nan to core.f64.F64.NAN; infinity to core.f64.F64.INFINITY; negInfinity to core.f64.F64.NEG_INFINITY; exponentMask to core.f64.F64.EXPONENT_MASK; mantissaMask to core.f64.F64.MANTISSA_MASK; classify to core.f64.F64.classify; toBits to core.f64.F64.to_bits; fromBits to core.f64.F64.from_bits; mul to F64.Insts.CoreOpsArithMulF64F64.mul; div to F64.Insts.CoreOpsArithDivF64F64.div; neg to F64.Insts.CoreOpsArithNegF64.neg; and fromU64 to F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64. The frozen declarations are axioms with precisely those signatures, and the structure has only these data-valued or function-valued fields: it has no proposition-valued field and states no equation about any field's result. Thus this node packages the frozen call surface without constraining an implementation. Behavioral preservation is a separate obligation of the corresponding ModelF64Clone, ModelF64MantissaDigits, ModelF64Nan, ModelF64Infinity, ModelF64NegInfinity, ModelF64ExponentMask, ModelF64MantissaMask, ModelF64Classify, ModelF64ToBits, ModelF64FromBits, ModelF64Mul, ModelF64Div, ModelF64Neg, and ModelF64FromU64 binding nodes, not a premise of this claim.
Authored arguments for individual requirements

Requirement: parser totality

The full fourteen-external call surface used by the f64 specialization is retained with its frozen signatures. This package adds no behavioral premise or input-domain restriction; normal-return behavior, where needed, belongs separately to the fourteen ModelF64 owners listed in the proof.

Requirement: parser numeric acceptance

The full fourteen-external call surface available to numeric parsing is retained with its frozen signatures. This package adds no acceptance premise or input-domain restriction; any needed constant, conversion, or arithmetic behavior belongs to its corresponding ModelF64 owner listed above.

Requirement: parser invalid rejection

The same fourteen-external call surface remains available to the specialized parser. This interface adds no rejection premise and excludes no input; whether an execution invokes an external, and what it returns, is not asserted here.

Requirement: parser nan acceptance

The special-literal source route requests NAN, conditionally invokes neg for a negative lexical sign, and uses classification to support the required NaN observation. This package retains those three signatures without asserting their results or restricting their domains; their behavior belongs to ModelF64Nan, ModelF64Neg, and ModelF64Classify.

Requirement: parser infinity

The special-literal source route requests INFINITY and then invokes neg exactly when the lexical sign is negative; it does not request NEG_INFINITY. This package retains the two executed signatures without asserting their results or restricting their domains; their behavior belongs to ModelF64Infinity and ModelF64Neg.

Requirement: parser non nan results

The result-producing and classify signatures in the fourteen-external surface are retained, without asserting which words they return or restricting their inputs. Result behavior belongs to the corresponding operation owner, and classification behavior belongs to ModelF64Classify.

Requirement: parser numeric sign

The numeric source routes use from_bits while constructing their magnitudes and invoke neg when applying a negative lexical sign; they do not request either signed-infinity constant or to_bits. This package retains the executed signatures without asserting sign behavior or restricting their domains; behavior belongs to ModelF64FromBits and ModelF64Neg.

Requirement: parser signed zero

The numeric source routes use from_bits while constructing a zero magnitude and invoke neg when applying a negative lexical sign; they do not invoke to_bits. This package retains the executed signatures without asserting a zero encoding or restricting their domains; behavior belongs to ModelF64FromBits and ModelF64Neg.

Requirement: parser exact rounding

The frozen mul, div, from_u64, and from_bits signatures used by magnitude-conversion paths, together with the neg signature used for a negative lexical sign, are retained without an accuracy premise or domain restriction. Their behavior belongs to ModelF64Mul, ModelF64Div, ModelF64FromU64, ModelF64FromBits, and ModelF64Neg.

Requirement: parser selected exponent

The frozen precision, mask, and from_bits signatures remain available to the specialized dispatcher and assembly path. This interface adds no range premise or domain restriction; the concrete owners are ModelF64MantissaDigits, ModelF64ExponentMask, ModelF64MantissaMask, and ModelF64FromBits.

Requirement: parser selected magnitude sign

The frozen mask, to_bits, and from_bits signatures remain available to the specialized conversion and assembly paths. This interface adds no sign-bit premise or domain restriction; behavior belongs to ModelF64ExponentMask, ModelF64MantissaMask, ModelF64ToBits, and ModelF64FromBits.

Requirement: dispatch abstract composition

The full fourteen-external call surface of the f64 specialization is retained. Because the package states neither component contracts nor equations and restricts no input, it adds no behavioral premise to the abstract composition claim; concrete behavior belongs to the corresponding fourteen ModelF64 owners listed above.

Requirement: dispatch component compliance

The full fourteen-external call surface against which the actual f64 components are extracted is retained. This package adds no component-compliance premise or domain restriction; compliance of each operation is the separate responsibility of its corresponding ModelF64 owner listed above.

Requirement: parser accumulated rounding

The frozen mul, div, from_u64, and from_bits signatures used by magnitude conversion, together with the neg signature used for a negative lexical sign, are retained. This interface asserts no rounding or sign behavior and restricts no input; that behavior belongs to ModelF64Mul, ModelF64Div, ModelF64FromU64, ModelF64FromBits, and ModelF64Neg.

Requirement: parser equal target rounding

The frozen mul, div, from_u64, and from_bits signatures used by magnitude conversion, together with the neg signature used for a negative lexical sign, are retained; the numeric source routes do not invoke to_bits. This interface adds no target-equality premise or domain restriction; behavior belongs to ModelF64Mul, ModelF64Div, ModelF64FromU64, ModelF64FromBits, and ModelF64Neg.

Requirement: number helper acceptance

The frozen parse_number call surface contains none of these fourteen binary64 externals. Packaging their signatures therefore adds no acceptance premise and no restriction on byte-slice inputs.

Requirement: number helper rejection

The frozen parse_number call surface contains none of these fourteen binary64 externals. Packaging their signatures therefore adds no rejection premise and no restriction on byte-slice inputs.

Requirement: number helper record bounds

The frozen parse_number call surface contains none of these fourteen binary64 externals. Packaging their signatures therefore adds no record-field premise and no restriction on byte-slice inputs.

Requirement: number helper accumulated value

The frozen parse_number call surface contains none of these fourteen binary64 externals. Packaging their signatures therefore adds no numeric-value premise and no restriction on byte-slice inputs.

Requirement: special helper infinity

The parse_inf_nan source route requests INFINITY and then invokes neg exactly when its separate sign argument is true; it does not request NEG_INFINITY. This package retains the two executed signatures without asserting their results or restricting slice or sign inputs; their behavior belongs to ModelF64Infinity and ModelF64Neg.

Requirement: special helper nan

The parse_inf_nan source route requests NAN and invokes neg when its separate sign argument is true; classification supports the required NaN observation. This package retains those three signatures without asserting their results or restricting slice or sign inputs; their behavior belongs to ModelF64Nan, ModelF64Neg, and ModelF64Classify.

Requirement: special helper rejection

The rejecting parse_inf_nan branches invoke none of the fourteen binary64 externals. Packaging their signatures therefore adds no keyword-recognition premise and no restriction on slice or sign inputs.

Requirement: native correct or defer

The frozen from_u64, from_bits, mul, div, and neg signatures used by the native shortcut are retained. This interface adds no correctness, deferral, or range premise; behavior belongs to ModelF64FromU64, ModelF64FromBits, ModelF64Mul, ModelF64Div, and ModelF64Neg.

Requirement: integer correct or defer

The frozen precision, mask, and bit-conversion signatures available to the integer tier and its eventual assembly are retained. This interface adds no rounding, deferral, or range premise; behavior belongs to ModelF64MantissaDigits, ModelF64ExponentMask, ModelF64MantissaMask, ModelF64ToBits, and ModelF64FromBits.

Requirement: slow accumulated rounding

The frozen precision, mask, and from_bits signatures available to the slow conversion and eventual assembly are retained. This interface adds no rounding premise or domain restriction; behavior belongs to ModelF64MantissaDigits, ModelF64ExponentMask, ModelF64MantissaMask, and ModelF64FromBits.

Requirement: assembly correspondence

The frozen from_bits signature used by final assembly is retained. This interface asserts no assembly equation and restricts no raw word; construction behavior belongs to ModelF64FromBits.

Requirement: classification totality

The mathematical literal-classification call surface contains none of these fourteen program externals. Packaging their signatures adds no classification premise and no restriction on finite byte strings.

Requirement: classification determinism

The mathematical literal-classification call surface contains none of these fourteen program externals. Packaging their signatures adds no uniqueness premise and no restriction on finite byte strings.

Requirement: classification significand digit

The mathematical grammar call surface contains none of these fourteen program externals. Packaging their signatures adds no grammar premise and no restriction on finite byte strings.

Requirement: rounding totality

The mathematical rounding relation's call surface contains none of these fourteen program externals. Packaging their signatures adds no existence premise and no restriction on nonnegative reals.

Requirement: rounding determinism

The mathematical rounding relation's call surface contains none of these fourteen program externals. Packaging their signatures adds no uniqueness premise and no restriction on nonnegative reals.

Requirement: exponent value agreement

The mathematical exact-value and accumulated-exponent-value definitions use none of these fourteen program externals. Packaging their signatures adds no agreement premise and no restriction on numeric literals.

Recorded review

CorrespondencePass
PreservationVerifierPass

Binary64Model · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/native-boundary.txt

Open file

Native boundary inventory for Binary64Model

Reproduction command (repository root):
  python3 .trellis/scripts/pv_modeling.py inspect-native .

Tool identity for this reproduction:
  Python 3.14.4
  .trellis/scripts/pv_modeling.py
  sha256 915b29822cb4c47b70dabb1dc011514641deb2e428b62347fc31aa898de5e0d4

Top-level result:
  declaration_count: 24

The complete raw inspect-native records for the fourteen F64 externals follow.
They are copied from the command's complete index; no scratch artifact is needed
to review them.

[
  {
    "name": "F64.Insts.CoreCloneClone.clone",
    "extracted_signature": ": F64 → Result F64",
    "rust_symbol": "core::clone::impls::{impl core::clone::Clone for f64}::clone",
    "raw_declaration_sha256": "5eaad5fb9af034045cf0dafed5af85445fe4af9a78958259a15a1faddd1e8f05",
    "source_utf8": "/-- [core::clone::impls::{impl core::clone::Clone for f64}::clone]:\n    Source: '/rustc/library/core/src/clone.rs', lines 698:20-698:43\n    Name pattern: [core::clone::impls::{core::clone::Clone<f64>}::clone]\n    Visibility: public -/\n@[rust_fun \"core::clone::impls::{core::clone::Clone<f64>}::clone\"]\naxiom F64.Insts.CoreCloneClone.clone : F64 → Result F64\n"
  },
  {
    "name": "core.f64.F64.MANTISSA_DIGITS",
    "extracted_signature": ": Result Std.U32",
    "rust_symbol": "core::f64::{f64}::MANTISSA_DIGITS",
    "raw_declaration_sha256": "42b1b0c4d2c2bbc7271748fc78c518391f55bf6517c643667a6561a0ac6e771c",
    "source_utf8": "/-- [core::f64::{f64}::MANTISSA_DIGITS]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 412:4-412:34\n    Name pattern: [core::f64::{f64}::MANTISSA_DIGITS]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::MANTISSA_DIGITS\"]\naxiom core.f64.F64.MANTISSA_DIGITS : Result Std.U32\n"
  },
  {
    "name": "core.f64.F64.NAN",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::NAN",
    "raw_declaration_sha256": "a18685a80db5dbebe39151c7375a0470bb3905fe1228e5598a995a1cf017a768",
    "source_utf8": "/-- [core::f64::{f64}::NAN]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 509:4-509:22\n    Name pattern: [core::f64::{f64}::NAN]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::NAN\"] axiom core.f64.F64.NAN : Result F64\n"
  },
  {
    "name": "core.f64.F64.INFINITY",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::INFINITY",
    "raw_declaration_sha256": "f905901e67400987f49cddd13a8768644bed9e7e3f79c3a81b34879f494a2816",
    "source_utf8": "/-- [core::f64::{f64}::INFINITY]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 512:4-512:27\n    Name pattern: [core::f64::{f64}::INFINITY]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::INFINITY\"]\naxiom core.f64.F64.INFINITY : Result F64\n"
  },
  {
    "name": "core.f64.F64.NEG_INFINITY",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::NEG_INFINITY",
    "raw_declaration_sha256": "85f6e517e439c2f2d5c59aa29884ff38b2381c2f5dd7cb14e7947b232efe7f0e",
    "source_utf8": "/-- [core::f64::{f64}::NEG_INFINITY]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 515:4-515:31\n    Name pattern: [core::f64::{f64}::NEG_INFINITY]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::NEG_INFINITY\"]\naxiom core.f64.F64.NEG_INFINITY : Result F64\n"
  },
  {
    "name": "core.f64.F64.EXPONENT_MASK",
    "extracted_signature": ": Result Std.U64",
    "rust_symbol": "core::f64::{f64}::EXPONENT_MASK",
    "raw_declaration_sha256": "f1054e64392d8f9306e8c69015f0b521d9f387edda8458a3bae4773606f46a71",
    "source_utf8": "/-- [core::f64::{f64}::EXPONENT_MASK]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 615:4-615:32\n    Name pattern: [core::f64::{f64}::EXPONENT_MASK]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::EXPONENT_MASK\"]\naxiom core.f64.F64.EXPONENT_MASK : Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.MANTISSA_MASK",
    "extracted_signature": ": Result Std.U64",
    "rust_symbol": "core::f64::{f64}::MANTISSA_MASK",
    "raw_declaration_sha256": "dc3517faa141b7a7a016e9f73930af3c9af23d3e6d06874440d99eabbc846538",
    "source_utf8": "/-- [core::f64::{f64}::MANTISSA_MASK]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 637:4-637:32\n    Name pattern: [core::f64::{f64}::MANTISSA_MASK]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::MANTISSA_MASK\"]\naxiom core.f64.F64.MANTISSA_MASK : Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.classify",
    "extracted_signature": ": F64 → Result core.num.FpCategory",
    "rust_symbol": "core::f64::{f64}::classify",
    "raw_declaration_sha256": "9fedd442d1d0403c4a7323d8f4e95c51b8bd39bf82d2d0ba357eaaf243e69b78",
    "source_utf8": "/-- [core::f64::{f64}::classify]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 782:4-782:45\n    Name pattern: [core::f64::{f64}::classify]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::classify\"]\naxiom core.f64.F64.classify : F64 → Result core.num.FpCategory\n"
  },
  {
    "name": "core.f64.F64.to_bits",
    "extracted_signature": ": F64 → Result Std.U64",
    "rust_symbol": "core::f64::{f64}::to_bits",
    "raw_declaration_sha256": "ddaec6bb7c36ba6445a5b0b8e52f841240ca2563004e8ce1255caf0e36ec22ae",
    "source_utf8": "/-- [core::f64::{f64}::to_bits]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 1223:4-1223:37\n    Name pattern: [core::f64::{f64}::to_bits]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::to_bits\"]\naxiom core.f64.F64.to_bits : F64 → Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.from_bits",
    "extracted_signature": ": Std.U64 → Result F64",
    "rust_symbol": "core::f64::{f64}::from_bits",
    "raw_declaration_sha256": "af8ee4387cea97d0a353a83d6280c03f3c9f739bf733af5bd39c29909f1b2b19",
    "source_utf8": "/-- [core::f64::{f64}::from_bits]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 1269:4-1269:42\n    Name pattern: [core::f64::{f64}::from_bits]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::from_bits\"]\naxiom core.f64.F64.from_bits : Std.U64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithMulF64F64.mul",
    "extracted_signature": ": F64 → F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Mul<f64, f64> for f64}::mul",
    "raw_declaration_sha256": "20d985819a981e9e80485ce169c1d045ea13fa8796e9314d5b621141aae6deec",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Mul<f64, f64> for f64}::mul]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 350:12-350:41\n    Name pattern: [core::ops::arith::{core::ops::arith::Mul<f64, f64, f64>}::mul]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Mul<f64, f64, f64>}::mul\"]\naxiom F64.Insts.CoreOpsArithMulF64F64.mul : F64 → F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithDivF64F64.div",
    "extracted_signature": ": F64 → F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Div<f64, f64> for f64}::div",
    "raw_declaration_sha256": "1ebb67b412d89328acb4c5dd53168e84fdf26be6cbe1ef49f5a27edbd84ada36",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Div<f64, f64> for f64}::div]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 515:12-515:41\n    Name pattern: [core::ops::arith::{core::ops::arith::Div<f64, f64, f64>}::div]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Div<f64, f64, f64>}::div\"]\naxiom F64.Insts.CoreOpsArithDivF64F64.div : F64 → F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithNegF64.neg",
    "extracted_signature": ": F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Neg<f64> for f64}::neg",
    "raw_declaration_sha256": "bbf93f24bd7cfbc72e47e8bb3a9acc6641df939ad6afafd9ba02c81fe27f7ed0",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Neg<f64> for f64}::neg]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 719:12-719:30\n    Name pattern: [core::ops::arith::{core::ops::arith::Neg<f64, f64>}::neg]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Neg<f64, f64>}::neg\"]\naxiom F64.Insts.CoreOpsArithNegF64.neg : F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64",
    "extracted_signature": ": Std.U64 → Result F64",
    "rust_symbol": "dec2flt_model::num::imp::dec2flt::{impl dec2flt_model::num::imp::dec2flt::Lemire<u64> for f64}::from_u64",
    "raw_declaration_sha256": "ad172bce0522e7e41bceb8c66a5adff962822ee8a9454dfd59b7019086797ba8",
    "source_utf8": "/-- [dec2flt_model::num::imp::dec2flt::{impl dec2flt_model::num::imp::dec2flt::Lemire<u64> for f64}::from_u64]:\n    Source: 'num/imp/../../dec2flt/mod.rs', lines 263:4-266:5\n    Visibility: public -/\naxiom F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64\n  : Std.U64 → Result F64\n"
  }
]
Assumptions / kernel axioms
  • Classical.choice
  • Quot.sound
  • propext

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (32)
All 32 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourcecommitted_node_kinds / pv_tablet.json
Kindauthored definition
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:2e2a04f82b57707ff12593e1a9115ba7edc9e652945e60ae7dc3b42e4cbe61d2
Preservation current fingerprintpreservation-v1:2e2a04f82b57707ff12593e1a9115ba7edc9e652945e60ae7dc3b42e4cbe61d2
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","lean_semantic_closure":"152e7ea8c8bb655433fccf89dbab1745cb5f3c97fe281f41f1bd44819985f50c","lean_relevant_definition_descendants":{"F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence current fingerprint{"own_tex":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","lean_semantic_closure":"152e7ea8c8bb655433fccf89dbab1745cb5f3c97fe281f41f1bd44819985f50c","lean_relevant_definition_descendants":{"F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "7c01141254c20d7c5201a4e3212e617ac2befbdc10cf8a0308ab5af320ac1d74",
    "dep_statement_hashes": {},
    "combined_sound_fp": "preservation-v1:2e2a04f82b57707ff12593e1a9115ba7edc9e652945e60ae7dc3b42e4cbe61d2"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/native-boundary.txt",
    "sha256": "fa0d69e4a434007e6ee675380fc13f98e22655b7faa77cdc5216d4af4356438f",
    "cited_by": [
      "Tablet/Binary64Model.tex",
      "committed_node_kinds / pv_tablet.json"
    ]
  }
]

Binary64ModelDefault

Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Tablet.Binary64Model
import Mathlib.Data.Rat.Defs

open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
set_option maxRecDepth 4096

namespace dec2flt_model

-- [TABLET NODE: Binary64ModelDefault]
def Binary64ModelDefault : Binary64Model :=
-- BODY
  let signBit : Nat := 2 ^ 63
  let fractionUnit : Nat := 2 ^ 52
  let infinityBits : Nat := 2047 * fractionUnit
  let quietNanBits : Nat := infinityBits + 2 ^ 51
  let word := fun n : Nat => (⟨BitVec.ofNat 64 n⟩ : Std.U64)
  let sign := fun w : F64 => w.val / signBit
  let magnitude := fun w : F64 => w.val % signBit
  let exponent := fun w : F64 => magnitude w / fractionUnit
  let fraction := fun w : F64 => magnitude w % fractionUnit
  let categoryCode := fun w : F64 =>
    if exponent w = 2047 then
      if fraction w = 0 then 1 else 0
    else if exponent w = 0 then
      if fraction w = 0 then 2 else 3
    else 4
  let category := fun w : F64 =>
    match categoryCode w with
    | 0 => core.num.FpCategory.Nan
    | 1 => core.num.FpCategory.Infinite
    | 2 => core.num.FpCategory.Zero
    | 3 => core.num.FpCategory.Subnormal
    | _ => core.num.FpCategory.Normal
  let finiteMagnitudeValue := fun bits : Nat =>
    let e := bits / fractionUnit
    let m := bits % fractionUnit
    if e = 0 then
      (m : Rat) / ((2 : Rat) ^ (1074 : Nat))
    else if 1075 <= e then
      ((fractionUnit + m : Nat) : Rat) * ((2 : Rat) ^ (e - 1075))
    else
      ((fractionUnit + m : Nat) : Rat) / ((2 : Rat) ^ (1075 - e))
  let roundEvenNat := fun x : Rat =>
    let q := x.num.natAbs / x.den
    let r := x.num.natAbs % x.den
    if x.den < 2 * r ∨ (x.den = 2 * r ∧ q % 2 = 1) then q + 1 else q
  let normalExponent := fun x : Rat =>
    (List.range 2046).foldl (fun (old : Nat) (i : Nat) =>
      let e : Nat := i + 1
      if ((2 : Rat) ^ ((e : Int) - 1023)) ≤ x then e else old) 1
  let overflowThreshold : Rat :=
    ((2 : Rat) ^ (1024 : Nat)) - ((2 : Rat) ^ (970 : Nat))
  let roundMagnitude := fun x : Rat =>
    if overflowThreshold <= x then infinityBits
    else if x < ((2 : Rat) ^ (-1022 : Int)) then
      roundEvenNat (x * ((2 : Rat) ^ (1074 : Nat)))
    else
      let e := normalExponent x
      let significand := roundEvenNat (x * ((2 : Rat) ^ ((1075 : Int) - (e : Int))))
      if significand = 2 ^ 53 then (e + 1) * fractionUnit
      else e * fractionUnit + (significand - fractionUnit)
  let signedWord := fun negative : Bool => fun mag : Nat =>
    word (mag + if negative then signBit else 0)
  let negativeResult := fun a b : F64 => decide (sign a != sign b)
  let mulImpl := fun a b : F64 =>
    let ca := categoryCode a
    let cb := categoryCode b
    let negResult := negativeResult a b
    if ca = 0 ∨ cb = 0 then ok (word quietNanBits)
    else if (ca = 1 ∧ cb = 2) ∨ (ca = 2 ∧ cb = 1) then
      ok (word quietNanBits)
    else if ca = 1 ∨ cb = 1 then
      ok (signedWord negResult infinityBits)
    else
      let x := finiteMagnitudeValue (magnitude a)
      let y := finiteMagnitudeValue (magnitude b)
      ok (signedWord negResult (roundMagnitude (x * y)))
  let divImpl := fun a b : F64 =>
    let ca := categoryCode a
    let cb := categoryCode b
    let negResult := negativeResult a b
    if ca = 0 ∨ cb = 0 then ok (word quietNanBits)
    else if (ca = 1 ∧ cb = 1) ∨ (ca = 2 ∧ cb = 2) then
      ok (word quietNanBits)
    else if ca = 1 ∨ cb = 2 then
      ok (signedWord negResult infinityBits)
    else if cb = 1 ∨ ca = 2 then
      ok (signedWord negResult 0)
    else
      let x := finiteMagnitudeValue (magnitude a)
      let y := finiteMagnitudeValue (magnitude b)
      ok (signedWord negResult (roundMagnitude (x / y)))
  {
    clone := fun x => ok x
    mantissaDigits := ok 53#u32
    nan := ok (word quietNanBits)
    infinity := ok (word infinityBits)
    negInfinity := ok (word (signBit + infinityBits))
    exponentMask := ok (word infinityBits)
    mantissaMask := ok (word (fractionUnit - 1))
    classify := fun x => ok (category x)
    toBits := fun x => ok x
    fromBits := fun x => ok x
    mul := mulImpl
    div := divImpl
    neg := fun x => ok ⟨x.bv ^^^ BitVec.ofNat 64 signBit⟩
    fromU64 := fun x =>
      if x.val <= 2 ^ 53 then
        ok (word (roundMagnitude (x.val : Rat)))
      else fail .assertionFailure
  }

end dec2flt_model

Why this model is faithful

Definition

The default binary64 package represents values by their raw words. It uses the standard 52-bit fraction and 11-bit exponent fields, the canonical quiet NaN word \mathtt{0x7ff8000000000000}, exact infinity and mask words, and field-based IEEE categories. Bit conversion and cloning are identities and negation toggles bit 63. Finite words are decoded to exact dyadic rationals. Finite arithmetic is rounded by an exact quotient-and-remainder round-to-nearest rule, choosing an even low significand bit on a tie. A bounded scan of the 2046 finite normal exponents selects the scale; subnormals use scale 2^{1074}, and the overflow boundary is the midpoint 2^{1024}-2^{970}. Multiplication and division use the exact rational operation on finite operands, preserve the xor of operand signs including zero, implement the IEEE infinity/zero cases, and choose the canonical quiet NaN only when Rust permits a NaN result. Conversion from u64 succeeds with this exact rounding when the input is at most 2^{53} and reports assertion failure otherwise.

Preservation argument

Claim

The package gives field-exact binary64 constants, classification, bit conversion, cloning, and negation for every word. Multiplication and division give the exact IEEE binary64 round-to-nearest, ties-to-even result in every non-NaN-result case, including signed zeros and infinities; whenever Rust permits an arithmetic NaN result, the package chooses the permitted preferred quiet NaN without claiming that arbitrary source arithmetic NaNs have fixed bits. The package also reproduces the frozen from_u64 debug assertion and its exact cast result on the asserted domain.

Proof

All source declarations, exact excerpts, file and tool hashes, the retained probe, its commands, and raw target output used below are in reference/model-evidence/binary64-boundary.txt.
First fix the common word interpretation. word uses BitVec.ofNat 64, so it takes the low 64 bits exactly. Division and remainder by 2^{63} split bit 63 from the lower 63 bits. Division and remainder of that magnitude by 2^{52} then split the eleven exponent bits from the 52 fraction bits. Consequently exponent field 2047 with zero fraction is infinity and with nonzero fraction is NaN; exponent zero with zero fraction is zero and with nonzero fraction is subnormal; every other exponent is normal. These are exactly the five arms of the pinned source classify body.
We now check the fourteen fields in order.
1. clone returns its input word. This is the exact frozen scalar Clone::clone body, *self. 2. mantissaDigits returns 53, the pinned f64::MANTISSA_DIGITS declaration. 3. nan returns \mathtt{0x7ff8000000000000}. The retained probe on the pinned toolchain and target gives exactly that word for f64::NAN. This is an exact claim about that constant, not about NaNs produced by arbitrary arithmetic. 4. infinity returns \mathtt{0x7ff0000000000000}, exactly the probed source constant. 5. negInfinity adds bit 63 to that word and therefore returns \mathtt{0xfff0000000000000}, exactly the probed negative-infinity constant. 6. exponentMask is the pinned eleven-bit mask \mathtt{0x7ff0000000000000}. 7. mantissaMask is 2^{52}-1, namely the pinned mask \mathtt{0x000fffffffffffff}. 8. By the initial field split, classify's nested tests are exactly the five source match arms, for every one of the 2^{64} words. 9. toBits is the identity on the raw-word carrier, matching the source transmutation for every word, including every NaN payload. 10. fromBits is the same identity in the other direction, matching the inverse source transmutation and preserving every input bit.
Field 2 also supplies the generic parser constants rather than merely an external observation. The exact trait defaults in reference/model-evidence/binary64-boundary.txt set SIG_TOTAL_BITS to f64::MANTISSA_DIGITS, then derive SIG_BITS as 53-1=52, EXP_BITS as 64-52-1=11, EXP_SAT and INFINITE_POWER as 2047, EXP_BIAS as 1023, and EXP_MIN as -1022. The Lemire default similarly derives MAX_MANTISSA_FAST_PATH as 1\ll53=2^{53}. Thus the same preserved field fixes the precision, exponent, overflow, native-cast guard, and final-assembly shift used by the frozen generic bodies.
For the arithmetic fields, first prove the shared encoder. If a finite magnitude has exponent field 0 and fraction m, its exact value is m2^{-1074}. If its exponent field is e\in\{1,\ldots,2046\} and its fraction is m, its exact value is (2^{52}+m)2^{e-1075}. These are precisely finiteMagnitudeValue's three exponent-sign cases.
For a nonnegative rational x=n/d, with the positive reduced denominator d, write n=qd+r with 0\leq r<d. Its distance to q is r/d, and its distance to q+1 is (d-r)/d. Thus q+1 is nearer exactly when d<2r. When d=2r, the candidates are equidistant; q+1 has even low bit exactly when q is odd. Hence roundEvenNat's disjunction selects the nearest integer, choosing the even integer on every tie. The r=0 case returns q unchanged.
For 0\leq x<2^{-1022}, scaling by 2^{1074} makes adjacent subnormal values adjacent integers. The preceding quotient/remainder rule therefore rounds exactly. A result below 2^{52} is the corresponding subnormal word; a result 2^{52} is carried, by the same numeric word, to the minimum normal. This includes ties to positive zero and the carry at the normal boundary.
For 2^{-1022}\leq x<2^{1024}-2^{970}, consider the scan. Its list is 0,\ldots,2045, hence the tested exponent fields are exactly 1,\ldots,2046. The first test succeeds because x\geq2^{-1022}. Strict monotonicity of powers of two means the successful indices form an initial segment; the fold retains its greatest element. Therefore it chooses the unique e satisfying 2^{e-1023}\leq x<2^{e-1022}, using x<2^{1024} for the upper bound when e=2046. Scaling by 2^{1075-e} puts the exact significand in [2^{52},2^{53}). The integer rule rounds it to s\in[2^{52},2^{53}]. If s<2^{53}, the word e2^{52}+(s-2^{52}) decodes back to s2^{e-1075}. If s=2^{53}, the explicit carry word (e+1)2^{52} has that same value and is the next normal; below the overflow threshold the e=2046 case cannot take this carry.
The maximum finite magnitude is (2^{53}-1)2^{971}=2^{1024}-2^{971}. Its next rounding boundary is 2^{1024}-2^{970}, exactly the package's overflowThreshold. Below it, exponent 2046 rounds at most to the maximum finite significand. At the boundary and above it, the pinned Rust round-to-even overflow rule specifies infinity. Thus the explicit comparison implements the source rule on both sides and at the midpoint.
11. For mul, let N, I, Z, and F denote NaN, infinity, zero, and finite nonzero. If either operand is N, the exact result class is NaN. I times Z (in either order) is also NaN. I times I or F is infinity. Otherwise both operands are finite; the package multiplies their exact nonnegative rational magnitudes and applies the proved encoder. This last row includes Z times Z or F and hence returns zero. Every non-NaN row applies the xor of operand sign bits, so infinity, ordinary results, underflowed results, and zero all have the Rust-prescribed sign. 12. For div, either NaN operand gives NaN; I divided by I and Z divided by Z give NaN. I divided by Z or F, and F divided by Z, give signed infinity. F divided by F uses the exact rational quotient and the proved encoder. F or Z divided by I, and Z divided by F, give signed zero. These cases are exhaustive and occur in exactly the order of the definition, so the denominator reaches rational division only in the finite-nonzero row. Again every non-NaN row uses the xor sign.
In each NaN row of fields 11 and 12 the returned word is the preferred quiet NaN. The pinned Rust rules explicitly list that as a permitted arithmetic NaN choice and allow nondeterministic sign; the package therefore chooses one allowed result but makes no false exact-bit assertion about arbitrary source arithmetic NaNs.
For later applications, establish the actual native-call facts in two stages. The exact frozen can_use_fast_path guard and call body in reference/model-evidence/binary64-boundary.txt, with the field-2 derivation above, give the ordinary path a from_u64 argument at most 2^{53} and a table index in 0\ldots22: a negative exponent lies in -22\ldots-1 and is negated for the index, while a nonnegative exponent is at most 22. On the disguised path the checked integer product must pass the explicit \leq2^{53} test before from_u64, and the table index is exactly 22. Only after deriving those hypotheses from the source guards do we apply Binary64NativeCallDomain: each cast operand and table word is finite and non-NaN, every table word is positive and nonzero, and hence an executed division has a nonzero divisor. Therefore the actual native calls use only fields 11 and 12's exact rational, signed-zero, or infinity rows. The support theorem is conditional and is not itself cited as a source reachability assertion.
13. neg xors bit 63 and leaves all other 63 bits fixed. Rust lists unary negation as a non-arithmetic bitwise operation that preserves a NaN payload exactly except for sign, so this agrees on all words, not merely non-NaNs. 14. Finally, fromU64 tests the exact source debug assertion v\leq2^{53}. In that branch every integer is exactly representable, and the proved encoder returns its exact cast word. Above the bound, both the frozen debug build and the model report assertion failure before a cast.
This proves every field of the package and the stated distinction between exact bit-preserving operations and permitted arithmetic-NaN choice.
Authored arguments for individual requirements

Requirement: parser totality

The package operations are total except for the preserved from_u64 debug assertion. For an ordinary native call, the frozen guard gives the original mantissa \leq2^{53}; for a disguised call, the checked product must pass the same bound before the cast. Applying the conditional first clause of Binary64NativeCallDomain then makes each actual cast succeed. Field 2 fixes both this bound and all precision constants used by the integer, slow, and assembly routes, whose relevant operations are total at this boundary. Thus this model introduces no additional panic or divergence into the source executions quantified by the goal. This application concerns preservation, not whether other source checked arithmetic makes the positive GOAL true.

Requirement: parser numeric acceptance

On each native route the exact source guards in reference/model-evidence/binary64-boundary.txt establish the 2^{53} cast bound and the 0\ldots22 table-index bound described in the shared derivation. The two conditional clauses of Binary64NativeCallDomain then establish successful casts and table lookups; fields 14 and 10 reproduce those conversions, and fields 11--13 make arithmetic and possible negation total. On the non-native route, field 2 supplies the constants executed while producing a pair and field 10 makes final assembly total. Thus this boundary neither accepts a new input nor rejects a source-accepted one; other parser failures remain available for later GOAL classification.

Requirement: parser invalid rejection

The complete frozen route in reference/model-evidence/binary64-boundary.txt first removes at most one leading sign, rejects an empty or sign-only body, calls parse_number on the unsigned body, and calls parse_inf_nan only when parse_number returns None. If the special helper also returns None, the dispatcher returns Err before any native call, raw-pair production, from_bits, arithmetic, or negation. On the two successful branches, fields 3--4 and 13 reproduce the special constant and conditional negation, while fields 2 and 10--14 reproduce the numeric boundary operations after dispatch. This establishes only operation-level preservation along every dispatcher branch; it does not infer the positive invalid-rejection conclusion from this package model.

Requirement: parser nan acceptance

The executed special route selects NAN and then conditionally applies unary negation, as recorded in reference/model-evidence/binary64-boundary.txt. Field 3 supplies the pinned NaN word, field 13 changes only its sign bit, and field 8 recognizes either word as NaN. No arithmetic-NaN bit claim is used.

Requirement: parser infinity

The executed route selects positive INFINITY and conditionally negates it; it does not select NEG_INFINITY directly. Fields 4 and 13 therefore give exactly the infinity with the lexical sign. The source route is copied in reference/model-evidence/binary64-boundary.txt.

Requirement: parser non nan results

Field 8 recognizes exactly the all-ones-exponent, nonzero-fraction words. For the ordinary native path the frozen guard bounds the original mantissa by 2^{53} and the exponent-derived index by 22; for the disguised path the post-multiplication guard bounds the cast argument by 2^{53} and fixes index 22. Applying Binary64NativeCallDomain only after those guard facts gives finite, non-NaN operands and a nonzero divisor, so fields 11 and 12 cannot enter an arithmetic-NaN row; fields 14 and 10 reproduce the preceding cast and table conversion. Integer and slow paths first execute the field-2-derived precision constants and then pass their selected raw pair through exact field 10. The non-NaN special route uses fields 4, 13, and 8 for optionally signed infinity. The package therefore preserves the precise NaN observation without assuming the positive GOAL's conclusion about which pairs the source selects.

Requirement: parser numeric sign

On both native variants, the source guards first establish the cast and table bounds, and Binary64NativeCallDomain then gives positive-sign, finite operands and a nonzero table word. Fields 11 and 12 preserve their xor sign, fields 14 and 10 reproduce the cast and table conversion, and the source conditionally invokes field 13 afterward. Thus the model reproduces the native constants, from_u64, table from_bits, arithmetic, and conditional negation in their source order. On the integer and slow paths, field 2 fixes SIG_BITS, EXP_MIN, and INFINITE_POWER while producing the raw pair; field 10 reproduces from_bits on its unrestricted assembled word, and field 13 reproduces the subsequent conditional sign-bit toggle. Those exact routes are recorded in reference/model-evidence/binary64-boundary.txt. No field fact shows that an integer- or slow-selected word already has a clear sign bit; that is precisely the still-unresolved parser_selected_magnitude_sign obligation, so it is not used here to conclude the positive numeric-sign GOAL.

Requirement: parser signed zero

There are two distinct executed routes. A successful native call returns directly: the ordinary or disguised guard gives a cast argument at most 2^{53} and an index at most 22, the conditional conclusions of Binary64NativeCallDomain supply the cast and nonzero finite table word, fields 14 and 10--12 preserve the cast, table conversion, and multiplication or division result, and field 13 optionally toggles the final sign bit. Positive-sign native operands also make fields 11--12 reproduce the source choice of positive zero before that toggle. A call that reaches integer or slow selection instead executes the field-2-derived precision constants, produces a raw pair, assembles its unrestricted word through field 10, and only then conditionally invokes field 13. The separate return orders are copied in reference/model-evidence/binary64-boundary.txt. This proves equivalence of every binary64 operation on both routes, but it does not assert that a zero-valued integer/slow assembled word is initially positive zero; that would require the unresolved clear-sign fact in parser_selected_magnitude_sign. Accordingly this application does not derive the positive signed-zero GOAL from boundary preservation alone.

Requirement: parser exact rounding

The paired vocabulary DecimalGoalVocabularyDefault defines the goal's binary64 target by real-valued distance and even ties. On either native variant, the exact guards first bound the cast by 2^{53} and the table index by 22; Binary64NativeCallDomain then supplies the successful finite cast and positive nonzero table word. Field 14 preserves the bounded cast, field 10 preserves that table word, fields 11 and 12 implement the proved nearest-even rule, and field 13 applies the optional lexical negation. On the non-native route, field 2 fixes the precision, exponent, and infinity constants used by compute_float and parse_long_mantissa; their selected raw pair is assembled by field 10 and optionally negated by field 13. This covers the boundary operations on every route while leaving the source parser's positive exactness claim, including its known counterexamples, unchanged.

Requirement: parser selected exponent

Only the non-native dispatcher route selects a raw BiasedFp. Before that selection, compute_float and any invoked parse_long_mantissa execute SIG_BITS, EXP_MIN, and INFINITE_POWER; field 2 and the exact trait defaults derive their values 52, -1022, and 2047. Field 10 then interprets the selected pair's assembled word and field 13 may negate it. These source bodies are copied in reference/model-evidence/binary64-boundary.txt, so the model preserves the constants that can affect the selected exponent without assuming that the positive range claim holds.

Requirement: parser selected magnitude sign

The selected raw pair is produced using field 2's derived precision and exponent constants. Assembly then shifts by the likewise derived SIG_BITS value 52 before field 10 interprets the OR/shift word; identity from_bits preserves its sign bit, and later lexical negation is a separate field-13 operation. This ordering and the executed constant uses are recorded in reference/model-evidence/binary64-boundary.txt, so the model does not assume that the selected magnitude is well formed. In particular, none of these operation-equivalence facts proves that the selected pre-negation word's sign bit is clear; that remains exactly the positive GOAL obligation.

Requirement: dispatch abstract composition

The abstract-composition statement quantifies over arbitrary components in DispatchContracts; this concrete package neither restricts that quantifier nor supplies the lexical completeness those contracts must state. It only gives source-faithful meanings to the actual float boundary used when the extracted dispatcher is instantiated, so the original positive GOAL is unchanged.

Requirement: dispatch component compliance

Every source component route is covered. For the ordinary native call, the fast-path guards establish a cast argument at most 2^{53} and an index in 0\ldots22; for the disguised call, the checked product and comparison establish the same cast bound and index 22. The conditional conclusions of Binary64NativeCallDomain then supply finite, non-NaN cast/table words and a nonzero divisor, after which field 14 covers the cast and fields 10--13 cover table conversion, arithmetic, and optional negation. Field 2 supplies MAX_MANTISSA_FAST_PATH for those guards and supplies SIG_BITS, EXP_MIN, and INFINITE_POWER to both the integer and slow pair producers. Field 2's shift value and field 10 cover final assembly, followed by conditional field 13. Finally, the special component selects field 3 or 4 for NAN or INFINITY and may apply field 13, with field 8 preserving the resulting category observation. Thus the package supplies the operation meanings for native, integer, slow, assembly, and special components without assuming that the broader positive compliance theorem is true.

Requirement: parser accumulated rounding

The goal's accumulated real value and target relation are fixed by DecimalGoalVocabularyDefault. On the native route, the exact guards establish the 2^{53} cast and 0\ldots22 index bounds; applying Binary64NativeCallDomain supplies the finite cast and nonzero table word, field 14 preserves the bounded cast, field 10 preserves the table bits, fields 11 and 12 realize the proved nearest-even boundary, and field 13 applies optional negation. Otherwise field 2 fixes the constants used by both raw-pair producers and the assembly shift; field 10 preserves the unrestricted selected word and field 13 reproduces the subsequent conditional sign-bit toggle. No clear-sign fact or accumulated-value equality is assumed here.

Requirement: parser equal target rounding

Target equality in DecimalGoalVocabularyDefault is equality of the unique raw magnitude word under its real-valued relation. On both native variants, source guards establish the cast and table bounds before Binary64NativeCallDomain supplies their finite, non-NaN, nonzero consequences; field 14 preserves the bounded cast, fields 10--12 preserve the table word and nearest-even arithmetic, and field 13 the conditional negation. On the non-native route, field 2 supplies the precision constants to the integer/slow producer and the shift to assembly, field 10 preserves the unrestricted assembled word, and field 13 reproduces the subsequent conditional sign-bit toggle. This operation correspondence neither assumes a clear pre-negation sign bit nor identifies distinct words, and it does not change the goal's hypothesis.

Requirement: number helper acceptance

The frozen parse_number helper returns an optional Decimal; it has no type parameter or float operation, as recorded in reference/model-evidence/binary64-boundary.txt. This entire binary64 package is therefore noninterfering with helper acceptance.

Requirement: number helper rejection

For the same source signature and body evidence, parse_number performs no binary64 constant, conversion, classification, or arithmetic call. The package cannot affect its None results, without implying that all source-invalid slices return normally.

Requirement: number helper record bounds

The helper constructs only a Decimal record before any dispatcher float conversion. Its exact source boundary is recorded in reference/model-evidence/binary64-boundary.txt; consequently no field of this package can alter its Boolean, mantissa, or exponent fields.

Requirement: number helper accumulated value

The record and its interval are formed wholly inside parse_number, whose source boundary uses no float operation; see reference/model-evidence/binary64-boundary.txt. Binary64 rounding occurs only after the helper returns, so this package is genuinely noninterfering with the stated helper value relation.

Requirement: special helper infinity

The helper selects positive INFINITY and conditionally negates it. Fields 4 and 13 reproduce those exact calls and bits for either sign argument; the source excerpt is in reference/model-evidence/binary64-boundary.txt.

Requirement: special helper nan

The helper selects the pinned NAN constant and conditionally negates it. Fields 3, 13, and 8 ensure either returned word is classified NaN. This uses the exact bitwise NaN rules, not an assertion about arithmetic NaN bits; see reference/model-evidence/binary64-boundary.txt.

Requirement: special helper rejection

The helper returns None from its unmatched branch before selecting a float constant or invoking negation. The exact match and return structure is in reference/model-evidence/binary64-boundary.txt. Thus no field of this package is invoked on that branch; this operation-level fact does not itself characterize which byte slices reach the unmatched branch.

Requirement: native correct or defer

Both native paths are covered, not just their arithmetic calls. Field 2 and the trait defaults derive the guard constant MAX_MANTISSA_FAST_PATH as 2^{53}. On the ordinary path, the guard bounds the original mantissa by that value and bounds the negated or nonnegative exponent table index by 22. On the disguised path, checked integer multiplication occurs first, the resulting mantissa must pass the 2^{53} comparison, and the table index is exactly 22. Applying the two conditional clauses of Binary64NativeCallDomain after these source derivations gives a successful finite cast, a finite nonzero table word, and hence a nonzero divisor. Fields 14 and 10 then reproduce the cast and table from_bits; fields 11 or 12 reproduce multiplication or division; and field 13 reproduces the final optional negation. The exact guards and calls are in reference/model-evidence/binary64-boundary.txt.

Requirement: integer correct or defer

The source compute_float operation produces a raw BiasedFp; it does not call from_u64, multiplication, division, or negation, but it does execute SIG_BITS, EXP_MIN, and INFINITE_POWER while computing that pair. Field 2 plus the exact trait defaults give these constants as 52, -1022, and 2047. If the pair is later assembled, the field-2-derived shift 52 forms its word and identity field 10 preserves the unrestricted result. The exact body is recorded in reference/model-evidence/binary64-boundary.txt; no false native cast-domain claim is used for this GOAL.

Requirement: slow accumulated rounding

The exact parse_long_mantissa body uses INFINITE_POWER, EXP_MIN, and SIG_BITS in its overflow tests, scaling, rounding, and returned pair. Field 2 and the trait defaults fix them as 2047, -1022, and 52. Final assembly uses the same derived shift, then invokes field 10 on the unrestricted word and field 13 for the conditional sign-bit toggle. These operations are copied in reference/model-evidence/binary64-boundary.txt; this application preserves their meanings without assuming a clear pre-negation sign bit or the positive rounding conclusion.

Requirement: assembly correspondence

The frozen assembler shifts the Rust-cast biased exponent by F::SIG_BITS, ORs it with the mantissa, and passes the low-64-bit word to from_bits. Field 2, SIG_TOTAL_BITS, and the exact trait default derive this shift as 52; field 10 is the identity on every word, with no field-validity precondition. The exact body in reference/model-evidence/binary64-boundary.txt therefore agrees with the goal's unrestricted Rust cast/shift/OR operation for all field values.

Requirement: classification totality

The byte-string classification relation is defined independently in DecimalGoalVocabularyDefault. Binary64ModelDefault is absent from that all-finite-byte-string definition and theorem statement, so its rational computation neither restricts the domain nor supplies a case. This is true noninterference.

Requirement: classification determinism

The classification and parsed-content uniqueness relation is fixed entirely by DecimalGoalVocabularyDefault. No field of this package occurs in that lexical relation, so choosing this binary64 implementation cannot add or remove a classification or decide the positive theorem.

Requirement: classification significand digit

The significand-digit property is a grammar field of DecimalGoalVocabularyDefault, with no binary64 operation in its definition. The package is therefore noninterfering with the unrestricted finite-byte-string statement.

Requirement: rounding totality

The original goal quantifies over every nonnegative real, and DecimalGoalVocabularyDefault defines its rounding relation directly over Real. Neither that relation nor the principal theorem statement calls this package's rational encoder. The model computation is therefore noninterfering with the full real domain; the rational proof above is not substituted for the GOAL.

Requirement: rounding determinism

Likewise, the principal determinism theorem quantifies over all nonnegative reals using the independent real-valued relation in DecimalGoalVocabularyDefault. Binary64ModelDefault does not occur in that statement, so its finite rational scan neither narrows the domain nor proves uniqueness. It only interprets source primitive calls.

Requirement: exponent value agreement

Exact and accumulated real values and their common target relation are fixed by DecimalGoalVocabularyDefault. This package does not define either decimal exponent fold. On an executed native route, the frozen guards first establish the cast/table bounds, then Binary64NativeCallDomain supplies their finite and nonzero consequences, field 14 preserves the bounded cast, and fields 10--13 preserve table conversion, arithmetic, and conditional negation. On an integer or slow route, field 2 preserves the precision/exponent constants and assembly shift before field 10 preserves the unrestricted assembled result and field 13 reproduces the subsequent conditional sign-bit toggle. None of these facts assumes a clear pre-negation sign bit or that the two decimal exponent values agree.

Recorded review

CorrespondencePass
PreservationVerifierPass

Binary64ModelDefault · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/binary64-boundary.txt

Open file

Primary evidence for the binary64 boundary
==========================================

Scope and identities
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction, the
adapted Rust crate retained in this repository, and the installed toolchain
named by modeling-input/SETUP.md. The probe source is retained at
reference/model-evidence/binary64-probe.rs; no scratch source is required to
reproduce it.

Toolchain executable:
  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
Target:
  x86_64-unknown-linux-gnu
rustc executable SHA-256:
  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
Probe source SHA-256:
  68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
Compiled probe SHA-256:
  f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
Frozen generated.lean SHA-256:
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9
Frozen modeling-input/manifest.json SHA-256:
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2
Approved Binary64ModelDefault.lean SHA-256 at the time of this record:
  03ae48fb631e6242bd21bf95d0481b66acae05f8cab343c7ab279b3c116538a3

Exact reproduction commands
---------------------------

Run from the repository root:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-probe.rs
  B=.trellis/scratch/binary64-probe
  "$R" --version --verbose
  sha256sum "$R"
  sha256sum "$P"
  "$R" --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$B"
  "$B"

Raw output
----------

  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
  rustc_sha256=162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  probe_sha256=68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
  binary_sha256=f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
  target_arch=x86_64
  mantissa_digits=53
  exponent_mask=7ff0000000000000
  mantissa_mask=000fffffffffffff
  nan=7ff8000000000000
  infinity=7ff0000000000000
  neg_infinity=fff0000000000000
  nan_category=Nan
  infinity_category=Infinite
  zero_category=Zero
  subnormal_category=Subnormal
  normal_category=Normal
  from_bits_to_bits=7ff0000000000001
  neg_payload_nan=fff0000000000001
  neg_zero=8000000000000000
  subnormal_tie_to_even_zero=0000000000000000
  subnormal_tie_to_even_two=0000000000000002
  normal_division=3fb999999999999a
  mul_negative_zero=8000000000000000
  div_negative_zero=8000000000000000
  div_negative_infinity=fff0000000000000
  mul_overflow=7ff0000000000000
  mul_zero_infinity_is_nan=true
  div_zero_zero_is_nan=true
  mul_nan_is_nan=true
  cast_2_pow_53=4340000000000000
  cast_2_pow_53_plus_1=4340000000000000

Pinned Rust library sources
---------------------------

The installed sources below belong to the same named toolchain. Their
SHA-256 identities are:

  core/src/primitive_docs.rs
    c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5
  core/src/num/f64.rs
    84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618
  core/src/clone.rs
    23f9cfc80347fde6b8457d46fbf7a2b8d9f34c8c58601b0b6f714ca2f6d1976b

The exact relevant text of core/src/primitive_docs.rs is:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The referenced primitive-f32 documentation supplies the common primitive
floating-point operation rules quoted next:

  /// - −0.0: IEEE 754 floating-point numbers have a bit that indicates their sign, so −0.0 is a
  ///   possible value. For comparison −0.0 = +0.0, but floating-point operations can carry
  ///   the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
  ///   a negative number rounded to a value smaller than a float can represent also produces −0.0.
  /// - [∞](#associatedconstant.INFINITY) and
  ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
  ///   like `1.0 / 0.0`.
  ///
  /// When a primitive operation (addition, subtraction, multiplication, or
  /// division) is performed on this type, the result is rounded according to the
  /// roundTiesToEven direction defined in IEEE 754-2008. That means:
  ///
  /// - The result is the representable value closest to the true value, if there
  ///   is a unique closest representable value.
  /// - If the true value is exactly half-way between two representable values,
  ///   the result is the one with an even least-significant binary digit.
  /// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
  ///   `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
  ///   true value's sign).

The same file explicitly separates arithmetic NaN choice from exact bitwise
operations; its exact relevant text is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.
  ///
  /// The following rules apply when a NaN value is returned from an arithmetic operation:
  /// - The result has a non-deterministic sign.
  /// - The quiet bit and payload are non-deterministically chosen from
  ///   the following set of options:
  ///
  ///   - **Preferred NaN**: The quiet bit is set and the payload is all-zero.
  ///   - **Quieting NaN propagation**: The quiet bit is set and the payload is copied from any input
  ///     operand that is a NaN. If the inputs and outputs do not have the same payload size (i.e., for
  ///     `as` casts), then
  ///     - If the output is smaller than the input, low-order bits of the payload get dropped.
  ///     - If the output is larger than the input, the payload gets filled up with 0s in the low-order
  ///       bits.
  ///   - **Unchanged NaN propagation**: The quiet bit and payload are copied from any input operand
  ///     that is a NaN. If the inputs and outputs do not have the same size (i.e., for `as` casts), the
  ///     same rules as for "quieting NaN propagation" apply, with one caveat: if the output is smaller
  ///     than the input, dropping the low-order bits may result in a payload of 0; a payload of 0 is not
  ///     possible with a signaling NaN (the all-0 significand encodes an infinity) so unchanged NaN
  ///     propagation cannot occur with some inputs.
  ///   - **Target-specific NaN**: The quiet bit is set and the payload is picked from a target-specific
  ///     set of "extra" possible NaN payloads. The set can depend on the input operand values.
  ///     See the table below for the concrete NaNs this set contains on various targets.
  ///
  /// | `target_arch` | Extra payloads possible on this platform |
  /// |---------------|------------------------------------------|
  /// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |

Thus the model's preferred quiet NaN is one permitted result whenever
multiplication or division returns NaN. This does not claim that arbitrary
Rust arithmetic NaNs have those exact bits. By contrast, unary negation and
bit conversion must preserve all non-sign bits exactly, including for every
NaN payload.

The exact relevant declarations in core/src/num/f64.rs are:

  pub const MANTISSA_DIGITS: u32 = 53;
  pub const NAN: f64 = 0.0_f64 / 0.0_f64;
  pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
  pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
  pub const SIGN_MASK: u64 = 0x8000_0000_0000_0000;
  pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;
  pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff;

  pub const fn classify(self) -> FpCategory {
      // We used to have complicated logic here that avoids the simple bit-based tests to work
      // around buggy codegen for x87 targets (see
      // https://github.com/rust-lang/rust/issues/114479). However, some LLVM versions later, none
      // of our tests is able to find any difference between the complicated and the naive
      // version, so now we are back to the naive version.
      let b = self.to_bits();
      match (b & Self::MANTISSA_MASK, b & Self::EXPONENT_MASK) {
          (0, Self::EXPONENT_MASK) => FpCategory::Infinite,
          (_, Self::EXPONENT_MASK) => FpCategory::Nan,
          (0, 0) => FpCategory::Zero,
          (_, 0) => FpCategory::Subnormal,
          _ => FpCategory::Normal,
      }
  }

  pub const fn to_bits(self) -> u64 {
      // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
      unsafe { mem::transmute(self) }
  }

  pub const fn from_bits(v: u64) -> Self {
      // It turns out the safety issues with sNaN were overblown! Hooray!
      // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
      unsafe { mem::transmute(v) }
  }

The exact scalar clone body in core/src/clone.rs is:

  impl const Clone for $t {
      #[inline(always)]
      fn clone(&self) -> Self {
          *self
      }
  }

Frozen adapted source
---------------------

The relevant retained source file hashes are:

  crate/traits.rs
    9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  crate/dec2flt/decimal.rs
    633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb
  crate/dec2flt/lemire.rs
    fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1
  crate/dec2flt/slow.rs
    93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485

The dispatcher excerpts below are reproduced from the identified file by
running these commands from the repository root:

  sha256sum crate/dec2flt/mod.rs
  sed -n '354,403p' crate/dec2flt/mod.rs
  sed -n '405,422p' crate/dec2flt/mod.rs
  sed -n '465,475p' crate/dec2flt/mod.rs
  sed -n '506,523p' crate/dec2flt/mod.rs

Exact constant and bit-conversion excerpt from crate/traits.rs:

  impl Float for f64 {
      type Int = u64;

      const INFINITY: Self = Self::INFINITY;
      const NEG_INFINITY: Self = Self::NEG_INFINITY;
      const NAN: Self = Self::NAN;
      // Bit-identical to the upstream `-f64::NAN`, without the unsupported
      // compile-time float negation.
      const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);

      const BITS: u32 = 64;
      const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
      const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
      const SIG_MASK: Self::Int = Self::MANTISSA_MASK;

      fn to_bits(self) -> Self::Int {
          self.to_bits()
      }

      fn classify(self) -> FpCategory {
          self.classify()
      }
  }

  impl FloatExt for f64 {
      #[inline]
      fn from_u64_bits(v: u64) -> Self {
          f64::from_bits(v)
      }

Exact derived-constant defaults from crate/traits.rs:

  /// The number of bits in the significand, *excluding* the hidden bit.
  const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;

  /// Number of bits in the exponent.
  const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

  /// The saturated (maximum bitpattern) value of the exponent, i.e. the infinite
  /// representation.
  ///
  /// This shifted fully right, use `EXP_MASK` for the shifted value.
  const EXP_SAT: u32 = (1 << Self::EXP_BITS) - 1;

  /// Signed version of `EXP_SAT` since we convert a lot.
  const INFINITE_POWER: i32 = Self::EXP_SAT as i32;

  /// The exponent bias value. This is also the maximum value of the exponent.
  const EXP_BIAS: u32 = Self::EXP_SAT >> 1;

  /// Minimum exponent value of normal values.
  const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Together with the f64-instance lines `BITS = 64` and
`SIG_TOTAL_BITS = Self::MANTISSA_DIGITS` in the preceding excerpt, these
defaults derive SIG_BITS, EXP_MIN, and INFINITE_POWER from the primitive
mantissa-digit constant rather than introducing independent parameters.

Exact asserted-conversion excerpt from crate/dec2flt/mod.rs:

  #[inline]
  // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
  // `charon::opaque` makes this entire asserted conversion external: both the
  // unchanged `debug_assert!` and the unchanged cast below are in the opaque
  // body. The callers, their fast-path guards, and their surrounding
  // computation remain mechanically visible. A corresponding model binding
  // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
  // exact binary64 conversion at or below that bound.
  #[charon::opaque]
  fn from_u64(v: u64) -> Self {
      debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
      v as _
  }

Here MAX_MANTISSA_FAST_PATH is the retained default 1 << 53.  The attribute is
attached to the function item, so the generated external stands for the whole
method, not merely the cast.  In the enabled-debug configuration the source
succeeds only when v <= 2^53; above it the assertion fails before the cast. On
the successful branch every integer is exactly representable, so the source
cast and the model rounder return the same word.

Exact power-table and assembly excerpts from crate/dec2flt/mod.rs:

  /// Maximum mantissa for the fast-path (`1 << 53` for f64).
  const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;

  const MAX_EXPONENT_FAST_PATH: i64 = 22;
  const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
  const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;

  fn pow10_fast_path(exponent: usize) -> Self {
      // These bit patterns are exactly the source table's rounded binary64
      // literals.  The match is the same masked lookup; it merely keeps float
      // constants out of Aeneas's unsupported constant interpreter.
      match exponent & 31 {
          0 => f64::from_bits(0x3FF0_0000_0000_0000),
          1 => f64::from_bits(0x4024_0000_0000_0000),
          2 => f64::from_bits(0x4059_0000_0000_0000),
          3 => f64::from_bits(0x408F_4000_0000_0000),
          4 => f64::from_bits(0x40C3_8800_0000_0000),
          5 => f64::from_bits(0x40F8_6A00_0000_0000),
          6 => f64::from_bits(0x412E_8480_0000_0000),
          7 => f64::from_bits(0x4163_12D0_0000_0000),
          8 => f64::from_bits(0x4197_D784_0000_0000),
          9 => f64::from_bits(0x41CD_CD65_0000_0000),
          10 => f64::from_bits(0x4202_A05F_2000_0000),
          11 => f64::from_bits(0x4237_4876_E800_0000),
          12 => f64::from_bits(0x426D_1A94_A200_0000),
          13 => f64::from_bits(0x42A2_309C_E540_0000),
          14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
          15 => f64::from_bits(0x430C_6BF5_2634_0000),
          16 => f64::from_bits(0x4341_C379_37E0_8000),
          17 => f64::from_bits(0x4376_3457_85D8_A000),
          18 => f64::from_bits(0x43AB_C16D_674E_C800),
          19 => f64::from_bits(0x43E1_58E4_6091_3D00),
          20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
          21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
          22 => f64::from_bits(0x4480_F0CF_064D_D592),
          _ => f64::from_bits(0),
      }
  }

  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

Exact native-call excerpt from crate/dec2flt/decimal.rs:

  fn can_use_fast_path<F: Lemire>(&self) -> bool {
      F::MIN_EXPONENT_FAST_PATH <= self.exponent
          && self.exponent <= F::MAX_EXPONENT_DISGUISED_FAST_PATH
          && self.mantissa <= F::MAX_MANTISSA_FAST_PATH
          && !self.many_digits
  }

  if !self.can_use_fast_path::<F>() {
      return None;
  }

  let value = if self.exponent <= F::MAX_EXPONENT_FAST_PATH {
      // normal fast path
      let value = F::from_u64(self.mantissa);
      if self.exponent < 0 {
          // Explicit trait calls preserve Rust arithmetic and resolve
          // the generic output type that Charon leaves ambiguous.
          core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
      } else {
          core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
      }
  } else {
      // disguised fast path
      let shift = self.exponent - F::MAX_EXPONENT_FAST_PATH;
      let mantissa = self.mantissa.checked_mul(INT_POW10[shift as usize])?;
      if mantissa > F::MAX_MANTISSA_FAST_PATH {
          return None;
      }
      core::ops::Mul::mul(
          F::from_u64(mantissa),
          F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
      )
  };

  if self.negative {
      Some(core::ops::Neg::neg(value))
  } else {
      Some(value)
  }

The preceding can_use_fast_path body, together with
MAX_MANTISSA_FAST_PATH = 1 << SIG_TOTAL_BITS and SIG_TOTAL_BITS = 53 for f64,
requires the exponent to lie between -22 and 37, the input mantissa to be at
most 2^53, and many_digits to be false. Consequently an ordinary arithmetic
call has a from_u64 operand in 0..=2^53. In its negative-exponent arm,
`-self.exponent` lies in 1..=22; in its nonnegative arm, `self.exponent` lies
in 0..=22. The disguised branch checks its multiplied mantissa against 2^53
before from_u64 and uses table index 22. The paired statement
Binary64NativeCallDomain does not assert this source reachability. It says
conditionally that a from_u64 argument at most 2^53 succeeds with a finite,
non-NaN word and that a table index at most 22 succeeds with a positive,
nonzero, finite, non-NaN word. Applying that conditional statement to the
guards just derived establishes those properties for the actual ordinary and
disguised calls, and in particular establishes that every executed divisor is
nonzero.

Exact special-value excerpt from crate/dec2flt/parse.rs:

  let float = match (register, len) {
      (INF_3, 3) => F::INFINITY,
      (INF_8, 8) => F::INFINITY,
      (NAN, 3) => F::NAN,
      _ => return None,
  };

  if negative { Some(-float) } else { Some(float) }

Thus the executed special route is INFINITY or NAN followed by conditional
negation; it does not select NEG_INFINITY or NEG_NAN directly.

The number helper has the exact source body

  pub fn parse_number(s: &[u8]) -> Option<Decimal> {
      if let Some((float, rest)) = parse_partial_number(s) {
          if rest == s.len() {
              return Some(float);
          }
      }
      None
  }

It returns only the Decimal produced by parse_partial_number; there is no
float type parameter or float operation at this boundary.

Exact dispatcher excerpts from crate/dec2flt/mod.rs
---------------------------------------------------

The entry of `dec2flt_with_trace` strips at most one leading sign, rejects
empty and sign-only inputs, calls `parse_number` on the unsigned body, and
calls `parse_inf_nan` only when `parse_number` returns `None`:

  /// Run the actual dispatcher while retaining its approved internal observations.
  pub fn dec2flt_with_trace<
      'a,
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {
          return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
      };
      let negative = c == b'-';
      if c == b'-' || c == b'+' {
          body = &body[1..];
      }
      if body.is_empty() {
          return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
      }

      let parse_number_result = parse_number(body);
      let parsed = match parse_number_result {
          Some(r) => r,
          None => {
              let parse_inf_nan_result = parse_inf_nan(body, negative);
              return match parse_inf_nan_result {
                  Some(value) => (
                      Ok(value),
                      Dec2FltTrace::Special {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                          result: value,
                      },
                  ),
                  None => (
                      Err(pfe_invalid()),
                      Dec2FltTrace::Invalid {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                      },
                  ),
              };
          }
      };

Thus every `Err` arm shown here returns before `parsed` is available and before
the native, integer, slow, assembly, or final-negation code below it can run.
On a numeric result, the lexical sign is copied into the parsed record before
the native attempt, whose successful result also returns before raw-pair
assembly:

      let mut num = parsed;
      num.negative = negative;
      if !cfg!(feature = "optimize_for_size") {
          let fast_path_result = num.try_fast_path::<F>();
          if let Some(value) = fast_path_result {
              return (
                  Ok(value),
                  Dec2FltTrace::FastPath {
                      body,
                      negative,
                      parse_number_result,
                      fast_path_input: num,
                      fast_path_result,
                      result: value,
                  },
              );
          }
      }

If the native attempt does not return, the selected raw pair is assembled and
the source then conditionally negates it according to the lexical-sign flag:

      let selected_pair = fp;
      // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
      // it neither changes the selected pair nor introduces a new branch or call.
      let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
      let assembly_result = biased_fp_to_float::<F>(fp);
      let lexical_sign_applied = num.negative;
      let result = if lexical_sign_applied {
          core::ops::Neg::neg(assembly_result)
      } else {
          assembly_result
      };

The public `dec2flt` executes that same route and returns its result projection;
it does not reimplement or reorder any parsing or float operation:

  /// Converts a decimal string into a floating point number.
  #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
  pub fn dec2flt<
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &str,
  ) -> Result<F, ParseFloatError> {
      // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
      // clause admits exactly the same instances and lets Charon resolve the
      // explicit, source-equivalent final negation.
      // The public function is now exactly the result projection of the single
      // instrumented implementation.  No conversion step is duplicated, and
      // discarding the trace cannot affect Rust evaluation or the returned bits.
      dec2flt_with_trace::<F>(s).0
  }

The integer-tier helper has the source type and exact executable excerpts
below (long explanatory comments are elided). In particular it returns a raw
BiasedFp and contains no from_u64 cast, primitive float multiplication,
division, negation, or from_bits call:

  pub fn compute_float<F: Float>(q: i64, mut w: u64) -> BiasedFp {
      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);
      let fp_error = BiasedFp::zero_pow2(-1);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if w == 0 || q < F::SMALLEST_POWER_OF_TEN as i64 {
          return fp_zero;
      } else if q > F::LARGEST_POWER_OF_TEN as i64 {
          return fp_inf;
      }
      // Normalize our significant digits, so the most-significant bit is set.
      let lz = w.leading_zeros();
      w <<= lz;
      let (lo, hi) = compute_product_approx(q, w, F::SIG_BITS as usize + 3);
      if lo == 0xFFFF_FFFF_FFFF_FFFF {
          let inside_safe_exponent = (q >= -27) && (q <= 55);
          if !inside_safe_exponent {
              return fp_error;
          }
      }
      let upperbit = (hi >> 63) as i32;
      let mut mantissa = hi >> (upperbit + 64 - F::SIG_BITS as i32 - 3);
      let mut power2 = power(q as i32) + upperbit - lz as i32 - F::EXP_MIN + 1;
      if power2 <= 0 {
          if -power2 + 1 >= 64 {
              // Have more than 64 bits below the minimum exponent, must be 0.
              return fp_zero;
          }
          // Have a subnormal value.
          mantissa >>= -power2 + 1;
          mantissa += mantissa & 1;
          mantissa >>= 1;
          power2 = (mantissa >= (1_u64 << F::SIG_BITS)) as i32;
          return BiasedFp { m: mantissa, p_biased: power2 };
      }
      // Need to handle rounding ties. Normally, we need to round up,
      // but if we fall right in between and we have an even basis, we
      // need to round down.
      if lo <= 1
          && q >= F::MIN_EXPONENT_ROUND_TO_EVEN as i64
          && q <= F::MAX_EXPONENT_ROUND_TO_EVEN as i64
          && mantissa & 0b11 == 0b01
          && (mantissa << (upperbit + 64 - F::SIG_BITS as i32 - 3)) == hi
      {
          // Zero the lowest bit, so we don't round up.
          mantissa &= !1_u64;
      }
      // Round-to-even, then shift the significant digits into place.
      mantissa += mantissa & 1;
      mantissa >>= 1;
      if mantissa >= (2_u64 << F::SIG_BITS) {
          // Rounding up overflowed, so the carry bit is set. Set the
          // mantissa to 1 (only the implicit, hidden bit is set) and
          // increase the exponent.
          mantissa = 1_u64 << F::SIG_BITS;
          power2 += 1;
      }
      // Zero out the hidden bit.
      mantissa &= !(1_u64 << F::SIG_BITS);
      if power2 >= F::INFINITE_POWER {
          // Exponent is above largest normal value, must be infinite.
          return fp_inf;
      }
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact slow-tier source body from crate/dec2flt/slow.rs:

  pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {
      const MAX_SHIFT: usize = 60;
      const NUM_POWERS: usize = 19;
      const POWERS: [u8; 19] =
          [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];

      let get_shift = |n| {
          if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }
      };

      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);

      let mut d = parse_decimal_seq(s);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if d.num_digits == 0 || d.decimal_point < -324 {
          return fp_zero;
      } else if d.decimal_point >= 310 {
          return fp_inf;
      }
      let mut exp2 = 0_i32;
      let mut loop_result = None;
      // Shift right toward (1/2 ... 1].
      while d.decimal_point > 0 && loop_result.is_none() {
          let n = d.decimal_point as usize;
          let shift = get_shift(n);
          d.right_shift(shift);
          if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_zero);
          } else {
              exp2 += shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // Shift left toward (1/2 ... 1].
      while d.decimal_point <= 0 && loop_result.is_none() {
          let shift = if d.decimal_point == 0 {
              match d.digits[0] {
                  digit if digit >= 5 => break,
                  0 | 1 => 2,
                  _ => 1,
              }
          } else {
              get_shift((-d.decimal_point) as _)
          };
          d.left_shift(shift);
          if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_inf);
          } else {
              exp2 -= shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
      exp2 -= 1;
      while F::EXP_MIN > exp2 {
          let mut n = (F::EXP_MIN - exp2) as usize;
          if n > MAX_SHIFT {
              n = MAX_SHIFT;
          }
          d.right_shift(n);
          exp2 += n as i32;
      }
      if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
          return fp_inf;
      }
      // Shift the decimal to the hidden bit, and then round the value
      // to get the high mantissa+1 bits.
      d.left_shift(F::SIG_BITS as usize + 1);
      let mut mantissa = d.round();
      if mantissa >= (1_u64 << (F::SIG_BITS + 1)) {
          // Rounding up overflowed to the carry bit, need to
          // shift back to the hidden bit.
          d.right_shift(1);
          exp2 += 1;
          mantissa = d.round();
          if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
              return fp_inf;
          }
      }
      let mut power2 = exp2 - F::EXP_MIN + 1;
      if mantissa < (1_u64 << F::SIG_BITS) {
          power2 -= 1;
      }
      // Zero out all the bits above the explicit mantissa bits.
      mantissa &= (1_u64 << F::SIG_BITS) - 1;
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact final numeric-sign excerpt from crate/dec2flt/mod.rs:

  let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
  let assembly_result = biased_fp_to_float::<F>(fp);
  let lexical_sign_applied = num.negative;
  let result = if lexical_sign_applied {
      core::ops::Neg::neg(assembly_result)
  } else {
      assembly_result
  };

Thus a numeric execution that reaches the integer/slow selection route
assembles its selected pair with from_bits through biased_fp_to_float and only
then conditionally negates it. A successful try_fast_path returns earlier and
does not perform this assembly. compute_float and parse_long_mantissa produce
raw BiasedFp pairs and do not call from_u64, primitive float multiplication,
division, negation, or from_bits; they do, however, execute constants derived
from SIG_TOTAL_BITS before producing those pairs.

Retained structural-boundary evidence
-------------------------------------

Several adjacent structural bindings cite this same evidence record. Their
pinned library source identities are:

  core/src/num/mod.rs
    f0820f9dfb94999440c8cb4a349736fa21df7e5668e19b6b49e016ff67c05ce3
  core/src/option.rs
    7cf61204b05d98a95bc2e322d5fbfc1f4f91505109971917d9a7fb47151c50e6
  core/src/slice/mod.rs
    354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840
  core/src/str/mod.rs
    284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78

Exact ASCII-digit body from core/src/num/mod.rs:

  pub const fn is_ascii_digit(&self) -> bool {
      matches!(*self, b'0'..=b'9')
  }

Exact Option control-flow bodies from core/src/option.rs:

  fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
      match self {
          Some(v) => ControlFlow::Continue(v),
          None => ControlFlow::Break(None),
      }
  }

  fn from_residual(residual: Option<convert::Infallible>) -> Self {
      match residual {
          None => None,
      }
  }

Exact slice observation bodies from core/src/slice/mod.rs:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

Exact string-byte body from core/src/str/mod.rs:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }
reference/model-evidence/binary64-probe.rs

Open file

#![feature(float_masks)]

use std::num::FpCategory;

fn bits(label: &str, value: f64) {
    println!("{label}={:016x}", value.to_bits());
}

fn main() {
    println!("target_arch={}", std::env::consts::ARCH);
    println!("mantissa_digits={}", f64::MANTISSA_DIGITS);
    println!("exponent_mask={:016x}", f64::EXPONENT_MASK);
    println!("mantissa_mask={:016x}", f64::MANTISSA_MASK);
    bits("nan", f64::NAN);
    bits("infinity", f64::INFINITY);
    bits("neg_infinity", f64::NEG_INFINITY);

    for (label, value) in [
        ("nan_category", f64::NAN),
        ("infinity_category", f64::INFINITY),
        ("zero_category", 0.0),
        ("subnormal_category", f64::from_bits(1)),
        ("normal_category", 1.0),
    ] {
        let category = match value.classify() {
            FpCategory::Nan => "Nan",
            FpCategory::Infinite => "Infinite",
            FpCategory::Zero => "Zero",
            FpCategory::Subnormal => "Subnormal",
            FpCategory::Normal => "Normal",
        };
        println!("{label}={category}");
    }

    let payload_nan_word = 0x7ff0_0000_0000_0001_u64;
    println!(
        "from_bits_to_bits={:016x}",
        f64::from_bits(payload_nan_word).to_bits()
    );
    bits("neg_payload_nan", -f64::from_bits(payload_nan_word));
    bits("neg_zero", -0.0);

    bits("subnormal_tie_to_even_zero", f64::from_bits(1) * 0.5);
    bits("subnormal_tie_to_even_two", f64::from_bits(3) * 0.5);
    bits("normal_division", 1.0 / 10.0);
    bits("mul_negative_zero", -0.0 * 2.0);
    bits("div_negative_zero", -1.0 / f64::INFINITY);
    bits("div_negative_infinity", 1.0 / -0.0);
    bits("mul_overflow", f64::MAX * (1.0 + f64::EPSILON));
    println!("mul_zero_infinity_is_nan={}", (0.0 * f64::INFINITY).is_nan());
    println!("div_zero_zero_is_nan={}", (0.0_f64 / 0.0_f64).is_nan());
    println!("mul_nan_is_nan={}", (f64::NAN * 1.0).is_nan());

    bits("cast_2_pow_53", (1_u64 << 53) as f64);
    bits("cast_2_pow_53_plus_1", ((1_u64 << 53) + 1) as f64);
}
Assumptions / kernel axioms
  • Classical.choice
  • Quot.sound
  • propext

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (32)
All 32 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourcecommitted_node_kinds / pv_tablet.json
Kindauthored definition
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:509a3c9fe29f53bdecca0d3d8aa3fc464c68ada9690e16b24f661c262782548e
Preservation current fingerprintpreservation-v1:509a3c9fe29f53bdecca0d3d8aa3fc464c68ada9690e16b24f661c262782548e
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","lean_semantic_closure":"eb3665125cfccd3338b901a3a743d3789335315a8f2ca7a0988e6a1cd4962f11","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence current fingerprint{"own_tex":"e2475cd1caad0eef450c903f24d2dfb8ffdfadf787ccad3621a86556f41e533a","lean_semantic_closure":"eb3665125cfccd3338b901a3a743d3789335315a8f2ca7a0988e6a1cd4962f11","lean_relevant_definition_descendants":{"Binary64Model":"d80435c56f8fcbe084ebc2fbf05989a7ddf07434d0acd161302414cac32f964d","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["Binary64Model","F64","core_num_FpCategory"],"preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "6061ee7437c754a02a8854d779abeedfc37dfb77d23298b76583ffc499d87834",
    "dep_statement_hashes": {
      "Binary64NativeCallDomain": "5b06c401ea7b8fe802a4cae40bcf11c5e438e342f3284a9e27ea421e01cb3642",
      "DecimalGoalVocabularyDefault": "09f5cd567fc767000aace8b560207d9bd82783d4b665d3e95b462af37dcb387f",
      "DispatchContracts": "7944beebe41c385df8bfcf84cb76767023837175736d363142a5b7549206e4a3"
    },
    "combined_sound_fp": "preservation-v1:509a3c9fe29f53bdecca0d3d8aa3fc464c68ada9690e16b24f661c262782548e"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/binary64-boundary.txt",
    "sha256": "fa45c924747337e8d6f84a19fe9e83fb9b33c73434887c0cf57c062533f51fe1",
    "cited_by": [
      "Tablet/Binary64ModelDefault.tex",
      "committed_node_kinds / pv_tablet.json"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-probe.rs",
    "sha256": "68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e",
    "cited_by": [
      "reference/model-evidence/binary64-boundary.txt"
    ]
  }
]

DecimalGoalVocabulary

Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Tablet.DecimalLexeme
import Tablet.F64
import Tablet.num_imp_dec2flt_common_BiasedFp
import Tablet.num_imp_dec2flt_decimal_Decimal
import Mathlib.Data.Real.Basic

open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false

namespace dec2flt_model

-- [TABLET NODE: DecimalGoalVocabulary]
structure DecimalGoalVocabulary where
-- BODY
  bytes : Slice Std.U8 -> List Nat
  sourceString : Str -> Prop
  validNumeric : DecimalLexeme -> Prop
  renderNumeric : DecimalLexeme -> List Nat
  lexicalNegative : DecimalLexeme -> Bool
  specialLiteral : List Nat -> Option Bool -> Bool -> Prop
  classifies : List Nat -> Option (Sum DecimalLexeme (Option Bool × Bool)) -> Prop
  mathExplicitExponent : DecimalLexeme -> Int
  accumulatedExplicitExponent : DecimalLexeme -> Int
  exactMagnitude : DecimalLexeme -> Real
  accumulatedMagnitude : DecimalLexeme -> Real
  decimalMagnitude : num.imp.dec2flt.decimal.Decimal -> Real
  roundsMagnitude : Real -> F64 -> Prop
  isNan : F64 -> Prop
  isInfinity : Bool -> F64 -> Prop
  isNegative : F64 -> Prop
  signedMagnitude : Bool -> F64 -> F64 -> Prop
  assembledWord : num.imp.dec2flt.common.BiasedFp -> F64 -> Prop

end dec2flt_model

Why this model is faithful

Definition

The decimal-goal vocabulary is a record of the following interpretations: the natural-number byte list of an Aeneas byte slice; source-valid UTF-8 strings; valid and rendered decimal lexemes; a decimal literal's derived negativity; signed case-insensitive special literals (an optional sign followed by a Boolean distinguishing NaN from infinity); classification as a numeric lexeme, a signed special literal, or invalid; mathematical and source-accumulated explicit exponents; exact and accumulated nonnegative real values; the real value of a source Decimal record; binary64 magnitude rounding; NaN, signed infinity, and sign-bit observations; application of a lexical sign to a magnitude word; and unrestricted BiasedFp assembly.

Preservation argument

Claim

The DecimalGoalVocabulary record is a noncomputational vocabulary package. It supplies named fields for observing slice bytes, admitting source strings, stating numeric and special grammar and classification, interpreting explicit exponents and decimal values, relating real magnitudes to binary64 words, observing NaN, infinity, and sign bits, applying a lexical sign, and interpreting raw-pair assembly. The record itself asserts no execution fact: in particular it does not preserve termination, panic versus normal return, the outer Aeneas Result versus the returned Rust Result, Option/Result discriminants, returned Decimal fields, selected-pair trace state, component compliance, deferral, or the behavior of any extracted call.

Proof

This is exactly the information in the record signature: every member is a function or relation with one of the named carriers, and there are no laws, call equations, or control-flow fields. In Aeneas, Str is definitionally Slice U8, so those carrier types alone do not distinguish Rust strings from byte slices. The sourceString field receives its concrete length-bounded UTF-8 meaning only in DecimalGoalVocabularyDefault; the complete arbitrary-byte Rust &[u8] carrier is instead identified by the separate SourceValidByteSlice definition. The bytes field is total on every model slice and carries no source-length premise. Likewise, classifies accepts every finite natural-number list and roundsMagnitude accepts every real input. Thus the purely mathematical list and real relations are not restricted to source-representable inputs. Concrete grammar, value, rounding, word, sign, and assembly meanings are supplied by DecimalGoalVocabularyDefault, not by an execution claim in this record.
Authored arguments for individual requirements

Requirement: parser totality

This node contributes only the sourceString predicate for the parser's source domain. Termination, panic versus normal return, and the distinction between the outer Aeneas result and returned Rust result belong to the source-model and operation-preservation owners.

Requirement: parser numeric acceptance

This node contributes sourceString, bytes, validNumeric, and renderNumeric to state the source domain and numeric grammar. Normal return and the returned Ok discriminant are left to the parser-operation owner.

Requirement: parser invalid rejection

This node contributes sourceString, bytes, and classifies to state complete-input invalidity. It makes no claim that the parser returns normally or returns Err; those are parser-operation facts.

Requirement: parser nan acceptance

This node contributes sourceString, bytes, specialLiteral, and isNan for NaN grammar and the word predicate. Acceptance, normal return, and Ok are left to the parser-operation owner.

Requirement: parser infinity

This node contributes sourceString, bytes, specialLiteral, and isInfinity for signed infinity grammar and words. It does not assert a normal or successful parser return.

Requirement: parser non nan results

This node contributes sourceString, bytes, specialLiteral, and isNan to state the input exclusion and output-word observation. The implication from a successful extracted return to a non-NaN word is left to parser preservation.

Requirement: parser numeric sign

This node contributes sourceString, the numeric grammar fields, lexicalNegative, and signedMagnitude. It does not assert that parsing succeeds or that an extracted return satisfies the sign relation.

Requirement: parser signed zero

This node contributes sourceString, the numeric grammar fields, exactMagnitude, lexicalNegative, and signedMagnitude to express zero and its lexical sign. Acceptance and the returned word remain parser-operation facts.

Requirement: parser exact rounding

This node contributes sourceString, the numeric grammar fields, exactMagnitude, roundsMagnitude, lexicalNegative, and signedMagnitude. It does not infer acceptance or connect an extracted return to those relations.

Requirement: parser selected exponent

This node contributes only sourceString to this parser goal; it has no trace-selection or biased-exponent-range field. Normal success, selection of a raw pair, and its exponent bound belong to the traced source model and operation-preservation owners.

Requirement: parser selected magnitude sign

This node contributes sourceString and assembledWord to interpret a supplied raw pair and word. It does not establish successful execution, trace selection, or the selected word's clear sign bit.

Requirement: dispatch abstract composition

This node supplies the source-string, byte, classification, value, rounding, special-word, and lexical-sign vocabulary used to state the abstract contracts. Existence of contract implementations, dispatcher flow, branch behavior, and normal results are left to the contract and dispatcher owners.

Requirement: dispatch component compliance

This node supplies only the vocabulary used for source strings, bytes, grammar, values, word observations, signing, and assembly; SourceValidByteSlice separately supplies the exact Rust slice domain. Extracted-call agreement, component compliance, call-site preconditions, results, and trace state are left to their source-model and operation-preservation owners.

Requirement: parser accumulated rounding

This node contributes sourceString, the numeric grammar fields, accumulatedMagnitude, roundsMagnitude, lexicalNegative, and signedMagnitude. Acceptance and the relation of an extracted return to those fields remain parser-operation facts.

Requirement: parser equal target rounding

This node contributes sourceString, the numeric grammar fields, both magnitude interpretations, roundsMagnitude, lexicalNegative, and signedMagnitude. It neither asserts acceptance nor proves that a returned word is the common target.

Requirement: number helper acceptance

SourceValidByteSlice supplies the exact arbitrary-byte Rust slice domain. This node contributes only bytes, validNumeric, and renderNumeric for the unsigned numeric grammar; normal return and Some are left to the numeric-helper operation owner.

Requirement: number helper rejection

SourceValidByteSlice supplies the exact arbitrary-byte Rust slice domain without UTF-8. This node contributes only bytes, validNumeric, and renderNumeric to state failure of the unsigned grammar, not the helper's normal return or None.

Requirement: number helper record bounds

SourceValidByteSlice supplies the exact Rust slice domain, and this node contributes only its total bytes observation. Returned-record fields, the Some discriminant, normal return, negativity, and the mantissa bound are not fields or consequences of this vocabulary record.

Requirement: number helper accumulated value

SourceValidByteSlice supplies the exact Rust slice domain. This node contributes bytes, the unsigned numeric grammar, accumulatedMagnitude, and decimalMagnitude; the optional return and its record/value relationship belong to numeric-helper preservation.

Requirement: special helper infinity

SourceValidByteSlice identifies the exact arbitrary-byte Rust slice carrier. This node contributes only bytes, specialLiteral, and isInfinity; normal return, Some, and the helper's use of the separate sign argument are operation facts.

Requirement: special helper nan

SourceValidByteSlice identifies the exact arbitrary-byte Rust slice carrier. This node contributes only bytes, specialLiteral, and isNan; normal return and Some are left to special-helper preservation.

Requirement: special helper rejection

SourceValidByteSlice supplies the exact Rust slice domain without a UTF-8 premise. This node contributes only bytes and specialLiteral for the keyword grammar; normal return and None remain special-helper operation facts.

Requirement: native correct or defer

This node contributes only decimalMagnitude, roundsMagnitude, and signedMagnitude to express the record value, target, and sign. Normal return, None/Some, many_digits, and both native paths belong to native-operation preservation.

Requirement: integer correct or defer

This node contributes only roundsMagnitude and assembledWord to interpret a real target and a supplied raw pair. It does not preserve normal return, deferral, or production of that pair by the integer operation.

Requirement: slow accumulated rounding

SourceValidByteSlice supplies the exact Rust slice domain. This node contributes the byte and unsigned-grammar vocabulary together with accumulatedMagnitude, roundsMagnitude, and assembledWord; normal return and production of a raw pair are left to slow-operation preservation.

Requirement: assembly correspondence

This node contributes only assembledWord as the relation between an unrestricted supplied raw pair and a word. Normal return and agreement of the extracted assembly call with that relation belong to assembly-operation preservation.

Requirement: classification totality

The classifies field has the unrestricted finite-list domain required by this mathematical goal, independently of Rust length or UTF-8 validity. Merely supplying that relation does not prove that every byte list has a classification.

Requirement: classification determinism

The same unrestricted classifies relation records complete numeric content on finite byte lists. This vocabulary contribution does not prove uniqueness of classifications or parsed lexemes.

Requirement: classification significand digit

The unrestricted classifies and validNumeric fields provide the mathematical grammar vocabulary for significand digits. This node does not prove the claimed digit-existence theorem.

Requirement: rounding totality

The roundsMagnitude field is a relation on unrestricted real inputs and binary64 words, with no source-domain bound. Supplying the relation does not prove that a target exists for every nonnegative real.

Requirement: rounding determinism

The roundsMagnitude field supplies one unrestricted real-to-word relation for both target hypotheses. This vocabulary record does not prove uniqueness of the targets.

Requirement: exponent value agreement

The mathematical and accumulated explicit exponents, their two magnitude interpretations, and roundsMagnitude are separate unrestricted mathematical fields. This node does not prove that equality of exponents yields agreement of rounding targets.

Recorded review

CorrespondencePass
PreservationVerifierPass

DecimalGoalVocabulary · Lean checked

Assumptions / kernel axioms
  • Classical.choice
  • Quot.sound
  • propext

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (31)
All 31 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourcecommitted_node_kinds / pv_tablet.json
Kindauthored definition
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:4733cb7e92789f17477cf518ee1e5a6d85c8dfd98984b462ea6c73537ede06a2
Preservation current fingerprintpreservation-v1:4733cb7e92789f17477cf518ee1e5a6d85c8dfd98984b462ea6c73537ede06a2
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"93815606c510afb8f425bb3ef618e21f81033cc552e15695a4d443dbb7010103","lean_semantic_closure":"c5e131808ca7c2258bd4e9ab3ac387fb18520c3691a9cb8189466ab4bb44dd2a","lean_relevant_definition_descendants":{"DecimalLexeme":"aeeeec41a307a5fb7e3916c9c4899c4077abccd652062c92a252fc65a8e7d7a6","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["DecimalLexeme","F64","num_imp_dec2flt_common_BiasedFp","num_imp_dec2flt_decimal_Decimal"],"preamble_tex":""}
Correspondence current fingerprint{"own_tex":"93815606c510afb8f425bb3ef618e21f81033cc552e15695a4d443dbb7010103","lean_semantic_closure":"c5e131808ca7c2258bd4e9ab3ac387fb18520c3691a9cb8189466ab4bb44dd2a","lean_relevant_definition_descendants":{"DecimalLexeme":"aeeeec41a307a5fb7e3916c9c4899c4077abccd652062c92a252fc65a8e7d7a6","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["DecimalLexeme","F64","num_imp_dec2flt_common_BiasedFp","num_imp_dec2flt_decimal_Decimal"],"preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "fc060d83cb2466b92f5795b3a762abf1baca0724c16ee7f6823909ef70bc5a17",
    "dep_statement_hashes": {
      "DecimalGoalVocabularyDefault": "09f5cd567fc767000aace8b560207d9bd82783d4b665d3e95b462af37dcb387f",
      "SourceValidByteSlice": "52522ae5b8602c6279dde2af31f94e21db249400641f5d3e951f68a74c3c11e2"
    },
    "combined_sound_fp": "preservation-v1:4733cb7e92789f17477cf518ee1e5a6d85c8dfd98984b462ea6c73537ede06a2"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}

DecimalGoalVocabularyDefault

Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Tablet.DecimalGoalVocabulary

open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false

namespace dec2flt_model

-- [TABLET NODE: DecimalGoalVocabularyDefault]
noncomputable def DecimalGoalVocabularyDefault : DecimalGoalVocabulary :=
-- BODY
  let signBytes := fun sign : Option Bool =>
    match sign with | none => [] | some negative => [if negative then 45 else 43]
  let digitByte := fun d : Nat => 48 + d
  let allDigits := fun ds : List Nat => ∀ d ∈ ds, d < 10
  let validNumeric := fun x : DecimalLexeme =>
    allDigits x.integerDigits ∧
    (match x.fractionDigits with | none => True | some ds => allDigits ds) ∧
    (x.integerDigits ≠ [] ∨
      match x.fractionDigits with | none => False | some ds => ds ≠ []) ∧
    (match x.exponent with | none => True | some (_, _, ds) => ds ≠ [] ∧ allDigits ds)
  let renderNumeric := fun x : DecimalLexeme =>
    signBytes x.leadingSign ++ x.integerDigits.map digitByte ++
    (match x.fractionDigits with | none => [] | some ds => 46 :: ds.map digitByte) ++
    (match x.exponent with
      | none => []
      | some (upper, sign, ds) =>
          (if upper then 69 else 101) ::
          (match sign with | none => [] | some neg => [if neg then 45 else 43]) ++
          ds.map digitByte)
  let asciiCaseEq := fun xs ys : List Nat =>
    List.Forall₂ (fun actual lower => actual = lower ∨ actual + 32 = lower) xs ys
  let specialLiteral := fun bs : List Nat => fun sign : Option Bool => fun nan : Bool =>
    ∃ body, bs = signBytes sign ++ body ∧
      if nan then asciiCaseEq body [110, 97, 110]
      else asciiCaseEq body [105, 110, 102] ∨
        asciiCaseEq body [105, 110, 102, 105, 110, 105, 116, 121]
  let numericLiteral := fun bs : List Nat => fun x : DecimalLexeme =>
    validNumeric x ∧ renderNumeric x = bs
  let classifies := fun bs : List Nat =>
      fun c : Option (Sum DecimalLexeme (Option Bool × Bool)) =>
    match c with
    | some (Sum.inl x) => numericLiteral bs x
    | some (Sum.inr (sign, nan)) => specialLiteral bs sign nan
    | none => (¬ ∃ x, numericLiteral bs x) ∧ (¬ ∃ sign nan, specialLiteral bs sign nan)
  let digitsValue : List Nat -> Nat :=
    fun ds => ds.foldl (fun (n d : Nat) => 10 * n + d) 0
  let exponentValue := fun x : DecimalLexeme =>
    match x.exponent with
    | none => 0
    | some (_, sign, ds) =>
      let n : Int := digitsValue ds
      match sign with | some true => -n | _ => n
  let accumulatedExponentValue := fun x : DecimalLexeme =>
    match x.exponent with
    | none => 0
    | some (_, sign, ds) =>
      let n : Nat := ds.foldl
        (fun (n d : Nat) => if n < 65536 then 10 * n + d else n) 0
      match sign with | some true => -(n : Int) | _ => (n : Int)
  let fractionCount := fun x : DecimalLexeme =>
    match x.fractionDigits with | none => 0 | some ds => ds.length
  let significandDigits := fun x : DecimalLexeme =>
    x.integerDigits ++ match x.fractionDigits with | none => [] | some ds => ds
  let magnitudeWithExponent := fun x : DecimalLexeme => fun e : Int =>
    (digitsValue (significandDigits x) : Real) *
      (10 : Real) ^ (e - (fractionCount x : Int))
  let signBit : Nat := 2 ^ 63
  let fractionUnit : Nat := 2 ^ 52
  let infinityBits : Nat := 2047 * fractionUnit
  let finiteMagnitudeValue := fun bits : Nat =>
    let e := bits / fractionUnit
    let m := bits % fractionUnit
    if e = 0 then
      (m : Real) / ((2 : Real) ^ (1074 : Nat))
    else if 1075 <= e then
      ((fractionUnit + m : Nat) : Real) * ((2 : Real) ^ (e - 1075))
    else
      ((fractionUnit + m : Nat) : Real) / ((2 : Real) ^ (1075 - e))
  let overflowThreshold : Real :=
    ((2 : Real) ^ (1024 : Nat)) - ((2 : Real) ^ (970 : Nat))
  let roundsMagnitude := fun x : Real => fun w : F64 =>
    0 <= x ∧ w.val <= infinityBits ∧
    if w.val = infinityBits then overflowThreshold <= x
    else x < overflowThreshold ∧
      ∀ v : F64, v.val < infinityBits -> v ≠ w ->
        abs (x - finiteMagnitudeValue w.val) <= abs (x - finiteMagnitudeValue v.val) ∧
        (abs (x - finiteMagnitudeValue w.val) = abs (x - finiteMagnitudeValue v.val) ->
          w.val % 2 = 0)
  {
    bytes := fun s => s.val.map (fun b => b.val)
    sourceString := fun s => s.val.length <= 9223372036854775807 ∧
      ∃ t : String, s.val.map (fun b => b.val) = t.toUTF8.toList.map UInt8.toNat
    validNumeric := validNumeric
    renderNumeric := renderNumeric
    lexicalNegative := fun x => x.leadingSign = some true
    specialLiteral := specialLiteral
    classifies := classifies
    mathExplicitExponent := exponentValue
    accumulatedExplicitExponent := accumulatedExponentValue
    exactMagnitude := fun x => magnitudeWithExponent x (exponentValue x)
    accumulatedMagnitude := fun x => magnitudeWithExponent x (accumulatedExponentValue x)
    decimalMagnitude := fun d => (d.mantissa.val : Real) * (10 : Real) ^ d.exponent.val
    roundsMagnitude := roundsMagnitude
    isNan := fun w =>
      (w.val % signBit) / fractionUnit = 2047 ∧ w.val % fractionUnit ≠ 0
    isInfinity := fun negative w =>
      w.val = infinityBits + if negative then signBit else 0
    isNegative := fun w => signBit <= w.val
    signedMagnitude := fun negative magnitude result =>
      magnitude.val < signBit ∧ result.val = magnitude.val + if negative then signBit else 0
    assembledWord := fun fp w =>
      w.val = Nat.lor fp.m.val
        (((fp.p_biased.val.emod (2 ^ 64)).toNat * (2 ^ 52)) % (2 ^ 64))
  }

end dec2flt_model

Why this model is faithful

Definition

The concrete decimal-goal vocabulary has the following meanings. Bytes are their unsigned values, and an Aeneas 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 e/E exponent with its optional sign. Special literals are optionally signed inf, infinity, or 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<65536, 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 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 BiasedFp assembly is the low 64 bits of the mantissa OR the Rust two's-complement i32-to-u64 cast of the biased exponent shifted left by 52.

Preservation argument

Claim

This concrete instance of 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 str domain, while its total byte observation also applies to every source-valid arbitrary-byte slice in 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 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.

Proof

The fields below instantiate exactly the abstract names in DecimalGoalVocabulary; DecimalLexeme fixes the four lexical components, and F64 fixes the word carrier.
First consider bytes and strings. The pinned Aeneas definition makes Slice U8 an ordered list subtype, and all relevant slice observations retain that order. Consequently 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 (reference/model-evidence/aeneas-slice-observations.txt). Thus bytes is the complete unsigned byte list, not a UTF-8-filtered observation. The first conjunct of sourceString is precisely the \mathtt{isize::MAX}=2^{63}-1 source-length condition, as established for the configured target by SourceValidByteSlice and reference/model-evidence/source-valid-byte-slice.txt.
For the second conjunct, the exact pinned Lean definitions in reference/model-evidence/lean-utf8.txt give both directions. If the displayed existential has witness t, then t.toUTF8 is definitionally t.toByteArray, and the proof field of the String structure shows that this byte array is in the image of 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 ByteArray.IsValidUTF8 supplies a character list whose List.utf8Encode is exactly that byte array. Applying String.fromUTF8 to the byte array and this proof constructs a Lean string whose toUTF8, by definition, is the original array, furnishing the existential. Rust str requires exactly valid UTF-8 in addition to the same length bound (reference/model-evidence/source-valid-byte-slice.txt), so sourceString is equivalent in both directions to the configured Rust string domain rather than merely assuming an unspecified UTF-8 equivalence.
For numeric syntax, allDigits says exactly that each stored natural is one of 0,\ldots,9. The four conjuncts of 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 renderNumeric, none, some false, and 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 e or E, its independently optional plus/minus sign, and its digits. Equality with the complete input byte list in numericLiteral leaves no whitespace, suffix, second point, or other extra byte. These are exactly the optional-sign, point, e/E, and exponent clauses pinned from the reference in reference/model-evidence/goal-vocabulary.txt.
For asciiCaseEq, 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 nan, inf, and infinity. specialLiteral prepends precisely the optional sign bytes and selects nan when its Boolean is true and one of the two infinity spellings when it is false. Finally, unfolding classifies shows: a left value is related exactly by numericLiteral; a right value is related exactly by specialLiteral; and 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 lexicalNegative is true exactly when the DecimalLexeme leading-sign field is some true, the encoding of a rendered minus. The fold 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 mathExplicitExponent is zero when absent and otherwise applies the recorded minus exactly for sign some true. The accumulated fold performs the same update exactly while the previous accumulator is below 65536, and otherwise retains it; its largest performed update is at most 10\cdot65535+9, so it agrees with the checked source loop without integer overflow. It then applies the same sign. This is the complete source loop, including its update test, pinned in reference/model-evidence/goal-vocabulary.txt.
The significand list is exactly the integer digits followed by all present fraction digits, and fractionCount counts exactly the latter. Therefore exactMagnitude is N10^{e-f} for the all-digit significand value N, mathematical explicit exponent e, and fractional length f; accumulatedMagnitude is the same all-digit formula with the bounded-fold exponent. Independently, for every extracted Decimal record d, 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, F64 and 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, 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 reference/model-evidence/binary64-boundary.txt.
Below the overflow threshold, 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 rounding_totality and 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 isNan means exponent 2047 and nonzero fraction. 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}, isNegative tests exactly whether bit 63 is set. 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 reference/model-evidence/goal-vocabulary.txt show that assembly casts p_biased : i32 to u64, shifts it by the f64 significand width 52, and ORs it with 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 reference/model-evidence/u64-shl.txt. The Nat.lor of that result with the unrestricted U64 mantissa has exactly the per-bit disjunction of the Rust U64 OR, by reference/model-evidence/u64-bitor.txt. Therefore assembledWord is the exact source cast/shift/OR word for every unrestricted BiasedFp; no exponent-range or nonoverlap premise has been introduced.
Authored arguments for individual requirements

Requirement: parser totality

The premise sourceString is exactly the complete configured Rust-string domain, and bytes retains its ordered bytes. This vocabulary makes no termination, panic, or Result claim; those remain with the dispatcher operation and totality theorem.

Requirement: parser numeric acceptance

On the exact Rust-string domain, validNumeric plus complete rendering is exactly the whole-input numeric grammar. Normal return and the public Ok discriminant remain with the parser operation.

Requirement: parser invalid rejection

On the exact Rust-string domain, the none classification is precisely the complement of both complete grammars. Normal return and the public Err value remain with the parser operation.

Requirement: parser nan acceptance

On the exact Rust-string domain, specialLiteral gives exactly the optionally signed case-insensitive nan grammar and isNan gives exactly the exponent-all-ones, nonzero-fraction words. Acceptance and the returned payload are operation facts.

Requirement: parser infinity

On the exact Rust-string domain, the infinity branch of specialLiteral retains the optional lexical sign and isInfinity gives the corresponding signed infinity word. Acceptance and production of that word remain parser facts.

Requirement: 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.

Requirement: parser numeric sign

The numeric grammar retains lexicalNegative, and signedMagnitude applies that Boolean even to zero and infinity. The connection to every successful parser result remains operation behavior.

Requirement: parser signed zero

The exact numeric magnitude can be zero, and signedMagnitude maps its zero word to positive or negative zero according to lexicalNegative. Acceptance and returned-word selection remain parser facts.

Requirement: parser exact rounding

The exact magnitude uses every significand digit and the unbounded mathematical exponent, while roundsMagnitude is the full binary64 magnitude relation. Parser acceptance and selection of a related word remain operation behavior.

Requirement: parser selected exponent

The unrestricted 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.

Requirement: parser selected magnitude sign

The unrestricted assembly relation identifies the source word and isNegative reads its sign bit exactly. Successful trace selection and the proof that selected magnitudes have clear sign bits remain with the dispatcher.

Requirement: 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.

Requirement: dispatch component compliance

Whole inputs use the exact Rust-string domain; every helper slice uses the exact arbitrary-byte \mathtt{isize::MAX} domain of SourceValidByteSlice. Call-site preconditions, actual component behavior, returned values, and trace guards remain with their operation-preservation owners.

Requirement: parser accumulated rounding

On the exact Rust-string domain, accumulatedMagnitude retains every significand digit and uses exactly the source threshold fold. Acceptance and production of a related target remain parser behavior.

Requirement: 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.

Requirement: number helper acceptance

The helper ranges over the exact arbitrary-byte \mathtt{isize::MAX} slice domain of SourceValidByteSlice. An unsigned numeric literal is represented by validNumeric and renderNumeric with leading sign none; normal return and Some remain numeric-helper behavior.

Requirement: number helper rejection

The helper ranges over the exact arbitrary-byte \mathtt{isize::MAX} slice domain of SourceValidByteSlice, with no UTF-8 premise. Failure of the unsigned numeric grammar is exact; normal return and None remain numeric-helper behavior.

Requirement: number helper record bounds

The exact arbitrary-byte \mathtt{isize::MAX} helper domain is SourceValidByteSlice, and bytes adds no content restriction. Nonemptiness, normal return, Some, record negativity, and the mantissa bound remain with numeric-helper preservation.

Requirement: number helper accumulated value

On the exact arbitrary-byte \mathtt{isize::MAX} domain of SourceValidByteSlice, the vocabulary gives the unsigned grammar, full-significand accumulated magnitude, and unsigned Decimal-record magnitude. The returned record, its many_digits branch, equality, and half-open bounds remain helper behavior.

Requirement: special helper infinity

On the exact arbitrary-byte \mathtt{isize::MAX} domain of SourceValidByteSlice, the unsigned keyword is specialLiteral (bytes s) none false. The separate Boolean argument is not a lexical sign and is used only in isInfinity for the returned word; normal return and Some remain special-helper behavior.

Requirement: special helper nan

On the exact arbitrary-byte \mathtt{isize::MAX} domain of SourceValidByteSlice, the unsigned keyword is specialLiteral (bytes s) none true; the separate sign argument does not alter that grammar. isNan accepts every NaN payload, while normal return and Some remain special-helper behavior.

Requirement: special helper rejection

On the exact arbitrary-byte \mathtt{isize::MAX} domain of SourceValidByteSlice, failure of all three specialLiteral cases with sign none is exactly failure of the unsigned keyword grammar, independently of the separate sign argument. Normal return and None remain special-helper behavior.

Requirement: native correct or defer

For every unrestricted Decimal record d, decimalMagnitude d is its unsigned \mathit{mantissa}\,10^{\mathit{exponent}}, and signedMagnitude d.negative uses the Decimal record sign, not a lexical sign. Normal return, None/Some, many_digits, and both native paths remain native-operation behavior.

Requirement: 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.

Requirement: slow accumulated rounding

On the exact arbitrary-byte \mathtt{isize::MAX} domain of SourceValidByteSlice, unsigned grammar uses leading sign 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.

Requirement: assembly correspondence

For every unrestricted raw pair, 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 from_u64_bits observation remain with the assembly operation and float binding.

Requirement: 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.

Requirement: 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.

Requirement: classification significand digit

Every validNumeric lexeme explicitly has a nonempty integer list or a present nonempty fraction list. The principal grammar consequence is left to its theorem proof.

Requirement: 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.

Requirement: 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.

Requirement: 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.

Recorded review

CorrespondencePass
PreservationVerifierPass

DecimalGoalVocabularyDefault · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/aeneas-slice-observations.txt

Open file

Aeneas slice-observation evidence

Commands were run from the repository root unless an explicit -C directory is
shown.  The Aeneas checkout and executable used for the frozen extraction are:

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

  sha256sum /home/leanagent/pv_spike/tools/aeneas/bin/aeneas
  9f446d2aaf59e8e705e36d05cb993f1c6ab0e97f8dc6fd2f19907a86ede30922

  sha256sum /home/leanagent/pv_spike/tools/aeneas/backends/lean/Aeneas/Std/Slice.lean
  c941826e8da78e1c517cae719b9f58e64671331957cce0b3c22c321a6c62c328

At that commit, Aeneas/Std/Slice.lean:22 defines:

  def Slice (α : Type u) := { l : List α // l.length ≤ Usize.max }

Thus an Aeneas Slice is an ordered List subtype.  Its val field is the complete
ordered element list; the subtype property is the Usize.max length bound.

  sha256sum /home/leanagent/pv_spike/tools/aeneas/documentation/aeneas-overview.md
  8ba474e55ec3375f6eaccc7532715e29dc1d0d6473423a02100bb805a446c3a7

At that commit, aeneas-overview.md:240 states the translation convention that
shared borrows (&T) become plain T parameters and that the value may be copied.
The summary table at line 432 additionally describes the resulting value as
immutable.  Returned shared byte references therefore have no mutable backward
continuation or separately observable identity in the generated model.

The Rust source is the configured nightly-2026-06-01 core library:

  sha256sum /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/slice/mod.rs
  354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840

Its exact observation bodies at core/src/slice/mod.rs:155-156 and 198-199 are:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

These bodies and the same core source hash are also pinned in
reference/model-evidence/binary64-boundary.txt.  The complete configured Rust
&[u8] domain, including the isize::MAX byte-length condition, is independently
pinned in reference/model-evidence/source-valid-byte-slice.txt.

The frozen generated module has this identity:

  sha256sum generated.lean
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9

Its external signatures at generated.lean:316 and 323-324 are:

  axiom core.slice.Slice.first {T : Type} :
    Slice T → Result (Option T)

  axiom core.slice.Slice.split_first {T : Type} :
    Slice T → Result (Option (T × Slice T))

The following command enumerates every declaration or call occurrence:

  rg -n 'core\.slice\.Slice\.(first|split_first)' generated.lean

Raw result:

  316:axiom core.slice.Slice.first {T : Type} : Slice T → Result (Option T)
  323:axiom core.slice.Slice.split_first
  4290:  let o ← core.slice.Slice.split_first s_ref
  4338:    let o ← core.slice.Slice.split_first s
  4591:  let o ← core.slice.Slice.split_first s1
  4613:    let o1 ← core.slice.Slice.split_first s2
  4812:  let o ← core.slice.Slice.first body

All five calls infer T = Std.U8:

* generated.lean:4288-4290 declares parse_scientific with
  s_ref : Slice Std.U8 and calls split_first on s_ref.
* generated.lean:4332-4338 declares try_parse_19digits_loop.body with
  s : Slice Std.U8 and calls split_first on s.
* generated.lean:4582-4591 declares parse_partial_number with
  s : Slice Std.U8; try_parse_digits returns s1 : Slice Std.U8, which is the
  first split_first argument.
* In the same parse_partial_number definition, every branch defining s2 returns
  either s1 or the Std.U8 tail s_next.  Hence the call on s2 at line 4613 also
  has T = Std.U8.
* generated.lean:4803-4812 declares dec2flt_with_trace; body is returned by
  core.str.Str.as_bytes, whose signature at line 330 is
  Str → Result (Slice Std.U8), and first is called on body.

The adapted sources containing the corresponding calls are pinned by:

  sha256sum crate/dec2flt/parse.rs crate/dec2flt/mod.rs
  50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f  crate/dec2flt/parse.rs
  ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d  crate/dec2flt/mod.rs

The five exact Rust call sites are:

  crate/dec2flt/parse.rs:65
      if let Some((c, s_next)) = s.split_first() {
          let digit = c.wrapping_sub(b'0');
          ...
          s = s_next;

  crate/dec2flt/parse.rs:127
      if let Some((&c, s_next)) = s.split_first() {
          negative = c == b'-';
          if c == b'-' || c == b'+' { s = s_next; }

  crate/dec2flt/parse.rs:177
      if let Some((&b'.', s_next)) = s.split_first() {
          s = s_next;

  crate/dec2flt/parse.rs:194
      if let Some((&c, s_next)) = s.split_first() {
          if c == b'e' || c == b'E' { s = s_next; ... }

  crate/dec2flt/mod.rs:365
      let Some(&c) = body.first() else { ... };

Thus every call is on &[u8].  The call sites either destructure the shared byte
reference into a copied byte or invoke an immutable u8 method through it, and
they use the shared tail only as the next immutable slice.  There is no mutation
through a returned reference and no pointer or lifetime identity observation.
Consequently, at every frozen GOAL-facing call site, erasing the
shared-reference lifetime/aliasing data retains the observed U8 value and, for
split_first, the same ordered suffix.
reference/model-evidence/binary64-boundary.txt

Open file

Primary evidence for the binary64 boundary
==========================================

Scope and identities
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction, the
adapted Rust crate retained in this repository, and the installed toolchain
named by modeling-input/SETUP.md. The probe source is retained at
reference/model-evidence/binary64-probe.rs; no scratch source is required to
reproduce it.

Toolchain executable:
  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
Target:
  x86_64-unknown-linux-gnu
rustc executable SHA-256:
  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
Probe source SHA-256:
  68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
Compiled probe SHA-256:
  f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
Frozen generated.lean SHA-256:
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9
Frozen modeling-input/manifest.json SHA-256:
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2
Approved Binary64ModelDefault.lean SHA-256 at the time of this record:
  03ae48fb631e6242bd21bf95d0481b66acae05f8cab343c7ab279b3c116538a3

Exact reproduction commands
---------------------------

Run from the repository root:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-probe.rs
  B=.trellis/scratch/binary64-probe
  "$R" --version --verbose
  sha256sum "$R"
  sha256sum "$P"
  "$R" --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$B"
  "$B"

Raw output
----------

  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
  rustc_sha256=162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  probe_sha256=68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
  binary_sha256=f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
  target_arch=x86_64
  mantissa_digits=53
  exponent_mask=7ff0000000000000
  mantissa_mask=000fffffffffffff
  nan=7ff8000000000000
  infinity=7ff0000000000000
  neg_infinity=fff0000000000000
  nan_category=Nan
  infinity_category=Infinite
  zero_category=Zero
  subnormal_category=Subnormal
  normal_category=Normal
  from_bits_to_bits=7ff0000000000001
  neg_payload_nan=fff0000000000001
  neg_zero=8000000000000000
  subnormal_tie_to_even_zero=0000000000000000
  subnormal_tie_to_even_two=0000000000000002
  normal_division=3fb999999999999a
  mul_negative_zero=8000000000000000
  div_negative_zero=8000000000000000
  div_negative_infinity=fff0000000000000
  mul_overflow=7ff0000000000000
  mul_zero_infinity_is_nan=true
  div_zero_zero_is_nan=true
  mul_nan_is_nan=true
  cast_2_pow_53=4340000000000000
  cast_2_pow_53_plus_1=4340000000000000

Pinned Rust library sources
---------------------------

The installed sources below belong to the same named toolchain. Their
SHA-256 identities are:

  core/src/primitive_docs.rs
    c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5
  core/src/num/f64.rs
    84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618
  core/src/clone.rs
    23f9cfc80347fde6b8457d46fbf7a2b8d9f34c8c58601b0b6f714ca2f6d1976b

The exact relevant text of core/src/primitive_docs.rs is:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The referenced primitive-f32 documentation supplies the common primitive
floating-point operation rules quoted next:

  /// - −0.0: IEEE 754 floating-point numbers have a bit that indicates their sign, so −0.0 is a
  ///   possible value. For comparison −0.0 = +0.0, but floating-point operations can carry
  ///   the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
  ///   a negative number rounded to a value smaller than a float can represent also produces −0.0.
  /// - [∞](#associatedconstant.INFINITY) and
  ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
  ///   like `1.0 / 0.0`.
  ///
  /// When a primitive operation (addition, subtraction, multiplication, or
  /// division) is performed on this type, the result is rounded according to the
  /// roundTiesToEven direction defined in IEEE 754-2008. That means:
  ///
  /// - The result is the representable value closest to the true value, if there
  ///   is a unique closest representable value.
  /// - If the true value is exactly half-way between two representable values,
  ///   the result is the one with an even least-significant binary digit.
  /// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
  ///   `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
  ///   true value's sign).

The same file explicitly separates arithmetic NaN choice from exact bitwise
operations; its exact relevant text is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.
  ///
  /// The following rules apply when a NaN value is returned from an arithmetic operation:
  /// - The result has a non-deterministic sign.
  /// - The quiet bit and payload are non-deterministically chosen from
  ///   the following set of options:
  ///
  ///   - **Preferred NaN**: The quiet bit is set and the payload is all-zero.
  ///   - **Quieting NaN propagation**: The quiet bit is set and the payload is copied from any input
  ///     operand that is a NaN. If the inputs and outputs do not have the same payload size (i.e., for
  ///     `as` casts), then
  ///     - If the output is smaller than the input, low-order bits of the payload get dropped.
  ///     - If the output is larger than the input, the payload gets filled up with 0s in the low-order
  ///       bits.
  ///   - **Unchanged NaN propagation**: The quiet bit and payload are copied from any input operand
  ///     that is a NaN. If the inputs and outputs do not have the same size (i.e., for `as` casts), the
  ///     same rules as for "quieting NaN propagation" apply, with one caveat: if the output is smaller
  ///     than the input, dropping the low-order bits may result in a payload of 0; a payload of 0 is not
  ///     possible with a signaling NaN (the all-0 significand encodes an infinity) so unchanged NaN
  ///     propagation cannot occur with some inputs.
  ///   - **Target-specific NaN**: The quiet bit is set and the payload is picked from a target-specific
  ///     set of "extra" possible NaN payloads. The set can depend on the input operand values.
  ///     See the table below for the concrete NaNs this set contains on various targets.
  ///
  /// | `target_arch` | Extra payloads possible on this platform |
  /// |---------------|------------------------------------------|
  /// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |

Thus the model's preferred quiet NaN is one permitted result whenever
multiplication or division returns NaN. This does not claim that arbitrary
Rust arithmetic NaNs have those exact bits. By contrast, unary negation and
bit conversion must preserve all non-sign bits exactly, including for every
NaN payload.

The exact relevant declarations in core/src/num/f64.rs are:

  pub const MANTISSA_DIGITS: u32 = 53;
  pub const NAN: f64 = 0.0_f64 / 0.0_f64;
  pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
  pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
  pub const SIGN_MASK: u64 = 0x8000_0000_0000_0000;
  pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;
  pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff;

  pub const fn classify(self) -> FpCategory {
      // We used to have complicated logic here that avoids the simple bit-based tests to work
      // around buggy codegen for x87 targets (see
      // https://github.com/rust-lang/rust/issues/114479). However, some LLVM versions later, none
      // of our tests is able to find any difference between the complicated and the naive
      // version, so now we are back to the naive version.
      let b = self.to_bits();
      match (b & Self::MANTISSA_MASK, b & Self::EXPONENT_MASK) {
          (0, Self::EXPONENT_MASK) => FpCategory::Infinite,
          (_, Self::EXPONENT_MASK) => FpCategory::Nan,
          (0, 0) => FpCategory::Zero,
          (_, 0) => FpCategory::Subnormal,
          _ => FpCategory::Normal,
      }
  }

  pub const fn to_bits(self) -> u64 {
      // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
      unsafe { mem::transmute(self) }
  }

  pub const fn from_bits(v: u64) -> Self {
      // It turns out the safety issues with sNaN were overblown! Hooray!
      // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
      unsafe { mem::transmute(v) }
  }

The exact scalar clone body in core/src/clone.rs is:

  impl const Clone for $t {
      #[inline(always)]
      fn clone(&self) -> Self {
          *self
      }
  }

Frozen adapted source
---------------------

The relevant retained source file hashes are:

  crate/traits.rs
    9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  crate/dec2flt/decimal.rs
    633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb
  crate/dec2flt/lemire.rs
    fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1
  crate/dec2flt/slow.rs
    93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485

The dispatcher excerpts below are reproduced from the identified file by
running these commands from the repository root:

  sha256sum crate/dec2flt/mod.rs
  sed -n '354,403p' crate/dec2flt/mod.rs
  sed -n '405,422p' crate/dec2flt/mod.rs
  sed -n '465,475p' crate/dec2flt/mod.rs
  sed -n '506,523p' crate/dec2flt/mod.rs

Exact constant and bit-conversion excerpt from crate/traits.rs:

  impl Float for f64 {
      type Int = u64;

      const INFINITY: Self = Self::INFINITY;
      const NEG_INFINITY: Self = Self::NEG_INFINITY;
      const NAN: Self = Self::NAN;
      // Bit-identical to the upstream `-f64::NAN`, without the unsupported
      // compile-time float negation.
      const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);

      const BITS: u32 = 64;
      const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
      const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
      const SIG_MASK: Self::Int = Self::MANTISSA_MASK;

      fn to_bits(self) -> Self::Int {
          self.to_bits()
      }

      fn classify(self) -> FpCategory {
          self.classify()
      }
  }

  impl FloatExt for f64 {
      #[inline]
      fn from_u64_bits(v: u64) -> Self {
          f64::from_bits(v)
      }

Exact derived-constant defaults from crate/traits.rs:

  /// The number of bits in the significand, *excluding* the hidden bit.
  const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;

  /// Number of bits in the exponent.
  const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

  /// The saturated (maximum bitpattern) value of the exponent, i.e. the infinite
  /// representation.
  ///
  /// This shifted fully right, use `EXP_MASK` for the shifted value.
  const EXP_SAT: u32 = (1 << Self::EXP_BITS) - 1;

  /// Signed version of `EXP_SAT` since we convert a lot.
  const INFINITE_POWER: i32 = Self::EXP_SAT as i32;

  /// The exponent bias value. This is also the maximum value of the exponent.
  const EXP_BIAS: u32 = Self::EXP_SAT >> 1;

  /// Minimum exponent value of normal values.
  const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Together with the f64-instance lines `BITS = 64` and
`SIG_TOTAL_BITS = Self::MANTISSA_DIGITS` in the preceding excerpt, these
defaults derive SIG_BITS, EXP_MIN, and INFINITE_POWER from the primitive
mantissa-digit constant rather than introducing independent parameters.

Exact asserted-conversion excerpt from crate/dec2flt/mod.rs:

  #[inline]
  // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
  // `charon::opaque` makes this entire asserted conversion external: both the
  // unchanged `debug_assert!` and the unchanged cast below are in the opaque
  // body. The callers, their fast-path guards, and their surrounding
  // computation remain mechanically visible. A corresponding model binding
  // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
  // exact binary64 conversion at or below that bound.
  #[charon::opaque]
  fn from_u64(v: u64) -> Self {
      debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
      v as _
  }

Here MAX_MANTISSA_FAST_PATH is the retained default 1 << 53.  The attribute is
attached to the function item, so the generated external stands for the whole
method, not merely the cast.  In the enabled-debug configuration the source
succeeds only when v <= 2^53; above it the assertion fails before the cast. On
the successful branch every integer is exactly representable, so the source
cast and the model rounder return the same word.

Exact power-table and assembly excerpts from crate/dec2flt/mod.rs:

  /// Maximum mantissa for the fast-path (`1 << 53` for f64).
  const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;

  const MAX_EXPONENT_FAST_PATH: i64 = 22;
  const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
  const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;

  fn pow10_fast_path(exponent: usize) -> Self {
      // These bit patterns are exactly the source table's rounded binary64
      // literals.  The match is the same masked lookup; it merely keeps float
      // constants out of Aeneas's unsupported constant interpreter.
      match exponent & 31 {
          0 => f64::from_bits(0x3FF0_0000_0000_0000),
          1 => f64::from_bits(0x4024_0000_0000_0000),
          2 => f64::from_bits(0x4059_0000_0000_0000),
          3 => f64::from_bits(0x408F_4000_0000_0000),
          4 => f64::from_bits(0x40C3_8800_0000_0000),
          5 => f64::from_bits(0x40F8_6A00_0000_0000),
          6 => f64::from_bits(0x412E_8480_0000_0000),
          7 => f64::from_bits(0x4163_12D0_0000_0000),
          8 => f64::from_bits(0x4197_D784_0000_0000),
          9 => f64::from_bits(0x41CD_CD65_0000_0000),
          10 => f64::from_bits(0x4202_A05F_2000_0000),
          11 => f64::from_bits(0x4237_4876_E800_0000),
          12 => f64::from_bits(0x426D_1A94_A200_0000),
          13 => f64::from_bits(0x42A2_309C_E540_0000),
          14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
          15 => f64::from_bits(0x430C_6BF5_2634_0000),
          16 => f64::from_bits(0x4341_C379_37E0_8000),
          17 => f64::from_bits(0x4376_3457_85D8_A000),
          18 => f64::from_bits(0x43AB_C16D_674E_C800),
          19 => f64::from_bits(0x43E1_58E4_6091_3D00),
          20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
          21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
          22 => f64::from_bits(0x4480_F0CF_064D_D592),
          _ => f64::from_bits(0),
      }
  }

  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

Exact native-call excerpt from crate/dec2flt/decimal.rs:

  fn can_use_fast_path<F: Lemire>(&self) -> bool {
      F::MIN_EXPONENT_FAST_PATH <= self.exponent
          && self.exponent <= F::MAX_EXPONENT_DISGUISED_FAST_PATH
          && self.mantissa <= F::MAX_MANTISSA_FAST_PATH
          && !self.many_digits
  }

  if !self.can_use_fast_path::<F>() {
      return None;
  }

  let value = if self.exponent <= F::MAX_EXPONENT_FAST_PATH {
      // normal fast path
      let value = F::from_u64(self.mantissa);
      if self.exponent < 0 {
          // Explicit trait calls preserve Rust arithmetic and resolve
          // the generic output type that Charon leaves ambiguous.
          core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
      } else {
          core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
      }
  } else {
      // disguised fast path
      let shift = self.exponent - F::MAX_EXPONENT_FAST_PATH;
      let mantissa = self.mantissa.checked_mul(INT_POW10[shift as usize])?;
      if mantissa > F::MAX_MANTISSA_FAST_PATH {
          return None;
      }
      core::ops::Mul::mul(
          F::from_u64(mantissa),
          F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
      )
  };

  if self.negative {
      Some(core::ops::Neg::neg(value))
  } else {
      Some(value)
  }

The preceding can_use_fast_path body, together with
MAX_MANTISSA_FAST_PATH = 1 << SIG_TOTAL_BITS and SIG_TOTAL_BITS = 53 for f64,
requires the exponent to lie between -22 and 37, the input mantissa to be at
most 2^53, and many_digits to be false. Consequently an ordinary arithmetic
call has a from_u64 operand in 0..=2^53. In its negative-exponent arm,
`-self.exponent` lies in 1..=22; in its nonnegative arm, `self.exponent` lies
in 0..=22. The disguised branch checks its multiplied mantissa against 2^53
before from_u64 and uses table index 22. The paired statement
Binary64NativeCallDomain does not assert this source reachability. It says
conditionally that a from_u64 argument at most 2^53 succeeds with a finite,
non-NaN word and that a table index at most 22 succeeds with a positive,
nonzero, finite, non-NaN word. Applying that conditional statement to the
guards just derived establishes those properties for the actual ordinary and
disguised calls, and in particular establishes that every executed divisor is
nonzero.

Exact special-value excerpt from crate/dec2flt/parse.rs:

  let float = match (register, len) {
      (INF_3, 3) => F::INFINITY,
      (INF_8, 8) => F::INFINITY,
      (NAN, 3) => F::NAN,
      _ => return None,
  };

  if negative { Some(-float) } else { Some(float) }

Thus the executed special route is INFINITY or NAN followed by conditional
negation; it does not select NEG_INFINITY or NEG_NAN directly.

The number helper has the exact source body

  pub fn parse_number(s: &[u8]) -> Option<Decimal> {
      if let Some((float, rest)) = parse_partial_number(s) {
          if rest == s.len() {
              return Some(float);
          }
      }
      None
  }

It returns only the Decimal produced by parse_partial_number; there is no
float type parameter or float operation at this boundary.

Exact dispatcher excerpts from crate/dec2flt/mod.rs
---------------------------------------------------

The entry of `dec2flt_with_trace` strips at most one leading sign, rejects
empty and sign-only inputs, calls `parse_number` on the unsigned body, and
calls `parse_inf_nan` only when `parse_number` returns `None`:

  /// Run the actual dispatcher while retaining its approved internal observations.
  pub fn dec2flt_with_trace<
      'a,
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {
          return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
      };
      let negative = c == b'-';
      if c == b'-' || c == b'+' {
          body = &body[1..];
      }
      if body.is_empty() {
          return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
      }

      let parse_number_result = parse_number(body);
      let parsed = match parse_number_result {
          Some(r) => r,
          None => {
              let parse_inf_nan_result = parse_inf_nan(body, negative);
              return match parse_inf_nan_result {
                  Some(value) => (
                      Ok(value),
                      Dec2FltTrace::Special {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                          result: value,
                      },
                  ),
                  None => (
                      Err(pfe_invalid()),
                      Dec2FltTrace::Invalid {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                      },
                  ),
              };
          }
      };

Thus every `Err` arm shown here returns before `parsed` is available and before
the native, integer, slow, assembly, or final-negation code below it can run.
On a numeric result, the lexical sign is copied into the parsed record before
the native attempt, whose successful result also returns before raw-pair
assembly:

      let mut num = parsed;
      num.negative = negative;
      if !cfg!(feature = "optimize_for_size") {
          let fast_path_result = num.try_fast_path::<F>();
          if let Some(value) = fast_path_result {
              return (
                  Ok(value),
                  Dec2FltTrace::FastPath {
                      body,
                      negative,
                      parse_number_result,
                      fast_path_input: num,
                      fast_path_result,
                      result: value,
                  },
              );
          }
      }

If the native attempt does not return, the selected raw pair is assembled and
the source then conditionally negates it according to the lexical-sign flag:

      let selected_pair = fp;
      // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
      // it neither changes the selected pair nor introduces a new branch or call.
      let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
      let assembly_result = biased_fp_to_float::<F>(fp);
      let lexical_sign_applied = num.negative;
      let result = if lexical_sign_applied {
          core::ops::Neg::neg(assembly_result)
      } else {
          assembly_result
      };

The public `dec2flt` executes that same route and returns its result projection;
it does not reimplement or reorder any parsing or float operation:

  /// Converts a decimal string into a floating point number.
  #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
  pub fn dec2flt<
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &str,
  ) -> Result<F, ParseFloatError> {
      // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
      // clause admits exactly the same instances and lets Charon resolve the
      // explicit, source-equivalent final negation.
      // The public function is now exactly the result projection of the single
      // instrumented implementation.  No conversion step is duplicated, and
      // discarding the trace cannot affect Rust evaluation or the returned bits.
      dec2flt_with_trace::<F>(s).0
  }

The integer-tier helper has the source type and exact executable excerpts
below (long explanatory comments are elided). In particular it returns a raw
BiasedFp and contains no from_u64 cast, primitive float multiplication,
division, negation, or from_bits call:

  pub fn compute_float<F: Float>(q: i64, mut w: u64) -> BiasedFp {
      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);
      let fp_error = BiasedFp::zero_pow2(-1);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if w == 0 || q < F::SMALLEST_POWER_OF_TEN as i64 {
          return fp_zero;
      } else if q > F::LARGEST_POWER_OF_TEN as i64 {
          return fp_inf;
      }
      // Normalize our significant digits, so the most-significant bit is set.
      let lz = w.leading_zeros();
      w <<= lz;
      let (lo, hi) = compute_product_approx(q, w, F::SIG_BITS as usize + 3);
      if lo == 0xFFFF_FFFF_FFFF_FFFF {
          let inside_safe_exponent = (q >= -27) && (q <= 55);
          if !inside_safe_exponent {
              return fp_error;
          }
      }
      let upperbit = (hi >> 63) as i32;
      let mut mantissa = hi >> (upperbit + 64 - F::SIG_BITS as i32 - 3);
      let mut power2 = power(q as i32) + upperbit - lz as i32 - F::EXP_MIN + 1;
      if power2 <= 0 {
          if -power2 + 1 >= 64 {
              // Have more than 64 bits below the minimum exponent, must be 0.
              return fp_zero;
          }
          // Have a subnormal value.
          mantissa >>= -power2 + 1;
          mantissa += mantissa & 1;
          mantissa >>= 1;
          power2 = (mantissa >= (1_u64 << F::SIG_BITS)) as i32;
          return BiasedFp { m: mantissa, p_biased: power2 };
      }
      // Need to handle rounding ties. Normally, we need to round up,
      // but if we fall right in between and we have an even basis, we
      // need to round down.
      if lo <= 1
          && q >= F::MIN_EXPONENT_ROUND_TO_EVEN as i64
          && q <= F::MAX_EXPONENT_ROUND_TO_EVEN as i64
          && mantissa & 0b11 == 0b01
          && (mantissa << (upperbit + 64 - F::SIG_BITS as i32 - 3)) == hi
      {
          // Zero the lowest bit, so we don't round up.
          mantissa &= !1_u64;
      }
      // Round-to-even, then shift the significant digits into place.
      mantissa += mantissa & 1;
      mantissa >>= 1;
      if mantissa >= (2_u64 << F::SIG_BITS) {
          // Rounding up overflowed, so the carry bit is set. Set the
          // mantissa to 1 (only the implicit, hidden bit is set) and
          // increase the exponent.
          mantissa = 1_u64 << F::SIG_BITS;
          power2 += 1;
      }
      // Zero out the hidden bit.
      mantissa &= !(1_u64 << F::SIG_BITS);
      if power2 >= F::INFINITE_POWER {
          // Exponent is above largest normal value, must be infinite.
          return fp_inf;
      }
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact slow-tier source body from crate/dec2flt/slow.rs:

  pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {
      const MAX_SHIFT: usize = 60;
      const NUM_POWERS: usize = 19;
      const POWERS: [u8; 19] =
          [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];

      let get_shift = |n| {
          if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }
      };

      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);

      let mut d = parse_decimal_seq(s);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if d.num_digits == 0 || d.decimal_point < -324 {
          return fp_zero;
      } else if d.decimal_point >= 310 {
          return fp_inf;
      }
      let mut exp2 = 0_i32;
      let mut loop_result = None;
      // Shift right toward (1/2 ... 1].
      while d.decimal_point > 0 && loop_result.is_none() {
          let n = d.decimal_point as usize;
          let shift = get_shift(n);
          d.right_shift(shift);
          if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_zero);
          } else {
              exp2 += shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // Shift left toward (1/2 ... 1].
      while d.decimal_point <= 0 && loop_result.is_none() {
          let shift = if d.decimal_point == 0 {
              match d.digits[0] {
                  digit if digit >= 5 => break,
                  0 | 1 => 2,
                  _ => 1,
              }
          } else {
              get_shift((-d.decimal_point) as _)
          };
          d.left_shift(shift);
          if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_inf);
          } else {
              exp2 -= shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
      exp2 -= 1;
      while F::EXP_MIN > exp2 {
          let mut n = (F::EXP_MIN - exp2) as usize;
          if n > MAX_SHIFT {
              n = MAX_SHIFT;
          }
          d.right_shift(n);
          exp2 += n as i32;
      }
      if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
          return fp_inf;
      }
      // Shift the decimal to the hidden bit, and then round the value
      // to get the high mantissa+1 bits.
      d.left_shift(F::SIG_BITS as usize + 1);
      let mut mantissa = d.round();
      if mantissa >= (1_u64 << (F::SIG_BITS + 1)) {
          // Rounding up overflowed to the carry bit, need to
          // shift back to the hidden bit.
          d.right_shift(1);
          exp2 += 1;
          mantissa = d.round();
          if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
              return fp_inf;
          }
      }
      let mut power2 = exp2 - F::EXP_MIN + 1;
      if mantissa < (1_u64 << F::SIG_BITS) {
          power2 -= 1;
      }
      // Zero out all the bits above the explicit mantissa bits.
      mantissa &= (1_u64 << F::SIG_BITS) - 1;
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact final numeric-sign excerpt from crate/dec2flt/mod.rs:

  let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
  let assembly_result = biased_fp_to_float::<F>(fp);
  let lexical_sign_applied = num.negative;
  let result = if lexical_sign_applied {
      core::ops::Neg::neg(assembly_result)
  } else {
      assembly_result
  };

Thus a numeric execution that reaches the integer/slow selection route
assembles its selected pair with from_bits through biased_fp_to_float and only
then conditionally negates it. A successful try_fast_path returns earlier and
does not perform this assembly. compute_float and parse_long_mantissa produce
raw BiasedFp pairs and do not call from_u64, primitive float multiplication,
division, negation, or from_bits; they do, however, execute constants derived
from SIG_TOTAL_BITS before producing those pairs.

Retained structural-boundary evidence
-------------------------------------

Several adjacent structural bindings cite this same evidence record. Their
pinned library source identities are:

  core/src/num/mod.rs
    f0820f9dfb94999440c8cb4a349736fa21df7e5668e19b6b49e016ff67c05ce3
  core/src/option.rs
    7cf61204b05d98a95bc2e322d5fbfc1f4f91505109971917d9a7fb47151c50e6
  core/src/slice/mod.rs
    354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840
  core/src/str/mod.rs
    284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78

Exact ASCII-digit body from core/src/num/mod.rs:

  pub const fn is_ascii_digit(&self) -> bool {
      matches!(*self, b'0'..=b'9')
  }

Exact Option control-flow bodies from core/src/option.rs:

  fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
      match self {
          Some(v) => ControlFlow::Continue(v),
          None => ControlFlow::Break(None),
      }
  }

  fn from_residual(residual: Option<convert::Infallible>) -> Self {
      match residual {
          None => None,
      }
  }

Exact slice observation bodies from core/src/slice/mod.rs:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

Exact string-byte body from core/src/str/mod.rs:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }
reference/model-evidence/binary64-probe.rs

Open file

#![feature(float_masks)]

use std::num::FpCategory;

fn bits(label: &str, value: f64) {
    println!("{label}={:016x}", value.to_bits());
}

fn main() {
    println!("target_arch={}", std::env::consts::ARCH);
    println!("mantissa_digits={}", f64::MANTISSA_DIGITS);
    println!("exponent_mask={:016x}", f64::EXPONENT_MASK);
    println!("mantissa_mask={:016x}", f64::MANTISSA_MASK);
    bits("nan", f64::NAN);
    bits("infinity", f64::INFINITY);
    bits("neg_infinity", f64::NEG_INFINITY);

    for (label, value) in [
        ("nan_category", f64::NAN),
        ("infinity_category", f64::INFINITY),
        ("zero_category", 0.0),
        ("subnormal_category", f64::from_bits(1)),
        ("normal_category", 1.0),
    ] {
        let category = match value.classify() {
            FpCategory::Nan => "Nan",
            FpCategory::Infinite => "Infinite",
            FpCategory::Zero => "Zero",
            FpCategory::Subnormal => "Subnormal",
            FpCategory::Normal => "Normal",
        };
        println!("{label}={category}");
    }

    let payload_nan_word = 0x7ff0_0000_0000_0001_u64;
    println!(
        "from_bits_to_bits={:016x}",
        f64::from_bits(payload_nan_word).to_bits()
    );
    bits("neg_payload_nan", -f64::from_bits(payload_nan_word));
    bits("neg_zero", -0.0);

    bits("subnormal_tie_to_even_zero", f64::from_bits(1) * 0.5);
    bits("subnormal_tie_to_even_two", f64::from_bits(3) * 0.5);
    bits("normal_division", 1.0 / 10.0);
    bits("mul_negative_zero", -0.0 * 2.0);
    bits("div_negative_zero", -1.0 / f64::INFINITY);
    bits("div_negative_infinity", 1.0 / -0.0);
    bits("mul_overflow", f64::MAX * (1.0 + f64::EPSILON));
    println!("mul_zero_infinity_is_nan={}", (0.0 * f64::INFINITY).is_nan());
    println!("div_zero_zero_is_nan={}", (0.0_f64 / 0.0_f64).is_nan());
    println!("mul_nan_is_nan={}", (f64::NAN * 1.0).is_nan());

    bits("cast_2_pow_53", (1_u64 << 53) as f64);
    bits("cast_2_pow_53_plus_1", ((1_u64 << 53) + 1) as f64);
}
reference/model-evidence/float-carriers.txt

Open file

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
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2  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.
reference/model-evidence/goal-vocabulary.txt

Open file

Decimal goal-vocabulary primary evidence

Repository-root reproduction commands:
  sha256sum GOAL.md crate/dec2flt/parse.rs crate/dec2flt/mod.rs modeling-input/manifest.json
  nl -ba GOAL.md | sed -n '3,24p'
  nl -ba crate/dec2flt/parse.rs | sed -n '121,155p'
  nl -ba crate/dec2flt/mod.rs | sed -n '282,285p'

Recorded SHA-256 identities:
  b64efb7cb397f6e6b263e6af4a8ad3405cc19d6902b5dd8a4984e3add857fb12  GOAL.md
  50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f  crate/dec2flt/parse.rs
  ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d  crate/dec2flt/mod.rs
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2  modeling-input/manifest.json

GOAL.md lines 9-24 define the optional leading sign, decimal significand,
optional signed exponent, case-insensitive special keywords, whole-input
matching, exact decimal value, IEEE binary64 rounding mode, and the distinct
source-accumulated exponent diagnostic.

The checked source exponent loop at crate/dec2flt/parse.rs lines 141-150 is:
  let mut count = 0;
  while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
      let digit = s[count].wrapping_sub(b'0');
      if exponent < 0x10000 {
          exponent = 10 * exponent + digit as i64;
      }
      count += 1;
  }
  *s_ref = &s[count..];
  if negative { Some(-exponent) } else { Some(exponent) }

The unrestricted source assembly at crate/dec2flt/mod.rs lines 282-285 is:
  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

The extraction and Aeneas scalar meanings used to check that assembly are
reproduced with:

  sha256sum generated.lean \
    /home/leanagent/pv_spike/tools/aeneas/backends/lean/Aeneas/Std/Scalar/Core.lean \
    /home/leanagent/pv_spike/tools/aeneas/backends/lean/Aeneas/Std/Scalar/Casts.lean
  nl -ba generated.lean | sed -n '3800,3812p'
  nl -ba /home/leanagent/pv_spike/tools/aeneas/backends/lean/Aeneas/Std/Scalar/Core.lean \
    | sed -n '45,79p;650,662p'
  nl -ba /home/leanagent/pv_spike/tools/aeneas/backends/lean/Aeneas/Std/Scalar/Casts.lean \
    | sed -n '30,42p'

The reproduced identities are:

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9  generated.lean
  a1c26c125a59bba635a2b2c170186ce07168c43308bcf386d508ebd77f01520e  Aeneas/Std/Scalar/Core.lean
  7ace724788adcdfa7f3ed285f736cb56f48ddb8681d2c8025f7b346ca3e0f15a  Aeneas/Std/Scalar/Casts.lean

The frozen extraction of the source assembly is:

  let i <- lift (IScalar.hcast .U64 x.p_biased)
  let i1 <- traitsFloatExtInst.FloatInst.SIG_BITS
  let i2 <- i <<< i1
  let word <- lift (x.m ||| i2)
  traitsFloatExtInst.from_u64_bits word

Core.lean defines U64 as a 64-bit unsigned scalar, I32 as a 32-bit signed
scalar, their observations respectively as BitVec.toNat and BitVec.toInt, and
their bit widths as 64 and 32.  Casts.lean defines signed-to-unsigned hcast by
sign extension to the target width.  Therefore, for every I32 value p, its U64
cast has unsigned value p modulo 2^64: nonnegative p is unchanged, while
negative p is represented by 2^64+p.  This is exactly
`(p.emod (2^64)).toNat`.  The shift and OR meanings used after this cast are
pinned independently in reference/model-evidence/u64-shl.txt and
reference/model-evidence/u64-bitor.txt.

The manifest pins debug and overflow checks and the f64 extraction basis.  The
vocabulary uses the reference statement, rather than an implementation probe,
for the mathematical finite-byte-string and nonnegative-real domains.
reference/model-evidence/lean-utf8.txt

Open file

Lean UTF-8 representation evidence
==================================

Scope
-----

This record pins the configured Lean definitions used to characterize the
UTF-8 conjunct of DecimalGoalVocabularyDefault.sourceString.  The Rust str
invariant and configured isize::MAX bound are pinned separately in
reference/model-evidence/source-valid-byte-slice.txt.  The Aeneas ordered byte
carrier is pinned separately in reference/model-evidence/aeneas-slice-observations.txt.

Configured toolchain and source identities
------------------------------------------

All commands below were run from the repository root.  The exact reproduction
commands are:

  cat lean-toolchain
  sha256sum lean-toolchain
  lake env lean --version
  lake env lean --print-prefix
  P=$(lake env lean --print-prefix)
  sha256sum "$P/bin/lean" \
    "$P/src/lean/Init/Prelude.lean" \
    "$P/src/lean/Init/Data/String/Defs.lean"
  nl -ba "$P/src/lean/Init/Prelude.lean" | sed -n '3480,3526p'
  nl -ba "$P/src/lean/Init/Data/String/Defs.lean" | sed -n '64,79p'

The configured toolchain file contains exactly:

  leanprover/lean4:v4.30.0-rc2

The version and prefix results are:

  Lean (version 4.30.0-rc2, x86_64-unknown-linux-gnu, commit 3dc1a088b6d2d8eafe25a7cd7ec7b58d731bd7cc, Release)
  /home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2

The reproduced SHA-256 identities are:

  ce4c4e3d87434b9663f46de25ce34b48a0cf0d392e0a320a0787b4674a2d7b61  lean-toolchain
  3e0d0d3d801675359f2d4cf9815bfdb417b20b92fdd9d48b3b14c95bbae28bbf  bin/lean
  8f7cb4fa6dd34299944ad2b083b8a4b205e69c50893df3b199d130a2fbf0280b  src/lean/Init/Prelude.lean
  ff44638846752ae8d2b16707e12d4978a792a672a3f486cbff7433bd3d79ad69  src/lean/Init/Data/String/Defs.lean

Exact defining excerpts
-----------------------

Init/Prelude.lean defines the byte encoding and validity witness as:

  noncomputable def List.utf8Encode (l : List Char) : ByteArray :=
    l.flatMap String.utf8EncodeChar |>.toByteArray

  inductive ByteArray.IsValidUTF8 (b : ByteArray) : Prop
    | intro (m : List Char) (hm : Eq b (List.utf8Encode m))

It then defines String as precisely a byte array carrying such a witness:

  structure String where ofByteArray ::
    toByteArray : ByteArray
    isValidUTF8 : ByteArray.IsValidUTF8 toByteArray

Init/Data/String/Defs.lean defines conversion from a valid byte array and the
toUTF8 observation by:

  def String.fromUTF8 (a : @& ByteArray) (h : a.IsValidUTF8) : String :=
    .ofByteArray a h

  def String.toUTF8 (a : @& String) : ByteArray :=
    a.toByteArray

  theorem String.toUTF8_eq_toByteArray {s : String} :
      s.toUTF8 = s.toByteArray := (rfl)

Two-direction consequence used by the model
-------------------------------------------

Let b be any finite byte array.  If b is the toUTF8 byte array of a Lean
String t, then toUTF8 is definitionally t.toByteArray, and the String field
t.isValidUTF8 supplies ByteArray.IsValidUTF8 b.  Unfolding that inductive proof
exhibits characters m with b = List.utf8Encode m.

Conversely, if b is valid UTF-8, unfolding ByteArray.IsValidUTF8 supplies
characters m and an equality b = List.utf8Encode m.  Equivalently, use the
validity proof directly in String.fromUTF8 b h; the resulting String has
toByteArray, hence toUTF8, definitionally equal to b.  Therefore existence of
a Lean String with a given toUTF8 byte array is equivalent in both directions
to ByteArray.IsValidUTF8 of that array; this is a consequence of the displayed
definitions, not an assumed UTF-8 equivalence.
reference/model-evidence/source-valid-byte-slice-probe.out

Open file

arch=x86_64
usize_bits=64
isize_max=9223372036854775807
u8_size=1
reference/model-evidence/source-valid-byte-slice-probe.rs

Open file

fn main() {
    println!("arch={}", std::env::consts::ARCH);
    println!("usize_bits={}", usize::BITS);
    println!("isize_max={}", isize::MAX);
    println!("u8_size={}", std::mem::size_of::<u8>());
}
reference/model-evidence/source-valid-byte-slice.txt

Open file

Source-valid byte-slice and string domain evidence
==================================================

Scope and pinned identities
---------------------------

All commands below were run from the repository root.  The configured compiler
is:

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

Its SHA-256 is:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b

The exact identity commands were:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  sha256sum "$R"
  "$R" --version --verbose
  "$R" --target x86_64-unknown-linux-gnu --print cfg | LC_ALL=C sort | \
    rg 'target_(arch|pointer_width)'

Their relevant raw output was:

  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
  target_arch="x86_64"
  target_pointer_width="64"

Retained configured-target probe
--------------------------------

The retained probe source is
reference/model-evidence/source-valid-byte-slice-probe.rs.  It was compiled
for the configured target and executed with this exact command, which depends
only on the retained source and the pinned compiler:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/source-valid-byte-slice-probe.rs
  B=/tmp/dec2flt-source-valid-byte-slice-probe
  O=reference/model-evidence/source-valid-byte-slice-probe.out
  "$R" --edition 2024 --target x86_64-unknown-linux-gnu -C opt-level=0 \
    -C debuginfo=0 -C overflow-checks=on -C debug-assertions=on \
    --crate-name source_valid_byte_slice_probe "$P" -o "$B"
  sha256sum "$R" "$P" "$B"
  "$B" > "$O"
  sha256sum "$O"
  cat "$O"

The actual hashes were:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd  reference/model-evidence/source-valid-byte-slice-probe.rs
  87dc3b9b7a46506d2205503d8aa007b451c452968af48d1ba5961a821934ee55  /tmp/dec2flt-source-valid-byte-slice-probe
  01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4  reference/model-evidence/source-valid-byte-slice-probe.out

The retained raw output file contains exactly:

  arch=x86_64
  usize_bits=64
  isize_max=9223372036854775807
  u8_size=1

Pinned core-library source
--------------------------

Let:

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

The exact commands used to identify and inspect the relevant core sources were:

  sha256sum "$S/slice/mod.rs" "$S/num/int_macros.rs" "$S/str/mod.rs"
  sed -n '798,808p' "$S/slice/mod.rs"
  sed -n '43,51p' "$S/num/int_macros.rs"
  sed -n '495,510p' "$S/str/mod.rs"

The file identities are:

  354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840  core/src/slice/mod.rs
  3896304e7cb14628e293134ac41fd18be2b5369bedc02d1c6a7408bd8c755a31  core/src/num/int_macros.rs
  284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78  core/src/str/mod.rs

The relevant exact excerpt of slice/mod.rs, line 801, is:

  //   - The size of the slice is never larger than `isize::MAX` bytes, as

The relevant exact declaration in num/int_macros.rs, line 47, is:

  pub const MAX: Self = (<$UnsignedT>::MAX >> 1) as Self;

The relevant exact excerpts of str/mod.rs are its same-layout byte-slice
conversion at lines 498-500:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }

and its UTF-8 invariant at lines 507-510:

  /// The caller must ensure that the content of the slice is valid UTF-8
  /// before the borrow ends and the underlying `str` is used.
  ///
  /// Use of a `str` whose contents are not valid UTF-8 is undefined behavior.

Conclusion
----------

The configured target has 64-bit usize/isize and one-byte u8 elements.
The pinned signed-MAX definition therefore gives
isize::MAX = 2^63 - 1 = 9223372036854775807, and the pinned slice rule bounds a
slice by that many bytes.  For &[u8], this is exactly an element-count bound;
the rule adds no UTF-8 condition or other restriction on the byte contents.
The pinned str source exposes the identical-layout &[u8] bytes and separately
requires them to be valid UTF-8.  Consequently the exact configured domains
are arbitrary &[u8] bytes of length at most isize::MAX, and Rust str bytes of
length at most isize::MAX that are valid UTF-8.  No smaller convenience bound
is introduced.
reference/model-evidence/u64-bitor.txt

Open file

U64 BitOr preservation evidence
===============================

Scope
-----

This record pins the source-to-model chain for the external declaration bound
to Tablet/ModelU64BitOr.  The commands below were run from the repository root
on 2026-09-24.  They use the frozen generated.lean and the approved tools
recorded in modeling-input/manifest.json and modeling-input/tool-identities.json.

1. Fresh native-boundary inspection
-----------------------------------

Command:

  python3 .trellis/scripts/pv_modeling.py inspect-native .

The command reported 24 declarations and wrote its full index to:

  .trellis/scratch/inspect-native-1790259866184055823.json

SHA-256 identities:

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9  generated.lean
  1e4419e9c0fff857cbff6848d8e4d0b54267d4f2f3307ee139f058f88930ee77  .trellis/scratch/inspect-native-1790259866184055823.json

These identities are reproduced with:

  sha256sum generated.lean \
    .trellis/scratch/inspect-native-1790259866184055823.json

The exact U64 BitOr entry in that index is:

  name: U64.Insts.CoreOpsBitBitOrU64U64.bitor
  extracted_signature: : Std.U64 → Std.U64 → Result Std.U64
  rust_symbol: core::ops::bit::{impl core::ops::bit::BitOr<u64, u64> for u64}::bitor
  source: /rustc/library/core/src/ops/bit.rs, lines 282:12-282:41
  raw_declaration_sha256: 85930775e3fde73729bff04aa86624f11a9b03b31d18a49dc74ce7bae71b4ed6

The indexed raw declaration is:

  /-- [core::ops::bit::{impl core::ops::bit::BitOr<u64, u64> for u64}::bitor]:
      Source: '/rustc/library/core/src/ops/bit.rs', lines 282:12-282:41
      Name pattern: [core::ops::bit::{core::ops::bit::BitOr<u64, u64, u64>}::bitor]
      Visibility: public -/
  @[rust_fun "core::ops::bit::{core::ops::bit::BitOr<u64, u64, u64>}::bitor"]
  axiom U64.Insts.CoreOpsBitBitOrU64U64.bitor
    : Std.U64 → Std.U64 → Result Std.U64

The declaration hash is reproducible directly from the fresh JSON index:

  jq -jr '.declarations[] | select(.name == "U64.Insts.CoreOpsBitBitOrU64U64.bitor") | .source_utf8' \
    .trellis/scratch/inspect-native-1790259866184055823.json | sha256sum

Output:

  85930775e3fde73729bff04aa86624f11a9b03b31d18a49dc74ce7bae71b4ed6  -

Thus the inspected external is exactly the u64/u64 operation, has the stated
total-looking Result signature, and is traced by extraction to the Rust source
span used below.  This inventory fact identifies the boundary; the next two
sections establish its semantics.

2. Approved Rust implementation
-------------------------------

Toolchain and compiler identity:

  toolchain: nightly-2026-06-01-x86_64-unknown-linux-gnu
  rustc path: /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  rustc SHA-256: 162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  rustc 1.98.0-nightly (14210df0e 2026-05-31)
  commit-hash: 14210df0e27ccd7d9e6a05b8085cbd438e4bbc65
  host: x86_64-unknown-linux-gnu

Reproduction commands:

  RUSTC=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  "$RUSTC" -vV
  "$RUSTC" --print sysroot
  sha256sum "$RUSTC"

The installed rust-src component is under the same sysroot.  Its relevant file
and hash are:

  path: /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/bit.rs
  SHA-256: 31db8c3d227e01a9f60f37221d258dc1b2c8274163264602837bb3f3851c2a4d

The file identity and quoted line range are reproduced with:

  RUSTSRC=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/bit.rs
  sha256sum "$RUSTSRC"
  nl -ba "$RUSTSRC" | sed -n '274,291p'

The pinned source says at lines 274-289:

  macro_rules! bitor_impl {
      ($($t:ty)*) => ($(
          #[stable(feature = "rust1", since = "1.0.0")]
          #[rustc_const_unstable(feature = "const_ops", issue = "143802")]
          impl const BitOr for $t {
              type Output = $t;

              #[inline]
              fn bitor(self, rhs: $t) -> $t { self | rhs }
          }

          forward_ref_binop! { impl BitOr, bitor for $t, $t,
          #[stable(feature = "rust1", since = "1.0.0")]
          #[rustc_const_unstable(feature = "const_ops", issue = "143802")] }
      )*)
  }

and line 291 instantiates that implementation for u64:

  bitor_impl! { bool usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }

Consequently the extracted Rust symbol's u64 implementation returns the
primitive bounded u64 disjunction `self | rhs` for every pair of u64 values;
there is no source guard, failure branch, or reachability precondition.

3. Pinned Aeneas scalar meaning
-------------------------------

Repository identity:

  repository: https://github.com/AeneasVerif/aeneas.git
  revision: fa699427cdfa8f604b891fb0223ef42883dd7dc4
  aeneas binary SHA-256: 9f446d2aaf59e8e705e36d05cb993f1c6ab0e97f8dc6fd2f19907a86ede30922

Reproduction commands (with each relative file path listed below substituted
for PATH):

  AENEAS=/home/leanagent/pv_spike/tools/aeneas
  git -C "$AENEAS" rev-parse HEAD
  git -C "$AENEAS" remote -v
  sha256sum "$AENEAS/bin/aeneas"
  git -C "$AENEAS" diff --quiet fa699427cdfa8f604b891fb0223ef42883dd7dc4 -- PATH
  sha256sum "$AENEAS/PATH"
  git -C "$AENEAS" ls-tree fa699427cdfa8f604b891fb0223ef42883dd7dc4 PATH

`git diff --quiet fa699427cdfa8f604b891fb0223ef42883dd7dc4 -- <path>`
returned status 0 for each file recorded below, so the inspected worktree files
are the files at the pinned revision.

File:

  backends/lean/Aeneas/Std/Scalar/Core.lean
  SHA-256: a1c26c125a59bba635a2b2c170186ce07168c43308bcf386d508ebd77f01520e
  git blob: f8582928fe49a0ce75e143b46bb0a8826d7fddae

Its definitions at lines 28-34, 45-53, 65-69, and 650-656 include:

  inductive UScalarTy where
  | Usize
  | U8
  | U16
  | U32
  | U64
  | U128

  def UScalarTy.numBits (ty : UScalarTy) : Nat :=
    match ty with
    | Usize => System.Platform.numBits
    | U8 => 8
    | U16 => 16
    | U32 => 32
    | U64 => 64
    | U128 => 128

  structure UScalar (ty : UScalarTy) where
    bv : BitVec ty.numBits

  abbrev U64 := UScalar .U64

Thus Std.U64 is exactly a UScalar whose sole data field is a BitVec 64.

File:

  backends/lean/Aeneas/Std/Scalar/Bitwise.lean
  SHA-256: 63e4b1d0906c972fb4fef953d8d8a60410dcf5313261d2583b1170b4a1a5ce29
  git blob: d3eb5022efc22d1d6c3ac055965f612c7f2fbca9

Its definitions at lines 118-126 and theorem at line 275 are:

  def UScalar.or {ty} (x y : UScalar ty) : UScalar ty :=
    ⟨ x.bv ||| y.bv ⟩

  instance {ty} : HOr (UScalar ty) (UScalar ty) (UScalar ty) where
    hOr x y := UScalar.or x y

  theorem UScalar.bv_or {ty} (x y : UScalar ty) :
      (x ||| y).bv = x.bv ||| y.bv := by rfl

For an explicit bit-level characterization of the BitVec operation used there,
the same pinned repository contains:

  backends/lean/Aeneas/Data/BitVec.lean
  SHA-256: 66d6e1922a45beff2d75e71e10dc6e8294c7cbf69f95b22dc22f98c5667382a7
  git blob: f7bc57109569cdd0fb0c3323021c73673dcfcd33

Lines 141-146 prove, for every width and bit index:

  theorem BitVec.getElem!_or {w} (x y : BitVec w) (i : Nat) :
      (x ||| y)[i]! = (x[i]! || y[i]!) := by
    by_cases i < w
    . simp only [getElem!_eq_getElem, getElem_or, *]
    . simp_all only [not_lt, getElem!_eq_false, Bool.or_self]

Therefore `x ||| y` on Std.U64 constructs the unique 64-bit vector whose bit
at every position is the Boolean disjunction of the corresponding operand
bits.  It is total and introduces neither overflow nor a failure condition.
reference/model-evidence/u64-shl-probe.rs

Open file

use std::panic::{catch_unwind, AssertUnwindSafe};

#[inline(never)]
fn shift(x: u64, count: u32) -> u64 {
    x << count
}

fn observe(x: u64, count: u32) {
    match catch_unwind(AssertUnwindSafe(|| shift(x, count))) {
        Ok(value) => println!("count={count} ok={value:#018x}"),
        Err(_) => println!("count={count} panic"),
    }
}

fn main() {
    std::panic::set_hook(Box::new(|_| {}));
    let x = 0x8000_0000_0000_0001_u64;
    for count in [0, 1, 52, 63, 64, 65, u32::MAX] {
        observe(x, count);
    }
}
reference/model-evidence/u64-shl.txt

Open file

U64 Shl preservation evidence
=============================

Scope
-----

This record pins the source-to-model chain for the external declaration bound
to Tablet/ModelU64Shl.  The commands below were run from the repository root on
2026-09-24.  They use the frozen generated.lean, extraction configuration, and
approved tools recorded in modeling-input/manifest.json and
modeling-input/tool-identities.json.  The two semantic cases are both in scope:
all U32 counts below 64 return a bounded U64 shift, and all U32 counts at least
64 encounter the enabled checked-shift failure.

1. Fresh native-boundary inspection
-----------------------------------

Command:

  python3 .trellis/scripts/pv_modeling.py inspect-native .

The command reported 24 declarations and wrote its full index to:

  .trellis/scratch/inspect-native-1790260978718245524.json

SHA-256 identities:

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9  generated.lean
  1e4419e9c0fff857cbff6848d8e4d0b54267d4f2f3307ee139f058f88930ee77  .trellis/scratch/inspect-native-1790260978718245524.json

These identities are reproduced with:

  sha256sum generated.lean \
    .trellis/scratch/inspect-native-1790260978718245524.json

The exact U64 Shl entry in that fresh index is:

  name: U64.Insts.CoreOpsBitShlU32U64.shl
  extracted_signature: : Std.U64 → Std.U32 → Result Std.U64
  rust_symbol: core::ops::bit::{impl core::ops::bit::Shl<u32, u64> for u64}::shl
  source: /rustc/library/core/src/ops/bit.rs, lines 489:12-489:41
  raw_declaration_sha256: e025ae44955b09fe95d7d8e997cb0ecafdfeea85b78bf40427e6f9bb14bb985d

The indexed raw declaration is:

  /-- [core::ops::bit::{impl core::ops::bit::Shl<u32, u64> for u64}::shl]:
      Source: '/rustc/library/core/src/ops/bit.rs', lines 489:12-489:41
      Name pattern: [core::ops::bit::{core::ops::bit::Shl<u64, u32, u64>}::shl]
      Visibility: public -/
  @[rust_fun "core::ops::bit::{core::ops::bit::Shl<u64, u32, u64>}::shl"]
  axiom U64.Insts.CoreOpsBitShlU32U64.shl
    : Std.U64 → Std.U32 → Result Std.U64

The declaration hash is reproduced directly from the fresh JSON index by:

  jq -jr '.declarations[] | select(.name ==
    "U64.Insts.CoreOpsBitShlU32U64.shl") | .source_utf8' \
    .trellis/scratch/inspect-native-1790260978718245524.json | sha256sum

Output:

  e025ae44955b09fe95d7d8e997cb0ecafdfeea85b78bf40427e6f9bb14bb985d  -

Thus this boundary is specifically u64 shifted by u32, and its extracted
codomain is the Aeneas Result used below to distinguish normal return from
checked overflow.

2. Approved Rust implementation and build mode
-----------------------------------------------

Toolchain and compiler identity:

  toolchain: nightly-2026-06-01-x86_64-unknown-linux-gnu
  rustc path: /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  rustc SHA-256: 162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  rustc 1.98.0-nightly (14210df0e 2026-05-31)
  commit-hash: 14210df0e27ccd7d9e6a05b8085cbd438e4bbc65
  host: x86_64-unknown-linux-gnu

Reproduction commands:

  RUSTC=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  "$RUSTC" -vV
  "$RUSTC" --print sysroot
  sha256sum "$RUSTC"

The installed rust-src component is under that same sysroot.  Its relevant
file and identity are:

  path: /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/bit.rs
  SHA-256: 31db8c3d227e01a9f60f37221d258dc1b2c8274163264602837bb3f3851c2a4d

The file identity and source are reproduced with:

  RUSTSRC="$($RUSTC --print sysroot)/lib/rustlib/src/rust/library/core/src/ops/bit.rs"
  sha256sum "$RUSTSRC"
  nl -ba "$RUSTSRC" | sed -n '479,520p'

Lines 479-498 define the implementation macro:

  macro_rules! shl_impl {
      ($t:ty, $f:ty) => {
          #[stable(feature = "rust1", since = "1.0.0")]
          #[rustc_const_unstable(feature = "const_ops", issue = "143802")]
          const impl Shl<$f> for $t {
              type Output = $t;

              #[inline]
              #[track_caller]
              #[rustc_inherit_overflow_checks]
              fn shl(self, other: $f) -> $t {
                  self << other
              }
          }

          forward_ref_binop! { impl Shl, shl for $t, $f,
          #[stable(feature = "rust1", since = "1.0.0")]
          #[rustc_const_unstable(feature = "const_ops", issue = "143802")] }
      };
  }

Lines 500-518 apply `shl_impl! { $t, u32 }` to every type in
`shl_impl_all!`, and instantiate that outer macro with `u64` among its types:

  macro_rules! shl_impl_all {
      ($($t:ty)*) => ($(
          shl_impl! { $t, u8 }
          shl_impl! { $t, u16 }
          shl_impl! { $t, u32 }
          shl_impl! { $t, u64 }
          shl_impl! { $t, u128 }
          shl_impl! { $t, usize }
          ...
      )*)
  }

  shl_impl_all! { u8 u16 u32 u64 u128 usize i8 i16 i32 i64 i128 isize }

Therefore the inspected symbol has exactly this method body for `Shl<u32> for
u64`, and `#[rustc_inherit_overflow_checks]` makes its primitive `self << other`
use the calling crate's overflow-check mode.

The frozen configuration identities are:

  2040ce5dc92c51b5245113f97682b692b876aa57708b5c7c483425ba152943c8  crate/Cargo.toml
  a45e9bc0c57213e415eb8fa5cec983c44259d336522e6eec8760e7237b7779d7  modeling-input/extraction.json
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2  modeling-input/manifest.json
  68fc7ab89dac4e5389a286b36d919fde5481b2c5673fc7006c7f693afd6ceedf  modeling-input/tool-identities.json

They are reproduced by `sha256sum` on those four paths.  Cargo.toml lines
18-22 set `overflow-checks = true` in both the development and release
profiles.  modeling-input/SETUP.md lines 17-22 record that extraction uses the
development profile with overflow checks enabled.  The frozen
modeling-input/extraction.json is:

  {"crate":"crate","cargo_args":[],"charon_args":[],"aeneas_args":[]}

so no extraction argument disables that setting.  The manifest pins
`RUSTUP_TOOLCHAIN=nightly-2026-06-01` and the exact cargo/rustc toolchain.  There
is no `panic` override in Cargo.toml; the approved rustc's default target cfg,
reproduced by `"$RUSTC" --print cfg`, includes:

  panic="unwind"
  target_arch="x86_64"
  target_pointer_width="64"

Thus the frozen build uses checked shifts and unwinding panics.

3. Same-toolchain checked-shift probe and MIR
---------------------------------------------

The durable probe source is:

  reference/model-evidence/u64-shl-probe.rs

with SHA-256:

  a0f0f822b3ea216799bb900835341f6117d47b59b9d6ad3d9cbc3af07e2792a8

It places the same primitive expression `x << count` in a non-inlined function,
runs it on representative boundary counts while catching unwinding panics, and
does not mask or reduce the count.  Reproduce it from the repository root with:

  RUSTC=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  cd .trellis/scratch
  "$RUSTC" -C overflow-checks=yes -C panic=unwind \
    ../../reference/model-evidence/u64-shl-probe.rs -o u64-shl-probe
  ./u64-shl-probe
  "$RUSTC" -C overflow-checks=yes -C panic=unwind --emit=mir=u64-shl-probe.mir \
    ../../reference/model-evidence/u64-shl-probe.rs
  sed -n '/fn shift(/,/^}/p' u64-shl-probe.mir

Runtime output:

  count=0 ok=0x8000000000000001
  count=1 ok=0x0000000000000002
  count=52 ok=0x0010000000000000
  count=63 ok=0x8000000000000000
  count=64 panic
  count=65 panic
  count=4294967295 panic

The same invocation emits this MIR for the complete dynamic-count function:

  fn shift(_1: u64, _2: u32) -> u64 {
      debug x => _1;
      debug count => _2;
      let mut _0: u64;
      let mut _3: bool;

      bb0: {
          _3 = Lt(copy _2, const 64_u32);
          assert(move _3, "attempt to shift left by `{}`, which would overflow", copy _2) -> [success: bb1, unwind continue];
      }

      bb1: {
          _0 = Shl(copy _1, copy _2);
          return;
      }
  }

The MIR is general in both arguments: exactly when `count < 64`, control reaches
the U64 `Shl` operation and returns its bounded 64-bit result; otherwise the
assertion takes its unwind edge.  The runtime boundary observations confirm
that the configured panic strategy makes that failure catchable at 64, 65, and
the largest U32 count, while counts 0, 1, 52, and 63 return normally with the
expected truncation to 64 bits.

4. Pinned Aeneas carrier and shift meaning
------------------------------------------

Repository and translator identity:

  repository: https://github.com/AeneasVerif/aeneas.git
  revision: fa699427cdfa8f604b891fb0223ef42883dd7dc4
  aeneas binary SHA-256: 9f446d2aaf59e8e705e36d05cb993f1c6ab0e97f8dc6fd2f19907a86ede30922

Reproduction commands (substitute each relative path below for PATH):

  AENEAS=/home/leanagent/pv_spike/tools/aeneas
  git -C "$AENEAS" rev-parse HEAD
  git -C "$AENEAS" remote -v
  sha256sum "$AENEAS/bin/aeneas"
  git -C "$AENEAS" diff --quiet fa699427cdfa8f604b891fb0223ef42883dd7dc4 -- PATH
  sha256sum "$AENEAS/PATH"
  git -C "$AENEAS" ls-tree fa699427cdfa8f604b891fb0223ef42883dd7dc4 PATH

The `git diff --quiet` command returned status 0 for every file below, so each
inspected worktree file is the file at the pinned revision.

File:

  backends/lean/Aeneas/Std/Scalar/Core.lean
  SHA-256: a1c26c125a59bba635a2b2c170186ce07168c43308bcf386d508ebd77f01520e
  git blob: f8582928fe49a0ce75e143b46bb0a8826d7fddae

Lines 28-34, 45-53, 65-71, 90-95, and 650-656 define:

  inductive UScalarTy where
  | Usize
  | U8
  | U16
  | U32
  | U64
  | U128

  def UScalarTy.numBits (ty : UScalarTy) : Nat :=
    match ty with
    | Usize => System.Platform.numBits
    | U8 => 8
    | U16 => 16
    | U32 => 32
    | U64 => 64
    | U128 => 128

  structure UScalar (ty : UScalarTy) where
    bv : BitVec ty.numBits

  def UScalar.val {ty} (x : UScalar ty) : Nat := x.bv.toNat
  irreducible_def UScalar.size (ty : UScalarTy) : Nat := 2^ty.numBits
  abbrev U32 := UScalar .U32
  abbrev U64 := UScalar .U64

Thus Std.U64 contains exactly a 64-bit vector, Std.U32 contains exactly a
32-bit vector, and the count's `val` ranges over the full U32 domain.

File:

  backends/lean/Aeneas/Std/Scalar/Bitwise.lean
  SHA-256: 63e4b1d0906c972fb4fef953d8d8a60410dcf5313261d2583b1170b4a1a5ce29
  git blob: d3eb5022efc22d1d6c3ac055965f612c7f2fbca9

Lines 17-21 and 29-31 define:

  def UScalar.shiftLeft {ty : UScalarTy} (x : UScalar ty) (s : Nat) :
      Result (UScalar ty) :=
    if s < ty.numBits then
      ok ⟨ x.bv.shiftLeft s ⟩
    else fail .integerOverflow

  def UScalar.shiftLeft_UScalar {ty tys} (x : UScalar ty) (s : UScalar tys) :
      Result (UScalar ty) :=
    x.shiftLeft s.val

Lines 81-82 resolve the notation used by Tablet/ModelU64Shl.lean:

  instance {ty0 ty1} : HShiftLeft (UScalar ty0) (UScalar ty1)
      (Result (UScalar ty0)) where
    hShiftLeft x y := UScalar.shiftLeft_UScalar x y

Consequently `x <<< y` for `x : Std.U64` and `y : Std.U32` tests exactly
`y.val < 64`: below 64 it is `ok` of the 64-bit vector shift; at least 64 it is
exactly `fail .integerOverflow`.

The same file's `UScalar.ShiftLeft_spec`, lines 193-205, proves the successful
branch has both equivalent bounded descriptions:

  theorem UScalar.ShiftLeft_spec ... (hy : y.val < ty0.numBits) ... :
    (x <<< y) ⦃ z =>
      z.val = (x.val <<< y.val) % size ∧
      z.bv = x.bv <<< y.val ⦄

For U64, `size` is `2^64`; hence the returned natural value is the mathematical
left shift reduced modulo `2^64`, and the returned carrier is exactly the
corresponding 64-bit vector.

File:

  backends/lean/Aeneas/Data/BitVec.lean
  SHA-256: 66d6e1922a45beff2d75e71e10dc6e8294c7cbf69f95b22dc22f98c5667382a7
  git blob: f7bc57109569cdd0fb0c3323021c73673dcfcd33

Its lines 248-266 give the bit-level characterization: every result bit below
the shift count (or outside the fixed width) is false, and every in-width bit at
or above the count equals the corresponding input bit at index `i - n`:

  theorem BitVec.getElem!_shiftLeft_false ...
      (h : i < n ∨ w ≤ i) : (v <<< n)[i]! = false

  theorem BitVec.getElem!_shiftLeft_eq ...
      (h : n ≤ i ∧ i < w) : (v <<< n)[i]! = v[i - n]!

Finally, the model's failure constructor is pinned in:

  backends/lean/Aeneas/Std/Primitives.lean
  SHA-256: f3e9dc9ee62646d579b97747725c07f18760498601b5a37e48031d2f4893035a
  git blob: e5733a774268c8dee71bd4ba402240d151bb8cb8

Lines 50-64 include the distinct `Error.integerOverflow` constructor and
`Result.fail`.  Therefore the at-least-64 branch is the explicit Aeneas checked
integer-overflow failure, not a wrapping or masked shift.

5. Case-by-case preservation conclusion
----------------------------------------

Let x be any source/model U64 word and n any source/model U32 count; the carrier
definitions above identify their bits and numeric values exactly.

If n < 64, the Rust checked-shift assertion succeeds and the source method runs
the primitive U64 shift.  The Aeneas branch condition also succeeds and returns
`ok` of `BitVec.shiftLeft n`.  `UScalar.ShiftLeft_spec` and the BitVec lemmas
identify both results as the same 64-bit word, equivalently `(x * 2^n) mod
2^64`, with discarded high bits and zero-filled low bits.

If n >= 64, the configured Rust operation takes the checked-overflow panic
edge.  The Aeneas branch condition fails and returns `fail .integerOverflow`,
the extracted Result representation of that checked shift failure.  This holds
for the entire remaining U32 range, including counts larger than 64; it is not
restricted to counts reached by current parser executions.

Thus Tablet/ModelU64Shl preserves both the normal result and checked-failure
observations of the exact extracted Rust operation on its full U64 x U32 input
domain.
Assumptions / kernel axioms
  • Classical.choice
  • Quot.sound
  • propext

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (31)
All 31 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourcecommitted_node_kinds / pv_tablet.json
Kindauthored definition
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:7d314a741677d4fb80c4994e0c6830d7191fb4da1ddb3a6d6aa459891ab9d0b7
Preservation current fingerprintpreservation-v1:7d314a741677d4fb80c4994e0c6830d7191fb4da1ddb3a6d6aa459891ab9d0b7
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"8e764be6667e1926143e8f2576a83acf0a0aa9a5aa790c9619858db50c026dc4","lean_semantic_closure":"7050158d50f891228451ab1820dccf6b1fb8fb1798cfd24f377f5ed12dd2f207","lean_relevant_definition_descendants":{"DecimalGoalVocabulary":"93815606c510afb8f425bb3ef618e21f81033cc552e15695a4d443dbb7010103","DecimalLexeme":"aeeeec41a307a5fb7e3916c9c4899c4077abccd652062c92a252fc65a8e7d7a6","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["DecimalGoalVocabulary","DecimalLexeme","F64","num_imp_dec2flt_common_BiasedFp","num_imp_dec2flt_decimal_Decimal"],"preamble_tex":""}
Correspondence current fingerprint{"own_tex":"8e764be6667e1926143e8f2576a83acf0a0aa9a5aa790c9619858db50c026dc4","lean_semantic_closure":"7050158d50f891228451ab1820dccf6b1fb8fb1798cfd24f377f5ed12dd2f207","lean_relevant_definition_descendants":{"DecimalGoalVocabulary":"93815606c510afb8f425bb3ef618e21f81033cc552e15695a4d443dbb7010103","DecimalLexeme":"aeeeec41a307a5fb7e3916c9c4899c4077abccd652062c92a252fc65a8e7d7a6","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2"},"lean_relevant_dependencies":["DecimalGoalVocabulary","DecimalLexeme","F64","num_imp_dec2flt_common_BiasedFp","num_imp_dec2flt_decimal_Decimal"],"preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "8d6d15b5c0683df3edf63f7020a478d0619b9ddbff6a6ad36d8be3094702ddd2",
    "dep_statement_hashes": {
      "DecimalGoalVocabulary": "a7ea90f3fe39b9537113f20fb793064a8bd6b3cada2fec542f2a0a72d168d0ae",
      "DecimalLexeme": "0d398ff0a3cfd467bc80f4937b3cebbf4fb3734b961ce22a0cf856a5753a92f1",
      "F64": "85219d015e60d047232e878573a12a94c958bf92ebff46024b4602e427a15588",
      "SourceValidByteSlice": "52522ae5b8602c6279dde2af31f94e21db249400641f5d3e951f68a74c3c11e2"
    },
    "combined_sound_fp": "preservation-v1:7d314a741677d4fb80c4994e0c6830d7191fb4da1ddb3a6d6aa459891ab9d0b7"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/aeneas-slice-observations.txt",
    "sha256": "6d031558a189d52c1583babffeeea3fe6775f5d00c85077cc0a07064d725d96f",
    "cited_by": [
      "Tablet/DecimalGoalVocabularyDefault.tex",
      "committed_node_kinds / pv_tablet.json",
      "reference/model-evidence/lean-utf8.txt"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-boundary.txt",
    "sha256": "fa45c924747337e8d6f84a19fe9e83fb9b33c73434887c0cf57c062533f51fe1",
    "cited_by": [
      "Tablet/DecimalGoalVocabularyDefault.tex",
      "committed_node_kinds / pv_tablet.json",
      "reference/model-evidence/aeneas-slice-observations.txt"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-probe.rs",
    "sha256": "68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e",
    "cited_by": [
      "reference/model-evidence/binary64-boundary.txt"
    ]
  },
  {
    "path": "reference/model-evidence/float-carriers.txt",
    "sha256": "4367b150c75a979015e2a6063d4080d3f0a1681c640421692ff9ac8c139632e5",
    "cited_by": [
      "Tablet/DecimalGoalVocabularyDefault.tex",
      "committed_node_kinds / pv_tablet.json"
    ]
  },
  {
    "path": "reference/model-evidence/goal-vocabulary.txt",
    "sha256": "63198d6b0d49268462ac8c71a2f44c8242f4b3e1b38dde33e57450683f26efe0",
    "cited_by": [
      "Tablet/DecimalGoalVocabularyDefault.tex",
      "committed_node_kinds / pv_tablet.json"
    ]
  },
  {
    "path": "reference/model-evidence/lean-utf8.txt",
    "sha256": "e56898d7a38eb24d65160e9ca1e70c72b92d95d5ff22bc8cf16abd68b5cb66ed",
    "cited_by": [
      "Tablet/DecimalGoalVocabularyDefault.tex",
      "committed_node_kinds / pv_tablet.json"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.out",
    "sha256": "01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.rs",
    "sha256": "b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice.txt",
    "sha256": "eb501317621baa00236f9773885466bd38ec1a45cb56457d555b9e9139dc780a",
    "cited_by": [
      "Tablet/DecimalGoalVocabularyDefault.tex",
      "committed_node_kinds / pv_tablet.json",
      "reference/model-evidence/aeneas-slice-observations.txt",
      "reference/model-evidence/lean-utf8.txt"
    ]
  },
  {
    "path": "reference/model-evidence/u64-bitor.txt",
    "sha256": "7afd4000ae945f6ed47f2dda330dc2ca21dd4f0d229b3ec69b81e928a45f57d4",
    "cited_by": [
      "Tablet/DecimalGoalVocabularyDefault.tex",
      "committed_node_kinds / pv_tablet.json",
      "reference/model-evidence/goal-vocabulary.txt"
    ]
  },
  {
    "path": "reference/model-evidence/u64-shl-probe.rs",
    "sha256": "a0f0f822b3ea216799bb900835341f6117d47b59b9d6ad3d9cbc3af07e2792a8",
    "cited_by": [
      "reference/model-evidence/u64-shl.txt"
    ]
  },
  {
    "path": "reference/model-evidence/u64-shl.txt",
    "sha256": "0f1f325b4ac82b37653f4d4f9d96ce8bc1df43a34ad0efb0e1f341ddaa7b45ba",
    "cited_by": [
      "Tablet/DecimalGoalVocabularyDefault.tex",
      "committed_node_kinds / pv_tablet.json",
      "reference/model-evidence/goal-vocabulary.txt"
    ]
  }
]

DecimalLexeme

Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Aeneas
import Tablet.Preamble

open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false

namespace dec2flt_model

-- [TABLET NODE: DecimalLexeme]
structure DecimalLexeme where
-- BODY
  leadingSign : Option Bool
  integerDigits : List Nat
  fractionDigits : Option (List Nat)
  exponent : Option (Bool × Option Bool × List Nat)

end dec2flt_model

Why this model is faithful

Definition

A decimal lexeme records an optional lexical sign (true means minus and false means plus); a list of digits before the decimal point; an optional list of digits after a present decimal point; and an optional exponent. An exponent records whether its marker is uppercase, an optional sign (true means minus and false means plus), and its digit list. The lists contain digit values rather than ASCII codes. This representation deliberately permits invalid records; validity is imposed by the concrete goal vocabulary.

Preservation argument

Claim

For each syntactic decomposition of a numeric literal in the reference grammar, there is a componentwise encoding as a decimal lexeme. An absent, plus, or minus leading sign is encoded respectively as none, some false, or some true. Each ASCII digit byte is encoded uniquely by its value in 0,\ldots,9. Absence of a decimal point is encoded by fractionDigits = none; a present point is encoded by fractionDigits = some ds, including when the following digit list ds is empty. Absence of an exponent is encoded by exponent = none. A present exponent is encoded by a triple that records lowercase e as false and uppercase E as true, records its absent, plus, or minus sign as none, some false, or some true, and contains its entire digit list. Projecting such an encoding recovers every one of these components, and two decimal-lexeme records are equal exactly when their four fields are componentwise equal.

Proof

The retained grammar specifies the optional leading sign, ASCII decimal significand, optional point, and optional e/E exponent with its optional sign and digit list (reference/model-evidence/goal-vocabulary.txt). The three sign cases go to distinct constructors or Boolean values. ASCII digit bytes are exactly 48,\ldots,57, so subtracting 48 maps them bijectively and in order to 0,\ldots,9; adding 48 is the inverse on this domain. Mapping a list applies these mutually inverse operations at every position and therefore loses no digit or order.
For the point, the outer option separates no point from a present point, while the list inside some retains all following digits and may be empty. For the exponent, the outer option separates absence from presence; in the present triple the first Boolean separates the two marker cases, the inner option and Boolean separate all three sign cases, and the list retains every exponent digit. Reading the four record fields and applying the inverse sign, marker, and digit tables therefore recovers the original decomposition. Finally, equality of structure values is equivalent to equality of each named field, and equality of the option, product, Boolean, and list components is componentwise; hence record equality has exactly the stated characterization.
This is only a lossless carrier construction. The carrier deliberately also contains invalid tuples. It supplies neither a validity predicate nor rendering, whole-input membership, grammar complement, classification, numeric or accumulated values, source Decimal records, or source execution behavior.
Authored arguments for individual requirements

Requirement: parser totality

This carrier has no source-call or control-flow content and therefore contributes no termination, normal-return, result, error, or panic claim.

Requirement: parser numeric acceptance

A supplied numeric-grammar witness, including every lexical component, can be represented without loss. Validity, whole-input rendering, acceptance, and the returned result remain with their respective owners.

Requirement: parser invalid rejection

This permissive carrier has no validity predicate, whole-input membership test, or grammar complement. It contributes no claim that an invalid string is rejected or returns Err.

Requirement: parser nan acceptance

The carrier describes only possible numeric content and has no special-literal, NaN-word, or source-return observation, so it is noninterfering.

Requirement: parser infinity

The carrier has no special-literal, infinity-word, or source-return observation and therefore contributes no infinity-acceptance claim.

Requirement: parser non nan results

The carrier records possible numeric content only; it asserts neither numeric/special disjointness nor anything about NaN words or successful source results.

Requirement: parser numeric sign

For a supplied numeric-grammar witness, the leading-sign field retains absence, plus, or minus without loss. Interpreting that sign on a returned word, including zero or infinity, remains outside this carrier.

Requirement: parser signed zero

For a supplied numeric-grammar witness, the carrier retains its leading sign and every significand and exponent digit. It asserts neither that the literal denotes zero nor any returned-word relation.

Requirement: parser exact rounding

For a supplied numeric-grammar witness, the carrier retains the sign, all significand digits, point presence, and all exponent components used by later exact-value interpretation. It supplies no value, rounding, acceptance, or return claim.

Requirement: parser selected exponent

The carrier contains no dispatcher trace or raw-pair field and is noninterfering with selection and biased-exponent bounds.

Requirement: parser selected magnitude sign

The carrier contains no dispatcher trace, raw pair, assembly operation, or word observation and contributes no selected-word sign claim.

Requirement: dispatch abstract composition

A lexical contract may use this carrier to hold a supplied numeric-grammar witness without losing any lexical component. The carrier asserts no contract implementation, dispatcher behavior, conversion-tier state, or normal result.

Requirement: dispatch component compliance

Only a supplied numeric-grammar witness receives a lossless lexeme representation. Invalid lexical inputs need not have such a witness, and conversion-tier Decimal arguments have already discarded lexical distinctions; this carrier asserts no component compliance, call-site precondition, or result.

Requirement: parser accumulated rounding

For a supplied numeric-grammar witness, all significand digits and the explicit exponent sign and digit list remain available to a later bounded-accumulation interpretation. No accumulated value, rounding target, acceptance, or return relation is asserted.

Requirement: parser equal target rounding

For a supplied numeric-grammar witness, the same retained sign, significand, point, and exponent components are available to later exact and accumulated interpretations. The carrier supplies neither interpretation, their target equality, acceptance, nor the returned result.

Requirement: number helper acceptance

A supplied unsigned numeric-grammar witness can be represented without loss by using leadingSign = none; its exponent sign is still retained independently. Unsigned validity, rendering, byte-domain coverage, acceptance, and Some remain outside this carrier.

Requirement: number helper rejection

The carrier has no unsigned-validity predicate, rendering, whole-input membership, or complement, and therefore contributes no rejection or None claim.

Requirement: number helper record bounds

The carrier has no source Decimal record, mantissa, many_digits, returned option, or execution observation, so record bounds and negativity are noninterfering.

Requirement: number helper accumulated value

For a supplied unsigned numeric-grammar witness, the carrier retains every significand digit and the explicit exponent sign and digits needed by a later accumulated-value interpretation. It asserts no such value and no returned-record or interval relation.

Requirement: special helper infinity

The carrier has no special-keyword, separate sign-argument, infinity-word, option-return, or execution content and is noninterfering.

Requirement: special helper nan

The carrier has no special-keyword, separate sign-argument, NaN-word, option-return, or execution content and is noninterfering.

Requirement: special helper rejection

The carrier has no special-keyword grammar, grammar complement, separate sign argument, option-return, or execution content and is noninterfering.

Requirement: native correct or defer

This goal ranges over unrestricted source Decimal records, whereas this carrier supplies no source record or conversion value. It is noninterfering and provides no lexeme witness, deferral, many_digits, rounding, or return claim.

Requirement: integer correct or defer

The unrestricted integer exponent and mantissa arguments, raw result pair, deferral, assembly, rounding, and normal return are independent of this lexical carrier.

Requirement: slow accumulated rounding

For a supplied unsigned numeric-grammar witness, the carrier retains the complete significand and explicit exponent components for later interpretation. It asserts no accumulated value, source result pair, assembly, rounding, or normal return.

Requirement: assembly correspondence

The carrier has no BiasedFp, bit operation, assembled word, float, or source-call field and is noninterfering with unrestricted assembly.

Requirement: classification totality

The carrier provides a place for the complete numeric content of a classification when such a witness is supplied. It has no classification relation and proves neither existence of a classification nor existence of a numeric witness for an arbitrary finite byte string.

Requirement: classification determinism

The carrier's componentwise equality precisely compares two supplied numeric-content records. It has no classification relation and proves neither uniqueness of classifications nor uniqueness of a numeric witness for an input.

Requirement: classification significand digit

The carrier exposes both significand digit lists, but deliberately permits both to be empty. Numeric validity and the required nonemptiness consequence remain outside this definition.

Requirement: rounding totality

The carrier supplies no real-value or binary64-rounding relation and is noninterfering with existence of a rounding target.

Requirement: rounding determinism

The carrier supplies no real-value or binary64-rounding relation and is noninterfering with uniqueness of a rounding target.

Requirement: exponent value agreement

For a supplied numeric-grammar witness, the single retained exponent marker, sign, and entire digit list are available to both later exponent interpretations. This carrier supplies neither interpretation, exact or accumulated values, rounding targets, nor their agreement.

Recorded review

CorrespondencePass
PreservationVerifierPass

DecimalLexeme · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/goal-vocabulary.txt

Open file

Decimal goal-vocabulary primary evidence

Repository-root reproduction commands:
  sha256sum GOAL.md crate/dec2flt/parse.rs crate/dec2flt/mod.rs modeling-input/manifest.json
  nl -ba GOAL.md | sed -n '3,24p'
  nl -ba crate/dec2flt/parse.rs | sed -n '121,155p'
  nl -ba crate/dec2flt/mod.rs | sed -n '282,285p'

Recorded SHA-256 identities:
  b64efb7cb397f6e6b263e6af4a8ad3405cc19d6902b5dd8a4984e3add857fb12  GOAL.md
  50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f  crate/dec2flt/parse.rs
  ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d  crate/dec2flt/mod.rs
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2  modeling-input/manifest.json

GOAL.md lines 9-24 define the optional leading sign, decimal significand,
optional signed exponent, case-insensitive special keywords, whole-input
matching, exact decimal value, IEEE binary64 rounding mode, and the distinct
source-accumulated exponent diagnostic.

The checked source exponent loop at crate/dec2flt/parse.rs lines 141-150 is:
  let mut count = 0;
  while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
      let digit = s[count].wrapping_sub(b'0');
      if exponent < 0x10000 {
          exponent = 10 * exponent + digit as i64;
      }
      count += 1;
  }
  *s_ref = &s[count..];
  if negative { Some(-exponent) } else { Some(exponent) }

The unrestricted source assembly at crate/dec2flt/mod.rs lines 282-285 is:
  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

The extraction and Aeneas scalar meanings used to check that assembly are
reproduced with:

  sha256sum generated.lean \
    /home/leanagent/pv_spike/tools/aeneas/backends/lean/Aeneas/Std/Scalar/Core.lean \
    /home/leanagent/pv_spike/tools/aeneas/backends/lean/Aeneas/Std/Scalar/Casts.lean
  nl -ba generated.lean | sed -n '3800,3812p'
  nl -ba /home/leanagent/pv_spike/tools/aeneas/backends/lean/Aeneas/Std/Scalar/Core.lean \
    | sed -n '45,79p;650,662p'
  nl -ba /home/leanagent/pv_spike/tools/aeneas/backends/lean/Aeneas/Std/Scalar/Casts.lean \
    | sed -n '30,42p'

The reproduced identities are:

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9  generated.lean
  a1c26c125a59bba635a2b2c170186ce07168c43308bcf386d508ebd77f01520e  Aeneas/Std/Scalar/Core.lean
  7ace724788adcdfa7f3ed285f736cb56f48ddb8681d2c8025f7b346ca3e0f15a  Aeneas/Std/Scalar/Casts.lean

The frozen extraction of the source assembly is:

  let i <- lift (IScalar.hcast .U64 x.p_biased)
  let i1 <- traitsFloatExtInst.FloatInst.SIG_BITS
  let i2 <- i <<< i1
  let word <- lift (x.m ||| i2)
  traitsFloatExtInst.from_u64_bits word

Core.lean defines U64 as a 64-bit unsigned scalar, I32 as a 32-bit signed
scalar, their observations respectively as BitVec.toNat and BitVec.toInt, and
their bit widths as 64 and 32.  Casts.lean defines signed-to-unsigned hcast by
sign extension to the target width.  Therefore, for every I32 value p, its U64
cast has unsigned value p modulo 2^64: nonnegative p is unchanged, while
negative p is represented by 2^64+p.  This is exactly
`(p.emod (2^64)).toNat`.  The shift and OR meanings used after this cast are
pinned independently in reference/model-evidence/u64-shl.txt and
reference/model-evidence/u64-bitor.txt.

The manifest pins debug and overflow checks and the f64 extraction basis.  The
vocabulary uses the reference statement, rather than an implementation probe,
for the mathematical finite-byte-string and nonnegative-real domains.
reference/model-evidence/u64-bitor.txt

Open file

U64 BitOr preservation evidence
===============================

Scope
-----

This record pins the source-to-model chain for the external declaration bound
to Tablet/ModelU64BitOr.  The commands below were run from the repository root
on 2026-09-24.  They use the frozen generated.lean and the approved tools
recorded in modeling-input/manifest.json and modeling-input/tool-identities.json.

1. Fresh native-boundary inspection
-----------------------------------

Command:

  python3 .trellis/scripts/pv_modeling.py inspect-native .

The command reported 24 declarations and wrote its full index to:

  .trellis/scratch/inspect-native-1790259866184055823.json

SHA-256 identities:

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9  generated.lean
  1e4419e9c0fff857cbff6848d8e4d0b54267d4f2f3307ee139f058f88930ee77  .trellis/scratch/inspect-native-1790259866184055823.json

These identities are reproduced with:

  sha256sum generated.lean \
    .trellis/scratch/inspect-native-1790259866184055823.json

The exact U64 BitOr entry in that index is:

  name: U64.Insts.CoreOpsBitBitOrU64U64.bitor
  extracted_signature: : Std.U64 → Std.U64 → Result Std.U64
  rust_symbol: core::ops::bit::{impl core::ops::bit::BitOr<u64, u64> for u64}::bitor
  source: /rustc/library/core/src/ops/bit.rs, lines 282:12-282:41
  raw_declaration_sha256: 85930775e3fde73729bff04aa86624f11a9b03b31d18a49dc74ce7bae71b4ed6

The indexed raw declaration is:

  /-- [core::ops::bit::{impl core::ops::bit::BitOr<u64, u64> for u64}::bitor]:
      Source: '/rustc/library/core/src/ops/bit.rs', lines 282:12-282:41
      Name pattern: [core::ops::bit::{core::ops::bit::BitOr<u64, u64, u64>}::bitor]
      Visibility: public -/
  @[rust_fun "core::ops::bit::{core::ops::bit::BitOr<u64, u64, u64>}::bitor"]
  axiom U64.Insts.CoreOpsBitBitOrU64U64.bitor
    : Std.U64 → Std.U64 → Result Std.U64

The declaration hash is reproducible directly from the fresh JSON index:

  jq -jr '.declarations[] | select(.name == "U64.Insts.CoreOpsBitBitOrU64U64.bitor") | .source_utf8' \
    .trellis/scratch/inspect-native-1790259866184055823.json | sha256sum

Output:

  85930775e3fde73729bff04aa86624f11a9b03b31d18a49dc74ce7bae71b4ed6  -

Thus the inspected external is exactly the u64/u64 operation, has the stated
total-looking Result signature, and is traced by extraction to the Rust source
span used below.  This inventory fact identifies the boundary; the next two
sections establish its semantics.

2. Approved Rust implementation
-------------------------------

Toolchain and compiler identity:

  toolchain: nightly-2026-06-01-x86_64-unknown-linux-gnu
  rustc path: /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  rustc SHA-256: 162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  rustc 1.98.0-nightly (14210df0e 2026-05-31)
  commit-hash: 14210df0e27ccd7d9e6a05b8085cbd438e4bbc65
  host: x86_64-unknown-linux-gnu

Reproduction commands:

  RUSTC=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  "$RUSTC" -vV
  "$RUSTC" --print sysroot
  sha256sum "$RUSTC"

The installed rust-src component is under the same sysroot.  Its relevant file
and hash are:

  path: /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/bit.rs
  SHA-256: 31db8c3d227e01a9f60f37221d258dc1b2c8274163264602837bb3f3851c2a4d

The file identity and quoted line range are reproduced with:

  RUSTSRC=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/bit.rs
  sha256sum "$RUSTSRC"
  nl -ba "$RUSTSRC" | sed -n '274,291p'

The pinned source says at lines 274-289:

  macro_rules! bitor_impl {
      ($($t:ty)*) => ($(
          #[stable(feature = "rust1", since = "1.0.0")]
          #[rustc_const_unstable(feature = "const_ops", issue = "143802")]
          impl const BitOr for $t {
              type Output = $t;

              #[inline]
              fn bitor(self, rhs: $t) -> $t { self | rhs }
          }

          forward_ref_binop! { impl BitOr, bitor for $t, $t,
          #[stable(feature = "rust1", since = "1.0.0")]
          #[rustc_const_unstable(feature = "const_ops", issue = "143802")] }
      )*)
  }

and line 291 instantiates that implementation for u64:

  bitor_impl! { bool usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }

Consequently the extracted Rust symbol's u64 implementation returns the
primitive bounded u64 disjunction `self | rhs` for every pair of u64 values;
there is no source guard, failure branch, or reachability precondition.

3. Pinned Aeneas scalar meaning
-------------------------------

Repository identity:

  repository: https://github.com/AeneasVerif/aeneas.git
  revision: fa699427cdfa8f604b891fb0223ef42883dd7dc4
  aeneas binary SHA-256: 9f446d2aaf59e8e705e36d05cb993f1c6ab0e97f8dc6fd2f19907a86ede30922

Reproduction commands (with each relative file path listed below substituted
for PATH):

  AENEAS=/home/leanagent/pv_spike/tools/aeneas
  git -C "$AENEAS" rev-parse HEAD
  git -C "$AENEAS" remote -v
  sha256sum "$AENEAS/bin/aeneas"
  git -C "$AENEAS" diff --quiet fa699427cdfa8f604b891fb0223ef42883dd7dc4 -- PATH
  sha256sum "$AENEAS/PATH"
  git -C "$AENEAS" ls-tree fa699427cdfa8f604b891fb0223ef42883dd7dc4 PATH

`git diff --quiet fa699427cdfa8f604b891fb0223ef42883dd7dc4 -- <path>`
returned status 0 for each file recorded below, so the inspected worktree files
are the files at the pinned revision.

File:

  backends/lean/Aeneas/Std/Scalar/Core.lean
  SHA-256: a1c26c125a59bba635a2b2c170186ce07168c43308bcf386d508ebd77f01520e
  git blob: f8582928fe49a0ce75e143b46bb0a8826d7fddae

Its definitions at lines 28-34, 45-53, 65-69, and 650-656 include:

  inductive UScalarTy where
  | Usize
  | U8
  | U16
  | U32
  | U64
  | U128

  def UScalarTy.numBits (ty : UScalarTy) : Nat :=
    match ty with
    | Usize => System.Platform.numBits
    | U8 => 8
    | U16 => 16
    | U32 => 32
    | U64 => 64
    | U128 => 128

  structure UScalar (ty : UScalarTy) where
    bv : BitVec ty.numBits

  abbrev U64 := UScalar .U64

Thus Std.U64 is exactly a UScalar whose sole data field is a BitVec 64.

File:

  backends/lean/Aeneas/Std/Scalar/Bitwise.lean
  SHA-256: 63e4b1d0906c972fb4fef953d8d8a60410dcf5313261d2583b1170b4a1a5ce29
  git blob: d3eb5022efc22d1d6c3ac055965f612c7f2fbca9

Its definitions at lines 118-126 and theorem at line 275 are:

  def UScalar.or {ty} (x y : UScalar ty) : UScalar ty :=
    ⟨ x.bv ||| y.bv ⟩

  instance {ty} : HOr (UScalar ty) (UScalar ty) (UScalar ty) where
    hOr x y := UScalar.or x y

  theorem UScalar.bv_or {ty} (x y : UScalar ty) :
      (x ||| y).bv = x.bv ||| y.bv := by rfl

For an explicit bit-level characterization of the BitVec operation used there,
the same pinned repository contains:

  backends/lean/Aeneas/Data/BitVec.lean
  SHA-256: 66d6e1922a45beff2d75e71e10dc6e8294c7cbf69f95b22dc22f98c5667382a7
  git blob: f7bc57109569cdd0fb0c3323021c73673dcfcd33

Lines 141-146 prove, for every width and bit index:

  theorem BitVec.getElem!_or {w} (x y : BitVec w) (i : Nat) :
      (x ||| y)[i]! = (x[i]! || y[i]!) := by
    by_cases i < w
    . simp only [getElem!_eq_getElem, getElem_or, *]
    . simp_all only [not_lt, getElem!_eq_false, Bool.or_self]

Therefore `x ||| y` on Std.U64 constructs the unique 64-bit vector whose bit
at every position is the Boolean disjunction of the corresponding operand
bits.  It is total and introduces neither overflow nor a failure condition.
reference/model-evidence/u64-shl-probe.rs

Open file

use std::panic::{catch_unwind, AssertUnwindSafe};

#[inline(never)]
fn shift(x: u64, count: u32) -> u64 {
    x << count
}

fn observe(x: u64, count: u32) {
    match catch_unwind(AssertUnwindSafe(|| shift(x, count))) {
        Ok(value) => println!("count={count} ok={value:#018x}"),
        Err(_) => println!("count={count} panic"),
    }
}

fn main() {
    std::panic::set_hook(Box::new(|_| {}));
    let x = 0x8000_0000_0000_0001_u64;
    for count in [0, 1, 52, 63, 64, 65, u32::MAX] {
        observe(x, count);
    }
}
reference/model-evidence/u64-shl.txt

Open file

U64 Shl preservation evidence
=============================

Scope
-----

This record pins the source-to-model chain for the external declaration bound
to Tablet/ModelU64Shl.  The commands below were run from the repository root on
2026-09-24.  They use the frozen generated.lean, extraction configuration, and
approved tools recorded in modeling-input/manifest.json and
modeling-input/tool-identities.json.  The two semantic cases are both in scope:
all U32 counts below 64 return a bounded U64 shift, and all U32 counts at least
64 encounter the enabled checked-shift failure.

1. Fresh native-boundary inspection
-----------------------------------

Command:

  python3 .trellis/scripts/pv_modeling.py inspect-native .

The command reported 24 declarations and wrote its full index to:

  .trellis/scratch/inspect-native-1790260978718245524.json

SHA-256 identities:

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9  generated.lean
  1e4419e9c0fff857cbff6848d8e4d0b54267d4f2f3307ee139f058f88930ee77  .trellis/scratch/inspect-native-1790260978718245524.json

These identities are reproduced with:

  sha256sum generated.lean \
    .trellis/scratch/inspect-native-1790260978718245524.json

The exact U64 Shl entry in that fresh index is:

  name: U64.Insts.CoreOpsBitShlU32U64.shl
  extracted_signature: : Std.U64 → Std.U32 → Result Std.U64
  rust_symbol: core::ops::bit::{impl core::ops::bit::Shl<u32, u64> for u64}::shl
  source: /rustc/library/core/src/ops/bit.rs, lines 489:12-489:41
  raw_declaration_sha256: e025ae44955b09fe95d7d8e997cb0ecafdfeea85b78bf40427e6f9bb14bb985d

The indexed raw declaration is:

  /-- [core::ops::bit::{impl core::ops::bit::Shl<u32, u64> for u64}::shl]:
      Source: '/rustc/library/core/src/ops/bit.rs', lines 489:12-489:41
      Name pattern: [core::ops::bit::{core::ops::bit::Shl<u64, u32, u64>}::shl]
      Visibility: public -/
  @[rust_fun "core::ops::bit::{core::ops::bit::Shl<u64, u32, u64>}::shl"]
  axiom U64.Insts.CoreOpsBitShlU32U64.shl
    : Std.U64 → Std.U32 → Result Std.U64

The declaration hash is reproduced directly from the fresh JSON index by:

  jq -jr '.declarations[] | select(.name ==
    "U64.Insts.CoreOpsBitShlU32U64.shl") | .source_utf8' \
    .trellis/scratch/inspect-native-1790260978718245524.json | sha256sum

Output:

  e025ae44955b09fe95d7d8e997cb0ecafdfeea85b78bf40427e6f9bb14bb985d  -

Thus this boundary is specifically u64 shifted by u32, and its extracted
codomain is the Aeneas Result used below to distinguish normal return from
checked overflow.

2. Approved Rust implementation and build mode
-----------------------------------------------

Toolchain and compiler identity:

  toolchain: nightly-2026-06-01-x86_64-unknown-linux-gnu
  rustc path: /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  rustc SHA-256: 162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  rustc 1.98.0-nightly (14210df0e 2026-05-31)
  commit-hash: 14210df0e27ccd7d9e6a05b8085cbd438e4bbc65
  host: x86_64-unknown-linux-gnu

Reproduction commands:

  RUSTC=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  "$RUSTC" -vV
  "$RUSTC" --print sysroot
  sha256sum "$RUSTC"

The installed rust-src component is under that same sysroot.  Its relevant
file and identity are:

  path: /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/bit.rs
  SHA-256: 31db8c3d227e01a9f60f37221d258dc1b2c8274163264602837bb3f3851c2a4d

The file identity and source are reproduced with:

  RUSTSRC="$($RUSTC --print sysroot)/lib/rustlib/src/rust/library/core/src/ops/bit.rs"
  sha256sum "$RUSTSRC"
  nl -ba "$RUSTSRC" | sed -n '479,520p'

Lines 479-498 define the implementation macro:

  macro_rules! shl_impl {
      ($t:ty, $f:ty) => {
          #[stable(feature = "rust1", since = "1.0.0")]
          #[rustc_const_unstable(feature = "const_ops", issue = "143802")]
          const impl Shl<$f> for $t {
              type Output = $t;

              #[inline]
              #[track_caller]
              #[rustc_inherit_overflow_checks]
              fn shl(self, other: $f) -> $t {
                  self << other
              }
          }

          forward_ref_binop! { impl Shl, shl for $t, $f,
          #[stable(feature = "rust1", since = "1.0.0")]
          #[rustc_const_unstable(feature = "const_ops", issue = "143802")] }
      };
  }

Lines 500-518 apply `shl_impl! { $t, u32 }` to every type in
`shl_impl_all!`, and instantiate that outer macro with `u64` among its types:

  macro_rules! shl_impl_all {
      ($($t:ty)*) => ($(
          shl_impl! { $t, u8 }
          shl_impl! { $t, u16 }
          shl_impl! { $t, u32 }
          shl_impl! { $t, u64 }
          shl_impl! { $t, u128 }
          shl_impl! { $t, usize }
          ...
      )*)
  }

  shl_impl_all! { u8 u16 u32 u64 u128 usize i8 i16 i32 i64 i128 isize }

Therefore the inspected symbol has exactly this method body for `Shl<u32> for
u64`, and `#[rustc_inherit_overflow_checks]` makes its primitive `self << other`
use the calling crate's overflow-check mode.

The frozen configuration identities are:

  2040ce5dc92c51b5245113f97682b692b876aa57708b5c7c483425ba152943c8  crate/Cargo.toml
  a45e9bc0c57213e415eb8fa5cec983c44259d336522e6eec8760e7237b7779d7  modeling-input/extraction.json
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2  modeling-input/manifest.json
  68fc7ab89dac4e5389a286b36d919fde5481b2c5673fc7006c7f693afd6ceedf  modeling-input/tool-identities.json

They are reproduced by `sha256sum` on those four paths.  Cargo.toml lines
18-22 set `overflow-checks = true` in both the development and release
profiles.  modeling-input/SETUP.md lines 17-22 record that extraction uses the
development profile with overflow checks enabled.  The frozen
modeling-input/extraction.json is:

  {"crate":"crate","cargo_args":[],"charon_args":[],"aeneas_args":[]}

so no extraction argument disables that setting.  The manifest pins
`RUSTUP_TOOLCHAIN=nightly-2026-06-01` and the exact cargo/rustc toolchain.  There
is no `panic` override in Cargo.toml; the approved rustc's default target cfg,
reproduced by `"$RUSTC" --print cfg`, includes:

  panic="unwind"
  target_arch="x86_64"
  target_pointer_width="64"

Thus the frozen build uses checked shifts and unwinding panics.

3. Same-toolchain checked-shift probe and MIR
---------------------------------------------

The durable probe source is:

  reference/model-evidence/u64-shl-probe.rs

with SHA-256:

  a0f0f822b3ea216799bb900835341f6117d47b59b9d6ad3d9cbc3af07e2792a8

It places the same primitive expression `x << count` in a non-inlined function,
runs it on representative boundary counts while catching unwinding panics, and
does not mask or reduce the count.  Reproduce it from the repository root with:

  RUSTC=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  cd .trellis/scratch
  "$RUSTC" -C overflow-checks=yes -C panic=unwind \
    ../../reference/model-evidence/u64-shl-probe.rs -o u64-shl-probe
  ./u64-shl-probe
  "$RUSTC" -C overflow-checks=yes -C panic=unwind --emit=mir=u64-shl-probe.mir \
    ../../reference/model-evidence/u64-shl-probe.rs
  sed -n '/fn shift(/,/^}/p' u64-shl-probe.mir

Runtime output:

  count=0 ok=0x8000000000000001
  count=1 ok=0x0000000000000002
  count=52 ok=0x0010000000000000
  count=63 ok=0x8000000000000000
  count=64 panic
  count=65 panic
  count=4294967295 panic

The same invocation emits this MIR for the complete dynamic-count function:

  fn shift(_1: u64, _2: u32) -> u64 {
      debug x => _1;
      debug count => _2;
      let mut _0: u64;
      let mut _3: bool;

      bb0: {
          _3 = Lt(copy _2, const 64_u32);
          assert(move _3, "attempt to shift left by `{}`, which would overflow", copy _2) -> [success: bb1, unwind continue];
      }

      bb1: {
          _0 = Shl(copy _1, copy _2);
          return;
      }
  }

The MIR is general in both arguments: exactly when `count < 64`, control reaches
the U64 `Shl` operation and returns its bounded 64-bit result; otherwise the
assertion takes its unwind edge.  The runtime boundary observations confirm
that the configured panic strategy makes that failure catchable at 64, 65, and
the largest U32 count, while counts 0, 1, 52, and 63 return normally with the
expected truncation to 64 bits.

4. Pinned Aeneas carrier and shift meaning
------------------------------------------

Repository and translator identity:

  repository: https://github.com/AeneasVerif/aeneas.git
  revision: fa699427cdfa8f604b891fb0223ef42883dd7dc4
  aeneas binary SHA-256: 9f446d2aaf59e8e705e36d05cb993f1c6ab0e97f8dc6fd2f19907a86ede30922

Reproduction commands (substitute each relative path below for PATH):

  AENEAS=/home/leanagent/pv_spike/tools/aeneas
  git -C "$AENEAS" rev-parse HEAD
  git -C "$AENEAS" remote -v
  sha256sum "$AENEAS/bin/aeneas"
  git -C "$AENEAS" diff --quiet fa699427cdfa8f604b891fb0223ef42883dd7dc4 -- PATH
  sha256sum "$AENEAS/PATH"
  git -C "$AENEAS" ls-tree fa699427cdfa8f604b891fb0223ef42883dd7dc4 PATH

The `git diff --quiet` command returned status 0 for every file below, so each
inspected worktree file is the file at the pinned revision.

File:

  backends/lean/Aeneas/Std/Scalar/Core.lean
  SHA-256: a1c26c125a59bba635a2b2c170186ce07168c43308bcf386d508ebd77f01520e
  git blob: f8582928fe49a0ce75e143b46bb0a8826d7fddae

Lines 28-34, 45-53, 65-71, 90-95, and 650-656 define:

  inductive UScalarTy where
  | Usize
  | U8
  | U16
  | U32
  | U64
  | U128

  def UScalarTy.numBits (ty : UScalarTy) : Nat :=
    match ty with
    | Usize => System.Platform.numBits
    | U8 => 8
    | U16 => 16
    | U32 => 32
    | U64 => 64
    | U128 => 128

  structure UScalar (ty : UScalarTy) where
    bv : BitVec ty.numBits

  def UScalar.val {ty} (x : UScalar ty) : Nat := x.bv.toNat
  irreducible_def UScalar.size (ty : UScalarTy) : Nat := 2^ty.numBits
  abbrev U32 := UScalar .U32
  abbrev U64 := UScalar .U64

Thus Std.U64 contains exactly a 64-bit vector, Std.U32 contains exactly a
32-bit vector, and the count's `val` ranges over the full U32 domain.

File:

  backends/lean/Aeneas/Std/Scalar/Bitwise.lean
  SHA-256: 63e4b1d0906c972fb4fef953d8d8a60410dcf5313261d2583b1170b4a1a5ce29
  git blob: d3eb5022efc22d1d6c3ac055965f612c7f2fbca9

Lines 17-21 and 29-31 define:

  def UScalar.shiftLeft {ty : UScalarTy} (x : UScalar ty) (s : Nat) :
      Result (UScalar ty) :=
    if s < ty.numBits then
      ok ⟨ x.bv.shiftLeft s ⟩
    else fail .integerOverflow

  def UScalar.shiftLeft_UScalar {ty tys} (x : UScalar ty) (s : UScalar tys) :
      Result (UScalar ty) :=
    x.shiftLeft s.val

Lines 81-82 resolve the notation used by Tablet/ModelU64Shl.lean:

  instance {ty0 ty1} : HShiftLeft (UScalar ty0) (UScalar ty1)
      (Result (UScalar ty0)) where
    hShiftLeft x y := UScalar.shiftLeft_UScalar x y

Consequently `x <<< y` for `x : Std.U64` and `y : Std.U32` tests exactly
`y.val < 64`: below 64 it is `ok` of the 64-bit vector shift; at least 64 it is
exactly `fail .integerOverflow`.

The same file's `UScalar.ShiftLeft_spec`, lines 193-205, proves the successful
branch has both equivalent bounded descriptions:

  theorem UScalar.ShiftLeft_spec ... (hy : y.val < ty0.numBits) ... :
    (x <<< y) ⦃ z =>
      z.val = (x.val <<< y.val) % size ∧
      z.bv = x.bv <<< y.val ⦄

For U64, `size` is `2^64`; hence the returned natural value is the mathematical
left shift reduced modulo `2^64`, and the returned carrier is exactly the
corresponding 64-bit vector.

File:

  backends/lean/Aeneas/Data/BitVec.lean
  SHA-256: 66d6e1922a45beff2d75e71e10dc6e8294c7cbf69f95b22dc22f98c5667382a7
  git blob: f7bc57109569cdd0fb0c3323021c73673dcfcd33

Its lines 248-266 give the bit-level characterization: every result bit below
the shift count (or outside the fixed width) is false, and every in-width bit at
or above the count equals the corresponding input bit at index `i - n`:

  theorem BitVec.getElem!_shiftLeft_false ...
      (h : i < n ∨ w ≤ i) : (v <<< n)[i]! = false

  theorem BitVec.getElem!_shiftLeft_eq ...
      (h : n ≤ i ∧ i < w) : (v <<< n)[i]! = v[i - n]!

Finally, the model's failure constructor is pinned in:

  backends/lean/Aeneas/Std/Primitives.lean
  SHA-256: f3e9dc9ee62646d579b97747725c07f18760498601b5a37e48031d2f4893035a
  git blob: e5733a774268c8dee71bd4ba402240d151bb8cb8

Lines 50-64 include the distinct `Error.integerOverflow` constructor and
`Result.fail`.  Therefore the at-least-64 branch is the explicit Aeneas checked
integer-overflow failure, not a wrapping or masked shift.

5. Case-by-case preservation conclusion
----------------------------------------

Let x be any source/model U64 word and n any source/model U32 count; the carrier
definitions above identify their bits and numeric values exactly.

If n < 64, the Rust checked-shift assertion succeeds and the source method runs
the primitive U64 shift.  The Aeneas branch condition also succeeds and returns
`ok` of `BitVec.shiftLeft n`.  `UScalar.ShiftLeft_spec` and the BitVec lemmas
identify both results as the same 64-bit word, equivalently `(x * 2^n) mod
2^64`, with discarded high bits and zero-filled low bits.

If n >= 64, the configured Rust operation takes the checked-overflow panic
edge.  The Aeneas branch condition fails and returns `fail .integerOverflow`,
the extracted Result representation of that checked shift failure.  This holds
for the entire remaining U32 range, including counts larger than 64; it is not
restricted to counts reached by current parser executions.

Thus Tablet/ModelU64Shl preserves both the normal result and checked-failure
observations of the exact extracted Rust operation on its full U64 x U32 input
domain.
Assumptions / kernel axioms
  • propext

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (31)
All 31 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourcecommitted_node_kinds / pv_tablet.json
Kindauthored definition
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:6e0662b43d58b11899df5abc12b068d22507d1ac93928a9e58ea8f922dffe6fa
Preservation current fingerprintpreservation-v1:6e0662b43d58b11899df5abc12b068d22507d1ac93928a9e58ea8f922dffe6fa
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"aeeeec41a307a5fb7e3916c9c4899c4077abccd652062c92a252fc65a8e7d7a6","lean_semantic_closure":"88a55d30e14969c279ce18cf88b25a016c40d52cad5a1a166d71f5f189370a56","preamble_tex":""}
Correspondence current fingerprint{"own_tex":"aeeeec41a307a5fb7e3916c9c4899c4077abccd652062c92a252fc65a8e7d7a6","lean_semantic_closure":"88a55d30e14969c279ce18cf88b25a016c40d52cad5a1a166d71f5f189370a56","preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "ff6f2221d1d4866041c7edfe4572ca1dc91cfd6b3b2c4ee1932650d9a95ecff1",
    "dep_statement_hashes": {},
    "combined_sound_fp": "preservation-v1:6e0662b43d58b11899df5abc12b068d22507d1ac93928a9e58ea8f922dffe6fa"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/goal-vocabulary.txt",
    "sha256": "63198d6b0d49268462ac8c71a2f44c8242f4b3e1b38dde33e57450683f26efe0",
    "cited_by": [
      "Tablet/DecimalLexeme.tex",
      "committed_node_kinds / pv_tablet.json"
    ]
  },
  {
    "path": "reference/model-evidence/u64-bitor.txt",
    "sha256": "7afd4000ae945f6ed47f2dda330dc2ca21dd4f0d229b3ec69b81e928a45f57d4",
    "cited_by": [
      "reference/model-evidence/goal-vocabulary.txt"
    ]
  },
  {
    "path": "reference/model-evidence/u64-shl-probe.rs",
    "sha256": "a0f0f822b3ea216799bb900835341f6117d47b59b9d6ad3d9cbc3af07e2792a8",
    "cited_by": [
      "reference/model-evidence/u64-shl.txt"
    ]
  },
  {
    "path": "reference/model-evidence/u64-shl.txt",
    "sha256": "0f1f325b4ac82b37653f4d4f9d96ce8bc1df43a34ad0efb0e1f341ddaa7b45ba",
    "cited_by": [
      "reference/model-evidence/goal-vocabulary.txt"
    ]
  }
]

DecimalSeqExponentEval

Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Tablet.num_imp_dec2flt_decimal_seq_parse_decimal_seq

open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model

-- [TABLET NODE: DecimalSeqExponentEval]
def DecimalSeqExponentEval (s : Slice Std.U8) (base : Std.I32) :
    Result Std.I32 :=
-- BODY
  do
    let empty <- core.slice.Slice.is_empty s
    if empty then ok base else
      let ch <- Slice.index_usize s 0#usize
      if ch = 101#u8 then
        let s3 <- core.slice.index.Slice.index
          (core.slice.index.SliceIndexRangeFromUsizeSlice Std.U8) s
          { start := 1#usize }
        let b2 <- core.slice.Slice.is_empty s3
        let (s4, exp_sign) <- if b2 then ok (s3, 1#i32) else do
          let ch1 <- Slice.index_usize s3 0#usize
          let exp_sign1 <- if ch1 = 45#u8 then ok (-1)#i32 else ok 1#i32
          let s5 <- if ch1 = 45#u8 then
              core.slice.index.Slice.index
                (core.slice.index.SliceIndexRangeFromUsizeSlice Std.U8) s3
                { start := 1#usize }
            else if ch1 = 43#u8 then
              core.slice.index.Slice.index
                (core.slice.index.SliceIndexRangeFromUsizeSlice Std.U8) s3
                { start := 1#usize }
            else ok s3
          ok (s5, exp_sign1)
        let exp_num <- num.imp.dec2flt.decimal_seq.parse_decimal_exponent s4
        let signed <- exp_sign * exp_num
        base + signed
      else if ch = 69#u8 then
        let s3 <- core.slice.index.Slice.index
          (core.slice.index.SliceIndexRangeFromUsizeSlice Std.U8) s
          { start := 1#usize }
        let b2 <- core.slice.Slice.is_empty s3
        let (s4, exp_sign) <- if b2 then ok (s3, 1#i32) else do
          let ch1 <- Slice.index_usize s3 0#usize
          let exp_sign1 <- if ch1 = 45#u8 then ok (-1)#i32 else ok 1#i32
          let s5 <- if ch1 = 45#u8 then
              core.slice.index.Slice.index
                (core.slice.index.SliceIndexRangeFromUsizeSlice Std.U8) s3
                { start := 1#usize }
            else if ch1 = 43#u8 then
              core.slice.index.Slice.index
                (core.slice.index.SliceIndexRangeFromUsizeSlice Std.U8) s3
                { start := 1#usize }
            else ok s3
          ok (s5, exp_sign1)
        let exp_num <- num.imp.dec2flt.decimal_seq.parse_decimal_exponent s4
        let signed <- exp_sign * exp_num
        base + signed
      else ok base

end dec2flt_model

Why this model is faithful

Definition · Optional decimal exponent evaluation

For a residual byte slice s and an I32 base value, define DecimalSeqExponentEval to be the extracted parser's optional exponent computation: return the base on an empty residual; otherwise inspect an uppercase or lowercase exponent marker, consume an optional sign, fold the remaining decimal exponent digits, apply the sign, and add the signed exponent to the base. A non-exponent marker leaves the base unchanged.

Preservation argument

Claim

For every residual byte slice r and every I32 base p, DecimalSeqExponentEval(r,p) is exactly, as a monadic Result computation, the optional-exponent fragment repeated in the pinned parse_decimal_seq declaration. Thus it returns p when r is empty or its first byte is neither e nor E; after either marker it removes an optional - or +, invokes the pinned decimal-exponent parser on the resulting suffix, multiplies by the corresponding I32 sign, and adds the result to p. Equality includes both the normal I32 result and failure at the same checked operation. This is also the behavior of the optional-exponent source fragment at crate/dec2flt/decimal_seq.rs:336--358 and of the corresponding original fragment after the recorded source adaptation.

Proof

Expand DecimalSeqExponentEval and compare it with the repeated optional-exponent fragments in the pinned parse_decimal_seq declaration num imp dec2flt decimal seq parse decimal seq. Both computations first call Slice.is_empty. If r is empty, both immediately return ok p, so neither performs an index, a slice, exponent parsing, or arithmetic. If r is nonempty, both index position zero. The preceding nonemptiness branch is exactly the bounds justification for that index; any modeled failure of the bind is propagated before the byte tests in both computations.
For a first byte other than decimal 101 and 69, the nested tests reach ok p. For decimal 101 (ASCII e), each computation takes the suffix from index one; for decimal 69 (ASCII E), it takes a second, textually duplicated branch with the same operations. In either case the marker branch itself just established that r is nonempty, so the range-from-one slice has a valid boundary. A failure of that slice operation is nevertheless the same next monadic failure on each side.
Write t for the post-marker suffix. Both computations test whether t is empty. If it is, they pass the pair (t,1) onward without indexing it. If it is not, they index its first byte under that guard. A minus byte (decimal 45) selects sign -1 and slices from one; a plus byte (decimal 43) selects sign 1 and slices from one; every other byte selects sign 1 and leaves t unchanged. Consequently the exponent-digit suffix and sign agree in the empty, minus, plus, and no-sign cases. The two guarded range slices have the same bound and the same failure propagation as their inline counterparts.
Both sides next call the pinned parse_decimal_exponent declaration on exactly that suffix num imp dec2flt decimal seq parse decimal exponent. Its result is bound before further arithmetic, so its failure is returned unchanged. On a normal result e, both sides perform the same checked I32 multiplication of the selected sign by e and then the same checked I32 addition to p; a failure of either operation is therefore returned at the same point, while two successful operations yield the same p+(\mathord{\pm}e).
Finally, the source/adaptation comparison reference/model-evidence/source-adaptation-delta.txt checks the source split-first and digit-fold fragment against the adapted guarded indexing and slicing. It records that parse_decimal_exponent has the same digit order, wrapping ASCII classification, and \mathtt{0x10000} update guard as the original closure. That guard bounds the accumulated nonnegative exponent, so multiplication by -1 is defined and equals the source's negative branch; multiplication by 1 equals its positive branch. The evidence also records that the final checked decimal-point addition remains in the same position. Hence the pinned fragment, this factoring, the adapted source, and the original source have identical normal and modeled-failure behavior for every r and p.
Authored arguments for individual requirements

Requirement: parser totality

This definition is only a name for the existing optional-exponent Result fragment, on every residual and base and with identical failures. Replacing the inline fragment by this name adds no domain premise and changes no normal-or-panic observation relevant to totality.

Requirement: parser numeric acceptance

On the numeric path, the same e/E, sign, exponent-fold, and checked-add branches are executed. The factoring neither strengthens numeric grammar nor assumes acceptance, so it preserves whatever dec2flt returns for each numeric literal.

Requirement: parser invalid rejection

Empty, non-exponent, signed-exponent, and exponent-parser failure cases are all preserved exactly. Thus this modeling name neither consumes an extra invalid byte nor turns a failure into success, and it adds no premise to the invalid-input claim.

Requirement: parser nan acceptance

NaN inputs are handled by the special-literal branch before decimal-sequence parsing. Naming this numeric slow-path fragment leaves that branch, its returned word, and its domain unchanged.

Requirement: parser infinity

Infinity inputs likewise use the special helper rather than the decimal-sequence exponent fragment. The definition therefore does not alter either lexical sign or the returned infinity.

Requirement: parser non nan results

For a numeric execution that reaches the slow path, the decimal point and every failure are unchanged; for a special execution, this definition is not invoked. Hence it introduces no new source of a NaN and assumes no no-NaN conclusion.

Requirement: parser numeric sign

The public lexical sign is applied outside parse_decimal_seq; the sign factored here is only the explicit decimal exponent sign and produces the identical point update. Thus the returned-word sign path is untouched.

Requirement: parser signed zero

The helper changes neither the public lexical-sign bit nor the significand digits, and its exponent adjustment is exactly the existing one. Consequently the zero path and its later sign assembly are not modified or restricted.

Requirement: parser exact rounding

The slow conversion receives exactly the decimal-point value produced by the pinned parser, including every optional-exponent case. This factoring adds no condition on a numeric literal and does not assume that its eventual rounded result is correct.

Requirement: parser selected exponent

Any raw pair selected downstream is computed from the same decimal-sequence point because the factored branch has the same I32 result or failure. No range premise on the selected biased exponent is introduced.

Requirement: parser selected magnitude sign

This fragment changes no raw-pair assembly or public sign application; it merely reproduces the existing decimal-point update. The selected magnitude word is therefore the same word as in the pinned execution.

Requirement: dispatch abstract composition

The optional-exponent computation inside the slow numeric component is represented extensionally on its full model domain, with no extra precondition. Abstract components and dispatcher calls therefore see precisely the old normal result or failure, independently of whether the composition claim is true.

Requirement: dispatch component compliance

The actual slow component still performs the pinned optional-exponent code for every call-site residual and base. The factoring neither supplies nor assumes any disputed component contract and adds no dispatcher premise.

Requirement: parser accumulated rounding

The bounded explicit exponent contributes to the accumulated-exponent value through exactly the same signed I32 addition. The parser's result, failure behavior, and accumulated target are unchanged, without assuming that the result rounds to that target.

Requirement: parser equal target rounding

Because the exact and accumulated targets are defined from the same literal while this definition preserves the parser's exponent update, their equality condition and the parser output are unchanged. No equality-of-targets premise is added by the factoring.

Requirement: number helper acceptance

The parse_number helper has its own exponent scan and returns a Decimal record; it does not call this decimal-sequence finalizer. Its byte-slice domain and Option result are therefore unaffected.

Requirement: number helper rejection

Invalid rejection by parse_number is decided before any slow decimal-sequence conversion. This separate Result I32 definition cannot change the helper's None cases.

Requirement: number helper record bounds

This definition constructs no Decimal record and modifies neither mantissa, negative, nor many_digits. The record-bound obligation is noninterfering.

Requirement: number helper accumulated value

The diagnostic statement concerns the record returned by parse_number, whereas this factoring is used later by parse_decimal_seq. It changes neither record exponent nor mantissa and hence is noninterfering.

Requirement: special helper infinity

The parse_inf_nan helper and its separate sign argument do not use decimal-sequence exponent evaluation. Keyword recognition and the infinity word are unchanged.

Requirement: special helper nan

NaN keyword recognition and NaN construction occur in parse_inf_nan, disjoint from this definition. No byte, sign argument, or result of that helper is altered.

Requirement: special helper rejection

The special helper's three-keyword comparison does not call this definition. Its None behavior on every other byte slice is therefore unchanged.

Requirement: native correct or defer

The native shortcut consumes a Decimal record and does not construct a DecimalSeq. Optional decimal-sequence exponent evaluation is not on that path, so its Option result and rounding expression are unchanged.

Requirement: integer correct or defer

compute_float operates on an already supplied I64 exponent and U64 mantissa. It neither calls nor observes this residual-slice computation, so its raw-pair behavior is unchanged.

Requirement: slow accumulated rounding

parse_long_mantissa obtains its record from parse_decimal_seq; this definition exactly factors that parser's optional-exponent point update and adds no premise on the unsigned numeric input. Thus the full-significand record and all later slow-path observations are preserved without assuming the rounding conclusion.

Requirement: assembly correspondence

Assembly takes only a completed BiasedFp and performs word operations. It has no residual slice or decimal-point input, so this definition cannot alter its all-field-values statement.

Requirement: classification totality

Classification is a mathematical relation on every finite byte string and does not evaluate the extracted optional-exponent helper. Its domain and three possible classifications remain unchanged.

Requirement: classification determinism

The uniqueness of a grammatical classification and parsed content is specified independently of this executable factoring. No grammar production or parsed mathematical exponent is redefined.

Requirement: classification significand digit

Whether a numeric grammar derivation contains a significand digit is independent of the later decimal-sequence point update. This definition neither adds nor removes any grammar derivation.

Requirement: rounding totality

The abstract rounding relation ranges over nonnegative reals and has no slice, I32 base, or parser execution. Its existence claim is therefore noninterfering.

Requirement: rounding determinism

The uniqueness of the binary64 target is likewise an abstract real-number property. Naming an extracted parser fragment does not change its input, candidate targets, or equality relation.

Requirement: exponent value agreement

This mathematical goal compares exact and bounded-accumulation values under an explicit equality hypothesis; it does not execute parse_decimal_seq. The factoring neither changes those definitions nor assumes their exponent-equality premise, so it is noninterfering.

Recorded review

CorrespondencePass
PreservationVerifierPass

DecimalSeqExponentEval · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

extraction-evidence/COMMAND.json

Open file

{"declaration_reader_sha256":"76f60cf0b867fad9727d2256d32b306c8cba3725216a4225d0f83add77fd6158","extraction_provenance":{"extraction_toolchain":{"aeneas":"fa699427","aeneas_revision":"fa699427cdfa8f604b891fb0223ef42883dd7dc4","cargo_features":[{"features":["default"],"name":"dec2flt-model","source":"workspace:Cargo.toml","version":"0.1.0"}],"cargo_lock_sha256":"bc644c624ded89197356bbd65d995054b7fb08e5bdfbaa38c6e7c7a53772cecf","cfg":["debug_assertions","emscripten_wasm_eh","feature=\"default\"","fmt_debug=\"full\"","overflow_checks","panic=\"unwind\"","relocation_model=\"pic\"","target_abi=\"\"","target_arch=\"x86_64\"","target_endian=\"little\"","target_env=\"gnu\"","target_family=\"unix\"","target_feature=\"fxsr\"","target_feature=\"sse\"","target_feature=\"sse2\"","target_feature=\"x87\"","target_has_atomic","target_has_atomic=\"16\"","target_has_atomic=\"32\"","target_has_atomic=\"64\"","target_has_atomic=\"8\"","target_has_atomic=\"ptr\"","target_has_atomic_load_store","target_has_atomic_load_store=\"16\"","target_has_atomic_load_store=\"32\"","target_has_atomic_load_store=\"64\"","target_has_atomic_load_store=\"8\"","target_has_atomic_load_store=\"ptr\"","target_has_atomic_primitive_alignment=\"16\"","target_has_atomic_primitive_alignment=\"32\"","target_has_atomic_primitive_alignment=\"64\"","target_has_atomic_primitive_alignment=\"8\"","target_has_atomic_primitive_alignment=\"ptr\"","target_has_reliable_f128","target_has_reliable_f16","target_has_reliable_f16_math","target_object_format=\"elf\"","target_os=\"linux\"","target_pointer_width=\"64\"","target_thread_local","target_vendor=\"unknown\"","ub_checks","unix"],"charon":"0.1.216","charon_revision":"6f058254eb741c12e9b388df07adaf7cc8aac8ed","extraction_profile":"dev","lean":"4.30.0-rc2","overflow_checks":true,"panic_strategy":"unwind","rustc_vv":"rustc 1.98.0-nightly (14210df0e 2026-05-31)\nbinary: rustc\ncommit-hash: 14210df0e27ccd7d9e6a05b8085cbd438e4bbc65\ncommit-date: 2026-05-31\nhost: x86_64-unknown-linux-gnu\nrelease: 1.98.0-nightly\nLLVM version: 22.1.6\n","target_pointer_width":64,"target_triple":"x86_64-unknown-linux-gnu"},"extractor_stack":["charon@0.1.216","aeneas@fa699427"],"extractor_toolchain_sha256":"18657da0659dee7889ed8a937b136c9abbc3a35e9050241cd8201c94fd232323","not_recorded":[],"source_digests":[{"source_file":"lib.rs","source_sha256":"63c7f58df6caff552519c92155d902daf8a1015797adcd3f357f8b8cf1652b00"}]},"extractor_script_path":"/home/leanagent/pv_runs/trellis-native-implementation-v91/scripts/extract_pv_model.py","extractor_script_sha256":"cc1fdd50a78185c7bb564b715c554cb35d9fc09ed566b6c3d4f482f2d27ef67d","kernel_gate_checkers":[],"log_concatenation_order":"runs_then_steps_in_array_order","runs":[{"run_role":"primary","steps":[{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","-vV"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"rustc-version","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/pv_spike/tools/charon/bin/charon","cargo","--preset=aeneas","--dest-file","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc","--","--offline","--profile","dev","--target","x86_64-unknown-linux-gnu"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"charon","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/cargo","metadata","--format-version=1","--locked","--offline","--filter-platform","x86_64-unknown-linux-gnu"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"cargo-metadata","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/cargo","rustc","--lib","--locked","--offline","--profile","dev","--target","x86_64-unknown-linux-gnu","--","--print","cfg"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"cargo-rustc-cfg","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/pv_spike/tools/aeneas/bin/aeneas","-backend","lean","-dest","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen","-emit-json","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"aeneas","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"}]}],"schema":"trellis-extraction-command/v1","tool_source_checkouts":[]}
extraction-evidence/RESULT.json

Open file

{"command_sha256":"5f26225136b8c7c4d7f95615e3e8ff8b357e523eeada4bc649e50f9c76cb9bda","runs":[{"generated_lean_sha256":"45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9","run_role":"primary","steps":[{"exit_status":0,"stderr_byte_length":0,"stderr_offset":0,"stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","stdout_byte_length":212,"stdout_offset":0,"stdout_sha256":"e6ea0da4a3301256a0a0dc0d67d11acf4e83e0d1bff5dd987ccdaa43708714bc","tool":"rustc-version"},{"exit_status":0,"stderr_byte_length":654,"stderr_offset":0,"stderr_sha256":"85f314396a5cc9f2303d9848c2d0ea392b64a71cb47e7b0914fd3b8acc916f02","stdout_byte_length":0,"stdout_offset":212,"stdout_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","tool":"charon"},{"exit_status":0,"stderr_byte_length":0,"stderr_offset":654,"stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","stdout_byte_length":2897,"stdout_offset":212,"stdout_sha256":"d792566b25914f10c1a27d3c55607a43dd6bcd31b381f8d54caa7d23257269ef","tool":"cargo-metadata"},{"exit_status":0,"stderr_byte_length":302,"stderr_offset":654,"stderr_sha256":"865b65d937d16c61cd9b975adc967136f6739ef2149207ae43742241f2f37686","stdout_byte_length":1062,"stdout_offset":3109,"stdout_sha256":"4081a320e6292139b4a673d225682dc054b77cba113b8c8a8fbb0593f824b713","tool":"cargo-rustc-cfg"},{"exit_status":0,"stderr_byte_length":6916,"stderr_offset":956,"stderr_sha256":"9c2b4695f1b3bb4e7fe3bf52b92d44fd21bed1de3047b698c950eafcc085c00b","stdout_byte_length":933,"stdout_offset":4171,"stdout_sha256":"35255952c6ce5b89d1280d096dff50ffcfc94817c3aafa58beda6db7e66721df","tool":"aeneas"}],"tablet_root_sha256":"5be7a89d6b46429df3229db0d97b337dfb51cea483d439817e51b774a2dd5cf1"}],"schema":"trellis-extraction-result/v2","stderr_byte_length":7872,"stderr_sha256":"c284799d633c64b898f716d62fbf1146c173227bd6bd44309c6504a43926e000","stdout_byte_length":5104,"stdout_sha256":"8e0aed62f6941e7c81b09d5c5b63ea7602756e69e4bcce9944258b229a9a0ba3"}
reference/model-evidence/adaptation-constants-probe.rs

Open file

fn main() {
    let largest_power_of_ten = (1024_f64 / std::f64::consts::LOG2_10) as i32;
    let log2_5 = std::f64::consts::LOG2_10 - 1.0;
    let max_exponent_fast_path = (53_f64 / log2_5) as i64;
    let max_exponent_disguised =
        max_exponent_fast_path + (53_f64 / std::f64::consts::LOG2_10) as i64;

    println!("largest_power_of_ten={largest_power_of_ten}");
    println!("max_exponent_fast_path={max_exponent_fast_path}");
    println!("max_exponent_disguised={max_exponent_disguised}");
    println!("neg_nan={:016x}", (-f64::NAN).to_bits());

    for (exponent, value) in IntoIterator::into_iter([
        1e0_f64, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11,
        1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22,
    ])
    .enumerate()
    {
        println!("pow10_{exponent}={:016x}", value.to_bits());
    }
}
reference/model-evidence/binary64-boundary.txt

Open file

Primary evidence for the binary64 boundary
==========================================

Scope and identities
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction, the
adapted Rust crate retained in this repository, and the installed toolchain
named by modeling-input/SETUP.md. The probe source is retained at
reference/model-evidence/binary64-probe.rs; no scratch source is required to
reproduce it.

Toolchain executable:
  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
Target:
  x86_64-unknown-linux-gnu
rustc executable SHA-256:
  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
Probe source SHA-256:
  68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
Compiled probe SHA-256:
  f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
Frozen generated.lean SHA-256:
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9
Frozen modeling-input/manifest.json SHA-256:
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2
Approved Binary64ModelDefault.lean SHA-256 at the time of this record:
  03ae48fb631e6242bd21bf95d0481b66acae05f8cab343c7ab279b3c116538a3

Exact reproduction commands
---------------------------

Run from the repository root:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-probe.rs
  B=.trellis/scratch/binary64-probe
  "$R" --version --verbose
  sha256sum "$R"
  sha256sum "$P"
  "$R" --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$B"
  "$B"

Raw output
----------

  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
  rustc_sha256=162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  probe_sha256=68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
  binary_sha256=f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
  target_arch=x86_64
  mantissa_digits=53
  exponent_mask=7ff0000000000000
  mantissa_mask=000fffffffffffff
  nan=7ff8000000000000
  infinity=7ff0000000000000
  neg_infinity=fff0000000000000
  nan_category=Nan
  infinity_category=Infinite
  zero_category=Zero
  subnormal_category=Subnormal
  normal_category=Normal
  from_bits_to_bits=7ff0000000000001
  neg_payload_nan=fff0000000000001
  neg_zero=8000000000000000
  subnormal_tie_to_even_zero=0000000000000000
  subnormal_tie_to_even_two=0000000000000002
  normal_division=3fb999999999999a
  mul_negative_zero=8000000000000000
  div_negative_zero=8000000000000000
  div_negative_infinity=fff0000000000000
  mul_overflow=7ff0000000000000
  mul_zero_infinity_is_nan=true
  div_zero_zero_is_nan=true
  mul_nan_is_nan=true
  cast_2_pow_53=4340000000000000
  cast_2_pow_53_plus_1=4340000000000000

Pinned Rust library sources
---------------------------

The installed sources below belong to the same named toolchain. Their
SHA-256 identities are:

  core/src/primitive_docs.rs
    c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5
  core/src/num/f64.rs
    84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618
  core/src/clone.rs
    23f9cfc80347fde6b8457d46fbf7a2b8d9f34c8c58601b0b6f714ca2f6d1976b

The exact relevant text of core/src/primitive_docs.rs is:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The referenced primitive-f32 documentation supplies the common primitive
floating-point operation rules quoted next:

  /// - −0.0: IEEE 754 floating-point numbers have a bit that indicates their sign, so −0.0 is a
  ///   possible value. For comparison −0.0 = +0.0, but floating-point operations can carry
  ///   the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
  ///   a negative number rounded to a value smaller than a float can represent also produces −0.0.
  /// - [∞](#associatedconstant.INFINITY) and
  ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
  ///   like `1.0 / 0.0`.
  ///
  /// When a primitive operation (addition, subtraction, multiplication, or
  /// division) is performed on this type, the result is rounded according to the
  /// roundTiesToEven direction defined in IEEE 754-2008. That means:
  ///
  /// - The result is the representable value closest to the true value, if there
  ///   is a unique closest representable value.
  /// - If the true value is exactly half-way between two representable values,
  ///   the result is the one with an even least-significant binary digit.
  /// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
  ///   `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
  ///   true value's sign).

The same file explicitly separates arithmetic NaN choice from exact bitwise
operations; its exact relevant text is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.
  ///
  /// The following rules apply when a NaN value is returned from an arithmetic operation:
  /// - The result has a non-deterministic sign.
  /// - The quiet bit and payload are non-deterministically chosen from
  ///   the following set of options:
  ///
  ///   - **Preferred NaN**: The quiet bit is set and the payload is all-zero.
  ///   - **Quieting NaN propagation**: The quiet bit is set and the payload is copied from any input
  ///     operand that is a NaN. If the inputs and outputs do not have the same payload size (i.e., for
  ///     `as` casts), then
  ///     - If the output is smaller than the input, low-order bits of the payload get dropped.
  ///     - If the output is larger than the input, the payload gets filled up with 0s in the low-order
  ///       bits.
  ///   - **Unchanged NaN propagation**: The quiet bit and payload are copied from any input operand
  ///     that is a NaN. If the inputs and outputs do not have the same size (i.e., for `as` casts), the
  ///     same rules as for "quieting NaN propagation" apply, with one caveat: if the output is smaller
  ///     than the input, dropping the low-order bits may result in a payload of 0; a payload of 0 is not
  ///     possible with a signaling NaN (the all-0 significand encodes an infinity) so unchanged NaN
  ///     propagation cannot occur with some inputs.
  ///   - **Target-specific NaN**: The quiet bit is set and the payload is picked from a target-specific
  ///     set of "extra" possible NaN payloads. The set can depend on the input operand values.
  ///     See the table below for the concrete NaNs this set contains on various targets.
  ///
  /// | `target_arch` | Extra payloads possible on this platform |
  /// |---------------|------------------------------------------|
  /// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |

Thus the model's preferred quiet NaN is one permitted result whenever
multiplication or division returns NaN. This does not claim that arbitrary
Rust arithmetic NaNs have those exact bits. By contrast, unary negation and
bit conversion must preserve all non-sign bits exactly, including for every
NaN payload.

The exact relevant declarations in core/src/num/f64.rs are:

  pub const MANTISSA_DIGITS: u32 = 53;
  pub const NAN: f64 = 0.0_f64 / 0.0_f64;
  pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
  pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
  pub const SIGN_MASK: u64 = 0x8000_0000_0000_0000;
  pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;
  pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff;

  pub const fn classify(self) -> FpCategory {
      // We used to have complicated logic here that avoids the simple bit-based tests to work
      // around buggy codegen for x87 targets (see
      // https://github.com/rust-lang/rust/issues/114479). However, some LLVM versions later, none
      // of our tests is able to find any difference between the complicated and the naive
      // version, so now we are back to the naive version.
      let b = self.to_bits();
      match (b & Self::MANTISSA_MASK, b & Self::EXPONENT_MASK) {
          (0, Self::EXPONENT_MASK) => FpCategory::Infinite,
          (_, Self::EXPONENT_MASK) => FpCategory::Nan,
          (0, 0) => FpCategory::Zero,
          (_, 0) => FpCategory::Subnormal,
          _ => FpCategory::Normal,
      }
  }

  pub const fn to_bits(self) -> u64 {
      // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
      unsafe { mem::transmute(self) }
  }

  pub const fn from_bits(v: u64) -> Self {
      // It turns out the safety issues with sNaN were overblown! Hooray!
      // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
      unsafe { mem::transmute(v) }
  }

The exact scalar clone body in core/src/clone.rs is:

  impl const Clone for $t {
      #[inline(always)]
      fn clone(&self) -> Self {
          *self
      }
  }

Frozen adapted source
---------------------

The relevant retained source file hashes are:

  crate/traits.rs
    9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  crate/dec2flt/decimal.rs
    633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb
  crate/dec2flt/lemire.rs
    fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1
  crate/dec2flt/slow.rs
    93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485

The dispatcher excerpts below are reproduced from the identified file by
running these commands from the repository root:

  sha256sum crate/dec2flt/mod.rs
  sed -n '354,403p' crate/dec2flt/mod.rs
  sed -n '405,422p' crate/dec2flt/mod.rs
  sed -n '465,475p' crate/dec2flt/mod.rs
  sed -n '506,523p' crate/dec2flt/mod.rs

Exact constant and bit-conversion excerpt from crate/traits.rs:

  impl Float for f64 {
      type Int = u64;

      const INFINITY: Self = Self::INFINITY;
      const NEG_INFINITY: Self = Self::NEG_INFINITY;
      const NAN: Self = Self::NAN;
      // Bit-identical to the upstream `-f64::NAN`, without the unsupported
      // compile-time float negation.
      const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);

      const BITS: u32 = 64;
      const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
      const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
      const SIG_MASK: Self::Int = Self::MANTISSA_MASK;

      fn to_bits(self) -> Self::Int {
          self.to_bits()
      }

      fn classify(self) -> FpCategory {
          self.classify()
      }
  }

  impl FloatExt for f64 {
      #[inline]
      fn from_u64_bits(v: u64) -> Self {
          f64::from_bits(v)
      }

Exact derived-constant defaults from crate/traits.rs:

  /// The number of bits in the significand, *excluding* the hidden bit.
  const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;

  /// Number of bits in the exponent.
  const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

  /// The saturated (maximum bitpattern) value of the exponent, i.e. the infinite
  /// representation.
  ///
  /// This shifted fully right, use `EXP_MASK` for the shifted value.
  const EXP_SAT: u32 = (1 << Self::EXP_BITS) - 1;

  /// Signed version of `EXP_SAT` since we convert a lot.
  const INFINITE_POWER: i32 = Self::EXP_SAT as i32;

  /// The exponent bias value. This is also the maximum value of the exponent.
  const EXP_BIAS: u32 = Self::EXP_SAT >> 1;

  /// Minimum exponent value of normal values.
  const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Together with the f64-instance lines `BITS = 64` and
`SIG_TOTAL_BITS = Self::MANTISSA_DIGITS` in the preceding excerpt, these
defaults derive SIG_BITS, EXP_MIN, and INFINITE_POWER from the primitive
mantissa-digit constant rather than introducing independent parameters.

Exact asserted-conversion excerpt from crate/dec2flt/mod.rs:

  #[inline]
  // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
  // `charon::opaque` makes this entire asserted conversion external: both the
  // unchanged `debug_assert!` and the unchanged cast below are in the opaque
  // body. The callers, their fast-path guards, and their surrounding
  // computation remain mechanically visible. A corresponding model binding
  // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
  // exact binary64 conversion at or below that bound.
  #[charon::opaque]
  fn from_u64(v: u64) -> Self {
      debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
      v as _
  }

Here MAX_MANTISSA_FAST_PATH is the retained default 1 << 53.  The attribute is
attached to the function item, so the generated external stands for the whole
method, not merely the cast.  In the enabled-debug configuration the source
succeeds only when v <= 2^53; above it the assertion fails before the cast. On
the successful branch every integer is exactly representable, so the source
cast and the model rounder return the same word.

Exact power-table and assembly excerpts from crate/dec2flt/mod.rs:

  /// Maximum mantissa for the fast-path (`1 << 53` for f64).
  const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;

  const MAX_EXPONENT_FAST_PATH: i64 = 22;
  const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
  const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;

  fn pow10_fast_path(exponent: usize) -> Self {
      // These bit patterns are exactly the source table's rounded binary64
      // literals.  The match is the same masked lookup; it merely keeps float
      // constants out of Aeneas's unsupported constant interpreter.
      match exponent & 31 {
          0 => f64::from_bits(0x3FF0_0000_0000_0000),
          1 => f64::from_bits(0x4024_0000_0000_0000),
          2 => f64::from_bits(0x4059_0000_0000_0000),
          3 => f64::from_bits(0x408F_4000_0000_0000),
          4 => f64::from_bits(0x40C3_8800_0000_0000),
          5 => f64::from_bits(0x40F8_6A00_0000_0000),
          6 => f64::from_bits(0x412E_8480_0000_0000),
          7 => f64::from_bits(0x4163_12D0_0000_0000),
          8 => f64::from_bits(0x4197_D784_0000_0000),
          9 => f64::from_bits(0x41CD_CD65_0000_0000),
          10 => f64::from_bits(0x4202_A05F_2000_0000),
          11 => f64::from_bits(0x4237_4876_E800_0000),
          12 => f64::from_bits(0x426D_1A94_A200_0000),
          13 => f64::from_bits(0x42A2_309C_E540_0000),
          14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
          15 => f64::from_bits(0x430C_6BF5_2634_0000),
          16 => f64::from_bits(0x4341_C379_37E0_8000),
          17 => f64::from_bits(0x4376_3457_85D8_A000),
          18 => f64::from_bits(0x43AB_C16D_674E_C800),
          19 => f64::from_bits(0x43E1_58E4_6091_3D00),
          20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
          21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
          22 => f64::from_bits(0x4480_F0CF_064D_D592),
          _ => f64::from_bits(0),
      }
  }

  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

Exact native-call excerpt from crate/dec2flt/decimal.rs:

  fn can_use_fast_path<F: Lemire>(&self) -> bool {
      F::MIN_EXPONENT_FAST_PATH <= self.exponent
          && self.exponent <= F::MAX_EXPONENT_DISGUISED_FAST_PATH
          && self.mantissa <= F::MAX_MANTISSA_FAST_PATH
          && !self.many_digits
  }

  if !self.can_use_fast_path::<F>() {
      return None;
  }

  let value = if self.exponent <= F::MAX_EXPONENT_FAST_PATH {
      // normal fast path
      let value = F::from_u64(self.mantissa);
      if self.exponent < 0 {
          // Explicit trait calls preserve Rust arithmetic and resolve
          // the generic output type that Charon leaves ambiguous.
          core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
      } else {
          core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
      }
  } else {
      // disguised fast path
      let shift = self.exponent - F::MAX_EXPONENT_FAST_PATH;
      let mantissa = self.mantissa.checked_mul(INT_POW10[shift as usize])?;
      if mantissa > F::MAX_MANTISSA_FAST_PATH {
          return None;
      }
      core::ops::Mul::mul(
          F::from_u64(mantissa),
          F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
      )
  };

  if self.negative {
      Some(core::ops::Neg::neg(value))
  } else {
      Some(value)
  }

The preceding can_use_fast_path body, together with
MAX_MANTISSA_FAST_PATH = 1 << SIG_TOTAL_BITS and SIG_TOTAL_BITS = 53 for f64,
requires the exponent to lie between -22 and 37, the input mantissa to be at
most 2^53, and many_digits to be false. Consequently an ordinary arithmetic
call has a from_u64 operand in 0..=2^53. In its negative-exponent arm,
`-self.exponent` lies in 1..=22; in its nonnegative arm, `self.exponent` lies
in 0..=22. The disguised branch checks its multiplied mantissa against 2^53
before from_u64 and uses table index 22. The paired statement
Binary64NativeCallDomain does not assert this source reachability. It says
conditionally that a from_u64 argument at most 2^53 succeeds with a finite,
non-NaN word and that a table index at most 22 succeeds with a positive,
nonzero, finite, non-NaN word. Applying that conditional statement to the
guards just derived establishes those properties for the actual ordinary and
disguised calls, and in particular establishes that every executed divisor is
nonzero.

Exact special-value excerpt from crate/dec2flt/parse.rs:

  let float = match (register, len) {
      (INF_3, 3) => F::INFINITY,
      (INF_8, 8) => F::INFINITY,
      (NAN, 3) => F::NAN,
      _ => return None,
  };

  if negative { Some(-float) } else { Some(float) }

Thus the executed special route is INFINITY or NAN followed by conditional
negation; it does not select NEG_INFINITY or NEG_NAN directly.

The number helper has the exact source body

  pub fn parse_number(s: &[u8]) -> Option<Decimal> {
      if let Some((float, rest)) = parse_partial_number(s) {
          if rest == s.len() {
              return Some(float);
          }
      }
      None
  }

It returns only the Decimal produced by parse_partial_number; there is no
float type parameter or float operation at this boundary.

Exact dispatcher excerpts from crate/dec2flt/mod.rs
---------------------------------------------------

The entry of `dec2flt_with_trace` strips at most one leading sign, rejects
empty and sign-only inputs, calls `parse_number` on the unsigned body, and
calls `parse_inf_nan` only when `parse_number` returns `None`:

  /// Run the actual dispatcher while retaining its approved internal observations.
  pub fn dec2flt_with_trace<
      'a,
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {
          return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
      };
      let negative = c == b'-';
      if c == b'-' || c == b'+' {
          body = &body[1..];
      }
      if body.is_empty() {
          return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
      }

      let parse_number_result = parse_number(body);
      let parsed = match parse_number_result {
          Some(r) => r,
          None => {
              let parse_inf_nan_result = parse_inf_nan(body, negative);
              return match parse_inf_nan_result {
                  Some(value) => (
                      Ok(value),
                      Dec2FltTrace::Special {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                          result: value,
                      },
                  ),
                  None => (
                      Err(pfe_invalid()),
                      Dec2FltTrace::Invalid {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                      },
                  ),
              };
          }
      };

Thus every `Err` arm shown here returns before `parsed` is available and before
the native, integer, slow, assembly, or final-negation code below it can run.
On a numeric result, the lexical sign is copied into the parsed record before
the native attempt, whose successful result also returns before raw-pair
assembly:

      let mut num = parsed;
      num.negative = negative;
      if !cfg!(feature = "optimize_for_size") {
          let fast_path_result = num.try_fast_path::<F>();
          if let Some(value) = fast_path_result {
              return (
                  Ok(value),
                  Dec2FltTrace::FastPath {
                      body,
                      negative,
                      parse_number_result,
                      fast_path_input: num,
                      fast_path_result,
                      result: value,
                  },
              );
          }
      }

If the native attempt does not return, the selected raw pair is assembled and
the source then conditionally negates it according to the lexical-sign flag:

      let selected_pair = fp;
      // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
      // it neither changes the selected pair nor introduces a new branch or call.
      let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
      let assembly_result = biased_fp_to_float::<F>(fp);
      let lexical_sign_applied = num.negative;
      let result = if lexical_sign_applied {
          core::ops::Neg::neg(assembly_result)
      } else {
          assembly_result
      };

The public `dec2flt` executes that same route and returns its result projection;
it does not reimplement or reorder any parsing or float operation:

  /// Converts a decimal string into a floating point number.
  #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
  pub fn dec2flt<
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &str,
  ) -> Result<F, ParseFloatError> {
      // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
      // clause admits exactly the same instances and lets Charon resolve the
      // explicit, source-equivalent final negation.
      // The public function is now exactly the result projection of the single
      // instrumented implementation.  No conversion step is duplicated, and
      // discarding the trace cannot affect Rust evaluation or the returned bits.
      dec2flt_with_trace::<F>(s).0
  }

The integer-tier helper has the source type and exact executable excerpts
below (long explanatory comments are elided). In particular it returns a raw
BiasedFp and contains no from_u64 cast, primitive float multiplication,
division, negation, or from_bits call:

  pub fn compute_float<F: Float>(q: i64, mut w: u64) -> BiasedFp {
      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);
      let fp_error = BiasedFp::zero_pow2(-1);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if w == 0 || q < F::SMALLEST_POWER_OF_TEN as i64 {
          return fp_zero;
      } else if q > F::LARGEST_POWER_OF_TEN as i64 {
          return fp_inf;
      }
      // Normalize our significant digits, so the most-significant bit is set.
      let lz = w.leading_zeros();
      w <<= lz;
      let (lo, hi) = compute_product_approx(q, w, F::SIG_BITS as usize + 3);
      if lo == 0xFFFF_FFFF_FFFF_FFFF {
          let inside_safe_exponent = (q >= -27) && (q <= 55);
          if !inside_safe_exponent {
              return fp_error;
          }
      }
      let upperbit = (hi >> 63) as i32;
      let mut mantissa = hi >> (upperbit + 64 - F::SIG_BITS as i32 - 3);
      let mut power2 = power(q as i32) + upperbit - lz as i32 - F::EXP_MIN + 1;
      if power2 <= 0 {
          if -power2 + 1 >= 64 {
              // Have more than 64 bits below the minimum exponent, must be 0.
              return fp_zero;
          }
          // Have a subnormal value.
          mantissa >>= -power2 + 1;
          mantissa += mantissa & 1;
          mantissa >>= 1;
          power2 = (mantissa >= (1_u64 << F::SIG_BITS)) as i32;
          return BiasedFp { m: mantissa, p_biased: power2 };
      }
      // Need to handle rounding ties. Normally, we need to round up,
      // but if we fall right in between and we have an even basis, we
      // need to round down.
      if lo <= 1
          && q >= F::MIN_EXPONENT_ROUND_TO_EVEN as i64
          && q <= F::MAX_EXPONENT_ROUND_TO_EVEN as i64
          && mantissa & 0b11 == 0b01
          && (mantissa << (upperbit + 64 - F::SIG_BITS as i32 - 3)) == hi
      {
          // Zero the lowest bit, so we don't round up.
          mantissa &= !1_u64;
      }
      // Round-to-even, then shift the significant digits into place.
      mantissa += mantissa & 1;
      mantissa >>= 1;
      if mantissa >= (2_u64 << F::SIG_BITS) {
          // Rounding up overflowed, so the carry bit is set. Set the
          // mantissa to 1 (only the implicit, hidden bit is set) and
          // increase the exponent.
          mantissa = 1_u64 << F::SIG_BITS;
          power2 += 1;
      }
      // Zero out the hidden bit.
      mantissa &= !(1_u64 << F::SIG_BITS);
      if power2 >= F::INFINITE_POWER {
          // Exponent is above largest normal value, must be infinite.
          return fp_inf;
      }
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact slow-tier source body from crate/dec2flt/slow.rs:

  pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {
      const MAX_SHIFT: usize = 60;
      const NUM_POWERS: usize = 19;
      const POWERS: [u8; 19] =
          [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];

      let get_shift = |n| {
          if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }
      };

      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);

      let mut d = parse_decimal_seq(s);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if d.num_digits == 0 || d.decimal_point < -324 {
          return fp_zero;
      } else if d.decimal_point >= 310 {
          return fp_inf;
      }
      let mut exp2 = 0_i32;
      let mut loop_result = None;
      // Shift right toward (1/2 ... 1].
      while d.decimal_point > 0 && loop_result.is_none() {
          let n = d.decimal_point as usize;
          let shift = get_shift(n);
          d.right_shift(shift);
          if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_zero);
          } else {
              exp2 += shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // Shift left toward (1/2 ... 1].
      while d.decimal_point <= 0 && loop_result.is_none() {
          let shift = if d.decimal_point == 0 {
              match d.digits[0] {
                  digit if digit >= 5 => break,
                  0 | 1 => 2,
                  _ => 1,
              }
          } else {
              get_shift((-d.decimal_point) as _)
          };
          d.left_shift(shift);
          if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_inf);
          } else {
              exp2 -= shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
      exp2 -= 1;
      while F::EXP_MIN > exp2 {
          let mut n = (F::EXP_MIN - exp2) as usize;
          if n > MAX_SHIFT {
              n = MAX_SHIFT;
          }
          d.right_shift(n);
          exp2 += n as i32;
      }
      if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
          return fp_inf;
      }
      // Shift the decimal to the hidden bit, and then round the value
      // to get the high mantissa+1 bits.
      d.left_shift(F::SIG_BITS as usize + 1);
      let mut mantissa = d.round();
      if mantissa >= (1_u64 << (F::SIG_BITS + 1)) {
          // Rounding up overflowed to the carry bit, need to
          // shift back to the hidden bit.
          d.right_shift(1);
          exp2 += 1;
          mantissa = d.round();
          if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
              return fp_inf;
          }
      }
      let mut power2 = exp2 - F::EXP_MIN + 1;
      if mantissa < (1_u64 << F::SIG_BITS) {
          power2 -= 1;
      }
      // Zero out all the bits above the explicit mantissa bits.
      mantissa &= (1_u64 << F::SIG_BITS) - 1;
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact final numeric-sign excerpt from crate/dec2flt/mod.rs:

  let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
  let assembly_result = biased_fp_to_float::<F>(fp);
  let lexical_sign_applied = num.negative;
  let result = if lexical_sign_applied {
      core::ops::Neg::neg(assembly_result)
  } else {
      assembly_result
  };

Thus a numeric execution that reaches the integer/slow selection route
assembles its selected pair with from_bits through biased_fp_to_float and only
then conditionally negates it. A successful try_fast_path returns earlier and
does not perform this assembly. compute_float and parse_long_mantissa produce
raw BiasedFp pairs and do not call from_u64, primitive float multiplication,
division, negation, or from_bits; they do, however, execute constants derived
from SIG_TOTAL_BITS before producing those pairs.

Retained structural-boundary evidence
-------------------------------------

Several adjacent structural bindings cite this same evidence record. Their
pinned library source identities are:

  core/src/num/mod.rs
    f0820f9dfb94999440c8cb4a349736fa21df7e5668e19b6b49e016ff67c05ce3
  core/src/option.rs
    7cf61204b05d98a95bc2e322d5fbfc1f4f91505109971917d9a7fb47151c50e6
  core/src/slice/mod.rs
    354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840
  core/src/str/mod.rs
    284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78

Exact ASCII-digit body from core/src/num/mod.rs:

  pub const fn is_ascii_digit(&self) -> bool {
      matches!(*self, b'0'..=b'9')
  }

Exact Option control-flow bodies from core/src/option.rs:

  fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
      match self {
          Some(v) => ControlFlow::Continue(v),
          None => ControlFlow::Break(None),
      }
  }

  fn from_residual(residual: Option<convert::Infallible>) -> Self {
      match residual {
          None => None,
      }
  }

Exact slice observation bodies from core/src/slice/mod.rs:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

Exact string-byte body from core/src/str/mod.rs:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }
reference/model-evidence/binary64-probe.rs

Open file

#![feature(float_masks)]

use std::num::FpCategory;

fn bits(label: &str, value: f64) {
    println!("{label}={:016x}", value.to_bits());
}

fn main() {
    println!("target_arch={}", std::env::consts::ARCH);
    println!("mantissa_digits={}", f64::MANTISSA_DIGITS);
    println!("exponent_mask={:016x}", f64::EXPONENT_MASK);
    println!("mantissa_mask={:016x}", f64::MANTISSA_MASK);
    bits("nan", f64::NAN);
    bits("infinity", f64::INFINITY);
    bits("neg_infinity", f64::NEG_INFINITY);

    for (label, value) in [
        ("nan_category", f64::NAN),
        ("infinity_category", f64::INFINITY),
        ("zero_category", 0.0),
        ("subnormal_category", f64::from_bits(1)),
        ("normal_category", 1.0),
    ] {
        let category = match value.classify() {
            FpCategory::Nan => "Nan",
            FpCategory::Infinite => "Infinite",
            FpCategory::Zero => "Zero",
            FpCategory::Subnormal => "Subnormal",
            FpCategory::Normal => "Normal",
        };
        println!("{label}={category}");
    }

    let payload_nan_word = 0x7ff0_0000_0000_0001_u64;
    println!(
        "from_bits_to_bits={:016x}",
        f64::from_bits(payload_nan_word).to_bits()
    );
    bits("neg_payload_nan", -f64::from_bits(payload_nan_word));
    bits("neg_zero", -0.0);

    bits("subnormal_tie_to_even_zero", f64::from_bits(1) * 0.5);
    bits("subnormal_tie_to_even_two", f64::from_bits(3) * 0.5);
    bits("normal_division", 1.0 / 10.0);
    bits("mul_negative_zero", -0.0 * 2.0);
    bits("div_negative_zero", -1.0 / f64::INFINITY);
    bits("div_negative_infinity", 1.0 / -0.0);
    bits("mul_overflow", f64::MAX * (1.0 + f64::EPSILON));
    println!("mul_zero_infinity_is_nan={}", (0.0 * f64::INFINITY).is_nan());
    println!("div_zero_zero_is_nan={}", (0.0_f64 / 0.0_f64).is_nan());
    println!("mul_nan_is_nan={}", (f64::NAN * 1.0).is_nan());

    bits("cast_2_pow_53", (1_u64 << 53) as f64);
    bits("cast_2_pow_53_plus_1", ((1_u64 << 53) + 1) as f64);
}
reference/model-evidence/native-boundary.txt

Open file

Native boundary inventory for Binary64Model

Reproduction command (repository root):
  python3 .trellis/scripts/pv_modeling.py inspect-native .

Tool identity for this reproduction:
  Python 3.14.4
  .trellis/scripts/pv_modeling.py
  sha256 915b29822cb4c47b70dabb1dc011514641deb2e428b62347fc31aa898de5e0d4

Top-level result:
  declaration_count: 24

The complete raw inspect-native records for the fourteen F64 externals follow.
They are copied from the command's complete index; no scratch artifact is needed
to review them.

[
  {
    "name": "F64.Insts.CoreCloneClone.clone",
    "extracted_signature": ": F64 → Result F64",
    "rust_symbol": "core::clone::impls::{impl core::clone::Clone for f64}::clone",
    "raw_declaration_sha256": "5eaad5fb9af034045cf0dafed5af85445fe4af9a78958259a15a1faddd1e8f05",
    "source_utf8": "/-- [core::clone::impls::{impl core::clone::Clone for f64}::clone]:\n    Source: '/rustc/library/core/src/clone.rs', lines 698:20-698:43\n    Name pattern: [core::clone::impls::{core::clone::Clone<f64>}::clone]\n    Visibility: public -/\n@[rust_fun \"core::clone::impls::{core::clone::Clone<f64>}::clone\"]\naxiom F64.Insts.CoreCloneClone.clone : F64 → Result F64\n"
  },
  {
    "name": "core.f64.F64.MANTISSA_DIGITS",
    "extracted_signature": ": Result Std.U32",
    "rust_symbol": "core::f64::{f64}::MANTISSA_DIGITS",
    "raw_declaration_sha256": "42b1b0c4d2c2bbc7271748fc78c518391f55bf6517c643667a6561a0ac6e771c",
    "source_utf8": "/-- [core::f64::{f64}::MANTISSA_DIGITS]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 412:4-412:34\n    Name pattern: [core::f64::{f64}::MANTISSA_DIGITS]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::MANTISSA_DIGITS\"]\naxiom core.f64.F64.MANTISSA_DIGITS : Result Std.U32\n"
  },
  {
    "name": "core.f64.F64.NAN",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::NAN",
    "raw_declaration_sha256": "a18685a80db5dbebe39151c7375a0470bb3905fe1228e5598a995a1cf017a768",
    "source_utf8": "/-- [core::f64::{f64}::NAN]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 509:4-509:22\n    Name pattern: [core::f64::{f64}::NAN]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::NAN\"] axiom core.f64.F64.NAN : Result F64\n"
  },
  {
    "name": "core.f64.F64.INFINITY",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::INFINITY",
    "raw_declaration_sha256": "f905901e67400987f49cddd13a8768644bed9e7e3f79c3a81b34879f494a2816",
    "source_utf8": "/-- [core::f64::{f64}::INFINITY]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 512:4-512:27\n    Name pattern: [core::f64::{f64}::INFINITY]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::INFINITY\"]\naxiom core.f64.F64.INFINITY : Result F64\n"
  },
  {
    "name": "core.f64.F64.NEG_INFINITY",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::NEG_INFINITY",
    "raw_declaration_sha256": "85f6e517e439c2f2d5c59aa29884ff38b2381c2f5dd7cb14e7947b232efe7f0e",
    "source_utf8": "/-- [core::f64::{f64}::NEG_INFINITY]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 515:4-515:31\n    Name pattern: [core::f64::{f64}::NEG_INFINITY]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::NEG_INFINITY\"]\naxiom core.f64.F64.NEG_INFINITY : Result F64\n"
  },
  {
    "name": "core.f64.F64.EXPONENT_MASK",
    "extracted_signature": ": Result Std.U64",
    "rust_symbol": "core::f64::{f64}::EXPONENT_MASK",
    "raw_declaration_sha256": "f1054e64392d8f9306e8c69015f0b521d9f387edda8458a3bae4773606f46a71",
    "source_utf8": "/-- [core::f64::{f64}::EXPONENT_MASK]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 615:4-615:32\n    Name pattern: [core::f64::{f64}::EXPONENT_MASK]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::EXPONENT_MASK\"]\naxiom core.f64.F64.EXPONENT_MASK : Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.MANTISSA_MASK",
    "extracted_signature": ": Result Std.U64",
    "rust_symbol": "core::f64::{f64}::MANTISSA_MASK",
    "raw_declaration_sha256": "dc3517faa141b7a7a016e9f73930af3c9af23d3e6d06874440d99eabbc846538",
    "source_utf8": "/-- [core::f64::{f64}::MANTISSA_MASK]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 637:4-637:32\n    Name pattern: [core::f64::{f64}::MANTISSA_MASK]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::MANTISSA_MASK\"]\naxiom core.f64.F64.MANTISSA_MASK : Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.classify",
    "extracted_signature": ": F64 → Result core.num.FpCategory",
    "rust_symbol": "core::f64::{f64}::classify",
    "raw_declaration_sha256": "9fedd442d1d0403c4a7323d8f4e95c51b8bd39bf82d2d0ba357eaaf243e69b78",
    "source_utf8": "/-- [core::f64::{f64}::classify]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 782:4-782:45\n    Name pattern: [core::f64::{f64}::classify]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::classify\"]\naxiom core.f64.F64.classify : F64 → Result core.num.FpCategory\n"
  },
  {
    "name": "core.f64.F64.to_bits",
    "extracted_signature": ": F64 → Result Std.U64",
    "rust_symbol": "core::f64::{f64}::to_bits",
    "raw_declaration_sha256": "ddaec6bb7c36ba6445a5b0b8e52f841240ca2563004e8ce1255caf0e36ec22ae",
    "source_utf8": "/-- [core::f64::{f64}::to_bits]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 1223:4-1223:37\n    Name pattern: [core::f64::{f64}::to_bits]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::to_bits\"]\naxiom core.f64.F64.to_bits : F64 → Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.from_bits",
    "extracted_signature": ": Std.U64 → Result F64",
    "rust_symbol": "core::f64::{f64}::from_bits",
    "raw_declaration_sha256": "af8ee4387cea97d0a353a83d6280c03f3c9f739bf733af5bd39c29909f1b2b19",
    "source_utf8": "/-- [core::f64::{f64}::from_bits]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 1269:4-1269:42\n    Name pattern: [core::f64::{f64}::from_bits]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::from_bits\"]\naxiom core.f64.F64.from_bits : Std.U64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithMulF64F64.mul",
    "extracted_signature": ": F64 → F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Mul<f64, f64> for f64}::mul",
    "raw_declaration_sha256": "20d985819a981e9e80485ce169c1d045ea13fa8796e9314d5b621141aae6deec",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Mul<f64, f64> for f64}::mul]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 350:12-350:41\n    Name pattern: [core::ops::arith::{core::ops::arith::Mul<f64, f64, f64>}::mul]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Mul<f64, f64, f64>}::mul\"]\naxiom F64.Insts.CoreOpsArithMulF64F64.mul : F64 → F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithDivF64F64.div",
    "extracted_signature": ": F64 → F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Div<f64, f64> for f64}::div",
    "raw_declaration_sha256": "1ebb67b412d89328acb4c5dd53168e84fdf26be6cbe1ef49f5a27edbd84ada36",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Div<f64, f64> for f64}::div]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 515:12-515:41\n    Name pattern: [core::ops::arith::{core::ops::arith::Div<f64, f64, f64>}::div]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Div<f64, f64, f64>}::div\"]\naxiom F64.Insts.CoreOpsArithDivF64F64.div : F64 → F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithNegF64.neg",
    "extracted_signature": ": F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Neg<f64> for f64}::neg",
    "raw_declaration_sha256": "bbf93f24bd7cfbc72e47e8bb3a9acc6641df939ad6afafd9ba02c81fe27f7ed0",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Neg<f64> for f64}::neg]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 719:12-719:30\n    Name pattern: [core::ops::arith::{core::ops::arith::Neg<f64, f64>}::neg]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Neg<f64, f64>}::neg\"]\naxiom F64.Insts.CoreOpsArithNegF64.neg : F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64",
    "extracted_signature": ": Std.U64 → Result F64",
    "rust_symbol": "dec2flt_model::num::imp::dec2flt::{impl dec2flt_model::num::imp::dec2flt::Lemire<u64> for f64}::from_u64",
    "raw_declaration_sha256": "ad172bce0522e7e41bceb8c66a5adff962822ee8a9454dfd59b7019086797ba8",
    "source_utf8": "/-- [dec2flt_model::num::imp::dec2flt::{impl dec2flt_model::num::imp::dec2flt::Lemire<u64> for f64}::from_u64]:\n    Source: 'num/imp/../../dec2flt/mod.rs', lines 263:4-266:5\n    Visibility: public -/\naxiom F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64\n  : Std.U64 → Result F64\n"
  }
]
reference/model-evidence/setup-reproduction.txt

Open file

Fresh extraction and composition evidence for Preamble
======================================================

Scope
-----

This record identifies the preparation evidence frozen with this reopened
repository and records the model-support composition reproduced on 2026-09-24.
It is evidence about source, extraction, and composition, not evidence that any
supplied GOAL is true.

Pinned configuration and tools
------------------------------

modeling-input/extraction.json selects the single library crate `crate` with
empty Cargo, Charon, and Aeneas argument lists.  crate/Cargo.toml gives the
`default` feature an empty definition, leaves `optimize_for_size` disabled,
uses the development profile, and explicitly enables overflow checks.
extraction-evidence/COMMAND.json records target x86_64-unknown-linux-gnu,
nightly-2026-06-01, debug assertions, overflow checks, unwind panic handling,
64-bit pointers, and SSE2.

modeling-input/tool-identities.json pins these six executables by SHA-256:

  cargo   54e05dce8c9ca2f638cc3d87ec1a19425b5d0bf1f31aeb48cf4792aec5cadf27
  rustc   162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  rustdoc 2bf660d140310e28146e2c002dc6fcabd957c0a3b740be0419e6f8e5a9c87523
  Charon  6490034f368ce98f3e7ae5a28bf71ed56d03bdf1e3712e71376b96fc55baeade
  Aeneas  9f446d2aaf59e8e705e36d05cb993f1c6ab0e97f8dc6fd2f19907a86ede30922
  Lean    3e0d0d3d801675359f2d4cf9815bfdb417b20b92fdd9d48b3b14c95bbae28bbf

Fresh extraction
----------------

The authoritative reproduction command in modeling-input/manifest.json is:

  python3 .trellis/scripts/pv_modeling.py check-native . --fresh

extraction-evidence/COMMAND.json records the exact argv, environment, and
working directory for every step.  extraction-evidence/RESULT.json records
exit status 0 for rustc identity, Charon/Cargo extraction, Cargo metadata,
Cargo cfg, and Aeneas.  Its primary run produced generated Lean SHA-256:

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9

The same digest is recorded for both `audited_sha256` and `native_sha256` in
modeling-input/manifest.json, whose `byte_identical` field is true, and is the
digest of this repository's generated.lean.  The manifest's accepted setup and
adaptation audits record the successful uncached Cargo, Charon, and Aeneas
checks, the absence of source placeholders, and the exact 24-external native
boundary.  In particular, the corrected source basis is:

  c42107d27bc47c02e4beb4d6db4c47879aecb68a175ab67f7e6c5d5e866a2402c06583f9e94b467095cf9aff1a26a4857650ace006061c1ca5e4c441747ef622

The pinned compatibility report modeling-input/axiom-compatibility.json has
SHA-256

  473825c0fe635e1abc7a734a2035f5df20ed4fe7053403ef2fb6833d7101a016

and checks 2,225 declarations.  It reports no unapproved axiom.  Its only
pending group contains 64 declarations downstream of the absent raw F64
carrier and external operations, exactly the boundary supplied by the authored
model-support layer; the raw extractor output contains no proof placeholder.

External boundary
-----------------

The reproducible command

  python3 .trellis/scripts/pv_modeling.py inspect-native .

returns exactly 24 declarations: fourteen F64 operations, four U64 bit
operations, and six byte/Option/slice/string operations.  Their complete
records are retained in reference/model-evidence/native-boundary.txt and the
structural-operation evidence files.  Tablet/model-support.json has exactly
one exact-signature binding for each declaration.  The whole opaque
`Lemire::from_u64` method has raw declaration SHA-256

  ad172bce0522e7e41bceb8c66a5adff962822ee8a9454dfd59b7019086797ba8

and covers source lines 263:4-266:5, including both the debug assertion and
the conversion.  It is not a cast-only boundary.

Composition and elaboration
---------------------------

After installing all 24 bindings, the exact command

  python3 .trellis/scripts/pv_modeling.py compose-native . --check

returned `matches=true`, `changed=false`, no mismatched files, raw extraction
hash

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9

and equal expected and actual Preamble hashes

  2bf9c25b895e20dd9efe782ae173e2b07b55020eed41a7d9b63b2ae9e1db007c.

The receipt reports 24 bindings, 47 authored definitions, and 170 extracted
modules.  Finally,

  python3 .trellis/scripts/check.py tablet

checked all 236 registered nodes against this composition and exited 0.  This
establishes complete composition and elaboration while leaving the 32 principal
GOAL proofs open for argument development as required.
reference/model-evidence/source-adaptation-delta.diff

Open file

--- upstream/dec2flt/common.rs
+++ crate/dec2flt/common.rs
@@ -14,4 +13,0 @@
-    /// Iteratively parse and consume digits from bytes.
-    ///
-    /// Returns the same bytes with consumed digits being elided. Breaks on invalid digits.
-    fn parse_digits(&self, func: impl FnMut(u8)) -> &Self;
@@ -38,16 +33,0 @@
-    #[inline]
-    fn parse_digits(&self, mut func: impl FnMut(u8)) -> &Self {
-        let mut s = self;
-
-        while let Some((c, rest)) = s.split_first() {
-            let c = c.wrapping_sub(b'0');
-            if c < 10 {
-                func(c);
-                s = rest;
-            } else {
-                break;
-            }
-        }
-
-        s
-    }
@@ -68 +48,4 @@
-#[derive(Debug, Copy, Clone, PartialEq, Eq, Default)]
+// Debug output is not an accepted public or trace observation.  Removing only
+// that implementation preserves the fields, computational derives, and every
+// algorithm operation independently of GOAL truth.
+#[derive(Copy, Clone, PartialEq, Eq, Default)]
--- upstream/dec2flt/decimal.rs
+++ crate/dec2flt/decimal.rs
@@ -28 +28,4 @@
-#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
+// Debug output is absent from the accepted observations.  Removing only that
+// implementation leaves all fields, computational derives, and parser
+// operations unchanged independently of GOAL truth.
+#[derive(Clone, Copy, Default, PartialEq, Eq)]
@@ -56 +59,11 @@
-    pub fn try_fast_path<F: Lemire>(&self) -> Option<F> {
+    pub fn try_fast_path<
+        F: Lemire
+            + core::ops::Div<Output = F>
+            + core::ops::Mul<Output = F>
+            + core::ops::Neg<Output = F>,
+    >(
+        &self,
+    ) -> Option<F> {
+        // `Lemire` already entails these three operator bounds through
+        // `Float`; spelling them directly changes no admitted type.  Charon
+        // needs the direct clauses to resolve each explicit call's `Output`.
@@ -73 +86,3 @@
-                value / F::pow10_fast_path((-self.exponent) as _)
+                // Explicit trait calls preserve Rust arithmetic and resolve
+                // the generic output type that Charon leaves ambiguous.
+                core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
@@ -75 +90 @@
-                value * F::pow10_fast_path(self.exponent as _)
+                core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
@@ -84 +99,4 @@
-            F::from_u64(mantissa) * F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _)
+            core::ops::Mul::mul(
+                F::from_u64(mantissa),
+                F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
+            )
@@ -87 +105,5 @@
-        if self.negative { Some(-value) } else { Some(value) }
+        if self.negative {
+            Some(core::ops::Neg::neg(value))
+        } else {
+            Some(value)
+        }
--- upstream/dec2flt/decimal_seq.rs
+++ crate/dec2flt/decimal_seq.rs
@@ -17 +17,4 @@
-#[derive(Clone, Debug, PartialEq)]
+// Debug output is absent from the accepted observations.  Removing only that
+// implementation preserves the representation, Clone/PartialEq behavior, and
+// every fallback operation independently of GOAL truth.
+#[derive(Clone, PartialEq)]
@@ -176 +179,2 @@
-        while (n >> shift) == 0 {
+        let mut all_zero = false;
+        while (n >> shift) == 0 && !all_zero {
@@ -181 +185,4 @@
-                return;
+                // The source returns here from inside the loop.  Recording the
+                // condition and returning immediately after the loop executes
+                // no intervening operation and preserves the unchanged value.
+                all_zero = true;
@@ -189,0 +197,3 @@
+        if all_zero {
+            return;
+        }
@@ -220,0 +231,51 @@
+// This is exactly the source reverse scan over the already-consumed prefix.
+// It is separate because Aeneas cannot join the loop while `parse_decimal_seq`
+// retains its other slice borrows.  The downward index has the same visitation
+// order and counts precisely the same zero bytes while ignoring dots.
+fn count_trailing_zeros(start: &[u8], consumed_len: usize) -> usize {
+    let mut n_trailing_zeros = 0;
+    let mut i = consumed_len;
+    let mut scanning = true;
+    while i != 0 && scanning {
+        let c = start[i - 1];
+        if c == b'0' || c == b'.' {
+            i -= 1;
+            if c == b'0' {
+                n_trailing_zeros += 1;
+            }
+        } else {
+            scanning = false;
+        }
+    }
+    n_trailing_zeros
+}
+
+// Equivalent to `ByteSlice::parse_digits(|digit| d.try_add_digit(digit))`.
+// An explicit index keeps the closure's mutable borrow out of the enclosing
+// parser context while retaining the same wrapping digit test and updates.
+fn parse_digits_into_seq<'a>(s: &'a [u8], d: &mut DecimalSeq) -> &'a [u8] {
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
+        d.try_add_digit(digit);
+        count += 1;
+    }
+    &s[count..]
+}
+
+// Equivalent to the source exponent `parse_digits` closure.  Bytes after the
+// first nondigit were ignored by the caller, so only the accumulated value is
+// returned; the 0x10000 guard and wrapping digit classification are identical.
+fn parse_decimal_exponent(s: &[u8]) -> i32 {
+    let mut exp_num = 0;
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
+        if exp_num < 0x10000 {
+            exp_num = 10 * exp_num + digit as i32;
+        }
+        count += 1;
+    }
+    exp_num
+}
+
@@ -226,2 +287,5 @@
-    while let Some((&b'0', s_next)) = s.split_first() {
-        s = s_next;
+    // Aeneas rejects the literal-pattern `while let`; this loop performs the
+    // same nonempty check, byte comparison, and one-byte consumption in the
+    // same order, with identical slice bounds.
+    while !s.is_empty() && s[0] == b'0' {
+        s = &s[1..];
@@ -230 +294 @@
-    s = s.parse_digits(|digit| d.try_add_digit(digit));
+    s = parse_digits_into_seq(s, &mut d);
@@ -232,2 +296,2 @@
-    if let Some((b'.', s_next)) = s.split_first() {
-        s = s_next;
+    if !s.is_empty() && s[0] == b'.' {
+        s = &s[1..];
@@ -237,2 +301,4 @@
-            while let Some((&b'0', s_next)) = s.split_first() {
-                s = s_next;
+            // As above, this is the source leading-zero loop written in the
+            // indexed form accepted by Aeneas.
+            while !s.is_empty() && s[0] == b'0' {
+                s = &s[1..];
@@ -250 +316 @@
-        s = s.parse_digits(|digit| d.try_add_digit(digit));
+        s = parse_digits_into_seq(s, &mut d);
@@ -256,8 +322,5 @@
-        let mut n_trailing_zeros = 0;
-        for &c in start[..(start.len() - s.len())].iter().rev() {
-            if c == b'0' {
-                n_trailing_zeros += 1;
-            } else if c != b'.' {
-                break;
-            }
-        }
+        let consumed_len = start.len() - s.len();
+        // Walking an index downward visits exactly the same bytes as
+        // `.iter().rev()` and stops on the same first nonzero nondot byte.  It
+        // also avoids the missing extracted `Iterator::rev` library field.
+        let n_trailing_zeros = count_trailing_zeros(start, consumed_len);
@@ -273 +336,4 @@
-    if let Some((&ch, s_next)) = s.split_first() {
+    // Indexed tests preserve `split_first`'s nonempty guard and byte order but
+    // avoid the loop-context joins Aeneas creates for nested slice patterns.
+    if !s.is_empty() {
+        let ch = s[0];
@@ -275,4 +341,7 @@
-            s = s_next;
-            let mut neg_exp = false;
-            if let Some((&ch, s_next)) = s.split_first() {
-                neg_exp = ch == b'-';
+            s = &s[1..];
+            let mut exp_sign = 1_i32;
+            if !s.is_empty() {
+                let ch = s[0];
+                if ch == b'-' {
+                    exp_sign = -1;
+                }
@@ -280 +349 @@
-                    s = s_next;
+                    s = &s[1..];
@@ -283,7 +352 @@
-            let mut exp_num = 0_i32;
-
-            s.parse_digits(|digit| {
-                if exp_num < 0x10000 {
-                    exp_num = 10 * exp_num + digit as i32;
-                }
-            });
+            let exp_num = parse_decimal_exponent(s);
@@ -291 +354,4 @@
-            d.decimal_point += if neg_exp { -exp_num } else { exp_num };
+            // `exp_num` is bounded by the source's 0x10000 guard, so this
+            // multiplication cannot overflow and equals the original Boolean
+            // choice between `-exp_num` and `exp_num` under checked arithmetic.
+            d.decimal_point += exp_sign * exp_num;
--- upstream/dec2flt/mod.rs
+++ crate/dec2flt/mod.rs
@@ -90 +90 @@
-use common::BiasedFp;
+pub use common::BiasedFp;
@@ -118,4 +118 @@
-    const MAX_EXPONENT_FAST_PATH: i64 = {
-        let log2_5 = f64::consts::LOG2_10 - 1.0;
-        (Self::SIG_TOTAL_BITS as f64 / log2_5) as i64
-    };
+    const MAX_EXPONENT_FAST_PATH: i64;
@@ -128,2 +125 @@
-    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 =
-        Self::MAX_EXPONENT_FAST_PATH + (Self::SIG_TOTAL_BITS as f64 / f64::consts::LOG2_10) as i64;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64;
@@ -144,0 +141,4 @@
+// The f16 Lemire instance is outside the exclusively f64 scope. Disabling it
+// leaves every retained f64 parser/helper/trace body, native decision, checked
+// operation, debug assertion, return value, and accepted observation unchanged.
+#[cfg(any())]
@@ -145,0 +146,7 @@
+    // These are the exact integer results of the upstream compile-time float
+    // formulae for `SIG_TOTAL_BITS = 11`: floor(11/log2(5)) = 4 and
+    // 4 + floor(11/log2(10)) = 7.  Concrete integers avoid unsupported const
+    // float arithmetic without changing either fast-path guard.
+    const MAX_EXPONENT_FAST_PATH: i64 = 4;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 7;
+
@@ -147,3 +154,11 @@
-        #[allow(clippy::use_self)]
-        const TABLE: [f16; 8] = [1e0, 1e1, 1e2, 1e3, 1e4, 0.0, 0.0, 0.];
-        TABLE[exponent & 7]
+        // Each integer is the exact IEEE encoding of the corresponding
+        // upstream table literal; the masked lookup and fallback zeros are
+        // unchanged.  Aeneas cannot translate arrays containing float values.
+        match exponent & 7 {
+            0 => f16::from_bits(0x3C00),
+            1 => f16::from_bits(0x4900),
+            2 => f16::from_bits(0x5640),
+            3 => f16::from_bits(0x63D0),
+            4 => f16::from_bits(0x70E2),
+            _ => f16::from_bits(0),
+        }
@@ -152,0 +168,4 @@
+    // This method is exactly the upstream primitive `u64 as f16` conversion.
+    // Charon extracts the cast, but Aeneas reports it unreachable; making only
+    // this primitive boundary opaque preserves all guards and dispatcher logic.
+    #[charon::opaque]
@@ -158,0 +178,4 @@
+// The f32 Lemire instance is likewise unused by the retained f64
+// specialization, so disabling it cannot affect any retained body or observed
+// f64 execution independently of the correctness GOALs.
+#[cfg(any())]
@@ -159,0 +183,4 @@
+    // Exact upstream formula results for `SIG_TOTAL_BITS = 24`.
+    const MAX_EXPONENT_FAST_PATH: i64 = 10;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 17;
+
@@ -161,4 +188,16 @@
-        #[allow(clippy::use_self)]
-        const TABLE: [f32; 16] =
-            [1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 0., 0., 0., 0., 0.];
-        TABLE[exponent & 15]
+        // Bit constructors preserve the exact table values and masked lookup,
+        // while avoiding Aeneas's unsupported float-valued array constants.
+        match exponent & 15 {
+            0 => f32::from_bits(0x3F80_0000),
+            1 => f32::from_bits(0x4120_0000),
+            2 => f32::from_bits(0x42C8_0000),
+            3 => f32::from_bits(0x447A_0000),
+            4 => f32::from_bits(0x461C_4000),
+            5 => f32::from_bits(0x47C3_5000),
+            6 => f32::from_bits(0x4974_2400),
+            7 => f32::from_bits(0x4B18_9680),
+            8 => f32::from_bits(0x4CBE_BC20),
+            9 => f32::from_bits(0x4E6E_6B28),
+            10 => f32::from_bits(0x5015_02F9),
+            _ => f32::from_bits(0),
+        }
@@ -167,0 +207,4 @@
+    // This is exactly the source `u64 as f32` conversion.  The narrow opaque
+    // boundary is required because Aeneas rejects the primitive cast itself;
+    // its input guard and every caller remain transparent.
+    #[charon::opaque]
@@ -174,0 +218,4 @@
+    // Exact upstream formula results for `SIG_TOTAL_BITS = 53`.
+    const MAX_EXPONENT_FAST_PATH: i64 = 22;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;
+
@@ -176,5 +223,29 @@
-        const TABLE: [f64; 32] = [
-            1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13, 1e14, 1e15,
-            1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22, 0., 0., 0., 0., 0., 0., 0., 0., 0.,
-        ];
-        TABLE[exponent & 31]
+        // These bit patterns are exactly the source table's rounded binary64
+        // literals.  The match is the same masked lookup; it merely keeps float
+        // constants out of Aeneas's unsupported constant interpreter.
+        match exponent & 31 {
+            0 => f64::from_bits(0x3FF0_0000_0000_0000),
+            1 => f64::from_bits(0x4024_0000_0000_0000),
+            2 => f64::from_bits(0x4059_0000_0000_0000),
+            3 => f64::from_bits(0x408F_4000_0000_0000),
+            4 => f64::from_bits(0x40C3_8800_0000_0000),
+            5 => f64::from_bits(0x40F8_6A00_0000_0000),
+            6 => f64::from_bits(0x412E_8480_0000_0000),
+            7 => f64::from_bits(0x4163_12D0_0000_0000),
+            8 => f64::from_bits(0x4197_D784_0000_0000),
+            9 => f64::from_bits(0x41CD_CD65_0000_0000),
+            10 => f64::from_bits(0x4202_A05F_2000_0000),
+            11 => f64::from_bits(0x4237_4876_E800_0000),
+            12 => f64::from_bits(0x426D_1A94_A200_0000),
+            13 => f64::from_bits(0x42A2_309C_E540_0000),
+            14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
+            15 => f64::from_bits(0x430C_6BF5_2634_0000),
+            16 => f64::from_bits(0x4341_C379_37E0_8000),
+            17 => f64::from_bits(0x4376_3457_85D8_A000),
+            18 => f64::from_bits(0x43AB_C16D_674E_C800),
+            19 => f64::from_bits(0x43E1_58E4_6091_3D00),
+            20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
+            21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
+            22 => f64::from_bits(0x4480_F0CF_064D_D592),
+            _ => f64::from_bits(0),
+        }
@@ -183,0 +255,8 @@
+    // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
+    // `charon::opaque` makes this entire asserted conversion external: both the
+    // unchanged `debug_assert!` and the unchanged cast below are in the opaque
+    // body. The callers, their fast-path guards, and their surrounding
+    // computation remain mechanically visible. A corresponding model binding
+    // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
+    // exact binary64 conversion at or below that bound.
+    #[charon::opaque]
@@ -209,5 +288,80 @@
-/// Converts a decimal string into a floating point number.
-#[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
-pub fn dec2flt<F: Lemire>(s: &str) -> Result<F, ParseFloatError> {
-    let mut s = s.as_bytes();
-    let Some(&c) = s.first() else { return Err(pfe_empty()) };
+/// Observable control-flow record for a dispatcher execution.
+///
+/// These variants add no decisions to the conversion: each stores values
+/// already computed at the corresponding source branch.  In particular, the
+/// first component returned by `dec2flt_with_trace` is the ordinary parser
+/// result, so projecting it preserves every public source observation without
+/// assuming any correctness goal.
+pub enum Dec2FltTrace<'a, F> {
+    /// The original string was empty; no helper was called.
+    EmptyInput,
+    /// Removing one lexical sign left an empty body; no helper was called.
+    SignOnly { body: &'a [u8], negative: bool },
+    /// Both lexical helpers returned `None`; no raw pair was selected.
+    Invalid {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        parse_inf_nan_result: Option<F>,
+    },
+    /// The special helper supplied the directly returned value; no pair was selected.
+    Special {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        parse_inf_nan_result: Option<F>,
+        result: F,
+    },
+    /// The ordinary native shortcut supplied the directly returned value.
+    FastPath {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        fast_path_input: decimal::Decimal,
+        fast_path_result: Option<F>,
+        result: F,
+    },
+    /// The integer/slow path selected and assembled one raw pair.
+    Assembled(Dec2FltAssemblyTrace<'a, F>),
+}
+
+/// Full observation record for the dispatcher path that performs final assembly.
+pub struct Dec2FltAssemblyTrace<'a, F> {
+    pub body: &'a [u8],
+    pub negative: bool,
+    pub parse_number_result: Option<decimal::Decimal>,
+    pub fast_path_input: decimal::Decimal,
+    pub fast_path_result: Option<F>,
+    pub first_compute_exponent: i64,
+    pub first_compute_mantissa: u64,
+    pub first_compute_result: BiasedFp,
+    pub second_compute_guard: bool,
+    pub second_compute_exponent: Option<i64>,
+    pub second_compute_mantissa: Option<u64>,
+    pub second_compute_result: Option<BiasedFp>,
+    pub second_equals_first: Option<bool>,
+    pub forced_deferral: bool,
+    pub post_comparison_pair: BiasedFp,
+    pub slow_path_guard: bool,
+    pub slow_path_result: Option<BiasedFp>,
+    pub selected_pair: BiasedFp,
+    pub assembled_word: u64,
+    pub assembly_result: F,
+    pub lexical_sign_applied: bool,
+    pub result: F,
+}
+
+/// Run the actual dispatcher while retaining its approved internal observations.
+pub fn dec2flt_with_trace<
+    'a,
+    F: Lemire
+        + core::ops::Div<Output = F>
+        + core::ops::Mul<Output = F>
+        + core::ops::Neg<Output = F>,
+>(
+    s: &'a str,
+) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
+    let mut body = s.as_bytes();
+    let Some(&c) = body.first() else {
+        return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
+    };
@@ -216 +370 @@
-        s = &s[1..];
+        body = &body[1..];
@@ -218,2 +372,2 @@
-    if s.is_empty() {
-        return Err(pfe_invalid());
+    if body.is_empty() {
+        return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
@@ -222 +376,2 @@
-    let mut num = match parse_number(s) {
+    let parse_number_result = parse_number(body);
+    let parsed = match parse_number_result {
@@ -224,2 +379,24 @@
-        None if let Some(value) = parse_inf_nan(s, negative) => return Ok(value),
-        None => return Err(pfe_invalid()),
+        None => {
+            let parse_inf_nan_result = parse_inf_nan(body, negative);
+            return match parse_inf_nan_result {
+                Some(value) => (
+                    Ok(value),
+                    Dec2FltTrace::Special {
+                        body,
+                        negative,
+                        parse_number_result,
+                        parse_inf_nan_result,
+                        result: value,
+                    },
+                ),
+                None => (
+                    Err(pfe_invalid()),
+                    Dec2FltTrace::Invalid {
+                        body,
+                        negative,
+                        parse_number_result,
+                        parse_inf_nan_result,
+                    },
+                ),
+            };
+        }
@@ -226,0 +404,2 @@
+
+    let mut num = parsed;
@@ -229,2 +408,13 @@
-        if let Some(value) = num.try_fast_path::<F>() {
-            return Ok(value);
+        let fast_path_result = num.try_fast_path::<F>();
+        if let Some(value) = fast_path_result {
+            return (
+                Ok(value),
+                Dec2FltTrace::FastPath {
+                    body,
+                    negative,
+                    parse_number_result,
+                    fast_path_input: num,
+                    fast_path_result,
+                    result: value,
+                },
+            );
@@ -234,15 +424,27 @@
-    // If significant digits were truncated, then we can have rounding error
-    // only if `mantissa + 1` produces a different result. We also avoid
-    // redundantly using the Eisel-Lemire algorithm if it was unable to
-    // correctly round on the first pass.
-    let mut fp = compute_float::<F>(num.exponent, num.mantissa);
-    if num.many_digits
-        && fp.p_biased >= 0
-        && fp != compute_float::<F>(num.exponent, num.mantissa + 1)
-    {
-        fp.p_biased = -1;
-    }
-    // Unable to correctly round the float using the Eisel-Lemire algorithm.
-    // Fallback to a slower, but always correct algorithm.
-    if fp.p_biased < 0 {
-        fp = parse_long_mantissa::<F>(s);
+    let first_compute_exponent = num.exponent;
+    let first_compute_mantissa = num.mantissa;
+    let first_compute_result = compute_float::<F>(first_compute_exponent, first_compute_mantissa);
+    let mut fp = first_compute_result;
+
+    // This expands the source short-circuit conjunction without moving the
+    // checked `mantissa + 1`: that addition and the second helper call still
+    // occur exactly when `many_digits && fp.p_biased >= 0`.
+    let second_compute_guard = num.many_digits && fp.p_biased >= 0;
+    let mut second_compute_exponent = None;
+    let mut second_compute_mantissa = None;
+    let mut second_compute_result = None;
+    let mut second_equals_first = None;
+    let mut forced_deferral = false;
+    if second_compute_guard {
+        let exponent = num.exponent;
+        let mantissa = num.mantissa + 1;
+        let second = compute_float::<F>(exponent, mantissa);
+        let equal = fp == second;
+        second_compute_exponent = Some(exponent);
+        second_compute_mantissa = Some(mantissa);
+        second_compute_result = Some(second);
+        second_equals_first = Some(equal);
+        if !equal {
+            fp.p_biased = -1;
+            forced_deferral = true;
+        }
@@ -249,0 +452 @@
+    let post_comparison_pair = fp;
@@ -251,5 +454,69 @@
-    let mut float = biased_fp_to_float::<F>(fp);
-    if num.negative {
-        float = -float;
-    }
-    Ok(float)
+    let slow_path_guard = fp.p_biased < 0;
+    let mut slow_path_result = None;
+    if slow_path_guard {
+        // The exact slow-path input is the trace's common `body`; the guard
+        // records whether this call occurred, avoiding a duplicate live slice
+        // reference that Aeneas cannot join across this branch.
+        let replacement = parse_long_mantissa::<F>(body);
+        slow_path_result = Some(replacement);
+        fp = replacement;
+    }
+
+    let selected_pair = fp;
+    // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
+    // it neither changes the selected pair nor introduces a new branch or call.
+    let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
+    let assembly_result = biased_fp_to_float::<F>(fp);
+    let lexical_sign_applied = num.negative;
+    let result = if lexical_sign_applied {
+        core::ops::Neg::neg(assembly_result)
+    } else {
+        assembly_result
+    };
+
+    (
+        Ok(result),
+        Dec2FltTrace::Assembled(Dec2FltAssemblyTrace {
+            body,
+            negative,
+            parse_number_result,
+            fast_path_input: num,
+            fast_path_result: None,
+            first_compute_exponent,
+            first_compute_mantissa,
+            first_compute_result,
+            second_compute_guard,
+            second_compute_exponent,
+            second_compute_mantissa,
+            second_compute_result,
+            second_equals_first,
+            forced_deferral,
+            post_comparison_pair,
+            slow_path_guard,
+            slow_path_result,
+            selected_pair,
+            assembled_word,
+            assembly_result,
+            lexical_sign_applied,
+            result,
+        }),
+    )
+}
+
+/// Converts a decimal string into a floating point number.
+#[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
+pub fn dec2flt<
+    F: Lemire
+        + core::ops::Div<Output = F>
+        + core::ops::Mul<Output = F>
+        + core::ops::Neg<Output = F>,
+>(
+    s: &str,
+) -> Result<F, ParseFloatError> {
+    // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
+    // clause admits exactly the same instances and lets Charon resolve the
+    // explicit, source-equivalent final negation.
+    // The public function is now exactly the result projection of the single
+    // instrumented implementation.  No conversion step is duplicated, and
+    // discarding the trace cannot affect Rust evaluation or the returned bits.
+    dec2flt_with_trace::<F>(s).0
--- upstream/dec2flt/parse.rs
+++ crate/dec2flt/parse.rs
@@ -34,3 +34,6 @@
-        let num = s.read_u64();
-        if is_8digits(num) {
-            x = x.wrapping_mul(1_0000_0000).wrapping_add(parse_8digits(num));
+        // `chunk` is the source's local `num` under a nonconflicting name.
+        // The rename has no Rust effect and prevents the Lean backend from
+        // resolving `num.imp...` as a field projection on this local value.
+        let chunk = s.read_u64();
+        if is_8digits(chunk) {
+            x = x.wrapping_mul(1_0000_0000).wrapping_add(parse_8digits(chunk));
@@ -43 +46,6 @@
-    s = s.parse_digits(|digit| {
+    // This is the removed `ByteSlice::parse_digits` call specialized to its
+    // only parser use: identical wrapping digit classification, accumulator
+    // update, and first-nondigit stop, without an unsupported closure state.
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
@@ -45 +53,3 @@
-    });
+        count += 1;
+    }
+    s = &s[count..];
@@ -71,0 +82,38 @@
+// This is the source prefix scan isolated from `parse_partial_number` because
+// Aeneas cannot join its loop context while the enclosing function's other
+// slice borrows are live.  It visits the same bytes, in order, and performs
+// the identical checked `isize` subtraction for every leading dot or zero.
+fn adjust_many_digit_count(start: &[u8], mut n_digits: isize) -> isize {
+    let mut scan_index = 0;
+    let mut scanning = true;
+    while scan_index < start.len() && scanning {
+        let c = start[scan_index];
+        if c == b'.' || c == b'0' {
+            n_digits -= c.saturating_sub(b'0' - 1) as isize;
+            scan_index += 1;
+        } else {
+            scanning = false;
+        }
+    }
+    n_digits
+}
+
+// This is the source many-digit retry as a transparent helper.  Isolating its
+// rebased slices avoids an Aeneas context-join failure; both calls, the branch,
+// the offset arithmetic, and the explicit-exponent addition are unchanged.
+fn parse_many_digits(start: &[u8], int_end: &[u8], exp_number: i64) -> (u64, i64) {
+    let mut mantissa = 0;
+    let mut s = start;
+    try_parse_19digits(&mut s, &mut mantissa);
+    let mut exponent = if mantissa >= MIN_19DIGIT_INT {
+        int_end.offset_from(s)
+    } else {
+        s = &s[1..];
+        let before = s;
+        try_parse_19digits(&mut s, &mut mantissa);
+        -s.offset_from(before)
+    } as i64;
+    exponent += exp_number;
+    (mantissa, exponent)
+}
+
@@ -86,3 +134,10 @@
-    if matches!(s.first(), Some(&x) if x.is_ascii_digit()) {
-        *s_ref = s.parse_digits(|digit| {
-            // no overflows here, saturate well before overflow
+    // `matches!` with a guarded slice pattern triggers an Aeneas internal
+    // error.  This short-circuit test reads the same first byte exactly when
+    // it exists and therefore preserves both acceptance and evaluation order.
+    if !s.is_empty() && s[0].is_ascii_digit() {
+        // Specialized form of the source digit callback.  `count` advances
+        // exactly once per accepted byte and the bound keeps every checked
+        // exponent operation in the same safe range as the source.
+        let mut count = 0;
+        while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+            let digit = s[count].wrapping_sub(b'0');
@@ -92 +147,3 @@
-        });
+            count += 1;
+        }
+        *s_ref = &s[count..];
@@ -155,9 +212,5 @@
-    let mut p = start;
-    while let Some((&c, p_next)) = p.split_first() {
-        if c == b'.' || c == b'0' {
-            n_digits -= c.saturating_sub(b'0' - 1) as isize;
-            p = p_next;
-        } else {
-            break;
-        }
-    }
+    // The indexed loop is equivalent to the source `while let split_first`:
+    // it tests nonemptiness before the same byte read and consumes one byte
+    // only on the two source continuation cases.  This avoids Aeneas's loop
+    // context mismatch without changing checked subtraction or slice bounds.
+    n_digits = adjust_many_digit_count(start, n_digits);
@@ -167,14 +220,3 @@
-        mantissa = 0;
-        let mut s = start;
-        try_parse_19digits(&mut s, &mut mantissa);
-        exponent = if mantissa >= MIN_19DIGIT_INT {
-            // big int
-            int_end.offset_from(s)
-        } else {
-            s = &s[1..];
-            let before = s;
-            try_parse_19digits(&mut s, &mut mantissa);
-            -s.offset_from(before)
-        } as i64;
-        // add back the explicit part
-        exponent += exp_number;
+        let retried = parse_many_digits(start, int_end, exp_number);
+        mantissa = retried.0;
+        exponent = retried.1;
--- upstream/dec2flt/slow.rs
+++ crate/dec2flt/slow.rs
@@ -48,0 +49 @@
+    let mut loop_result = None;
@@ -50 +51 @@
-    while d.decimal_point > 0 {
+    while d.decimal_point > 0 && loop_result.is_none() {
@@ -55 +56,7 @@
-            return fp_zero;
+            // The source returns `fp_zero` at this exact point.  Storing that
+            // result and terminating the loop performs no later loop update;
+            // the return below is therefore behavior-identical and avoids an
+            // Aeneas restriction on returns from nested loop translation.
+            loop_result = Some(fp_zero);
+        } else {
+            exp2 += shift as i32;
@@ -57 +64,3 @@
-        exp2 += shift as i32;
+    }
+    if let Some(result) = loop_result {
+        return result;
@@ -60 +69 @@
-    while d.decimal_point <= 0 {
+    while d.decimal_point <= 0 && loop_result.is_none() {
@@ -72 +81,6 @@
-            return fp_inf;
+            // This records the source's immediate `fp_inf` return.  Since the
+            // guarded loop exits before the exponent update, moving the return
+            // just below the loop preserves every state transition.
+            loop_result = Some(fp_inf);
+        } else {
+            exp2 -= shift as i32;
@@ -74 +88,3 @@
-        exp2 -= shift as i32;
+    }
+    if let Some(result) = loop_result {
+        return result;
--- upstream/traits.rs
+++ crate/traits.rs
@@ -11 +11 @@
-use crate::{f64, fmt, ops};
+use crate::{f64, ops};
@@ -14 +14,5 @@
-pub trait CastInto<T: Copy>: Copy {
+// All uses are through `Int`, which independently requires `Self: Copy`, and
+// every implementation here is a primitive Copy type.  Removing that redundant
+// supertrait changes no call or value but prevents Aeneas from emitting two
+// identically named `Copy` fields for `Self` and `T` in the Lean structure.
+pub trait CastInto<T: Copy> {
@@ -18,0 +23,4 @@
+// The accepted observations contain no formatting behavior.  Removing the
+// `Debug` supertrait changes neither the concrete primitive integer instances
+// nor any operation used by the algorithms, so it preserves the f64
+// specialization and every inventoried observation independently of GOAL truth.
@@ -23 +30,0 @@
-    + fmt::Debug
@@ -52 +59,6 @@
-int!(u16, u32, u64);
+// Only `u64` is the associated integer of the retained `f64` specialization.
+// The removed `u16`/`u32` instances served only the excluded `f16`/`f32`
+// implementations, so their removal changes no f64 public, helper, or trace
+// body, native decision, checked arithmetic, debug assertion, return value, or
+// accepted observation.
+int!(u64);
@@ -55,0 +68,6 @@
+// Formatting is outside every accepted public and trace observation. `Add`,
+// equality, ordering, default construction, and cloning are also unused by all
+// retained generic bodies; only `Copy`, `Mul`, `Div`, and `Neg` are required.
+// Removing those unused requirements admits the same f64 implementation and
+// changes no f64 body, native decision, checked arithmetic, debug assertion,
+// return value, or trace observation, independently of any GOAL's truth.
@@ -61,6 +78,0 @@
-    + ops::Add<Output = Self>
-    + fmt::Debug
-    + PartialEq
-    + PartialOrd
-    + Default
-    + Clone
@@ -134,4 +146 @@
-    const LARGEST_POWER_OF_TEN: i32 = {
-        let largest_pow2 = Self::EXP_BIAS + 1;
-        pow2_to_pow10(largest_pow2 as i64) as i32
-    };
+    const LARGEST_POWER_OF_TEN: i32;
@@ -175,19 +184 @@
-    fn integer_decode(self) -> (u64, i16, i8) {
-        let bits = self.to_bits();
-        let sign: i8 = if bits >> (Self::BITS - 1) == Self::Int::ZERO { 1 } else { -1 };
-        let mut exponent: i16 = ((bits & Self::EXP_MASK) >> Self::SIG_BITS).cast();
-        let mantissa = if exponent == 0 {
-            (bits & Self::SIG_MASK) << 1
-        } else {
-            (bits & Self::SIG_MASK) | (Self::Int::ONE << Self::SIG_BITS)
-        };
-        // Exponent bias + mantissa shift
-        exponent -= (Self::EXP_BIAS + Self::SIG_BITS) as i16;
-        (mantissa.into(), exponent, sign)
-    }
-}
-
-/// Solve for `b` in `10^b = 2^a`
-const fn pow2_to_pow10(a: i64) -> i64 {
-    let res = (a as f64) / f64::consts::LOG2_10;
-    res as i64
+    fn integer_decode(self) -> (u64, i16, i8);
@@ -196,0 +188,4 @@
+// The f16 implementation is outside the exclusively f64 scope. Disabling it
+// leaves every retained f64 public/helper/trace body and all of its decisions,
+// checked operations, assertions, return values, and observations unchanged.
+#[cfg(any())]
@@ -203 +198,4 @@
-    const NEG_NAN: Self = -Self::NAN;
+    // `from_bits` produces exactly the bit pattern obtained by negating the
+    // upstream canonical NaN.  This avoids Aeneas's unsupported float unop
+    // while preserving the constant, including its sign and payload bits.
+    const NEG_NAN: Self = f16::from_bits(0xFE00);
@@ -211,0 +210,2 @@
+    // Exact value of trunc(16 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 4;
@@ -223,0 +224,3 @@
+// `FloatExt for f16` is used only by the excluded f16 specialization; it is
+// irrelevant to all retained f64 computation and observations listed above.
+#[cfg(any())]
@@ -228,0 +232,16 @@
+
+    // Specializing the upstream default removes only unsupported associated-
+    // integer operator resolution; these are the same bit operations with
+    // `Self::Int = u16` and the same exponent-bias subtraction.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 15 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 10) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u16 << 10)
+        };
+        exponent -= 15 + 10;
+        (mantissa as u64, exponent, sign)
+    }
@@ -230,0 +250,3 @@
+// The f32 implementation is outside the exclusively f64 scope. Disabling it
+// does not alter any retained f64 computation, assertion, result, or trace.
+#[cfg(any())]
@@ -237 +259,3 @@
-    const NEG_NAN: Self = -f32::NAN;
+    // Bit-identical to the upstream `-f32::NAN`, without the unsupported
+    // compile-time float negation.
+    const NEG_NAN: Self = f32::from_bits(0xFFC0_0000);
@@ -245,0 +270,2 @@
+    // Exact value of trunc(128 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 38;
@@ -256,0 +283,3 @@
+// `FloatExt for f32` likewise has no use in any retained f64 body or accepted
+// observation and is disabled without changing f64 execution.
+#[cfg(any())]
@@ -261,0 +291,16 @@
+
+    // This is the upstream default after substituting `Self::Int = u32`;
+    // concreteness is needed only because Charon cannot resolve the generic
+    // associated-integer shifts and bit operators for Aeneas.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 31 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 23) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u32 << 23)
+        };
+        exponent -= 127 + 23;
+        (mantissa as u64, exponent, sign)
+    }
@@ -270 +315,3 @@
-    const NEG_NAN: Self = -Self::NAN;
+    // Bit-identical to the upstream `-f64::NAN`, without the unsupported
+    // compile-time float negation.
+    const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);
@@ -278,0 +326,2 @@
+    // Exact value of trunc(1024 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 308;
@@ -293,0 +343,16 @@
+    }
+
+    // This is the upstream default after substituting `Self::Int = u64`;
+    // it preserves every decoded field while avoiding unsupported generic
+    // associated-integer operator resolution.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 63 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 52) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u64 << 52)
+        };
+        exponent -= 1023 + 52;
+        (mantissa, exponent, sign)
reference/model-evidence/source-adaptation-delta.txt

Open file

Primary inventory and preservation analysis of the upstream-to-crate delta
============================================================================

Method and complete file inventory
----------------------------------

This record compares the supplied files in upstream/ with the frozen adapted
crate/.  It treats the sources and their control flow as primary evidence; it
does not use a prior route decision as semantic proof and makes no assertion
that a supplied GOAL is true.  The exact raw aggregate diff is retained as
reference/model-evidence/source-adaptation-delta.diff.  It was generated from
the repository root by this exact command (the for-list is the complete
LC_ALL=C-sorted upstream inventory, identical files contribute zero bytes,
labels are literal root-relative paths, hunks are concatenated in listed
order, status 1 is accepted as diff's expected ``files differ'' status, and
every other nonzero status aborts):

  export LC_ALL=C
  artifact=reference/model-evidence/source-adaptation-delta.diff
  : > "$artifact"
  saw_difference=0
  for supplied in \
    dec2flt/common.rs \
    dec2flt/decimal.rs \
    dec2flt/decimal_seq.rs \
    dec2flt/fpu.rs \
    dec2flt/lemire.rs \
    dec2flt/mod.rs \
    dec2flt/parse.rs \
    dec2flt/slow.rs \
    dec2flt/table.rs \
    traits.rs
  do
    if diff --unified=0 --label "upstream/$supplied" --label "crate/$supplied" \
        "upstream/$supplied" "crate/$supplied" >> "$artifact"; then
      :
    else
      diff_status=$?
      if [ "$diff_status" -ne 1 ]; then
        exit "$diff_status"
      fi
      saw_difference=1
    fi
  done
  test "$saw_difference" -eq 1
  sha256sum "$artifact"

The command used GNU diffutils 3.12 at /usr/bin/diff, whose SHA-256 is
dfab4814355b488934cf8c63ce96d94184ea3d9b5e4f9be50278ad8e080168f5.
Its actual final output was:

  fdf88cabfe40ce962d2bd5eda22eb5b3cbbf8a936a81b896e98698bf472cd0e4  reference/model-evidence/source-adaptation-delta.diff

The retained byte stream is 38,813 bytes and 933 lines.  The complete source
inventory and independently reproduced file hashes are:

  supplied path                 upstream SHA-256                                                   crate SHA-256                                                      status
  dec2flt/common.rs             fc64094721ff23e08fcba013154d04dec3fe986cae5ffd73a20f86049980aace   4c4be815335a7b176527eb1345e662890caa48181a0a4f814594339016cab18e   changed
  dec2flt/decimal.rs            3c164785e1bc3f3b48aa9c212dd6c4ab535fe828523af9fa584df4c7b1e60e0d   633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb   changed
  dec2flt/decimal_seq.rs        c0c1c6028e3f57cefc3de7635a94788e9180f5ebcedc7a334ec8dbac786ec788   4aa4ecf9f31970033093d73238d4f2c72d433639bbe467c0741b185807380bd9   changed
  dec2flt/fpu.rs                16cf9ec154d477ab3d4184a01fb4b9ed7c59f0228cc55589d393c40a61b19d8f   16cf9ec154d477ab3d4184a01fb4b9ed7c59f0228cc55589d393c40a61b19d8f   identical
  dec2flt/lemire.rs             fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1   fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1   identical
  dec2flt/mod.rs                7198e238c554b692405537a446b3526ad66805ec2900cd0e299f10c51402a44a   ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d   changed
  dec2flt/parse.rs              9daf21ab9445a84552535152f376eef8c30f3d5827296c0645f5952d3b22bbf1   50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f   changed
  dec2flt/slow.rs               43e7aba32d7431bbf0e1bbcb4c334eaffb23eb66891c7e45abe799c5235cc0d2   93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485   changed
  dec2flt/table.rs              6eb59023784bd84cb6fb074c70da8a99bef72bc2a2ea179b0da457ca1ee00abb   6eb59023784bd84cb6fb074c70da8a99bef72bc2a2ea179b0da457ca1ee00abb   identical
  traits.rs                     66a02c44d72dfcc3ddae7e34a290e390dabaf98c5911b283d2d97f2f0075a44e   9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf   changed

The standalone package adds four files having no supplied counterpart:

  crate/Cargo.toml              2040ce5dc92c51b5245113f97682b692b876aa57708b5c7c483425ba152943c8
  crate/lib.rs                  1df2b8bcb2f52068d05a6343923716d0ef4475abdef34a0de3fe7cb8dc2ba95b
  crate/num/mod.rs              d9ac4f964d124bd4660914dc4c80bbb14f48d7851f9a8edc71a0931e9fce37b3
  crate/num/imp/mod.rs          df09b97393e97b23b0a558c2fcbbf4e75dd9d68338f1e83f168bab80a37a31f1

Thus fpu.rs, lemire.rs, and the complete 671-line table.rs, including their
algorithmic constants and tables, are byte-identical.  The following sections
account for every other file and every changed hunk.

Namespace and error shell
-------------------------

crate/lib.rs:1-12 is a no_std crate root that re-exports core::f64 and
core::ops and introduces the same num module path expected by the supplied
slice.  crate/num/imp/mod.rs:1-10 uses path attributes to place traits.rs and
dec2flt/mod.rs at core::num::imp-like module names.  These declarations add no
wrapper call or computation.  crate/num/mod.rs:1 re-exports
core::num::FpCategory.  crate/num/mod.rs:3-26 defines a local private
FloatErrorKind and ParseFloatError shell so the standalone package can name
the parser's error type.  The pursued GOALs observe only panic versus normal
return and, on normal return, the outer Result's Ok/Err discriminant; they do
not observe the private error kind or formatting.  No identity is asserted
between this local shell and an unpinned core error payload.
crate/Cargo.toml:5-22 selects the package, empty default features, and
checked-overflow profiles.  The configuration and fresh build are independently
reproduced in setup-reproduction.txt.

Visibility, derives, and bounds
-------------------------------

upstream/dec2flt/mod.rs:90 versus crate/dec2flt/mod.rs:90 changes only the
visibility of the existing BiasedFp import so a goal-facing caller can name the
same type.  It changes neither layout nor execution.

upstream/dec2flt/common.rs:68 and decimal.rs:28 and decimal_seq.rs:17 include
Debug derives.  The corresponding crate spans common.rs:48-51,
decimal.rs:28-31, and decimal_seq.rs:17-20 remove only Debug.  Copy, Clone,
PartialEq, Eq, and Default used by computation remain where present, and no
accepted observation formats these records.

upstream/traits.rs:11-52 versus crate/traits.rs:11-64 removes formatting from
Int, removes a redundant Copy supertrait from CastInto, and instantiates Int
only for u64.  Every call of CastInto is through Int, which still requires
Copy; all retained concrete values are primitive Copy values.  The removed
u16/u32 instances are associated only with the disabled f16/f32 formats.

upstream/traits.rs:55-76 versus crate/traits.rs:67-80 removes Add, Debug,
PartialEq, PartialOrd, Default, and Clone from Float while retaining Copy, Mul,
Div, and Neg.  A search of all retained generic bodies shows no call using a
removed operation.  upstream/dec2flt/decimal.rs:56-89 versus
crate/dec2flt/decimal.rs:59-111 and upstream/dec2flt/mod.rs:209-256 versus
crate/dec2flt/mod.rs:352-520 add direct Div, Mul, and Neg bounds already implied
by Lemire -> Float, and replace operator notation with calls to those same
traits.  Rust desugars the original /, *, and unary - to these trait calls, so
the operands, call order, result, and admitted f64 specialization are unchanged.

Exact constants, tables, and specialized decoding
-------------------------------------------------

The source formulae and decimal-literal table were evaluated directly by the
pinned rustc using the retained source
reference/model-evidence/adaptation-constants-probe.rs.  The command was:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/adaptation-constants-probe.rs
  B=.trellis/scratch/adaptation-constants-probe
  "$R" --edition 2024 --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$P" "$B"
  "$B"

The source hash was
b5a4a2cba0c08053cb9a816adb1ba5dbd160bf3928bdf5ccf56b7ae83aaa2aa5
and the resulting executable hash was
b02d2f6deb675f17d0dbdc22e57a67d7692689f7a2b0d7b125556c35c4b8a4a5.
Raw output was:

  largest_power_of_ten=308
  max_exponent_fast_path=22
  max_exponent_disguised=37
  neg_nan=fff8000000000000
  pow10_0=3ff0000000000000
  pow10_1=4024000000000000
  pow10_2=4059000000000000
  pow10_3=408f400000000000
  pow10_4=40c3880000000000
  pow10_5=40f86a0000000000
  pow10_6=412e848000000000
  pow10_7=416312d000000000
  pow10_8=4197d78400000000
  pow10_9=41cdcd6500000000
  pow10_10=4202a05f20000000
  pow10_11=42374876e8000000
  pow10_12=426d1a94a2000000
  pow10_13=42a2309ce5400000
  pow10_14=42d6bcc41e900000
  pow10_15=430c6bf526340000
  pow10_16=4341c37937e08000
  pow10_17=4376345785d8a000
  pow10_18=43abc16d674ec800
  pow10_19=43e158e460913d00
  pow10_20=4415af1d78b58c40
  pow10_21=444b1ae4d6e2ef50
  pow10_22=4480f0cf064dd592

upstream/traits.rs:134-137 computes LARGEST_POWER_OF_TEN through a Float
default, and upstream/traits.rs:175-193 gives the generic integer_decode and
the helper used by that constant.  crate/traits.rs:146 makes the constant an
associated requirement; crate/traits.rs:309-359 supplies the retained f64
values and decoder after substituting BITS=64, SIG_BITS=52, EXP_BIAS=1023,
EXPONENT_MASK, MANTISSA_MASK, and the u64 operations.  Each source expression
then becomes exactly the corresponding crate expression: sign is bits>>63,
exponent is (bits & mask)>>52 cast to i16, the subnormal mantissa is shifted
once, the normal mantissa receives 1<<52, and 1023+52 is subtracted.  The
resulting tuple and every bit operation are unchanged.  The probe output above
shows that the computed f64 LARGEST_POWER_OF_TEN is 308 and that the source
-f64::NAN word is fff8000000000000, exactly crate/traits.rs:315-327; the
independent binary64-boundary.txt record fixes the masks and primitive bit
semantics used by the decoder.

upstream/dec2flt/mod.rs:118-129 gives the two Lemire default formulae.
crate/dec2flt/mod.rs:115-128 makes them associated requirements, and the
retained f64 instance at crate/dec2flt/mod.rs:217-220 supplies 22 and 37, the
integer results of the two source formulae for 53 significand bits.
upstream/dec2flt/mod.rs:176-181 indexes a 32-entry f64 table with exponent&31.
crate/dec2flt/mod.rs:222-251 performs the same masked selection using from_bits:
cases 0 through 22 are the exact pinned binary64 words printed above for 1e0 through 1e22 and
all other cases return positive zero, as did entries 23 through 31.  The full
word list and the pinned float semantics are recorded in binary64-boundary.txt.
The analogous f16/f32 replacements at crate/dec2flt/mod.rs:145-215 and
crate/traits.rs:187-307 lie under cfg(any()) and cannot enter this build.

Whole-function from_u64 opacity
-------------------------------

upstream/dec2flt/mod.rs:184-188 and crate/dec2flt/mod.rs:263-266 have the same
f64 body: the same enabled debug_assert that v <= 1<<53, followed by the same
primitive `v as f64` cast.  The sole semantic-boundary annotation is
#[charon::opaque] at crate line 262, syntactically attached to the function
item.  It therefore hides the entire from_u64 body from translation: neither
the debug assertion nor the cast is transparent in the extraction.  The
callers, their guards, and the surrounding native-path computation remain
transparent.  The fresh external inventory contains the whole method as the
single external F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64.  Its
separately reviewed ModelF64FromU64 binding supplies exactly successful integer
conversion for v <= 2^53 and assertion failure otherwise.

Digit scans, slice patterns, and helper extraction
-------------------------------------------------

upstream/dec2flt/common.rs:14-53 supplies ByteSlice::parse_digits: repeatedly
split_first, wrapping-subtract ASCII zero, invoke the closure exactly when the
result is below 10, consume that byte, and stop at the first other byte.
crate/dec2flt/common.rs:11-36 removes only this method.  Its complete set of
uses is replaced as follows.

* upstream/dec2flt/parse.rs:31-48 versus crate/dec2flt/parse.rs:31-58 keeps the
  eight-byte loop, wrapping multiply/add, and then performs the same digit test,
  accumulator update, and one-byte progress with an index.  The local rename
  num to chunk is lexical only.
* upstream/dec2flt/parse.rs:83-97 versus crate/dec2flt/parse.rs:131-153 expands
  matches!/parse_digits into the same nonempty first-digit guard, the same
  0x10000 bounded exponent update, the same first-nondigit suffix, and the same
  final sign.  The bound is tested before each checked multiply and addition,
  exactly as in the closure.
* upstream/dec2flt/decimal_seq.rs:220-295 versus
  crate/dec2flt/decimal_seq.rs:231-359 extracts parse_digits_into_seq,
  parse_decimal_exponent, and count_trailing_zeros.  The digit helpers use the
  same wrapping byte test, forward order, try_add_digit state transition, and
  0x10000 exponent guard.  The reverse helper visits indices consumed_len-1
  down to zero, increments only for ASCII zero, ignores a decimal point, and
  stops at the first other byte, exactly the original iter().rev() loop.

In all these replacements, indexing occurs only under count<len or !is_empty,
so it has the same bounds as split_first.  Slicing advances by exactly the same
one or eight bytes.  No wrapping operation is replaced by checked arithmetic,
and no checked source operation is replaced by wrapping arithmetic.

upstream/dec2flt/parse.rs:155-181 versus crate/dec2flt/parse.rs:82-119 and
212-226 moves two loops into adjust_many_digit_count and parse_many_digits.
The prefix helper visits the same start bytes in the same order, performs the
same saturating_sub and checked isize subtraction, and stops on the same byte.
The retry helper makes the same first 19-digit call, tests the same threshold,
makes the same one-byte rebase and second call in the alternate branch,
computes the same offset with the same sign, casts it to i64, and performs the
same checked addition of exp_number last.  Thus any large-input panic is
preserved rather than excluded.

upstream/dec2flt/decimal_seq.rs:226-295 versus
crate/dec2flt/decimal_seq.rs:284-359 replaces literal split_first patterns by
nonempty index tests.  The leading-zero scans, optional decimal point, optional
exponent marker, optional exponent sign, and suffixes occur in the same order.
The crate's exp_sign*exp_num equals the source choice between exp_num and
-exp_num because exp_num is bounded by the unchanged 0x10000 guard; the final
decimal_point checked addition is in the same position.  Casts of lengths to
i32 and every subsequent checked update remain unchanged, including their
large-input behavior.

Delayed returns
---------------

upstream/dec2flt/decimal_seq.rs:173-198 versus
crate/dec2flt/decimal_seq.rs:176-203 replaces one return inside right_shift's
loop by all_zero=true, exits because !all_zero is the loop guard, and returns
immediately afterward.  No decimal_point, digit, index, or arithmetic update
occurs between the original and delayed return.

upstream/dec2flt/slow.rs:46-76 versus crate/dec2flt/slow.rs:46-94 replaces two
nested-loop returns by loop_result.  In the zero branch it records fp_zero,
skips the source-skipped exp2 addition, exits through is_none(), and returns.
In the infinity branch it records fp_inf, skips the source-skipped exp2
subtraction, exits, and returns.  On all other iterations it performs the same
shift, checked state changes, and exponent update.  Lines 95-126 after these
returns are otherwise the source lines 77-110 unchanged.

Dispatcher trace and public projection
--------------------------------------

upstream/dec2flt/mod.rs:209-256 is the whole original dispatcher.
crate/dec2flt/mod.rs:285-349 declares trace data only, lines 352-505 execute the
instrumented dispatcher, and lines 507-520 define public dec2flt as its first
projection.  Comparing the bodies gives the following branch-by-branch
correspondence.

* Both call as_bytes, inspect the first byte, reject empty input before a helper,
  remove at most one sign, and reject a sign-only body.  The trace stores the
  already obtained body and Boolean sign.
* Both call parse_number first on that exact body.  Only None calls
  parse_inf_nan on the same body and sign.  Its Some is returned directly and
  its None returns invalid.  The trace stores those existing Option values.
* Both overwrite only Decimal.negative, test the same compile-time
  !optimize_for_size condition, call try_fast_path once, and return its Some
  directly.  The trace stores the copied Decimal and Option; Decimal is Copy.
* Both call compute_float first with num.exponent and num.mantissa.  The crate's
  second_compute_guard is exactly the first two conjuncts of the source
  short-circuit.  Therefore the checked mantissa+1 and second compute_float call
  occur under precisely the source guard, in the same order.  The same pair
  comparison either retains fp or changes only p_biased to -1.
* Both test the post-comparison p_biased<0 once, call parse_long_mantissa on the
  unchanged body exactly when true, and otherwise retain the same pair.  The
  trace records both guard and result without another helper call.
* The extra assembled_word expression is the same cast, shift, and OR performed
  by biased_fp_to_float at upstream lines 202-206 and crate lines 278-282; these
  integer operations neither panic nor mutate fp.  Both then call assembly once
  on the selected pair and apply unary negation exactly when num.negative.
  Public dec2flt returns the identical Result first component.

Consequently the trace does not infer uncomputed data: it records the exact
variant; sign-stripped body and sign; numeric/special Options; fast-path input
and result; first and conditional second integer operands and results;
comparison, forced-deferral and post-comparison pair; slow guard and result;
selected pair; assembled word; pre-sign assembly word; sign-application fact;
and final word.  Special and native direct returns create no selected pair.
All source call order, guards, checked arithmetic, mutable-state transitions,
panic points, and returned Result/F64 observations remain in place.

F64-only restriction
--------------------

crate/traits.rs:187-307 and crate/dec2flt/mod.rs:140-215 add cfg(any()) to the
f16/f32 Float, FloatExt, and Lemire implementations.  crate/traits.rs:59-64
retains only u64 Int.  The retained f64 implementations are
crate/traits.rs:309-360 and crate/dec2flt/mod.rs:217-264.  Every goal-facing
function remains generic in the source and extraction, but each pursued source
subject specializes it to f64, whose associated integer is u64.  There is no
dynamic format dispatch, so removing other impl blocks cannot change an f64
call, its native decision, checks, result word, NaN classification, fields, or
trace.  The fresh boundary inventory in setup-reproduction.txt confirms that
no removed-format external remains.

Conclusion
----------

The inventory is exhaustive: three supplied files are identical, seven have
all hunks classified above, and the four added files are the package shell.
For the configured f64 specialization, the adapted crate has the same input
domains, branch order, guards, checked/wrapping distinction, state transitions,
panic versus normal behavior, and public/helper observations as the supplied
source.  The only new observations are the trace fields, each copied from an
existing value or computed by the same pure assembly expression.  This
conclusion is independent of whether any parser-correctness GOAL is true.
Assumptions / kernel axioms
  • Classical.choice
  • Quot.sound
  • propext

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (3)

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourcecommitted_node_kinds / pv_tablet.json
Kindauthored definition
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:390aad04e687a2b423f5411647cf26ad69b314e72e61c82744a5c90f9aa73805
Preservation current fingerprintpreservation-v1:390aad04e687a2b423f5411647cf26ad69b314e72e61c82744a5c90f9aa73805
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"56933497f246cae2b24908bf1c98672fdd085b320e4cecdda421d4adb7f5bb51","lean_semantic_closure":"19000dfbde442080b200af33aeb455df968d66e2cb88e7a8ada54850105dc5b4","lean_relevant_dependencies":["num_imp_dec2flt_decimal_seq_parse_decimal_exponent"],"preamble_tex":""}
Correspondence current fingerprint{"own_tex":"56933497f246cae2b24908bf1c98672fdd085b320e4cecdda421d4adb7f5bb51","lean_semantic_closure":"19000dfbde442080b200af33aeb455df968d66e2cb88e7a8ada54850105dc5b4","lean_relevant_dependencies":["num_imp_dec2flt_decimal_seq_parse_decimal_exponent"],"preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "a3320eb464064bbb99c65f20ad345c0b3e9e4bc6a46741b37adca28812671aa9",
    "dep_statement_hashes": {
      "num_imp_dec2flt_decimal_seq_parse_decimal_exponent": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "num_imp_dec2flt_decimal_seq_parse_decimal_seq": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    },
    "combined_sound_fp": "preservation-v1:390aad04e687a2b423f5411647cf26ad69b314e72e61c82744a5c90f9aa73805"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Captured evidence identities
[
  {
    "path": "extraction-evidence/COMMAND.json",
    "sha256": "5f26225136b8c7c4d7f95615e3e8ff8b357e523eeada4bc649e50f9c76cb9bda",
    "cited_by": [
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "extraction-evidence/RESULT.json",
    "sha256": "31059e900d9ee03a54504c1dd3560a943d6c0f883fba737163b1ca0cb40065b0",
    "cited_by": [
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "reference/model-evidence/adaptation-constants-probe.rs",
    "sha256": "b5a4a2cba0c08053cb9a816adb1ba5dbd160bf3928bdf5ccf56b7ae83aaa2aa5",
    "cited_by": [
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-boundary.txt",
    "sha256": "fa45c924747337e8d6f84a19fe9e83fb9b33c73434887c0cf57c062533f51fe1",
    "cited_by": [
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-probe.rs",
    "sha256": "68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e",
    "cited_by": [
      "reference/model-evidence/binary64-boundary.txt"
    ]
  },
  {
    "path": "reference/model-evidence/native-boundary.txt",
    "sha256": "fa0d69e4a434007e6ee675380fc13f98e22655b7faa77cdc5216d4af4356438f",
    "cited_by": [
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "reference/model-evidence/setup-reproduction.txt",
    "sha256": "209bc94a47b1b905a2a7b1fea229c759e6250becbd353fe4eadc7bc49be7742c",
    "cited_by": [
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-adaptation-delta.diff",
    "sha256": "fdf88cabfe40ce962d2bd5eda22eb5b3cbbf8a936a81b896e98698bf472cd0e4",
    "cited_by": [
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-adaptation-delta.txt",
    "sha256": "3c1483d48286a82484eba249a5434936e1a33a08f4e99ec0e3a03ce9bb0ecd9b",
    "cited_by": [
      "Tablet/DecimalSeqExponentEval.tex",
      "committed_node_kinds / pv_tablet.json"
    ]
  }
]

DecimalSeqFractionalFinish

Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Tablet.DecimalSeqExponentEval
import Tablet.num_imp_dec2flt_decimal_seq_parse_decimal_seq

open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model

-- [TABLET NODE: DecimalSeqFractionalFinish]
def DecimalSeqFractionalFinish (s rest : Slice Std.U8)
    (d : num.imp.dec2flt.decimal_seq.DecimalSeq) :
    Result num.imp.dec2flt.decimal_seq.DecimalSeq :=
-- BODY
  do
    let consumed <- Slice.len s - Slice.len rest
    let trailing <-
      num.imp.dec2flt.decimal_seq.count_trailing_zeros s consumed
    let p1 <- d.decimal_point + UScalar.hcast .I32 trailing
    let kept <- d.num_digits - trailing
    let point <- p1 + UScalar.hcast .I32 kept
    let (nDigits, flag) <-
      if kept > num.imp.dec2flt.decimal_seq.DecimalSeq.MAX_DIGITS
      then ok (num.imp.dec2flt.decimal_seq.DecimalSeq.MAX_DIGITS, true)
      else ok (kept, d.truncated)
    let finalPoint <- DecimalSeqExponentEval rest point
    let a <- num.imp.dec2flt.decimal_seq.parse_decimal_seq_loop1
      { start := nDigits,
        «end» :=
          num.imp.dec2flt.decimal_seq.DecimalSeq.MAX_DIGITS_WITHOUT_OVERFLOW }
      d.digits
    ok (num.imp.dec2flt.decimal_seq.DecimalSeq.mk nDigits finalPoint flag a)

end dec2flt_model

Why this model is faithful

Definition · Decimal-sequence fractional finalization

For arbitrary modeled slices s and rest and an arbitrary modeled decimal-sequence record d, DecimalSeqFractionalFinish is the following checked monadic computation. It subtracts |\texttt{rest}| from |s| and passes the resulting consumed count to the extracted trailing-zero counter on s. It casts the returned trailing count to I32 and adds it to d.\texttt{decimal\_point}; subtracts trailing from d.\texttt{num\_digits} to obtain kept; casts kept to I32 and adds it to the intermediate point; and then selects
(\texttt{nDigits},\texttt{flag})= \begin{cases}(768,\mathsf{true}),&\texttt{kept}>768,\\ (\texttt{kept},d.\texttt{truncated}),&\texttt{kept}\le768. \end{cases}
It applies DecimalSeqExponentEval to rest and the resulting point. Finally it runs the extracted parser loop~1 on d.\texttt{digits} over the half-open array-index interval [\texttt{nDigits},19), setting exactly those cells to zero and leaving every other cell unchanged, and returns the record made from nDigits, the exponent-adjusted point, flag, and that array. Each failed or divergent checked operation is propagated by its monadic bind.

Preservation argument

Claim

Consider an actual execution of crate/dec2flt/decimal_seq.rs:320--363 after the integral and optional fractional scans. Let s_0 be the exact original source slice stored as start, let r be the exact current residual suffix stored as s, and let d be the exact post-scan DecimalSeq. On the branch d.\texttt{num_digits}\ne0, the remainder of that source execution is exactly DecimalSeqFractionalFinish(s_0,r,d): it has the same final record on normal return and fails at the same modeled checked operation on an abnormal return. No claim is made that the source invokes this finalization from an arbitrary state with zero digit count.

Proof

Fix an execution and s_0,r,d satisfying the claim. The branch hypothesis is the source guard at line 320, so the assignments at lines 322--333 execute; it is not an invented premise on the public parser. Compare those assignments and the subsequent exponent and fill code with the corresponding branches of the pinned parse_decimal_seq declaration num imp dec2flt decimal seq parse decimal seq.
First, the source sets consumed_len to |s_0|-|r|. The definition binds the same Usize subtraction Slice.len s_0- Slice.len r. Since r is the exact residual suffix of this execution, |r|\le |s_0| on every source-reachable state. At the model level the two fragments still use the same checked subtraction, so an underflow, if presented outside that source invariant, would be the same first propagated failure rather than a different result.
Next both call the pinned reverse scanner num imp dec2flt decimal seq count trailing zeros on s_0 and that same consumed length. The adaptation record reference/model-evidence/source-adaptation-delta.txt establishes that this indexed helper visits positions consumed_len-1, …, 0 in the same order as the original iter().rev() loop, increments exactly on ASCII zero, passes over a decimal point, and stops at the first byte that is neither zero nor point. Thus its Usize result is exactly the source value n_trailing_zeros; a helper failure is bound and returned before any record update on both model fragments.
Let z be that Usize result, and write \operatorname{cast32}(u) for the signed I32 representative of the low 32 bits of a Usize value u. Rust's narrowing u as i32 and Aeneas's pure UScalar.hcast .I32 u both compute exactly \operatorname{cast32}(u); this operation truncates and cannot fail (the lift surrounding it in the pinned parser merely places that pure value in the Result computation). Thus both fragments first perform the same checked I32 addition d.\texttt{decimal_point}+\operatorname{cast32}(z), which either fails on both sides or produces the same intermediate point. They next perform the same checked Usize subtraction d.\texttt{num_digits}-z; if it succeeds, call its Usize result k. Both then compute the identical pure value \operatorname{cast32}(k) and perform the same checked I32 addition to the intermediate point. Consequently, whenever both additions and the subtraction succeed, the uncapped point on each side is the I32 value d.\texttt{decimal_point}+\operatorname{cast32}(z) +\operatorname{cast32}(k); subtraction and addition failures coincide, and neither narrowing cast contributes a failure.
The next test is the same strict comparison k>\texttt{DecimalSeq::MAX_DIGITS}, whose pinned value is 768 by num imp dec2flt decimal seq DecimalSeq MAX DIGITS. In the true branch both retain 768 digits and set truncated to true. In the false branch both retain k and preserve d.\texttt{truncated}. This establishes the same pair (n,f) of stored digit count and flag, including the equality case k=768.
It remains to justify the residual observation made before the optional exponent computation. The cited pinned parser has four source-reachable copies of this nonzero finalization. When the residual s_2 is empty, the outer Slice.is_empty result is saved across finalization. After a decimal point, the two copies (according as the pre-fractional digit count is zero or nonzero) use the post-scan residual s_6 or s_5 and test it after finalization. In the remaining nonempty, non-decimal-point copy, the parser saves both the false emptiness result and the byte s_2[0] across finalization. In every copy, the intervening consumed-length computation, trailing-zero scan, casts, arithmetic, cap test, and flag update only read the residual slice; none changes that slice. Thus the argument r passed to the factoring is respectively that same s_2, s_6, s_5, or s_2.
By the Aeneas slice semantics, Slice.is_empty is total and returns the deterministic test of whether the slice length is zero. Recomputing it on the unchanged r therefore returns the parser's saved Boolean in the first and fourth copies, and is the identical test already made by the parser in the two post-decimal copies. In the empty case both computations take the empty branch and neither indexes r. In every nonempty case, index zero is in bounds; Slice.index_usize therefore succeeds deterministically and returns the same byte, including the byte saved by the outer parser in the fourth copy. Hence the factoring's extra emptiness and index observations cannot fail or diverge, and both sides select the same nonmarker, lowercase-e, or uppercase-E branch.
Only after that observation equality is established, apply the optional exponent computation DecimalSeqExponentEval to the identical residual r and the identical cast-correct I32 base d.\texttt{decimal_point}+\operatorname{cast32}(z) +\operatorname{cast32}(k). Its empty/marker, optional-sign, decimal-exponent-parser, checked-multiplication, and checked-addition analysis then gives the same final point p or the same first arithmetic or parser failure. Separately, the source/adaptation evidence cited above identifies the guarded nonempty/index tests with the original source's split-first tests; it is used for that source-preservation comparison, not for the saved-versus-recomputed observation equality just proved.
Finally the source loop at lines 361--363 ranges from n to MAX_DIGITS_WITHOUT_OVERFLOW and writes zero to each selected digit cell. Aeneas duplicated this one source loop across control-flow branches as parse_decimal_seq_loop1, loop4, loop6, and loop7 in the pinned node; their range iterator, array update, state, and exit bodies are identical. The factoring calls loop1 with the same range and original d.\texttt{digits}, and hence produces exactly the same filled array a, or propagates the same range/array failure at the same iteration. When all binds succeed, both computations construct DecimalSeq.mk with fields num_digits=n, decimal_point=p, truncated=f, and digits=a. Monadic short-circuiting also shows that any earlier failure prevents this construction on both sides. This proves equality of normal and failure behavior precisely on the source's nonzero-digit post-scan branch, while making no assertion about source use at zero count.
Authored arguments for individual requirements

Requirement: parser totality

On every actual nonzero post-scan branch this definition is the pinned parser's own checked finalization, including its first failure; the zero-count branch is left untouched. Factoring therefore adds no public-input premise and changes no termination or panic observation.

Requirement: parser numeric acceptance

Every numeric execution reaching this nonzero branch retains the exact residual, point, digit count, truncation flag, exponent update, and zero-filled array of parse_decimal_seq. The definition adds no grammar condition and assumes no acceptance result.

Requirement: parser invalid rejection

The same residual byte controls the optional-exponent branch, and nonmarker and failure cases are preserved without extra consumption. Thus finalization cannot change a later invalidity decision or impose a new premise.

Requirement: parser nan acceptance

NaN literals are accepted by the special helper and do not enter the numeric decimal-sequence finalization. Restricting this claim to the actual nonzero numeric branch leaves NaN recognition and construction unchanged.

Requirement: parser infinity

Infinity literals also bypass parse_decimal_seq. This factoring changes neither their keyword path nor their lexical sign.

Requirement: parser non nan results

For numeric slow executions, the factored record and every failure coincide with the pinned parser; for special executions it is unused. It therefore neither creates a NaN nor assumes the no-spurious-NaN conclusion.

Requirement: parser numeric sign

The public lexical sign is stored and assembled outside this unsigned decimal-sequence record. Preserving the exact post-scan record leaves the eventual sign application unchanged.

Requirement: parser signed zero

Trailing-zero removal changes only the canonical record exactly as in the pinned parser, while the public sign remains outside it. The zero magnitude and later signed assembly paths are therefore unchanged and unrestricted.

Requirement: parser exact rounding

The slow converter receives the same capped digits, decimal point, sticky/truncation flag, and zero-filled tail as before. This source-branch factoring adds no hypothesis about exact value or rounding and preserves the parser observation used by the goal.

Requirement: parser selected exponent

All downstream raw-pair computations see the identical DecimalSeq or the identical prior failure. No biased-exponent range fact is inserted as a premise.

Requirement: parser selected magnitude sign

The definition neither applies the public sign nor assembles a raw pair; it preserves the magnitude record supplied to the slow converter. Hence selected magnitude words are unchanged.

Requirement: dispatch abstract composition

This definition extensionally factors the actual nonzero finalization inside the slow numeric component while preserving the source's zero-count alternative. It adds no component precondition and does not assume the disputed abstract-composition conclusion.

Requirement: dispatch component compliance

At a real slow-component call, s_0, r, and d are exactly the parser-produced source slice, residual, and state required by the claim; that is a control-flow fact, not a strengthened caller contract. The component's normal and failure behavior remains exact.

Requirement: parser accumulated rounding

Trailing-zero normalization, retained digits, sticky flag, and signed explicit-exponent update determine the same accumulated decimal record as the pinned parser. Factoring adds no premise and does not assume the record is ultimately rounded correctly.

Requirement: parser equal target rounding

Both the parser result and the decimal-sequence input to slow rounding are unchanged on the branch, while exact/accumulated target equality remains the GOAL's own condition. No new equality condition is introduced.

Requirement: number helper acceptance

parse_number returns a Decimal before the optional slow decimal-sequence conversion and never calls this finalizer. Its nonempty-slice domain and Some cases are unaffected.

Requirement: number helper rejection

The number helper's None decision precedes and is independent of parse_decimal_seq. A definition over DecimalSeq states no new condition on that decision.

Requirement: number helper record bounds

The helper-bound fields belong to Decimal, whereas this definition consumes and constructs DecimalSeq. It cannot change the returned mantissa, negative flag, or 10^{19} bound.

Requirement: number helper accumulated value

The mantissa/exponent interval in this goal describes the earlier parse_number record. Post-scan trailing-zero and array finalization occurs only later on the slow path and leaves that record untouched.

Requirement: special helper infinity

parse_inf_nan neither produces nor consumes a DecimalSeq. Its keyword bytes, separate sign argument, and infinity result are noninterfering.

Requirement: special helper nan

The special NaN helper is disjoint from this numeric slow-path finalization. No NaN payload, classification, or sign argument is changed.

Requirement: special helper rejection

Inputs rejected by the special helper are decided by its keyword comparisons, not by decimal-sequence state. Its None cases remain identical.

Requirement: native correct or defer

try_fast_path operates directly on the Decimal record and runs before slow decimal-sequence parsing. This finalizer changes neither a native-path Some value nor a deferral.

Requirement: integer correct or defer

compute_float accepts scalar exponent and mantissa arguments and does not observe any DecimalSeq array. Its returned or deferred BiasedFp is unaffected.

Requirement: slow accumulated rounding

This is the relevant consumer: parse_long_mantissa calls parse_decimal_seq and receives precisely the final record factored here on the actual nonzero branch, with the zero branch preserved separately. No premise is added to unsigned numeric inputs, and no rounding result is assumed.

Requirement: assembly correspondence

biased_fp_to_float consumes only a completed raw pair, not a source slice, residual, or decimal digit array. This finalizer cannot alter the assembly formula quantified over all field values.

Requirement: classification totality

The mathematical classification relation ranges over finite byte strings and is defined before any decimal-sequence execution. Its coverage by numeric, special, or invalid is unchanged.

Requirement: classification determinism

No grammar rule or parsed lexical content is changed by factoring a later source branch. Classification uniqueness and uniqueness of numeric content are therefore noninterfering.

Requirement: classification significand digit

The existence of a significand digit is a property of numeric syntax; the finalizer is entered only after scanning such bytes and does not redefine the grammar. The goal is unchanged.

Requirement: rounding totality

Abstract rounding totality quantifies over nonnegative real numbers, with no parser state or byte slice. The source-branch factoring has no effect on its candidates or domain.

Requirement: rounding determinism

Abstract target uniqueness is likewise independent of the construction of a DecimalSeq. Its real input and binary64 comparison relation remain unchanged.

Requirement: exponent value agreement

The mathematical exact and accumulated exponent values are defined from lexical content, not from this finalizer's implementation. The definition preserves the implementation but neither changes those values nor assumes their stated equality, so the agreement goal is noninterfering.

Recorded review

CorrespondencePass
PreservationVerifierPass

DecimalSeqFractionalFinish · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

extraction-evidence/COMMAND.json

Open file

{"declaration_reader_sha256":"76f60cf0b867fad9727d2256d32b306c8cba3725216a4225d0f83add77fd6158","extraction_provenance":{"extraction_toolchain":{"aeneas":"fa699427","aeneas_revision":"fa699427cdfa8f604b891fb0223ef42883dd7dc4","cargo_features":[{"features":["default"],"name":"dec2flt-model","source":"workspace:Cargo.toml","version":"0.1.0"}],"cargo_lock_sha256":"bc644c624ded89197356bbd65d995054b7fb08e5bdfbaa38c6e7c7a53772cecf","cfg":["debug_assertions","emscripten_wasm_eh","feature=\"default\"","fmt_debug=\"full\"","overflow_checks","panic=\"unwind\"","relocation_model=\"pic\"","target_abi=\"\"","target_arch=\"x86_64\"","target_endian=\"little\"","target_env=\"gnu\"","target_family=\"unix\"","target_feature=\"fxsr\"","target_feature=\"sse\"","target_feature=\"sse2\"","target_feature=\"x87\"","target_has_atomic","target_has_atomic=\"16\"","target_has_atomic=\"32\"","target_has_atomic=\"64\"","target_has_atomic=\"8\"","target_has_atomic=\"ptr\"","target_has_atomic_load_store","target_has_atomic_load_store=\"16\"","target_has_atomic_load_store=\"32\"","target_has_atomic_load_store=\"64\"","target_has_atomic_load_store=\"8\"","target_has_atomic_load_store=\"ptr\"","target_has_atomic_primitive_alignment=\"16\"","target_has_atomic_primitive_alignment=\"32\"","target_has_atomic_primitive_alignment=\"64\"","target_has_atomic_primitive_alignment=\"8\"","target_has_atomic_primitive_alignment=\"ptr\"","target_has_reliable_f128","target_has_reliable_f16","target_has_reliable_f16_math","target_object_format=\"elf\"","target_os=\"linux\"","target_pointer_width=\"64\"","target_thread_local","target_vendor=\"unknown\"","ub_checks","unix"],"charon":"0.1.216","charon_revision":"6f058254eb741c12e9b388df07adaf7cc8aac8ed","extraction_profile":"dev","lean":"4.30.0-rc2","overflow_checks":true,"panic_strategy":"unwind","rustc_vv":"rustc 1.98.0-nightly (14210df0e 2026-05-31)\nbinary: rustc\ncommit-hash: 14210df0e27ccd7d9e6a05b8085cbd438e4bbc65\ncommit-date: 2026-05-31\nhost: x86_64-unknown-linux-gnu\nrelease: 1.98.0-nightly\nLLVM version: 22.1.6\n","target_pointer_width":64,"target_triple":"x86_64-unknown-linux-gnu"},"extractor_stack":["charon@0.1.216","aeneas@fa699427"],"extractor_toolchain_sha256":"18657da0659dee7889ed8a937b136c9abbc3a35e9050241cd8201c94fd232323","not_recorded":[],"source_digests":[{"source_file":"lib.rs","source_sha256":"63c7f58df6caff552519c92155d902daf8a1015797adcd3f357f8b8cf1652b00"}]},"extractor_script_path":"/home/leanagent/pv_runs/trellis-native-implementation-v91/scripts/extract_pv_model.py","extractor_script_sha256":"cc1fdd50a78185c7bb564b715c554cb35d9fc09ed566b6c3d4f482f2d27ef67d","kernel_gate_checkers":[],"log_concatenation_order":"runs_then_steps_in_array_order","runs":[{"run_role":"primary","steps":[{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","-vV"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"rustc-version","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/pv_spike/tools/charon/bin/charon","cargo","--preset=aeneas","--dest-file","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc","--","--offline","--profile","dev","--target","x86_64-unknown-linux-gnu"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"charon","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/cargo","metadata","--format-version=1","--locked","--offline","--filter-platform","x86_64-unknown-linux-gnu"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"cargo-metadata","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/cargo","rustc","--lib","--locked","--offline","--profile","dev","--target","x86_64-unknown-linux-gnu","--","--print","cfg"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"cargo-rustc-cfg","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/pv_spike/tools/aeneas/bin/aeneas","-backend","lean","-dest","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen","-emit-json","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"aeneas","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"}]}],"schema":"trellis-extraction-command/v1","tool_source_checkouts":[]}
extraction-evidence/RESULT.json

Open file

{"command_sha256":"5f26225136b8c7c4d7f95615e3e8ff8b357e523eeada4bc649e50f9c76cb9bda","runs":[{"generated_lean_sha256":"45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9","run_role":"primary","steps":[{"exit_status":0,"stderr_byte_length":0,"stderr_offset":0,"stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","stdout_byte_length":212,"stdout_offset":0,"stdout_sha256":"e6ea0da4a3301256a0a0dc0d67d11acf4e83e0d1bff5dd987ccdaa43708714bc","tool":"rustc-version"},{"exit_status":0,"stderr_byte_length":654,"stderr_offset":0,"stderr_sha256":"85f314396a5cc9f2303d9848c2d0ea392b64a71cb47e7b0914fd3b8acc916f02","stdout_byte_length":0,"stdout_offset":212,"stdout_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","tool":"charon"},{"exit_status":0,"stderr_byte_length":0,"stderr_offset":654,"stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","stdout_byte_length":2897,"stdout_offset":212,"stdout_sha256":"d792566b25914f10c1a27d3c55607a43dd6bcd31b381f8d54caa7d23257269ef","tool":"cargo-metadata"},{"exit_status":0,"stderr_byte_length":302,"stderr_offset":654,"stderr_sha256":"865b65d937d16c61cd9b975adc967136f6739ef2149207ae43742241f2f37686","stdout_byte_length":1062,"stdout_offset":3109,"stdout_sha256":"4081a320e6292139b4a673d225682dc054b77cba113b8c8a8fbb0593f824b713","tool":"cargo-rustc-cfg"},{"exit_status":0,"stderr_byte_length":6916,"stderr_offset":956,"stderr_sha256":"9c2b4695f1b3bb4e7fe3bf52b92d44fd21bed1de3047b698c950eafcc085c00b","stdout_byte_length":933,"stdout_offset":4171,"stdout_sha256":"35255952c6ce5b89d1280d096dff50ffcfc94817c3aafa58beda6db7e66721df","tool":"aeneas"}],"tablet_root_sha256":"5be7a89d6b46429df3229db0d97b337dfb51cea483d439817e51b774a2dd5cf1"}],"schema":"trellis-extraction-result/v2","stderr_byte_length":7872,"stderr_sha256":"c284799d633c64b898f716d62fbf1146c173227bd6bd44309c6504a43926e000","stdout_byte_length":5104,"stdout_sha256":"8e0aed62f6941e7c81b09d5c5b63ea7602756e69e4bcce9944258b229a9a0ba3"}
reference/model-evidence/adaptation-constants-probe.rs

Open file

fn main() {
    let largest_power_of_ten = (1024_f64 / std::f64::consts::LOG2_10) as i32;
    let log2_5 = std::f64::consts::LOG2_10 - 1.0;
    let max_exponent_fast_path = (53_f64 / log2_5) as i64;
    let max_exponent_disguised =
        max_exponent_fast_path + (53_f64 / std::f64::consts::LOG2_10) as i64;

    println!("largest_power_of_ten={largest_power_of_ten}");
    println!("max_exponent_fast_path={max_exponent_fast_path}");
    println!("max_exponent_disguised={max_exponent_disguised}");
    println!("neg_nan={:016x}", (-f64::NAN).to_bits());

    for (exponent, value) in IntoIterator::into_iter([
        1e0_f64, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11,
        1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22,
    ])
    .enumerate()
    {
        println!("pow10_{exponent}={:016x}", value.to_bits());
    }
}
reference/model-evidence/binary64-boundary.txt

Open file

Primary evidence for the binary64 boundary
==========================================

Scope and identities
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction, the
adapted Rust crate retained in this repository, and the installed toolchain
named by modeling-input/SETUP.md. The probe source is retained at
reference/model-evidence/binary64-probe.rs; no scratch source is required to
reproduce it.

Toolchain executable:
  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
Target:
  x86_64-unknown-linux-gnu
rustc executable SHA-256:
  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
Probe source SHA-256:
  68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
Compiled probe SHA-256:
  f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
Frozen generated.lean SHA-256:
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9
Frozen modeling-input/manifest.json SHA-256:
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2
Approved Binary64ModelDefault.lean SHA-256 at the time of this record:
  03ae48fb631e6242bd21bf95d0481b66acae05f8cab343c7ab279b3c116538a3

Exact reproduction commands
---------------------------

Run from the repository root:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-probe.rs
  B=.trellis/scratch/binary64-probe
  "$R" --version --verbose
  sha256sum "$R"
  sha256sum "$P"
  "$R" --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$B"
  "$B"

Raw output
----------

  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
  rustc_sha256=162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  probe_sha256=68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
  binary_sha256=f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
  target_arch=x86_64
  mantissa_digits=53
  exponent_mask=7ff0000000000000
  mantissa_mask=000fffffffffffff
  nan=7ff8000000000000
  infinity=7ff0000000000000
  neg_infinity=fff0000000000000
  nan_category=Nan
  infinity_category=Infinite
  zero_category=Zero
  subnormal_category=Subnormal
  normal_category=Normal
  from_bits_to_bits=7ff0000000000001
  neg_payload_nan=fff0000000000001
  neg_zero=8000000000000000
  subnormal_tie_to_even_zero=0000000000000000
  subnormal_tie_to_even_two=0000000000000002
  normal_division=3fb999999999999a
  mul_negative_zero=8000000000000000
  div_negative_zero=8000000000000000
  div_negative_infinity=fff0000000000000
  mul_overflow=7ff0000000000000
  mul_zero_infinity_is_nan=true
  div_zero_zero_is_nan=true
  mul_nan_is_nan=true
  cast_2_pow_53=4340000000000000
  cast_2_pow_53_plus_1=4340000000000000

Pinned Rust library sources
---------------------------

The installed sources below belong to the same named toolchain. Their
SHA-256 identities are:

  core/src/primitive_docs.rs
    c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5
  core/src/num/f64.rs
    84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618
  core/src/clone.rs
    23f9cfc80347fde6b8457d46fbf7a2b8d9f34c8c58601b0b6f714ca2f6d1976b

The exact relevant text of core/src/primitive_docs.rs is:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The referenced primitive-f32 documentation supplies the common primitive
floating-point operation rules quoted next:

  /// - −0.0: IEEE 754 floating-point numbers have a bit that indicates their sign, so −0.0 is a
  ///   possible value. For comparison −0.0 = +0.0, but floating-point operations can carry
  ///   the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
  ///   a negative number rounded to a value smaller than a float can represent also produces −0.0.
  /// - [∞](#associatedconstant.INFINITY) and
  ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
  ///   like `1.0 / 0.0`.
  ///
  /// When a primitive operation (addition, subtraction, multiplication, or
  /// division) is performed on this type, the result is rounded according to the
  /// roundTiesToEven direction defined in IEEE 754-2008. That means:
  ///
  /// - The result is the representable value closest to the true value, if there
  ///   is a unique closest representable value.
  /// - If the true value is exactly half-way between two representable values,
  ///   the result is the one with an even least-significant binary digit.
  /// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
  ///   `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
  ///   true value's sign).

The same file explicitly separates arithmetic NaN choice from exact bitwise
operations; its exact relevant text is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.
  ///
  /// The following rules apply when a NaN value is returned from an arithmetic operation:
  /// - The result has a non-deterministic sign.
  /// - The quiet bit and payload are non-deterministically chosen from
  ///   the following set of options:
  ///
  ///   - **Preferred NaN**: The quiet bit is set and the payload is all-zero.
  ///   - **Quieting NaN propagation**: The quiet bit is set and the payload is copied from any input
  ///     operand that is a NaN. If the inputs and outputs do not have the same payload size (i.e., for
  ///     `as` casts), then
  ///     - If the output is smaller than the input, low-order bits of the payload get dropped.
  ///     - If the output is larger than the input, the payload gets filled up with 0s in the low-order
  ///       bits.
  ///   - **Unchanged NaN propagation**: The quiet bit and payload are copied from any input operand
  ///     that is a NaN. If the inputs and outputs do not have the same size (i.e., for `as` casts), the
  ///     same rules as for "quieting NaN propagation" apply, with one caveat: if the output is smaller
  ///     than the input, dropping the low-order bits may result in a payload of 0; a payload of 0 is not
  ///     possible with a signaling NaN (the all-0 significand encodes an infinity) so unchanged NaN
  ///     propagation cannot occur with some inputs.
  ///   - **Target-specific NaN**: The quiet bit is set and the payload is picked from a target-specific
  ///     set of "extra" possible NaN payloads. The set can depend on the input operand values.
  ///     See the table below for the concrete NaNs this set contains on various targets.
  ///
  /// | `target_arch` | Extra payloads possible on this platform |
  /// |---------------|------------------------------------------|
  /// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |

Thus the model's preferred quiet NaN is one permitted result whenever
multiplication or division returns NaN. This does not claim that arbitrary
Rust arithmetic NaNs have those exact bits. By contrast, unary negation and
bit conversion must preserve all non-sign bits exactly, including for every
NaN payload.

The exact relevant declarations in core/src/num/f64.rs are:

  pub const MANTISSA_DIGITS: u32 = 53;
  pub const NAN: f64 = 0.0_f64 / 0.0_f64;
  pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
  pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
  pub const SIGN_MASK: u64 = 0x8000_0000_0000_0000;
  pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;
  pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff;

  pub const fn classify(self) -> FpCategory {
      // We used to have complicated logic here that avoids the simple bit-based tests to work
      // around buggy codegen for x87 targets (see
      // https://github.com/rust-lang/rust/issues/114479). However, some LLVM versions later, none
      // of our tests is able to find any difference between the complicated and the naive
      // version, so now we are back to the naive version.
      let b = self.to_bits();
      match (b & Self::MANTISSA_MASK, b & Self::EXPONENT_MASK) {
          (0, Self::EXPONENT_MASK) => FpCategory::Infinite,
          (_, Self::EXPONENT_MASK) => FpCategory::Nan,
          (0, 0) => FpCategory::Zero,
          (_, 0) => FpCategory::Subnormal,
          _ => FpCategory::Normal,
      }
  }

  pub const fn to_bits(self) -> u64 {
      // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
      unsafe { mem::transmute(self) }
  }

  pub const fn from_bits(v: u64) -> Self {
      // It turns out the safety issues with sNaN were overblown! Hooray!
      // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
      unsafe { mem::transmute(v) }
  }

The exact scalar clone body in core/src/clone.rs is:

  impl const Clone for $t {
      #[inline(always)]
      fn clone(&self) -> Self {
          *self
      }
  }

Frozen adapted source
---------------------

The relevant retained source file hashes are:

  crate/traits.rs
    9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  crate/dec2flt/decimal.rs
    633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb
  crate/dec2flt/lemire.rs
    fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1
  crate/dec2flt/slow.rs
    93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485

The dispatcher excerpts below are reproduced from the identified file by
running these commands from the repository root:

  sha256sum crate/dec2flt/mod.rs
  sed -n '354,403p' crate/dec2flt/mod.rs
  sed -n '405,422p' crate/dec2flt/mod.rs
  sed -n '465,475p' crate/dec2flt/mod.rs
  sed -n '506,523p' crate/dec2flt/mod.rs

Exact constant and bit-conversion excerpt from crate/traits.rs:

  impl Float for f64 {
      type Int = u64;

      const INFINITY: Self = Self::INFINITY;
      const NEG_INFINITY: Self = Self::NEG_INFINITY;
      const NAN: Self = Self::NAN;
      // Bit-identical to the upstream `-f64::NAN`, without the unsupported
      // compile-time float negation.
      const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);

      const BITS: u32 = 64;
      const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
      const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
      const SIG_MASK: Self::Int = Self::MANTISSA_MASK;

      fn to_bits(self) -> Self::Int {
          self.to_bits()
      }

      fn classify(self) -> FpCategory {
          self.classify()
      }
  }

  impl FloatExt for f64 {
      #[inline]
      fn from_u64_bits(v: u64) -> Self {
          f64::from_bits(v)
      }

Exact derived-constant defaults from crate/traits.rs:

  /// The number of bits in the significand, *excluding* the hidden bit.
  const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;

  /// Number of bits in the exponent.
  const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

  /// The saturated (maximum bitpattern) value of the exponent, i.e. the infinite
  /// representation.
  ///
  /// This shifted fully right, use `EXP_MASK` for the shifted value.
  const EXP_SAT: u32 = (1 << Self::EXP_BITS) - 1;

  /// Signed version of `EXP_SAT` since we convert a lot.
  const INFINITE_POWER: i32 = Self::EXP_SAT as i32;

  /// The exponent bias value. This is also the maximum value of the exponent.
  const EXP_BIAS: u32 = Self::EXP_SAT >> 1;

  /// Minimum exponent value of normal values.
  const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Together with the f64-instance lines `BITS = 64` and
`SIG_TOTAL_BITS = Self::MANTISSA_DIGITS` in the preceding excerpt, these
defaults derive SIG_BITS, EXP_MIN, and INFINITE_POWER from the primitive
mantissa-digit constant rather than introducing independent parameters.

Exact asserted-conversion excerpt from crate/dec2flt/mod.rs:

  #[inline]
  // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
  // `charon::opaque` makes this entire asserted conversion external: both the
  // unchanged `debug_assert!` and the unchanged cast below are in the opaque
  // body. The callers, their fast-path guards, and their surrounding
  // computation remain mechanically visible. A corresponding model binding
  // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
  // exact binary64 conversion at or below that bound.
  #[charon::opaque]
  fn from_u64(v: u64) -> Self {
      debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
      v as _
  }

Here MAX_MANTISSA_FAST_PATH is the retained default 1 << 53.  The attribute is
attached to the function item, so the generated external stands for the whole
method, not merely the cast.  In the enabled-debug configuration the source
succeeds only when v <= 2^53; above it the assertion fails before the cast. On
the successful branch every integer is exactly representable, so the source
cast and the model rounder return the same word.

Exact power-table and assembly excerpts from crate/dec2flt/mod.rs:

  /// Maximum mantissa for the fast-path (`1 << 53` for f64).
  const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;

  const MAX_EXPONENT_FAST_PATH: i64 = 22;
  const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
  const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;

  fn pow10_fast_path(exponent: usize) -> Self {
      // These bit patterns are exactly the source table's rounded binary64
      // literals.  The match is the same masked lookup; it merely keeps float
      // constants out of Aeneas's unsupported constant interpreter.
      match exponent & 31 {
          0 => f64::from_bits(0x3FF0_0000_0000_0000),
          1 => f64::from_bits(0x4024_0000_0000_0000),
          2 => f64::from_bits(0x4059_0000_0000_0000),
          3 => f64::from_bits(0x408F_4000_0000_0000),
          4 => f64::from_bits(0x40C3_8800_0000_0000),
          5 => f64::from_bits(0x40F8_6A00_0000_0000),
          6 => f64::from_bits(0x412E_8480_0000_0000),
          7 => f64::from_bits(0x4163_12D0_0000_0000),
          8 => f64::from_bits(0x4197_D784_0000_0000),
          9 => f64::from_bits(0x41CD_CD65_0000_0000),
          10 => f64::from_bits(0x4202_A05F_2000_0000),
          11 => f64::from_bits(0x4237_4876_E800_0000),
          12 => f64::from_bits(0x426D_1A94_A200_0000),
          13 => f64::from_bits(0x42A2_309C_E540_0000),
          14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
          15 => f64::from_bits(0x430C_6BF5_2634_0000),
          16 => f64::from_bits(0x4341_C379_37E0_8000),
          17 => f64::from_bits(0x4376_3457_85D8_A000),
          18 => f64::from_bits(0x43AB_C16D_674E_C800),
          19 => f64::from_bits(0x43E1_58E4_6091_3D00),
          20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
          21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
          22 => f64::from_bits(0x4480_F0CF_064D_D592),
          _ => f64::from_bits(0),
      }
  }

  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

Exact native-call excerpt from crate/dec2flt/decimal.rs:

  fn can_use_fast_path<F: Lemire>(&self) -> bool {
      F::MIN_EXPONENT_FAST_PATH <= self.exponent
          && self.exponent <= F::MAX_EXPONENT_DISGUISED_FAST_PATH
          && self.mantissa <= F::MAX_MANTISSA_FAST_PATH
          && !self.many_digits
  }

  if !self.can_use_fast_path::<F>() {
      return None;
  }

  let value = if self.exponent <= F::MAX_EXPONENT_FAST_PATH {
      // normal fast path
      let value = F::from_u64(self.mantissa);
      if self.exponent < 0 {
          // Explicit trait calls preserve Rust arithmetic and resolve
          // the generic output type that Charon leaves ambiguous.
          core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
      } else {
          core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
      }
  } else {
      // disguised fast path
      let shift = self.exponent - F::MAX_EXPONENT_FAST_PATH;
      let mantissa = self.mantissa.checked_mul(INT_POW10[shift as usize])?;
      if mantissa > F::MAX_MANTISSA_FAST_PATH {
          return None;
      }
      core::ops::Mul::mul(
          F::from_u64(mantissa),
          F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
      )
  };

  if self.negative {
      Some(core::ops::Neg::neg(value))
  } else {
      Some(value)
  }

The preceding can_use_fast_path body, together with
MAX_MANTISSA_FAST_PATH = 1 << SIG_TOTAL_BITS and SIG_TOTAL_BITS = 53 for f64,
requires the exponent to lie between -22 and 37, the input mantissa to be at
most 2^53, and many_digits to be false. Consequently an ordinary arithmetic
call has a from_u64 operand in 0..=2^53. In its negative-exponent arm,
`-self.exponent` lies in 1..=22; in its nonnegative arm, `self.exponent` lies
in 0..=22. The disguised branch checks its multiplied mantissa against 2^53
before from_u64 and uses table index 22. The paired statement
Binary64NativeCallDomain does not assert this source reachability. It says
conditionally that a from_u64 argument at most 2^53 succeeds with a finite,
non-NaN word and that a table index at most 22 succeeds with a positive,
nonzero, finite, non-NaN word. Applying that conditional statement to the
guards just derived establishes those properties for the actual ordinary and
disguised calls, and in particular establishes that every executed divisor is
nonzero.

Exact special-value excerpt from crate/dec2flt/parse.rs:

  let float = match (register, len) {
      (INF_3, 3) => F::INFINITY,
      (INF_8, 8) => F::INFINITY,
      (NAN, 3) => F::NAN,
      _ => return None,
  };

  if negative { Some(-float) } else { Some(float) }

Thus the executed special route is INFINITY or NAN followed by conditional
negation; it does not select NEG_INFINITY or NEG_NAN directly.

The number helper has the exact source body

  pub fn parse_number(s: &[u8]) -> Option<Decimal> {
      if let Some((float, rest)) = parse_partial_number(s) {
          if rest == s.len() {
              return Some(float);
          }
      }
      None
  }

It returns only the Decimal produced by parse_partial_number; there is no
float type parameter or float operation at this boundary.

Exact dispatcher excerpts from crate/dec2flt/mod.rs
---------------------------------------------------

The entry of `dec2flt_with_trace` strips at most one leading sign, rejects
empty and sign-only inputs, calls `parse_number` on the unsigned body, and
calls `parse_inf_nan` only when `parse_number` returns `None`:

  /// Run the actual dispatcher while retaining its approved internal observations.
  pub fn dec2flt_with_trace<
      'a,
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {
          return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
      };
      let negative = c == b'-';
      if c == b'-' || c == b'+' {
          body = &body[1..];
      }
      if body.is_empty() {
          return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
      }

      let parse_number_result = parse_number(body);
      let parsed = match parse_number_result {
          Some(r) => r,
          None => {
              let parse_inf_nan_result = parse_inf_nan(body, negative);
              return match parse_inf_nan_result {
                  Some(value) => (
                      Ok(value),
                      Dec2FltTrace::Special {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                          result: value,
                      },
                  ),
                  None => (
                      Err(pfe_invalid()),
                      Dec2FltTrace::Invalid {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                      },
                  ),
              };
          }
      };

Thus every `Err` arm shown here returns before `parsed` is available and before
the native, integer, slow, assembly, or final-negation code below it can run.
On a numeric result, the lexical sign is copied into the parsed record before
the native attempt, whose successful result also returns before raw-pair
assembly:

      let mut num = parsed;
      num.negative = negative;
      if !cfg!(feature = "optimize_for_size") {
          let fast_path_result = num.try_fast_path::<F>();
          if let Some(value) = fast_path_result {
              return (
                  Ok(value),
                  Dec2FltTrace::FastPath {
                      body,
                      negative,
                      parse_number_result,
                      fast_path_input: num,
                      fast_path_result,
                      result: value,
                  },
              );
          }
      }

If the native attempt does not return, the selected raw pair is assembled and
the source then conditionally negates it according to the lexical-sign flag:

      let selected_pair = fp;
      // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
      // it neither changes the selected pair nor introduces a new branch or call.
      let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
      let assembly_result = biased_fp_to_float::<F>(fp);
      let lexical_sign_applied = num.negative;
      let result = if lexical_sign_applied {
          core::ops::Neg::neg(assembly_result)
      } else {
          assembly_result
      };

The public `dec2flt` executes that same route and returns its result projection;
it does not reimplement or reorder any parsing or float operation:

  /// Converts a decimal string into a floating point number.
  #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
  pub fn dec2flt<
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &str,
  ) -> Result<F, ParseFloatError> {
      // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
      // clause admits exactly the same instances and lets Charon resolve the
      // explicit, source-equivalent final negation.
      // The public function is now exactly the result projection of the single
      // instrumented implementation.  No conversion step is duplicated, and
      // discarding the trace cannot affect Rust evaluation or the returned bits.
      dec2flt_with_trace::<F>(s).0
  }

The integer-tier helper has the source type and exact executable excerpts
below (long explanatory comments are elided). In particular it returns a raw
BiasedFp and contains no from_u64 cast, primitive float multiplication,
division, negation, or from_bits call:

  pub fn compute_float<F: Float>(q: i64, mut w: u64) -> BiasedFp {
      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);
      let fp_error = BiasedFp::zero_pow2(-1);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if w == 0 || q < F::SMALLEST_POWER_OF_TEN as i64 {
          return fp_zero;
      } else if q > F::LARGEST_POWER_OF_TEN as i64 {
          return fp_inf;
      }
      // Normalize our significant digits, so the most-significant bit is set.
      let lz = w.leading_zeros();
      w <<= lz;
      let (lo, hi) = compute_product_approx(q, w, F::SIG_BITS as usize + 3);
      if lo == 0xFFFF_FFFF_FFFF_FFFF {
          let inside_safe_exponent = (q >= -27) && (q <= 55);
          if !inside_safe_exponent {
              return fp_error;
          }
      }
      let upperbit = (hi >> 63) as i32;
      let mut mantissa = hi >> (upperbit + 64 - F::SIG_BITS as i32 - 3);
      let mut power2 = power(q as i32) + upperbit - lz as i32 - F::EXP_MIN + 1;
      if power2 <= 0 {
          if -power2 + 1 >= 64 {
              // Have more than 64 bits below the minimum exponent, must be 0.
              return fp_zero;
          }
          // Have a subnormal value.
          mantissa >>= -power2 + 1;
          mantissa += mantissa & 1;
          mantissa >>= 1;
          power2 = (mantissa >= (1_u64 << F::SIG_BITS)) as i32;
          return BiasedFp { m: mantissa, p_biased: power2 };
      }
      // Need to handle rounding ties. Normally, we need to round up,
      // but if we fall right in between and we have an even basis, we
      // need to round down.
      if lo <= 1
          && q >= F::MIN_EXPONENT_ROUND_TO_EVEN as i64
          && q <= F::MAX_EXPONENT_ROUND_TO_EVEN as i64
          && mantissa & 0b11 == 0b01
          && (mantissa << (upperbit + 64 - F::SIG_BITS as i32 - 3)) == hi
      {
          // Zero the lowest bit, so we don't round up.
          mantissa &= !1_u64;
      }
      // Round-to-even, then shift the significant digits into place.
      mantissa += mantissa & 1;
      mantissa >>= 1;
      if mantissa >= (2_u64 << F::SIG_BITS) {
          // Rounding up overflowed, so the carry bit is set. Set the
          // mantissa to 1 (only the implicit, hidden bit is set) and
          // increase the exponent.
          mantissa = 1_u64 << F::SIG_BITS;
          power2 += 1;
      }
      // Zero out the hidden bit.
      mantissa &= !(1_u64 << F::SIG_BITS);
      if power2 >= F::INFINITE_POWER {
          // Exponent is above largest normal value, must be infinite.
          return fp_inf;
      }
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact slow-tier source body from crate/dec2flt/slow.rs:

  pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {
      const MAX_SHIFT: usize = 60;
      const NUM_POWERS: usize = 19;
      const POWERS: [u8; 19] =
          [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];

      let get_shift = |n| {
          if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }
      };

      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);

      let mut d = parse_decimal_seq(s);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if d.num_digits == 0 || d.decimal_point < -324 {
          return fp_zero;
      } else if d.decimal_point >= 310 {
          return fp_inf;
      }
      let mut exp2 = 0_i32;
      let mut loop_result = None;
      // Shift right toward (1/2 ... 1].
      while d.decimal_point > 0 && loop_result.is_none() {
          let n = d.decimal_point as usize;
          let shift = get_shift(n);
          d.right_shift(shift);
          if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_zero);
          } else {
              exp2 += shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // Shift left toward (1/2 ... 1].
      while d.decimal_point <= 0 && loop_result.is_none() {
          let shift = if d.decimal_point == 0 {
              match d.digits[0] {
                  digit if digit >= 5 => break,
                  0 | 1 => 2,
                  _ => 1,
              }
          } else {
              get_shift((-d.decimal_point) as _)
          };
          d.left_shift(shift);
          if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_inf);
          } else {
              exp2 -= shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
      exp2 -= 1;
      while F::EXP_MIN > exp2 {
          let mut n = (F::EXP_MIN - exp2) as usize;
          if n > MAX_SHIFT {
              n = MAX_SHIFT;
          }
          d.right_shift(n);
          exp2 += n as i32;
      }
      if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
          return fp_inf;
      }
      // Shift the decimal to the hidden bit, and then round the value
      // to get the high mantissa+1 bits.
      d.left_shift(F::SIG_BITS as usize + 1);
      let mut mantissa = d.round();
      if mantissa >= (1_u64 << (F::SIG_BITS + 1)) {
          // Rounding up overflowed to the carry bit, need to
          // shift back to the hidden bit.
          d.right_shift(1);
          exp2 += 1;
          mantissa = d.round();
          if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
              return fp_inf;
          }
      }
      let mut power2 = exp2 - F::EXP_MIN + 1;
      if mantissa < (1_u64 << F::SIG_BITS) {
          power2 -= 1;
      }
      // Zero out all the bits above the explicit mantissa bits.
      mantissa &= (1_u64 << F::SIG_BITS) - 1;
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact final numeric-sign excerpt from crate/dec2flt/mod.rs:

  let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
  let assembly_result = biased_fp_to_float::<F>(fp);
  let lexical_sign_applied = num.negative;
  let result = if lexical_sign_applied {
      core::ops::Neg::neg(assembly_result)
  } else {
      assembly_result
  };

Thus a numeric execution that reaches the integer/slow selection route
assembles its selected pair with from_bits through biased_fp_to_float and only
then conditionally negates it. A successful try_fast_path returns earlier and
does not perform this assembly. compute_float and parse_long_mantissa produce
raw BiasedFp pairs and do not call from_u64, primitive float multiplication,
division, negation, or from_bits; they do, however, execute constants derived
from SIG_TOTAL_BITS before producing those pairs.

Retained structural-boundary evidence
-------------------------------------

Several adjacent structural bindings cite this same evidence record. Their
pinned library source identities are:

  core/src/num/mod.rs
    f0820f9dfb94999440c8cb4a349736fa21df7e5668e19b6b49e016ff67c05ce3
  core/src/option.rs
    7cf61204b05d98a95bc2e322d5fbfc1f4f91505109971917d9a7fb47151c50e6
  core/src/slice/mod.rs
    354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840
  core/src/str/mod.rs
    284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78

Exact ASCII-digit body from core/src/num/mod.rs:

  pub const fn is_ascii_digit(&self) -> bool {
      matches!(*self, b'0'..=b'9')
  }

Exact Option control-flow bodies from core/src/option.rs:

  fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
      match self {
          Some(v) => ControlFlow::Continue(v),
          None => ControlFlow::Break(None),
      }
  }

  fn from_residual(residual: Option<convert::Infallible>) -> Self {
      match residual {
          None => None,
      }
  }

Exact slice observation bodies from core/src/slice/mod.rs:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

Exact string-byte body from core/src/str/mod.rs:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }
reference/model-evidence/binary64-probe.rs

Open file

#![feature(float_masks)]

use std::num::FpCategory;

fn bits(label: &str, value: f64) {
    println!("{label}={:016x}", value.to_bits());
}

fn main() {
    println!("target_arch={}", std::env::consts::ARCH);
    println!("mantissa_digits={}", f64::MANTISSA_DIGITS);
    println!("exponent_mask={:016x}", f64::EXPONENT_MASK);
    println!("mantissa_mask={:016x}", f64::MANTISSA_MASK);
    bits("nan", f64::NAN);
    bits("infinity", f64::INFINITY);
    bits("neg_infinity", f64::NEG_INFINITY);

    for (label, value) in [
        ("nan_category", f64::NAN),
        ("infinity_category", f64::INFINITY),
        ("zero_category", 0.0),
        ("subnormal_category", f64::from_bits(1)),
        ("normal_category", 1.0),
    ] {
        let category = match value.classify() {
            FpCategory::Nan => "Nan",
            FpCategory::Infinite => "Infinite",
            FpCategory::Zero => "Zero",
            FpCategory::Subnormal => "Subnormal",
            FpCategory::Normal => "Normal",
        };
        println!("{label}={category}");
    }

    let payload_nan_word = 0x7ff0_0000_0000_0001_u64;
    println!(
        "from_bits_to_bits={:016x}",
        f64::from_bits(payload_nan_word).to_bits()
    );
    bits("neg_payload_nan", -f64::from_bits(payload_nan_word));
    bits("neg_zero", -0.0);

    bits("subnormal_tie_to_even_zero", f64::from_bits(1) * 0.5);
    bits("subnormal_tie_to_even_two", f64::from_bits(3) * 0.5);
    bits("normal_division", 1.0 / 10.0);
    bits("mul_negative_zero", -0.0 * 2.0);
    bits("div_negative_zero", -1.0 / f64::INFINITY);
    bits("div_negative_infinity", 1.0 / -0.0);
    bits("mul_overflow", f64::MAX * (1.0 + f64::EPSILON));
    println!("mul_zero_infinity_is_nan={}", (0.0 * f64::INFINITY).is_nan());
    println!("div_zero_zero_is_nan={}", (0.0_f64 / 0.0_f64).is_nan());
    println!("mul_nan_is_nan={}", (f64::NAN * 1.0).is_nan());

    bits("cast_2_pow_53", (1_u64 << 53) as f64);
    bits("cast_2_pow_53_plus_1", ((1_u64 << 53) + 1) as f64);
}
reference/model-evidence/native-boundary.txt

Open file

Native boundary inventory for Binary64Model

Reproduction command (repository root):
  python3 .trellis/scripts/pv_modeling.py inspect-native .

Tool identity for this reproduction:
  Python 3.14.4
  .trellis/scripts/pv_modeling.py
  sha256 915b29822cb4c47b70dabb1dc011514641deb2e428b62347fc31aa898de5e0d4

Top-level result:
  declaration_count: 24

The complete raw inspect-native records for the fourteen F64 externals follow.
They are copied from the command's complete index; no scratch artifact is needed
to review them.

[
  {
    "name": "F64.Insts.CoreCloneClone.clone",
    "extracted_signature": ": F64 → Result F64",
    "rust_symbol": "core::clone::impls::{impl core::clone::Clone for f64}::clone",
    "raw_declaration_sha256": "5eaad5fb9af034045cf0dafed5af85445fe4af9a78958259a15a1faddd1e8f05",
    "source_utf8": "/-- [core::clone::impls::{impl core::clone::Clone for f64}::clone]:\n    Source: '/rustc/library/core/src/clone.rs', lines 698:20-698:43\n    Name pattern: [core::clone::impls::{core::clone::Clone<f64>}::clone]\n    Visibility: public -/\n@[rust_fun \"core::clone::impls::{core::clone::Clone<f64>}::clone\"]\naxiom F64.Insts.CoreCloneClone.clone : F64 → Result F64\n"
  },
  {
    "name": "core.f64.F64.MANTISSA_DIGITS",
    "extracted_signature": ": Result Std.U32",
    "rust_symbol": "core::f64::{f64}::MANTISSA_DIGITS",
    "raw_declaration_sha256": "42b1b0c4d2c2bbc7271748fc78c518391f55bf6517c643667a6561a0ac6e771c",
    "source_utf8": "/-- [core::f64::{f64}::MANTISSA_DIGITS]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 412:4-412:34\n    Name pattern: [core::f64::{f64}::MANTISSA_DIGITS]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::MANTISSA_DIGITS\"]\naxiom core.f64.F64.MANTISSA_DIGITS : Result Std.U32\n"
  },
  {
    "name": "core.f64.F64.NAN",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::NAN",
    "raw_declaration_sha256": "a18685a80db5dbebe39151c7375a0470bb3905fe1228e5598a995a1cf017a768",
    "source_utf8": "/-- [core::f64::{f64}::NAN]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 509:4-509:22\n    Name pattern: [core::f64::{f64}::NAN]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::NAN\"] axiom core.f64.F64.NAN : Result F64\n"
  },
  {
    "name": "core.f64.F64.INFINITY",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::INFINITY",
    "raw_declaration_sha256": "f905901e67400987f49cddd13a8768644bed9e7e3f79c3a81b34879f494a2816",
    "source_utf8": "/-- [core::f64::{f64}::INFINITY]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 512:4-512:27\n    Name pattern: [core::f64::{f64}::INFINITY]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::INFINITY\"]\naxiom core.f64.F64.INFINITY : Result F64\n"
  },
  {
    "name": "core.f64.F64.NEG_INFINITY",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::NEG_INFINITY",
    "raw_declaration_sha256": "85f6e517e439c2f2d5c59aa29884ff38b2381c2f5dd7cb14e7947b232efe7f0e",
    "source_utf8": "/-- [core::f64::{f64}::NEG_INFINITY]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 515:4-515:31\n    Name pattern: [core::f64::{f64}::NEG_INFINITY]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::NEG_INFINITY\"]\naxiom core.f64.F64.NEG_INFINITY : Result F64\n"
  },
  {
    "name": "core.f64.F64.EXPONENT_MASK",
    "extracted_signature": ": Result Std.U64",
    "rust_symbol": "core::f64::{f64}::EXPONENT_MASK",
    "raw_declaration_sha256": "f1054e64392d8f9306e8c69015f0b521d9f387edda8458a3bae4773606f46a71",
    "source_utf8": "/-- [core::f64::{f64}::EXPONENT_MASK]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 615:4-615:32\n    Name pattern: [core::f64::{f64}::EXPONENT_MASK]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::EXPONENT_MASK\"]\naxiom core.f64.F64.EXPONENT_MASK : Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.MANTISSA_MASK",
    "extracted_signature": ": Result Std.U64",
    "rust_symbol": "core::f64::{f64}::MANTISSA_MASK",
    "raw_declaration_sha256": "dc3517faa141b7a7a016e9f73930af3c9af23d3e6d06874440d99eabbc846538",
    "source_utf8": "/-- [core::f64::{f64}::MANTISSA_MASK]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 637:4-637:32\n    Name pattern: [core::f64::{f64}::MANTISSA_MASK]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::MANTISSA_MASK\"]\naxiom core.f64.F64.MANTISSA_MASK : Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.classify",
    "extracted_signature": ": F64 → Result core.num.FpCategory",
    "rust_symbol": "core::f64::{f64}::classify",
    "raw_declaration_sha256": "9fedd442d1d0403c4a7323d8f4e95c51b8bd39bf82d2d0ba357eaaf243e69b78",
    "source_utf8": "/-- [core::f64::{f64}::classify]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 782:4-782:45\n    Name pattern: [core::f64::{f64}::classify]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::classify\"]\naxiom core.f64.F64.classify : F64 → Result core.num.FpCategory\n"
  },
  {
    "name": "core.f64.F64.to_bits",
    "extracted_signature": ": F64 → Result Std.U64",
    "rust_symbol": "core::f64::{f64}::to_bits",
    "raw_declaration_sha256": "ddaec6bb7c36ba6445a5b0b8e52f841240ca2563004e8ce1255caf0e36ec22ae",
    "source_utf8": "/-- [core::f64::{f64}::to_bits]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 1223:4-1223:37\n    Name pattern: [core::f64::{f64}::to_bits]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::to_bits\"]\naxiom core.f64.F64.to_bits : F64 → Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.from_bits",
    "extracted_signature": ": Std.U64 → Result F64",
    "rust_symbol": "core::f64::{f64}::from_bits",
    "raw_declaration_sha256": "af8ee4387cea97d0a353a83d6280c03f3c9f739bf733af5bd39c29909f1b2b19",
    "source_utf8": "/-- [core::f64::{f64}::from_bits]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 1269:4-1269:42\n    Name pattern: [core::f64::{f64}::from_bits]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::from_bits\"]\naxiom core.f64.F64.from_bits : Std.U64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithMulF64F64.mul",
    "extracted_signature": ": F64 → F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Mul<f64, f64> for f64}::mul",
    "raw_declaration_sha256": "20d985819a981e9e80485ce169c1d045ea13fa8796e9314d5b621141aae6deec",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Mul<f64, f64> for f64}::mul]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 350:12-350:41\n    Name pattern: [core::ops::arith::{core::ops::arith::Mul<f64, f64, f64>}::mul]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Mul<f64, f64, f64>}::mul\"]\naxiom F64.Insts.CoreOpsArithMulF64F64.mul : F64 → F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithDivF64F64.div",
    "extracted_signature": ": F64 → F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Div<f64, f64> for f64}::div",
    "raw_declaration_sha256": "1ebb67b412d89328acb4c5dd53168e84fdf26be6cbe1ef49f5a27edbd84ada36",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Div<f64, f64> for f64}::div]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 515:12-515:41\n    Name pattern: [core::ops::arith::{core::ops::arith::Div<f64, f64, f64>}::div]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Div<f64, f64, f64>}::div\"]\naxiom F64.Insts.CoreOpsArithDivF64F64.div : F64 → F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithNegF64.neg",
    "extracted_signature": ": F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Neg<f64> for f64}::neg",
    "raw_declaration_sha256": "bbf93f24bd7cfbc72e47e8bb3a9acc6641df939ad6afafd9ba02c81fe27f7ed0",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Neg<f64> for f64}::neg]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 719:12-719:30\n    Name pattern: [core::ops::arith::{core::ops::arith::Neg<f64, f64>}::neg]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Neg<f64, f64>}::neg\"]\naxiom F64.Insts.CoreOpsArithNegF64.neg : F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64",
    "extracted_signature": ": Std.U64 → Result F64",
    "rust_symbol": "dec2flt_model::num::imp::dec2flt::{impl dec2flt_model::num::imp::dec2flt::Lemire<u64> for f64}::from_u64",
    "raw_declaration_sha256": "ad172bce0522e7e41bceb8c66a5adff962822ee8a9454dfd59b7019086797ba8",
    "source_utf8": "/-- [dec2flt_model::num::imp::dec2flt::{impl dec2flt_model::num::imp::dec2flt::Lemire<u64> for f64}::from_u64]:\n    Source: 'num/imp/../../dec2flt/mod.rs', lines 263:4-266:5\n    Visibility: public -/\naxiom F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64\n  : Std.U64 → Result F64\n"
  }
]
reference/model-evidence/setup-reproduction.txt

Open file

Fresh extraction and composition evidence for Preamble
======================================================

Scope
-----

This record identifies the preparation evidence frozen with this reopened
repository and records the model-support composition reproduced on 2026-09-24.
It is evidence about source, extraction, and composition, not evidence that any
supplied GOAL is true.

Pinned configuration and tools
------------------------------

modeling-input/extraction.json selects the single library crate `crate` with
empty Cargo, Charon, and Aeneas argument lists.  crate/Cargo.toml gives the
`default` feature an empty definition, leaves `optimize_for_size` disabled,
uses the development profile, and explicitly enables overflow checks.
extraction-evidence/COMMAND.json records target x86_64-unknown-linux-gnu,
nightly-2026-06-01, debug assertions, overflow checks, unwind panic handling,
64-bit pointers, and SSE2.

modeling-input/tool-identities.json pins these six executables by SHA-256:

  cargo   54e05dce8c9ca2f638cc3d87ec1a19425b5d0bf1f31aeb48cf4792aec5cadf27
  rustc   162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  rustdoc 2bf660d140310e28146e2c002dc6fcabd957c0a3b740be0419e6f8e5a9c87523
  Charon  6490034f368ce98f3e7ae5a28bf71ed56d03bdf1e3712e71376b96fc55baeade
  Aeneas  9f446d2aaf59e8e705e36d05cb993f1c6ab0e97f8dc6fd2f19907a86ede30922
  Lean    3e0d0d3d801675359f2d4cf9815bfdb417b20b92fdd9d48b3b14c95bbae28bbf

Fresh extraction
----------------

The authoritative reproduction command in modeling-input/manifest.json is:

  python3 .trellis/scripts/pv_modeling.py check-native . --fresh

extraction-evidence/COMMAND.json records the exact argv, environment, and
working directory for every step.  extraction-evidence/RESULT.json records
exit status 0 for rustc identity, Charon/Cargo extraction, Cargo metadata,
Cargo cfg, and Aeneas.  Its primary run produced generated Lean SHA-256:

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9

The same digest is recorded for both `audited_sha256` and `native_sha256` in
modeling-input/manifest.json, whose `byte_identical` field is true, and is the
digest of this repository's generated.lean.  The manifest's accepted setup and
adaptation audits record the successful uncached Cargo, Charon, and Aeneas
checks, the absence of source placeholders, and the exact 24-external native
boundary.  In particular, the corrected source basis is:

  c42107d27bc47c02e4beb4d6db4c47879aecb68a175ab67f7e6c5d5e866a2402c06583f9e94b467095cf9aff1a26a4857650ace006061c1ca5e4c441747ef622

The pinned compatibility report modeling-input/axiom-compatibility.json has
SHA-256

  473825c0fe635e1abc7a734a2035f5df20ed4fe7053403ef2fb6833d7101a016

and checks 2,225 declarations.  It reports no unapproved axiom.  Its only
pending group contains 64 declarations downstream of the absent raw F64
carrier and external operations, exactly the boundary supplied by the authored
model-support layer; the raw extractor output contains no proof placeholder.

External boundary
-----------------

The reproducible command

  python3 .trellis/scripts/pv_modeling.py inspect-native .

returns exactly 24 declarations: fourteen F64 operations, four U64 bit
operations, and six byte/Option/slice/string operations.  Their complete
records are retained in reference/model-evidence/native-boundary.txt and the
structural-operation evidence files.  Tablet/model-support.json has exactly
one exact-signature binding for each declaration.  The whole opaque
`Lemire::from_u64` method has raw declaration SHA-256

  ad172bce0522e7e41bceb8c66a5adff962822ee8a9454dfd59b7019086797ba8

and covers source lines 263:4-266:5, including both the debug assertion and
the conversion.  It is not a cast-only boundary.

Composition and elaboration
---------------------------

After installing all 24 bindings, the exact command

  python3 .trellis/scripts/pv_modeling.py compose-native . --check

returned `matches=true`, `changed=false`, no mismatched files, raw extraction
hash

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9

and equal expected and actual Preamble hashes

  2bf9c25b895e20dd9efe782ae173e2b07b55020eed41a7d9b63b2ae9e1db007c.

The receipt reports 24 bindings, 47 authored definitions, and 170 extracted
modules.  Finally,

  python3 .trellis/scripts/check.py tablet

checked all 236 registered nodes against this composition and exited 0.  This
establishes complete composition and elaboration while leaving the 32 principal
GOAL proofs open for argument development as required.
reference/model-evidence/source-adaptation-delta.diff

Open file

--- upstream/dec2flt/common.rs
+++ crate/dec2flt/common.rs
@@ -14,4 +13,0 @@
-    /// Iteratively parse and consume digits from bytes.
-    ///
-    /// Returns the same bytes with consumed digits being elided. Breaks on invalid digits.
-    fn parse_digits(&self, func: impl FnMut(u8)) -> &Self;
@@ -38,16 +33,0 @@
-    #[inline]
-    fn parse_digits(&self, mut func: impl FnMut(u8)) -> &Self {
-        let mut s = self;
-
-        while let Some((c, rest)) = s.split_first() {
-            let c = c.wrapping_sub(b'0');
-            if c < 10 {
-                func(c);
-                s = rest;
-            } else {
-                break;
-            }
-        }
-
-        s
-    }
@@ -68 +48,4 @@
-#[derive(Debug, Copy, Clone, PartialEq, Eq, Default)]
+// Debug output is not an accepted public or trace observation.  Removing only
+// that implementation preserves the fields, computational derives, and every
+// algorithm operation independently of GOAL truth.
+#[derive(Copy, Clone, PartialEq, Eq, Default)]
--- upstream/dec2flt/decimal.rs
+++ crate/dec2flt/decimal.rs
@@ -28 +28,4 @@
-#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
+// Debug output is absent from the accepted observations.  Removing only that
+// implementation leaves all fields, computational derives, and parser
+// operations unchanged independently of GOAL truth.
+#[derive(Clone, Copy, Default, PartialEq, Eq)]
@@ -56 +59,11 @@
-    pub fn try_fast_path<F: Lemire>(&self) -> Option<F> {
+    pub fn try_fast_path<
+        F: Lemire
+            + core::ops::Div<Output = F>
+            + core::ops::Mul<Output = F>
+            + core::ops::Neg<Output = F>,
+    >(
+        &self,
+    ) -> Option<F> {
+        // `Lemire` already entails these three operator bounds through
+        // `Float`; spelling them directly changes no admitted type.  Charon
+        // needs the direct clauses to resolve each explicit call's `Output`.
@@ -73 +86,3 @@
-                value / F::pow10_fast_path((-self.exponent) as _)
+                // Explicit trait calls preserve Rust arithmetic and resolve
+                // the generic output type that Charon leaves ambiguous.
+                core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
@@ -75 +90 @@
-                value * F::pow10_fast_path(self.exponent as _)
+                core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
@@ -84 +99,4 @@
-            F::from_u64(mantissa) * F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _)
+            core::ops::Mul::mul(
+                F::from_u64(mantissa),
+                F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
+            )
@@ -87 +105,5 @@
-        if self.negative { Some(-value) } else { Some(value) }
+        if self.negative {
+            Some(core::ops::Neg::neg(value))
+        } else {
+            Some(value)
+        }
--- upstream/dec2flt/decimal_seq.rs
+++ crate/dec2flt/decimal_seq.rs
@@ -17 +17,4 @@
-#[derive(Clone, Debug, PartialEq)]
+// Debug output is absent from the accepted observations.  Removing only that
+// implementation preserves the representation, Clone/PartialEq behavior, and
+// every fallback operation independently of GOAL truth.
+#[derive(Clone, PartialEq)]
@@ -176 +179,2 @@
-        while (n >> shift) == 0 {
+        let mut all_zero = false;
+        while (n >> shift) == 0 && !all_zero {
@@ -181 +185,4 @@
-                return;
+                // The source returns here from inside the loop.  Recording the
+                // condition and returning immediately after the loop executes
+                // no intervening operation and preserves the unchanged value.
+                all_zero = true;
@@ -189,0 +197,3 @@
+        if all_zero {
+            return;
+        }
@@ -220,0 +231,51 @@
+// This is exactly the source reverse scan over the already-consumed prefix.
+// It is separate because Aeneas cannot join the loop while `parse_decimal_seq`
+// retains its other slice borrows.  The downward index has the same visitation
+// order and counts precisely the same zero bytes while ignoring dots.
+fn count_trailing_zeros(start: &[u8], consumed_len: usize) -> usize {
+    let mut n_trailing_zeros = 0;
+    let mut i = consumed_len;
+    let mut scanning = true;
+    while i != 0 && scanning {
+        let c = start[i - 1];
+        if c == b'0' || c == b'.' {
+            i -= 1;
+            if c == b'0' {
+                n_trailing_zeros += 1;
+            }
+        } else {
+            scanning = false;
+        }
+    }
+    n_trailing_zeros
+}
+
+// Equivalent to `ByteSlice::parse_digits(|digit| d.try_add_digit(digit))`.
+// An explicit index keeps the closure's mutable borrow out of the enclosing
+// parser context while retaining the same wrapping digit test and updates.
+fn parse_digits_into_seq<'a>(s: &'a [u8], d: &mut DecimalSeq) -> &'a [u8] {
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
+        d.try_add_digit(digit);
+        count += 1;
+    }
+    &s[count..]
+}
+
+// Equivalent to the source exponent `parse_digits` closure.  Bytes after the
+// first nondigit were ignored by the caller, so only the accumulated value is
+// returned; the 0x10000 guard and wrapping digit classification are identical.
+fn parse_decimal_exponent(s: &[u8]) -> i32 {
+    let mut exp_num = 0;
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
+        if exp_num < 0x10000 {
+            exp_num = 10 * exp_num + digit as i32;
+        }
+        count += 1;
+    }
+    exp_num
+}
+
@@ -226,2 +287,5 @@
-    while let Some((&b'0', s_next)) = s.split_first() {
-        s = s_next;
+    // Aeneas rejects the literal-pattern `while let`; this loop performs the
+    // same nonempty check, byte comparison, and one-byte consumption in the
+    // same order, with identical slice bounds.
+    while !s.is_empty() && s[0] == b'0' {
+        s = &s[1..];
@@ -230 +294 @@
-    s = s.parse_digits(|digit| d.try_add_digit(digit));
+    s = parse_digits_into_seq(s, &mut d);
@@ -232,2 +296,2 @@
-    if let Some((b'.', s_next)) = s.split_first() {
-        s = s_next;
+    if !s.is_empty() && s[0] == b'.' {
+        s = &s[1..];
@@ -237,2 +301,4 @@
-            while let Some((&b'0', s_next)) = s.split_first() {
-                s = s_next;
+            // As above, this is the source leading-zero loop written in the
+            // indexed form accepted by Aeneas.
+            while !s.is_empty() && s[0] == b'0' {
+                s = &s[1..];
@@ -250 +316 @@
-        s = s.parse_digits(|digit| d.try_add_digit(digit));
+        s = parse_digits_into_seq(s, &mut d);
@@ -256,8 +322,5 @@
-        let mut n_trailing_zeros = 0;
-        for &c in start[..(start.len() - s.len())].iter().rev() {
-            if c == b'0' {
-                n_trailing_zeros += 1;
-            } else if c != b'.' {
-                break;
-            }
-        }
+        let consumed_len = start.len() - s.len();
+        // Walking an index downward visits exactly the same bytes as
+        // `.iter().rev()` and stops on the same first nonzero nondot byte.  It
+        // also avoids the missing extracted `Iterator::rev` library field.
+        let n_trailing_zeros = count_trailing_zeros(start, consumed_len);
@@ -273 +336,4 @@
-    if let Some((&ch, s_next)) = s.split_first() {
+    // Indexed tests preserve `split_first`'s nonempty guard and byte order but
+    // avoid the loop-context joins Aeneas creates for nested slice patterns.
+    if !s.is_empty() {
+        let ch = s[0];
@@ -275,4 +341,7 @@
-            s = s_next;
-            let mut neg_exp = false;
-            if let Some((&ch, s_next)) = s.split_first() {
-                neg_exp = ch == b'-';
+            s = &s[1..];
+            let mut exp_sign = 1_i32;
+            if !s.is_empty() {
+                let ch = s[0];
+                if ch == b'-' {
+                    exp_sign = -1;
+                }
@@ -280 +349 @@
-                    s = s_next;
+                    s = &s[1..];
@@ -283,7 +352 @@
-            let mut exp_num = 0_i32;
-
-            s.parse_digits(|digit| {
-                if exp_num < 0x10000 {
-                    exp_num = 10 * exp_num + digit as i32;
-                }
-            });
+            let exp_num = parse_decimal_exponent(s);
@@ -291 +354,4 @@
-            d.decimal_point += if neg_exp { -exp_num } else { exp_num };
+            // `exp_num` is bounded by the source's 0x10000 guard, so this
+            // multiplication cannot overflow and equals the original Boolean
+            // choice between `-exp_num` and `exp_num` under checked arithmetic.
+            d.decimal_point += exp_sign * exp_num;
--- upstream/dec2flt/mod.rs
+++ crate/dec2flt/mod.rs
@@ -90 +90 @@
-use common::BiasedFp;
+pub use common::BiasedFp;
@@ -118,4 +118 @@
-    const MAX_EXPONENT_FAST_PATH: i64 = {
-        let log2_5 = f64::consts::LOG2_10 - 1.0;
-        (Self::SIG_TOTAL_BITS as f64 / log2_5) as i64
-    };
+    const MAX_EXPONENT_FAST_PATH: i64;
@@ -128,2 +125 @@
-    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 =
-        Self::MAX_EXPONENT_FAST_PATH + (Self::SIG_TOTAL_BITS as f64 / f64::consts::LOG2_10) as i64;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64;
@@ -144,0 +141,4 @@
+// The f16 Lemire instance is outside the exclusively f64 scope. Disabling it
+// leaves every retained f64 parser/helper/trace body, native decision, checked
+// operation, debug assertion, return value, and accepted observation unchanged.
+#[cfg(any())]
@@ -145,0 +146,7 @@
+    // These are the exact integer results of the upstream compile-time float
+    // formulae for `SIG_TOTAL_BITS = 11`: floor(11/log2(5)) = 4 and
+    // 4 + floor(11/log2(10)) = 7.  Concrete integers avoid unsupported const
+    // float arithmetic without changing either fast-path guard.
+    const MAX_EXPONENT_FAST_PATH: i64 = 4;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 7;
+
@@ -147,3 +154,11 @@
-        #[allow(clippy::use_self)]
-        const TABLE: [f16; 8] = [1e0, 1e1, 1e2, 1e3, 1e4, 0.0, 0.0, 0.];
-        TABLE[exponent & 7]
+        // Each integer is the exact IEEE encoding of the corresponding
+        // upstream table literal; the masked lookup and fallback zeros are
+        // unchanged.  Aeneas cannot translate arrays containing float values.
+        match exponent & 7 {
+            0 => f16::from_bits(0x3C00),
+            1 => f16::from_bits(0x4900),
+            2 => f16::from_bits(0x5640),
+            3 => f16::from_bits(0x63D0),
+            4 => f16::from_bits(0x70E2),
+            _ => f16::from_bits(0),
+        }
@@ -152,0 +168,4 @@
+    // This method is exactly the upstream primitive `u64 as f16` conversion.
+    // Charon extracts the cast, but Aeneas reports it unreachable; making only
+    // this primitive boundary opaque preserves all guards and dispatcher logic.
+    #[charon::opaque]
@@ -158,0 +178,4 @@
+// The f32 Lemire instance is likewise unused by the retained f64
+// specialization, so disabling it cannot affect any retained body or observed
+// f64 execution independently of the correctness GOALs.
+#[cfg(any())]
@@ -159,0 +183,4 @@
+    // Exact upstream formula results for `SIG_TOTAL_BITS = 24`.
+    const MAX_EXPONENT_FAST_PATH: i64 = 10;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 17;
+
@@ -161,4 +188,16 @@
-        #[allow(clippy::use_self)]
-        const TABLE: [f32; 16] =
-            [1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 0., 0., 0., 0., 0.];
-        TABLE[exponent & 15]
+        // Bit constructors preserve the exact table values and masked lookup,
+        // while avoiding Aeneas's unsupported float-valued array constants.
+        match exponent & 15 {
+            0 => f32::from_bits(0x3F80_0000),
+            1 => f32::from_bits(0x4120_0000),
+            2 => f32::from_bits(0x42C8_0000),
+            3 => f32::from_bits(0x447A_0000),
+            4 => f32::from_bits(0x461C_4000),
+            5 => f32::from_bits(0x47C3_5000),
+            6 => f32::from_bits(0x4974_2400),
+            7 => f32::from_bits(0x4B18_9680),
+            8 => f32::from_bits(0x4CBE_BC20),
+            9 => f32::from_bits(0x4E6E_6B28),
+            10 => f32::from_bits(0x5015_02F9),
+            _ => f32::from_bits(0),
+        }
@@ -167,0 +207,4 @@
+    // This is exactly the source `u64 as f32` conversion.  The narrow opaque
+    // boundary is required because Aeneas rejects the primitive cast itself;
+    // its input guard and every caller remain transparent.
+    #[charon::opaque]
@@ -174,0 +218,4 @@
+    // Exact upstream formula results for `SIG_TOTAL_BITS = 53`.
+    const MAX_EXPONENT_FAST_PATH: i64 = 22;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;
+
@@ -176,5 +223,29 @@
-        const TABLE: [f64; 32] = [
-            1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13, 1e14, 1e15,
-            1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22, 0., 0., 0., 0., 0., 0., 0., 0., 0.,
-        ];
-        TABLE[exponent & 31]
+        // These bit patterns are exactly the source table's rounded binary64
+        // literals.  The match is the same masked lookup; it merely keeps float
+        // constants out of Aeneas's unsupported constant interpreter.
+        match exponent & 31 {
+            0 => f64::from_bits(0x3FF0_0000_0000_0000),
+            1 => f64::from_bits(0x4024_0000_0000_0000),
+            2 => f64::from_bits(0x4059_0000_0000_0000),
+            3 => f64::from_bits(0x408F_4000_0000_0000),
+            4 => f64::from_bits(0x40C3_8800_0000_0000),
+            5 => f64::from_bits(0x40F8_6A00_0000_0000),
+            6 => f64::from_bits(0x412E_8480_0000_0000),
+            7 => f64::from_bits(0x4163_12D0_0000_0000),
+            8 => f64::from_bits(0x4197_D784_0000_0000),
+            9 => f64::from_bits(0x41CD_CD65_0000_0000),
+            10 => f64::from_bits(0x4202_A05F_2000_0000),
+            11 => f64::from_bits(0x4237_4876_E800_0000),
+            12 => f64::from_bits(0x426D_1A94_A200_0000),
+            13 => f64::from_bits(0x42A2_309C_E540_0000),
+            14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
+            15 => f64::from_bits(0x430C_6BF5_2634_0000),
+            16 => f64::from_bits(0x4341_C379_37E0_8000),
+            17 => f64::from_bits(0x4376_3457_85D8_A000),
+            18 => f64::from_bits(0x43AB_C16D_674E_C800),
+            19 => f64::from_bits(0x43E1_58E4_6091_3D00),
+            20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
+            21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
+            22 => f64::from_bits(0x4480_F0CF_064D_D592),
+            _ => f64::from_bits(0),
+        }
@@ -183,0 +255,8 @@
+    // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
+    // `charon::opaque` makes this entire asserted conversion external: both the
+    // unchanged `debug_assert!` and the unchanged cast below are in the opaque
+    // body. The callers, their fast-path guards, and their surrounding
+    // computation remain mechanically visible. A corresponding model binding
+    // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
+    // exact binary64 conversion at or below that bound.
+    #[charon::opaque]
@@ -209,5 +288,80 @@
-/// Converts a decimal string into a floating point number.
-#[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
-pub fn dec2flt<F: Lemire>(s: &str) -> Result<F, ParseFloatError> {
-    let mut s = s.as_bytes();
-    let Some(&c) = s.first() else { return Err(pfe_empty()) };
+/// Observable control-flow record for a dispatcher execution.
+///
+/// These variants add no decisions to the conversion: each stores values
+/// already computed at the corresponding source branch.  In particular, the
+/// first component returned by `dec2flt_with_trace` is the ordinary parser
+/// result, so projecting it preserves every public source observation without
+/// assuming any correctness goal.
+pub enum Dec2FltTrace<'a, F> {
+    /// The original string was empty; no helper was called.
+    EmptyInput,
+    /// Removing one lexical sign left an empty body; no helper was called.
+    SignOnly { body: &'a [u8], negative: bool },
+    /// Both lexical helpers returned `None`; no raw pair was selected.
+    Invalid {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        parse_inf_nan_result: Option<F>,
+    },
+    /// The special helper supplied the directly returned value; no pair was selected.
+    Special {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        parse_inf_nan_result: Option<F>,
+        result: F,
+    },
+    /// The ordinary native shortcut supplied the directly returned value.
+    FastPath {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        fast_path_input: decimal::Decimal,
+        fast_path_result: Option<F>,
+        result: F,
+    },
+    /// The integer/slow path selected and assembled one raw pair.
+    Assembled(Dec2FltAssemblyTrace<'a, F>),
+}
+
+/// Full observation record for the dispatcher path that performs final assembly.
+pub struct Dec2FltAssemblyTrace<'a, F> {
+    pub body: &'a [u8],
+    pub negative: bool,
+    pub parse_number_result: Option<decimal::Decimal>,
+    pub fast_path_input: decimal::Decimal,
+    pub fast_path_result: Option<F>,
+    pub first_compute_exponent: i64,
+    pub first_compute_mantissa: u64,
+    pub first_compute_result: BiasedFp,
+    pub second_compute_guard: bool,
+    pub second_compute_exponent: Option<i64>,
+    pub second_compute_mantissa: Option<u64>,
+    pub second_compute_result: Option<BiasedFp>,
+    pub second_equals_first: Option<bool>,
+    pub forced_deferral: bool,
+    pub post_comparison_pair: BiasedFp,
+    pub slow_path_guard: bool,
+    pub slow_path_result: Option<BiasedFp>,
+    pub selected_pair: BiasedFp,
+    pub assembled_word: u64,
+    pub assembly_result: F,
+    pub lexical_sign_applied: bool,
+    pub result: F,
+}
+
+/// Run the actual dispatcher while retaining its approved internal observations.
+pub fn dec2flt_with_trace<
+    'a,
+    F: Lemire
+        + core::ops::Div<Output = F>
+        + core::ops::Mul<Output = F>
+        + core::ops::Neg<Output = F>,
+>(
+    s: &'a str,
+) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
+    let mut body = s.as_bytes();
+    let Some(&c) = body.first() else {
+        return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
+    };
@@ -216 +370 @@
-        s = &s[1..];
+        body = &body[1..];
@@ -218,2 +372,2 @@
-    if s.is_empty() {
-        return Err(pfe_invalid());
+    if body.is_empty() {
+        return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
@@ -222 +376,2 @@
-    let mut num = match parse_number(s) {
+    let parse_number_result = parse_number(body);
+    let parsed = match parse_number_result {
@@ -224,2 +379,24 @@
-        None if let Some(value) = parse_inf_nan(s, negative) => return Ok(value),
-        None => return Err(pfe_invalid()),
+        None => {
+            let parse_inf_nan_result = parse_inf_nan(body, negative);
+            return match parse_inf_nan_result {
+                Some(value) => (
+                    Ok(value),
+                    Dec2FltTrace::Special {
+                        body,
+                        negative,
+                        parse_number_result,
+                        parse_inf_nan_result,
+                        result: value,
+                    },
+                ),
+                None => (
+                    Err(pfe_invalid()),
+                    Dec2FltTrace::Invalid {
+                        body,
+                        negative,
+                        parse_number_result,
+                        parse_inf_nan_result,
+                    },
+                ),
+            };
+        }
@@ -226,0 +404,2 @@
+
+    let mut num = parsed;
@@ -229,2 +408,13 @@
-        if let Some(value) = num.try_fast_path::<F>() {
-            return Ok(value);
+        let fast_path_result = num.try_fast_path::<F>();
+        if let Some(value) = fast_path_result {
+            return (
+                Ok(value),
+                Dec2FltTrace::FastPath {
+                    body,
+                    negative,
+                    parse_number_result,
+                    fast_path_input: num,
+                    fast_path_result,
+                    result: value,
+                },
+            );
@@ -234,15 +424,27 @@
-    // If significant digits were truncated, then we can have rounding error
-    // only if `mantissa + 1` produces a different result. We also avoid
-    // redundantly using the Eisel-Lemire algorithm if it was unable to
-    // correctly round on the first pass.
-    let mut fp = compute_float::<F>(num.exponent, num.mantissa);
-    if num.many_digits
-        && fp.p_biased >= 0
-        && fp != compute_float::<F>(num.exponent, num.mantissa + 1)
-    {
-        fp.p_biased = -1;
-    }
-    // Unable to correctly round the float using the Eisel-Lemire algorithm.
-    // Fallback to a slower, but always correct algorithm.
-    if fp.p_biased < 0 {
-        fp = parse_long_mantissa::<F>(s);
+    let first_compute_exponent = num.exponent;
+    let first_compute_mantissa = num.mantissa;
+    let first_compute_result = compute_float::<F>(first_compute_exponent, first_compute_mantissa);
+    let mut fp = first_compute_result;
+
+    // This expands the source short-circuit conjunction without moving the
+    // checked `mantissa + 1`: that addition and the second helper call still
+    // occur exactly when `many_digits && fp.p_biased >= 0`.
+    let second_compute_guard = num.many_digits && fp.p_biased >= 0;
+    let mut second_compute_exponent = None;
+    let mut second_compute_mantissa = None;
+    let mut second_compute_result = None;
+    let mut second_equals_first = None;
+    let mut forced_deferral = false;
+    if second_compute_guard {
+        let exponent = num.exponent;
+        let mantissa = num.mantissa + 1;
+        let second = compute_float::<F>(exponent, mantissa);
+        let equal = fp == second;
+        second_compute_exponent = Some(exponent);
+        second_compute_mantissa = Some(mantissa);
+        second_compute_result = Some(second);
+        second_equals_first = Some(equal);
+        if !equal {
+            fp.p_biased = -1;
+            forced_deferral = true;
+        }
@@ -249,0 +452 @@
+    let post_comparison_pair = fp;
@@ -251,5 +454,69 @@
-    let mut float = biased_fp_to_float::<F>(fp);
-    if num.negative {
-        float = -float;
-    }
-    Ok(float)
+    let slow_path_guard = fp.p_biased < 0;
+    let mut slow_path_result = None;
+    if slow_path_guard {
+        // The exact slow-path input is the trace's common `body`; the guard
+        // records whether this call occurred, avoiding a duplicate live slice
+        // reference that Aeneas cannot join across this branch.
+        let replacement = parse_long_mantissa::<F>(body);
+        slow_path_result = Some(replacement);
+        fp = replacement;
+    }
+
+    let selected_pair = fp;
+    // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
+    // it neither changes the selected pair nor introduces a new branch or call.
+    let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
+    let assembly_result = biased_fp_to_float::<F>(fp);
+    let lexical_sign_applied = num.negative;
+    let result = if lexical_sign_applied {
+        core::ops::Neg::neg(assembly_result)
+    } else {
+        assembly_result
+    };
+
+    (
+        Ok(result),
+        Dec2FltTrace::Assembled(Dec2FltAssemblyTrace {
+            body,
+            negative,
+            parse_number_result,
+            fast_path_input: num,
+            fast_path_result: None,
+            first_compute_exponent,
+            first_compute_mantissa,
+            first_compute_result,
+            second_compute_guard,
+            second_compute_exponent,
+            second_compute_mantissa,
+            second_compute_result,
+            second_equals_first,
+            forced_deferral,
+            post_comparison_pair,
+            slow_path_guard,
+            slow_path_result,
+            selected_pair,
+            assembled_word,
+            assembly_result,
+            lexical_sign_applied,
+            result,
+        }),
+    )
+}
+
+/// Converts a decimal string into a floating point number.
+#[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
+pub fn dec2flt<
+    F: Lemire
+        + core::ops::Div<Output = F>
+        + core::ops::Mul<Output = F>
+        + core::ops::Neg<Output = F>,
+>(
+    s: &str,
+) -> Result<F, ParseFloatError> {
+    // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
+    // clause admits exactly the same instances and lets Charon resolve the
+    // explicit, source-equivalent final negation.
+    // The public function is now exactly the result projection of the single
+    // instrumented implementation.  No conversion step is duplicated, and
+    // discarding the trace cannot affect Rust evaluation or the returned bits.
+    dec2flt_with_trace::<F>(s).0
--- upstream/dec2flt/parse.rs
+++ crate/dec2flt/parse.rs
@@ -34,3 +34,6 @@
-        let num = s.read_u64();
-        if is_8digits(num) {
-            x = x.wrapping_mul(1_0000_0000).wrapping_add(parse_8digits(num));
+        // `chunk` is the source's local `num` under a nonconflicting name.
+        // The rename has no Rust effect and prevents the Lean backend from
+        // resolving `num.imp...` as a field projection on this local value.
+        let chunk = s.read_u64();
+        if is_8digits(chunk) {
+            x = x.wrapping_mul(1_0000_0000).wrapping_add(parse_8digits(chunk));
@@ -43 +46,6 @@
-    s = s.parse_digits(|digit| {
+    // This is the removed `ByteSlice::parse_digits` call specialized to its
+    // only parser use: identical wrapping digit classification, accumulator
+    // update, and first-nondigit stop, without an unsupported closure state.
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
@@ -45 +53,3 @@
-    });
+        count += 1;
+    }
+    s = &s[count..];
@@ -71,0 +82,38 @@
+// This is the source prefix scan isolated from `parse_partial_number` because
+// Aeneas cannot join its loop context while the enclosing function's other
+// slice borrows are live.  It visits the same bytes, in order, and performs
+// the identical checked `isize` subtraction for every leading dot or zero.
+fn adjust_many_digit_count(start: &[u8], mut n_digits: isize) -> isize {
+    let mut scan_index = 0;
+    let mut scanning = true;
+    while scan_index < start.len() && scanning {
+        let c = start[scan_index];
+        if c == b'.' || c == b'0' {
+            n_digits -= c.saturating_sub(b'0' - 1) as isize;
+            scan_index += 1;
+        } else {
+            scanning = false;
+        }
+    }
+    n_digits
+}
+
+// This is the source many-digit retry as a transparent helper.  Isolating its
+// rebased slices avoids an Aeneas context-join failure; both calls, the branch,
+// the offset arithmetic, and the explicit-exponent addition are unchanged.
+fn parse_many_digits(start: &[u8], int_end: &[u8], exp_number: i64) -> (u64, i64) {
+    let mut mantissa = 0;
+    let mut s = start;
+    try_parse_19digits(&mut s, &mut mantissa);
+    let mut exponent = if mantissa >= MIN_19DIGIT_INT {
+        int_end.offset_from(s)
+    } else {
+        s = &s[1..];
+        let before = s;
+        try_parse_19digits(&mut s, &mut mantissa);
+        -s.offset_from(before)
+    } as i64;
+    exponent += exp_number;
+    (mantissa, exponent)
+}
+
@@ -86,3 +134,10 @@
-    if matches!(s.first(), Some(&x) if x.is_ascii_digit()) {
-        *s_ref = s.parse_digits(|digit| {
-            // no overflows here, saturate well before overflow
+    // `matches!` with a guarded slice pattern triggers an Aeneas internal
+    // error.  This short-circuit test reads the same first byte exactly when
+    // it exists and therefore preserves both acceptance and evaluation order.
+    if !s.is_empty() && s[0].is_ascii_digit() {
+        // Specialized form of the source digit callback.  `count` advances
+        // exactly once per accepted byte and the bound keeps every checked
+        // exponent operation in the same safe range as the source.
+        let mut count = 0;
+        while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+            let digit = s[count].wrapping_sub(b'0');
@@ -92 +147,3 @@
-        });
+            count += 1;
+        }
+        *s_ref = &s[count..];
@@ -155,9 +212,5 @@
-    let mut p = start;
-    while let Some((&c, p_next)) = p.split_first() {
-        if c == b'.' || c == b'0' {
-            n_digits -= c.saturating_sub(b'0' - 1) as isize;
-            p = p_next;
-        } else {
-            break;
-        }
-    }
+    // The indexed loop is equivalent to the source `while let split_first`:
+    // it tests nonemptiness before the same byte read and consumes one byte
+    // only on the two source continuation cases.  This avoids Aeneas's loop
+    // context mismatch without changing checked subtraction or slice bounds.
+    n_digits = adjust_many_digit_count(start, n_digits);
@@ -167,14 +220,3 @@
-        mantissa = 0;
-        let mut s = start;
-        try_parse_19digits(&mut s, &mut mantissa);
-        exponent = if mantissa >= MIN_19DIGIT_INT {
-            // big int
-            int_end.offset_from(s)
-        } else {
-            s = &s[1..];
-            let before = s;
-            try_parse_19digits(&mut s, &mut mantissa);
-            -s.offset_from(before)
-        } as i64;
-        // add back the explicit part
-        exponent += exp_number;
+        let retried = parse_many_digits(start, int_end, exp_number);
+        mantissa = retried.0;
+        exponent = retried.1;
--- upstream/dec2flt/slow.rs
+++ crate/dec2flt/slow.rs
@@ -48,0 +49 @@
+    let mut loop_result = None;
@@ -50 +51 @@
-    while d.decimal_point > 0 {
+    while d.decimal_point > 0 && loop_result.is_none() {
@@ -55 +56,7 @@
-            return fp_zero;
+            // The source returns `fp_zero` at this exact point.  Storing that
+            // result and terminating the loop performs no later loop update;
+            // the return below is therefore behavior-identical and avoids an
+            // Aeneas restriction on returns from nested loop translation.
+            loop_result = Some(fp_zero);
+        } else {
+            exp2 += shift as i32;
@@ -57 +64,3 @@
-        exp2 += shift as i32;
+    }
+    if let Some(result) = loop_result {
+        return result;
@@ -60 +69 @@
-    while d.decimal_point <= 0 {
+    while d.decimal_point <= 0 && loop_result.is_none() {
@@ -72 +81,6 @@
-            return fp_inf;
+            // This records the source's immediate `fp_inf` return.  Since the
+            // guarded loop exits before the exponent update, moving the return
+            // just below the loop preserves every state transition.
+            loop_result = Some(fp_inf);
+        } else {
+            exp2 -= shift as i32;
@@ -74 +88,3 @@
-        exp2 -= shift as i32;
+    }
+    if let Some(result) = loop_result {
+        return result;
--- upstream/traits.rs
+++ crate/traits.rs
@@ -11 +11 @@
-use crate::{f64, fmt, ops};
+use crate::{f64, ops};
@@ -14 +14,5 @@
-pub trait CastInto<T: Copy>: Copy {
+// All uses are through `Int`, which independently requires `Self: Copy`, and
+// every implementation here is a primitive Copy type.  Removing that redundant
+// supertrait changes no call or value but prevents Aeneas from emitting two
+// identically named `Copy` fields for `Self` and `T` in the Lean structure.
+pub trait CastInto<T: Copy> {
@@ -18,0 +23,4 @@
+// The accepted observations contain no formatting behavior.  Removing the
+// `Debug` supertrait changes neither the concrete primitive integer instances
+// nor any operation used by the algorithms, so it preserves the f64
+// specialization and every inventoried observation independently of GOAL truth.
@@ -23 +30,0 @@
-    + fmt::Debug
@@ -52 +59,6 @@
-int!(u16, u32, u64);
+// Only `u64` is the associated integer of the retained `f64` specialization.
+// The removed `u16`/`u32` instances served only the excluded `f16`/`f32`
+// implementations, so their removal changes no f64 public, helper, or trace
+// body, native decision, checked arithmetic, debug assertion, return value, or
+// accepted observation.
+int!(u64);
@@ -55,0 +68,6 @@
+// Formatting is outside every accepted public and trace observation. `Add`,
+// equality, ordering, default construction, and cloning are also unused by all
+// retained generic bodies; only `Copy`, `Mul`, `Div`, and `Neg` are required.
+// Removing those unused requirements admits the same f64 implementation and
+// changes no f64 body, native decision, checked arithmetic, debug assertion,
+// return value, or trace observation, independently of any GOAL's truth.
@@ -61,6 +78,0 @@
-    + ops::Add<Output = Self>
-    + fmt::Debug
-    + PartialEq
-    + PartialOrd
-    + Default
-    + Clone
@@ -134,4 +146 @@
-    const LARGEST_POWER_OF_TEN: i32 = {
-        let largest_pow2 = Self::EXP_BIAS + 1;
-        pow2_to_pow10(largest_pow2 as i64) as i32
-    };
+    const LARGEST_POWER_OF_TEN: i32;
@@ -175,19 +184 @@
-    fn integer_decode(self) -> (u64, i16, i8) {
-        let bits = self.to_bits();
-        let sign: i8 = if bits >> (Self::BITS - 1) == Self::Int::ZERO { 1 } else { -1 };
-        let mut exponent: i16 = ((bits & Self::EXP_MASK) >> Self::SIG_BITS).cast();
-        let mantissa = if exponent == 0 {
-            (bits & Self::SIG_MASK) << 1
-        } else {
-            (bits & Self::SIG_MASK) | (Self::Int::ONE << Self::SIG_BITS)
-        };
-        // Exponent bias + mantissa shift
-        exponent -= (Self::EXP_BIAS + Self::SIG_BITS) as i16;
-        (mantissa.into(), exponent, sign)
-    }
-}
-
-/// Solve for `b` in `10^b = 2^a`
-const fn pow2_to_pow10(a: i64) -> i64 {
-    let res = (a as f64) / f64::consts::LOG2_10;
-    res as i64
+    fn integer_decode(self) -> (u64, i16, i8);
@@ -196,0 +188,4 @@
+// The f16 implementation is outside the exclusively f64 scope. Disabling it
+// leaves every retained f64 public/helper/trace body and all of its decisions,
+// checked operations, assertions, return values, and observations unchanged.
+#[cfg(any())]
@@ -203 +198,4 @@
-    const NEG_NAN: Self = -Self::NAN;
+    // `from_bits` produces exactly the bit pattern obtained by negating the
+    // upstream canonical NaN.  This avoids Aeneas's unsupported float unop
+    // while preserving the constant, including its sign and payload bits.
+    const NEG_NAN: Self = f16::from_bits(0xFE00);
@@ -211,0 +210,2 @@
+    // Exact value of trunc(16 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 4;
@@ -223,0 +224,3 @@
+// `FloatExt for f16` is used only by the excluded f16 specialization; it is
+// irrelevant to all retained f64 computation and observations listed above.
+#[cfg(any())]
@@ -228,0 +232,16 @@
+
+    // Specializing the upstream default removes only unsupported associated-
+    // integer operator resolution; these are the same bit operations with
+    // `Self::Int = u16` and the same exponent-bias subtraction.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 15 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 10) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u16 << 10)
+        };
+        exponent -= 15 + 10;
+        (mantissa as u64, exponent, sign)
+    }
@@ -230,0 +250,3 @@
+// The f32 implementation is outside the exclusively f64 scope. Disabling it
+// does not alter any retained f64 computation, assertion, result, or trace.
+#[cfg(any())]
@@ -237 +259,3 @@
-    const NEG_NAN: Self = -f32::NAN;
+    // Bit-identical to the upstream `-f32::NAN`, without the unsupported
+    // compile-time float negation.
+    const NEG_NAN: Self = f32::from_bits(0xFFC0_0000);
@@ -245,0 +270,2 @@
+    // Exact value of trunc(128 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 38;
@@ -256,0 +283,3 @@
+// `FloatExt for f32` likewise has no use in any retained f64 body or accepted
+// observation and is disabled without changing f64 execution.
+#[cfg(any())]
@@ -261,0 +291,16 @@
+
+    // This is the upstream default after substituting `Self::Int = u32`;
+    // concreteness is needed only because Charon cannot resolve the generic
+    // associated-integer shifts and bit operators for Aeneas.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 31 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 23) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u32 << 23)
+        };
+        exponent -= 127 + 23;
+        (mantissa as u64, exponent, sign)
+    }
@@ -270 +315,3 @@
-    const NEG_NAN: Self = -Self::NAN;
+    // Bit-identical to the upstream `-f64::NAN`, without the unsupported
+    // compile-time float negation.
+    const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);
@@ -278,0 +326,2 @@
+    // Exact value of trunc(1024 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 308;
@@ -293,0 +343,16 @@
+    }
+
+    // This is the upstream default after substituting `Self::Int = u64`;
+    // it preserves every decoded field while avoiding unsupported generic
+    // associated-integer operator resolution.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 63 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 52) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u64 << 52)
+        };
+        exponent -= 1023 + 52;
+        (mantissa, exponent, sign)
reference/model-evidence/source-adaptation-delta.txt

Open file

Primary inventory and preservation analysis of the upstream-to-crate delta
============================================================================

Method and complete file inventory
----------------------------------

This record compares the supplied files in upstream/ with the frozen adapted
crate/.  It treats the sources and their control flow as primary evidence; it
does not use a prior route decision as semantic proof and makes no assertion
that a supplied GOAL is true.  The exact raw aggregate diff is retained as
reference/model-evidence/source-adaptation-delta.diff.  It was generated from
the repository root by this exact command (the for-list is the complete
LC_ALL=C-sorted upstream inventory, identical files contribute zero bytes,
labels are literal root-relative paths, hunks are concatenated in listed
order, status 1 is accepted as diff's expected ``files differ'' status, and
every other nonzero status aborts):

  export LC_ALL=C
  artifact=reference/model-evidence/source-adaptation-delta.diff
  : > "$artifact"
  saw_difference=0
  for supplied in \
    dec2flt/common.rs \
    dec2flt/decimal.rs \
    dec2flt/decimal_seq.rs \
    dec2flt/fpu.rs \
    dec2flt/lemire.rs \
    dec2flt/mod.rs \
    dec2flt/parse.rs \
    dec2flt/slow.rs \
    dec2flt/table.rs \
    traits.rs
  do
    if diff --unified=0 --label "upstream/$supplied" --label "crate/$supplied" \
        "upstream/$supplied" "crate/$supplied" >> "$artifact"; then
      :
    else
      diff_status=$?
      if [ "$diff_status" -ne 1 ]; then
        exit "$diff_status"
      fi
      saw_difference=1
    fi
  done
  test "$saw_difference" -eq 1
  sha256sum "$artifact"

The command used GNU diffutils 3.12 at /usr/bin/diff, whose SHA-256 is
dfab4814355b488934cf8c63ce96d94184ea3d9b5e4f9be50278ad8e080168f5.
Its actual final output was:

  fdf88cabfe40ce962d2bd5eda22eb5b3cbbf8a936a81b896e98698bf472cd0e4  reference/model-evidence/source-adaptation-delta.diff

The retained byte stream is 38,813 bytes and 933 lines.  The complete source
inventory and independently reproduced file hashes are:

  supplied path                 upstream SHA-256                                                   crate SHA-256                                                      status
  dec2flt/common.rs             fc64094721ff23e08fcba013154d04dec3fe986cae5ffd73a20f86049980aace   4c4be815335a7b176527eb1345e662890caa48181a0a4f814594339016cab18e   changed
  dec2flt/decimal.rs            3c164785e1bc3f3b48aa9c212dd6c4ab535fe828523af9fa584df4c7b1e60e0d   633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb   changed
  dec2flt/decimal_seq.rs        c0c1c6028e3f57cefc3de7635a94788e9180f5ebcedc7a334ec8dbac786ec788   4aa4ecf9f31970033093d73238d4f2c72d433639bbe467c0741b185807380bd9   changed
  dec2flt/fpu.rs                16cf9ec154d477ab3d4184a01fb4b9ed7c59f0228cc55589d393c40a61b19d8f   16cf9ec154d477ab3d4184a01fb4b9ed7c59f0228cc55589d393c40a61b19d8f   identical
  dec2flt/lemire.rs             fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1   fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1   identical
  dec2flt/mod.rs                7198e238c554b692405537a446b3526ad66805ec2900cd0e299f10c51402a44a   ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d   changed
  dec2flt/parse.rs              9daf21ab9445a84552535152f376eef8c30f3d5827296c0645f5952d3b22bbf1   50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f   changed
  dec2flt/slow.rs               43e7aba32d7431bbf0e1bbcb4c334eaffb23eb66891c7e45abe799c5235cc0d2   93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485   changed
  dec2flt/table.rs              6eb59023784bd84cb6fb074c70da8a99bef72bc2a2ea179b0da457ca1ee00abb   6eb59023784bd84cb6fb074c70da8a99bef72bc2a2ea179b0da457ca1ee00abb   identical
  traits.rs                     66a02c44d72dfcc3ddae7e34a290e390dabaf98c5911b283d2d97f2f0075a44e   9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf   changed

The standalone package adds four files having no supplied counterpart:

  crate/Cargo.toml              2040ce5dc92c51b5245113f97682b692b876aa57708b5c7c483425ba152943c8
  crate/lib.rs                  1df2b8bcb2f52068d05a6343923716d0ef4475abdef34a0de3fe7cb8dc2ba95b
  crate/num/mod.rs              d9ac4f964d124bd4660914dc4c80bbb14f48d7851f9a8edc71a0931e9fce37b3
  crate/num/imp/mod.rs          df09b97393e97b23b0a558c2fcbbf4e75dd9d68338f1e83f168bab80a37a31f1

Thus fpu.rs, lemire.rs, and the complete 671-line table.rs, including their
algorithmic constants and tables, are byte-identical.  The following sections
account for every other file and every changed hunk.

Namespace and error shell
-------------------------

crate/lib.rs:1-12 is a no_std crate root that re-exports core::f64 and
core::ops and introduces the same num module path expected by the supplied
slice.  crate/num/imp/mod.rs:1-10 uses path attributes to place traits.rs and
dec2flt/mod.rs at core::num::imp-like module names.  These declarations add no
wrapper call or computation.  crate/num/mod.rs:1 re-exports
core::num::FpCategory.  crate/num/mod.rs:3-26 defines a local private
FloatErrorKind and ParseFloatError shell so the standalone package can name
the parser's error type.  The pursued GOALs observe only panic versus normal
return and, on normal return, the outer Result's Ok/Err discriminant; they do
not observe the private error kind or formatting.  No identity is asserted
between this local shell and an unpinned core error payload.
crate/Cargo.toml:5-22 selects the package, empty default features, and
checked-overflow profiles.  The configuration and fresh build are independently
reproduced in setup-reproduction.txt.

Visibility, derives, and bounds
-------------------------------

upstream/dec2flt/mod.rs:90 versus crate/dec2flt/mod.rs:90 changes only the
visibility of the existing BiasedFp import so a goal-facing caller can name the
same type.  It changes neither layout nor execution.

upstream/dec2flt/common.rs:68 and decimal.rs:28 and decimal_seq.rs:17 include
Debug derives.  The corresponding crate spans common.rs:48-51,
decimal.rs:28-31, and decimal_seq.rs:17-20 remove only Debug.  Copy, Clone,
PartialEq, Eq, and Default used by computation remain where present, and no
accepted observation formats these records.

upstream/traits.rs:11-52 versus crate/traits.rs:11-64 removes formatting from
Int, removes a redundant Copy supertrait from CastInto, and instantiates Int
only for u64.  Every call of CastInto is through Int, which still requires
Copy; all retained concrete values are primitive Copy values.  The removed
u16/u32 instances are associated only with the disabled f16/f32 formats.

upstream/traits.rs:55-76 versus crate/traits.rs:67-80 removes Add, Debug,
PartialEq, PartialOrd, Default, and Clone from Float while retaining Copy, Mul,
Div, and Neg.  A search of all retained generic bodies shows no call using a
removed operation.  upstream/dec2flt/decimal.rs:56-89 versus
crate/dec2flt/decimal.rs:59-111 and upstream/dec2flt/mod.rs:209-256 versus
crate/dec2flt/mod.rs:352-520 add direct Div, Mul, and Neg bounds already implied
by Lemire -> Float, and replace operator notation with calls to those same
traits.  Rust desugars the original /, *, and unary - to these trait calls, so
the operands, call order, result, and admitted f64 specialization are unchanged.

Exact constants, tables, and specialized decoding
-------------------------------------------------

The source formulae and decimal-literal table were evaluated directly by the
pinned rustc using the retained source
reference/model-evidence/adaptation-constants-probe.rs.  The command was:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/adaptation-constants-probe.rs
  B=.trellis/scratch/adaptation-constants-probe
  "$R" --edition 2024 --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$P" "$B"
  "$B"

The source hash was
b5a4a2cba0c08053cb9a816adb1ba5dbd160bf3928bdf5ccf56b7ae83aaa2aa5
and the resulting executable hash was
b02d2f6deb675f17d0dbdc22e57a67d7692689f7a2b0d7b125556c35c4b8a4a5.
Raw output was:

  largest_power_of_ten=308
  max_exponent_fast_path=22
  max_exponent_disguised=37
  neg_nan=fff8000000000000
  pow10_0=3ff0000000000000
  pow10_1=4024000000000000
  pow10_2=4059000000000000
  pow10_3=408f400000000000
  pow10_4=40c3880000000000
  pow10_5=40f86a0000000000
  pow10_6=412e848000000000
  pow10_7=416312d000000000
  pow10_8=4197d78400000000
  pow10_9=41cdcd6500000000
  pow10_10=4202a05f20000000
  pow10_11=42374876e8000000
  pow10_12=426d1a94a2000000
  pow10_13=42a2309ce5400000
  pow10_14=42d6bcc41e900000
  pow10_15=430c6bf526340000
  pow10_16=4341c37937e08000
  pow10_17=4376345785d8a000
  pow10_18=43abc16d674ec800
  pow10_19=43e158e460913d00
  pow10_20=4415af1d78b58c40
  pow10_21=444b1ae4d6e2ef50
  pow10_22=4480f0cf064dd592

upstream/traits.rs:134-137 computes LARGEST_POWER_OF_TEN through a Float
default, and upstream/traits.rs:175-193 gives the generic integer_decode and
the helper used by that constant.  crate/traits.rs:146 makes the constant an
associated requirement; crate/traits.rs:309-359 supplies the retained f64
values and decoder after substituting BITS=64, SIG_BITS=52, EXP_BIAS=1023,
EXPONENT_MASK, MANTISSA_MASK, and the u64 operations.  Each source expression
then becomes exactly the corresponding crate expression: sign is bits>>63,
exponent is (bits & mask)>>52 cast to i16, the subnormal mantissa is shifted
once, the normal mantissa receives 1<<52, and 1023+52 is subtracted.  The
resulting tuple and every bit operation are unchanged.  The probe output above
shows that the computed f64 LARGEST_POWER_OF_TEN is 308 and that the source
-f64::NAN word is fff8000000000000, exactly crate/traits.rs:315-327; the
independent binary64-boundary.txt record fixes the masks and primitive bit
semantics used by the decoder.

upstream/dec2flt/mod.rs:118-129 gives the two Lemire default formulae.
crate/dec2flt/mod.rs:115-128 makes them associated requirements, and the
retained f64 instance at crate/dec2flt/mod.rs:217-220 supplies 22 and 37, the
integer results of the two source formulae for 53 significand bits.
upstream/dec2flt/mod.rs:176-181 indexes a 32-entry f64 table with exponent&31.
crate/dec2flt/mod.rs:222-251 performs the same masked selection using from_bits:
cases 0 through 22 are the exact pinned binary64 words printed above for 1e0 through 1e22 and
all other cases return positive zero, as did entries 23 through 31.  The full
word list and the pinned float semantics are recorded in binary64-boundary.txt.
The analogous f16/f32 replacements at crate/dec2flt/mod.rs:145-215 and
crate/traits.rs:187-307 lie under cfg(any()) and cannot enter this build.

Whole-function from_u64 opacity
-------------------------------

upstream/dec2flt/mod.rs:184-188 and crate/dec2flt/mod.rs:263-266 have the same
f64 body: the same enabled debug_assert that v <= 1<<53, followed by the same
primitive `v as f64` cast.  The sole semantic-boundary annotation is
#[charon::opaque] at crate line 262, syntactically attached to the function
item.  It therefore hides the entire from_u64 body from translation: neither
the debug assertion nor the cast is transparent in the extraction.  The
callers, their guards, and the surrounding native-path computation remain
transparent.  The fresh external inventory contains the whole method as the
single external F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64.  Its
separately reviewed ModelF64FromU64 binding supplies exactly successful integer
conversion for v <= 2^53 and assertion failure otherwise.

Digit scans, slice patterns, and helper extraction
-------------------------------------------------

upstream/dec2flt/common.rs:14-53 supplies ByteSlice::parse_digits: repeatedly
split_first, wrapping-subtract ASCII zero, invoke the closure exactly when the
result is below 10, consume that byte, and stop at the first other byte.
crate/dec2flt/common.rs:11-36 removes only this method.  Its complete set of
uses is replaced as follows.

* upstream/dec2flt/parse.rs:31-48 versus crate/dec2flt/parse.rs:31-58 keeps the
  eight-byte loop, wrapping multiply/add, and then performs the same digit test,
  accumulator update, and one-byte progress with an index.  The local rename
  num to chunk is lexical only.
* upstream/dec2flt/parse.rs:83-97 versus crate/dec2flt/parse.rs:131-153 expands
  matches!/parse_digits into the same nonempty first-digit guard, the same
  0x10000 bounded exponent update, the same first-nondigit suffix, and the same
  final sign.  The bound is tested before each checked multiply and addition,
  exactly as in the closure.
* upstream/dec2flt/decimal_seq.rs:220-295 versus
  crate/dec2flt/decimal_seq.rs:231-359 extracts parse_digits_into_seq,
  parse_decimal_exponent, and count_trailing_zeros.  The digit helpers use the
  same wrapping byte test, forward order, try_add_digit state transition, and
  0x10000 exponent guard.  The reverse helper visits indices consumed_len-1
  down to zero, increments only for ASCII zero, ignores a decimal point, and
  stops at the first other byte, exactly the original iter().rev() loop.

In all these replacements, indexing occurs only under count<len or !is_empty,
so it has the same bounds as split_first.  Slicing advances by exactly the same
one or eight bytes.  No wrapping operation is replaced by checked arithmetic,
and no checked source operation is replaced by wrapping arithmetic.

upstream/dec2flt/parse.rs:155-181 versus crate/dec2flt/parse.rs:82-119 and
212-226 moves two loops into adjust_many_digit_count and parse_many_digits.
The prefix helper visits the same start bytes in the same order, performs the
same saturating_sub and checked isize subtraction, and stops on the same byte.
The retry helper makes the same first 19-digit call, tests the same threshold,
makes the same one-byte rebase and second call in the alternate branch,
computes the same offset with the same sign, casts it to i64, and performs the
same checked addition of exp_number last.  Thus any large-input panic is
preserved rather than excluded.

upstream/dec2flt/decimal_seq.rs:226-295 versus
crate/dec2flt/decimal_seq.rs:284-359 replaces literal split_first patterns by
nonempty index tests.  The leading-zero scans, optional decimal point, optional
exponent marker, optional exponent sign, and suffixes occur in the same order.
The crate's exp_sign*exp_num equals the source choice between exp_num and
-exp_num because exp_num is bounded by the unchanged 0x10000 guard; the final
decimal_point checked addition is in the same position.  Casts of lengths to
i32 and every subsequent checked update remain unchanged, including their
large-input behavior.

Delayed returns
---------------

upstream/dec2flt/decimal_seq.rs:173-198 versus
crate/dec2flt/decimal_seq.rs:176-203 replaces one return inside right_shift's
loop by all_zero=true, exits because !all_zero is the loop guard, and returns
immediately afterward.  No decimal_point, digit, index, or arithmetic update
occurs between the original and delayed return.

upstream/dec2flt/slow.rs:46-76 versus crate/dec2flt/slow.rs:46-94 replaces two
nested-loop returns by loop_result.  In the zero branch it records fp_zero,
skips the source-skipped exp2 addition, exits through is_none(), and returns.
In the infinity branch it records fp_inf, skips the source-skipped exp2
subtraction, exits, and returns.  On all other iterations it performs the same
shift, checked state changes, and exponent update.  Lines 95-126 after these
returns are otherwise the source lines 77-110 unchanged.

Dispatcher trace and public projection
--------------------------------------

upstream/dec2flt/mod.rs:209-256 is the whole original dispatcher.
crate/dec2flt/mod.rs:285-349 declares trace data only, lines 352-505 execute the
instrumented dispatcher, and lines 507-520 define public dec2flt as its first
projection.  Comparing the bodies gives the following branch-by-branch
correspondence.

* Both call as_bytes, inspect the first byte, reject empty input before a helper,
  remove at most one sign, and reject a sign-only body.  The trace stores the
  already obtained body and Boolean sign.
* Both call parse_number first on that exact body.  Only None calls
  parse_inf_nan on the same body and sign.  Its Some is returned directly and
  its None returns invalid.  The trace stores those existing Option values.
* Both overwrite only Decimal.negative, test the same compile-time
  !optimize_for_size condition, call try_fast_path once, and return its Some
  directly.  The trace stores the copied Decimal and Option; Decimal is Copy.
* Both call compute_float first with num.exponent and num.mantissa.  The crate's
  second_compute_guard is exactly the first two conjuncts of the source
  short-circuit.  Therefore the checked mantissa+1 and second compute_float call
  occur under precisely the source guard, in the same order.  The same pair
  comparison either retains fp or changes only p_biased to -1.
* Both test the post-comparison p_biased<0 once, call parse_long_mantissa on the
  unchanged body exactly when true, and otherwise retain the same pair.  The
  trace records both guard and result without another helper call.
* The extra assembled_word expression is the same cast, shift, and OR performed
  by biased_fp_to_float at upstream lines 202-206 and crate lines 278-282; these
  integer operations neither panic nor mutate fp.  Both then call assembly once
  on the selected pair and apply unary negation exactly when num.negative.
  Public dec2flt returns the identical Result first component.

Consequently the trace does not infer uncomputed data: it records the exact
variant; sign-stripped body and sign; numeric/special Options; fast-path input
and result; first and conditional second integer operands and results;
comparison, forced-deferral and post-comparison pair; slow guard and result;
selected pair; assembled word; pre-sign assembly word; sign-application fact;
and final word.  Special and native direct returns create no selected pair.
All source call order, guards, checked arithmetic, mutable-state transitions,
panic points, and returned Result/F64 observations remain in place.

F64-only restriction
--------------------

crate/traits.rs:187-307 and crate/dec2flt/mod.rs:140-215 add cfg(any()) to the
f16/f32 Float, FloatExt, and Lemire implementations.  crate/traits.rs:59-64
retains only u64 Int.  The retained f64 implementations are
crate/traits.rs:309-360 and crate/dec2flt/mod.rs:217-264.  Every goal-facing
function remains generic in the source and extraction, but each pursued source
subject specializes it to f64, whose associated integer is u64.  There is no
dynamic format dispatch, so removing other impl blocks cannot change an f64
call, its native decision, checks, result word, NaN classification, fields, or
trace.  The fresh boundary inventory in setup-reproduction.txt confirms that
no removed-format external remains.

Conclusion
----------

The inventory is exhaustive: three supplied files are identical, seven have
all hunks classified above, and the four added files are the package shell.
For the configured f64 specialization, the adapted crate has the same input
domains, branch order, guards, checked/wrapping distinction, state transitions,
panic versus normal behavior, and public/helper observations as the supplied
source.  The only new observations are the trace fields, each copied from an
existing value or computed by the same pure assembly expression.  This
conclusion is independent of whether any parser-correctness GOAL is true.
Assumptions / kernel axioms
  • Classical.choice
  • Quot.sound
  • propext

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (3)

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourcecommitted_node_kinds / pv_tablet.json
Kindauthored definition
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:883578e52dffe87c7be56336f6809c86e9b47be5df03e0a53d1805c01d74a482
Preservation current fingerprintpreservation-v1:883578e52dffe87c7be56336f6809c86e9b47be5df03e0a53d1805c01d74a482
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"5323875255f7b1447838e3a888a046c3cf4bf88837b77a8d771d654aa32b45a3","lean_semantic_closure":"519b5b5eb6682c376387d29f289a4161135ef89603c3d23268c3ba9b2efa83a4","lean_relevant_definition_descendants":{"DecimalSeqExponentEval":"56933497f246cae2b24908bf1c98672fdd085b320e4cecdda421d4adb7f5bb51"},"lean_relevant_dependencies":["DecimalSeqExponentEval","num_imp_dec2flt_decimal_seq_DecimalSeq","num_imp_dec2flt_decimal_seq_DecimalSeq_MAX_DIGITS","num_imp_dec2flt_decimal_seq_DecimalSeq_MAX_DIGITS_WITHOUT_OVERFLOW","num_imp_dec2flt_decimal_seq_count_trailing_zeros","num_imp_dec2flt_decimal_seq_parse_decimal_exponent","num_imp_dec2flt_decimal_seq_parse_decimal_seq"],"preamble_tex":""}
Correspondence current fingerprint{"own_tex":"5323875255f7b1447838e3a888a046c3cf4bf88837b77a8d771d654aa32b45a3","lean_semantic_closure":"519b5b5eb6682c376387d29f289a4161135ef89603c3d23268c3ba9b2efa83a4","lean_relevant_definition_descendants":{"DecimalSeqExponentEval":"56933497f246cae2b24908bf1c98672fdd085b320e4cecdda421d4adb7f5bb51"},"lean_relevant_dependencies":["DecimalSeqExponentEval","num_imp_dec2flt_decimal_seq_DecimalSeq","num_imp_dec2flt_decimal_seq_DecimalSeq_MAX_DIGITS","num_imp_dec2flt_decimal_seq_DecimalSeq_MAX_DIGITS_WITHOUT_OVERFLOW","num_imp_dec2flt_decimal_seq_count_trailing_zeros","num_imp_dec2flt_decimal_seq_parse_decimal_exponent","num_imp_dec2flt_decimal_seq_parse_decimal_seq"],"preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "6866b37b1968c4fbf3c148f08aa9a9fc700593e61f4e13b82e031742386c762b",
    "dep_statement_hashes": {
      "DecimalSeqExponentEval": "8bb3e941e5ed894925ff9cde6ffafd9a193ac793f5b58b4003ae0caa48c26cc4",
      "num_imp_dec2flt_decimal_seq_DecimalSeq_MAX_DIGITS": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "num_imp_dec2flt_decimal_seq_count_trailing_zeros": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "num_imp_dec2flt_decimal_seq_parse_decimal_seq": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    },
    "combined_sound_fp": "preservation-v1:883578e52dffe87c7be56336f6809c86e9b47be5df03e0a53d1805c01d74a482"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Captured evidence identities
[
  {
    "path": "extraction-evidence/COMMAND.json",
    "sha256": "5f26225136b8c7c4d7f95615e3e8ff8b357e523eeada4bc649e50f9c76cb9bda",
    "cited_by": [
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "extraction-evidence/RESULT.json",
    "sha256": "31059e900d9ee03a54504c1dd3560a943d6c0f883fba737163b1ca0cb40065b0",
    "cited_by": [
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "reference/model-evidence/adaptation-constants-probe.rs",
    "sha256": "b5a4a2cba0c08053cb9a816adb1ba5dbd160bf3928bdf5ccf56b7ae83aaa2aa5",
    "cited_by": [
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-boundary.txt",
    "sha256": "fa45c924747337e8d6f84a19fe9e83fb9b33c73434887c0cf57c062533f51fe1",
    "cited_by": [
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-probe.rs",
    "sha256": "68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e",
    "cited_by": [
      "reference/model-evidence/binary64-boundary.txt"
    ]
  },
  {
    "path": "reference/model-evidence/native-boundary.txt",
    "sha256": "fa0d69e4a434007e6ee675380fc13f98e22655b7faa77cdc5216d4af4356438f",
    "cited_by": [
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "reference/model-evidence/setup-reproduction.txt",
    "sha256": "209bc94a47b1b905a2a7b1fea229c759e6250becbd353fe4eadc7bc49be7742c",
    "cited_by": [
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-adaptation-delta.diff",
    "sha256": "fdf88cabfe40ce962d2bd5eda22eb5b3cbbf8a936a81b896e98698bf472cd0e4",
    "cited_by": [
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-adaptation-delta.txt",
    "sha256": "3c1483d48286a82484eba249a5434936e1a33a08f4e99ec0e3a03ce9bb0ecd9b",
    "cited_by": [
      "Tablet/DecimalSeqFractionalFinish.tex",
      "committed_node_kinds / pv_tablet.json"
    ]
  }
]

DispatchContracts

Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Tablet.DecimalGoalVocabularyDefault
import Tablet.SourceValidByteSlice
import Tablet.num_imp_dec2flt_common_BiasedFp
import Tablet.num_imp_dec2flt_decimal_Decimal

open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false

namespace dec2flt_model

-- [TABLET NODE: DispatchContracts]
structure DispatchContracts where
-- BODY
  stripSign : List Nat -> Option (Option Bool × List Nat)
  parseNumber : List Nat -> Option num.imp.dec2flt.decimal.Decimal
  parseSpecial : List Nat -> Bool -> Option F64
  native : num.imp.dec2flt.decimal.Decimal -> Option F64
  incrementMantissa : Std.U64 -> Option Std.U64
  integer : Std.I64 -> Std.U64 -> num.imp.dec2flt.common.BiasedFp
  samePair : num.imp.dec2flt.common.BiasedFp ->
    num.imp.dec2flt.common.BiasedFp -> Bool
  forceDefer : num.imp.dec2flt.common.BiasedFp ->
    num.imp.dec2flt.common.BiasedFp
  slow : List Nat -> num.imp.dec2flt.common.BiasedFp
  assemble : num.imp.dec2flt.common.BiasedFp -> F64
  applySign : Bool -> F64 -> F64
  recordRepresents : num.imp.dec2flt.decimal.Decimal -> DecimalLexeme -> Prop
  flow : List Nat -> Option F64 -> Prop
  stripSign_exact : ∀ s,
    DecimalGoalVocabularyDefault.sourceString s ->
    stripSign (DecimalGoalVocabularyDefault.bytes s) =
      match DecimalGoalVocabularyDefault.bytes s with
      | [] => none
      | 43 :: body =>
          if body = [] then none else some (some false, body)
      | 45 :: body =>
          if body = [] then none else some (some true, body)
      | body => some (none, body)
  stripSign_none : ∀ s,
    DecimalGoalVocabularyDefault.sourceString s ->
    stripSign (DecimalGoalVocabularyDefault.bytes s) = none ->
    DecimalGoalVocabularyDefault.classifies
      (DecimalGoalVocabularyDefault.bytes s) none
  stripSign_some : ∀ s sign body,
    DecimalGoalVocabularyDefault.sourceString s ->
    stripSign (DecimalGoalVocabularyDefault.bytes s) = some (sign, body) ->
    body ≠ [] ∧
    (∃ bodySlice : Slice Std.U8,
      SourceValidByteSlice bodySlice ∧
      DecimalGoalVocabularyDefault.bytes bodySlice = body) ∧
    (∀ x,
      (DecimalGoalVocabularyDefault.classifies
          (DecimalGoalVocabularyDefault.bytes s) (some (Sum.inl x)) ↔
        ∃ unsigned,
          unsigned.leadingSign = none ∧
          DecimalGoalVocabularyDefault.validNumeric unsigned ∧
          DecimalGoalVocabularyDefault.renderNumeric unsigned = body ∧
          x = { unsigned with leadingSign := sign })) ∧
    (∀ specialSign nan,
      (DecimalGoalVocabularyDefault.classifies
          (DecimalGoalVocabularyDefault.bytes s)
          (some (Sum.inr (specialSign, nan))) ↔
        specialSign = sign ∧
          DecimalGoalVocabularyDefault.specialLiteral body none nan))
  parseNumber_spec : ∀ (body : Slice Std.U8) d,
    SourceValidByteSlice body ->
    body.val ≠ [] ->
    (parseNumber (DecimalGoalVocabularyDefault.bytes body) = some d ↔
      ∃ x,
        x.leadingSign = none ∧
        DecimalGoalVocabularyDefault.validNumeric x ∧
        DecimalGoalVocabularyDefault.renderNumeric x =
          DecimalGoalVocabularyDefault.bytes body ∧
        recordRepresents d x)
  parseNumber_complete : ∀ (body : Slice Std.U8) x,
    SourceValidByteSlice body ->
    body.val ≠ [] ->
    x.leadingSign = none ->
    DecimalGoalVocabularyDefault.validNumeric x ->
    DecimalGoalVocabularyDefault.renderNumeric x =
      DecimalGoalVocabularyDefault.bytes body ->
    ∃ d,
      parseNumber (DecimalGoalVocabularyDefault.bytes body) = some d ∧
        recordRepresents d x
  recordRepresents_spec : ∀ d x, recordRepresents d x ->
    d.negative = false ∧ d.mantissa.val < 10 ^ 19 ∧
      (if d.many_digits then
        DecimalGoalVocabularyDefault.decimalMagnitude d <=
            DecimalGoalVocabularyDefault.accumulatedMagnitude x ∧
          DecimalGoalVocabularyDefault.accumulatedMagnitude x <
            (((d.mantissa.val + 1 : Nat) : Real) *
              (10 : Real) ^ d.exponent.val)
       else
        DecimalGoalVocabularyDefault.decimalMagnitude d =
          DecimalGoalVocabularyDefault.accumulatedMagnitude x)
  parseSpecial_sound : ∀ (body : Slice Std.U8) negative f,
    SourceValidByteSlice body ->
    parseSpecial (DecimalGoalVocabularyDefault.bytes body) negative = some f ->
      ∃ nan,
        DecimalGoalVocabularyDefault.specialLiteral
          (DecimalGoalVocabularyDefault.bytes body) none nan ∧
          (if nan then DecimalGoalVocabularyDefault.isNan f
           else DecimalGoalVocabularyDefault.isInfinity negative f)
  parseSpecial_complete : ∀ (body : Slice Std.U8) negative nan,
    SourceValidByteSlice body ->
    DecimalGoalVocabularyDefault.specialLiteral
      (DecimalGoalVocabularyDefault.bytes body) none nan ->
    ∃ f,
      parseSpecial (DecimalGoalVocabularyDefault.bytes body) negative = some f ∧
        (if nan then DecimalGoalVocabularyDefault.isNan f
         else DecimalGoalVocabularyDefault.isInfinity negative f)
  parseSpecial_reject : ∀ (body : Slice Std.U8) negative,
    SourceValidByteSlice body ->
    (¬ ∃ nan, DecimalGoalVocabularyDefault.specialLiteral
      (DecimalGoalVocabularyDefault.bytes body) none nan) ->
    parseSpecial (DecimalGoalVocabularyDefault.bytes body) negative = none
  native_spec : ∀ d f, native d = some f ->
    d.many_digits = false ∧
      ∃ magnitude,
        DecimalGoalVocabularyDefault.roundsMagnitude
            (DecimalGoalVocabularyDefault.decimalMagnitude d) magnitude ∧
          magnitude.val < 2 ^ 63 ∧
          f = applySign d.negative magnitude
  incrementMantissa_spec : ∀ w,
    w.val < 10 ^ 19 ->
      ∃ w', incrementMantissa w = some w' ∧ w'.val = w.val + 1
  integer_spec : ∀ q w,
    let fp := integer q w
    fp.p_biased.val < 0 ∨
      (0 <= fp.p_biased.val ∧ fp.p_biased.val <= 2047 ∧
        DecimalGoalVocabularyDefault.roundsMagnitude
          ((w.val : Real) * (10 : Real) ^ q.val) (assemble fp) ∧
        (assemble fp).val < 2 ^ 63)
  samePair_spec : ∀ a b, samePair a b = true ↔ a = b
  recordTarget_spec : ∀ d x, recordRepresents d x ->
    (d.many_digits = false ->
      ∀ target,
        (DecimalGoalVocabularyDefault.roundsMagnitude
            (DecimalGoalVocabularyDefault.decimalMagnitude d) target ↔
          DecimalGoalVocabularyDefault.roundsMagnitude
            (DecimalGoalVocabularyDefault.exactMagnitude x) target)) ∧
    (d.many_digits = true ->
      ∀ nextMantissa,
        incrementMantissa d.mantissa = some nextMantissa ->
        samePair (integer d.exponent d.mantissa)
            (integer d.exponent nextMantissa) = true ->
        DecimalGoalVocabularyDefault.roundsMagnitude
          (DecimalGoalVocabularyDefault.exactMagnitude x)
          (assemble (integer d.exponent d.mantissa)))
  forceDefer_spec : ∀ fp,
    (forceDefer fp).m = fp.m ∧ (forceDefer fp).p_biased.val = -1
  slow_spec : ∀ (body : Slice Std.U8) x,
    SourceValidByteSlice body ->
    x.leadingSign = none ->
    DecimalGoalVocabularyDefault.validNumeric x ->
    DecimalGoalVocabularyDefault.renderNumeric x =
      DecimalGoalVocabularyDefault.bytes body ->
    let fp := slow (DecimalGoalVocabularyDefault.bytes body)
    0 <= fp.p_biased.val ∧ fp.p_biased.val <= 2047 ∧
      DecimalGoalVocabularyDefault.roundsMagnitude
        (DecimalGoalVocabularyDefault.accumulatedMagnitude x) (assemble fp) ∧
      (assemble fp).val < 2 ^ 63
  slowTarget_spec : ∀ (body : Slice Std.U8) x,
    SourceValidByteSlice body ->
    x.leadingSign = none ->
    DecimalGoalVocabularyDefault.validNumeric x ->
    DecimalGoalVocabularyDefault.renderNumeric x =
      DecimalGoalVocabularyDefault.bytes body ->
    DecimalGoalVocabularyDefault.roundsMagnitude
      (DecimalGoalVocabularyDefault.exactMagnitude x)
      (assemble (slow (DecimalGoalVocabularyDefault.bytes body)))
  assembly_spec : ∀ fp,
    DecimalGoalVocabularyDefault.assembledWord fp (assemble fp)
  sign_spec : ∀ negative magnitude, magnitude.val < 2 ^ 63 ->
    DecimalGoalVocabularyDefault.signedMagnitude
      negative magnitude (applySign negative magnitude)
  flow_spec : ∀ s out,
    DecimalGoalVocabularyDefault.sourceString s ->
    (flow (DecimalGoalVocabularyDefault.bytes s) out ↔
      match stripSign (DecimalGoalVocabularyDefault.bytes s) with
      | none => out = none
      | some (sign, body) =>
          let negative : Bool := decide (sign = some true)
          match parseNumber body with
          | none => out = parseSpecial body negative
          | some parsed =>
              let signedParsed := { parsed with negative := negative }
              match native signedParsed with
              | some f => out = some f
              | none =>
                  let first := integer parsed.exponent parsed.mantissa
                  let secondGuard : Bool :=
                    parsed.many_digits && decide (0 <= first.p_biased.val)
                  let postComparison :=
                    if secondGuard then
                      match incrementMantissa parsed.mantissa with
                      | none => forceDefer first
                      | some nextMantissa =>
                          let second := integer parsed.exponent nextMantissa
                          if samePair first second then first else forceDefer first
                    else first
                  let selected :=
                    if decide (postComparison.p_biased.val < 0) then slow body
                    else postComparison
                  out = some (applySign negative (assemble selected)))

end dec2flt_model

Why this model is faithful

Definition

A dispatcher contract package consists of operations for sign stripping, numeric and special lexical parsing, the native shortcut, checked increment of the truncated mantissa, integer-tier conversion, raw-pair comparison and forced deferral, the slow fallback, raw-pair assembly, and lexical-sign application. It also has a relation saying when a parsed decimal record represents an unsigned numeric lexeme and an explicit dispatcher-flow relation. Source-valid Rust strings, their byte lists, numeric and special grammars and classification, decimal magnitudes, rounding targets, NaN and infinity predicates, raw-pair assembly, and signed magnitudes have exactly the meanings in DecimalGoalVocabularyDefault; source-valid byte-slice carriers have the meaning in SourceValidByteSlice.
On the bytes of every source-valid Rust string, sign stripping has the following exact behavior. The empty byte list returns none. A leading ASCII + is removed and records the optional Boolean sign \operatorname{some}(\mathit{false}), while a leading ASCII - is removed and records \operatorname{some}(\mathit{true}); either case returns none when the remainder is empty and otherwise returns that exact nonempty remainder as the body. Every other nonempty byte list is returned unchanged as the body with no leading sign. Failed sign stripping classifies the input as invalid. Successful sign stripping produces a nonempty body, the same optional leading sign, and a source-valid Rust byte-slice carrier for exactly that body. The original string's bytes are classified by a numeric lexeme x exactly when there is a valid unsigned lexeme whose rendering is the body and whose complete record becomes x upon replacing its absent leading sign by that exact optional sign. They are classified by a special kind with an optional sign exactly when that sign is the stripped sign and the body is the corresponding unsigned special literal. Thus sign stripping preserves the complete numeric, special, and invalid classification on precisely the source-string domain: empty and sign-only inputs cannot invent a helper body, whereas every other nonempty invalid input reaches the lexical helpers on the exact body just described.
On every nonempty source-valid Rust byte slice, with no UTF-8 premise, numeric completeness says that each valid unsigned numeric lexeme rendering the slice has some returned record that represents it. On that same nonempty domain, per-result correctness says that a particular record is returned exactly when it represents some such lexeme. Special parsing is instead split into three clauses on every source-valid Rust byte slice, including the empty slice. Every returned value is supported by an unsigned special literal and is a NaN for nan or the infinity selected by the separate sign argument for inf and infinity. Conversely, each unsigned special literal has some returned value satisfying its corresponding predicate; this existential does not choose one NaN representation and equate it with all NaNs. When there is no unsigned special literal, the parser returns none. A represented record is nonnegative, has mantissa below 10^{19}, and either denotes the input's accumulated- exponent magnitude when no digits were truncated or brackets that diagnostic magnitude between the values obtained from its mantissa and from mantissa plus one. A distinct target-preservation clause says that a nontruncated record has the same rounding targets as the exact input and that agreement of the two many-digit endpoint pairs gives an exact-input rounding target.
The native contract says that a successful shortcut is possible only without truncated digits and is obtained by applying the package's sign operation to a clear-sign binary64 magnitude rounding the record's value. The integer-tier contract says that its raw pair either has a negative biased exponent, denoting deferral, or has biased exponent in 0\ldots2047 and assembles to a clear-sign rounding of the supplied w10^q. Increment succeeds on every parser-bounded mantissa and produces its mathematical successor. Pair comparison is exact; forced deferral preserves the mantissa and sets the biased exponent to -1. On each source-valid byte slice, the slow contract assembles to a clear-sign accumulated-value rounding of the full unsigned numeric lexeme; its distinct target-preservation clause records the exact-input target required by dispatcher composition. Assembly has exactly the specified raw-pair word, while the sign operation alone applies the requested sign to a clear-sign magnitude.
On bytes of a source-valid Rust string, the flow relation is fixed, not chosen independently. It strips the optional leading sign and parses the nonempty source-valid byte-slice body. Numeric records have their sign field overwritten by the lexical sign and first try the native shortcut. On deferral it calls the integer tier on the record exponent and mantissa. Exactly when digits were truncated and the first pair is nondeferred, it safely increments the mantissa and makes the second integer-tier call; unequal pairs force deferral and equal pairs retain the first. A negative post-comparison exponent selects the slow result on the unchanged body, otherwise the post-comparison pair is retained. The selected pair is assembled and only then is the lexical sign applied. Failure of numeric parsing instead invokes the special parser, and failure of both lexical helpers is the invalid result.

Preservation argument

Claim

The dispatcher contract package is an abstract interface whose laws use the source-valid Rust-string domain for sign stripping and whole-dispatch flow, the nonempty source-valid Rust byte-slice domain for the numeric helper, and the full source-valid Rust byte-slice domain, including the empty slice, for the special helper. The slow-helper laws retain their stated source-valid slice plus valid unsigned-numeric-rendering premises, which already entail nonemptiness and are not strengthened here. Its sign/body equation, flow equation, and separate helper operations have the same branch order, call boundaries, and intermediate observations as the frozen f64 dispatcher. The laws distinguish numeric completeness from per-result correctness; special per-result soundness from existential completeness and rejection; and record, target, native, integer, fallback, assembly, and sign properties from one another. These are conditions on every package value, not claims already established for the extracted helpers. Agreement of the actual helpers with a package, their normal returns, and their satisfaction of all those laws remain precisely the separate dispatch_component_compliance obligation.

Proof

The meanings of source-valid strings and their bytes, grammar and classification, decimal magnitudes, rounding observations, special values, raw-pair assembly, and signed magnitudes are fixed independently by DecimalGoalVocabularyDefault. A Rust str is UTF-8 and has length at most isize::MAX; after removal of at most one leading byte, the remaining source subslice still satisfies the length bound. Helper inputs need not themselves be UTF-8. This is exactly the distinction expressed by SourceValidByteSlice.
The frozen source checks emptiness, removes at most one leading ASCII sign, rejects a resulting empty body, calls the numeric parser before the special parser, and then orders the native, integer, comparison/deferral, slow, assembly, and sign stages as stated. The adapted dispatcher records the same body, guards, calls, and results, and the public function is the first projection of that single traced computation. The extracted body retains those matches and calls and its assembly-trace structure retains the named observations. The exact excerpts, hashes, and reproduction commands are in reference/model-evidence/dispatch-contracts.txt. This evidence justifies the interface's decomposition and the trace-preserving adaptation. It does not establish any lexical or conversion helper specification merely from the fact that a call occurs.
The invalid branch illustrates what follows from the abstract laws themselves. Fix any package satisfying the displayed fields, a source-valid string s classified as invalid, and suppose sign stripping succeeds with sign \mathit{sign} and body \mathit{body}. The package's stripSign_some law supplies both \mathit{body}\ne[] and a source-valid body-slice witness whose bytes are exactly \mathit{body}, together with the two classification equivalences. The byte observation in DecimalGoalVocabularyDefault maps every represented slice element and therefore preserves list length. Thus equality of the witness's observed bytes with the nonempty \mathit{body} implies that the witness's carrier list is nonempty. Because invalid classification in DecimalGoalVocabularyDefault excludes every numeric and special classification, those equivalences exclude both a valid unsigned numeric lexeme rendering \mathit{body} and an unsigned special-literal witness on \mathit{body}.
Now case-split the package operation parseNumber on that body. If it were some of a record, parseNumber_spec, applied to the body-slice witness with the just-established nonemptiness premise, would produce a valid unsigned numeric lexeme rendering that body, contradicting the preceding exclusion. Hence it is none. The absence of an unsigned special witness and parseSpecial_reject then give none for the special parser at the Boolean sign determined from \mathit{sign}. Substitution in flow_spec gives the abstract invalid result. If sign stripping is none, stripSign_none gives invalid classification and flow_spec gives the same abstract result directly. Thus this derivation holds for every package satisfying its laws; it neither proves a normal return by the extracted dispatcher nor proves that the extracted helpers satisfy those laws.
All remaining semantic clauses have the same status. Numeric completeness is separate from the per-result equivalence, and both range over exactly the nonempty source-valid slice domain; special returned-value soundness, per-literal existential completeness, and rejection are separate; and record, exact-target, native, integer, slow, assembly, and sign facts are separate package laws. Consequently the package does not assume either dispatcher's combined conclusion. Establishing these laws for the concrete extracted operations, and connecting their normal returns and trace observations to this abstract flow, remains the unresolved concrete-compliance theorem.
Authored arguments for individual requirements

Requirement: parser totality

For a package satisfying the laws, flow_spec exposes an output in every abstract branch on the full source-string domain. This relational totality does not establish normal termination of the extracted dispatcher; that requires the separate concrete-compliance argument.

Requirement: parser numeric acceptance

For any law-satisfying package, successful sign stripping supplies a nonempty source-valid body-slice witness, so the sign/body classification equivalence and parseNumber_complete place a valid numeric body in the numeric arm of the explicit flow. Agreement and normal return of the extracted numeric parser and dispatcher remain concrete-compliance obligations.

Requirement: parser invalid rejection

For every package satisfying the laws, failed stripping selects the abstract invalid result directly. After successful stripping, the explicit argument above obtains the numeric contract's nonempty body-slice premise from stripSign_some, then uses invalid classification, the two classification equivalences, a case split on parseNumber, parseNumber_spec, parseSpecial_reject on its unchanged all-slices domain, and flow_spec to obtain that same abstract result. It does not assume that the concrete helpers comply or that the extracted dispatcher returns normally with Err.

Requirement: parser nan acceptance

Within a law-satisfying package, special completeness supplies some NaN result and flow_spec returns it directly, without selecting a NaN representation in advance or invoking raw-pair assembly. Concrete parser agreement is not supplied by this definition.

Requirement: parser infinity

Within a law-satisfying package, special completeness supplies a directly returned infinity satisfying the separate lexical sign argument. The corresponding behavior of the extracted helper remains to be established by concrete compliance.

Requirement: parser non nan results

Special per-result soundness in a law-satisfying package distinguishes NaN from the two infinity spellings, while numeric results pass through separate conversion clauses. Deriving the no-spurious-NaN conclusion and transferring it to the extracted dispatcher are not assumptions of this interface.

Requirement: parser numeric sign

The package interface gives the native helper the sign-overwritten record and separates all assembled magnitudes from the final sign operation exactly as the flow requires. Its sign law is conditional package data, and concrete agreement remains a separate obligation.

Requirement: parser signed zero

The magnitude bounds and separate sign law of any satisfying package retain the distinction between positive and negative zero. The interface does not assert that the extracted conversion tiers or negation satisfy those laws.

Requirement: parser exact rounding

For a law-satisfying package, exact rounding must be derived by composing record-target preservation with the selected native, endpoint, or slow tier; it is not a premise about the whole dispatcher. Concrete helper satisfaction is left to compliance.

Requirement: parser selected exponent

The integer and slow laws retain each abstract selected pair and its biased exponent before assembly. Whether the extracted helpers return matching pairs is not established here.

Requirement: parser selected magnitude sign

The package's assembly and sign clauses are separate, so abstract composition can establish the clear sign bit before lexical sign application. The corresponding concrete assembly behavior remains a compliance obligation.

Requirement: dispatch abstract composition

This is precisely the interface quantified over by the abstract-composition obligation: its conclusion concerns arbitrary packages satisfying all displayed laws. The exact sign/body equation establishes nonemptiness before every numeric call and supplies the corresponding source-valid slice witness; numeric completeness on that domain and the explicit flow make the conditional composition nonvacuous without claiming that the extracted helpers already instantiate the interface. Special parsing remains specified on every source-valid slice.

Requirement: dispatch component compliance

This definition states the package that concrete compliance must instantiate. The source and extraction evidence fixes the numeric helper's nonempty source-valid domain, the special helper's all-source-valid-slices domain, the slow helper's valid-rendering domain, and the relevant branches, calls, and trace observations; every numeric call follows the dispatcher's empty-body rejection. Normal returns, equality with the package operations, and satisfaction of every semantic law by the actual extracted helpers remain the unresolved positive obligation.

Requirement: parser accumulated rounding

For a satisfying package, the record interval and slow-path clauses refer to the accumulated target independently of the exact-target clauses. Applying them to concrete extracted results still requires compliance.

Requirement: parser equal target rounding

A satisfying package keeps component magnitudes and lexical sign separate, allowing an independently established equality of targets to be transported through the abstract selected tier. No equality for the concrete result is assumed.

Requirement: number helper acceptance

On the exact nonempty source-valid byte-slice domain stated by the GOAL, parseNumber_complete requires the abstract operation to return some record for every unsigned numeric body. It identifies the applicable contract clause but does not establish normal return or that parse_number equals that operation.

Requirement: number helper rejection

For a satisfying package, case-splitting parseNumber and applying parseNumber_spec rules out a some result on a nonnumeric nonempty source-valid slice, without adding UTF-8. Equality and normal return of the extracted numeric helper remain concrete-compliance obligations.

Requirement: number helper record bounds

For a satisfying package and every nonempty source-valid slice, parseNumber_spec turns an abstract returned record into a representation witness and recordRepresents_spec gives false sign and the strict 10^{19} bound. Applying this chain to an extracted return requires the separate equality promised by compliance.

Requirement: number helper accumulated value

Every valid unsigned numeric rendering is nonempty, so it lies in the numeric parser contract's nonempty source-valid domain. The representation law of a satisfying package keeps the nontruncated accumulated-value equality and truncated half-open interval distinct. It is a clause to be proved for, not inferred from, the concrete parser call.

Requirement: special helper infinity

On every source-valid byte slice, parseSpecial_complete requires an abstract returned infinity with the separate sign argument, while soundness constrains abstract successful results. This identifies the package clauses; it does not prove the extracted special helper's normal return or agreement.

Requirement: special helper nan

On every source-valid byte slice, parseSpecial_complete requires some abstract NaN result and soundness constrains returned values without equating all NaN representations. Concrete helper satisfaction remains separate.

Requirement: special helper rejection

The rejection law requires the abstract special operation to be none outside all three unsigned keywords on the source-valid byte-slice domain. It does not itself establish that result for the extracted helper.

Requirement: native correct or defer

The native law constrains every abstract some result to a nontruncated record-value rounding with sign factored through applySign; none remains deferral. Its application to a normal extracted native return depends on concrete compliance.

Requirement: integer correct or defer

The integer law covers all abstract machine exponent and mantissa inputs and retains the negative-exponent deferral alternative. It is the corresponding contract clause, not evidence that the extracted integer helper satisfies it.

Requirement: slow accumulated rounding

On source-valid unsigned-numeric slices, slow_spec constrains the abstract slow operation on the unchanged full body to the accumulated-value target and a separately assembled magnitude. Normal return and equality for the extracted slow helper remain concrete-compliance obligations.

Requirement: assembly correspondence

The assembly law applies to every abstract raw pair without a well-formedness precondition and is independent of later sign application. The actual extracted assembly operation must still be shown equal to this package operation.

Requirement: classification totality

The package reuses the standalone classification relation on every finite byte string. Restricting source-facing package laws to representable Rust values neither proves nor narrows the separate classification-totality obligation.

Requirement: classification determinism

The package uses the existing unrestricted classification relation and adds no competing grammar or uniqueness premise. The standalone determinism conclusion remains to be proved independently.

Requirement: classification significand digit

Abstract numeric-parser clauses use the existing valid-lexeme predicate, so they do not change its significand-digit condition or assume the separate theorem's conclusion.

Requirement: rounding totality

The package consumes the existing rounding relation and does not change its real-number domain or binary64 targets; existence of targets remains the separate mathematical obligation.

Requirement: rounding determinism

Endpoint and tier laws use the same existing rounding relation, introducing neither an alternative target notion nor an assumed uniqueness result.

Requirement: exponent value agreement

The package keeps mathematical and accumulated explicit exponents distinct. Any agreement and its rounding consequence remain independent of the component laws.

Recorded review

CorrespondencePass
PreservationVerifierPass

DispatchContracts · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/dispatch-contracts.txt

Open file

Dispatcher contract and trace evidence

Files inspected (SHA-256 from sha256sum 9.1):
  upstream/dec2flt/mod.rs
    7198e238c554b692405537a446b3526ad66805ec2900cd0e299f10c51402a44a
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  upstream/dec2flt/parse.rs
    9daf21ab9445a84552535152f376eef8c30f3d5827296c0645f5952d3b22bbf1
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  Tablet/num_imp_dec2flt_dec2flt_with_trace.lean
    fc6b6d0c31c801820e9e1981a1a777701b6a70dac0892b22ace44edbca4eeeb7
  Tablet/num_imp_dec2flt_Dec2FltAssemblyTrace.lean
    e1021975d4efe22771953025dd5145bc3f1305f2046a4cf20790ff9ff633c520

Reproduction commands:
  sha256sum upstream/dec2flt/mod.rs crate/dec2flt/mod.rs \
    upstream/dec2flt/parse.rs crate/dec2flt/parse.rs \
    Tablet/num_imp_dec2flt_dec2flt_with_trace.lean \
    Tablet/num_imp_dec2flt_Dec2FltAssemblyTrace.lean
  nl -ba upstream/dec2flt/mod.rs | sed -n '209,255p'
  nl -ba crate/dec2flt/mod.rs | sed -n '354,523p'
  nl -ba upstream/dec2flt/parse.rs | sed -n '198,242p'
  nl -ba crate/dec2flt/parse.rs | sed -n '240,284p'
  nl -ba Tablet/num_imp_dec2flt_dec2flt_with_trace.lean | sed -n '36,194p'
  nl -ba Tablet/num_imp_dec2flt_Dec2FltAssemblyTrace.lean | sed -n '31,52p'

Raw source observations:
  upstream lines 212-225 convert the string to bytes, strip at most one leading
  sign, reject an empty body, call parse_number first, and call parse_inf_nan
  only after parse_number returns None.

  upstream lines 227-232 overwrite Decimal.negative with the lexical sign and
  return a Some result from try_fast_path directly.

  upstream lines 238-249 call compute_float(exponent, mantissa), call
  compute_float(exponent, mantissa + 1) exactly when many_digits and the first
  biased exponent is nonnegative, set that exponent to -1 on disagreement, and
  replace every negative-exponent current pair with parse_long_mantissa(body).

  upstream lines 251-255 assemble the selected pair, negate only after
  assembly when Decimal.negative is true, and return the resulting float.

  upstream parse.rs lines 199-241 show the special helper's length branches,
  register construction and masking, keyword match, and final sign branch.
  They locate the helper body called by the dispatcher; this excerpt alone is
  not used to establish a DispatchContracts semantic law.

Raw adapted-source observations:
  crate lines 354-504 are the traced dispatcher.  Its sign/body and lexical
  branches are lines 364-403; the native call and direct return are lines
  405-421; and integer calls, comparison/deferral, slow fallback, assembly,
  final sign, and trace construction are lines 424-503.  These lines record
  branch order, call boundaries, and already-computed observations; they do not
  establish the semantic contracts of the called helpers.

  crate lines 506-523 define the public dispatcher as the first projection of
  the one traced implementation, with the projection call at line 522.

  crate parse.rs lines 241-283 retain that special-parser control structure:
  the same length split, case mask, three constants and matches, rejection
  branch, selected branch value, and final sign branch appear at lines 249-283.
  Concrete satisfaction of the abstract special-parser laws is not inferred
  from this syntactic comparison.

Raw extracted-model observations:
  num_imp_dec2flt_dec2flt_with_trace.lean lines 36-77 retain the sign-removal,
  empty/sign-only, parse_number, parse_inf_nan, invalid, and special branches.
  Lines 78-115 retain the native call, first integer call, exact second-call
  guard, checked U64 addition, second call, equality comparison, and exponent
  -1 update.  Lines 116-194 retain the slow replacement, Rust cast/shift/OR
  assembled word, biased_fp_to_float call, optional negation, and every trace
  field in both sign branches.

  num_imp_dec2flt_Dec2FltAssemblyTrace.lean lines 31-52 list, in order, the
  body and sign; parsed and fast-path values; first and second integer values;
  comparison and deferral values; post-comparison, slow, and selected pairs;
  and assembly, sign, and final-result values used by the paired contracts.

Scope of this evidence:
  The excerpts below support only branch order, helper call boundaries, the
  observations recorded by the trace, and the fact that public dec2flt projects
  the result of the single traced computation.  Seeing a helper call or its
  source body is not evidence that the extracted helper returns normally or
  satisfies a DispatchContracts semantic law.  Those facts belong to the
  separate dispatch_component_compliance obligation.

Captured excerpts (command output, with trailing whitespace removed):

--- upstream/dec2flt/mod.rs lines 209-255 ---
$ nl -ba upstream/dec2flt/mod.rs | sed -n '209,255p'
   209	/// Converts a decimal string into a floating point number.
   210	#[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
   211	pub fn dec2flt<F: Lemire>(s: &str) -> Result<F, ParseFloatError> {
   212	    let mut s = s.as_bytes();
   213	    let Some(&c) = s.first() else { return Err(pfe_empty()) };
   214	    let negative = c == b'-';
   215	    if c == b'-' || c == b'+' {
   216	        s = &s[1..];
   217	    }
   218	    if s.is_empty() {
   219	        return Err(pfe_invalid());
   220	    }
   221
   222	    let mut num = match parse_number(s) {
   223	        Some(r) => r,
   224	        None if let Some(value) = parse_inf_nan(s, negative) => return Ok(value),
   225	        None => return Err(pfe_invalid()),
   226	    };
   227	    num.negative = negative;
   228	    if !cfg!(feature = "optimize_for_size") {
   229	        if let Some(value) = num.try_fast_path::<F>() {
   230	            return Ok(value);
   231	        }
   232	    }
   233
   234	    // If significant digits were truncated, then we can have rounding error
   235	    // only if `mantissa + 1` produces a different result. We also avoid
   236	    // redundantly using the Eisel-Lemire algorithm if it was unable to
   237	    // correctly round on the first pass.
   238	    let mut fp = compute_float::<F>(num.exponent, num.mantissa);
   239	    if num.many_digits
   240	        && fp.p_biased >= 0
   241	        && fp != compute_float::<F>(num.exponent, num.mantissa + 1)
   242	    {
   243	        fp.p_biased = -1;
   244	    }
   245	    // Unable to correctly round the float using the Eisel-Lemire algorithm.
   246	    // Fallback to a slower, but always correct algorithm.
   247	    if fp.p_biased < 0 {
   248	        fp = parse_long_mantissa::<F>(s);
   249	    }
   250
   251	    let mut float = biased_fp_to_float::<F>(fp);
   252	    if num.negative {
   253	        float = -float;
   254	    }
   255	    Ok(float)

--- crate/dec2flt/mod.rs lines 354-523 ---
$ nl -ba crate/dec2flt/mod.rs | sed -n '354,523p'
   354	/// Run the actual dispatcher while retaining its approved internal observations.
   355	pub fn dec2flt_with_trace<
   356	    'a,
   357	    F: Lemire
   358	        + core::ops::Div<Output = F>
   359	        + core::ops::Mul<Output = F>
   360	        + core::ops::Neg<Output = F>,
   361	>(
   362	    s: &'a str,
   363	) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
   364	    let mut body = s.as_bytes();
   365	    let Some(&c) = body.first() else {
   366	        return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
   367	    };
   368	    let negative = c == b'-';
   369	    if c == b'-' || c == b'+' {
   370	        body = &body[1..];
   371	    }
   372	    if body.is_empty() {
   373	        return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
   374	    }
   375
   376	    let parse_number_result = parse_number(body);
   377	    let parsed = match parse_number_result {
   378	        Some(r) => r,
   379	        None => {
   380	            let parse_inf_nan_result = parse_inf_nan(body, negative);
   381	            return match parse_inf_nan_result {
   382	                Some(value) => (
   383	                    Ok(value),
   384	                    Dec2FltTrace::Special {
   385	                        body,
   386	                        negative,
   387	                        parse_number_result,
   388	                        parse_inf_nan_result,
   389	                        result: value,
   390	                    },
   391	                ),
   392	                None => (
   393	                    Err(pfe_invalid()),
   394	                    Dec2FltTrace::Invalid {
   395	                        body,
   396	                        negative,
   397	                        parse_number_result,
   398	                        parse_inf_nan_result,
   399	                    },
   400	                ),
   401	            };
   402	        }
   403	    };
   404
   405	    let mut num = parsed;
   406	    num.negative = negative;
   407	    if !cfg!(feature = "optimize_for_size") {
   408	        let fast_path_result = num.try_fast_path::<F>();
   409	        if let Some(value) = fast_path_result {
   410	            return (
   411	                Ok(value),
   412	                Dec2FltTrace::FastPath {
   413	                    body,
   414	                    negative,
   415	                    parse_number_result,
   416	                    fast_path_input: num,
   417	                    fast_path_result,
   418	                    result: value,
   419	                },
   420	            );
   421	        }
   422	    }
   423
   424	    let first_compute_exponent = num.exponent;
   425	    let first_compute_mantissa = num.mantissa;
   426	    let first_compute_result = compute_float::<F>(first_compute_exponent, first_compute_mantissa);
   427	    let mut fp = first_compute_result;
   428
   429	    // This expands the source short-circuit conjunction without moving the
   430	    // checked `mantissa + 1`: that addition and the second helper call still
   431	    // occur exactly when `many_digits && fp.p_biased >= 0`.
   432	    let second_compute_guard = num.many_digits && fp.p_biased >= 0;
   433	    let mut second_compute_exponent = None;
   434	    let mut second_compute_mantissa = None;
   435	    let mut second_compute_result = None;
   436	    let mut second_equals_first = None;
   437	    let mut forced_deferral = false;
   438	    if second_compute_guard {
   439	        let exponent = num.exponent;
   440	        let mantissa = num.mantissa + 1;
   441	        let second = compute_float::<F>(exponent, mantissa);
   442	        let equal = fp == second;
   443	        second_compute_exponent = Some(exponent);
   444	        second_compute_mantissa = Some(mantissa);
   445	        second_compute_result = Some(second);
   446	        second_equals_first = Some(equal);
   447	        if !equal {
   448	            fp.p_biased = -1;
   449	            forced_deferral = true;
   450	        }
   451	    }
   452	    let post_comparison_pair = fp;
   453
   454	    let slow_path_guard = fp.p_biased < 0;
   455	    let mut slow_path_result = None;
   456	    if slow_path_guard {
   457	        // The exact slow-path input is the trace's common `body`; the guard
   458	        // records whether this call occurred, avoiding a duplicate live slice
   459	        // reference that Aeneas cannot join across this branch.
   460	        let replacement = parse_long_mantissa::<F>(body);
   461	        slow_path_result = Some(replacement);
   462	        fp = replacement;
   463	    }
   464
   465	    let selected_pair = fp;
   466	    // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
   467	    // it neither changes the selected pair nor introduces a new branch or call.
   468	    let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
   469	    let assembly_result = biased_fp_to_float::<F>(fp);
   470	    let lexical_sign_applied = num.negative;
   471	    let result = if lexical_sign_applied {
   472	        core::ops::Neg::neg(assembly_result)
   473	    } else {
   474	        assembly_result
   475	    };
   476
   477	    (
   478	        Ok(result),
   479	        Dec2FltTrace::Assembled(Dec2FltAssemblyTrace {
   480	            body,
   481	            negative,
   482	            parse_number_result,
   483	            fast_path_input: num,
   484	            fast_path_result: None,
   485	            first_compute_exponent,
   486	            first_compute_mantissa,
   487	            first_compute_result,
   488	            second_compute_guard,
   489	            second_compute_exponent,
   490	            second_compute_mantissa,
   491	            second_compute_result,
   492	            second_equals_first,
   493	            forced_deferral,
   494	            post_comparison_pair,
   495	            slow_path_guard,
   496	            slow_path_result,
   497	            selected_pair,
   498	            assembled_word,
   499	            assembly_result,
   500	            lexical_sign_applied,
   501	            result,
   502	        }),
   503	    )
   504	}
   505
   506	/// Converts a decimal string into a floating point number.
   507	#[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
   508	pub fn dec2flt<
   509	    F: Lemire
   510	        + core::ops::Div<Output = F>
   511	        + core::ops::Mul<Output = F>
   512	        + core::ops::Neg<Output = F>,
   513	>(
   514	    s: &str,
   515	) -> Result<F, ParseFloatError> {
   516	    // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
   517	    // clause admits exactly the same instances and lets Charon resolve the
   518	    // explicit, source-equivalent final negation.
   519	    // The public function is now exactly the result projection of the single
   520	    // instrumented implementation.  No conversion step is duplicated, and
   521	    // discarding the trace cannot affect Rust evaluation or the returned bits.
   522	    dec2flt_with_trace::<F>(s).0
   523	}

--- upstream/dec2flt/parse.rs lines 198-242 ---
$ nl -ba upstream/dec2flt/parse.rs | sed -n '198,242p'
   198	/// Try to parse a special, non-finite float.
   199	pub(crate) fn parse_inf_nan<F: Float>(s: &[u8], negative: bool) -> Option<F> {
   200	    // Since a valid string has at most the length 8, we can load
   201	    // all relevant characters into a u64 and work from there.
   202	    // This also generates much better code.
   203
   204	    let mut register;
   205	    let len: usize;
   206
   207	    // All valid strings are either of length 8 or 3.
   208	    if s.len() == 8 {
   209	        register = s.read_u64();
   210	        len = 8;
   211	    } else if s.len() == 3 {
   212	        let a = s[0] as u64;
   213	        let b = s[1] as u64;
   214	        let c = s[2] as u64;
   215	        register = (c << 16) | (b << 8) | a;
   216	        len = 3;
   217	    } else {
   218	        return None;
   219	    }
   220
   221	    // Clear out the bits which turn ASCII uppercase characters into
   222	    // lowercase characters. The resulting string is all uppercase.
   223	    // What happens to other characters is irrelevant.
   224	    register &= 0xDFDFDFDFDFDFDFDF;
   225
   226	    // u64 values corresponding to relevant cases
   227	    const INF_3: u64 = 0x464E49; // "INF"
   228	    const INF_8: u64 = 0x5954494E49464E49; // "INFINITY"
   229	    const NAN: u64 = 0x4E414E; // "NAN"
   230
   231	    // Match register value to constant to parse string.
   232	    // Also match on the string length to catch edge cases
   233	    // like "inf\0\0\0\0\0".
   234	    let float = match (register, len) {
   235	        (INF_3, 3) => F::INFINITY,
   236	        (INF_8, 8) => F::INFINITY,
   237	        (NAN, 3) => F::NAN,
   238	        _ => return None,
   239	    };
   240
   241	    if negative { Some(-float) } else { Some(float) }
   242	}

--- crate/dec2flt/parse.rs lines 240-284 ---
$ nl -ba crate/dec2flt/parse.rs | sed -n '240,284p'
   240	/// Try to parse a special, non-finite float.
   241	pub(crate) fn parse_inf_nan<F: Float>(s: &[u8], negative: bool) -> Option<F> {
   242	    // Since a valid string has at most the length 8, we can load
   243	    // all relevant characters into a u64 and work from there.
   244	    // This also generates much better code.
   245
   246	    let mut register;
   247	    let len: usize;
   248
   249	    // All valid strings are either of length 8 or 3.
   250	    if s.len() == 8 {
   251	        register = s.read_u64();
   252	        len = 8;
   253	    } else if s.len() == 3 {
   254	        let a = s[0] as u64;
   255	        let b = s[1] as u64;
   256	        let c = s[2] as u64;
   257	        register = (c << 16) | (b << 8) | a;
   258	        len = 3;
   259	    } else {
   260	        return None;
   261	    }
   262
   263	    // Clear out the bits which turn ASCII uppercase characters into
   264	    // lowercase characters. The resulting string is all uppercase.
   265	    // What happens to other characters is irrelevant.
   266	    register &= 0xDFDFDFDFDFDFDFDF;
   267
   268	    // u64 values corresponding to relevant cases
   269	    const INF_3: u64 = 0x464E49; // "INF"
   270	    const INF_8: u64 = 0x5954494E49464E49; // "INFINITY"
   271	    const NAN: u64 = 0x4E414E; // "NAN"
   272
   273	    // Match register value to constant to parse string.
   274	    // Also match on the string length to catch edge cases
   275	    // like "inf\0\0\0\0\0".
   276	    let float = match (register, len) {
   277	        (INF_3, 3) => F::INFINITY,
   278	        (INF_8, 8) => F::INFINITY,
   279	        (NAN, 3) => F::NAN,
   280	        _ => return None,
   281	    };
   282
   283	    if negative { Some(-float) } else { Some(float) }
   284	}

--- Tablet/num_imp_dec2flt_dec2flt_with_trace.lean lines 36-194 ---
$ nl -ba Tablet/num_imp_dec2flt_dec2flt_with_trace.lean | sed -n '36,194p'
    36	do
    37	  let body ← core.str.Str.as_bytes s
    38	  let o ← core.slice.Slice.first body
    39	  match o with
    40	  | none =>
    41	    let pfe ← num.imp.dec2flt.pfe_empty
    42	    ok (core.result.Result.Err pfe, num.imp.dec2flt.Dec2FltTrace.EmptyInput)
    43	  | some c =>
    44	    let body1 ←
    45	      if c = 45#u8
    46	      then
    47	        core.slice.index.Slice.index
    48	          (core.slice.index.SliceIndexRangeFromUsizeSlice Std.U8) body
    49	          { start := 1#usize }
    50	      else
    51	        if c = 43#u8
    52	        then
    53	          core.slice.index.Slice.index
    54	            (core.slice.index.SliceIndexRangeFromUsizeSlice Std.U8) body
    55	            { start := 1#usize }
    56	        else ok body
    57	    let b ← core.slice.Slice.is_empty body1
    58	    if b
    59	    then
    60	      let pfe ← num.imp.dec2flt.pfe_invalid
    61	      ok (core.result.Result.Err pfe, num.imp.dec2flt.Dec2FltTrace.SignOnly
    62	        body1 (c = 45#u8))
    63	    else
    64	      let parse_number_result ← num.imp.dec2flt.parse.parse_number body1
    65	      match parse_number_result with
    66	      | none =>
    67	        let parse_inf_nan_result ←
    68	          num.imp.dec2flt.parse.parse_inf_nan
    69	            LemireInst.traitsFloatExtInst.FloatInst body1 (c = 45#u8)
    70	        match parse_inf_nan_result with
    71	        | none =>
    72	          let pfe ← num.imp.dec2flt.pfe_invalid
    73	          ok (core.result.Result.Err pfe, num.imp.dec2flt.Dec2FltTrace.Invalid
    74	            body1 (c = 45#u8) none none)
    75	        | some value =>
    76	          ok (core.result.Result.Ok value, num.imp.dec2flt.Dec2FltTrace.Special
    77	            body1 (c = 45#u8) none parse_inf_nan_result value)
    78	      | some r =>
    79	        let fast_path_result ←
    80	          num.imp.dec2flt.decimal.Decimal.try_fast_path LemireInst
    81	            coreopsarithDivInst coreopsarithMulInst coreopsarithNegInst
    82	            { r with negative := (c = 45#u8) }
    83	        match fast_path_result with
    84	        | none =>
    85	          let first_compute_result ←
    86	            num.imp.dec2flt.lemire.compute_float
    87	              LemireInst.traitsFloatExtInst.FloatInst r.exponent r.mantissa
    88	          let (b1, b2, first_compute_result1, fp, second_compute_guard) ←
    89	            if r.many_digits
    90	            then
    91	              ok (true, true, first_compute_result, first_compute_result,
    92	                first_compute_result.p_biased >= 0#i32)
    93	            else
    94	              ok (false, false, first_compute_result, first_compute_result,
    95	                false)
    96	          let (post_comparison_pair, second_compute_exponent,
    97	            second_compute_mantissa, second_compute_result,
    98	            second_equals_first, forced_deferral) ←
    99	            if second_compute_guard
   100	            then
   101	              do
   102	              let mantissa ← r.mantissa + 1#u64
   103	              let second ←
   104	                num.imp.dec2flt.lemire.compute_float
   105	                  LemireInst.traitsFloatExtInst.FloatInst r.exponent mantissa
   106	              let equal ←
   107	                num.imp.dec2flt.common.BiasedFp.Insts.CoreCmpPartialEqBiasedFp.eq
   108	                  fp second
   109	              let (bf, b3) ←
   110	                if equal
   111	                then ok (fp, false)
   112	                else ok ({ fp with p_biased := (-1)#i32 }, true)
   113	              ok (bf, some r.exponent, some mantissa, some second, some equal,
   114	                b3)
   115	            else ok (fp, none, none, none, none, false)
   116	          let (selected_pair, slow_path_guard, slow_path_result) ←
   117	            if post_comparison_pair.p_biased < 0#i32
   118	            then
   119	              do
   120	              let replacement ←
   121	                num.imp.dec2flt.slow.parse_long_mantissa
   122	                  LemireInst.traitsFloatExtInst.FloatInst body1
   123	              ok (replacement, true, some replacement)
   124	            else ok (post_comparison_pair, false, none)
   125	          let i ← lift (IScalar.hcast .U64 selected_pair.p_biased)
   126	          let i1 ← LemireInst.traitsFloatExtInst.FloatInst.SIG_BITS
   127	          let i2 ← i <<< i1
   128	          let assembled_word ← lift (selected_pair.m ||| i2)
   129	          let assembly_result ←
   130	            num.imp.dec2flt.biased_fp_to_float LemireInst.traitsFloatExtInst
   131	              selected_pair
   132	          if c = 45#u8
   133	          then
   134	            let result ← coreopsarithNegInst.neg assembly_result
   135	            ok (core.result.Result.Ok result,
   136	              num.imp.dec2flt.Dec2FltTrace.Assembled
   137	              {
   138	                body := body1,
   139	                negative := true,
   140	                parse_number_result := (some { r with many_digits := b1 }),
   141	                fast_path_input :=
   142	                  { r with negative := true, many_digits := b2 },
   143	                fast_path_result := none,
   144	                first_compute_exponent := r.exponent,
   145	                first_compute_mantissa := r.mantissa,
   146	                first_compute_result := first_compute_result1,
   147	                second_compute_guard,
   148	                second_compute_exponent,
   149	                second_compute_mantissa,
   150	                second_compute_result,
   151	                second_equals_first,
   152	                forced_deferral,
   153	                post_comparison_pair,
   154	                slow_path_guard,
   155	                slow_path_result,
   156	                selected_pair,
   157	                assembled_word,
   158	                assembly_result,
   159	                lexical_sign_applied := true,
   160	                result
   161	              })
   162	          else
   163	            ok (core.result.Result.Ok assembly_result,
   164	              num.imp.dec2flt.Dec2FltTrace.Assembled
   165	              {
   166	                body := body1,
   167	                negative := false,
   168	                parse_number_result := (some { r with many_digits := b1 }),
   169	                fast_path_input :=
   170	                  { r with negative := false, many_digits := b2 },
   171	                fast_path_result := none,
   172	                first_compute_exponent := r.exponent,
   173	                first_compute_mantissa := r.mantissa,
   174	                first_compute_result := first_compute_result1,
   175	                second_compute_guard,
   176	                second_compute_exponent,
   177	                second_compute_mantissa,
   178	                second_compute_result,
   179	                second_equals_first,
   180	                forced_deferral,
   181	                post_comparison_pair,
   182	                slow_path_guard,
   183	                slow_path_result,
   184	                selected_pair,
   185	                assembled_word,
   186	                assembly_result,
   187	                lexical_sign_applied := false,
   188	                result := assembly_result
   189	              })
   190	        | some value =>
   191	          ok (core.result.Result.Ok value,
   192	            num.imp.dec2flt.Dec2FltTrace.FastPath body1 (c = 45#u8)
   193	            parse_number_result { r with negative := (c = 45#u8) }
   194	            fast_path_result value)

--- Tablet/num_imp_dec2flt_Dec2FltAssemblyTrace.lean lines 31-52 ---
$ nl -ba Tablet/num_imp_dec2flt_Dec2FltAssemblyTrace.lean | sed -n '31,52p'
    31	  body : Slice Std.U8
    32	  negative : Bool
    33	  parse_number_result : Option num.imp.dec2flt.decimal.Decimal
    34	  fast_path_input : num.imp.dec2flt.decimal.Decimal
    35	  fast_path_result : Option F
    36	  first_compute_exponent : Std.I64
    37	  first_compute_mantissa : Std.U64
    38	  first_compute_result : num.imp.dec2flt.common.BiasedFp
    39	  second_compute_guard : Bool
    40	  second_compute_exponent : Option Std.I64
    41	  second_compute_mantissa : Option Std.U64
    42	  second_compute_result : Option num.imp.dec2flt.common.BiasedFp
    43	  second_equals_first : Option Bool
    44	  forced_deferral : Bool
    45	  post_comparison_pair : num.imp.dec2flt.common.BiasedFp
    46	  slow_path_guard : Bool
    47	  slow_path_result : Option num.imp.dec2flt.common.BiasedFp
    48	  selected_pair : num.imp.dec2flt.common.BiasedFp
    49	  assembled_word : Std.U64
    50	  assembly_result : F
    51	  lexical_sign_applied : Bool
    52	  result : F
Assumptions / kernel axioms
  • Classical.choice
  • Quot.sound
  • propext

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (2)

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourcecommitted_node_kinds / pv_tablet.json
Kindauthored definition
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:acce2e30ea7c3eb121d3a63eed12bb12df89495e08960d042186d87c2c64f3d9
Preservation current fingerprintpreservation-v1:acce2e30ea7c3eb121d3a63eed12bb12df89495e08960d042186d87c2c64f3d9
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"7402d421f57d691cd86dcfd55229520044751ddcae4d5708eb3cffe0256813ae","lean_semantic_closure":"59f7b0483b74cac6901d1c6f8d4bb512d85ce69d4670ff2ef83c17970e8b60e7","lean_relevant_definition_descendants":{"DecimalGoalVocabulary":"93815606c510afb8f425bb3ef618e21f81033cc552e15695a4d443dbb7010103","DecimalGoalVocabularyDefault":"8e764be6667e1926143e8f2576a83acf0a0aa9a5aa790c9619858db50c026dc4","DecimalLexeme":"aeeeec41a307a5fb7e3916c9c4899c4077abccd652062c92a252fc65a8e7d7a6","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2","SourceValidByteSlice":"d736148659be38528d8040160c92286f94c9e3a163bf026d5bef1af084b422bd"},"lean_relevant_dependencies":["DecimalGoalVocabulary","DecimalGoalVocabularyDefault","DecimalLexeme","F64","SourceValidByteSlice","num_imp_dec2flt_common_BiasedFp","num_imp_dec2flt_decimal_Decimal"],"preamble_tex":""}
Correspondence current fingerprint{"own_tex":"7402d421f57d691cd86dcfd55229520044751ddcae4d5708eb3cffe0256813ae","lean_semantic_closure":"59f7b0483b74cac6901d1c6f8d4bb512d85ce69d4670ff2ef83c17970e8b60e7","lean_relevant_definition_descendants":{"DecimalGoalVocabulary":"93815606c510afb8f425bb3ef618e21f81033cc552e15695a4d443dbb7010103","DecimalGoalVocabularyDefault":"8e764be6667e1926143e8f2576a83acf0a0aa9a5aa790c9619858db50c026dc4","DecimalLexeme":"aeeeec41a307a5fb7e3916c9c4899c4077abccd652062c92a252fc65a8e7d7a6","F64":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2","SourceValidByteSlice":"d736148659be38528d8040160c92286f94c9e3a163bf026d5bef1af084b422bd"},"lean_relevant_dependencies":["DecimalGoalVocabulary","DecimalGoalVocabularyDefault","DecimalLexeme","F64","SourceValidByteSlice","num_imp_dec2flt_common_BiasedFp","num_imp_dec2flt_decimal_Decimal"],"preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "7f4c10a33c43d587f80c1786316665bb061950fa3b8bf90b107e9018451d8f38",
    "dep_statement_hashes": {
      "DecimalGoalVocabularyDefault": "09f5cd567fc767000aace8b560207d9bd82783d4b665d3e95b462af37dcb387f",
      "SourceValidByteSlice": "52522ae5b8602c6279dde2af31f94e21db249400641f5d3e951f68a74c3c11e2"
    },
    "combined_sound_fp": "preservation-v1:acce2e30ea7c3eb121d3a63eed12bb12df89495e08960d042186d87c2c64f3d9"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/dispatch-contracts.txt",
    "sha256": "9d7ad7d43654b0b2a4fdd60d42dc4849136531fcebba986534eeeca563fa0d58",
    "cited_by": [
      "Tablet/DispatchContracts.tex",
      "committed_node_kinds / pv_tablet.json"
    ]
  }
]

F64

Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Aeneas

open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false

namespace dec2flt_model

-- [TABLET NODE: F64]
abbrev F64 : Type :=
-- BODY
  Std.U64

end dec2flt_model

Why this model is faithful

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.

Preservation argument

Claim

Representing a Rust f64 by its complete to_bits word loses no source encoding or public bit-level observation: on the full 64-bit domain, including every NaN encoding, from_bits interprets every carrier word and is inverse to to_bits at the level of raw encodings.

Proof

The frozen f64 specialization sets Int = u64; its to_bits method calls f64::to_bits, and its from_u64_bits method passes the complete u64 to 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 reference/model-evidence/float-carriers.txt.
For the first inverse direction, take any source f64 with raw memory word w. Transmutation by to_bits returns that same w, and transmutation of w by from_bits creates an f64 with the same raw memory word. Thus 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. from_bits(w) creates the float encoding w, so applying 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 Std.U64 a structure with one 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.
Authored arguments for individual requirements

Requirement: parser totality

Every source f64 intermediate and result in a parser execution has exactly one carrier word, and every carrier word represents a source f64 encoding. Thus this representation adds neither a restriction on those values nor a representation failure. Panic versus normal return, Ok versus Err, floating-point operation behavior, and control choices are established by the separate operation-binding and dispatcher preservation owners, not by this bijection.

Requirement: parser numeric acceptance

Every source f64 intermediate and result in a numeric parse has exactly one carrier word, and every carrier word represents a source f64 encoding, so the representation adds no restriction or failure. Normal return, production of Ok, operation behavior, and branch choices remain obligations of the separate operation-binding and dispatcher preservation owners.

Requirement: parser invalid rejection

Any source f64 intermediate produced before rejection has exactly one carrier word, every carrier word is source-representable, and an Err payload itself contains no float. Hence the carrier creates no representation restriction or failure; whether the parser returns normally with Err, and the operations and control choices leading there, are left to their separate preservation owners.

Requirement: parser nan acceptance

The bijection retains every source float's exponent and fraction bits exactly. DecimalGoalVocabularyDefault defines the GOAL's NaN predicate directly by those fields, so its truth is preserved without appealing to a classification operation. Normal return, Ok, and the operations constructing the result are left to their separate preservation owners.

Requirement: parser infinity

The lexical sign is a separate input observation, while the bijection retains the returned float's sign, exponent, and fraction bits exactly. 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.

Requirement: parser non nan results

The bijection retains every source float's exponent and fraction bits exactly, and 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.

Requirement: parser numeric sign

The lexical sign is a distinct input observation, and the bijection retains the returned float's sign bit exactly. 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.

Requirement: 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. 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.

Requirement: parser exact rounding

Every source f64 intermediate or result has exactly one retained word, and every carrier word, including every binary64 rounding target of DecimalGoalVocabularyDefault, is representable by a source 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.

Requirement: 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.

Requirement: parser selected magnitude sign

The bijection admits every assembled word and retains its high sign bit exactly. 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.

Requirement: dispatch abstract composition

Every source 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 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.

Requirement: dispatch component compliance

Every source 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.

Requirement: parser accumulated rounding

Every source f64 intermediate and result has exactly one retained word, and every accumulated-value rounding target of DecimalGoalVocabularyDefault is a carrier word representable by a source f64. Hence target comparison adds no representation restriction or failure. Successful return and rounding correctness are left to their separate preservation owners.

Requirement: parser equal target rounding

Each source f64 intermediate and result has exactly one retained word, and every exact- or accumulated-value target of 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.

Requirement: number helper acceptance

This helper returns an optional Decimal record rather than a float, so its acceptance observation does not use this carrier.

Requirement: number helper rejection

This helper returns an optional Decimal record rather than a float, so its rejection observation does not use this carrier.

Requirement: number helper record bounds

The record's negative, mantissa, and other fields are distinct source observations and do not use this float carrier.

Requirement: number helper accumulated value

The unsigned input, Decimal-record fields, and accumulated mathematical value do not use this float carrier.

Requirement: 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. DecimalGoalVocabularyDefault defines signed infinity directly by those fields, so that observation is preserved. Normal return, Some, and construction of the infinity are left to their separate preservation owners.

Requirement: 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. DecimalGoalVocabularyDefault defines the GOAL's NaN predicate directly by those fields, so its truth is preserved without appealing to a classification operation. Normal return, Some, and result construction are left to their separate preservation owners.

Requirement: special helper rejection

A None result contains no float, and any source f64 intermediate has exactly one carrier word with no representation failure. The carrier claim does not establish that the helper returns normally with None; that outcome and the branch behavior leading to it are left to their separate preservation owners.

Requirement: native correct or defer

Every source f64 input, arithmetic intermediate, and Some result in either native path has exactly one carrier word, and every carrier word, including each rounding target of DecimalGoalVocabularyDefault, is source-representable. Thus the carrier adds no value restriction or representation failure. Multiplication, division, sign application, normal return, and None/Some behavior are left to their separate operation-binding preservation owners.

Requirement: integer correct or defer

Every unrestricted raw-pair assembly word of DecimalGoalVocabularyDefault is admitted by the carrier and represents a source 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.

Requirement: slow accumulated rounding

Every unrestricted raw-pair assembly word of DecimalGoalVocabularyDefault is admitted by the carrier and represents a source 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.

Requirement: assembly correspondence

Every cast-shift-OR word described by DecimalGoalVocabularyDefault is admitted by the carrier and represents a source 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 from_bits operations are left to their separate operation-binding preservation owners.

Requirement: classification totality

This claim concerns classification of input byte lists, before any float result exists, so the float carrier is noninterfering.

Requirement: classification determinism

This claim compares classifications and lexeme content of input byte lists, so the float carrier is noninterfering.

Requirement: classification significand digit

This grammar property concerns the input lexeme's digit lists and does not use the float carrier.

Requirement: rounding totality

Every binary64 magnitude target word of DecimalGoalVocabularyDefault is admitted by the carrier and represents a source 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.

Requirement: rounding determinism

Every binary64 magnitude target of DecimalGoalVocabularyDefault is a complete carrier word representing a source 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.

Requirement: exponent value agreement

The exact- and accumulated-value targets of 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.

Recorded review

CorrespondencePass
PreservationVerifierPass

F64 · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/float-carriers.txt

Open file

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
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2  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.
Requirements depending on this item (32)
All 32 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourcecommitted_node_kinds / pv_tablet.json
Kindauthored definition
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:e4a7dfa423d0306b5090cba9ceaba481dd2af1949a3affd30be8bee5d1dc28cb
Preservation current fingerprintpreservation-v1:e4a7dfa423d0306b5090cba9ceaba481dd2af1949a3affd30be8bee5d1dc28cb
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2","lean_semantic_closure":"e635794078f5dc661ee0333607027ee168a5c0cdc88af5c09543d1d251ae951a","preamble_tex":""}
Correspondence current fingerprint{"own_tex":"cc96d5e66f40c1a2965cffa0288f89c7ca9ce356f1258ceee4a0bdf883a2f6c2","lean_semantic_closure":"e635794078f5dc661ee0333607027ee168a5c0cdc88af5c09543d1d251ae951a","preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "0c4c577ffaaf4639f2737135a349c4cef2f78816cf3c665139d6f826313fe735",
    "dep_statement_hashes": {
      "DecimalGoalVocabularyDefault": "09f5cd567fc767000aace8b560207d9bd82783d4b665d3e95b462af37dcb387f"
    },
    "combined_sound_fp": "preservation-v1:e4a7dfa423d0306b5090cba9ceaba481dd2af1949a3affd30be8bee5d1dc28cb"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/float-carriers.txt",
    "sha256": "4367b150c75a979015e2a6063d4080d3f0a1681c640421692ff9ac8c139632e5",
    "cited_by": [
      "Tablet/F64.tex",
      "committed_node_kinds / pv_tablet.json"
    ]
  }
]

SourceValidByteSlice

Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Aeneas
import Tablet.Preamble

open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false

namespace dec2flt_model

-- [TABLET NODE: SourceValidByteSlice]
def SourceValidByteSlice (s : Slice Std.U8) : Prop :=
-- BODY
  s.val.length <= 9223372036854775807

end dec2flt_model

Why this model is faithful

Definition

An Aeneas byte slice is source-valid for the configured 64-bit Rust target exactly when its byte length is at most \mathtt{isize::MAX}=2^{63}-1=9223372036854775807. This predicate places no restriction on byte values and, in particular, imposes no UTF-8 condition.

Preservation argument

Claim

For the configured x86_64-unknown-linux-gnu source domain, SourceValidByteSlice is exactly the length condition on a Rust &[u8] represented by an Aeneas byte slice: the represented byte count is at most isize::MAX; byte contents are unrestricted.

Proof

An Aeneas Slice Std.U8 exposes its represented elements as s.val, so s.val.length is its byte count. The pinned toolchain reports a 64-bit pointer width, isize::MAX equal to 9223372036854775807, and one-byte u8 elements. Its core slice source records that a slice occupies at most isize::MAX bytes. These commands, raw results, and source locations are recorded in reference/model-evidence/source-valid-byte-slice.txt. Thus the Lean inequality is precisely the configured source length bound. Since the definition inspects only length, it adds neither a byte-value condition nor the UTF-8 invariant that belongs specifically to Rust strings.
Authored arguments for individual requirements

Requirement: parser totality

The parser's Rust-string domain already carries its own source-validity and UTF-8 conditions; this byte-slice predicate does not alter that domain.

Requirement: parser numeric acceptance

The parser's source-valid string supplies a bounded byte slice when as_bytes is called; numeric grammar remains a separate premise.

Requirement: parser invalid rejection

The parser's source-valid string supplies the same bounded byte slice, while invalidity remains the complement of the stated grammar.

Requirement: parser nan acceptance

The predicate contributes only the length fact inherited by the helper slice and does not change NaN spelling or UTF-8 validity.

Requirement: parser infinity

The predicate contributes only the length fact inherited by the helper slice and does not change infinity spelling or sign.

Requirement: parser non nan results

The byte-length representation does not change any returned floating-point observation.

Requirement: parser numeric sign

The byte-length representation does not change lexical or returned-word signs.

Requirement: parser signed zero

The byte-length representation does not identify or alter the two signed-zero words.

Requirement: parser exact rounding

The predicate only identifies source-representable helper inputs and leaves exact decimal values and binary64 rounding unchanged.

Requirement: parser selected exponent

The predicate adds no constraint on selected raw-pair fields.

Requirement: parser selected magnitude sign

The predicate adds no constraint on selected raw-pair words or their sign bits.

Requirement: dispatch abstract composition

The abstract flow ranges over bytes of source-valid Rust strings. Sign stripping preserves their inherent length bound on the body, so this predicate supplies exactly the helper-slice domain used by the numeric, special, and slow contracts without adding UTF-8 to those helper inputs.

Requirement: dispatch component compliance

Every helper body slice comes from a source-valid Rust string by taking a subslice, so its byte count still satisfies this exact source bound.

Requirement: parser accumulated rounding

The predicate identifies the actual helper-call domain without changing the accumulated-exponent value.

Requirement: parser equal target rounding

The predicate identifies the actual helper-call domain without changing either rounding target.

Requirement: number helper acceptance

The GOAL quantifies over Rust byte slices, whose exact modeled length domain is supplied by this predicate; arbitrary byte contents remain allowed.

Requirement: number helper rejection

The GOAL quantifies over Rust byte slices, so this predicate supplies only their inherent length bound and imposes no UTF-8 condition.

Requirement: number helper record bounds

Premising the model theorem with this predicate makes its slice quantifier exactly the configured Rust domain while retaining nonemptiness and every returned-record conclusion.

Requirement: number helper accumulated value

The GOAL's unsigned numeric Rust slice must satisfy this inherent bound; the predicate does not discard any source input or alter its diagnostic value.

Requirement: special helper infinity

The GOAL's Rust byte slices satisfy this inherent bound, independently of keyword bytes and the separate sign argument.

Requirement: special helper nan

The GOAL's Rust byte slices satisfy this inherent bound, independently of keyword bytes and the separate sign argument.

Requirement: special helper rejection

The GOAL's Rust byte slices satisfy this inherent bound without any UTF-8 restriction on rejected contents.

Requirement: native correct or defer

This goal ranges over Decimal records rather than slices, so the predicate is noninterfering.

Requirement: integer correct or defer

This goal ranges over integer machine values rather than slices, so the predicate is noninterfering.

Requirement: slow accumulated rounding

The GOAL's unsigned-numeric Rust slice satisfies this inherent bound; its full significand and accumulated value remain unchanged.

Requirement: assembly correspondence

This goal ranges over unrestricted raw pairs rather than slices, so the predicate is noninterfering.

Requirement: classification totality

This purely mathematical goal remains quantified over every finite byte string, including lists longer than the Rust slice bound.

Requirement: classification determinism

This purely mathematical goal remains quantified over every finite byte string, including lists longer than the Rust slice bound.

Requirement: classification significand digit

This purely mathematical grammar fact remains unrestricted by source representability.

Requirement: rounding totality

This purely mathematical real-number goal has no slice input, so the predicate is noninterfering.

Requirement: rounding determinism

This purely mathematical real-number goal has no slice input, so the predicate is noninterfering.

Requirement: exponent value agreement

This lexical value comparison is unchanged; source-facing uses apply the predicate only to their Rust slice carrier.

Recorded review

CorrespondencePass
PreservationVerifierPass

SourceValidByteSlice · Lean checked

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

reference/model-evidence/source-valid-byte-slice-probe.out

Open file

arch=x86_64
usize_bits=64
isize_max=9223372036854775807
u8_size=1
reference/model-evidence/source-valid-byte-slice-probe.rs

Open file

fn main() {
    println!("arch={}", std::env::consts::ARCH);
    println!("usize_bits={}", usize::BITS);
    println!("isize_max={}", isize::MAX);
    println!("u8_size={}", std::mem::size_of::<u8>());
}
reference/model-evidence/source-valid-byte-slice.txt

Open file

Source-valid byte-slice and string domain evidence
==================================================

Scope and pinned identities
---------------------------

All commands below were run from the repository root.  The configured compiler
is:

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

Its SHA-256 is:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b

The exact identity commands were:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  sha256sum "$R"
  "$R" --version --verbose
  "$R" --target x86_64-unknown-linux-gnu --print cfg | LC_ALL=C sort | \
    rg 'target_(arch|pointer_width)'

Their relevant raw output was:

  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
  target_arch="x86_64"
  target_pointer_width="64"

Retained configured-target probe
--------------------------------

The retained probe source is
reference/model-evidence/source-valid-byte-slice-probe.rs.  It was compiled
for the configured target and executed with this exact command, which depends
only on the retained source and the pinned compiler:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/source-valid-byte-slice-probe.rs
  B=/tmp/dec2flt-source-valid-byte-slice-probe
  O=reference/model-evidence/source-valid-byte-slice-probe.out
  "$R" --edition 2024 --target x86_64-unknown-linux-gnu -C opt-level=0 \
    -C debuginfo=0 -C overflow-checks=on -C debug-assertions=on \
    --crate-name source_valid_byte_slice_probe "$P" -o "$B"
  sha256sum "$R" "$P" "$B"
  "$B" > "$O"
  sha256sum "$O"
  cat "$O"

The actual hashes were:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd  reference/model-evidence/source-valid-byte-slice-probe.rs
  87dc3b9b7a46506d2205503d8aa007b451c452968af48d1ba5961a821934ee55  /tmp/dec2flt-source-valid-byte-slice-probe
  01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4  reference/model-evidence/source-valid-byte-slice-probe.out

The retained raw output file contains exactly:

  arch=x86_64
  usize_bits=64
  isize_max=9223372036854775807
  u8_size=1

Pinned core-library source
--------------------------

Let:

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

The exact commands used to identify and inspect the relevant core sources were:

  sha256sum "$S/slice/mod.rs" "$S/num/int_macros.rs" "$S/str/mod.rs"
  sed -n '798,808p' "$S/slice/mod.rs"
  sed -n '43,51p' "$S/num/int_macros.rs"
  sed -n '495,510p' "$S/str/mod.rs"

The file identities are:

  354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840  core/src/slice/mod.rs
  3896304e7cb14628e293134ac41fd18be2b5369bedc02d1c6a7408bd8c755a31  core/src/num/int_macros.rs
  284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78  core/src/str/mod.rs

The relevant exact excerpt of slice/mod.rs, line 801, is:

  //   - The size of the slice is never larger than `isize::MAX` bytes, as

The relevant exact declaration in num/int_macros.rs, line 47, is:

  pub const MAX: Self = (<$UnsignedT>::MAX >> 1) as Self;

The relevant exact excerpts of str/mod.rs are its same-layout byte-slice
conversion at lines 498-500:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }

and its UTF-8 invariant at lines 507-510:

  /// The caller must ensure that the content of the slice is valid UTF-8
  /// before the borrow ends and the underlying `str` is used.
  ///
  /// Use of a `str` whose contents are not valid UTF-8 is undefined behavior.

Conclusion
----------

The configured target has 64-bit usize/isize and one-byte u8 elements.
The pinned signed-MAX definition therefore gives
isize::MAX = 2^63 - 1 = 9223372036854775807, and the pinned slice rule bounds a
slice by that many bytes.  For &[u8], this is exactly an element-count bound;
the rule adds no UTF-8 condition or other restriction on the byte contents.
The pinned str source exposes the identical-layout &[u8] bytes and separately
requires them to be valid UTF-8.  Consequently the exact configured domains
are arbitrary &[u8] bytes of length at most isize::MAX, and Rust str bytes of
length at most isize::MAX that are valid UTF-8.  No smaller convenience bound
is introduced.
Assumptions / kernel axioms
  • propext

conservative transitive union of saved axiom observations across node dependencies

Requirements depending on this item (18)
All 18 entries

These requirements are linked to this item through the declared dependencies of their proofs.

Record details
Record sourcecommitted_node_kinds / pv_tablet.json
Kindauthored definition
Preservation assessment originVerifierPanel
Preservation fingerprintpreservation-v1:7831013d07bcce3253f15a171c02ecf8b409f869e64af74492fa1638ebfb64d3
Preservation current fingerprintpreservation-v1:7831013d07bcce3253f15a171c02ecf8b409f869e64af74492fa1638ebfb64d3
Preservation freshnessmatches current fingerprint
Correspondence approved fingerprint{"own_tex":"d736148659be38528d8040160c92286f94c9e3a163bf026d5bef1af084b422bd","lean_semantic_closure":"97e2005f894731188b78bd906f4df6b86ad4a847c9c485370529868a68c963f7","preamble_tex":""}
Correspondence current fingerprint{"own_tex":"d736148659be38528d8040160c92286f94c9e3a163bf026d5bef1af084b422bd","lean_semantic_closure":"97e2005f894731188b78bd906f4df6b86ad4a847c9c485370529868a68c963f7","preamble_tex":""}
Correspondence freshnessmatches current fingerprint
Exact preservation assessment
{
  "status": "VerifierPass",
  "origin": "VerifierPanel",
  "fingerprints": {
    "own_tex_hash": "7cdb23c2dfadfd067deab441d89c7e64eb3fa46f74df76db487d893768233111",
    "dep_statement_hashes": {},
    "combined_sound_fp": "preservation-v1:7831013d07bcce3253f15a171c02ecf8b409f869e64af74492fa1638ebfb64d3"
  },
  "lane_votes": {
    "v1": "Pass"
  },
  "reviewer_action_id": null
}
Captured evidence identities
[
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.out",
    "sha256": "01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.rs",
    "sha256": "b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice.txt",
    "sha256": "eb501317621baa00236f9773885466bd38ec1a45cb56457d555b9e9139dc780a",
    "cited_by": [
      "Tablet/SourceValidByteSlice.tex",
      "committed_node_kinds / pv_tablet.json"
    ]
  }
]

Source adaptations (8)

source adaptation audit

Historical preparation document: preparation source-adaptation audit. It describes the state and obligations at preparation. This generation is captured in ProofFormalization. Later closure and review results appear in the proof and modeling views. This original document remains available as history.

The adaptation gate is satisfied on the setup-approved fingerprint 3dc044c04101f0d2c0a03f9d5a83585c052dcc9c873b471d75f9ae8ddb820894. Relative to the prior accepted preparation, the complete work-tree change is confined to work/crate/dec2flt/mod.rs:255-261 and work/SETUP.md:40-45: both now accurately say that #[charon::opaque] externalizes the entire unchanged Lemire::from_u64 method, including its debug assertion and cast, and no Rust computation, extraction setting, scope, domain, observation, or GOAL changed. The source body remains the upstream debug_assert followed by the u64-to-f64 cast. The current uncached Cargo, Charon, and Aeneas checks all exit 0 and emit one root module M; an independent fresh run on the same fingerprint has byte-identical generated Lean (45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9) and axiom report (ff689f76c45f2a438b77c3e9221f7a657b66d37ea26b04b54b0fd6ebbd817aa9). The inventory is exactly the approved 24 externals: 14 F64 declarations including whole-method from_u64, four U64 bit operations, and six byte/Option/slice/string operations. The named public, helper, dispatcher, trace, and assembly subjects are transparent definitions, and no F16/F32/U16 implementation or removed Float-bound external remains. Charon IR confirms that both ordinary and disguised from_u64 callers and their MAX_MANTISSA_FAST_PATH guards remain transparent. The raw generated module has no placeholder. All 39 Lean errors are exactly Unknown identifier F64; its four sorry warnings are elaborator recovery in F64-valued constants. The export passed, reports no unapproved axiom among 2,225 checked declarations, and all 64 pending declarations are downstream F64 declarations. Thus every failure is accounted for by diagnosed native-model support, not a translation, import, cycle, or packaging defect, and the approved F64-only route is implemented without reducing any of the 32 GOALs.
Shared extraction-boundary explanation (Preamble)

Preservation argument

Claim

Fix Rust nightly-2026-06-01 and target x86_64-unknown-linux-gnu, the library's empty default feature set (so optimize_for_size is disabled), the unoptimized development profile, enabled debug assertions and integer overflow checks, and the target's SSE2 precision-setting branch. Interpret each of the frozen extraction's 24 external operations by the separately justified model-support definition that owns that operation. Under those interpretations, the composed Aeneas model represents the supplied source's f64 specialization on all of these domains, without a correctness premise: every Rust str whose bytes are valid UTF-8 and whose 64-bit slice length is at most \mathtt{isize::MAX}=2^{63}-1; every Rust &[u8] whose length is at most that bound, with arbitrary byte contents; every Decimal; every i64/u64 pair; and every BiasedFp.
For dec2flt::<f64> the relation preserves panic versus normal return, the outer returned Result's Ok/Err discriminant, and, on success, the exact binary64 word and its NaN classification. For parse_number it preserves panic versus normal return, the Option discriminant, and all four returned Decimal fields. For parse_inf_nan::<f64> and Decimal::try_fast_path::<f64> it preserves panic versus normal return, None versus Some, and every returned word and NaN classification. For compute_float::<f64> and parse_long_mantissa::<f64> it preserves panic versus normal return and both fields of every returned BiasedFp. For biased_fp_to_float::<f64> it preserves panic versus normal return and the exact returned word, with no restriction on the pair fields.
For dec2flt_with_trace::<f64> it additionally preserves the public result and the complete trace: its control-flow variant; sign-stripped body and lexical sign; numeric and special helper results; signed native input and native result; first integer operands and result; second-call guard, optional operands and result, comparison and forced-deferral fact; post-comparison pair; slow-path guard and optional result; selected pair; assembled unsigned word; pre-sign assembly result; sign-application fact; and final word. Public dec2flt::<f64> is exactly the first projection of that interface, and direct special and native returns select no raw pair.

Proof

The fresh extraction record reference/model-evidence/setup-reproduction.txt pins all six tool executables by SHA-256, gives the empty Cargo/Charon/Aeneas argument configuration, and records the effective development cfg. Its Cargo, Charon, and Aeneas executions all exit successfully. Fresh Aeneas output is byte-for-byte the frozen generated.lean, with SHA-256 45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9. The raw source has no placeholder. The compatibility check reports no unapproved axiom and isolates exactly 24 external declarations; the complete inventory equals the 24 entries of Tablet/model-support.json. compose-native --check reports an unchanged composition and equal expected and actual Preamble hashes. Thus all transparent extracted declarations come from this one pinned source and every nontransparent operation is explicit. The premise assigning each external its owning definition deliberately leaves that definition's primitive-semantics proof to its own preservation record; no primitive binding is re-proved here.
The paired meanings of all 24 owners make that composition premise concrete. The binary64 carrier is the complete raw-word representation of F64. Its clone, precision constant, NaN and infinity constants, field masks, classification, bit conversions, arithmetic, negation, and asserted integer conversion have respectively the meanings in ModelF64Clone, ModelF64MantissaDigits, ModelF64Nan, ModelF64Infinity, ModelF64NegInfinity, ModelF64ExponentMask, ModelF64MantissaMask, ModelF64Classify, ModelF64ToBits, ModelF64FromBits, ModelF64Mul, ModelF64Div, ModelF64Neg, and ModelF64FromU64. The four bounded word operations have the Rust meanings in ModelU64BitAnd, ModelU64BitOr, ModelU64Shl, and ModelU64Shr; the digit test has the meaning in ModelU8IsAsciiDigit. Option branching and residual return have the meanings in ModelOptionBranch and ModelOptionFromResidual; first-element and split-first observation have the meanings in ModelSliceFirst and ModelSliceSplitFirst; and string-to-byte observation has the meaning in ModelStrAsBytes. These are exactly the semantic operations substituted for the inventoried externals.
The source carrier used below is the arbitrary-byte, length-at-most 2^{63}-1 slice of SourceValidByteSlice. The abstract domains and observations used in the GOAL applications are those of DecimalGoalVocabulary; their concrete UTF-8 string predicate, lexical grammar, decimal values, binary64 rounding and classification, sign, and unrestricted raw-pair assembly are those of DecimalGoalVocabularyDefault. Thus the composition cites the paired meanings that connect its source domains and observations to the GOAL vocabulary, rather than inferring those meanings from boundary inventory alone.
The complete upstream-to-crate inventory and its source hashes are recorded in reference/model-evidence/source-adaptation-delta.txt; its exact aggregate byte diff is retained in reference/model-evidence/source-adaptation-delta.diff. The supplied fpu.rs, lemire.rs, and table.rs are byte-identical. The standalone namespace and local error shell introduce no call. The GOALs observe only panic versus normal return and the outer Ok/Err discriminant, so the shell's private kind and formatting are unobserved; no identity with an unpinned core error payload is asserted. Visibility and removed Debug derives do not affect values. The retained generic bodies use none of the removed trait operations; the direct Mul, Div, and Neg clauses and calls are the operations already implied by Lemire. Only the u64 integer instance and f64 Float, FloatExt, and Lemire instances can participate in an f64 execution, so disabling the u16/u32 and f16/f32 instances changes no such call.
The same delta record compares each constant, table entry, and specialized decoder with its source expression. The retained decoder is the source default after substituting the f64/u64 field widths and masks; the fast-path bounds are the source formula results; and the match over power-of-ten words has the same masked index and exact words as the source array. The toolchain-specific words, masks, classifications, casts, and rounding behavior are independently pinned in reference/model-evidence/binary64-boundary.txt. The frozen from_u64 Rust body is the enabled assertion followed by the u64 as f64 conversion. Because #[charon::opaque] applies to the whole function, neither operation inside that body is transparent in the extraction: the whole method is the single inventoried external. Its callers, their guards, and the surrounding native computation remain transparent. ModelF64FromU64 supplies exactly successful integer conversion for v\leq2^{53} and assertion failure otherwise.
All other changed bodies are syntax-directed rewrites. Indexed digit scans test the same byte, use the same wrapping subtraction and accumulator update, advance by the same amount, and stop at the same first nondigit as the source closures and split_first loops. Extracted helpers receive the same slices and mutable values, visit bytes in the same forward or reverse order, and retain every saturating, wrapping, and checked operation. Delayed returns set a result flag, execute no intervening state update, leave the loop through that flag, and immediately return the source value. In particular, casts and length-derived additions on very large inputs keep their original panic or normal behavior rather than acquiring a convenience size bound.
Finally, direct comparison of the supplied dispatcher with the instrumented body shows identical sequencing. Both strip at most one sign, reject empty or sign-only input, call the numeric helper first and the special helper only after its None, overwrite only the parsed sign, try the enabled native path, make the first integer call, and evaluate the checked mantissa+1 and second call under exactly the source short-circuit guard. Both force the same deferral on unequal pairs, call the slow helper on the unchanged body exactly for a negative post-comparison exponent, assemble the same selected pair, and apply the sign last. Every trace field is either one of those already computed values or the same nonmutating cast/shift/OR word used by assembly. Hence recording the trace and discarding it in the public projection changes neither call order, guards, state, panic points, nor any returned observation.
The exact source carrier condition is separately evidenced by reference/model-evidence/source-valid-byte-slice.txt: on this 64-bit target a byte slice has arbitrary bytes and length at most isize::MAX, while a Rust string adds UTF-8 validity. Sub-slicing preserves the length bound and need not preserve an independent string type. These facts establish all domains and observations in the claim independently of the truth or falsity of any GOAL.

Recorded review

Preservationaccept

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

extraction-evidence/COMMAND.json

Open file

{"declaration_reader_sha256":"76f60cf0b867fad9727d2256d32b306c8cba3725216a4225d0f83add77fd6158","extraction_provenance":{"extraction_toolchain":{"aeneas":"fa699427","aeneas_revision":"fa699427cdfa8f604b891fb0223ef42883dd7dc4","cargo_features":[{"features":["default"],"name":"dec2flt-model","source":"workspace:Cargo.toml","version":"0.1.0"}],"cargo_lock_sha256":"bc644c624ded89197356bbd65d995054b7fb08e5bdfbaa38c6e7c7a53772cecf","cfg":["debug_assertions","emscripten_wasm_eh","feature=\"default\"","fmt_debug=\"full\"","overflow_checks","panic=\"unwind\"","relocation_model=\"pic\"","target_abi=\"\"","target_arch=\"x86_64\"","target_endian=\"little\"","target_env=\"gnu\"","target_family=\"unix\"","target_feature=\"fxsr\"","target_feature=\"sse\"","target_feature=\"sse2\"","target_feature=\"x87\"","target_has_atomic","target_has_atomic=\"16\"","target_has_atomic=\"32\"","target_has_atomic=\"64\"","target_has_atomic=\"8\"","target_has_atomic=\"ptr\"","target_has_atomic_load_store","target_has_atomic_load_store=\"16\"","target_has_atomic_load_store=\"32\"","target_has_atomic_load_store=\"64\"","target_has_atomic_load_store=\"8\"","target_has_atomic_load_store=\"ptr\"","target_has_atomic_primitive_alignment=\"16\"","target_has_atomic_primitive_alignment=\"32\"","target_has_atomic_primitive_alignment=\"64\"","target_has_atomic_primitive_alignment=\"8\"","target_has_atomic_primitive_alignment=\"ptr\"","target_has_reliable_f128","target_has_reliable_f16","target_has_reliable_f16_math","target_object_format=\"elf\"","target_os=\"linux\"","target_pointer_width=\"64\"","target_thread_local","target_vendor=\"unknown\"","ub_checks","unix"],"charon":"0.1.216","charon_revision":"6f058254eb741c12e9b388df07adaf7cc8aac8ed","extraction_profile":"dev","lean":"4.30.0-rc2","overflow_checks":true,"panic_strategy":"unwind","rustc_vv":"rustc 1.98.0-nightly (14210df0e 2026-05-31)\nbinary: rustc\ncommit-hash: 14210df0e27ccd7d9e6a05b8085cbd438e4bbc65\ncommit-date: 2026-05-31\nhost: x86_64-unknown-linux-gnu\nrelease: 1.98.0-nightly\nLLVM version: 22.1.6\n","target_pointer_width":64,"target_triple":"x86_64-unknown-linux-gnu"},"extractor_stack":["charon@0.1.216","aeneas@fa699427"],"extractor_toolchain_sha256":"18657da0659dee7889ed8a937b136c9abbc3a35e9050241cd8201c94fd232323","not_recorded":[],"source_digests":[{"source_file":"lib.rs","source_sha256":"63c7f58df6caff552519c92155d902daf8a1015797adcd3f357f8b8cf1652b00"}]},"extractor_script_path":"/home/leanagent/pv_runs/trellis-native-implementation-v91/scripts/extract_pv_model.py","extractor_script_sha256":"cc1fdd50a78185c7bb564b715c554cb35d9fc09ed566b6c3d4f482f2d27ef67d","kernel_gate_checkers":[],"log_concatenation_order":"runs_then_steps_in_array_order","runs":[{"run_role":"primary","steps":[{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","-vV"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"rustc-version","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/pv_spike/tools/charon/bin/charon","cargo","--preset=aeneas","--dest-file","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc","--","--offline","--profile","dev","--target","x86_64-unknown-linux-gnu"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"charon","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/cargo","metadata","--format-version=1","--locked","--offline","--filter-platform","x86_64-unknown-linux-gnu"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"cargo-metadata","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/cargo","rustc","--lib","--locked","--offline","--profile","dev","--target","x86_64-unknown-linux-gnu","--","--print","cfg"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"cargo-rustc-cfg","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/pv_spike/tools/aeneas/bin/aeneas","-backend","lean","-dest","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen","-emit-json","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"aeneas","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"}]}],"schema":"trellis-extraction-command/v1","tool_source_checkouts":[]}
extraction-evidence/DETERMINISM.json

Open file

{"comparison":"generated_lean_and_complete_tablet_tree_byte_identity","generated_lean_byte_identical":false,"generated_lean_sha256":["45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9"],"kernel_filespec_gate":"not_run","kernel_prescribed_region_gate":"not_run","namespace_context_roundtrip_gate":"not_run","result_sha256":"31059e900d9ee03a54504c1dd3560a943d6c0f883fba737163b1ca0cb40065b0","run_roles":["primary"],"schema":"trellis-extraction-determinism/v2","status":"not_run","tablet_root_sha256":["5be7a89d6b46429df3229db0d97b337dfb51cea483d439817e51b774a2dd5cf1"],"tablet_tree_byte_identical":false}
extraction-evidence/RESULT.json

Open file

{"command_sha256":"5f26225136b8c7c4d7f95615e3e8ff8b357e523eeada4bc649e50f9c76cb9bda","runs":[{"generated_lean_sha256":"45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9","run_role":"primary","steps":[{"exit_status":0,"stderr_byte_length":0,"stderr_offset":0,"stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","stdout_byte_length":212,"stdout_offset":0,"stdout_sha256":"e6ea0da4a3301256a0a0dc0d67d11acf4e83e0d1bff5dd987ccdaa43708714bc","tool":"rustc-version"},{"exit_status":0,"stderr_byte_length":654,"stderr_offset":0,"stderr_sha256":"85f314396a5cc9f2303d9848c2d0ea392b64a71cb47e7b0914fd3b8acc916f02","stdout_byte_length":0,"stdout_offset":212,"stdout_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","tool":"charon"},{"exit_status":0,"stderr_byte_length":0,"stderr_offset":654,"stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","stdout_byte_length":2897,"stdout_offset":212,"stdout_sha256":"d792566b25914f10c1a27d3c55607a43dd6bcd31b381f8d54caa7d23257269ef","tool":"cargo-metadata"},{"exit_status":0,"stderr_byte_length":302,"stderr_offset":654,"stderr_sha256":"865b65d937d16c61cd9b975adc967136f6739ef2149207ae43742241f2f37686","stdout_byte_length":1062,"stdout_offset":3109,"stdout_sha256":"4081a320e6292139b4a673d225682dc054b77cba113b8c8a8fbb0593f824b713","tool":"cargo-rustc-cfg"},{"exit_status":0,"stderr_byte_length":6916,"stderr_offset":956,"stderr_sha256":"9c2b4695f1b3bb4e7fe3bf52b92d44fd21bed1de3047b698c950eafcc085c00b","stdout_byte_length":933,"stdout_offset":4171,"stdout_sha256":"35255952c6ce5b89d1280d096dff50ffcfc94817c3aafa58beda6db7e66721df","tool":"aeneas"}],"tablet_root_sha256":"5be7a89d6b46429df3229db0d97b337dfb51cea483d439817e51b774a2dd5cf1"}],"schema":"trellis-extraction-result/v2","stderr_byte_length":7872,"stderr_sha256":"c284799d633c64b898f716d62fbf1146c173227bd6bd44309c6504a43926e000","stdout_byte_length":5104,"stdout_sha256":"8e0aed62f6941e7c81b09d5c5b63ea7602756e69e4bcce9944258b229a9a0ba3"}
extraction-evidence/STDERR.bin

Open file

   Compiling dec2flt-model v0.1.0 (/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate)
warning: feature `f16` is declared but not used
 --> lib.rs:2:46
  |
2 | #![feature(cfg_target_has_reliable_f16_f128, f16, float_masks, register_tool, staged_api)]
  |                                              ^^^
  |
  = note: `#[warn(unused_features)]` (part of `#[warn(unused)]`) on by default

warning: `dec2flt-model` (lib) generated 1 warning
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.44s
   Compiling dec2flt-model v0.1.0 (/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.02s
[?25lApplied prepasses:  [------------------------------------------------]   0/203 ⠋

Applied prepasses:  [------------------------------------------------]   1/203 ⠋

Applied prepasses:  [#####-------------------------------------------]  24/203 ⠋

Applied prepasses:  [########----------------------------------------]  38/203 ⠋

Applied prepasses:  [##############################------------------] 128/203 ⠙
Applied prepasses:  [################################################] 203/203 ✔️
[?25h[?25lTranslated globals:  [-------------------------------------------------]  0/50 ⠋
Translated globals:  [#################################################] 50/50 ✔️
[?25h[?25lTranslated opaque functions:  [----------------------------------------]  0/87 ⠋
Translated opaque functions:  [########################################] 87/87 ✔️
[?25h[?25lTranslated transparent functions:  [---------------------------------]   0/107 ⠋

Translated transparent functions:  [---------------------------------]   1/107 ⠙

Translated transparent functions:  [###------------------------------]  10/107 ⠙

Translated transparent functions:  [######---------------------------]  22/107 ⠹

Translated transparent functions:  [##########-----------------------]  35/107 ⠹

Translated transparent functions:  [#############--------------------]  44/107 ⠹

Translated transparent functions:  [##############-------------------]  48/107 ⠸

Translated transparent functions:  [###############------------------]  51/107 ⠸

Translated transparent functions:  [##################---------------]  59/107 ⠸

Translated transparent functions:  [##################---------------]  60/107 ⠼

Translated transparent functions:  [##################---------------]  61/107 ⠼

Translated transparent functions:  [####################-------------]  65/107 ⠼

Translated transparent functions:  [#####################------------]  69/107 ⠼

Translated transparent functions:  [#####################------------]  70/107 ⠴

Translated transparent functions:  [######################-----------]  72/107 ⠴

Translated transparent functions:  [######################-----------]  73/107 ⠦

Translated transparent functions:  [######################-----------]  74/107 ⠦

Translated transparent functions:  [#######################----------]  77/107 ⠦

Translated transparent functions:  [########################---------]  78/107 ⠧

Translated transparent functions:  [########################---------]  79/107 ⠧

Translated transparent functions:  [########################---------]  81/107 ⠇

Translated transparent functions:  [#########################--------]  82/107 ⠇

Translated transparent functions:  [#########################--------]  83/107 ⠏

Translated transparent functions:  [#########################--------]  84/107 ⠏

Translated transparent functions:  [##########################-------]  86/107 ⠋

Translated transparent functions:  [###########################------]  88/107 ⠋

Translated transparent functions:  [###########################------]  89/107 ⠋

Translated transparent functions:  [###########################------]  90/107 ⠙

Translated transparent functions:  [############################-----]  91/107 ⠙

Translated transparent functions:  [############################-----]  93/107 ⠹

Translated transparent functions:  [############################-----]  94/107 ⠹

Translated transparent functions:  [#############################----]  95/107 ⠸

Translated transparent functions:  [#############################----]  97/107 ⠸

Translated transparent functions:  [##############################---]  99/107 ⠼

Translated transparent functions:  [##############################---] 100/107 ⠼

Translated transparent functions:  [###############################--] 102/107 ⠴

Translated transparent functions:  [###############################--] 103/107 ⠦

Translated transparent functions:  [################################-] 104/107 ⠦

Translated transparent functions:  [################################-] 105/107 ⠧

Translated transparent functions:  [################################-] 106/107 ⠇

Translated transparent functions:  [#################################] 107/107 ⠏
Translated transparent functions:  [#################################] 107/107 ✔️
[?25h[?25lTranslated trait declarations:  [--------------------------------------]  0/49 ⠋
Translated trait declarations:  [########################--------------] 31/49 ✔️
[?25h[?25lTranslated trait impls:  [---------------------------------------------]  0/85 ⠋
Translated trait impls:  [#################################------------] 64/85 ✔️
[?25h[?25lPost-processed translated opaque functions:  [-------------------------]  0/87 ⠋

Post-processed translated opaque functions:  [-------------------------]  1/87 ⠙
Post-processed translated opaque functions:  [#########################] 87/87 ✔️
[?25h[?25lPost-processed translated transparent functions:  [------------------]   0/107 ⠋

Post-processed translated transparent functions:  [------------------]   1/107 ⠋

Post-processed translated transparent functions:  [#-----------------]  10/107 ⠙

Post-processed translated transparent functions:  [##----------------]  12/107 ⠙

Post-processed translated transparent functions:  [##----------------]  13/107 ⠹

Post-processed translated transparent functions:  [##----------------]  14/107 ⠹

Post-processed translated transparent functions:  [##----------------]  16/107 ⠸

Post-processed translated transparent functions:  [##----------------]  17/107 ⠼

Post-processed translated transparent functions:  [###---------------]  18/107 ⠼

Post-processed translated transparent functions:  [###---------------]  23/107 ⠴

Post-processed translated transparent functions:  [####--------------]  27/107 ⠴

Post-processed translated transparent functions:  [#####-------------]  31/107 ⠴

Post-processed translated transparent functions:  [######------------]  37/107 ⠴

Post-processed translated transparent functions:  [########----------]  50/107 ⠴

Post-processed translated transparent functions:  [###############---]  95/107 ⠦

Post-processed translated transparent functions:  [################--]  99/107 ⠦

Post-processed translated transparent functions:  [################--] 100/107 ⠧

Post-processed translated transparent functions:  [################--] 101/107 ⠧

Post-processed translated transparent functions:  [#################-] 103/107 ⠧

Post-processed translated transparent functions:  [#################-] 105/107 ⠇

Post-processed translated transparent functions:  [##################] 107/107 ⠏
Post-processed translated transparent functions:  [##################] 107/107 ✔️
[?25h
extraction-evidence/STDOUT.bin

Open file

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
{"packages":[{"name":"dec2flt-model","version":"0.1.0","id":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0","license":null,"license_file":null,"description":null,"source":null,"dependencies":[],"targets":[{"kind":["lib"],"crate_types":["lib"],"name":"dec2flt_model","src_path":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate/lib.rs","edition":"2024","doc":true,"doctest":true,"test":true}],"features":{"default":[],"optimize_for_size":[]},"manifest_path":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate/Cargo.toml","metadata":null,"publish":[],"authors":[],"categories":[],"keywords":[],"readme":null,"repository":null,"homepage":null,"documentation":null,"edition":"2024","links":null,"default_run":null,"rust_version":null}],"workspace_members":["path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"],"workspace_default_members":["path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"],"resolve":{"nodes":[{"id":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0","dependencies":[],"deps":[],"features":["default"]}],"root":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"},"target_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","build_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","version":1,"workspace_root":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate","metadata":null}
debug_assertions
emscripten_wasm_eh
feature="default"
fmt_debug="full"
overflow_checks
panic="unwind"
relocation_model="pic"
target_abi=""
target_arch="x86_64"
target_endian="little"
target_env="gnu"
target_family="unix"
target_feature="fxsr"
target_feature="sse"
target_feature="sse2"
target_feature="x87"
target_has_atomic
target_has_atomic="16"
target_has_atomic="32"
target_has_atomic="64"
target_has_atomic="8"
target_has_atomic="ptr"
target_has_atomic_load_store
target_has_atomic_load_store="16"
target_has_atomic_load_store="32"
target_has_atomic_load_store="64"
target_has_atomic_load_store="8"
target_has_atomic_load_store="ptr"
target_has_atomic_primitive_alignment="16"
target_has_atomic_primitive_alignment="32"
target_has_atomic_primitive_alignment="64"
target_has_atomic_primitive_alignment="8"
target_has_atomic_primitive_alignment="ptr"
target_has_reliable_f128
target_has_reliable_f16
target_has_reliable_f16_math
target_object_format="elf"
target_os="linux"
target_pointer_width="64"
target_thread_local
target_vendor="unknown"
ub_checks
unix
[Info ] Imported: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc
[Info ] Generated: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/M.lean
[Info ] Generated: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/translation.json
[Warn ] The crate contains extracted external, unknown definitions: we advise using the option -split-files to allow manually providing these definitions in separate files.
[Info ] Total execution time: 7.337683 seconds
reference/model-evidence/adaptation-constants-probe.rs

Open file

fn main() {
    let largest_power_of_ten = (1024_f64 / std::f64::consts::LOG2_10) as i32;
    let log2_5 = std::f64::consts::LOG2_10 - 1.0;
    let max_exponent_fast_path = (53_f64 / log2_5) as i64;
    let max_exponent_disguised =
        max_exponent_fast_path + (53_f64 / std::f64::consts::LOG2_10) as i64;

    println!("largest_power_of_ten={largest_power_of_ten}");
    println!("max_exponent_fast_path={max_exponent_fast_path}");
    println!("max_exponent_disguised={max_exponent_disguised}");
    println!("neg_nan={:016x}", (-f64::NAN).to_bits());

    for (exponent, value) in IntoIterator::into_iter([
        1e0_f64, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11,
        1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22,
    ])
    .enumerate()
    {
        println!("pow10_{exponent}={:016x}", value.to_bits());
    }
}
reference/model-evidence/binary64-boundary.txt

Open file

Primary evidence for the binary64 boundary
==========================================

Scope and identities
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction, the
adapted Rust crate retained in this repository, and the installed toolchain
named by modeling-input/SETUP.md. The probe source is retained at
reference/model-evidence/binary64-probe.rs; no scratch source is required to
reproduce it.

Toolchain executable:
  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
Target:
  x86_64-unknown-linux-gnu
rustc executable SHA-256:
  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
Probe source SHA-256:
  68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
Compiled probe SHA-256:
  f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
Frozen generated.lean SHA-256:
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9
Frozen modeling-input/manifest.json SHA-256:
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2
Approved Binary64ModelDefault.lean SHA-256 at the time of this record:
  03ae48fb631e6242bd21bf95d0481b66acae05f8cab343c7ab279b3c116538a3

Exact reproduction commands
---------------------------

Run from the repository root:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-probe.rs
  B=.trellis/scratch/binary64-probe
  "$R" --version --verbose
  sha256sum "$R"
  sha256sum "$P"
  "$R" --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$B"
  "$B"

Raw output
----------

  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
  rustc_sha256=162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  probe_sha256=68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
  binary_sha256=f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
  target_arch=x86_64
  mantissa_digits=53
  exponent_mask=7ff0000000000000
  mantissa_mask=000fffffffffffff
  nan=7ff8000000000000
  infinity=7ff0000000000000
  neg_infinity=fff0000000000000
  nan_category=Nan
  infinity_category=Infinite
  zero_category=Zero
  subnormal_category=Subnormal
  normal_category=Normal
  from_bits_to_bits=7ff0000000000001
  neg_payload_nan=fff0000000000001
  neg_zero=8000000000000000
  subnormal_tie_to_even_zero=0000000000000000
  subnormal_tie_to_even_two=0000000000000002
  normal_division=3fb999999999999a
  mul_negative_zero=8000000000000000
  div_negative_zero=8000000000000000
  div_negative_infinity=fff0000000000000
  mul_overflow=7ff0000000000000
  mul_zero_infinity_is_nan=true
  div_zero_zero_is_nan=true
  mul_nan_is_nan=true
  cast_2_pow_53=4340000000000000
  cast_2_pow_53_plus_1=4340000000000000

Pinned Rust library sources
---------------------------

The installed sources below belong to the same named toolchain. Their
SHA-256 identities are:

  core/src/primitive_docs.rs
    c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5
  core/src/num/f64.rs
    84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618
  core/src/clone.rs
    23f9cfc80347fde6b8457d46fbf7a2b8d9f34c8c58601b0b6f714ca2f6d1976b

The exact relevant text of core/src/primitive_docs.rs is:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The referenced primitive-f32 documentation supplies the common primitive
floating-point operation rules quoted next:

  /// - −0.0: IEEE 754 floating-point numbers have a bit that indicates their sign, so −0.0 is a
  ///   possible value. For comparison −0.0 = +0.0, but floating-point operations can carry
  ///   the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
  ///   a negative number rounded to a value smaller than a float can represent also produces −0.0.
  /// - [∞](#associatedconstant.INFINITY) and
  ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
  ///   like `1.0 / 0.0`.
  ///
  /// When a primitive operation (addition, subtraction, multiplication, or
  /// division) is performed on this type, the result is rounded according to the
  /// roundTiesToEven direction defined in IEEE 754-2008. That means:
  ///
  /// - The result is the representable value closest to the true value, if there
  ///   is a unique closest representable value.
  /// - If the true value is exactly half-way between two representable values,
  ///   the result is the one with an even least-significant binary digit.
  /// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
  ///   `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
  ///   true value's sign).

The same file explicitly separates arithmetic NaN choice from exact bitwise
operations; its exact relevant text is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.
  ///
  /// The following rules apply when a NaN value is returned from an arithmetic operation:
  /// - The result has a non-deterministic sign.
  /// - The quiet bit and payload are non-deterministically chosen from
  ///   the following set of options:
  ///
  ///   - **Preferred NaN**: The quiet bit is set and the payload is all-zero.
  ///   - **Quieting NaN propagation**: The quiet bit is set and the payload is copied from any input
  ///     operand that is a NaN. If the inputs and outputs do not have the same payload size (i.e., for
  ///     `as` casts), then
  ///     - If the output is smaller than the input, low-order bits of the payload get dropped.
  ///     - If the output is larger than the input, the payload gets filled up with 0s in the low-order
  ///       bits.
  ///   - **Unchanged NaN propagation**: The quiet bit and payload are copied from any input operand
  ///     that is a NaN. If the inputs and outputs do not have the same size (i.e., for `as` casts), the
  ///     same rules as for "quieting NaN propagation" apply, with one caveat: if the output is smaller
  ///     than the input, dropping the low-order bits may result in a payload of 0; a payload of 0 is not
  ///     possible with a signaling NaN (the all-0 significand encodes an infinity) so unchanged NaN
  ///     propagation cannot occur with some inputs.
  ///   - **Target-specific NaN**: The quiet bit is set and the payload is picked from a target-specific
  ///     set of "extra" possible NaN payloads. The set can depend on the input operand values.
  ///     See the table below for the concrete NaNs this set contains on various targets.
  ///
  /// | `target_arch` | Extra payloads possible on this platform |
  /// |---------------|------------------------------------------|
  /// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |

Thus the model's preferred quiet NaN is one permitted result whenever
multiplication or division returns NaN. This does not claim that arbitrary
Rust arithmetic NaNs have those exact bits. By contrast, unary negation and
bit conversion must preserve all non-sign bits exactly, including for every
NaN payload.

The exact relevant declarations in core/src/num/f64.rs are:

  pub const MANTISSA_DIGITS: u32 = 53;
  pub const NAN: f64 = 0.0_f64 / 0.0_f64;
  pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
  pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
  pub const SIGN_MASK: u64 = 0x8000_0000_0000_0000;
  pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;
  pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff;

  pub const fn classify(self) -> FpCategory {
      // We used to have complicated logic here that avoids the simple bit-based tests to work
      // around buggy codegen for x87 targets (see
      // https://github.com/rust-lang/rust/issues/114479). However, some LLVM versions later, none
      // of our tests is able to find any difference between the complicated and the naive
      // version, so now we are back to the naive version.
      let b = self.to_bits();
      match (b & Self::MANTISSA_MASK, b & Self::EXPONENT_MASK) {
          (0, Self::EXPONENT_MASK) => FpCategory::Infinite,
          (_, Self::EXPONENT_MASK) => FpCategory::Nan,
          (0, 0) => FpCategory::Zero,
          (_, 0) => FpCategory::Subnormal,
          _ => FpCategory::Normal,
      }
  }

  pub const fn to_bits(self) -> u64 {
      // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
      unsafe { mem::transmute(self) }
  }

  pub const fn from_bits(v: u64) -> Self {
      // It turns out the safety issues with sNaN were overblown! Hooray!
      // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
      unsafe { mem::transmute(v) }
  }

The exact scalar clone body in core/src/clone.rs is:

  impl const Clone for $t {
      #[inline(always)]
      fn clone(&self) -> Self {
          *self
      }
  }

Frozen adapted source
---------------------

The relevant retained source file hashes are:

  crate/traits.rs
    9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  crate/dec2flt/decimal.rs
    633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb
  crate/dec2flt/lemire.rs
    fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1
  crate/dec2flt/slow.rs
    93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485

The dispatcher excerpts below are reproduced from the identified file by
running these commands from the repository root:

  sha256sum crate/dec2flt/mod.rs
  sed -n '354,403p' crate/dec2flt/mod.rs
  sed -n '405,422p' crate/dec2flt/mod.rs
  sed -n '465,475p' crate/dec2flt/mod.rs
  sed -n '506,523p' crate/dec2flt/mod.rs

Exact constant and bit-conversion excerpt from crate/traits.rs:

  impl Float for f64 {
      type Int = u64;

      const INFINITY: Self = Self::INFINITY;
      const NEG_INFINITY: Self = Self::NEG_INFINITY;
      const NAN: Self = Self::NAN;
      // Bit-identical to the upstream `-f64::NAN`, without the unsupported
      // compile-time float negation.
      const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);

      const BITS: u32 = 64;
      const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
      const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
      const SIG_MASK: Self::Int = Self::MANTISSA_MASK;

      fn to_bits(self) -> Self::Int {
          self.to_bits()
      }

      fn classify(self) -> FpCategory {
          self.classify()
      }
  }

  impl FloatExt for f64 {
      #[inline]
      fn from_u64_bits(v: u64) -> Self {
          f64::from_bits(v)
      }

Exact derived-constant defaults from crate/traits.rs:

  /// The number of bits in the significand, *excluding* the hidden bit.
  const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;

  /// Number of bits in the exponent.
  const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

  /// The saturated (maximum bitpattern) value of the exponent, i.e. the infinite
  /// representation.
  ///
  /// This shifted fully right, use `EXP_MASK` for the shifted value.
  const EXP_SAT: u32 = (1 << Self::EXP_BITS) - 1;

  /// Signed version of `EXP_SAT` since we convert a lot.
  const INFINITE_POWER: i32 = Self::EXP_SAT as i32;

  /// The exponent bias value. This is also the maximum value of the exponent.
  const EXP_BIAS: u32 = Self::EXP_SAT >> 1;

  /// Minimum exponent value of normal values.
  const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Together with the f64-instance lines `BITS = 64` and
`SIG_TOTAL_BITS = Self::MANTISSA_DIGITS` in the preceding excerpt, these
defaults derive SIG_BITS, EXP_MIN, and INFINITE_POWER from the primitive
mantissa-digit constant rather than introducing independent parameters.

Exact asserted-conversion excerpt from crate/dec2flt/mod.rs:

  #[inline]
  // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
  // `charon::opaque` makes this entire asserted conversion external: both the
  // unchanged `debug_assert!` and the unchanged cast below are in the opaque
  // body. The callers, their fast-path guards, and their surrounding
  // computation remain mechanically visible. A corresponding model binding
  // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
  // exact binary64 conversion at or below that bound.
  #[charon::opaque]
  fn from_u64(v: u64) -> Self {
      debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
      v as _
  }

Here MAX_MANTISSA_FAST_PATH is the retained default 1 << 53.  The attribute is
attached to the function item, so the generated external stands for the whole
method, not merely the cast.  In the enabled-debug configuration the source
succeeds only when v <= 2^53; above it the assertion fails before the cast. On
the successful branch every integer is exactly representable, so the source
cast and the model rounder return the same word.

Exact power-table and assembly excerpts from crate/dec2flt/mod.rs:

  /// Maximum mantissa for the fast-path (`1 << 53` for f64).
  const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;

  const MAX_EXPONENT_FAST_PATH: i64 = 22;
  const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
  const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;

  fn pow10_fast_path(exponent: usize) -> Self {
      // These bit patterns are exactly the source table's rounded binary64
      // literals.  The match is the same masked lookup; it merely keeps float
      // constants out of Aeneas's unsupported constant interpreter.
      match exponent & 31 {
          0 => f64::from_bits(0x3FF0_0000_0000_0000),
          1 => f64::from_bits(0x4024_0000_0000_0000),
          2 => f64::from_bits(0x4059_0000_0000_0000),
          3 => f64::from_bits(0x408F_4000_0000_0000),
          4 => f64::from_bits(0x40C3_8800_0000_0000),
          5 => f64::from_bits(0x40F8_6A00_0000_0000),
          6 => f64::from_bits(0x412E_8480_0000_0000),
          7 => f64::from_bits(0x4163_12D0_0000_0000),
          8 => f64::from_bits(0x4197_D784_0000_0000),
          9 => f64::from_bits(0x41CD_CD65_0000_0000),
          10 => f64::from_bits(0x4202_A05F_2000_0000),
          11 => f64::from_bits(0x4237_4876_E800_0000),
          12 => f64::from_bits(0x426D_1A94_A200_0000),
          13 => f64::from_bits(0x42A2_309C_E540_0000),
          14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
          15 => f64::from_bits(0x430C_6BF5_2634_0000),
          16 => f64::from_bits(0x4341_C379_37E0_8000),
          17 => f64::from_bits(0x4376_3457_85D8_A000),
          18 => f64::from_bits(0x43AB_C16D_674E_C800),
          19 => f64::from_bits(0x43E1_58E4_6091_3D00),
          20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
          21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
          22 => f64::from_bits(0x4480_F0CF_064D_D592),
          _ => f64::from_bits(0),
      }
  }

  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

Exact native-call excerpt from crate/dec2flt/decimal.rs:

  fn can_use_fast_path<F: Lemire>(&self) -> bool {
      F::MIN_EXPONENT_FAST_PATH <= self.exponent
          && self.exponent <= F::MAX_EXPONENT_DISGUISED_FAST_PATH
          && self.mantissa <= F::MAX_MANTISSA_FAST_PATH
          && !self.many_digits
  }

  if !self.can_use_fast_path::<F>() {
      return None;
  }

  let value = if self.exponent <= F::MAX_EXPONENT_FAST_PATH {
      // normal fast path
      let value = F::from_u64(self.mantissa);
      if self.exponent < 0 {
          // Explicit trait calls preserve Rust arithmetic and resolve
          // the generic output type that Charon leaves ambiguous.
          core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
      } else {
          core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
      }
  } else {
      // disguised fast path
      let shift = self.exponent - F::MAX_EXPONENT_FAST_PATH;
      let mantissa = self.mantissa.checked_mul(INT_POW10[shift as usize])?;
      if mantissa > F::MAX_MANTISSA_FAST_PATH {
          return None;
      }
      core::ops::Mul::mul(
          F::from_u64(mantissa),
          F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
      )
  };

  if self.negative {
      Some(core::ops::Neg::neg(value))
  } else {
      Some(value)
  }

The preceding can_use_fast_path body, together with
MAX_MANTISSA_FAST_PATH = 1 << SIG_TOTAL_BITS and SIG_TOTAL_BITS = 53 for f64,
requires the exponent to lie between -22 and 37, the input mantissa to be at
most 2^53, and many_digits to be false. Consequently an ordinary arithmetic
call has a from_u64 operand in 0..=2^53. In its negative-exponent arm,
`-self.exponent` lies in 1..=22; in its nonnegative arm, `self.exponent` lies
in 0..=22. The disguised branch checks its multiplied mantissa against 2^53
before from_u64 and uses table index 22. The paired statement
Binary64NativeCallDomain does not assert this source reachability. It says
conditionally that a from_u64 argument at most 2^53 succeeds with a finite,
non-NaN word and that a table index at most 22 succeeds with a positive,
nonzero, finite, non-NaN word. Applying that conditional statement to the
guards just derived establishes those properties for the actual ordinary and
disguised calls, and in particular establishes that every executed divisor is
nonzero.

Exact special-value excerpt from crate/dec2flt/parse.rs:

  let float = match (register, len) {
      (INF_3, 3) => F::INFINITY,
      (INF_8, 8) => F::INFINITY,
      (NAN, 3) => F::NAN,
      _ => return None,
  };

  if negative { Some(-float) } else { Some(float) }

Thus the executed special route is INFINITY or NAN followed by conditional
negation; it does not select NEG_INFINITY or NEG_NAN directly.

The number helper has the exact source body

  pub fn parse_number(s: &[u8]) -> Option<Decimal> {
      if let Some((float, rest)) = parse_partial_number(s) {
          if rest == s.len() {
              return Some(float);
          }
      }
      None
  }

It returns only the Decimal produced by parse_partial_number; there is no
float type parameter or float operation at this boundary.

Exact dispatcher excerpts from crate/dec2flt/mod.rs
---------------------------------------------------

The entry of `dec2flt_with_trace` strips at most one leading sign, rejects
empty and sign-only inputs, calls `parse_number` on the unsigned body, and
calls `parse_inf_nan` only when `parse_number` returns `None`:

  /// Run the actual dispatcher while retaining its approved internal observations.
  pub fn dec2flt_with_trace<
      'a,
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {
          return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
      };
      let negative = c == b'-';
      if c == b'-' || c == b'+' {
          body = &body[1..];
      }
      if body.is_empty() {
          return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
      }

      let parse_number_result = parse_number(body);
      let parsed = match parse_number_result {
          Some(r) => r,
          None => {
              let parse_inf_nan_result = parse_inf_nan(body, negative);
              return match parse_inf_nan_result {
                  Some(value) => (
                      Ok(value),
                      Dec2FltTrace::Special {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                          result: value,
                      },
                  ),
                  None => (
                      Err(pfe_invalid()),
                      Dec2FltTrace::Invalid {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                      },
                  ),
              };
          }
      };

Thus every `Err` arm shown here returns before `parsed` is available and before
the native, integer, slow, assembly, or final-negation code below it can run.
On a numeric result, the lexical sign is copied into the parsed record before
the native attempt, whose successful result also returns before raw-pair
assembly:

      let mut num = parsed;
      num.negative = negative;
      if !cfg!(feature = "optimize_for_size") {
          let fast_path_result = num.try_fast_path::<F>();
          if let Some(value) = fast_path_result {
              return (
                  Ok(value),
                  Dec2FltTrace::FastPath {
                      body,
                      negative,
                      parse_number_result,
                      fast_path_input: num,
                      fast_path_result,
                      result: value,
                  },
              );
          }
      }

If the native attempt does not return, the selected raw pair is assembled and
the source then conditionally negates it according to the lexical-sign flag:

      let selected_pair = fp;
      // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
      // it neither changes the selected pair nor introduces a new branch or call.
      let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
      let assembly_result = biased_fp_to_float::<F>(fp);
      let lexical_sign_applied = num.negative;
      let result = if lexical_sign_applied {
          core::ops::Neg::neg(assembly_result)
      } else {
          assembly_result
      };

The public `dec2flt` executes that same route and returns its result projection;
it does not reimplement or reorder any parsing or float operation:

  /// Converts a decimal string into a floating point number.
  #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
  pub fn dec2flt<
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &str,
  ) -> Result<F, ParseFloatError> {
      // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
      // clause admits exactly the same instances and lets Charon resolve the
      // explicit, source-equivalent final negation.
      // The public function is now exactly the result projection of the single
      // instrumented implementation.  No conversion step is duplicated, and
      // discarding the trace cannot affect Rust evaluation or the returned bits.
      dec2flt_with_trace::<F>(s).0
  }

The integer-tier helper has the source type and exact executable excerpts
below (long explanatory comments are elided). In particular it returns a raw
BiasedFp and contains no from_u64 cast, primitive float multiplication,
division, negation, or from_bits call:

  pub fn compute_float<F: Float>(q: i64, mut w: u64) -> BiasedFp {
      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);
      let fp_error = BiasedFp::zero_pow2(-1);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if w == 0 || q < F::SMALLEST_POWER_OF_TEN as i64 {
          return fp_zero;
      } else if q > F::LARGEST_POWER_OF_TEN as i64 {
          return fp_inf;
      }
      // Normalize our significant digits, so the most-significant bit is set.
      let lz = w.leading_zeros();
      w <<= lz;
      let (lo, hi) = compute_product_approx(q, w, F::SIG_BITS as usize + 3);
      if lo == 0xFFFF_FFFF_FFFF_FFFF {
          let inside_safe_exponent = (q >= -27) && (q <= 55);
          if !inside_safe_exponent {
              return fp_error;
          }
      }
      let upperbit = (hi >> 63) as i32;
      let mut mantissa = hi >> (upperbit + 64 - F::SIG_BITS as i32 - 3);
      let mut power2 = power(q as i32) + upperbit - lz as i32 - F::EXP_MIN + 1;
      if power2 <= 0 {
          if -power2 + 1 >= 64 {
              // Have more than 64 bits below the minimum exponent, must be 0.
              return fp_zero;
          }
          // Have a subnormal value.
          mantissa >>= -power2 + 1;
          mantissa += mantissa & 1;
          mantissa >>= 1;
          power2 = (mantissa >= (1_u64 << F::SIG_BITS)) as i32;
          return BiasedFp { m: mantissa, p_biased: power2 };
      }
      // Need to handle rounding ties. Normally, we need to round up,
      // but if we fall right in between and we have an even basis, we
      // need to round down.
      if lo <= 1
          && q >= F::MIN_EXPONENT_ROUND_TO_EVEN as i64
          && q <= F::MAX_EXPONENT_ROUND_TO_EVEN as i64
          && mantissa & 0b11 == 0b01
          && (mantissa << (upperbit + 64 - F::SIG_BITS as i32 - 3)) == hi
      {
          // Zero the lowest bit, so we don't round up.
          mantissa &= !1_u64;
      }
      // Round-to-even, then shift the significant digits into place.
      mantissa += mantissa & 1;
      mantissa >>= 1;
      if mantissa >= (2_u64 << F::SIG_BITS) {
          // Rounding up overflowed, so the carry bit is set. Set the
          // mantissa to 1 (only the implicit, hidden bit is set) and
          // increase the exponent.
          mantissa = 1_u64 << F::SIG_BITS;
          power2 += 1;
      }
      // Zero out the hidden bit.
      mantissa &= !(1_u64 << F::SIG_BITS);
      if power2 >= F::INFINITE_POWER {
          // Exponent is above largest normal value, must be infinite.
          return fp_inf;
      }
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact slow-tier source body from crate/dec2flt/slow.rs:

  pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {
      const MAX_SHIFT: usize = 60;
      const NUM_POWERS: usize = 19;
      const POWERS: [u8; 19] =
          [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];

      let get_shift = |n| {
          if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }
      };

      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);

      let mut d = parse_decimal_seq(s);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if d.num_digits == 0 || d.decimal_point < -324 {
          return fp_zero;
      } else if d.decimal_point >= 310 {
          return fp_inf;
      }
      let mut exp2 = 0_i32;
      let mut loop_result = None;
      // Shift right toward (1/2 ... 1].
      while d.decimal_point > 0 && loop_result.is_none() {
          let n = d.decimal_point as usize;
          let shift = get_shift(n);
          d.right_shift(shift);
          if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_zero);
          } else {
              exp2 += shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // Shift left toward (1/2 ... 1].
      while d.decimal_point <= 0 && loop_result.is_none() {
          let shift = if d.decimal_point == 0 {
              match d.digits[0] {
                  digit if digit >= 5 => break,
                  0 | 1 => 2,
                  _ => 1,
              }
          } else {
              get_shift((-d.decimal_point) as _)
          };
          d.left_shift(shift);
          if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_inf);
          } else {
              exp2 -= shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
      exp2 -= 1;
      while F::EXP_MIN > exp2 {
          let mut n = (F::EXP_MIN - exp2) as usize;
          if n > MAX_SHIFT {
              n = MAX_SHIFT;
          }
          d.right_shift(n);
          exp2 += n as i32;
      }
      if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
          return fp_inf;
      }
      // Shift the decimal to the hidden bit, and then round the value
      // to get the high mantissa+1 bits.
      d.left_shift(F::SIG_BITS as usize + 1);
      let mut mantissa = d.round();
      if mantissa >= (1_u64 << (F::SIG_BITS + 1)) {
          // Rounding up overflowed to the carry bit, need to
          // shift back to the hidden bit.
          d.right_shift(1);
          exp2 += 1;
          mantissa = d.round();
          if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
              return fp_inf;
          }
      }
      let mut power2 = exp2 - F::EXP_MIN + 1;
      if mantissa < (1_u64 << F::SIG_BITS) {
          power2 -= 1;
      }
      // Zero out all the bits above the explicit mantissa bits.
      mantissa &= (1_u64 << F::SIG_BITS) - 1;
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact final numeric-sign excerpt from crate/dec2flt/mod.rs:

  let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
  let assembly_result = biased_fp_to_float::<F>(fp);
  let lexical_sign_applied = num.negative;
  let result = if lexical_sign_applied {
      core::ops::Neg::neg(assembly_result)
  } else {
      assembly_result
  };

Thus a numeric execution that reaches the integer/slow selection route
assembles its selected pair with from_bits through biased_fp_to_float and only
then conditionally negates it. A successful try_fast_path returns earlier and
does not perform this assembly. compute_float and parse_long_mantissa produce
raw BiasedFp pairs and do not call from_u64, primitive float multiplication,
division, negation, or from_bits; they do, however, execute constants derived
from SIG_TOTAL_BITS before producing those pairs.

Retained structural-boundary evidence
-------------------------------------

Several adjacent structural bindings cite this same evidence record. Their
pinned library source identities are:

  core/src/num/mod.rs
    f0820f9dfb94999440c8cb4a349736fa21df7e5668e19b6b49e016ff67c05ce3
  core/src/option.rs
    7cf61204b05d98a95bc2e322d5fbfc1f4f91505109971917d9a7fb47151c50e6
  core/src/slice/mod.rs
    354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840
  core/src/str/mod.rs
    284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78

Exact ASCII-digit body from core/src/num/mod.rs:

  pub const fn is_ascii_digit(&self) -> bool {
      matches!(*self, b'0'..=b'9')
  }

Exact Option control-flow bodies from core/src/option.rs:

  fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
      match self {
          Some(v) => ControlFlow::Continue(v),
          None => ControlFlow::Break(None),
      }
  }

  fn from_residual(residual: Option<convert::Infallible>) -> Self {
      match residual {
          None => None,
      }
  }

Exact slice observation bodies from core/src/slice/mod.rs:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

Exact string-byte body from core/src/str/mod.rs:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }
reference/model-evidence/binary64-probe.rs

Open file

#![feature(float_masks)]

use std::num::FpCategory;

fn bits(label: &str, value: f64) {
    println!("{label}={:016x}", value.to_bits());
}

fn main() {
    println!("target_arch={}", std::env::consts::ARCH);
    println!("mantissa_digits={}", f64::MANTISSA_DIGITS);
    println!("exponent_mask={:016x}", f64::EXPONENT_MASK);
    println!("mantissa_mask={:016x}", f64::MANTISSA_MASK);
    bits("nan", f64::NAN);
    bits("infinity", f64::INFINITY);
    bits("neg_infinity", f64::NEG_INFINITY);

    for (label, value) in [
        ("nan_category", f64::NAN),
        ("infinity_category", f64::INFINITY),
        ("zero_category", 0.0),
        ("subnormal_category", f64::from_bits(1)),
        ("normal_category", 1.0),
    ] {
        let category = match value.classify() {
            FpCategory::Nan => "Nan",
            FpCategory::Infinite => "Infinite",
            FpCategory::Zero => "Zero",
            FpCategory::Subnormal => "Subnormal",
            FpCategory::Normal => "Normal",
        };
        println!("{label}={category}");
    }

    let payload_nan_word = 0x7ff0_0000_0000_0001_u64;
    println!(
        "from_bits_to_bits={:016x}",
        f64::from_bits(payload_nan_word).to_bits()
    );
    bits("neg_payload_nan", -f64::from_bits(payload_nan_word));
    bits("neg_zero", -0.0);

    bits("subnormal_tie_to_even_zero", f64::from_bits(1) * 0.5);
    bits("subnormal_tie_to_even_two", f64::from_bits(3) * 0.5);
    bits("normal_division", 1.0 / 10.0);
    bits("mul_negative_zero", -0.0 * 2.0);
    bits("div_negative_zero", -1.0 / f64::INFINITY);
    bits("div_negative_infinity", 1.0 / -0.0);
    bits("mul_overflow", f64::MAX * (1.0 + f64::EPSILON));
    println!("mul_zero_infinity_is_nan={}", (0.0 * f64::INFINITY).is_nan());
    println!("div_zero_zero_is_nan={}", (0.0_f64 / 0.0_f64).is_nan());
    println!("mul_nan_is_nan={}", (f64::NAN * 1.0).is_nan());

    bits("cast_2_pow_53", (1_u64 << 53) as f64);
    bits("cast_2_pow_53_plus_1", ((1_u64 << 53) + 1) as f64);
}
reference/model-evidence/native-boundary.txt

Open file

Native boundary inventory for Binary64Model

Reproduction command (repository root):
  python3 .trellis/scripts/pv_modeling.py inspect-native .

Tool identity for this reproduction:
  Python 3.14.4
  .trellis/scripts/pv_modeling.py
  sha256 915b29822cb4c47b70dabb1dc011514641deb2e428b62347fc31aa898de5e0d4

Top-level result:
  declaration_count: 24

The complete raw inspect-native records for the fourteen F64 externals follow.
They are copied from the command's complete index; no scratch artifact is needed
to review them.

[
  {
    "name": "F64.Insts.CoreCloneClone.clone",
    "extracted_signature": ": F64 → Result F64",
    "rust_symbol": "core::clone::impls::{impl core::clone::Clone for f64}::clone",
    "raw_declaration_sha256": "5eaad5fb9af034045cf0dafed5af85445fe4af9a78958259a15a1faddd1e8f05",
    "source_utf8": "/-- [core::clone::impls::{impl core::clone::Clone for f64}::clone]:\n    Source: '/rustc/library/core/src/clone.rs', lines 698:20-698:43\n    Name pattern: [core::clone::impls::{core::clone::Clone<f64>}::clone]\n    Visibility: public -/\n@[rust_fun \"core::clone::impls::{core::clone::Clone<f64>}::clone\"]\naxiom F64.Insts.CoreCloneClone.clone : F64 → Result F64\n"
  },
  {
    "name": "core.f64.F64.MANTISSA_DIGITS",
    "extracted_signature": ": Result Std.U32",
    "rust_symbol": "core::f64::{f64}::MANTISSA_DIGITS",
    "raw_declaration_sha256": "42b1b0c4d2c2bbc7271748fc78c518391f55bf6517c643667a6561a0ac6e771c",
    "source_utf8": "/-- [core::f64::{f64}::MANTISSA_DIGITS]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 412:4-412:34\n    Name pattern: [core::f64::{f64}::MANTISSA_DIGITS]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::MANTISSA_DIGITS\"]\naxiom core.f64.F64.MANTISSA_DIGITS : Result Std.U32\n"
  },
  {
    "name": "core.f64.F64.NAN",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::NAN",
    "raw_declaration_sha256": "a18685a80db5dbebe39151c7375a0470bb3905fe1228e5598a995a1cf017a768",
    "source_utf8": "/-- [core::f64::{f64}::NAN]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 509:4-509:22\n    Name pattern: [core::f64::{f64}::NAN]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::NAN\"] axiom core.f64.F64.NAN : Result F64\n"
  },
  {
    "name": "core.f64.F64.INFINITY",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::INFINITY",
    "raw_declaration_sha256": "f905901e67400987f49cddd13a8768644bed9e7e3f79c3a81b34879f494a2816",
    "source_utf8": "/-- [core::f64::{f64}::INFINITY]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 512:4-512:27\n    Name pattern: [core::f64::{f64}::INFINITY]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::INFINITY\"]\naxiom core.f64.F64.INFINITY : Result F64\n"
  },
  {
    "name": "core.f64.F64.NEG_INFINITY",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::NEG_INFINITY",
    "raw_declaration_sha256": "85f6e517e439c2f2d5c59aa29884ff38b2381c2f5dd7cb14e7947b232efe7f0e",
    "source_utf8": "/-- [core::f64::{f64}::NEG_INFINITY]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 515:4-515:31\n    Name pattern: [core::f64::{f64}::NEG_INFINITY]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::NEG_INFINITY\"]\naxiom core.f64.F64.NEG_INFINITY : Result F64\n"
  },
  {
    "name": "core.f64.F64.EXPONENT_MASK",
    "extracted_signature": ": Result Std.U64",
    "rust_symbol": "core::f64::{f64}::EXPONENT_MASK",
    "raw_declaration_sha256": "f1054e64392d8f9306e8c69015f0b521d9f387edda8458a3bae4773606f46a71",
    "source_utf8": "/-- [core::f64::{f64}::EXPONENT_MASK]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 615:4-615:32\n    Name pattern: [core::f64::{f64}::EXPONENT_MASK]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::EXPONENT_MASK\"]\naxiom core.f64.F64.EXPONENT_MASK : Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.MANTISSA_MASK",
    "extracted_signature": ": Result Std.U64",
    "rust_symbol": "core::f64::{f64}::MANTISSA_MASK",
    "raw_declaration_sha256": "dc3517faa141b7a7a016e9f73930af3c9af23d3e6d06874440d99eabbc846538",
    "source_utf8": "/-- [core::f64::{f64}::MANTISSA_MASK]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 637:4-637:32\n    Name pattern: [core::f64::{f64}::MANTISSA_MASK]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::MANTISSA_MASK\"]\naxiom core.f64.F64.MANTISSA_MASK : Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.classify",
    "extracted_signature": ": F64 → Result core.num.FpCategory",
    "rust_symbol": "core::f64::{f64}::classify",
    "raw_declaration_sha256": "9fedd442d1d0403c4a7323d8f4e95c51b8bd39bf82d2d0ba357eaaf243e69b78",
    "source_utf8": "/-- [core::f64::{f64}::classify]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 782:4-782:45\n    Name pattern: [core::f64::{f64}::classify]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::classify\"]\naxiom core.f64.F64.classify : F64 → Result core.num.FpCategory\n"
  },
  {
    "name": "core.f64.F64.to_bits",
    "extracted_signature": ": F64 → Result Std.U64",
    "rust_symbol": "core::f64::{f64}::to_bits",
    "raw_declaration_sha256": "ddaec6bb7c36ba6445a5b0b8e52f841240ca2563004e8ce1255caf0e36ec22ae",
    "source_utf8": "/-- [core::f64::{f64}::to_bits]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 1223:4-1223:37\n    Name pattern: [core::f64::{f64}::to_bits]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::to_bits\"]\naxiom core.f64.F64.to_bits : F64 → Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.from_bits",
    "extracted_signature": ": Std.U64 → Result F64",
    "rust_symbol": "core::f64::{f64}::from_bits",
    "raw_declaration_sha256": "af8ee4387cea97d0a353a83d6280c03f3c9f739bf733af5bd39c29909f1b2b19",
    "source_utf8": "/-- [core::f64::{f64}::from_bits]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 1269:4-1269:42\n    Name pattern: [core::f64::{f64}::from_bits]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::from_bits\"]\naxiom core.f64.F64.from_bits : Std.U64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithMulF64F64.mul",
    "extracted_signature": ": F64 → F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Mul<f64, f64> for f64}::mul",
    "raw_declaration_sha256": "20d985819a981e9e80485ce169c1d045ea13fa8796e9314d5b621141aae6deec",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Mul<f64, f64> for f64}::mul]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 350:12-350:41\n    Name pattern: [core::ops::arith::{core::ops::arith::Mul<f64, f64, f64>}::mul]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Mul<f64, f64, f64>}::mul\"]\naxiom F64.Insts.CoreOpsArithMulF64F64.mul : F64 → F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithDivF64F64.div",
    "extracted_signature": ": F64 → F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Div<f64, f64> for f64}::div",
    "raw_declaration_sha256": "1ebb67b412d89328acb4c5dd53168e84fdf26be6cbe1ef49f5a27edbd84ada36",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Div<f64, f64> for f64}::div]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 515:12-515:41\n    Name pattern: [core::ops::arith::{core::ops::arith::Div<f64, f64, f64>}::div]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Div<f64, f64, f64>}::div\"]\naxiom F64.Insts.CoreOpsArithDivF64F64.div : F64 → F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithNegF64.neg",
    "extracted_signature": ": F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Neg<f64> for f64}::neg",
    "raw_declaration_sha256": "bbf93f24bd7cfbc72e47e8bb3a9acc6641df939ad6afafd9ba02c81fe27f7ed0",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Neg<f64> for f64}::neg]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 719:12-719:30\n    Name pattern: [core::ops::arith::{core::ops::arith::Neg<f64, f64>}::neg]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Neg<f64, f64>}::neg\"]\naxiom F64.Insts.CoreOpsArithNegF64.neg : F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64",
    "extracted_signature": ": Std.U64 → Result F64",
    "rust_symbol": "dec2flt_model::num::imp::dec2flt::{impl dec2flt_model::num::imp::dec2flt::Lemire<u64> for f64}::from_u64",
    "raw_declaration_sha256": "ad172bce0522e7e41bceb8c66a5adff962822ee8a9454dfd59b7019086797ba8",
    "source_utf8": "/-- [dec2flt_model::num::imp::dec2flt::{impl dec2flt_model::num::imp::dec2flt::Lemire<u64> for f64}::from_u64]:\n    Source: 'num/imp/../../dec2flt/mod.rs', lines 263:4-266:5\n    Visibility: public -/\naxiom F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64\n  : Std.U64 → Result F64\n"
  }
]
reference/model-evidence/setup-reproduction.txt

Open file

Fresh extraction and composition evidence for Preamble
======================================================

Scope
-----

This record identifies the preparation evidence frozen with this reopened
repository and records the model-support composition reproduced on 2026-09-24.
It is evidence about source, extraction, and composition, not evidence that any
supplied GOAL is true.

Pinned configuration and tools
------------------------------

modeling-input/extraction.json selects the single library crate `crate` with
empty Cargo, Charon, and Aeneas argument lists.  crate/Cargo.toml gives the
`default` feature an empty definition, leaves `optimize_for_size` disabled,
uses the development profile, and explicitly enables overflow checks.
extraction-evidence/COMMAND.json records target x86_64-unknown-linux-gnu,
nightly-2026-06-01, debug assertions, overflow checks, unwind panic handling,
64-bit pointers, and SSE2.

modeling-input/tool-identities.json pins these six executables by SHA-256:

  cargo   54e05dce8c9ca2f638cc3d87ec1a19425b5d0bf1f31aeb48cf4792aec5cadf27
  rustc   162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  rustdoc 2bf660d140310e28146e2c002dc6fcabd957c0a3b740be0419e6f8e5a9c87523
  Charon  6490034f368ce98f3e7ae5a28bf71ed56d03bdf1e3712e71376b96fc55baeade
  Aeneas  9f446d2aaf59e8e705e36d05cb993f1c6ab0e97f8dc6fd2f19907a86ede30922
  Lean    3e0d0d3d801675359f2d4cf9815bfdb417b20b92fdd9d48b3b14c95bbae28bbf

Fresh extraction
----------------

The authoritative reproduction command in modeling-input/manifest.json is:

  python3 .trellis/scripts/pv_modeling.py check-native . --fresh

extraction-evidence/COMMAND.json records the exact argv, environment, and
working directory for every step.  extraction-evidence/RESULT.json records
exit status 0 for rustc identity, Charon/Cargo extraction, Cargo metadata,
Cargo cfg, and Aeneas.  Its primary run produced generated Lean SHA-256:

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9

The same digest is recorded for both `audited_sha256` and `native_sha256` in
modeling-input/manifest.json, whose `byte_identical` field is true, and is the
digest of this repository's generated.lean.  The manifest's accepted setup and
adaptation audits record the successful uncached Cargo, Charon, and Aeneas
checks, the absence of source placeholders, and the exact 24-external native
boundary.  In particular, the corrected source basis is:

  c42107d27bc47c02e4beb4d6db4c47879aecb68a175ab67f7e6c5d5e866a2402c06583f9e94b467095cf9aff1a26a4857650ace006061c1ca5e4c441747ef622

The pinned compatibility report modeling-input/axiom-compatibility.json has
SHA-256

  473825c0fe635e1abc7a734a2035f5df20ed4fe7053403ef2fb6833d7101a016

and checks 2,225 declarations.  It reports no unapproved axiom.  Its only
pending group contains 64 declarations downstream of the absent raw F64
carrier and external operations, exactly the boundary supplied by the authored
model-support layer; the raw extractor output contains no proof placeholder.

External boundary
-----------------

The reproducible command

  python3 .trellis/scripts/pv_modeling.py inspect-native .

returns exactly 24 declarations: fourteen F64 operations, four U64 bit
operations, and six byte/Option/slice/string operations.  Their complete
records are retained in reference/model-evidence/native-boundary.txt and the
structural-operation evidence files.  Tablet/model-support.json has exactly
one exact-signature binding for each declaration.  The whole opaque
`Lemire::from_u64` method has raw declaration SHA-256

  ad172bce0522e7e41bceb8c66a5adff962822ee8a9454dfd59b7019086797ba8

and covers source lines 263:4-266:5, including both the debug assertion and
the conversion.  It is not a cast-only boundary.

Composition and elaboration
---------------------------

After installing all 24 bindings, the exact command

  python3 .trellis/scripts/pv_modeling.py compose-native . --check

returned `matches=true`, `changed=false`, no mismatched files, raw extraction
hash

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9

and equal expected and actual Preamble hashes

  2bf9c25b895e20dd9efe782ae173e2b07b55020eed41a7d9b63b2ae9e1db007c.

The receipt reports 24 bindings, 47 authored definitions, and 170 extracted
modules.  Finally,

  python3 .trellis/scripts/check.py tablet

checked all 236 registered nodes against this composition and exited 0.  This
establishes complete composition and elaboration while leaving the 32 principal
GOAL proofs open for argument development as required.
reference/model-evidence/source-adaptation-delta.diff

Open file

--- upstream/dec2flt/common.rs
+++ crate/dec2flt/common.rs
@@ -14,4 +13,0 @@
-    /// Iteratively parse and consume digits from bytes.
-    ///
-    /// Returns the same bytes with consumed digits being elided. Breaks on invalid digits.
-    fn parse_digits(&self, func: impl FnMut(u8)) -> &Self;
@@ -38,16 +33,0 @@
-    #[inline]
-    fn parse_digits(&self, mut func: impl FnMut(u8)) -> &Self {
-        let mut s = self;
-
-        while let Some((c, rest)) = s.split_first() {
-            let c = c.wrapping_sub(b'0');
-            if c < 10 {
-                func(c);
-                s = rest;
-            } else {
-                break;
-            }
-        }
-
-        s
-    }
@@ -68 +48,4 @@
-#[derive(Debug, Copy, Clone, PartialEq, Eq, Default)]
+// Debug output is not an accepted public or trace observation.  Removing only
+// that implementation preserves the fields, computational derives, and every
+// algorithm operation independently of GOAL truth.
+#[derive(Copy, Clone, PartialEq, Eq, Default)]
--- upstream/dec2flt/decimal.rs
+++ crate/dec2flt/decimal.rs
@@ -28 +28,4 @@
-#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
+// Debug output is absent from the accepted observations.  Removing only that
+// implementation leaves all fields, computational derives, and parser
+// operations unchanged independently of GOAL truth.
+#[derive(Clone, Copy, Default, PartialEq, Eq)]
@@ -56 +59,11 @@
-    pub fn try_fast_path<F: Lemire>(&self) -> Option<F> {
+    pub fn try_fast_path<
+        F: Lemire
+            + core::ops::Div<Output = F>
+            + core::ops::Mul<Output = F>
+            + core::ops::Neg<Output = F>,
+    >(
+        &self,
+    ) -> Option<F> {
+        // `Lemire` already entails these three operator bounds through
+        // `Float`; spelling them directly changes no admitted type.  Charon
+        // needs the direct clauses to resolve each explicit call's `Output`.
@@ -73 +86,3 @@
-                value / F::pow10_fast_path((-self.exponent) as _)
+                // Explicit trait calls preserve Rust arithmetic and resolve
+                // the generic output type that Charon leaves ambiguous.
+                core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
@@ -75 +90 @@
-                value * F::pow10_fast_path(self.exponent as _)
+                core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
@@ -84 +99,4 @@
-            F::from_u64(mantissa) * F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _)
+            core::ops::Mul::mul(
+                F::from_u64(mantissa),
+                F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
+            )
@@ -87 +105,5 @@
-        if self.negative { Some(-value) } else { Some(value) }
+        if self.negative {
+            Some(core::ops::Neg::neg(value))
+        } else {
+            Some(value)
+        }
--- upstream/dec2flt/decimal_seq.rs
+++ crate/dec2flt/decimal_seq.rs
@@ -17 +17,4 @@
-#[derive(Clone, Debug, PartialEq)]
+// Debug output is absent from the accepted observations.  Removing only that
+// implementation preserves the representation, Clone/PartialEq behavior, and
+// every fallback operation independently of GOAL truth.
+#[derive(Clone, PartialEq)]
@@ -176 +179,2 @@
-        while (n >> shift) == 0 {
+        let mut all_zero = false;
+        while (n >> shift) == 0 && !all_zero {
@@ -181 +185,4 @@
-                return;
+                // The source returns here from inside the loop.  Recording the
+                // condition and returning immediately after the loop executes
+                // no intervening operation and preserves the unchanged value.
+                all_zero = true;
@@ -189,0 +197,3 @@
+        if all_zero {
+            return;
+        }
@@ -220,0 +231,51 @@
+// This is exactly the source reverse scan over the already-consumed prefix.
+// It is separate because Aeneas cannot join the loop while `parse_decimal_seq`
+// retains its other slice borrows.  The downward index has the same visitation
+// order and counts precisely the same zero bytes while ignoring dots.
+fn count_trailing_zeros(start: &[u8], consumed_len: usize) -> usize {
+    let mut n_trailing_zeros = 0;
+    let mut i = consumed_len;
+    let mut scanning = true;
+    while i != 0 && scanning {
+        let c = start[i - 1];
+        if c == b'0' || c == b'.' {
+            i -= 1;
+            if c == b'0' {
+                n_trailing_zeros += 1;
+            }
+        } else {
+            scanning = false;
+        }
+    }
+    n_trailing_zeros
+}
+
+// Equivalent to `ByteSlice::parse_digits(|digit| d.try_add_digit(digit))`.
+// An explicit index keeps the closure's mutable borrow out of the enclosing
+// parser context while retaining the same wrapping digit test and updates.
+fn parse_digits_into_seq<'a>(s: &'a [u8], d: &mut DecimalSeq) -> &'a [u8] {
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
+        d.try_add_digit(digit);
+        count += 1;
+    }
+    &s[count..]
+}
+
+// Equivalent to the source exponent `parse_digits` closure.  Bytes after the
+// first nondigit were ignored by the caller, so only the accumulated value is
+// returned; the 0x10000 guard and wrapping digit classification are identical.
+fn parse_decimal_exponent(s: &[u8]) -> i32 {
+    let mut exp_num = 0;
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
+        if exp_num < 0x10000 {
+            exp_num = 10 * exp_num + digit as i32;
+        }
+        count += 1;
+    }
+    exp_num
+}
+
@@ -226,2 +287,5 @@
-    while let Some((&b'0', s_next)) = s.split_first() {
-        s = s_next;
+    // Aeneas rejects the literal-pattern `while let`; this loop performs the
+    // same nonempty check, byte comparison, and one-byte consumption in the
+    // same order, with identical slice bounds.
+    while !s.is_empty() && s[0] == b'0' {
+        s = &s[1..];
@@ -230 +294 @@
-    s = s.parse_digits(|digit| d.try_add_digit(digit));
+    s = parse_digits_into_seq(s, &mut d);
@@ -232,2 +296,2 @@
-    if let Some((b'.', s_next)) = s.split_first() {
-        s = s_next;
+    if !s.is_empty() && s[0] == b'.' {
+        s = &s[1..];
@@ -237,2 +301,4 @@
-            while let Some((&b'0', s_next)) = s.split_first() {
-                s = s_next;
+            // As above, this is the source leading-zero loop written in the
+            // indexed form accepted by Aeneas.
+            while !s.is_empty() && s[0] == b'0' {
+                s = &s[1..];
@@ -250 +316 @@
-        s = s.parse_digits(|digit| d.try_add_digit(digit));
+        s = parse_digits_into_seq(s, &mut d);
@@ -256,8 +322,5 @@
-        let mut n_trailing_zeros = 0;
-        for &c in start[..(start.len() - s.len())].iter().rev() {
-            if c == b'0' {
-                n_trailing_zeros += 1;
-            } else if c != b'.' {
-                break;
-            }
-        }
+        let consumed_len = start.len() - s.len();
+        // Walking an index downward visits exactly the same bytes as
+        // `.iter().rev()` and stops on the same first nonzero nondot byte.  It
+        // also avoids the missing extracted `Iterator::rev` library field.
+        let n_trailing_zeros = count_trailing_zeros(start, consumed_len);
@@ -273 +336,4 @@
-    if let Some((&ch, s_next)) = s.split_first() {
+    // Indexed tests preserve `split_first`'s nonempty guard and byte order but
+    // avoid the loop-context joins Aeneas creates for nested slice patterns.
+    if !s.is_empty() {
+        let ch = s[0];
@@ -275,4 +341,7 @@
-            s = s_next;
-            let mut neg_exp = false;
-            if let Some((&ch, s_next)) = s.split_first() {
-                neg_exp = ch == b'-';
+            s = &s[1..];
+            let mut exp_sign = 1_i32;
+            if !s.is_empty() {
+                let ch = s[0];
+                if ch == b'-' {
+                    exp_sign = -1;
+                }
@@ -280 +349 @@
-                    s = s_next;
+                    s = &s[1..];
@@ -283,7 +352 @@
-            let mut exp_num = 0_i32;
-
-            s.parse_digits(|digit| {
-                if exp_num < 0x10000 {
-                    exp_num = 10 * exp_num + digit as i32;
-                }
-            });
+            let exp_num = parse_decimal_exponent(s);
@@ -291 +354,4 @@
-            d.decimal_point += if neg_exp { -exp_num } else { exp_num };
+            // `exp_num` is bounded by the source's 0x10000 guard, so this
+            // multiplication cannot overflow and equals the original Boolean
+            // choice between `-exp_num` and `exp_num` under checked arithmetic.
+            d.decimal_point += exp_sign * exp_num;
--- upstream/dec2flt/mod.rs
+++ crate/dec2flt/mod.rs
@@ -90 +90 @@
-use common::BiasedFp;
+pub use common::BiasedFp;
@@ -118,4 +118 @@
-    const MAX_EXPONENT_FAST_PATH: i64 = {
-        let log2_5 = f64::consts::LOG2_10 - 1.0;
-        (Self::SIG_TOTAL_BITS as f64 / log2_5) as i64
-    };
+    const MAX_EXPONENT_FAST_PATH: i64;
@@ -128,2 +125 @@
-    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 =
-        Self::MAX_EXPONENT_FAST_PATH + (Self::SIG_TOTAL_BITS as f64 / f64::consts::LOG2_10) as i64;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64;
@@ -144,0 +141,4 @@
+// The f16 Lemire instance is outside the exclusively f64 scope. Disabling it
+// leaves every retained f64 parser/helper/trace body, native decision, checked
+// operation, debug assertion, return value, and accepted observation unchanged.
+#[cfg(any())]
@@ -145,0 +146,7 @@
+    // These are the exact integer results of the upstream compile-time float
+    // formulae for `SIG_TOTAL_BITS = 11`: floor(11/log2(5)) = 4 and
+    // 4 + floor(11/log2(10)) = 7.  Concrete integers avoid unsupported const
+    // float arithmetic without changing either fast-path guard.
+    const MAX_EXPONENT_FAST_PATH: i64 = 4;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 7;
+
@@ -147,3 +154,11 @@
-        #[allow(clippy::use_self)]
-        const TABLE: [f16; 8] = [1e0, 1e1, 1e2, 1e3, 1e4, 0.0, 0.0, 0.];
-        TABLE[exponent & 7]
+        // Each integer is the exact IEEE encoding of the corresponding
+        // upstream table literal; the masked lookup and fallback zeros are
+        // unchanged.  Aeneas cannot translate arrays containing float values.
+        match exponent & 7 {
+            0 => f16::from_bits(0x3C00),
+            1 => f16::from_bits(0x4900),
+            2 => f16::from_bits(0x5640),
+            3 => f16::from_bits(0x63D0),
+            4 => f16::from_bits(0x70E2),
+            _ => f16::from_bits(0),
+        }
@@ -152,0 +168,4 @@
+    // This method is exactly the upstream primitive `u64 as f16` conversion.
+    // Charon extracts the cast, but Aeneas reports it unreachable; making only
+    // this primitive boundary opaque preserves all guards and dispatcher logic.
+    #[charon::opaque]
@@ -158,0 +178,4 @@
+// The f32 Lemire instance is likewise unused by the retained f64
+// specialization, so disabling it cannot affect any retained body or observed
+// f64 execution independently of the correctness GOALs.
+#[cfg(any())]
@@ -159,0 +183,4 @@
+    // Exact upstream formula results for `SIG_TOTAL_BITS = 24`.
+    const MAX_EXPONENT_FAST_PATH: i64 = 10;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 17;
+
@@ -161,4 +188,16 @@
-        #[allow(clippy::use_self)]
-        const TABLE: [f32; 16] =
-            [1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 0., 0., 0., 0., 0.];
-        TABLE[exponent & 15]
+        // Bit constructors preserve the exact table values and masked lookup,
+        // while avoiding Aeneas's unsupported float-valued array constants.
+        match exponent & 15 {
+            0 => f32::from_bits(0x3F80_0000),
+            1 => f32::from_bits(0x4120_0000),
+            2 => f32::from_bits(0x42C8_0000),
+            3 => f32::from_bits(0x447A_0000),
+            4 => f32::from_bits(0x461C_4000),
+            5 => f32::from_bits(0x47C3_5000),
+            6 => f32::from_bits(0x4974_2400),
+            7 => f32::from_bits(0x4B18_9680),
+            8 => f32::from_bits(0x4CBE_BC20),
+            9 => f32::from_bits(0x4E6E_6B28),
+            10 => f32::from_bits(0x5015_02F9),
+            _ => f32::from_bits(0),
+        }
@@ -167,0 +207,4 @@
+    // This is exactly the source `u64 as f32` conversion.  The narrow opaque
+    // boundary is required because Aeneas rejects the primitive cast itself;
+    // its input guard and every caller remain transparent.
+    #[charon::opaque]
@@ -174,0 +218,4 @@
+    // Exact upstream formula results for `SIG_TOTAL_BITS = 53`.
+    const MAX_EXPONENT_FAST_PATH: i64 = 22;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;
+
@@ -176,5 +223,29 @@
-        const TABLE: [f64; 32] = [
-            1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13, 1e14, 1e15,
-            1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22, 0., 0., 0., 0., 0., 0., 0., 0., 0.,
-        ];
-        TABLE[exponent & 31]
+        // These bit patterns are exactly the source table's rounded binary64
+        // literals.  The match is the same masked lookup; it merely keeps float
+        // constants out of Aeneas's unsupported constant interpreter.
+        match exponent & 31 {
+            0 => f64::from_bits(0x3FF0_0000_0000_0000),
+            1 => f64::from_bits(0x4024_0000_0000_0000),
+            2 => f64::from_bits(0x4059_0000_0000_0000),
+            3 => f64::from_bits(0x408F_4000_0000_0000),
+            4 => f64::from_bits(0x40C3_8800_0000_0000),
+            5 => f64::from_bits(0x40F8_6A00_0000_0000),
+            6 => f64::from_bits(0x412E_8480_0000_0000),
+            7 => f64::from_bits(0x4163_12D0_0000_0000),
+            8 => f64::from_bits(0x4197_D784_0000_0000),
+            9 => f64::from_bits(0x41CD_CD65_0000_0000),
+            10 => f64::from_bits(0x4202_A05F_2000_0000),
+            11 => f64::from_bits(0x4237_4876_E800_0000),
+            12 => f64::from_bits(0x426D_1A94_A200_0000),
+            13 => f64::from_bits(0x42A2_309C_E540_0000),
+            14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
+            15 => f64::from_bits(0x430C_6BF5_2634_0000),
+            16 => f64::from_bits(0x4341_C379_37E0_8000),
+            17 => f64::from_bits(0x4376_3457_85D8_A000),
+            18 => f64::from_bits(0x43AB_C16D_674E_C800),
+            19 => f64::from_bits(0x43E1_58E4_6091_3D00),
+            20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
+            21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
+            22 => f64::from_bits(0x4480_F0CF_064D_D592),
+            _ => f64::from_bits(0),
+        }
@@ -183,0 +255,8 @@
+    // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
+    // `charon::opaque` makes this entire asserted conversion external: both the
+    // unchanged `debug_assert!` and the unchanged cast below are in the opaque
+    // body. The callers, their fast-path guards, and their surrounding
+    // computation remain mechanically visible. A corresponding model binding
+    // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
+    // exact binary64 conversion at or below that bound.
+    #[charon::opaque]
@@ -209,5 +288,80 @@
-/// Converts a decimal string into a floating point number.
-#[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
-pub fn dec2flt<F: Lemire>(s: &str) -> Result<F, ParseFloatError> {
-    let mut s = s.as_bytes();
-    let Some(&c) = s.first() else { return Err(pfe_empty()) };
+/// Observable control-flow record for a dispatcher execution.
+///
+/// These variants add no decisions to the conversion: each stores values
+/// already computed at the corresponding source branch.  In particular, the
+/// first component returned by `dec2flt_with_trace` is the ordinary parser
+/// result, so projecting it preserves every public source observation without
+/// assuming any correctness goal.
+pub enum Dec2FltTrace<'a, F> {
+    /// The original string was empty; no helper was called.
+    EmptyInput,
+    /// Removing one lexical sign left an empty body; no helper was called.
+    SignOnly { body: &'a [u8], negative: bool },
+    /// Both lexical helpers returned `None`; no raw pair was selected.
+    Invalid {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        parse_inf_nan_result: Option<F>,
+    },
+    /// The special helper supplied the directly returned value; no pair was selected.
+    Special {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        parse_inf_nan_result: Option<F>,
+        result: F,
+    },
+    /// The ordinary native shortcut supplied the directly returned value.
+    FastPath {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        fast_path_input: decimal::Decimal,
+        fast_path_result: Option<F>,
+        result: F,
+    },
+    /// The integer/slow path selected and assembled one raw pair.
+    Assembled(Dec2FltAssemblyTrace<'a, F>),
+}
+
+/// Full observation record for the dispatcher path that performs final assembly.
+pub struct Dec2FltAssemblyTrace<'a, F> {
+    pub body: &'a [u8],
+    pub negative: bool,
+    pub parse_number_result: Option<decimal::Decimal>,
+    pub fast_path_input: decimal::Decimal,
+    pub fast_path_result: Option<F>,
+    pub first_compute_exponent: i64,
+    pub first_compute_mantissa: u64,
+    pub first_compute_result: BiasedFp,
+    pub second_compute_guard: bool,
+    pub second_compute_exponent: Option<i64>,
+    pub second_compute_mantissa: Option<u64>,
+    pub second_compute_result: Option<BiasedFp>,
+    pub second_equals_first: Option<bool>,
+    pub forced_deferral: bool,
+    pub post_comparison_pair: BiasedFp,
+    pub slow_path_guard: bool,
+    pub slow_path_result: Option<BiasedFp>,
+    pub selected_pair: BiasedFp,
+    pub assembled_word: u64,
+    pub assembly_result: F,
+    pub lexical_sign_applied: bool,
+    pub result: F,
+}
+
+/// Run the actual dispatcher while retaining its approved internal observations.
+pub fn dec2flt_with_trace<
+    'a,
+    F: Lemire
+        + core::ops::Div<Output = F>
+        + core::ops::Mul<Output = F>
+        + core::ops::Neg<Output = F>,
+>(
+    s: &'a str,
+) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
+    let mut body = s.as_bytes();
+    let Some(&c) = body.first() else {
+        return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
+    };
@@ -216 +370 @@
-        s = &s[1..];
+        body = &body[1..];
@@ -218,2 +372,2 @@
-    if s.is_empty() {
-        return Err(pfe_invalid());
+    if body.is_empty() {
+        return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
@@ -222 +376,2 @@
-    let mut num = match parse_number(s) {
+    let parse_number_result = parse_number(body);
+    let parsed = match parse_number_result {
@@ -224,2 +379,24 @@
-        None if let Some(value) = parse_inf_nan(s, negative) => return Ok(value),
-        None => return Err(pfe_invalid()),
+        None => {
+            let parse_inf_nan_result = parse_inf_nan(body, negative);
+            return match parse_inf_nan_result {
+                Some(value) => (
+                    Ok(value),
+                    Dec2FltTrace::Special {
+                        body,
+                        negative,
+                        parse_number_result,
+                        parse_inf_nan_result,
+                        result: value,
+                    },
+                ),
+                None => (
+                    Err(pfe_invalid()),
+                    Dec2FltTrace::Invalid {
+                        body,
+                        negative,
+                        parse_number_result,
+                        parse_inf_nan_result,
+                    },
+                ),
+            };
+        }
@@ -226,0 +404,2 @@
+
+    let mut num = parsed;
@@ -229,2 +408,13 @@
-        if let Some(value) = num.try_fast_path::<F>() {
-            return Ok(value);
+        let fast_path_result = num.try_fast_path::<F>();
+        if let Some(value) = fast_path_result {
+            return (
+                Ok(value),
+                Dec2FltTrace::FastPath {
+                    body,
+                    negative,
+                    parse_number_result,
+                    fast_path_input: num,
+                    fast_path_result,
+                    result: value,
+                },
+            );
@@ -234,15 +424,27 @@
-    // If significant digits were truncated, then we can have rounding error
-    // only if `mantissa + 1` produces a different result. We also avoid
-    // redundantly using the Eisel-Lemire algorithm if it was unable to
-    // correctly round on the first pass.
-    let mut fp = compute_float::<F>(num.exponent, num.mantissa);
-    if num.many_digits
-        && fp.p_biased >= 0
-        && fp != compute_float::<F>(num.exponent, num.mantissa + 1)
-    {
-        fp.p_biased = -1;
-    }
-    // Unable to correctly round the float using the Eisel-Lemire algorithm.
-    // Fallback to a slower, but always correct algorithm.
-    if fp.p_biased < 0 {
-        fp = parse_long_mantissa::<F>(s);
+    let first_compute_exponent = num.exponent;
+    let first_compute_mantissa = num.mantissa;
+    let first_compute_result = compute_float::<F>(first_compute_exponent, first_compute_mantissa);
+    let mut fp = first_compute_result;
+
+    // This expands the source short-circuit conjunction without moving the
+    // checked `mantissa + 1`: that addition and the second helper call still
+    // occur exactly when `many_digits && fp.p_biased >= 0`.
+    let second_compute_guard = num.many_digits && fp.p_biased >= 0;
+    let mut second_compute_exponent = None;
+    let mut second_compute_mantissa = None;
+    let mut second_compute_result = None;
+    let mut second_equals_first = None;
+    let mut forced_deferral = false;
+    if second_compute_guard {
+        let exponent = num.exponent;
+        let mantissa = num.mantissa + 1;
+        let second = compute_float::<F>(exponent, mantissa);
+        let equal = fp == second;
+        second_compute_exponent = Some(exponent);
+        second_compute_mantissa = Some(mantissa);
+        second_compute_result = Some(second);
+        second_equals_first = Some(equal);
+        if !equal {
+            fp.p_biased = -1;
+            forced_deferral = true;
+        }
@@ -249,0 +452 @@
+    let post_comparison_pair = fp;
@@ -251,5 +454,69 @@
-    let mut float = biased_fp_to_float::<F>(fp);
-    if num.negative {
-        float = -float;
-    }
-    Ok(float)
+    let slow_path_guard = fp.p_biased < 0;
+    let mut slow_path_result = None;
+    if slow_path_guard {
+        // The exact slow-path input is the trace's common `body`; the guard
+        // records whether this call occurred, avoiding a duplicate live slice
+        // reference that Aeneas cannot join across this branch.
+        let replacement = parse_long_mantissa::<F>(body);
+        slow_path_result = Some(replacement);
+        fp = replacement;
+    }
+
+    let selected_pair = fp;
+    // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
+    // it neither changes the selected pair nor introduces a new branch or call.
+    let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
+    let assembly_result = biased_fp_to_float::<F>(fp);
+    let lexical_sign_applied = num.negative;
+    let result = if lexical_sign_applied {
+        core::ops::Neg::neg(assembly_result)
+    } else {
+        assembly_result
+    };
+
+    (
+        Ok(result),
+        Dec2FltTrace::Assembled(Dec2FltAssemblyTrace {
+            body,
+            negative,
+            parse_number_result,
+            fast_path_input: num,
+            fast_path_result: None,
+            first_compute_exponent,
+            first_compute_mantissa,
+            first_compute_result,
+            second_compute_guard,
+            second_compute_exponent,
+            second_compute_mantissa,
+            second_compute_result,
+            second_equals_first,
+            forced_deferral,
+            post_comparison_pair,
+            slow_path_guard,
+            slow_path_result,
+            selected_pair,
+            assembled_word,
+            assembly_result,
+            lexical_sign_applied,
+            result,
+        }),
+    )
+}
+
+/// Converts a decimal string into a floating point number.
+#[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
+pub fn dec2flt<
+    F: Lemire
+        + core::ops::Div<Output = F>
+        + core::ops::Mul<Output = F>
+        + core::ops::Neg<Output = F>,
+>(
+    s: &str,
+) -> Result<F, ParseFloatError> {
+    // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
+    // clause admits exactly the same instances and lets Charon resolve the
+    // explicit, source-equivalent final negation.
+    // The public function is now exactly the result projection of the single
+    // instrumented implementation.  No conversion step is duplicated, and
+    // discarding the trace cannot affect Rust evaluation or the returned bits.
+    dec2flt_with_trace::<F>(s).0
--- upstream/dec2flt/parse.rs
+++ crate/dec2flt/parse.rs
@@ -34,3 +34,6 @@
-        let num = s.read_u64();
-        if is_8digits(num) {
-            x = x.wrapping_mul(1_0000_0000).wrapping_add(parse_8digits(num));
+        // `chunk` is the source's local `num` under a nonconflicting name.
+        // The rename has no Rust effect and prevents the Lean backend from
+        // resolving `num.imp...` as a field projection on this local value.
+        let chunk = s.read_u64();
+        if is_8digits(chunk) {
+            x = x.wrapping_mul(1_0000_0000).wrapping_add(parse_8digits(chunk));
@@ -43 +46,6 @@
-    s = s.parse_digits(|digit| {
+    // This is the removed `ByteSlice::parse_digits` call specialized to its
+    // only parser use: identical wrapping digit classification, accumulator
+    // update, and first-nondigit stop, without an unsupported closure state.
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
@@ -45 +53,3 @@
-    });
+        count += 1;
+    }
+    s = &s[count..];
@@ -71,0 +82,38 @@
+// This is the source prefix scan isolated from `parse_partial_number` because
+// Aeneas cannot join its loop context while the enclosing function's other
+// slice borrows are live.  It visits the same bytes, in order, and performs
+// the identical checked `isize` subtraction for every leading dot or zero.
+fn adjust_many_digit_count(start: &[u8], mut n_digits: isize) -> isize {
+    let mut scan_index = 0;
+    let mut scanning = true;
+    while scan_index < start.len() && scanning {
+        let c = start[scan_index];
+        if c == b'.' || c == b'0' {
+            n_digits -= c.saturating_sub(b'0' - 1) as isize;
+            scan_index += 1;
+        } else {
+            scanning = false;
+        }
+    }
+    n_digits
+}
+
+// This is the source many-digit retry as a transparent helper.  Isolating its
+// rebased slices avoids an Aeneas context-join failure; both calls, the branch,
+// the offset arithmetic, and the explicit-exponent addition are unchanged.
+fn parse_many_digits(start: &[u8], int_end: &[u8], exp_number: i64) -> (u64, i64) {
+    let mut mantissa = 0;
+    let mut s = start;
+    try_parse_19digits(&mut s, &mut mantissa);
+    let mut exponent = if mantissa >= MIN_19DIGIT_INT {
+        int_end.offset_from(s)
+    } else {
+        s = &s[1..];
+        let before = s;
+        try_parse_19digits(&mut s, &mut mantissa);
+        -s.offset_from(before)
+    } as i64;
+    exponent += exp_number;
+    (mantissa, exponent)
+}
+
@@ -86,3 +134,10 @@
-    if matches!(s.first(), Some(&x) if x.is_ascii_digit()) {
-        *s_ref = s.parse_digits(|digit| {
-            // no overflows here, saturate well before overflow
+    // `matches!` with a guarded slice pattern triggers an Aeneas internal
+    // error.  This short-circuit test reads the same first byte exactly when
+    // it exists and therefore preserves both acceptance and evaluation order.
+    if !s.is_empty() && s[0].is_ascii_digit() {
+        // Specialized form of the source digit callback.  `count` advances
+        // exactly once per accepted byte and the bound keeps every checked
+        // exponent operation in the same safe range as the source.
+        let mut count = 0;
+        while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+            let digit = s[count].wrapping_sub(b'0');
@@ -92 +147,3 @@
-        });
+            count += 1;
+        }
+        *s_ref = &s[count..];
@@ -155,9 +212,5 @@
-    let mut p = start;
-    while let Some((&c, p_next)) = p.split_first() {
-        if c == b'.' || c == b'0' {
-            n_digits -= c.saturating_sub(b'0' - 1) as isize;
-            p = p_next;
-        } else {
-            break;
-        }
-    }
+    // The indexed loop is equivalent to the source `while let split_first`:
+    // it tests nonemptiness before the same byte read and consumes one byte
+    // only on the two source continuation cases.  This avoids Aeneas's loop
+    // context mismatch without changing checked subtraction or slice bounds.
+    n_digits = adjust_many_digit_count(start, n_digits);
@@ -167,14 +220,3 @@
-        mantissa = 0;
-        let mut s = start;
-        try_parse_19digits(&mut s, &mut mantissa);
-        exponent = if mantissa >= MIN_19DIGIT_INT {
-            // big int
-            int_end.offset_from(s)
-        } else {
-            s = &s[1..];
-            let before = s;
-            try_parse_19digits(&mut s, &mut mantissa);
-            -s.offset_from(before)
-        } as i64;
-        // add back the explicit part
-        exponent += exp_number;
+        let retried = parse_many_digits(start, int_end, exp_number);
+        mantissa = retried.0;
+        exponent = retried.1;
--- upstream/dec2flt/slow.rs
+++ crate/dec2flt/slow.rs
@@ -48,0 +49 @@
+    let mut loop_result = None;
@@ -50 +51 @@
-    while d.decimal_point > 0 {
+    while d.decimal_point > 0 && loop_result.is_none() {
@@ -55 +56,7 @@
-            return fp_zero;
+            // The source returns `fp_zero` at this exact point.  Storing that
+            // result and terminating the loop performs no later loop update;
+            // the return below is therefore behavior-identical and avoids an
+            // Aeneas restriction on returns from nested loop translation.
+            loop_result = Some(fp_zero);
+        } else {
+            exp2 += shift as i32;
@@ -57 +64,3 @@
-        exp2 += shift as i32;
+    }
+    if let Some(result) = loop_result {
+        return result;
@@ -60 +69 @@
-    while d.decimal_point <= 0 {
+    while d.decimal_point <= 0 && loop_result.is_none() {
@@ -72 +81,6 @@
-            return fp_inf;
+            // This records the source's immediate `fp_inf` return.  Since the
+            // guarded loop exits before the exponent update, moving the return
+            // just below the loop preserves every state transition.
+            loop_result = Some(fp_inf);
+        } else {
+            exp2 -= shift as i32;
@@ -74 +88,3 @@
-        exp2 -= shift as i32;
+    }
+    if let Some(result) = loop_result {
+        return result;
--- upstream/traits.rs
+++ crate/traits.rs
@@ -11 +11 @@
-use crate::{f64, fmt, ops};
+use crate::{f64, ops};
@@ -14 +14,5 @@
-pub trait CastInto<T: Copy>: Copy {
+// All uses are through `Int`, which independently requires `Self: Copy`, and
+// every implementation here is a primitive Copy type.  Removing that redundant
+// supertrait changes no call or value but prevents Aeneas from emitting two
+// identically named `Copy` fields for `Self` and `T` in the Lean structure.
+pub trait CastInto<T: Copy> {
@@ -18,0 +23,4 @@
+// The accepted observations contain no formatting behavior.  Removing the
+// `Debug` supertrait changes neither the concrete primitive integer instances
+// nor any operation used by the algorithms, so it preserves the f64
+// specialization and every inventoried observation independently of GOAL truth.
@@ -23 +30,0 @@
-    + fmt::Debug
@@ -52 +59,6 @@
-int!(u16, u32, u64);
+// Only `u64` is the associated integer of the retained `f64` specialization.
+// The removed `u16`/`u32` instances served only the excluded `f16`/`f32`
+// implementations, so their removal changes no f64 public, helper, or trace
+// body, native decision, checked arithmetic, debug assertion, return value, or
+// accepted observation.
+int!(u64);
@@ -55,0 +68,6 @@
+// Formatting is outside every accepted public and trace observation. `Add`,
+// equality, ordering, default construction, and cloning are also unused by all
+// retained generic bodies; only `Copy`, `Mul`, `Div`, and `Neg` are required.
+// Removing those unused requirements admits the same f64 implementation and
+// changes no f64 body, native decision, checked arithmetic, debug assertion,
+// return value, or trace observation, independently of any GOAL's truth.
@@ -61,6 +78,0 @@
-    + ops::Add<Output = Self>
-    + fmt::Debug
-    + PartialEq
-    + PartialOrd
-    + Default
-    + Clone
@@ -134,4 +146 @@
-    const LARGEST_POWER_OF_TEN: i32 = {
-        let largest_pow2 = Self::EXP_BIAS + 1;
-        pow2_to_pow10(largest_pow2 as i64) as i32
-    };
+    const LARGEST_POWER_OF_TEN: i32;
@@ -175,19 +184 @@
-    fn integer_decode(self) -> (u64, i16, i8) {
-        let bits = self.to_bits();
-        let sign: i8 = if bits >> (Self::BITS - 1) == Self::Int::ZERO { 1 } else { -1 };
-        let mut exponent: i16 = ((bits & Self::EXP_MASK) >> Self::SIG_BITS).cast();
-        let mantissa = if exponent == 0 {
-            (bits & Self::SIG_MASK) << 1
-        } else {
-            (bits & Self::SIG_MASK) | (Self::Int::ONE << Self::SIG_BITS)
-        };
-        // Exponent bias + mantissa shift
-        exponent -= (Self::EXP_BIAS + Self::SIG_BITS) as i16;
-        (mantissa.into(), exponent, sign)
-    }
-}
-
-/// Solve for `b` in `10^b = 2^a`
-const fn pow2_to_pow10(a: i64) -> i64 {
-    let res = (a as f64) / f64::consts::LOG2_10;
-    res as i64
+    fn integer_decode(self) -> (u64, i16, i8);
@@ -196,0 +188,4 @@
+// The f16 implementation is outside the exclusively f64 scope. Disabling it
+// leaves every retained f64 public/helper/trace body and all of its decisions,
+// checked operations, assertions, return values, and observations unchanged.
+#[cfg(any())]
@@ -203 +198,4 @@
-    const NEG_NAN: Self = -Self::NAN;
+    // `from_bits` produces exactly the bit pattern obtained by negating the
+    // upstream canonical NaN.  This avoids Aeneas's unsupported float unop
+    // while preserving the constant, including its sign and payload bits.
+    const NEG_NAN: Self = f16::from_bits(0xFE00);
@@ -211,0 +210,2 @@
+    // Exact value of trunc(16 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 4;
@@ -223,0 +224,3 @@
+// `FloatExt for f16` is used only by the excluded f16 specialization; it is
+// irrelevant to all retained f64 computation and observations listed above.
+#[cfg(any())]
@@ -228,0 +232,16 @@
+
+    // Specializing the upstream default removes only unsupported associated-
+    // integer operator resolution; these are the same bit operations with
+    // `Self::Int = u16` and the same exponent-bias subtraction.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 15 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 10) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u16 << 10)
+        };
+        exponent -= 15 + 10;
+        (mantissa as u64, exponent, sign)
+    }
@@ -230,0 +250,3 @@
+// The f32 implementation is outside the exclusively f64 scope. Disabling it
+// does not alter any retained f64 computation, assertion, result, or trace.
+#[cfg(any())]
@@ -237 +259,3 @@
-    const NEG_NAN: Self = -f32::NAN;
+    // Bit-identical to the upstream `-f32::NAN`, without the unsupported
+    // compile-time float negation.
+    const NEG_NAN: Self = f32::from_bits(0xFFC0_0000);
@@ -245,0 +270,2 @@
+    // Exact value of trunc(128 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 38;
@@ -256,0 +283,3 @@
+// `FloatExt for f32` likewise has no use in any retained f64 body or accepted
+// observation and is disabled without changing f64 execution.
+#[cfg(any())]
@@ -261,0 +291,16 @@
+
+    // This is the upstream default after substituting `Self::Int = u32`;
+    // concreteness is needed only because Charon cannot resolve the generic
+    // associated-integer shifts and bit operators for Aeneas.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 31 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 23) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u32 << 23)
+        };
+        exponent -= 127 + 23;
+        (mantissa as u64, exponent, sign)
+    }
@@ -270 +315,3 @@
-    const NEG_NAN: Self = -Self::NAN;
+    // Bit-identical to the upstream `-f64::NAN`, without the unsupported
+    // compile-time float negation.
+    const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);
@@ -278,0 +326,2 @@
+    // Exact value of trunc(1024 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 308;
@@ -293,0 +343,16 @@
+    }
+
+    // This is the upstream default after substituting `Self::Int = u64`;
+    // it preserves every decoded field while avoiding unsupported generic
+    // associated-integer operator resolution.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 63 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 52) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u64 << 52)
+        };
+        exponent -= 1023 + 52;
+        (mantissa, exponent, sign)
reference/model-evidence/source-adaptation-delta.txt

Open file

Primary inventory and preservation analysis of the upstream-to-crate delta
============================================================================

Method and complete file inventory
----------------------------------

This record compares the supplied files in upstream/ with the frozen adapted
crate/.  It treats the sources and their control flow as primary evidence; it
does not use a prior route decision as semantic proof and makes no assertion
that a supplied GOAL is true.  The exact raw aggregate diff is retained as
reference/model-evidence/source-adaptation-delta.diff.  It was generated from
the repository root by this exact command (the for-list is the complete
LC_ALL=C-sorted upstream inventory, identical files contribute zero bytes,
labels are literal root-relative paths, hunks are concatenated in listed
order, status 1 is accepted as diff's expected ``files differ'' status, and
every other nonzero status aborts):

  export LC_ALL=C
  artifact=reference/model-evidence/source-adaptation-delta.diff
  : > "$artifact"
  saw_difference=0
  for supplied in \
    dec2flt/common.rs \
    dec2flt/decimal.rs \
    dec2flt/decimal_seq.rs \
    dec2flt/fpu.rs \
    dec2flt/lemire.rs \
    dec2flt/mod.rs \
    dec2flt/parse.rs \
    dec2flt/slow.rs \
    dec2flt/table.rs \
    traits.rs
  do
    if diff --unified=0 --label "upstream/$supplied" --label "crate/$supplied" \
        "upstream/$supplied" "crate/$supplied" >> "$artifact"; then
      :
    else
      diff_status=$?
      if [ "$diff_status" -ne 1 ]; then
        exit "$diff_status"
      fi
      saw_difference=1
    fi
  done
  test "$saw_difference" -eq 1
  sha256sum "$artifact"

The command used GNU diffutils 3.12 at /usr/bin/diff, whose SHA-256 is
dfab4814355b488934cf8c63ce96d94184ea3d9b5e4f9be50278ad8e080168f5.
Its actual final output was:

  fdf88cabfe40ce962d2bd5eda22eb5b3cbbf8a936a81b896e98698bf472cd0e4  reference/model-evidence/source-adaptation-delta.diff

The retained byte stream is 38,813 bytes and 933 lines.  The complete source
inventory and independently reproduced file hashes are:

  supplied path                 upstream SHA-256                                                   crate SHA-256                                                      status
  dec2flt/common.rs             fc64094721ff23e08fcba013154d04dec3fe986cae5ffd73a20f86049980aace   4c4be815335a7b176527eb1345e662890caa48181a0a4f814594339016cab18e   changed
  dec2flt/decimal.rs            3c164785e1bc3f3b48aa9c212dd6c4ab535fe828523af9fa584df4c7b1e60e0d   633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb   changed
  dec2flt/decimal_seq.rs        c0c1c6028e3f57cefc3de7635a94788e9180f5ebcedc7a334ec8dbac786ec788   4aa4ecf9f31970033093d73238d4f2c72d433639bbe467c0741b185807380bd9   changed
  dec2flt/fpu.rs                16cf9ec154d477ab3d4184a01fb4b9ed7c59f0228cc55589d393c40a61b19d8f   16cf9ec154d477ab3d4184a01fb4b9ed7c59f0228cc55589d393c40a61b19d8f   identical
  dec2flt/lemire.rs             fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1   fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1   identical
  dec2flt/mod.rs                7198e238c554b692405537a446b3526ad66805ec2900cd0e299f10c51402a44a   ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d   changed
  dec2flt/parse.rs              9daf21ab9445a84552535152f376eef8c30f3d5827296c0645f5952d3b22bbf1   50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f   changed
  dec2flt/slow.rs               43e7aba32d7431bbf0e1bbcb4c334eaffb23eb66891c7e45abe799c5235cc0d2   93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485   changed
  dec2flt/table.rs              6eb59023784bd84cb6fb074c70da8a99bef72bc2a2ea179b0da457ca1ee00abb   6eb59023784bd84cb6fb074c70da8a99bef72bc2a2ea179b0da457ca1ee00abb   identical
  traits.rs                     66a02c44d72dfcc3ddae7e34a290e390dabaf98c5911b283d2d97f2f0075a44e   9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf   changed

The standalone package adds four files having no supplied counterpart:

  crate/Cargo.toml              2040ce5dc92c51b5245113f97682b692b876aa57708b5c7c483425ba152943c8
  crate/lib.rs                  1df2b8bcb2f52068d05a6343923716d0ef4475abdef34a0de3fe7cb8dc2ba95b
  crate/num/mod.rs              d9ac4f964d124bd4660914dc4c80bbb14f48d7851f9a8edc71a0931e9fce37b3
  crate/num/imp/mod.rs          df09b97393e97b23b0a558c2fcbbf4e75dd9d68338f1e83f168bab80a37a31f1

Thus fpu.rs, lemire.rs, and the complete 671-line table.rs, including their
algorithmic constants and tables, are byte-identical.  The following sections
account for every other file and every changed hunk.

Namespace and error shell
-------------------------

crate/lib.rs:1-12 is a no_std crate root that re-exports core::f64 and
core::ops and introduces the same num module path expected by the supplied
slice.  crate/num/imp/mod.rs:1-10 uses path attributes to place traits.rs and
dec2flt/mod.rs at core::num::imp-like module names.  These declarations add no
wrapper call or computation.  crate/num/mod.rs:1 re-exports
core::num::FpCategory.  crate/num/mod.rs:3-26 defines a local private
FloatErrorKind and ParseFloatError shell so the standalone package can name
the parser's error type.  The pursued GOALs observe only panic versus normal
return and, on normal return, the outer Result's Ok/Err discriminant; they do
not observe the private error kind or formatting.  No identity is asserted
between this local shell and an unpinned core error payload.
crate/Cargo.toml:5-22 selects the package, empty default features, and
checked-overflow profiles.  The configuration and fresh build are independently
reproduced in setup-reproduction.txt.

Visibility, derives, and bounds
-------------------------------

upstream/dec2flt/mod.rs:90 versus crate/dec2flt/mod.rs:90 changes only the
visibility of the existing BiasedFp import so a goal-facing caller can name the
same type.  It changes neither layout nor execution.

upstream/dec2flt/common.rs:68 and decimal.rs:28 and decimal_seq.rs:17 include
Debug derives.  The corresponding crate spans common.rs:48-51,
decimal.rs:28-31, and decimal_seq.rs:17-20 remove only Debug.  Copy, Clone,
PartialEq, Eq, and Default used by computation remain where present, and no
accepted observation formats these records.

upstream/traits.rs:11-52 versus crate/traits.rs:11-64 removes formatting from
Int, removes a redundant Copy supertrait from CastInto, and instantiates Int
only for u64.  Every call of CastInto is through Int, which still requires
Copy; all retained concrete values are primitive Copy values.  The removed
u16/u32 instances are associated only with the disabled f16/f32 formats.

upstream/traits.rs:55-76 versus crate/traits.rs:67-80 removes Add, Debug,
PartialEq, PartialOrd, Default, and Clone from Float while retaining Copy, Mul,
Div, and Neg.  A search of all retained generic bodies shows no call using a
removed operation.  upstream/dec2flt/decimal.rs:56-89 versus
crate/dec2flt/decimal.rs:59-111 and upstream/dec2flt/mod.rs:209-256 versus
crate/dec2flt/mod.rs:352-520 add direct Div, Mul, and Neg bounds already implied
by Lemire -> Float, and replace operator notation with calls to those same
traits.  Rust desugars the original /, *, and unary - to these trait calls, so
the operands, call order, result, and admitted f64 specialization are unchanged.

Exact constants, tables, and specialized decoding
-------------------------------------------------

The source formulae and decimal-literal table were evaluated directly by the
pinned rustc using the retained source
reference/model-evidence/adaptation-constants-probe.rs.  The command was:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/adaptation-constants-probe.rs
  B=.trellis/scratch/adaptation-constants-probe
  "$R" --edition 2024 --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$P" "$B"
  "$B"

The source hash was
b5a4a2cba0c08053cb9a816adb1ba5dbd160bf3928bdf5ccf56b7ae83aaa2aa5
and the resulting executable hash was
b02d2f6deb675f17d0dbdc22e57a67d7692689f7a2b0d7b125556c35c4b8a4a5.
Raw output was:

  largest_power_of_ten=308
  max_exponent_fast_path=22
  max_exponent_disguised=37
  neg_nan=fff8000000000000
  pow10_0=3ff0000000000000
  pow10_1=4024000000000000
  pow10_2=4059000000000000
  pow10_3=408f400000000000
  pow10_4=40c3880000000000
  pow10_5=40f86a0000000000
  pow10_6=412e848000000000
  pow10_7=416312d000000000
  pow10_8=4197d78400000000
  pow10_9=41cdcd6500000000
  pow10_10=4202a05f20000000
  pow10_11=42374876e8000000
  pow10_12=426d1a94a2000000
  pow10_13=42a2309ce5400000
  pow10_14=42d6bcc41e900000
  pow10_15=430c6bf526340000
  pow10_16=4341c37937e08000
  pow10_17=4376345785d8a000
  pow10_18=43abc16d674ec800
  pow10_19=43e158e460913d00
  pow10_20=4415af1d78b58c40
  pow10_21=444b1ae4d6e2ef50
  pow10_22=4480f0cf064dd592

upstream/traits.rs:134-137 computes LARGEST_POWER_OF_TEN through a Float
default, and upstream/traits.rs:175-193 gives the generic integer_decode and
the helper used by that constant.  crate/traits.rs:146 makes the constant an
associated requirement; crate/traits.rs:309-359 supplies the retained f64
values and decoder after substituting BITS=64, SIG_BITS=52, EXP_BIAS=1023,
EXPONENT_MASK, MANTISSA_MASK, and the u64 operations.  Each source expression
then becomes exactly the corresponding crate expression: sign is bits>>63,
exponent is (bits & mask)>>52 cast to i16, the subnormal mantissa is shifted
once, the normal mantissa receives 1<<52, and 1023+52 is subtracted.  The
resulting tuple and every bit operation are unchanged.  The probe output above
shows that the computed f64 LARGEST_POWER_OF_TEN is 308 and that the source
-f64::NAN word is fff8000000000000, exactly crate/traits.rs:315-327; the
independent binary64-boundary.txt record fixes the masks and primitive bit
semantics used by the decoder.

upstream/dec2flt/mod.rs:118-129 gives the two Lemire default formulae.
crate/dec2flt/mod.rs:115-128 makes them associated requirements, and the
retained f64 instance at crate/dec2flt/mod.rs:217-220 supplies 22 and 37, the
integer results of the two source formulae for 53 significand bits.
upstream/dec2flt/mod.rs:176-181 indexes a 32-entry f64 table with exponent&31.
crate/dec2flt/mod.rs:222-251 performs the same masked selection using from_bits:
cases 0 through 22 are the exact pinned binary64 words printed above for 1e0 through 1e22 and
all other cases return positive zero, as did entries 23 through 31.  The full
word list and the pinned float semantics are recorded in binary64-boundary.txt.
The analogous f16/f32 replacements at crate/dec2flt/mod.rs:145-215 and
crate/traits.rs:187-307 lie under cfg(any()) and cannot enter this build.

Whole-function from_u64 opacity
-------------------------------

upstream/dec2flt/mod.rs:184-188 and crate/dec2flt/mod.rs:263-266 have the same
f64 body: the same enabled debug_assert that v <= 1<<53, followed by the same
primitive `v as f64` cast.  The sole semantic-boundary annotation is
#[charon::opaque] at crate line 262, syntactically attached to the function
item.  It therefore hides the entire from_u64 body from translation: neither
the debug assertion nor the cast is transparent in the extraction.  The
callers, their guards, and the surrounding native-path computation remain
transparent.  The fresh external inventory contains the whole method as the
single external F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64.  Its
separately reviewed ModelF64FromU64 binding supplies exactly successful integer
conversion for v <= 2^53 and assertion failure otherwise.

Digit scans, slice patterns, and helper extraction
-------------------------------------------------

upstream/dec2flt/common.rs:14-53 supplies ByteSlice::parse_digits: repeatedly
split_first, wrapping-subtract ASCII zero, invoke the closure exactly when the
result is below 10, consume that byte, and stop at the first other byte.
crate/dec2flt/common.rs:11-36 removes only this method.  Its complete set of
uses is replaced as follows.

* upstream/dec2flt/parse.rs:31-48 versus crate/dec2flt/parse.rs:31-58 keeps the
  eight-byte loop, wrapping multiply/add, and then performs the same digit test,
  accumulator update, and one-byte progress with an index.  The local rename
  num to chunk is lexical only.
* upstream/dec2flt/parse.rs:83-97 versus crate/dec2flt/parse.rs:131-153 expands
  matches!/parse_digits into the same nonempty first-digit guard, the same
  0x10000 bounded exponent update, the same first-nondigit suffix, and the same
  final sign.  The bound is tested before each checked multiply and addition,
  exactly as in the closure.
* upstream/dec2flt/decimal_seq.rs:220-295 versus
  crate/dec2flt/decimal_seq.rs:231-359 extracts parse_digits_into_seq,
  parse_decimal_exponent, and count_trailing_zeros.  The digit helpers use the
  same wrapping byte test, forward order, try_add_digit state transition, and
  0x10000 exponent guard.  The reverse helper visits indices consumed_len-1
  down to zero, increments only for ASCII zero, ignores a decimal point, and
  stops at the first other byte, exactly the original iter().rev() loop.

In all these replacements, indexing occurs only under count<len or !is_empty,
so it has the same bounds as split_first.  Slicing advances by exactly the same
one or eight bytes.  No wrapping operation is replaced by checked arithmetic,
and no checked source operation is replaced by wrapping arithmetic.

upstream/dec2flt/parse.rs:155-181 versus crate/dec2flt/parse.rs:82-119 and
212-226 moves two loops into adjust_many_digit_count and parse_many_digits.
The prefix helper visits the same start bytes in the same order, performs the
same saturating_sub and checked isize subtraction, and stops on the same byte.
The retry helper makes the same first 19-digit call, tests the same threshold,
makes the same one-byte rebase and second call in the alternate branch,
computes the same offset with the same sign, casts it to i64, and performs the
same checked addition of exp_number last.  Thus any large-input panic is
preserved rather than excluded.

upstream/dec2flt/decimal_seq.rs:226-295 versus
crate/dec2flt/decimal_seq.rs:284-359 replaces literal split_first patterns by
nonempty index tests.  The leading-zero scans, optional decimal point, optional
exponent marker, optional exponent sign, and suffixes occur in the same order.
The crate's exp_sign*exp_num equals the source choice between exp_num and
-exp_num because exp_num is bounded by the unchanged 0x10000 guard; the final
decimal_point checked addition is in the same position.  Casts of lengths to
i32 and every subsequent checked update remain unchanged, including their
large-input behavior.

Delayed returns
---------------

upstream/dec2flt/decimal_seq.rs:173-198 versus
crate/dec2flt/decimal_seq.rs:176-203 replaces one return inside right_shift's
loop by all_zero=true, exits because !all_zero is the loop guard, and returns
immediately afterward.  No decimal_point, digit, index, or arithmetic update
occurs between the original and delayed return.

upstream/dec2flt/slow.rs:46-76 versus crate/dec2flt/slow.rs:46-94 replaces two
nested-loop returns by loop_result.  In the zero branch it records fp_zero,
skips the source-skipped exp2 addition, exits through is_none(), and returns.
In the infinity branch it records fp_inf, skips the source-skipped exp2
subtraction, exits, and returns.  On all other iterations it performs the same
shift, checked state changes, and exponent update.  Lines 95-126 after these
returns are otherwise the source lines 77-110 unchanged.

Dispatcher trace and public projection
--------------------------------------

upstream/dec2flt/mod.rs:209-256 is the whole original dispatcher.
crate/dec2flt/mod.rs:285-349 declares trace data only, lines 352-505 execute the
instrumented dispatcher, and lines 507-520 define public dec2flt as its first
projection.  Comparing the bodies gives the following branch-by-branch
correspondence.

* Both call as_bytes, inspect the first byte, reject empty input before a helper,
  remove at most one sign, and reject a sign-only body.  The trace stores the
  already obtained body and Boolean sign.
* Both call parse_number first on that exact body.  Only None calls
  parse_inf_nan on the same body and sign.  Its Some is returned directly and
  its None returns invalid.  The trace stores those existing Option values.
* Both overwrite only Decimal.negative, test the same compile-time
  !optimize_for_size condition, call try_fast_path once, and return its Some
  directly.  The trace stores the copied Decimal and Option; Decimal is Copy.
* Both call compute_float first with num.exponent and num.mantissa.  The crate's
  second_compute_guard is exactly the first two conjuncts of the source
  short-circuit.  Therefore the checked mantissa+1 and second compute_float call
  occur under precisely the source guard, in the same order.  The same pair
  comparison either retains fp or changes only p_biased to -1.
* Both test the post-comparison p_biased<0 once, call parse_long_mantissa on the
  unchanged body exactly when true, and otherwise retain the same pair.  The
  trace records both guard and result without another helper call.
* The extra assembled_word expression is the same cast, shift, and OR performed
  by biased_fp_to_float at upstream lines 202-206 and crate lines 278-282; these
  integer operations neither panic nor mutate fp.  Both then call assembly once
  on the selected pair and apply unary negation exactly when num.negative.
  Public dec2flt returns the identical Result first component.

Consequently the trace does not infer uncomputed data: it records the exact
variant; sign-stripped body and sign; numeric/special Options; fast-path input
and result; first and conditional second integer operands and results;
comparison, forced-deferral and post-comparison pair; slow guard and result;
selected pair; assembled word; pre-sign assembly word; sign-application fact;
and final word.  Special and native direct returns create no selected pair.
All source call order, guards, checked arithmetic, mutable-state transitions,
panic points, and returned Result/F64 observations remain in place.

F64-only restriction
--------------------

crate/traits.rs:187-307 and crate/dec2flt/mod.rs:140-215 add cfg(any()) to the
f16/f32 Float, FloatExt, and Lemire implementations.  crate/traits.rs:59-64
retains only u64 Int.  The retained f64 implementations are
crate/traits.rs:309-360 and crate/dec2flt/mod.rs:217-264.  Every goal-facing
function remains generic in the source and extraction, but each pursued source
subject specializes it to f64, whose associated integer is u64.  There is no
dynamic format dispatch, so removing other impl blocks cannot change an f64
call, its native decision, checks, result word, NaN classification, fields, or
trace.  The fresh boundary inventory in setup-reproduction.txt confirms that
no removed-format external remains.

Conclusion
----------

The inventory is exhaustive: three supplied files are identical, seven have
all hunks classified above, and the four added files are the package shell.
For the configured f64 specialization, the adapted crate has the same input
domains, branch order, guards, checked/wrapping distinction, state transitions,
panic versus normal behavior, and public/helper observations as the supplied
source.  The only new observations are the trace fields, each copied from an
existing value or computed by the same pure assembly expression.  This
conclusion is independent of whether any parser-correctness GOAL is true.
reference/model-evidence/source-valid-byte-slice-probe.out

Open file

arch=x86_64
usize_bits=64
isize_max=9223372036854775807
u8_size=1
reference/model-evidence/source-valid-byte-slice-probe.rs

Open file

fn main() {
    println!("arch={}", std::env::consts::ARCH);
    println!("usize_bits={}", usize::BITS);
    println!("isize_max={}", isize::MAX);
    println!("u8_size={}", std::mem::size_of::<u8>());
}
reference/model-evidence/source-valid-byte-slice.txt

Open file

Source-valid byte-slice and string domain evidence
==================================================

Scope and pinned identities
---------------------------

All commands below were run from the repository root.  The configured compiler
is:

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

Its SHA-256 is:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b

The exact identity commands were:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  sha256sum "$R"
  "$R" --version --verbose
  "$R" --target x86_64-unknown-linux-gnu --print cfg | LC_ALL=C sort | \
    rg 'target_(arch|pointer_width)'

Their relevant raw output was:

  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
  target_arch="x86_64"
  target_pointer_width="64"

Retained configured-target probe
--------------------------------

The retained probe source is
reference/model-evidence/source-valid-byte-slice-probe.rs.  It was compiled
for the configured target and executed with this exact command, which depends
only on the retained source and the pinned compiler:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/source-valid-byte-slice-probe.rs
  B=/tmp/dec2flt-source-valid-byte-slice-probe
  O=reference/model-evidence/source-valid-byte-slice-probe.out
  "$R" --edition 2024 --target x86_64-unknown-linux-gnu -C opt-level=0 \
    -C debuginfo=0 -C overflow-checks=on -C debug-assertions=on \
    --crate-name source_valid_byte_slice_probe "$P" -o "$B"
  sha256sum "$R" "$P" "$B"
  "$B" > "$O"
  sha256sum "$O"
  cat "$O"

The actual hashes were:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd  reference/model-evidence/source-valid-byte-slice-probe.rs
  87dc3b9b7a46506d2205503d8aa007b451c452968af48d1ba5961a821934ee55  /tmp/dec2flt-source-valid-byte-slice-probe
  01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4  reference/model-evidence/source-valid-byte-slice-probe.out

The retained raw output file contains exactly:

  arch=x86_64
  usize_bits=64
  isize_max=9223372036854775807
  u8_size=1

Pinned core-library source
--------------------------

Let:

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

The exact commands used to identify and inspect the relevant core sources were:

  sha256sum "$S/slice/mod.rs" "$S/num/int_macros.rs" "$S/str/mod.rs"
  sed -n '798,808p' "$S/slice/mod.rs"
  sed -n '43,51p' "$S/num/int_macros.rs"
  sed -n '495,510p' "$S/str/mod.rs"

The file identities are:

  354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840  core/src/slice/mod.rs
  3896304e7cb14628e293134ac41fd18be2b5369bedc02d1c6a7408bd8c755a31  core/src/num/int_macros.rs
  284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78  core/src/str/mod.rs

The relevant exact excerpt of slice/mod.rs, line 801, is:

  //   - The size of the slice is never larger than `isize::MAX` bytes, as

The relevant exact declaration in num/int_macros.rs, line 47, is:

  pub const MAX: Self = (<$UnsignedT>::MAX >> 1) as Self;

The relevant exact excerpts of str/mod.rs are its same-layout byte-slice
conversion at lines 498-500:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }

and its UTF-8 invariant at lines 507-510:

  /// The caller must ensure that the content of the slice is valid UTF-8
  /// before the borrow ends and the underlying `str` is used.
  ///
  /// Use of a `str` whose contents are not valid UTF-8 is undefined behavior.

Conclusion
----------

The configured target has 64-bit usize/isize and one-byte u8 elements.
The pinned signed-MAX definition therefore gives
isize::MAX = 2^63 - 1 = 9223372036854775807, and the pinned slice rule bounds a
slice by that many bytes.  For &[u8], this is exactly an element-count bound;
the rule adds no UTF-8 condition or other restriction on the byte contents.
The pinned str source exposes the identical-layout &[u8] bytes and separately
requires them to be valid UTF-8.  Consequently the exact configured domains
are arbitrary &[u8] bytes of length at most isize::MAX, and Rust str bytes of
length at most isize::MAX that are valid UTF-8.  No smaller convenience bound
is introduced.
Record details
Record sourcemodeling-input/manifest.json
Kindsource adaptation audit
Exact source record
{
  "decision": "accept",
  "reason": "The adaptation gate is satisfied on the setup-approved fingerprint 3dc044c04101f0d2c0a03f9d5a83585c052dcc9c873b471d75f9ae8ddb820894. Relative to the prior accepted preparation, the complete work-tree change is confined to work/crate/dec2flt/mod.rs:255-261 and work/SETUP.md:40-45: both now accurately say that #[charon::opaque] externalizes the entire unchanged Lemire::from_u64 method, including its debug assertion and cast, and no Rust computation, extraction setting, scope, domain, observation, or GOAL changed. The source body remains the upstream debug_assert followed by the u64-to-f64 cast. The current uncached Cargo, Charon, and Aeneas checks all exit 0 and emit one root module M; an independent fresh run on the same fingerprint has byte-identical generated Lean (45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9) and axiom report (ff689f76c45f2a438b77c3e9221f7a657b66d37ea26b04b54b0fd6ebbd817aa9). The inventory is exactly the approved 24 externals: 14 F64 declarations including whole-method from_u64, four U64 bit operations, and six byte/Option/slice/string operations. The named public, helper, dispatcher, trace, and assembly subjects are transparent definitions, and no F16/F32/U16 implementation or removed Float-bound external remains. Charon IR confirms that both ordinary and disguised from_u64 callers and their MAX_MANTISSA_FAST_PATH guards remain transparent. The raw generated module has no placeholder. All 39 Lean errors are exactly Unknown identifier F64; its four sorry warnings are elaborator recovery in F64-valued constants. The export passed, reports no unapproved axiom among 2,225 checked declarations, and all 64 pending declarations are downstream F64 declarations. Thus every failure is accounted for by diagnosed native-model support, not a translation, import, cycle, or packaging defect, and the approved F64-only route is implemented without reducing any of the 32 GOALs.",
  "route_compliance": "verified",
  "support_obligations": [
    "Define the absent F64 carrier as raw U64 words and give exact-signature bindings for all 14 F64 externals listed in Generated/M.lean: clone; MANTISSA_DIGITS, NAN, INFINITY, NEG_INFINITY, EXPONENT_MASK, and MANTISSA_MASK; classify, to_bits, and from_bits; Mul, Div, and Neg; and Lemire::from_u64. The work/crate/traits.rs f64 implementation and the core source symbols recorded in declarations.json require field-exact constants/classification/bit conversions, identity clone, exact sign-bit negation, and kernel-safe binary64 multiplication/division with the approved permitted-NaN treatment.",
    "Bind Lemire::from_u64 as the entire asserted source method, not merely the cast: work/crate/dec2flt/mod.rs:263-266 is debug_assert!(v <= MAX_MANTISSA_FAST_PATH) followed by v as f64, and Generated/M.lean:3703-3704 exposes Std.U64 -> Result F64. Its binding must return exact binary64 conversion for v <= 2^53 and assertion failure above that bound; prove the visible ordinary and disguised fast-path call guards, and prove the approved finite/non-NaN/nonzero facts for reachable native Mul/Div. Pin the canonical f64::NAN word and negative-sign behavior to the configured Rust target/toolchain evidence.",
    "Give direct source-faithful bindings for the other ten externals in Generated/M.lean: the four bounded U64 and/or/left-shift/right-shift operations and the six U8 ASCII-digit, Option Try branch/residual, slice first/split_first, and str.as_bytes operations. Their meanings must be tied to the source-valid slice/string predicates and the recorded Rust/Aeneas source symbols, without adding axioms.",
    "Author and apply the full configured Rust value domains and preservation interfaces recorded in work/SETUP.md:81-117: byte slices retain the 64-bit Rust isize::MAX byte-size invariant, strings additionally require UTF-8, and no smaller convenience bound is allowed. Preserve the exact public/helper/dispatcher-trace observations and all 32 supplied statements; audit every length-derived cast and checked arithmetic operation in parse.rs and decimal_seq.rs over that full domain, changing only proof/disproof polarity after kernel-checked analysis rather than restricting inputs. Each authored definition and binding must carry its source-grounded preservation proof and separate application to every affected GOAL."
  ],
  "basis": "c42107d27bc47c02e4beb4d6db4c47879aecb68a175ab67f7e6c5d5e866a2402c06583f9e94b467095cf9aff1a26a4857650ace006061c1ca5e4c441747ef622",
  "axiom_compatibility_sha256": "473825c0fe635e1abc7a734a2035f5df20ed4fe7053403ef2fb6833d7101a016"
}
Captured evidence identities
[
  {
    "path": "extraction-evidence/COMMAND.json",
    "sha256": "5f26225136b8c7c4d7f95615e3e8ff8b357e523eeada4bc649e50f9c76cb9bda",
    "cited_by": [
      "shared mechanical extraction record",
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "extraction-evidence/DETERMINISM.json",
    "sha256": "74e45977d1fa84e7d4c696906005f13faca994995fdeff0fac8dc13e5c18f11c",
    "cited_by": [
      "shared mechanical extraction record"
    ]
  },
  {
    "path": "extraction-evidence/RESULT.json",
    "sha256": "31059e900d9ee03a54504c1dd3560a943d6c0f883fba737163b1ca0cb40065b0",
    "cited_by": [
      "shared mechanical extraction record",
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "extraction-evidence/STDERR.bin",
    "sha256": "c284799d633c64b898f716d62fbf1146c173227bd6bd44309c6504a43926e000",
    "cited_by": [
      "shared mechanical extraction record"
    ]
  },
  {
    "path": "extraction-evidence/STDOUT.bin",
    "sha256": "8e0aed62f6941e7c81b09d5c5b63ea7602756e69e4bcce9944258b229a9a0ba3",
    "cited_by": [
      "shared mechanical extraction record"
    ]
  },
  {
    "path": "reference/model-evidence/adaptation-constants-probe.rs",
    "sha256": "b5a4a2cba0c08053cb9a816adb1ba5dbd160bf3928bdf5ccf56b7ae83aaa2aa5",
    "cited_by": [
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-boundary.txt",
    "sha256": "fa45c924747337e8d6f84a19fe9e83fb9b33c73434887c0cf57c062533f51fe1",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex",
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-probe.rs",
    "sha256": "68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e",
    "cited_by": [
      "reference/model-evidence/binary64-boundary.txt"
    ]
  },
  {
    "path": "reference/model-evidence/native-boundary.txt",
    "sha256": "fa0d69e4a434007e6ee675380fc13f98e22655b7faa77cdc5216d4af4356438f",
    "cited_by": [
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "reference/model-evidence/setup-reproduction.txt",
    "sha256": "209bc94a47b1b905a2a7b1fea229c759e6250becbd353fe4eadc7bc49be7742c",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex",
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-adaptation-delta.diff",
    "sha256": "fdf88cabfe40ce962d2bd5eda22eb5b3cbbf8a936a81b896e98698bf472cd0e4",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex",
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-adaptation-delta.txt",
    "sha256": "3c1483d48286a82484eba249a5434936e1a33a08f4e99ec0e3a03ce9bb0ecd9b",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.out",
    "sha256": "01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.rs",
    "sha256": "b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice.txt",
    "sha256": "eb501317621baa00236f9773885466bd38ec1a45cb56457d555b9e9139dc780a",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex"
    ]
  }
]

crate/dec2flt/common.rs

Historical preparation document: preparation source-adaptation audit. It describes the state and obligations at preparation. This generation is captured in ProofFormalization. Later closure and review results appear in the proof and modeling views. This original document remains available as history.

Captured upstream and extraction-crate files differ. Consult the recorded preservation explanations for the purpose and scope of each adaptation.
Shared extraction-boundary explanation (Preamble)

Preservation argument

Claim

Fix Rust nightly-2026-06-01 and target x86_64-unknown-linux-gnu, the library's empty default feature set (so optimize_for_size is disabled), the unoptimized development profile, enabled debug assertions and integer overflow checks, and the target's SSE2 precision-setting branch. Interpret each of the frozen extraction's 24 external operations by the separately justified model-support definition that owns that operation. Under those interpretations, the composed Aeneas model represents the supplied source's f64 specialization on all of these domains, without a correctness premise: every Rust str whose bytes are valid UTF-8 and whose 64-bit slice length is at most \mathtt{isize::MAX}=2^{63}-1; every Rust &[u8] whose length is at most that bound, with arbitrary byte contents; every Decimal; every i64/u64 pair; and every BiasedFp.
For dec2flt::<f64> the relation preserves panic versus normal return, the outer returned Result's Ok/Err discriminant, and, on success, the exact binary64 word and its NaN classification. For parse_number it preserves panic versus normal return, the Option discriminant, and all four returned Decimal fields. For parse_inf_nan::<f64> and Decimal::try_fast_path::<f64> it preserves panic versus normal return, None versus Some, and every returned word and NaN classification. For compute_float::<f64> and parse_long_mantissa::<f64> it preserves panic versus normal return and both fields of every returned BiasedFp. For biased_fp_to_float::<f64> it preserves panic versus normal return and the exact returned word, with no restriction on the pair fields.
For dec2flt_with_trace::<f64> it additionally preserves the public result and the complete trace: its control-flow variant; sign-stripped body and lexical sign; numeric and special helper results; signed native input and native result; first integer operands and result; second-call guard, optional operands and result, comparison and forced-deferral fact; post-comparison pair; slow-path guard and optional result; selected pair; assembled unsigned word; pre-sign assembly result; sign-application fact; and final word. Public dec2flt::<f64> is exactly the first projection of that interface, and direct special and native returns select no raw pair.

Proof

The fresh extraction record reference/model-evidence/setup-reproduction.txt pins all six tool executables by SHA-256, gives the empty Cargo/Charon/Aeneas argument configuration, and records the effective development cfg. Its Cargo, Charon, and Aeneas executions all exit successfully. Fresh Aeneas output is byte-for-byte the frozen generated.lean, with SHA-256 45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9. The raw source has no placeholder. The compatibility check reports no unapproved axiom and isolates exactly 24 external declarations; the complete inventory equals the 24 entries of Tablet/model-support.json. compose-native --check reports an unchanged composition and equal expected and actual Preamble hashes. Thus all transparent extracted declarations come from this one pinned source and every nontransparent operation is explicit. The premise assigning each external its owning definition deliberately leaves that definition's primitive-semantics proof to its own preservation record; no primitive binding is re-proved here.
The paired meanings of all 24 owners make that composition premise concrete. The binary64 carrier is the complete raw-word representation of F64. Its clone, precision constant, NaN and infinity constants, field masks, classification, bit conversions, arithmetic, negation, and asserted integer conversion have respectively the meanings in ModelF64Clone, ModelF64MantissaDigits, ModelF64Nan, ModelF64Infinity, ModelF64NegInfinity, ModelF64ExponentMask, ModelF64MantissaMask, ModelF64Classify, ModelF64ToBits, ModelF64FromBits, ModelF64Mul, ModelF64Div, ModelF64Neg, and ModelF64FromU64. The four bounded word operations have the Rust meanings in ModelU64BitAnd, ModelU64BitOr, ModelU64Shl, and ModelU64Shr; the digit test has the meaning in ModelU8IsAsciiDigit. Option branching and residual return have the meanings in ModelOptionBranch and ModelOptionFromResidual; first-element and split-first observation have the meanings in ModelSliceFirst and ModelSliceSplitFirst; and string-to-byte observation has the meaning in ModelStrAsBytes. These are exactly the semantic operations substituted for the inventoried externals.
The source carrier used below is the arbitrary-byte, length-at-most 2^{63}-1 slice of SourceValidByteSlice. The abstract domains and observations used in the GOAL applications are those of DecimalGoalVocabulary; their concrete UTF-8 string predicate, lexical grammar, decimal values, binary64 rounding and classification, sign, and unrestricted raw-pair assembly are those of DecimalGoalVocabularyDefault. Thus the composition cites the paired meanings that connect its source domains and observations to the GOAL vocabulary, rather than inferring those meanings from boundary inventory alone.
The complete upstream-to-crate inventory and its source hashes are recorded in reference/model-evidence/source-adaptation-delta.txt; its exact aggregate byte diff is retained in reference/model-evidence/source-adaptation-delta.diff. The supplied fpu.rs, lemire.rs, and table.rs are byte-identical. The standalone namespace and local error shell introduce no call. The GOALs observe only panic versus normal return and the outer Ok/Err discriminant, so the shell's private kind and formatting are unobserved; no identity with an unpinned core error payload is asserted. Visibility and removed Debug derives do not affect values. The retained generic bodies use none of the removed trait operations; the direct Mul, Div, and Neg clauses and calls are the operations already implied by Lemire. Only the u64 integer instance and f64 Float, FloatExt, and Lemire instances can participate in an f64 execution, so disabling the u16/u32 and f16/f32 instances changes no such call.
The same delta record compares each constant, table entry, and specialized decoder with its source expression. The retained decoder is the source default after substituting the f64/u64 field widths and masks; the fast-path bounds are the source formula results; and the match over power-of-ten words has the same masked index and exact words as the source array. The toolchain-specific words, masks, classifications, casts, and rounding behavior are independently pinned in reference/model-evidence/binary64-boundary.txt. The frozen from_u64 Rust body is the enabled assertion followed by the u64 as f64 conversion. Because #[charon::opaque] applies to the whole function, neither operation inside that body is transparent in the extraction: the whole method is the single inventoried external. Its callers, their guards, and the surrounding native computation remain transparent. ModelF64FromU64 supplies exactly successful integer conversion for v\leq2^{53} and assertion failure otherwise.
All other changed bodies are syntax-directed rewrites. Indexed digit scans test the same byte, use the same wrapping subtraction and accumulator update, advance by the same amount, and stop at the same first nondigit as the source closures and split_first loops. Extracted helpers receive the same slices and mutable values, visit bytes in the same forward or reverse order, and retain every saturating, wrapping, and checked operation. Delayed returns set a result flag, execute no intervening state update, leave the loop through that flag, and immediately return the source value. In particular, casts and length-derived additions on very large inputs keep their original panic or normal behavior rather than acquiring a convenience size bound.
Finally, direct comparison of the supplied dispatcher with the instrumented body shows identical sequencing. Both strip at most one sign, reject empty or sign-only input, call the numeric helper first and the special helper only after its None, overwrite only the parsed sign, try the enabled native path, make the first integer call, and evaluate the checked mantissa+1 and second call under exactly the source short-circuit guard. Both force the same deferral on unequal pairs, call the slow helper on the unchanged body exactly for a negative post-comparison exponent, assemble the same selected pair, and apply the sign last. Every trace field is either one of those already computed values or the same nonmutating cast/shift/OR word used by assembly. Hence recording the trace and discarding it in the public projection changes neither call order, guards, state, panic points, nor any returned observation.
The exact source carrier condition is separately evidenced by reference/model-evidence/source-valid-byte-slice.txt: on this 64-bit target a byte slice has arbitrary bytes and length at most isize::MAX, while a Rust string adds UTF-8 validity. Sub-slicing preserves the length bound and need not preserve an independent string type. These facts establish all domains and observations in the claim independently of the truth or falsity of any GOAL.

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

extraction-evidence/COMMAND.json

Open file

{"declaration_reader_sha256":"76f60cf0b867fad9727d2256d32b306c8cba3725216a4225d0f83add77fd6158","extraction_provenance":{"extraction_toolchain":{"aeneas":"fa699427","aeneas_revision":"fa699427cdfa8f604b891fb0223ef42883dd7dc4","cargo_features":[{"features":["default"],"name":"dec2flt-model","source":"workspace:Cargo.toml","version":"0.1.0"}],"cargo_lock_sha256":"bc644c624ded89197356bbd65d995054b7fb08e5bdfbaa38c6e7c7a53772cecf","cfg":["debug_assertions","emscripten_wasm_eh","feature=\"default\"","fmt_debug=\"full\"","overflow_checks","panic=\"unwind\"","relocation_model=\"pic\"","target_abi=\"\"","target_arch=\"x86_64\"","target_endian=\"little\"","target_env=\"gnu\"","target_family=\"unix\"","target_feature=\"fxsr\"","target_feature=\"sse\"","target_feature=\"sse2\"","target_feature=\"x87\"","target_has_atomic","target_has_atomic=\"16\"","target_has_atomic=\"32\"","target_has_atomic=\"64\"","target_has_atomic=\"8\"","target_has_atomic=\"ptr\"","target_has_atomic_load_store","target_has_atomic_load_store=\"16\"","target_has_atomic_load_store=\"32\"","target_has_atomic_load_store=\"64\"","target_has_atomic_load_store=\"8\"","target_has_atomic_load_store=\"ptr\"","target_has_atomic_primitive_alignment=\"16\"","target_has_atomic_primitive_alignment=\"32\"","target_has_atomic_primitive_alignment=\"64\"","target_has_atomic_primitive_alignment=\"8\"","target_has_atomic_primitive_alignment=\"ptr\"","target_has_reliable_f128","target_has_reliable_f16","target_has_reliable_f16_math","target_object_format=\"elf\"","target_os=\"linux\"","target_pointer_width=\"64\"","target_thread_local","target_vendor=\"unknown\"","ub_checks","unix"],"charon":"0.1.216","charon_revision":"6f058254eb741c12e9b388df07adaf7cc8aac8ed","extraction_profile":"dev","lean":"4.30.0-rc2","overflow_checks":true,"panic_strategy":"unwind","rustc_vv":"rustc 1.98.0-nightly (14210df0e 2026-05-31)\nbinary: rustc\ncommit-hash: 14210df0e27ccd7d9e6a05b8085cbd438e4bbc65\ncommit-date: 2026-05-31\nhost: x86_64-unknown-linux-gnu\nrelease: 1.98.0-nightly\nLLVM version: 22.1.6\n","target_pointer_width":64,"target_triple":"x86_64-unknown-linux-gnu"},"extractor_stack":["charon@0.1.216","aeneas@fa699427"],"extractor_toolchain_sha256":"18657da0659dee7889ed8a937b136c9abbc3a35e9050241cd8201c94fd232323","not_recorded":[],"source_digests":[{"source_file":"lib.rs","source_sha256":"63c7f58df6caff552519c92155d902daf8a1015797adcd3f357f8b8cf1652b00"}]},"extractor_script_path":"/home/leanagent/pv_runs/trellis-native-implementation-v91/scripts/extract_pv_model.py","extractor_script_sha256":"cc1fdd50a78185c7bb564b715c554cb35d9fc09ed566b6c3d4f482f2d27ef67d","kernel_gate_checkers":[],"log_concatenation_order":"runs_then_steps_in_array_order","runs":[{"run_role":"primary","steps":[{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","-vV"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"rustc-version","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/pv_spike/tools/charon/bin/charon","cargo","--preset=aeneas","--dest-file","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc","--","--offline","--profile","dev","--target","x86_64-unknown-linux-gnu"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"charon","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/cargo","metadata","--format-version=1","--locked","--offline","--filter-platform","x86_64-unknown-linux-gnu"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"cargo-metadata","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/cargo","rustc","--lib","--locked","--offline","--profile","dev","--target","x86_64-unknown-linux-gnu","--","--print","cfg"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"cargo-rustc-cfg","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/pv_spike/tools/aeneas/bin/aeneas","-backend","lean","-dest","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen","-emit-json","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"aeneas","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"}]}],"schema":"trellis-extraction-command/v1","tool_source_checkouts":[]}
extraction-evidence/DETERMINISM.json

Open file

{"comparison":"generated_lean_and_complete_tablet_tree_byte_identity","generated_lean_byte_identical":false,"generated_lean_sha256":["45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9"],"kernel_filespec_gate":"not_run","kernel_prescribed_region_gate":"not_run","namespace_context_roundtrip_gate":"not_run","result_sha256":"31059e900d9ee03a54504c1dd3560a943d6c0f883fba737163b1ca0cb40065b0","run_roles":["primary"],"schema":"trellis-extraction-determinism/v2","status":"not_run","tablet_root_sha256":["5be7a89d6b46429df3229db0d97b337dfb51cea483d439817e51b774a2dd5cf1"],"tablet_tree_byte_identical":false}
extraction-evidence/RESULT.json

Open file

{"command_sha256":"5f26225136b8c7c4d7f95615e3e8ff8b357e523eeada4bc649e50f9c76cb9bda","runs":[{"generated_lean_sha256":"45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9","run_role":"primary","steps":[{"exit_status":0,"stderr_byte_length":0,"stderr_offset":0,"stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","stdout_byte_length":212,"stdout_offset":0,"stdout_sha256":"e6ea0da4a3301256a0a0dc0d67d11acf4e83e0d1bff5dd987ccdaa43708714bc","tool":"rustc-version"},{"exit_status":0,"stderr_byte_length":654,"stderr_offset":0,"stderr_sha256":"85f314396a5cc9f2303d9848c2d0ea392b64a71cb47e7b0914fd3b8acc916f02","stdout_byte_length":0,"stdout_offset":212,"stdout_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","tool":"charon"},{"exit_status":0,"stderr_byte_length":0,"stderr_offset":654,"stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","stdout_byte_length":2897,"stdout_offset":212,"stdout_sha256":"d792566b25914f10c1a27d3c55607a43dd6bcd31b381f8d54caa7d23257269ef","tool":"cargo-metadata"},{"exit_status":0,"stderr_byte_length":302,"stderr_offset":654,"stderr_sha256":"865b65d937d16c61cd9b975adc967136f6739ef2149207ae43742241f2f37686","stdout_byte_length":1062,"stdout_offset":3109,"stdout_sha256":"4081a320e6292139b4a673d225682dc054b77cba113b8c8a8fbb0593f824b713","tool":"cargo-rustc-cfg"},{"exit_status":0,"stderr_byte_length":6916,"stderr_offset":956,"stderr_sha256":"9c2b4695f1b3bb4e7fe3bf52b92d44fd21bed1de3047b698c950eafcc085c00b","stdout_byte_length":933,"stdout_offset":4171,"stdout_sha256":"35255952c6ce5b89d1280d096dff50ffcfc94817c3aafa58beda6db7e66721df","tool":"aeneas"}],"tablet_root_sha256":"5be7a89d6b46429df3229db0d97b337dfb51cea483d439817e51b774a2dd5cf1"}],"schema":"trellis-extraction-result/v2","stderr_byte_length":7872,"stderr_sha256":"c284799d633c64b898f716d62fbf1146c173227bd6bd44309c6504a43926e000","stdout_byte_length":5104,"stdout_sha256":"8e0aed62f6941e7c81b09d5c5b63ea7602756e69e4bcce9944258b229a9a0ba3"}
extraction-evidence/STDERR.bin

Open file

   Compiling dec2flt-model v0.1.0 (/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate)
warning: feature `f16` is declared but not used
 --> lib.rs:2:46
  |
2 | #![feature(cfg_target_has_reliable_f16_f128, f16, float_masks, register_tool, staged_api)]
  |                                              ^^^
  |
  = note: `#[warn(unused_features)]` (part of `#[warn(unused)]`) on by default

warning: `dec2flt-model` (lib) generated 1 warning
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.44s
   Compiling dec2flt-model v0.1.0 (/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.02s
[?25lApplied prepasses:  [------------------------------------------------]   0/203 ⠋

Applied prepasses:  [------------------------------------------------]   1/203 ⠋

Applied prepasses:  [#####-------------------------------------------]  24/203 ⠋

Applied prepasses:  [########----------------------------------------]  38/203 ⠋

Applied prepasses:  [##############################------------------] 128/203 ⠙
Applied prepasses:  [################################################] 203/203 ✔️
[?25h[?25lTranslated globals:  [-------------------------------------------------]  0/50 ⠋
Translated globals:  [#################################################] 50/50 ✔️
[?25h[?25lTranslated opaque functions:  [----------------------------------------]  0/87 ⠋
Translated opaque functions:  [########################################] 87/87 ✔️
[?25h[?25lTranslated transparent functions:  [---------------------------------]   0/107 ⠋

Translated transparent functions:  [---------------------------------]   1/107 ⠙

Translated transparent functions:  [###------------------------------]  10/107 ⠙

Translated transparent functions:  [######---------------------------]  22/107 ⠹

Translated transparent functions:  [##########-----------------------]  35/107 ⠹

Translated transparent functions:  [#############--------------------]  44/107 ⠹

Translated transparent functions:  [##############-------------------]  48/107 ⠸

Translated transparent functions:  [###############------------------]  51/107 ⠸

Translated transparent functions:  [##################---------------]  59/107 ⠸

Translated transparent functions:  [##################---------------]  60/107 ⠼

Translated transparent functions:  [##################---------------]  61/107 ⠼

Translated transparent functions:  [####################-------------]  65/107 ⠼

Translated transparent functions:  [#####################------------]  69/107 ⠼

Translated transparent functions:  [#####################------------]  70/107 ⠴

Translated transparent functions:  [######################-----------]  72/107 ⠴

Translated transparent functions:  [######################-----------]  73/107 ⠦

Translated transparent functions:  [######################-----------]  74/107 ⠦

Translated transparent functions:  [#######################----------]  77/107 ⠦

Translated transparent functions:  [########################---------]  78/107 ⠧

Translated transparent functions:  [########################---------]  79/107 ⠧

Translated transparent functions:  [########################---------]  81/107 ⠇

Translated transparent functions:  [#########################--------]  82/107 ⠇

Translated transparent functions:  [#########################--------]  83/107 ⠏

Translated transparent functions:  [#########################--------]  84/107 ⠏

Translated transparent functions:  [##########################-------]  86/107 ⠋

Translated transparent functions:  [###########################------]  88/107 ⠋

Translated transparent functions:  [###########################------]  89/107 ⠋

Translated transparent functions:  [###########################------]  90/107 ⠙

Translated transparent functions:  [############################-----]  91/107 ⠙

Translated transparent functions:  [############################-----]  93/107 ⠹

Translated transparent functions:  [############################-----]  94/107 ⠹

Translated transparent functions:  [#############################----]  95/107 ⠸

Translated transparent functions:  [#############################----]  97/107 ⠸

Translated transparent functions:  [##############################---]  99/107 ⠼

Translated transparent functions:  [##############################---] 100/107 ⠼

Translated transparent functions:  [###############################--] 102/107 ⠴

Translated transparent functions:  [###############################--] 103/107 ⠦

Translated transparent functions:  [################################-] 104/107 ⠦

Translated transparent functions:  [################################-] 105/107 ⠧

Translated transparent functions:  [################################-] 106/107 ⠇

Translated transparent functions:  [#################################] 107/107 ⠏
Translated transparent functions:  [#################################] 107/107 ✔️
[?25h[?25lTranslated trait declarations:  [--------------------------------------]  0/49 ⠋
Translated trait declarations:  [########################--------------] 31/49 ✔️
[?25h[?25lTranslated trait impls:  [---------------------------------------------]  0/85 ⠋
Translated trait impls:  [#################################------------] 64/85 ✔️
[?25h[?25lPost-processed translated opaque functions:  [-------------------------]  0/87 ⠋

Post-processed translated opaque functions:  [-------------------------]  1/87 ⠙
Post-processed translated opaque functions:  [#########################] 87/87 ✔️
[?25h[?25lPost-processed translated transparent functions:  [------------------]   0/107 ⠋

Post-processed translated transparent functions:  [------------------]   1/107 ⠋

Post-processed translated transparent functions:  [#-----------------]  10/107 ⠙

Post-processed translated transparent functions:  [##----------------]  12/107 ⠙

Post-processed translated transparent functions:  [##----------------]  13/107 ⠹

Post-processed translated transparent functions:  [##----------------]  14/107 ⠹

Post-processed translated transparent functions:  [##----------------]  16/107 ⠸

Post-processed translated transparent functions:  [##----------------]  17/107 ⠼

Post-processed translated transparent functions:  [###---------------]  18/107 ⠼

Post-processed translated transparent functions:  [###---------------]  23/107 ⠴

Post-processed translated transparent functions:  [####--------------]  27/107 ⠴

Post-processed translated transparent functions:  [#####-------------]  31/107 ⠴

Post-processed translated transparent functions:  [######------------]  37/107 ⠴

Post-processed translated transparent functions:  [########----------]  50/107 ⠴

Post-processed translated transparent functions:  [###############---]  95/107 ⠦

Post-processed translated transparent functions:  [################--]  99/107 ⠦

Post-processed translated transparent functions:  [################--] 100/107 ⠧

Post-processed translated transparent functions:  [################--] 101/107 ⠧

Post-processed translated transparent functions:  [#################-] 103/107 ⠧

Post-processed translated transparent functions:  [#################-] 105/107 ⠇

Post-processed translated transparent functions:  [##################] 107/107 ⠏
Post-processed translated transparent functions:  [##################] 107/107 ✔️
[?25h
extraction-evidence/STDOUT.bin

Open file

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
{"packages":[{"name":"dec2flt-model","version":"0.1.0","id":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0","license":null,"license_file":null,"description":null,"source":null,"dependencies":[],"targets":[{"kind":["lib"],"crate_types":["lib"],"name":"dec2flt_model","src_path":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate/lib.rs","edition":"2024","doc":true,"doctest":true,"test":true}],"features":{"default":[],"optimize_for_size":[]},"manifest_path":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate/Cargo.toml","metadata":null,"publish":[],"authors":[],"categories":[],"keywords":[],"readme":null,"repository":null,"homepage":null,"documentation":null,"edition":"2024","links":null,"default_run":null,"rust_version":null}],"workspace_members":["path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"],"workspace_default_members":["path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"],"resolve":{"nodes":[{"id":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0","dependencies":[],"deps":[],"features":["default"]}],"root":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"},"target_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","build_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","version":1,"workspace_root":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate","metadata":null}
debug_assertions
emscripten_wasm_eh
feature="default"
fmt_debug="full"
overflow_checks
panic="unwind"
relocation_model="pic"
target_abi=""
target_arch="x86_64"
target_endian="little"
target_env="gnu"
target_family="unix"
target_feature="fxsr"
target_feature="sse"
target_feature="sse2"
target_feature="x87"
target_has_atomic
target_has_atomic="16"
target_has_atomic="32"
target_has_atomic="64"
target_has_atomic="8"
target_has_atomic="ptr"
target_has_atomic_load_store
target_has_atomic_load_store="16"
target_has_atomic_load_store="32"
target_has_atomic_load_store="64"
target_has_atomic_load_store="8"
target_has_atomic_load_store="ptr"
target_has_atomic_primitive_alignment="16"
target_has_atomic_primitive_alignment="32"
target_has_atomic_primitive_alignment="64"
target_has_atomic_primitive_alignment="8"
target_has_atomic_primitive_alignment="ptr"
target_has_reliable_f128
target_has_reliable_f16
target_has_reliable_f16_math
target_object_format="elf"
target_os="linux"
target_pointer_width="64"
target_thread_local
target_vendor="unknown"
ub_checks
unix
[Info ] Imported: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc
[Info ] Generated: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/M.lean
[Info ] Generated: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/translation.json
[Warn ] The crate contains extracted external, unknown definitions: we advise using the option -split-files to allow manually providing these definitions in separate files.
[Info ] Total execution time: 7.337683 seconds
reference/model-evidence/adaptation-constants-probe.rs

Open file

fn main() {
    let largest_power_of_ten = (1024_f64 / std::f64::consts::LOG2_10) as i32;
    let log2_5 = std::f64::consts::LOG2_10 - 1.0;
    let max_exponent_fast_path = (53_f64 / log2_5) as i64;
    let max_exponent_disguised =
        max_exponent_fast_path + (53_f64 / std::f64::consts::LOG2_10) as i64;

    println!("largest_power_of_ten={largest_power_of_ten}");
    println!("max_exponent_fast_path={max_exponent_fast_path}");
    println!("max_exponent_disguised={max_exponent_disguised}");
    println!("neg_nan={:016x}", (-f64::NAN).to_bits());

    for (exponent, value) in IntoIterator::into_iter([
        1e0_f64, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11,
        1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22,
    ])
    .enumerate()
    {
        println!("pow10_{exponent}={:016x}", value.to_bits());
    }
}
reference/model-evidence/binary64-boundary.txt

Open file

Primary evidence for the binary64 boundary
==========================================

Scope and identities
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction, the
adapted Rust crate retained in this repository, and the installed toolchain
named by modeling-input/SETUP.md. The probe source is retained at
reference/model-evidence/binary64-probe.rs; no scratch source is required to
reproduce it.

Toolchain executable:
  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
Target:
  x86_64-unknown-linux-gnu
rustc executable SHA-256:
  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
Probe source SHA-256:
  68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
Compiled probe SHA-256:
  f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
Frozen generated.lean SHA-256:
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9
Frozen modeling-input/manifest.json SHA-256:
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2
Approved Binary64ModelDefault.lean SHA-256 at the time of this record:
  03ae48fb631e6242bd21bf95d0481b66acae05f8cab343c7ab279b3c116538a3

Exact reproduction commands
---------------------------

Run from the repository root:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-probe.rs
  B=.trellis/scratch/binary64-probe
  "$R" --version --verbose
  sha256sum "$R"
  sha256sum "$P"
  "$R" --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$B"
  "$B"

Raw output
----------

  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
  rustc_sha256=162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  probe_sha256=68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
  binary_sha256=f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
  target_arch=x86_64
  mantissa_digits=53
  exponent_mask=7ff0000000000000
  mantissa_mask=000fffffffffffff
  nan=7ff8000000000000
  infinity=7ff0000000000000
  neg_infinity=fff0000000000000
  nan_category=Nan
  infinity_category=Infinite
  zero_category=Zero
  subnormal_category=Subnormal
  normal_category=Normal
  from_bits_to_bits=7ff0000000000001
  neg_payload_nan=fff0000000000001
  neg_zero=8000000000000000
  subnormal_tie_to_even_zero=0000000000000000
  subnormal_tie_to_even_two=0000000000000002
  normal_division=3fb999999999999a
  mul_negative_zero=8000000000000000
  div_negative_zero=8000000000000000
  div_negative_infinity=fff0000000000000
  mul_overflow=7ff0000000000000
  mul_zero_infinity_is_nan=true
  div_zero_zero_is_nan=true
  mul_nan_is_nan=true
  cast_2_pow_53=4340000000000000
  cast_2_pow_53_plus_1=4340000000000000

Pinned Rust library sources
---------------------------

The installed sources below belong to the same named toolchain. Their
SHA-256 identities are:

  core/src/primitive_docs.rs
    c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5
  core/src/num/f64.rs
    84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618
  core/src/clone.rs
    23f9cfc80347fde6b8457d46fbf7a2b8d9f34c8c58601b0b6f714ca2f6d1976b

The exact relevant text of core/src/primitive_docs.rs is:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The referenced primitive-f32 documentation supplies the common primitive
floating-point operation rules quoted next:

  /// - −0.0: IEEE 754 floating-point numbers have a bit that indicates their sign, so −0.0 is a
  ///   possible value. For comparison −0.0 = +0.0, but floating-point operations can carry
  ///   the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
  ///   a negative number rounded to a value smaller than a float can represent also produces −0.0.
  /// - [∞](#associatedconstant.INFINITY) and
  ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
  ///   like `1.0 / 0.0`.
  ///
  /// When a primitive operation (addition, subtraction, multiplication, or
  /// division) is performed on this type, the result is rounded according to the
  /// roundTiesToEven direction defined in IEEE 754-2008. That means:
  ///
  /// - The result is the representable value closest to the true value, if there
  ///   is a unique closest representable value.
  /// - If the true value is exactly half-way between two representable values,
  ///   the result is the one with an even least-significant binary digit.
  /// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
  ///   `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
  ///   true value's sign).

The same file explicitly separates arithmetic NaN choice from exact bitwise
operations; its exact relevant text is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.
  ///
  /// The following rules apply when a NaN value is returned from an arithmetic operation:
  /// - The result has a non-deterministic sign.
  /// - The quiet bit and payload are non-deterministically chosen from
  ///   the following set of options:
  ///
  ///   - **Preferred NaN**: The quiet bit is set and the payload is all-zero.
  ///   - **Quieting NaN propagation**: The quiet bit is set and the payload is copied from any input
  ///     operand that is a NaN. If the inputs and outputs do not have the same payload size (i.e., for
  ///     `as` casts), then
  ///     - If the output is smaller than the input, low-order bits of the payload get dropped.
  ///     - If the output is larger than the input, the payload gets filled up with 0s in the low-order
  ///       bits.
  ///   - **Unchanged NaN propagation**: The quiet bit and payload are copied from any input operand
  ///     that is a NaN. If the inputs and outputs do not have the same size (i.e., for `as` casts), the
  ///     same rules as for "quieting NaN propagation" apply, with one caveat: if the output is smaller
  ///     than the input, dropping the low-order bits may result in a payload of 0; a payload of 0 is not
  ///     possible with a signaling NaN (the all-0 significand encodes an infinity) so unchanged NaN
  ///     propagation cannot occur with some inputs.
  ///   - **Target-specific NaN**: The quiet bit is set and the payload is picked from a target-specific
  ///     set of "extra" possible NaN payloads. The set can depend on the input operand values.
  ///     See the table below for the concrete NaNs this set contains on various targets.
  ///
  /// | `target_arch` | Extra payloads possible on this platform |
  /// |---------------|------------------------------------------|
  /// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |

Thus the model's preferred quiet NaN is one permitted result whenever
multiplication or division returns NaN. This does not claim that arbitrary
Rust arithmetic NaNs have those exact bits. By contrast, unary negation and
bit conversion must preserve all non-sign bits exactly, including for every
NaN payload.

The exact relevant declarations in core/src/num/f64.rs are:

  pub const MANTISSA_DIGITS: u32 = 53;
  pub const NAN: f64 = 0.0_f64 / 0.0_f64;
  pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
  pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
  pub const SIGN_MASK: u64 = 0x8000_0000_0000_0000;
  pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;
  pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff;

  pub const fn classify(self) -> FpCategory {
      // We used to have complicated logic here that avoids the simple bit-based tests to work
      // around buggy codegen for x87 targets (see
      // https://github.com/rust-lang/rust/issues/114479). However, some LLVM versions later, none
      // of our tests is able to find any difference between the complicated and the naive
      // version, so now we are back to the naive version.
      let b = self.to_bits();
      match (b & Self::MANTISSA_MASK, b & Self::EXPONENT_MASK) {
          (0, Self::EXPONENT_MASK) => FpCategory::Infinite,
          (_, Self::EXPONENT_MASK) => FpCategory::Nan,
          (0, 0) => FpCategory::Zero,
          (_, 0) => FpCategory::Subnormal,
          _ => FpCategory::Normal,
      }
  }

  pub const fn to_bits(self) -> u64 {
      // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
      unsafe { mem::transmute(self) }
  }

  pub const fn from_bits(v: u64) -> Self {
      // It turns out the safety issues with sNaN were overblown! Hooray!
      // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
      unsafe { mem::transmute(v) }
  }

The exact scalar clone body in core/src/clone.rs is:

  impl const Clone for $t {
      #[inline(always)]
      fn clone(&self) -> Self {
          *self
      }
  }

Frozen adapted source
---------------------

The relevant retained source file hashes are:

  crate/traits.rs
    9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  crate/dec2flt/decimal.rs
    633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb
  crate/dec2flt/lemire.rs
    fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1
  crate/dec2flt/slow.rs
    93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485

The dispatcher excerpts below are reproduced from the identified file by
running these commands from the repository root:

  sha256sum crate/dec2flt/mod.rs
  sed -n '354,403p' crate/dec2flt/mod.rs
  sed -n '405,422p' crate/dec2flt/mod.rs
  sed -n '465,475p' crate/dec2flt/mod.rs
  sed -n '506,523p' crate/dec2flt/mod.rs

Exact constant and bit-conversion excerpt from crate/traits.rs:

  impl Float for f64 {
      type Int = u64;

      const INFINITY: Self = Self::INFINITY;
      const NEG_INFINITY: Self = Self::NEG_INFINITY;
      const NAN: Self = Self::NAN;
      // Bit-identical to the upstream `-f64::NAN`, without the unsupported
      // compile-time float negation.
      const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);

      const BITS: u32 = 64;
      const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
      const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
      const SIG_MASK: Self::Int = Self::MANTISSA_MASK;

      fn to_bits(self) -> Self::Int {
          self.to_bits()
      }

      fn classify(self) -> FpCategory {
          self.classify()
      }
  }

  impl FloatExt for f64 {
      #[inline]
      fn from_u64_bits(v: u64) -> Self {
          f64::from_bits(v)
      }

Exact derived-constant defaults from crate/traits.rs:

  /// The number of bits in the significand, *excluding* the hidden bit.
  const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;

  /// Number of bits in the exponent.
  const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

  /// The saturated (maximum bitpattern) value of the exponent, i.e. the infinite
  /// representation.
  ///
  /// This shifted fully right, use `EXP_MASK` for the shifted value.
  const EXP_SAT: u32 = (1 << Self::EXP_BITS) - 1;

  /// Signed version of `EXP_SAT` since we convert a lot.
  const INFINITE_POWER: i32 = Self::EXP_SAT as i32;

  /// The exponent bias value. This is also the maximum value of the exponent.
  const EXP_BIAS: u32 = Self::EXP_SAT >> 1;

  /// Minimum exponent value of normal values.
  const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Together with the f64-instance lines `BITS = 64` and
`SIG_TOTAL_BITS = Self::MANTISSA_DIGITS` in the preceding excerpt, these
defaults derive SIG_BITS, EXP_MIN, and INFINITE_POWER from the primitive
mantissa-digit constant rather than introducing independent parameters.

Exact asserted-conversion excerpt from crate/dec2flt/mod.rs:

  #[inline]
  // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
  // `charon::opaque` makes this entire asserted conversion external: both the
  // unchanged `debug_assert!` and the unchanged cast below are in the opaque
  // body. The callers, their fast-path guards, and their surrounding
  // computation remain mechanically visible. A corresponding model binding
  // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
  // exact binary64 conversion at or below that bound.
  #[charon::opaque]
  fn from_u64(v: u64) -> Self {
      debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
      v as _
  }

Here MAX_MANTISSA_FAST_PATH is the retained default 1 << 53.  The attribute is
attached to the function item, so the generated external stands for the whole
method, not merely the cast.  In the enabled-debug configuration the source
succeeds only when v <= 2^53; above it the assertion fails before the cast. On
the successful branch every integer is exactly representable, so the source
cast and the model rounder return the same word.

Exact power-table and assembly excerpts from crate/dec2flt/mod.rs:

  /// Maximum mantissa for the fast-path (`1 << 53` for f64).
  const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;

  const MAX_EXPONENT_FAST_PATH: i64 = 22;
  const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
  const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;

  fn pow10_fast_path(exponent: usize) -> Self {
      // These bit patterns are exactly the source table's rounded binary64
      // literals.  The match is the same masked lookup; it merely keeps float
      // constants out of Aeneas's unsupported constant interpreter.
      match exponent & 31 {
          0 => f64::from_bits(0x3FF0_0000_0000_0000),
          1 => f64::from_bits(0x4024_0000_0000_0000),
          2 => f64::from_bits(0x4059_0000_0000_0000),
          3 => f64::from_bits(0x408F_4000_0000_0000),
          4 => f64::from_bits(0x40C3_8800_0000_0000),
          5 => f64::from_bits(0x40F8_6A00_0000_0000),
          6 => f64::from_bits(0x412E_8480_0000_0000),
          7 => f64::from_bits(0x4163_12D0_0000_0000),
          8 => f64::from_bits(0x4197_D784_0000_0000),
          9 => f64::from_bits(0x41CD_CD65_0000_0000),
          10 => f64::from_bits(0x4202_A05F_2000_0000),
          11 => f64::from_bits(0x4237_4876_E800_0000),
          12 => f64::from_bits(0x426D_1A94_A200_0000),
          13 => f64::from_bits(0x42A2_309C_E540_0000),
          14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
          15 => f64::from_bits(0x430C_6BF5_2634_0000),
          16 => f64::from_bits(0x4341_C379_37E0_8000),
          17 => f64::from_bits(0x4376_3457_85D8_A000),
          18 => f64::from_bits(0x43AB_C16D_674E_C800),
          19 => f64::from_bits(0x43E1_58E4_6091_3D00),
          20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
          21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
          22 => f64::from_bits(0x4480_F0CF_064D_D592),
          _ => f64::from_bits(0),
      }
  }

  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

Exact native-call excerpt from crate/dec2flt/decimal.rs:

  fn can_use_fast_path<F: Lemire>(&self) -> bool {
      F::MIN_EXPONENT_FAST_PATH <= self.exponent
          && self.exponent <= F::MAX_EXPONENT_DISGUISED_FAST_PATH
          && self.mantissa <= F::MAX_MANTISSA_FAST_PATH
          && !self.many_digits
  }

  if !self.can_use_fast_path::<F>() {
      return None;
  }

  let value = if self.exponent <= F::MAX_EXPONENT_FAST_PATH {
      // normal fast path
      let value = F::from_u64(self.mantissa);
      if self.exponent < 0 {
          // Explicit trait calls preserve Rust arithmetic and resolve
          // the generic output type that Charon leaves ambiguous.
          core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
      } else {
          core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
      }
  } else {
      // disguised fast path
      let shift = self.exponent - F::MAX_EXPONENT_FAST_PATH;
      let mantissa = self.mantissa.checked_mul(INT_POW10[shift as usize])?;
      if mantissa > F::MAX_MANTISSA_FAST_PATH {
          return None;
      }
      core::ops::Mul::mul(
          F::from_u64(mantissa),
          F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
      )
  };

  if self.negative {
      Some(core::ops::Neg::neg(value))
  } else {
      Some(value)
  }

The preceding can_use_fast_path body, together with
MAX_MANTISSA_FAST_PATH = 1 << SIG_TOTAL_BITS and SIG_TOTAL_BITS = 53 for f64,
requires the exponent to lie between -22 and 37, the input mantissa to be at
most 2^53, and many_digits to be false. Consequently an ordinary arithmetic
call has a from_u64 operand in 0..=2^53. In its negative-exponent arm,
`-self.exponent` lies in 1..=22; in its nonnegative arm, `self.exponent` lies
in 0..=22. The disguised branch checks its multiplied mantissa against 2^53
before from_u64 and uses table index 22. The paired statement
Binary64NativeCallDomain does not assert this source reachability. It says
conditionally that a from_u64 argument at most 2^53 succeeds with a finite,
non-NaN word and that a table index at most 22 succeeds with a positive,
nonzero, finite, non-NaN word. Applying that conditional statement to the
guards just derived establishes those properties for the actual ordinary and
disguised calls, and in particular establishes that every executed divisor is
nonzero.

Exact special-value excerpt from crate/dec2flt/parse.rs:

  let float = match (register, len) {
      (INF_3, 3) => F::INFINITY,
      (INF_8, 8) => F::INFINITY,
      (NAN, 3) => F::NAN,
      _ => return None,
  };

  if negative { Some(-float) } else { Some(float) }

Thus the executed special route is INFINITY or NAN followed by conditional
negation; it does not select NEG_INFINITY or NEG_NAN directly.

The number helper has the exact source body

  pub fn parse_number(s: &[u8]) -> Option<Decimal> {
      if let Some((float, rest)) = parse_partial_number(s) {
          if rest == s.len() {
              return Some(float);
          }
      }
      None
  }

It returns only the Decimal produced by parse_partial_number; there is no
float type parameter or float operation at this boundary.

Exact dispatcher excerpts from crate/dec2flt/mod.rs
---------------------------------------------------

The entry of `dec2flt_with_trace` strips at most one leading sign, rejects
empty and sign-only inputs, calls `parse_number` on the unsigned body, and
calls `parse_inf_nan` only when `parse_number` returns `None`:

  /// Run the actual dispatcher while retaining its approved internal observations.
  pub fn dec2flt_with_trace<
      'a,
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {
          return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
      };
      let negative = c == b'-';
      if c == b'-' || c == b'+' {
          body = &body[1..];
      }
      if body.is_empty() {
          return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
      }

      let parse_number_result = parse_number(body);
      let parsed = match parse_number_result {
          Some(r) => r,
          None => {
              let parse_inf_nan_result = parse_inf_nan(body, negative);
              return match parse_inf_nan_result {
                  Some(value) => (
                      Ok(value),
                      Dec2FltTrace::Special {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                          result: value,
                      },
                  ),
                  None => (
                      Err(pfe_invalid()),
                      Dec2FltTrace::Invalid {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                      },
                  ),
              };
          }
      };

Thus every `Err` arm shown here returns before `parsed` is available and before
the native, integer, slow, assembly, or final-negation code below it can run.
On a numeric result, the lexical sign is copied into the parsed record before
the native attempt, whose successful result also returns before raw-pair
assembly:

      let mut num = parsed;
      num.negative = negative;
      if !cfg!(feature = "optimize_for_size") {
          let fast_path_result = num.try_fast_path::<F>();
          if let Some(value) = fast_path_result {
              return (
                  Ok(value),
                  Dec2FltTrace::FastPath {
                      body,
                      negative,
                      parse_number_result,
                      fast_path_input: num,
                      fast_path_result,
                      result: value,
                  },
              );
          }
      }

If the native attempt does not return, the selected raw pair is assembled and
the source then conditionally negates it according to the lexical-sign flag:

      let selected_pair = fp;
      // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
      // it neither changes the selected pair nor introduces a new branch or call.
      let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
      let assembly_result = biased_fp_to_float::<F>(fp);
      let lexical_sign_applied = num.negative;
      let result = if lexical_sign_applied {
          core::ops::Neg::neg(assembly_result)
      } else {
          assembly_result
      };

The public `dec2flt` executes that same route and returns its result projection;
it does not reimplement or reorder any parsing or float operation:

  /// Converts a decimal string into a floating point number.
  #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
  pub fn dec2flt<
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &str,
  ) -> Result<F, ParseFloatError> {
      // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
      // clause admits exactly the same instances and lets Charon resolve the
      // explicit, source-equivalent final negation.
      // The public function is now exactly the result projection of the single
      // instrumented implementation.  No conversion step is duplicated, and
      // discarding the trace cannot affect Rust evaluation or the returned bits.
      dec2flt_with_trace::<F>(s).0
  }

The integer-tier helper has the source type and exact executable excerpts
below (long explanatory comments are elided). In particular it returns a raw
BiasedFp and contains no from_u64 cast, primitive float multiplication,
division, negation, or from_bits call:

  pub fn compute_float<F: Float>(q: i64, mut w: u64) -> BiasedFp {
      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);
      let fp_error = BiasedFp::zero_pow2(-1);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if w == 0 || q < F::SMALLEST_POWER_OF_TEN as i64 {
          return fp_zero;
      } else if q > F::LARGEST_POWER_OF_TEN as i64 {
          return fp_inf;
      }
      // Normalize our significant digits, so the most-significant bit is set.
      let lz = w.leading_zeros();
      w <<= lz;
      let (lo, hi) = compute_product_approx(q, w, F::SIG_BITS as usize + 3);
      if lo == 0xFFFF_FFFF_FFFF_FFFF {
          let inside_safe_exponent = (q >= -27) && (q <= 55);
          if !inside_safe_exponent {
              return fp_error;
          }
      }
      let upperbit = (hi >> 63) as i32;
      let mut mantissa = hi >> (upperbit + 64 - F::SIG_BITS as i32 - 3);
      let mut power2 = power(q as i32) + upperbit - lz as i32 - F::EXP_MIN + 1;
      if power2 <= 0 {
          if -power2 + 1 >= 64 {
              // Have more than 64 bits below the minimum exponent, must be 0.
              return fp_zero;
          }
          // Have a subnormal value.
          mantissa >>= -power2 + 1;
          mantissa += mantissa & 1;
          mantissa >>= 1;
          power2 = (mantissa >= (1_u64 << F::SIG_BITS)) as i32;
          return BiasedFp { m: mantissa, p_biased: power2 };
      }
      // Need to handle rounding ties. Normally, we need to round up,
      // but if we fall right in between and we have an even basis, we
      // need to round down.
      if lo <= 1
          && q >= F::MIN_EXPONENT_ROUND_TO_EVEN as i64
          && q <= F::MAX_EXPONENT_ROUND_TO_EVEN as i64
          && mantissa & 0b11 == 0b01
          && (mantissa << (upperbit + 64 - F::SIG_BITS as i32 - 3)) == hi
      {
          // Zero the lowest bit, so we don't round up.
          mantissa &= !1_u64;
      }
      // Round-to-even, then shift the significant digits into place.
      mantissa += mantissa & 1;
      mantissa >>= 1;
      if mantissa >= (2_u64 << F::SIG_BITS) {
          // Rounding up overflowed, so the carry bit is set. Set the
          // mantissa to 1 (only the implicit, hidden bit is set) and
          // increase the exponent.
          mantissa = 1_u64 << F::SIG_BITS;
          power2 += 1;
      }
      // Zero out the hidden bit.
      mantissa &= !(1_u64 << F::SIG_BITS);
      if power2 >= F::INFINITE_POWER {
          // Exponent is above largest normal value, must be infinite.
          return fp_inf;
      }
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact slow-tier source body from crate/dec2flt/slow.rs:

  pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {
      const MAX_SHIFT: usize = 60;
      const NUM_POWERS: usize = 19;
      const POWERS: [u8; 19] =
          [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];

      let get_shift = |n| {
          if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }
      };

      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);

      let mut d = parse_decimal_seq(s);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if d.num_digits == 0 || d.decimal_point < -324 {
          return fp_zero;
      } else if d.decimal_point >= 310 {
          return fp_inf;
      }
      let mut exp2 = 0_i32;
      let mut loop_result = None;
      // Shift right toward (1/2 ... 1].
      while d.decimal_point > 0 && loop_result.is_none() {
          let n = d.decimal_point as usize;
          let shift = get_shift(n);
          d.right_shift(shift);
          if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_zero);
          } else {
              exp2 += shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // Shift left toward (1/2 ... 1].
      while d.decimal_point <= 0 && loop_result.is_none() {
          let shift = if d.decimal_point == 0 {
              match d.digits[0] {
                  digit if digit >= 5 => break,
                  0 | 1 => 2,
                  _ => 1,
              }
          } else {
              get_shift((-d.decimal_point) as _)
          };
          d.left_shift(shift);
          if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_inf);
          } else {
              exp2 -= shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
      exp2 -= 1;
      while F::EXP_MIN > exp2 {
          let mut n = (F::EXP_MIN - exp2) as usize;
          if n > MAX_SHIFT {
              n = MAX_SHIFT;
          }
          d.right_shift(n);
          exp2 += n as i32;
      }
      if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
          return fp_inf;
      }
      // Shift the decimal to the hidden bit, and then round the value
      // to get the high mantissa+1 bits.
      d.left_shift(F::SIG_BITS as usize + 1);
      let mut mantissa = d.round();
      if mantissa >= (1_u64 << (F::SIG_BITS + 1)) {
          // Rounding up overflowed to the carry bit, need to
          // shift back to the hidden bit.
          d.right_shift(1);
          exp2 += 1;
          mantissa = d.round();
          if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
              return fp_inf;
          }
      }
      let mut power2 = exp2 - F::EXP_MIN + 1;
      if mantissa < (1_u64 << F::SIG_BITS) {
          power2 -= 1;
      }
      // Zero out all the bits above the explicit mantissa bits.
      mantissa &= (1_u64 << F::SIG_BITS) - 1;
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact final numeric-sign excerpt from crate/dec2flt/mod.rs:

  let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
  let assembly_result = biased_fp_to_float::<F>(fp);
  let lexical_sign_applied = num.negative;
  let result = if lexical_sign_applied {
      core::ops::Neg::neg(assembly_result)
  } else {
      assembly_result
  };

Thus a numeric execution that reaches the integer/slow selection route
assembles its selected pair with from_bits through biased_fp_to_float and only
then conditionally negates it. A successful try_fast_path returns earlier and
does not perform this assembly. compute_float and parse_long_mantissa produce
raw BiasedFp pairs and do not call from_u64, primitive float multiplication,
division, negation, or from_bits; they do, however, execute constants derived
from SIG_TOTAL_BITS before producing those pairs.

Retained structural-boundary evidence
-------------------------------------

Several adjacent structural bindings cite this same evidence record. Their
pinned library source identities are:

  core/src/num/mod.rs
    f0820f9dfb94999440c8cb4a349736fa21df7e5668e19b6b49e016ff67c05ce3
  core/src/option.rs
    7cf61204b05d98a95bc2e322d5fbfc1f4f91505109971917d9a7fb47151c50e6
  core/src/slice/mod.rs
    354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840
  core/src/str/mod.rs
    284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78

Exact ASCII-digit body from core/src/num/mod.rs:

  pub const fn is_ascii_digit(&self) -> bool {
      matches!(*self, b'0'..=b'9')
  }

Exact Option control-flow bodies from core/src/option.rs:

  fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
      match self {
          Some(v) => ControlFlow::Continue(v),
          None => ControlFlow::Break(None),
      }
  }

  fn from_residual(residual: Option<convert::Infallible>) -> Self {
      match residual {
          None => None,
      }
  }

Exact slice observation bodies from core/src/slice/mod.rs:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

Exact string-byte body from core/src/str/mod.rs:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }
reference/model-evidence/binary64-probe.rs

Open file

#![feature(float_masks)]

use std::num::FpCategory;

fn bits(label: &str, value: f64) {
    println!("{label}={:016x}", value.to_bits());
}

fn main() {
    println!("target_arch={}", std::env::consts::ARCH);
    println!("mantissa_digits={}", f64::MANTISSA_DIGITS);
    println!("exponent_mask={:016x}", f64::EXPONENT_MASK);
    println!("mantissa_mask={:016x}", f64::MANTISSA_MASK);
    bits("nan", f64::NAN);
    bits("infinity", f64::INFINITY);
    bits("neg_infinity", f64::NEG_INFINITY);

    for (label, value) in [
        ("nan_category", f64::NAN),
        ("infinity_category", f64::INFINITY),
        ("zero_category", 0.0),
        ("subnormal_category", f64::from_bits(1)),
        ("normal_category", 1.0),
    ] {
        let category = match value.classify() {
            FpCategory::Nan => "Nan",
            FpCategory::Infinite => "Infinite",
            FpCategory::Zero => "Zero",
            FpCategory::Subnormal => "Subnormal",
            FpCategory::Normal => "Normal",
        };
        println!("{label}={category}");
    }

    let payload_nan_word = 0x7ff0_0000_0000_0001_u64;
    println!(
        "from_bits_to_bits={:016x}",
        f64::from_bits(payload_nan_word).to_bits()
    );
    bits("neg_payload_nan", -f64::from_bits(payload_nan_word));
    bits("neg_zero", -0.0);

    bits("subnormal_tie_to_even_zero", f64::from_bits(1) * 0.5);
    bits("subnormal_tie_to_even_two", f64::from_bits(3) * 0.5);
    bits("normal_division", 1.0 / 10.0);
    bits("mul_negative_zero", -0.0 * 2.0);
    bits("div_negative_zero", -1.0 / f64::INFINITY);
    bits("div_negative_infinity", 1.0 / -0.0);
    bits("mul_overflow", f64::MAX * (1.0 + f64::EPSILON));
    println!("mul_zero_infinity_is_nan={}", (0.0 * f64::INFINITY).is_nan());
    println!("div_zero_zero_is_nan={}", (0.0_f64 / 0.0_f64).is_nan());
    println!("mul_nan_is_nan={}", (f64::NAN * 1.0).is_nan());

    bits("cast_2_pow_53", (1_u64 << 53) as f64);
    bits("cast_2_pow_53_plus_1", ((1_u64 << 53) + 1) as f64);
}
reference/model-evidence/native-boundary.txt

Open file

Native boundary inventory for Binary64Model

Reproduction command (repository root):
  python3 .trellis/scripts/pv_modeling.py inspect-native .

Tool identity for this reproduction:
  Python 3.14.4
  .trellis/scripts/pv_modeling.py
  sha256 915b29822cb4c47b70dabb1dc011514641deb2e428b62347fc31aa898de5e0d4

Top-level result:
  declaration_count: 24

The complete raw inspect-native records for the fourteen F64 externals follow.
They are copied from the command's complete index; no scratch artifact is needed
to review them.

[
  {
    "name": "F64.Insts.CoreCloneClone.clone",
    "extracted_signature": ": F64 → Result F64",
    "rust_symbol": "core::clone::impls::{impl core::clone::Clone for f64}::clone",
    "raw_declaration_sha256": "5eaad5fb9af034045cf0dafed5af85445fe4af9a78958259a15a1faddd1e8f05",
    "source_utf8": "/-- [core::clone::impls::{impl core::clone::Clone for f64}::clone]:\n    Source: '/rustc/library/core/src/clone.rs', lines 698:20-698:43\n    Name pattern: [core::clone::impls::{core::clone::Clone<f64>}::clone]\n    Visibility: public -/\n@[rust_fun \"core::clone::impls::{core::clone::Clone<f64>}::clone\"]\naxiom F64.Insts.CoreCloneClone.clone : F64 → Result F64\n"
  },
  {
    "name": "core.f64.F64.MANTISSA_DIGITS",
    "extracted_signature": ": Result Std.U32",
    "rust_symbol": "core::f64::{f64}::MANTISSA_DIGITS",
    "raw_declaration_sha256": "42b1b0c4d2c2bbc7271748fc78c518391f55bf6517c643667a6561a0ac6e771c",
    "source_utf8": "/-- [core::f64::{f64}::MANTISSA_DIGITS]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 412:4-412:34\n    Name pattern: [core::f64::{f64}::MANTISSA_DIGITS]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::MANTISSA_DIGITS\"]\naxiom core.f64.F64.MANTISSA_DIGITS : Result Std.U32\n"
  },
  {
    "name": "core.f64.F64.NAN",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::NAN",
    "raw_declaration_sha256": "a18685a80db5dbebe39151c7375a0470bb3905fe1228e5598a995a1cf017a768",
    "source_utf8": "/-- [core::f64::{f64}::NAN]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 509:4-509:22\n    Name pattern: [core::f64::{f64}::NAN]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::NAN\"] axiom core.f64.F64.NAN : Result F64\n"
  },
  {
    "name": "core.f64.F64.INFINITY",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::INFINITY",
    "raw_declaration_sha256": "f905901e67400987f49cddd13a8768644bed9e7e3f79c3a81b34879f494a2816",
    "source_utf8": "/-- [core::f64::{f64}::INFINITY]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 512:4-512:27\n    Name pattern: [core::f64::{f64}::INFINITY]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::INFINITY\"]\naxiom core.f64.F64.INFINITY : Result F64\n"
  },
  {
    "name": "core.f64.F64.NEG_INFINITY",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::NEG_INFINITY",
    "raw_declaration_sha256": "85f6e517e439c2f2d5c59aa29884ff38b2381c2f5dd7cb14e7947b232efe7f0e",
    "source_utf8": "/-- [core::f64::{f64}::NEG_INFINITY]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 515:4-515:31\n    Name pattern: [core::f64::{f64}::NEG_INFINITY]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::NEG_INFINITY\"]\naxiom core.f64.F64.NEG_INFINITY : Result F64\n"
  },
  {
    "name": "core.f64.F64.EXPONENT_MASK",
    "extracted_signature": ": Result Std.U64",
    "rust_symbol": "core::f64::{f64}::EXPONENT_MASK",
    "raw_declaration_sha256": "f1054e64392d8f9306e8c69015f0b521d9f387edda8458a3bae4773606f46a71",
    "source_utf8": "/-- [core::f64::{f64}::EXPONENT_MASK]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 615:4-615:32\n    Name pattern: [core::f64::{f64}::EXPONENT_MASK]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::EXPONENT_MASK\"]\naxiom core.f64.F64.EXPONENT_MASK : Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.MANTISSA_MASK",
    "extracted_signature": ": Result Std.U64",
    "rust_symbol": "core::f64::{f64}::MANTISSA_MASK",
    "raw_declaration_sha256": "dc3517faa141b7a7a016e9f73930af3c9af23d3e6d06874440d99eabbc846538",
    "source_utf8": "/-- [core::f64::{f64}::MANTISSA_MASK]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 637:4-637:32\n    Name pattern: [core::f64::{f64}::MANTISSA_MASK]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::MANTISSA_MASK\"]\naxiom core.f64.F64.MANTISSA_MASK : Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.classify",
    "extracted_signature": ": F64 → Result core.num.FpCategory",
    "rust_symbol": "core::f64::{f64}::classify",
    "raw_declaration_sha256": "9fedd442d1d0403c4a7323d8f4e95c51b8bd39bf82d2d0ba357eaaf243e69b78",
    "source_utf8": "/-- [core::f64::{f64}::classify]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 782:4-782:45\n    Name pattern: [core::f64::{f64}::classify]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::classify\"]\naxiom core.f64.F64.classify : F64 → Result core.num.FpCategory\n"
  },
  {
    "name": "core.f64.F64.to_bits",
    "extracted_signature": ": F64 → Result Std.U64",
    "rust_symbol": "core::f64::{f64}::to_bits",
    "raw_declaration_sha256": "ddaec6bb7c36ba6445a5b0b8e52f841240ca2563004e8ce1255caf0e36ec22ae",
    "source_utf8": "/-- [core::f64::{f64}::to_bits]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 1223:4-1223:37\n    Name pattern: [core::f64::{f64}::to_bits]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::to_bits\"]\naxiom core.f64.F64.to_bits : F64 → Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.from_bits",
    "extracted_signature": ": Std.U64 → Result F64",
    "rust_symbol": "core::f64::{f64}::from_bits",
    "raw_declaration_sha256": "af8ee4387cea97d0a353a83d6280c03f3c9f739bf733af5bd39c29909f1b2b19",
    "source_utf8": "/-- [core::f64::{f64}::from_bits]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 1269:4-1269:42\n    Name pattern: [core::f64::{f64}::from_bits]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::from_bits\"]\naxiom core.f64.F64.from_bits : Std.U64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithMulF64F64.mul",
    "extracted_signature": ": F64 → F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Mul<f64, f64> for f64}::mul",
    "raw_declaration_sha256": "20d985819a981e9e80485ce169c1d045ea13fa8796e9314d5b621141aae6deec",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Mul<f64, f64> for f64}::mul]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 350:12-350:41\n    Name pattern: [core::ops::arith::{core::ops::arith::Mul<f64, f64, f64>}::mul]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Mul<f64, f64, f64>}::mul\"]\naxiom F64.Insts.CoreOpsArithMulF64F64.mul : F64 → F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithDivF64F64.div",
    "extracted_signature": ": F64 → F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Div<f64, f64> for f64}::div",
    "raw_declaration_sha256": "1ebb67b412d89328acb4c5dd53168e84fdf26be6cbe1ef49f5a27edbd84ada36",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Div<f64, f64> for f64}::div]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 515:12-515:41\n    Name pattern: [core::ops::arith::{core::ops::arith::Div<f64, f64, f64>}::div]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Div<f64, f64, f64>}::div\"]\naxiom F64.Insts.CoreOpsArithDivF64F64.div : F64 → F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithNegF64.neg",
    "extracted_signature": ": F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Neg<f64> for f64}::neg",
    "raw_declaration_sha256": "bbf93f24bd7cfbc72e47e8bb3a9acc6641df939ad6afafd9ba02c81fe27f7ed0",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Neg<f64> for f64}::neg]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 719:12-719:30\n    Name pattern: [core::ops::arith::{core::ops::arith::Neg<f64, f64>}::neg]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Neg<f64, f64>}::neg\"]\naxiom F64.Insts.CoreOpsArithNegF64.neg : F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64",
    "extracted_signature": ": Std.U64 → Result F64",
    "rust_symbol": "dec2flt_model::num::imp::dec2flt::{impl dec2flt_model::num::imp::dec2flt::Lemire<u64> for f64}::from_u64",
    "raw_declaration_sha256": "ad172bce0522e7e41bceb8c66a5adff962822ee8a9454dfd59b7019086797ba8",
    "source_utf8": "/-- [dec2flt_model::num::imp::dec2flt::{impl dec2flt_model::num::imp::dec2flt::Lemire<u64> for f64}::from_u64]:\n    Source: 'num/imp/../../dec2flt/mod.rs', lines 263:4-266:5\n    Visibility: public -/\naxiom F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64\n  : Std.U64 → Result F64\n"
  }
]
reference/model-evidence/setup-reproduction.txt

Open file

Fresh extraction and composition evidence for Preamble
======================================================

Scope
-----

This record identifies the preparation evidence frozen with this reopened
repository and records the model-support composition reproduced on 2026-09-24.
It is evidence about source, extraction, and composition, not evidence that any
supplied GOAL is true.

Pinned configuration and tools
------------------------------

modeling-input/extraction.json selects the single library crate `crate` with
empty Cargo, Charon, and Aeneas argument lists.  crate/Cargo.toml gives the
`default` feature an empty definition, leaves `optimize_for_size` disabled,
uses the development profile, and explicitly enables overflow checks.
extraction-evidence/COMMAND.json records target x86_64-unknown-linux-gnu,
nightly-2026-06-01, debug assertions, overflow checks, unwind panic handling,
64-bit pointers, and SSE2.

modeling-input/tool-identities.json pins these six executables by SHA-256:

  cargo   54e05dce8c9ca2f638cc3d87ec1a19425b5d0bf1f31aeb48cf4792aec5cadf27
  rustc   162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  rustdoc 2bf660d140310e28146e2c002dc6fcabd957c0a3b740be0419e6f8e5a9c87523
  Charon  6490034f368ce98f3e7ae5a28bf71ed56d03bdf1e3712e71376b96fc55baeade
  Aeneas  9f446d2aaf59e8e705e36d05cb993f1c6ab0e97f8dc6fd2f19907a86ede30922
  Lean    3e0d0d3d801675359f2d4cf9815bfdb417b20b92fdd9d48b3b14c95bbae28bbf

Fresh extraction
----------------

The authoritative reproduction command in modeling-input/manifest.json is:

  python3 .trellis/scripts/pv_modeling.py check-native . --fresh

extraction-evidence/COMMAND.json records the exact argv, environment, and
working directory for every step.  extraction-evidence/RESULT.json records
exit status 0 for rustc identity, Charon/Cargo extraction, Cargo metadata,
Cargo cfg, and Aeneas.  Its primary run produced generated Lean SHA-256:

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9

The same digest is recorded for both `audited_sha256` and `native_sha256` in
modeling-input/manifest.json, whose `byte_identical` field is true, and is the
digest of this repository's generated.lean.  The manifest's accepted setup and
adaptation audits record the successful uncached Cargo, Charon, and Aeneas
checks, the absence of source placeholders, and the exact 24-external native
boundary.  In particular, the corrected source basis is:

  c42107d27bc47c02e4beb4d6db4c47879aecb68a175ab67f7e6c5d5e866a2402c06583f9e94b467095cf9aff1a26a4857650ace006061c1ca5e4c441747ef622

The pinned compatibility report modeling-input/axiom-compatibility.json has
SHA-256

  473825c0fe635e1abc7a734a2035f5df20ed4fe7053403ef2fb6833d7101a016

and checks 2,225 declarations.  It reports no unapproved axiom.  Its only
pending group contains 64 declarations downstream of the absent raw F64
carrier and external operations, exactly the boundary supplied by the authored
model-support layer; the raw extractor output contains no proof placeholder.

External boundary
-----------------

The reproducible command

  python3 .trellis/scripts/pv_modeling.py inspect-native .

returns exactly 24 declarations: fourteen F64 operations, four U64 bit
operations, and six byte/Option/slice/string operations.  Their complete
records are retained in reference/model-evidence/native-boundary.txt and the
structural-operation evidence files.  Tablet/model-support.json has exactly
one exact-signature binding for each declaration.  The whole opaque
`Lemire::from_u64` method has raw declaration SHA-256

  ad172bce0522e7e41bceb8c66a5adff962822ee8a9454dfd59b7019086797ba8

and covers source lines 263:4-266:5, including both the debug assertion and
the conversion.  It is not a cast-only boundary.

Composition and elaboration
---------------------------

After installing all 24 bindings, the exact command

  python3 .trellis/scripts/pv_modeling.py compose-native . --check

returned `matches=true`, `changed=false`, no mismatched files, raw extraction
hash

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9

and equal expected and actual Preamble hashes

  2bf9c25b895e20dd9efe782ae173e2b07b55020eed41a7d9b63b2ae9e1db007c.

The receipt reports 24 bindings, 47 authored definitions, and 170 extracted
modules.  Finally,

  python3 .trellis/scripts/check.py tablet

checked all 236 registered nodes against this composition and exited 0.  This
establishes complete composition and elaboration while leaving the 32 principal
GOAL proofs open for argument development as required.
reference/model-evidence/source-adaptation-delta.diff

Open file

--- upstream/dec2flt/common.rs
+++ crate/dec2flt/common.rs
@@ -14,4 +13,0 @@
-    /// Iteratively parse and consume digits from bytes.
-    ///
-    /// Returns the same bytes with consumed digits being elided. Breaks on invalid digits.
-    fn parse_digits(&self, func: impl FnMut(u8)) -> &Self;
@@ -38,16 +33,0 @@
-    #[inline]
-    fn parse_digits(&self, mut func: impl FnMut(u8)) -> &Self {
-        let mut s = self;
-
-        while let Some((c, rest)) = s.split_first() {
-            let c = c.wrapping_sub(b'0');
-            if c < 10 {
-                func(c);
-                s = rest;
-            } else {
-                break;
-            }
-        }
-
-        s
-    }
@@ -68 +48,4 @@
-#[derive(Debug, Copy, Clone, PartialEq, Eq, Default)]
+// Debug output is not an accepted public or trace observation.  Removing only
+// that implementation preserves the fields, computational derives, and every
+// algorithm operation independently of GOAL truth.
+#[derive(Copy, Clone, PartialEq, Eq, Default)]
--- upstream/dec2flt/decimal.rs
+++ crate/dec2flt/decimal.rs
@@ -28 +28,4 @@
-#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
+// Debug output is absent from the accepted observations.  Removing only that
+// implementation leaves all fields, computational derives, and parser
+// operations unchanged independently of GOAL truth.
+#[derive(Clone, Copy, Default, PartialEq, Eq)]
@@ -56 +59,11 @@
-    pub fn try_fast_path<F: Lemire>(&self) -> Option<F> {
+    pub fn try_fast_path<
+        F: Lemire
+            + core::ops::Div<Output = F>
+            + core::ops::Mul<Output = F>
+            + core::ops::Neg<Output = F>,
+    >(
+        &self,
+    ) -> Option<F> {
+        // `Lemire` already entails these three operator bounds through
+        // `Float`; spelling them directly changes no admitted type.  Charon
+        // needs the direct clauses to resolve each explicit call's `Output`.
@@ -73 +86,3 @@
-                value / F::pow10_fast_path((-self.exponent) as _)
+                // Explicit trait calls preserve Rust arithmetic and resolve
+                // the generic output type that Charon leaves ambiguous.
+                core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
@@ -75 +90 @@
-                value * F::pow10_fast_path(self.exponent as _)
+                core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
@@ -84 +99,4 @@
-            F::from_u64(mantissa) * F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _)
+            core::ops::Mul::mul(
+                F::from_u64(mantissa),
+                F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
+            )
@@ -87 +105,5 @@
-        if self.negative { Some(-value) } else { Some(value) }
+        if self.negative {
+            Some(core::ops::Neg::neg(value))
+        } else {
+            Some(value)
+        }
--- upstream/dec2flt/decimal_seq.rs
+++ crate/dec2flt/decimal_seq.rs
@@ -17 +17,4 @@
-#[derive(Clone, Debug, PartialEq)]
+// Debug output is absent from the accepted observations.  Removing only that
+// implementation preserves the representation, Clone/PartialEq behavior, and
+// every fallback operation independently of GOAL truth.
+#[derive(Clone, PartialEq)]
@@ -176 +179,2 @@
-        while (n >> shift) == 0 {
+        let mut all_zero = false;
+        while (n >> shift) == 0 && !all_zero {
@@ -181 +185,4 @@
-                return;
+                // The source returns here from inside the loop.  Recording the
+                // condition and returning immediately after the loop executes
+                // no intervening operation and preserves the unchanged value.
+                all_zero = true;
@@ -189,0 +197,3 @@
+        if all_zero {
+            return;
+        }
@@ -220,0 +231,51 @@
+// This is exactly the source reverse scan over the already-consumed prefix.
+// It is separate because Aeneas cannot join the loop while `parse_decimal_seq`
+// retains its other slice borrows.  The downward index has the same visitation
+// order and counts precisely the same zero bytes while ignoring dots.
+fn count_trailing_zeros(start: &[u8], consumed_len: usize) -> usize {
+    let mut n_trailing_zeros = 0;
+    let mut i = consumed_len;
+    let mut scanning = true;
+    while i != 0 && scanning {
+        let c = start[i - 1];
+        if c == b'0' || c == b'.' {
+            i -= 1;
+            if c == b'0' {
+                n_trailing_zeros += 1;
+            }
+        } else {
+            scanning = false;
+        }
+    }
+    n_trailing_zeros
+}
+
+// Equivalent to `ByteSlice::parse_digits(|digit| d.try_add_digit(digit))`.
+// An explicit index keeps the closure's mutable borrow out of the enclosing
+// parser context while retaining the same wrapping digit test and updates.
+fn parse_digits_into_seq<'a>(s: &'a [u8], d: &mut DecimalSeq) -> &'a [u8] {
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
+        d.try_add_digit(digit);
+        count += 1;
+    }
+    &s[count..]
+}
+
+// Equivalent to the source exponent `parse_digits` closure.  Bytes after the
+// first nondigit were ignored by the caller, so only the accumulated value is
+// returned; the 0x10000 guard and wrapping digit classification are identical.
+fn parse_decimal_exponent(s: &[u8]) -> i32 {
+    let mut exp_num = 0;
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
+        if exp_num < 0x10000 {
+            exp_num = 10 * exp_num + digit as i32;
+        }
+        count += 1;
+    }
+    exp_num
+}
+
@@ -226,2 +287,5 @@
-    while let Some((&b'0', s_next)) = s.split_first() {
-        s = s_next;
+    // Aeneas rejects the literal-pattern `while let`; this loop performs the
+    // same nonempty check, byte comparison, and one-byte consumption in the
+    // same order, with identical slice bounds.
+    while !s.is_empty() && s[0] == b'0' {
+        s = &s[1..];
@@ -230 +294 @@
-    s = s.parse_digits(|digit| d.try_add_digit(digit));
+    s = parse_digits_into_seq(s, &mut d);
@@ -232,2 +296,2 @@
-    if let Some((b'.', s_next)) = s.split_first() {
-        s = s_next;
+    if !s.is_empty() && s[0] == b'.' {
+        s = &s[1..];
@@ -237,2 +301,4 @@
-            while let Some((&b'0', s_next)) = s.split_first() {
-                s = s_next;
+            // As above, this is the source leading-zero loop written in the
+            // indexed form accepted by Aeneas.
+            while !s.is_empty() && s[0] == b'0' {
+                s = &s[1..];
@@ -250 +316 @@
-        s = s.parse_digits(|digit| d.try_add_digit(digit));
+        s = parse_digits_into_seq(s, &mut d);
@@ -256,8 +322,5 @@
-        let mut n_trailing_zeros = 0;
-        for &c in start[..(start.len() - s.len())].iter().rev() {
-            if c == b'0' {
-                n_trailing_zeros += 1;
-            } else if c != b'.' {
-                break;
-            }
-        }
+        let consumed_len = start.len() - s.len();
+        // Walking an index downward visits exactly the same bytes as
+        // `.iter().rev()` and stops on the same first nonzero nondot byte.  It
+        // also avoids the missing extracted `Iterator::rev` library field.
+        let n_trailing_zeros = count_trailing_zeros(start, consumed_len);
@@ -273 +336,4 @@
-    if let Some((&ch, s_next)) = s.split_first() {
+    // Indexed tests preserve `split_first`'s nonempty guard and byte order but
+    // avoid the loop-context joins Aeneas creates for nested slice patterns.
+    if !s.is_empty() {
+        let ch = s[0];
@@ -275,4 +341,7 @@
-            s = s_next;
-            let mut neg_exp = false;
-            if let Some((&ch, s_next)) = s.split_first() {
-                neg_exp = ch == b'-';
+            s = &s[1..];
+            let mut exp_sign = 1_i32;
+            if !s.is_empty() {
+                let ch = s[0];
+                if ch == b'-' {
+                    exp_sign = -1;
+                }
@@ -280 +349 @@
-                    s = s_next;
+                    s = &s[1..];
@@ -283,7 +352 @@
-            let mut exp_num = 0_i32;
-
-            s.parse_digits(|digit| {
-                if exp_num < 0x10000 {
-                    exp_num = 10 * exp_num + digit as i32;
-                }
-            });
+            let exp_num = parse_decimal_exponent(s);
@@ -291 +354,4 @@
-            d.decimal_point += if neg_exp { -exp_num } else { exp_num };
+            // `exp_num` is bounded by the source's 0x10000 guard, so this
+            // multiplication cannot overflow and equals the original Boolean
+            // choice between `-exp_num` and `exp_num` under checked arithmetic.
+            d.decimal_point += exp_sign * exp_num;
--- upstream/dec2flt/mod.rs
+++ crate/dec2flt/mod.rs
@@ -90 +90 @@
-use common::BiasedFp;
+pub use common::BiasedFp;
@@ -118,4 +118 @@
-    const MAX_EXPONENT_FAST_PATH: i64 = {
-        let log2_5 = f64::consts::LOG2_10 - 1.0;
-        (Self::SIG_TOTAL_BITS as f64 / log2_5) as i64
-    };
+    const MAX_EXPONENT_FAST_PATH: i64;
@@ -128,2 +125 @@
-    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 =
-        Self::MAX_EXPONENT_FAST_PATH + (Self::SIG_TOTAL_BITS as f64 / f64::consts::LOG2_10) as i64;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64;
@@ -144,0 +141,4 @@
+// The f16 Lemire instance is outside the exclusively f64 scope. Disabling it
+// leaves every retained f64 parser/helper/trace body, native decision, checked
+// operation, debug assertion, return value, and accepted observation unchanged.
+#[cfg(any())]
@@ -145,0 +146,7 @@
+    // These are the exact integer results of the upstream compile-time float
+    // formulae for `SIG_TOTAL_BITS = 11`: floor(11/log2(5)) = 4 and
+    // 4 + floor(11/log2(10)) = 7.  Concrete integers avoid unsupported const
+    // float arithmetic without changing either fast-path guard.
+    const MAX_EXPONENT_FAST_PATH: i64 = 4;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 7;
+
@@ -147,3 +154,11 @@
-        #[allow(clippy::use_self)]
-        const TABLE: [f16; 8] = [1e0, 1e1, 1e2, 1e3, 1e4, 0.0, 0.0, 0.];
-        TABLE[exponent & 7]
+        // Each integer is the exact IEEE encoding of the corresponding
+        // upstream table literal; the masked lookup and fallback zeros are
+        // unchanged.  Aeneas cannot translate arrays containing float values.
+        match exponent & 7 {
+            0 => f16::from_bits(0x3C00),
+            1 => f16::from_bits(0x4900),
+            2 => f16::from_bits(0x5640),
+            3 => f16::from_bits(0x63D0),
+            4 => f16::from_bits(0x70E2),
+            _ => f16::from_bits(0),
+        }
@@ -152,0 +168,4 @@
+    // This method is exactly the upstream primitive `u64 as f16` conversion.
+    // Charon extracts the cast, but Aeneas reports it unreachable; making only
+    // this primitive boundary opaque preserves all guards and dispatcher logic.
+    #[charon::opaque]
@@ -158,0 +178,4 @@
+// The f32 Lemire instance is likewise unused by the retained f64
+// specialization, so disabling it cannot affect any retained body or observed
+// f64 execution independently of the correctness GOALs.
+#[cfg(any())]
@@ -159,0 +183,4 @@
+    // Exact upstream formula results for `SIG_TOTAL_BITS = 24`.
+    const MAX_EXPONENT_FAST_PATH: i64 = 10;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 17;
+
@@ -161,4 +188,16 @@
-        #[allow(clippy::use_self)]
-        const TABLE: [f32; 16] =
-            [1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 0., 0., 0., 0., 0.];
-        TABLE[exponent & 15]
+        // Bit constructors preserve the exact table values and masked lookup,
+        // while avoiding Aeneas's unsupported float-valued array constants.
+        match exponent & 15 {
+            0 => f32::from_bits(0x3F80_0000),
+            1 => f32::from_bits(0x4120_0000),
+            2 => f32::from_bits(0x42C8_0000),
+            3 => f32::from_bits(0x447A_0000),
+            4 => f32::from_bits(0x461C_4000),
+            5 => f32::from_bits(0x47C3_5000),
+            6 => f32::from_bits(0x4974_2400),
+            7 => f32::from_bits(0x4B18_9680),
+            8 => f32::from_bits(0x4CBE_BC20),
+            9 => f32::from_bits(0x4E6E_6B28),
+            10 => f32::from_bits(0x5015_02F9),
+            _ => f32::from_bits(0),
+        }
@@ -167,0 +207,4 @@
+    // This is exactly the source `u64 as f32` conversion.  The narrow opaque
+    // boundary is required because Aeneas rejects the primitive cast itself;
+    // its input guard and every caller remain transparent.
+    #[charon::opaque]
@@ -174,0 +218,4 @@
+    // Exact upstream formula results for `SIG_TOTAL_BITS = 53`.
+    const MAX_EXPONENT_FAST_PATH: i64 = 22;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;
+
@@ -176,5 +223,29 @@
-        const TABLE: [f64; 32] = [
-            1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13, 1e14, 1e15,
-            1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22, 0., 0., 0., 0., 0., 0., 0., 0., 0.,
-        ];
-        TABLE[exponent & 31]
+        // These bit patterns are exactly the source table's rounded binary64
+        // literals.  The match is the same masked lookup; it merely keeps float
+        // constants out of Aeneas's unsupported constant interpreter.
+        match exponent & 31 {
+            0 => f64::from_bits(0x3FF0_0000_0000_0000),
+            1 => f64::from_bits(0x4024_0000_0000_0000),
+            2 => f64::from_bits(0x4059_0000_0000_0000),
+            3 => f64::from_bits(0x408F_4000_0000_0000),
+            4 => f64::from_bits(0x40C3_8800_0000_0000),
+            5 => f64::from_bits(0x40F8_6A00_0000_0000),
+            6 => f64::from_bits(0x412E_8480_0000_0000),
+            7 => f64::from_bits(0x4163_12D0_0000_0000),
+            8 => f64::from_bits(0x4197_D784_0000_0000),
+            9 => f64::from_bits(0x41CD_CD65_0000_0000),
+            10 => f64::from_bits(0x4202_A05F_2000_0000),
+            11 => f64::from_bits(0x4237_4876_E800_0000),
+            12 => f64::from_bits(0x426D_1A94_A200_0000),
+            13 => f64::from_bits(0x42A2_309C_E540_0000),
+            14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
+            15 => f64::from_bits(0x430C_6BF5_2634_0000),
+            16 => f64::from_bits(0x4341_C379_37E0_8000),
+            17 => f64::from_bits(0x4376_3457_85D8_A000),
+            18 => f64::from_bits(0x43AB_C16D_674E_C800),
+            19 => f64::from_bits(0x43E1_58E4_6091_3D00),
+            20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
+            21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
+            22 => f64::from_bits(0x4480_F0CF_064D_D592),
+            _ => f64::from_bits(0),
+        }
@@ -183,0 +255,8 @@
+    // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
+    // `charon::opaque` makes this entire asserted conversion external: both the
+    // unchanged `debug_assert!` and the unchanged cast below are in the opaque
+    // body. The callers, their fast-path guards, and their surrounding
+    // computation remain mechanically visible. A corresponding model binding
+    // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
+    // exact binary64 conversion at or below that bound.
+    #[charon::opaque]
@@ -209,5 +288,80 @@
-/// Converts a decimal string into a floating point number.
-#[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
-pub fn dec2flt<F: Lemire>(s: &str) -> Result<F, ParseFloatError> {
-    let mut s = s.as_bytes();
-    let Some(&c) = s.first() else { return Err(pfe_empty()) };
+/// Observable control-flow record for a dispatcher execution.
+///
+/// These variants add no decisions to the conversion: each stores values
+/// already computed at the corresponding source branch.  In particular, the
+/// first component returned by `dec2flt_with_trace` is the ordinary parser
+/// result, so projecting it preserves every public source observation without
+/// assuming any correctness goal.
+pub enum Dec2FltTrace<'a, F> {
+    /// The original string was empty; no helper was called.
+    EmptyInput,
+    /// Removing one lexical sign left an empty body; no helper was called.
+    SignOnly { body: &'a [u8], negative: bool },
+    /// Both lexical helpers returned `None`; no raw pair was selected.
+    Invalid {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        parse_inf_nan_result: Option<F>,
+    },
+    /// The special helper supplied the directly returned value; no pair was selected.
+    Special {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        parse_inf_nan_result: Option<F>,
+        result: F,
+    },
+    /// The ordinary native shortcut supplied the directly returned value.
+    FastPath {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        fast_path_input: decimal::Decimal,
+        fast_path_result: Option<F>,
+        result: F,
+    },
+    /// The integer/slow path selected and assembled one raw pair.
+    Assembled(Dec2FltAssemblyTrace<'a, F>),
+}
+
+/// Full observation record for the dispatcher path that performs final assembly.
+pub struct Dec2FltAssemblyTrace<'a, F> {
+    pub body: &'a [u8],
+    pub negative: bool,
+    pub parse_number_result: Option<decimal::Decimal>,
+    pub fast_path_input: decimal::Decimal,
+    pub fast_path_result: Option<F>,
+    pub first_compute_exponent: i64,
+    pub first_compute_mantissa: u64,
+    pub first_compute_result: BiasedFp,
+    pub second_compute_guard: bool,
+    pub second_compute_exponent: Option<i64>,
+    pub second_compute_mantissa: Option<u64>,
+    pub second_compute_result: Option<BiasedFp>,
+    pub second_equals_first: Option<bool>,
+    pub forced_deferral: bool,
+    pub post_comparison_pair: BiasedFp,
+    pub slow_path_guard: bool,
+    pub slow_path_result: Option<BiasedFp>,
+    pub selected_pair: BiasedFp,
+    pub assembled_word: u64,
+    pub assembly_result: F,
+    pub lexical_sign_applied: bool,
+    pub result: F,
+}
+
+/// Run the actual dispatcher while retaining its approved internal observations.
+pub fn dec2flt_with_trace<
+    'a,
+    F: Lemire
+        + core::ops::Div<Output = F>
+        + core::ops::Mul<Output = F>
+        + core::ops::Neg<Output = F>,
+>(
+    s: &'a str,
+) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
+    let mut body = s.as_bytes();
+    let Some(&c) = body.first() else {
+        return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
+    };
@@ -216 +370 @@
-        s = &s[1..];
+        body = &body[1..];
@@ -218,2 +372,2 @@
-    if s.is_empty() {
-        return Err(pfe_invalid());
+    if body.is_empty() {
+        return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
@@ -222 +376,2 @@
-    let mut num = match parse_number(s) {
+    let parse_number_result = parse_number(body);
+    let parsed = match parse_number_result {
@@ -224,2 +379,24 @@
-        None if let Some(value) = parse_inf_nan(s, negative) => return Ok(value),
-        None => return Err(pfe_invalid()),
+        None => {
+            let parse_inf_nan_result = parse_inf_nan(body, negative);
+            return match parse_inf_nan_result {
+                Some(value) => (
+                    Ok(value),
+                    Dec2FltTrace::Special {
+                        body,
+                        negative,
+                        parse_number_result,
+                        parse_inf_nan_result,
+                        result: value,
+                    },
+                ),
+                None => (
+                    Err(pfe_invalid()),
+                    Dec2FltTrace::Invalid {
+                        body,
+                        negative,
+                        parse_number_result,
+                        parse_inf_nan_result,
+                    },
+                ),
+            };
+        }
@@ -226,0 +404,2 @@
+
+    let mut num = parsed;
@@ -229,2 +408,13 @@
-        if let Some(value) = num.try_fast_path::<F>() {
-            return Ok(value);
+        let fast_path_result = num.try_fast_path::<F>();
+        if let Some(value) = fast_path_result {
+            return (
+                Ok(value),
+                Dec2FltTrace::FastPath {
+                    body,
+                    negative,
+                    parse_number_result,
+                    fast_path_input: num,
+                    fast_path_result,
+                    result: value,
+                },
+            );
@@ -234,15 +424,27 @@
-    // If significant digits were truncated, then we can have rounding error
-    // only if `mantissa + 1` produces a different result. We also avoid
-    // redundantly using the Eisel-Lemire algorithm if it was unable to
-    // correctly round on the first pass.
-    let mut fp = compute_float::<F>(num.exponent, num.mantissa);
-    if num.many_digits
-        && fp.p_biased >= 0
-        && fp != compute_float::<F>(num.exponent, num.mantissa + 1)
-    {
-        fp.p_biased = -1;
-    }
-    // Unable to correctly round the float using the Eisel-Lemire algorithm.
-    // Fallback to a slower, but always correct algorithm.
-    if fp.p_biased < 0 {
-        fp = parse_long_mantissa::<F>(s);
+    let first_compute_exponent = num.exponent;
+    let first_compute_mantissa = num.mantissa;
+    let first_compute_result = compute_float::<F>(first_compute_exponent, first_compute_mantissa);
+    let mut fp = first_compute_result;
+
+    // This expands the source short-circuit conjunction without moving the
+    // checked `mantissa + 1`: that addition and the second helper call still
+    // occur exactly when `many_digits && fp.p_biased >= 0`.
+    let second_compute_guard = num.many_digits && fp.p_biased >= 0;
+    let mut second_compute_exponent = None;
+    let mut second_compute_mantissa = None;
+    let mut second_compute_result = None;
+    let mut second_equals_first = None;
+    let mut forced_deferral = false;
+    if second_compute_guard {
+        let exponent = num.exponent;
+        let mantissa = num.mantissa + 1;
+        let second = compute_float::<F>(exponent, mantissa);
+        let equal = fp == second;
+        second_compute_exponent = Some(exponent);
+        second_compute_mantissa = Some(mantissa);
+        second_compute_result = Some(second);
+        second_equals_first = Some(equal);
+        if !equal {
+            fp.p_biased = -1;
+            forced_deferral = true;
+        }
@@ -249,0 +452 @@
+    let post_comparison_pair = fp;
@@ -251,5 +454,69 @@
-    let mut float = biased_fp_to_float::<F>(fp);
-    if num.negative {
-        float = -float;
-    }
-    Ok(float)
+    let slow_path_guard = fp.p_biased < 0;
+    let mut slow_path_result = None;
+    if slow_path_guard {
+        // The exact slow-path input is the trace's common `body`; the guard
+        // records whether this call occurred, avoiding a duplicate live slice
+        // reference that Aeneas cannot join across this branch.
+        let replacement = parse_long_mantissa::<F>(body);
+        slow_path_result = Some(replacement);
+        fp = replacement;
+    }
+
+    let selected_pair = fp;
+    // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
+    // it neither changes the selected pair nor introduces a new branch or call.
+    let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
+    let assembly_result = biased_fp_to_float::<F>(fp);
+    let lexical_sign_applied = num.negative;
+    let result = if lexical_sign_applied {
+        core::ops::Neg::neg(assembly_result)
+    } else {
+        assembly_result
+    };
+
+    (
+        Ok(result),
+        Dec2FltTrace::Assembled(Dec2FltAssemblyTrace {
+            body,
+            negative,
+            parse_number_result,
+            fast_path_input: num,
+            fast_path_result: None,
+            first_compute_exponent,
+            first_compute_mantissa,
+            first_compute_result,
+            second_compute_guard,
+            second_compute_exponent,
+            second_compute_mantissa,
+            second_compute_result,
+            second_equals_first,
+            forced_deferral,
+            post_comparison_pair,
+            slow_path_guard,
+            slow_path_result,
+            selected_pair,
+            assembled_word,
+            assembly_result,
+            lexical_sign_applied,
+            result,
+        }),
+    )
+}
+
+/// Converts a decimal string into a floating point number.
+#[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
+pub fn dec2flt<
+    F: Lemire
+        + core::ops::Div<Output = F>
+        + core::ops::Mul<Output = F>
+        + core::ops::Neg<Output = F>,
+>(
+    s: &str,
+) -> Result<F, ParseFloatError> {
+    // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
+    // clause admits exactly the same instances and lets Charon resolve the
+    // explicit, source-equivalent final negation.
+    // The public function is now exactly the result projection of the single
+    // instrumented implementation.  No conversion step is duplicated, and
+    // discarding the trace cannot affect Rust evaluation or the returned bits.
+    dec2flt_with_trace::<F>(s).0
--- upstream/dec2flt/parse.rs
+++ crate/dec2flt/parse.rs
@@ -34,3 +34,6 @@
-        let num = s.read_u64();
-        if is_8digits(num) {
-            x = x.wrapping_mul(1_0000_0000).wrapping_add(parse_8digits(num));
+        // `chunk` is the source's local `num` under a nonconflicting name.
+        // The rename has no Rust effect and prevents the Lean backend from
+        // resolving `num.imp...` as a field projection on this local value.
+        let chunk = s.read_u64();
+        if is_8digits(chunk) {
+            x = x.wrapping_mul(1_0000_0000).wrapping_add(parse_8digits(chunk));
@@ -43 +46,6 @@
-    s = s.parse_digits(|digit| {
+    // This is the removed `ByteSlice::parse_digits` call specialized to its
+    // only parser use: identical wrapping digit classification, accumulator
+    // update, and first-nondigit stop, without an unsupported closure state.
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
@@ -45 +53,3 @@
-    });
+        count += 1;
+    }
+    s = &s[count..];
@@ -71,0 +82,38 @@
+// This is the source prefix scan isolated from `parse_partial_number` because
+// Aeneas cannot join its loop context while the enclosing function's other
+// slice borrows are live.  It visits the same bytes, in order, and performs
+// the identical checked `isize` subtraction for every leading dot or zero.
+fn adjust_many_digit_count(start: &[u8], mut n_digits: isize) -> isize {
+    let mut scan_index = 0;
+    let mut scanning = true;
+    while scan_index < start.len() && scanning {
+        let c = start[scan_index];
+        if c == b'.' || c == b'0' {
+            n_digits -= c.saturating_sub(b'0' - 1) as isize;
+            scan_index += 1;
+        } else {
+            scanning = false;
+        }
+    }
+    n_digits
+}
+
+// This is the source many-digit retry as a transparent helper.  Isolating its
+// rebased slices avoids an Aeneas context-join failure; both calls, the branch,
+// the offset arithmetic, and the explicit-exponent addition are unchanged.
+fn parse_many_digits(start: &[u8], int_end: &[u8], exp_number: i64) -> (u64, i64) {
+    let mut mantissa = 0;
+    let mut s = start;
+    try_parse_19digits(&mut s, &mut mantissa);
+    let mut exponent = if mantissa >= MIN_19DIGIT_INT {
+        int_end.offset_from(s)
+    } else {
+        s = &s[1..];
+        let before = s;
+        try_parse_19digits(&mut s, &mut mantissa);
+        -s.offset_from(before)
+    } as i64;
+    exponent += exp_number;
+    (mantissa, exponent)
+}
+
@@ -86,3 +134,10 @@
-    if matches!(s.first(), Some(&x) if x.is_ascii_digit()) {
-        *s_ref = s.parse_digits(|digit| {
-            // no overflows here, saturate well before overflow
+    // `matches!` with a guarded slice pattern triggers an Aeneas internal
+    // error.  This short-circuit test reads the same first byte exactly when
+    // it exists and therefore preserves both acceptance and evaluation order.
+    if !s.is_empty() && s[0].is_ascii_digit() {
+        // Specialized form of the source digit callback.  `count` advances
+        // exactly once per accepted byte and the bound keeps every checked
+        // exponent operation in the same safe range as the source.
+        let mut count = 0;
+        while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+            let digit = s[count].wrapping_sub(b'0');
@@ -92 +147,3 @@
-        });
+            count += 1;
+        }
+        *s_ref = &s[count..];
@@ -155,9 +212,5 @@
-    let mut p = start;
-    while let Some((&c, p_next)) = p.split_first() {
-        if c == b'.' || c == b'0' {
-            n_digits -= c.saturating_sub(b'0' - 1) as isize;
-            p = p_next;
-        } else {
-            break;
-        }
-    }
+    // The indexed loop is equivalent to the source `while let split_first`:
+    // it tests nonemptiness before the same byte read and consumes one byte
+    // only on the two source continuation cases.  This avoids Aeneas's loop
+    // context mismatch without changing checked subtraction or slice bounds.
+    n_digits = adjust_many_digit_count(start, n_digits);
@@ -167,14 +220,3 @@
-        mantissa = 0;
-        let mut s = start;
-        try_parse_19digits(&mut s, &mut mantissa);
-        exponent = if mantissa >= MIN_19DIGIT_INT {
-            // big int
-            int_end.offset_from(s)
-        } else {
-            s = &s[1..];
-            let before = s;
-            try_parse_19digits(&mut s, &mut mantissa);
-            -s.offset_from(before)
-        } as i64;
-        // add back the explicit part
-        exponent += exp_number;
+        let retried = parse_many_digits(start, int_end, exp_number);
+        mantissa = retried.0;
+        exponent = retried.1;
--- upstream/dec2flt/slow.rs
+++ crate/dec2flt/slow.rs
@@ -48,0 +49 @@
+    let mut loop_result = None;
@@ -50 +51 @@
-    while d.decimal_point > 0 {
+    while d.decimal_point > 0 && loop_result.is_none() {
@@ -55 +56,7 @@
-            return fp_zero;
+            // The source returns `fp_zero` at this exact point.  Storing that
+            // result and terminating the loop performs no later loop update;
+            // the return below is therefore behavior-identical and avoids an
+            // Aeneas restriction on returns from nested loop translation.
+            loop_result = Some(fp_zero);
+        } else {
+            exp2 += shift as i32;
@@ -57 +64,3 @@
-        exp2 += shift as i32;
+    }
+    if let Some(result) = loop_result {
+        return result;
@@ -60 +69 @@
-    while d.decimal_point <= 0 {
+    while d.decimal_point <= 0 && loop_result.is_none() {
@@ -72 +81,6 @@
-            return fp_inf;
+            // This records the source's immediate `fp_inf` return.  Since the
+            // guarded loop exits before the exponent update, moving the return
+            // just below the loop preserves every state transition.
+            loop_result = Some(fp_inf);
+        } else {
+            exp2 -= shift as i32;
@@ -74 +88,3 @@
-        exp2 -= shift as i32;
+    }
+    if let Some(result) = loop_result {
+        return result;
--- upstream/traits.rs
+++ crate/traits.rs
@@ -11 +11 @@
-use crate::{f64, fmt, ops};
+use crate::{f64, ops};
@@ -14 +14,5 @@
-pub trait CastInto<T: Copy>: Copy {
+// All uses are through `Int`, which independently requires `Self: Copy`, and
+// every implementation here is a primitive Copy type.  Removing that redundant
+// supertrait changes no call or value but prevents Aeneas from emitting two
+// identically named `Copy` fields for `Self` and `T` in the Lean structure.
+pub trait CastInto<T: Copy> {
@@ -18,0 +23,4 @@
+// The accepted observations contain no formatting behavior.  Removing the
+// `Debug` supertrait changes neither the concrete primitive integer instances
+// nor any operation used by the algorithms, so it preserves the f64
+// specialization and every inventoried observation independently of GOAL truth.
@@ -23 +30,0 @@
-    + fmt::Debug
@@ -52 +59,6 @@
-int!(u16, u32, u64);
+// Only `u64` is the associated integer of the retained `f64` specialization.
+// The removed `u16`/`u32` instances served only the excluded `f16`/`f32`
+// implementations, so their removal changes no f64 public, helper, or trace
+// body, native decision, checked arithmetic, debug assertion, return value, or
+// accepted observation.
+int!(u64);
@@ -55,0 +68,6 @@
+// Formatting is outside every accepted public and trace observation. `Add`,
+// equality, ordering, default construction, and cloning are also unused by all
+// retained generic bodies; only `Copy`, `Mul`, `Div`, and `Neg` are required.
+// Removing those unused requirements admits the same f64 implementation and
+// changes no f64 body, native decision, checked arithmetic, debug assertion,
+// return value, or trace observation, independently of any GOAL's truth.
@@ -61,6 +78,0 @@
-    + ops::Add<Output = Self>
-    + fmt::Debug
-    + PartialEq
-    + PartialOrd
-    + Default
-    + Clone
@@ -134,4 +146 @@
-    const LARGEST_POWER_OF_TEN: i32 = {
-        let largest_pow2 = Self::EXP_BIAS + 1;
-        pow2_to_pow10(largest_pow2 as i64) as i32
-    };
+    const LARGEST_POWER_OF_TEN: i32;
@@ -175,19 +184 @@
-    fn integer_decode(self) -> (u64, i16, i8) {
-        let bits = self.to_bits();
-        let sign: i8 = if bits >> (Self::BITS - 1) == Self::Int::ZERO { 1 } else { -1 };
-        let mut exponent: i16 = ((bits & Self::EXP_MASK) >> Self::SIG_BITS).cast();
-        let mantissa = if exponent == 0 {
-            (bits & Self::SIG_MASK) << 1
-        } else {
-            (bits & Self::SIG_MASK) | (Self::Int::ONE << Self::SIG_BITS)
-        };
-        // Exponent bias + mantissa shift
-        exponent -= (Self::EXP_BIAS + Self::SIG_BITS) as i16;
-        (mantissa.into(), exponent, sign)
-    }
-}
-
-/// Solve for `b` in `10^b = 2^a`
-const fn pow2_to_pow10(a: i64) -> i64 {
-    let res = (a as f64) / f64::consts::LOG2_10;
-    res as i64
+    fn integer_decode(self) -> (u64, i16, i8);
@@ -196,0 +188,4 @@
+// The f16 implementation is outside the exclusively f64 scope. Disabling it
+// leaves every retained f64 public/helper/trace body and all of its decisions,
+// checked operations, assertions, return values, and observations unchanged.
+#[cfg(any())]
@@ -203 +198,4 @@
-    const NEG_NAN: Self = -Self::NAN;
+    // `from_bits` produces exactly the bit pattern obtained by negating the
+    // upstream canonical NaN.  This avoids Aeneas's unsupported float unop
+    // while preserving the constant, including its sign and payload bits.
+    const NEG_NAN: Self = f16::from_bits(0xFE00);
@@ -211,0 +210,2 @@
+    // Exact value of trunc(16 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 4;
@@ -223,0 +224,3 @@
+// `FloatExt for f16` is used only by the excluded f16 specialization; it is
+// irrelevant to all retained f64 computation and observations listed above.
+#[cfg(any())]
@@ -228,0 +232,16 @@
+
+    // Specializing the upstream default removes only unsupported associated-
+    // integer operator resolution; these are the same bit operations with
+    // `Self::Int = u16` and the same exponent-bias subtraction.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 15 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 10) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u16 << 10)
+        };
+        exponent -= 15 + 10;
+        (mantissa as u64, exponent, sign)
+    }
@@ -230,0 +250,3 @@
+// The f32 implementation is outside the exclusively f64 scope. Disabling it
+// does not alter any retained f64 computation, assertion, result, or trace.
+#[cfg(any())]
@@ -237 +259,3 @@
-    const NEG_NAN: Self = -f32::NAN;
+    // Bit-identical to the upstream `-f32::NAN`, without the unsupported
+    // compile-time float negation.
+    const NEG_NAN: Self = f32::from_bits(0xFFC0_0000);
@@ -245,0 +270,2 @@
+    // Exact value of trunc(128 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 38;
@@ -256,0 +283,3 @@
+// `FloatExt for f32` likewise has no use in any retained f64 body or accepted
+// observation and is disabled without changing f64 execution.
+#[cfg(any())]
@@ -261,0 +291,16 @@
+
+    // This is the upstream default after substituting `Self::Int = u32`;
+    // concreteness is needed only because Charon cannot resolve the generic
+    // associated-integer shifts and bit operators for Aeneas.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 31 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 23) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u32 << 23)
+        };
+        exponent -= 127 + 23;
+        (mantissa as u64, exponent, sign)
+    }
@@ -270 +315,3 @@
-    const NEG_NAN: Self = -Self::NAN;
+    // Bit-identical to the upstream `-f64::NAN`, without the unsupported
+    // compile-time float negation.
+    const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);
@@ -278,0 +326,2 @@
+    // Exact value of trunc(1024 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 308;
@@ -293,0 +343,16 @@
+    }
+
+    // This is the upstream default after substituting `Self::Int = u64`;
+    // it preserves every decoded field while avoiding unsupported generic
+    // associated-integer operator resolution.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 63 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 52) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u64 << 52)
+        };
+        exponent -= 1023 + 52;
+        (mantissa, exponent, sign)
reference/model-evidence/source-adaptation-delta.txt

Open file

Primary inventory and preservation analysis of the upstream-to-crate delta
============================================================================

Method and complete file inventory
----------------------------------

This record compares the supplied files in upstream/ with the frozen adapted
crate/.  It treats the sources and their control flow as primary evidence; it
does not use a prior route decision as semantic proof and makes no assertion
that a supplied GOAL is true.  The exact raw aggregate diff is retained as
reference/model-evidence/source-adaptation-delta.diff.  It was generated from
the repository root by this exact command (the for-list is the complete
LC_ALL=C-sorted upstream inventory, identical files contribute zero bytes,
labels are literal root-relative paths, hunks are concatenated in listed
order, status 1 is accepted as diff's expected ``files differ'' status, and
every other nonzero status aborts):

  export LC_ALL=C
  artifact=reference/model-evidence/source-adaptation-delta.diff
  : > "$artifact"
  saw_difference=0
  for supplied in \
    dec2flt/common.rs \
    dec2flt/decimal.rs \
    dec2flt/decimal_seq.rs \
    dec2flt/fpu.rs \
    dec2flt/lemire.rs \
    dec2flt/mod.rs \
    dec2flt/parse.rs \
    dec2flt/slow.rs \
    dec2flt/table.rs \
    traits.rs
  do
    if diff --unified=0 --label "upstream/$supplied" --label "crate/$supplied" \
        "upstream/$supplied" "crate/$supplied" >> "$artifact"; then
      :
    else
      diff_status=$?
      if [ "$diff_status" -ne 1 ]; then
        exit "$diff_status"
      fi
      saw_difference=1
    fi
  done
  test "$saw_difference" -eq 1
  sha256sum "$artifact"

The command used GNU diffutils 3.12 at /usr/bin/diff, whose SHA-256 is
dfab4814355b488934cf8c63ce96d94184ea3d9b5e4f9be50278ad8e080168f5.
Its actual final output was:

  fdf88cabfe40ce962d2bd5eda22eb5b3cbbf8a936a81b896e98698bf472cd0e4  reference/model-evidence/source-adaptation-delta.diff

The retained byte stream is 38,813 bytes and 933 lines.  The complete source
inventory and independently reproduced file hashes are:

  supplied path                 upstream SHA-256                                                   crate SHA-256                                                      status
  dec2flt/common.rs             fc64094721ff23e08fcba013154d04dec3fe986cae5ffd73a20f86049980aace   4c4be815335a7b176527eb1345e662890caa48181a0a4f814594339016cab18e   changed
  dec2flt/decimal.rs            3c164785e1bc3f3b48aa9c212dd6c4ab535fe828523af9fa584df4c7b1e60e0d   633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb   changed
  dec2flt/decimal_seq.rs        c0c1c6028e3f57cefc3de7635a94788e9180f5ebcedc7a334ec8dbac786ec788   4aa4ecf9f31970033093d73238d4f2c72d433639bbe467c0741b185807380bd9   changed
  dec2flt/fpu.rs                16cf9ec154d477ab3d4184a01fb4b9ed7c59f0228cc55589d393c40a61b19d8f   16cf9ec154d477ab3d4184a01fb4b9ed7c59f0228cc55589d393c40a61b19d8f   identical
  dec2flt/lemire.rs             fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1   fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1   identical
  dec2flt/mod.rs                7198e238c554b692405537a446b3526ad66805ec2900cd0e299f10c51402a44a   ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d   changed
  dec2flt/parse.rs              9daf21ab9445a84552535152f376eef8c30f3d5827296c0645f5952d3b22bbf1   50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f   changed
  dec2flt/slow.rs               43e7aba32d7431bbf0e1bbcb4c334eaffb23eb66891c7e45abe799c5235cc0d2   93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485   changed
  dec2flt/table.rs              6eb59023784bd84cb6fb074c70da8a99bef72bc2a2ea179b0da457ca1ee00abb   6eb59023784bd84cb6fb074c70da8a99bef72bc2a2ea179b0da457ca1ee00abb   identical
  traits.rs                     66a02c44d72dfcc3ddae7e34a290e390dabaf98c5911b283d2d97f2f0075a44e   9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf   changed

The standalone package adds four files having no supplied counterpart:

  crate/Cargo.toml              2040ce5dc92c51b5245113f97682b692b876aa57708b5c7c483425ba152943c8
  crate/lib.rs                  1df2b8bcb2f52068d05a6343923716d0ef4475abdef34a0de3fe7cb8dc2ba95b
  crate/num/mod.rs              d9ac4f964d124bd4660914dc4c80bbb14f48d7851f9a8edc71a0931e9fce37b3
  crate/num/imp/mod.rs          df09b97393e97b23b0a558c2fcbbf4e75dd9d68338f1e83f168bab80a37a31f1

Thus fpu.rs, lemire.rs, and the complete 671-line table.rs, including their
algorithmic constants and tables, are byte-identical.  The following sections
account for every other file and every changed hunk.

Namespace and error shell
-------------------------

crate/lib.rs:1-12 is a no_std crate root that re-exports core::f64 and
core::ops and introduces the same num module path expected by the supplied
slice.  crate/num/imp/mod.rs:1-10 uses path attributes to place traits.rs and
dec2flt/mod.rs at core::num::imp-like module names.  These declarations add no
wrapper call or computation.  crate/num/mod.rs:1 re-exports
core::num::FpCategory.  crate/num/mod.rs:3-26 defines a local private
FloatErrorKind and ParseFloatError shell so the standalone package can name
the parser's error type.  The pursued GOALs observe only panic versus normal
return and, on normal return, the outer Result's Ok/Err discriminant; they do
not observe the private error kind or formatting.  No identity is asserted
between this local shell and an unpinned core error payload.
crate/Cargo.toml:5-22 selects the package, empty default features, and
checked-overflow profiles.  The configuration and fresh build are independently
reproduced in setup-reproduction.txt.

Visibility, derives, and bounds
-------------------------------

upstream/dec2flt/mod.rs:90 versus crate/dec2flt/mod.rs:90 changes only the
visibility of the existing BiasedFp import so a goal-facing caller can name the
same type.  It changes neither layout nor execution.

upstream/dec2flt/common.rs:68 and decimal.rs:28 and decimal_seq.rs:17 include
Debug derives.  The corresponding crate spans common.rs:48-51,
decimal.rs:28-31, and decimal_seq.rs:17-20 remove only Debug.  Copy, Clone,
PartialEq, Eq, and Default used by computation remain where present, and no
accepted observation formats these records.

upstream/traits.rs:11-52 versus crate/traits.rs:11-64 removes formatting from
Int, removes a redundant Copy supertrait from CastInto, and instantiates Int
only for u64.  Every call of CastInto is through Int, which still requires
Copy; all retained concrete values are primitive Copy values.  The removed
u16/u32 instances are associated only with the disabled f16/f32 formats.

upstream/traits.rs:55-76 versus crate/traits.rs:67-80 removes Add, Debug,
PartialEq, PartialOrd, Default, and Clone from Float while retaining Copy, Mul,
Div, and Neg.  A search of all retained generic bodies shows no call using a
removed operation.  upstream/dec2flt/decimal.rs:56-89 versus
crate/dec2flt/decimal.rs:59-111 and upstream/dec2flt/mod.rs:209-256 versus
crate/dec2flt/mod.rs:352-520 add direct Div, Mul, and Neg bounds already implied
by Lemire -> Float, and replace operator notation with calls to those same
traits.  Rust desugars the original /, *, and unary - to these trait calls, so
the operands, call order, result, and admitted f64 specialization are unchanged.

Exact constants, tables, and specialized decoding
-------------------------------------------------

The source formulae and decimal-literal table were evaluated directly by the
pinned rustc using the retained source
reference/model-evidence/adaptation-constants-probe.rs.  The command was:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/adaptation-constants-probe.rs
  B=.trellis/scratch/adaptation-constants-probe
  "$R" --edition 2024 --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$P" "$B"
  "$B"

The source hash was
b5a4a2cba0c08053cb9a816adb1ba5dbd160bf3928bdf5ccf56b7ae83aaa2aa5
and the resulting executable hash was
b02d2f6deb675f17d0dbdc22e57a67d7692689f7a2b0d7b125556c35c4b8a4a5.
Raw output was:

  largest_power_of_ten=308
  max_exponent_fast_path=22
  max_exponent_disguised=37
  neg_nan=fff8000000000000
  pow10_0=3ff0000000000000
  pow10_1=4024000000000000
  pow10_2=4059000000000000
  pow10_3=408f400000000000
  pow10_4=40c3880000000000
  pow10_5=40f86a0000000000
  pow10_6=412e848000000000
  pow10_7=416312d000000000
  pow10_8=4197d78400000000
  pow10_9=41cdcd6500000000
  pow10_10=4202a05f20000000
  pow10_11=42374876e8000000
  pow10_12=426d1a94a2000000
  pow10_13=42a2309ce5400000
  pow10_14=42d6bcc41e900000
  pow10_15=430c6bf526340000
  pow10_16=4341c37937e08000
  pow10_17=4376345785d8a000
  pow10_18=43abc16d674ec800
  pow10_19=43e158e460913d00
  pow10_20=4415af1d78b58c40
  pow10_21=444b1ae4d6e2ef50
  pow10_22=4480f0cf064dd592

upstream/traits.rs:134-137 computes LARGEST_POWER_OF_TEN through a Float
default, and upstream/traits.rs:175-193 gives the generic integer_decode and
the helper used by that constant.  crate/traits.rs:146 makes the constant an
associated requirement; crate/traits.rs:309-359 supplies the retained f64
values and decoder after substituting BITS=64, SIG_BITS=52, EXP_BIAS=1023,
EXPONENT_MASK, MANTISSA_MASK, and the u64 operations.  Each source expression
then becomes exactly the corresponding crate expression: sign is bits>>63,
exponent is (bits & mask)>>52 cast to i16, the subnormal mantissa is shifted
once, the normal mantissa receives 1<<52, and 1023+52 is subtracted.  The
resulting tuple and every bit operation are unchanged.  The probe output above
shows that the computed f64 LARGEST_POWER_OF_TEN is 308 and that the source
-f64::NAN word is fff8000000000000, exactly crate/traits.rs:315-327; the
independent binary64-boundary.txt record fixes the masks and primitive bit
semantics used by the decoder.

upstream/dec2flt/mod.rs:118-129 gives the two Lemire default formulae.
crate/dec2flt/mod.rs:115-128 makes them associated requirements, and the
retained f64 instance at crate/dec2flt/mod.rs:217-220 supplies 22 and 37, the
integer results of the two source formulae for 53 significand bits.
upstream/dec2flt/mod.rs:176-181 indexes a 32-entry f64 table with exponent&31.
crate/dec2flt/mod.rs:222-251 performs the same masked selection using from_bits:
cases 0 through 22 are the exact pinned binary64 words printed above for 1e0 through 1e22 and
all other cases return positive zero, as did entries 23 through 31.  The full
word list and the pinned float semantics are recorded in binary64-boundary.txt.
The analogous f16/f32 replacements at crate/dec2flt/mod.rs:145-215 and
crate/traits.rs:187-307 lie under cfg(any()) and cannot enter this build.

Whole-function from_u64 opacity
-------------------------------

upstream/dec2flt/mod.rs:184-188 and crate/dec2flt/mod.rs:263-266 have the same
f64 body: the same enabled debug_assert that v <= 1<<53, followed by the same
primitive `v as f64` cast.  The sole semantic-boundary annotation is
#[charon::opaque] at crate line 262, syntactically attached to the function
item.  It therefore hides the entire from_u64 body from translation: neither
the debug assertion nor the cast is transparent in the extraction.  The
callers, their guards, and the surrounding native-path computation remain
transparent.  The fresh external inventory contains the whole method as the
single external F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64.  Its
separately reviewed ModelF64FromU64 binding supplies exactly successful integer
conversion for v <= 2^53 and assertion failure otherwise.

Digit scans, slice patterns, and helper extraction
-------------------------------------------------

upstream/dec2flt/common.rs:14-53 supplies ByteSlice::parse_digits: repeatedly
split_first, wrapping-subtract ASCII zero, invoke the closure exactly when the
result is below 10, consume that byte, and stop at the first other byte.
crate/dec2flt/common.rs:11-36 removes only this method.  Its complete set of
uses is replaced as follows.

* upstream/dec2flt/parse.rs:31-48 versus crate/dec2flt/parse.rs:31-58 keeps the
  eight-byte loop, wrapping multiply/add, and then performs the same digit test,
  accumulator update, and one-byte progress with an index.  The local rename
  num to chunk is lexical only.
* upstream/dec2flt/parse.rs:83-97 versus crate/dec2flt/parse.rs:131-153 expands
  matches!/parse_digits into the same nonempty first-digit guard, the same
  0x10000 bounded exponent update, the same first-nondigit suffix, and the same
  final sign.  The bound is tested before each checked multiply and addition,
  exactly as in the closure.
* upstream/dec2flt/decimal_seq.rs:220-295 versus
  crate/dec2flt/decimal_seq.rs:231-359 extracts parse_digits_into_seq,
  parse_decimal_exponent, and count_trailing_zeros.  The digit helpers use the
  same wrapping byte test, forward order, try_add_digit state transition, and
  0x10000 exponent guard.  The reverse helper visits indices consumed_len-1
  down to zero, increments only for ASCII zero, ignores a decimal point, and
  stops at the first other byte, exactly the original iter().rev() loop.

In all these replacements, indexing occurs only under count<len or !is_empty,
so it has the same bounds as split_first.  Slicing advances by exactly the same
one or eight bytes.  No wrapping operation is replaced by checked arithmetic,
and no checked source operation is replaced by wrapping arithmetic.

upstream/dec2flt/parse.rs:155-181 versus crate/dec2flt/parse.rs:82-119 and
212-226 moves two loops into adjust_many_digit_count and parse_many_digits.
The prefix helper visits the same start bytes in the same order, performs the
same saturating_sub and checked isize subtraction, and stops on the same byte.
The retry helper makes the same first 19-digit call, tests the same threshold,
makes the same one-byte rebase and second call in the alternate branch,
computes the same offset with the same sign, casts it to i64, and performs the
same checked addition of exp_number last.  Thus any large-input panic is
preserved rather than excluded.

upstream/dec2flt/decimal_seq.rs:226-295 versus
crate/dec2flt/decimal_seq.rs:284-359 replaces literal split_first patterns by
nonempty index tests.  The leading-zero scans, optional decimal point, optional
exponent marker, optional exponent sign, and suffixes occur in the same order.
The crate's exp_sign*exp_num equals the source choice between exp_num and
-exp_num because exp_num is bounded by the unchanged 0x10000 guard; the final
decimal_point checked addition is in the same position.  Casts of lengths to
i32 and every subsequent checked update remain unchanged, including their
large-input behavior.

Delayed returns
---------------

upstream/dec2flt/decimal_seq.rs:173-198 versus
crate/dec2flt/decimal_seq.rs:176-203 replaces one return inside right_shift's
loop by all_zero=true, exits because !all_zero is the loop guard, and returns
immediately afterward.  No decimal_point, digit, index, or arithmetic update
occurs between the original and delayed return.

upstream/dec2flt/slow.rs:46-76 versus crate/dec2flt/slow.rs:46-94 replaces two
nested-loop returns by loop_result.  In the zero branch it records fp_zero,
skips the source-skipped exp2 addition, exits through is_none(), and returns.
In the infinity branch it records fp_inf, skips the source-skipped exp2
subtraction, exits, and returns.  On all other iterations it performs the same
shift, checked state changes, and exponent update.  Lines 95-126 after these
returns are otherwise the source lines 77-110 unchanged.

Dispatcher trace and public projection
--------------------------------------

upstream/dec2flt/mod.rs:209-256 is the whole original dispatcher.
crate/dec2flt/mod.rs:285-349 declares trace data only, lines 352-505 execute the
instrumented dispatcher, and lines 507-520 define public dec2flt as its first
projection.  Comparing the bodies gives the following branch-by-branch
correspondence.

* Both call as_bytes, inspect the first byte, reject empty input before a helper,
  remove at most one sign, and reject a sign-only body.  The trace stores the
  already obtained body and Boolean sign.
* Both call parse_number first on that exact body.  Only None calls
  parse_inf_nan on the same body and sign.  Its Some is returned directly and
  its None returns invalid.  The trace stores those existing Option values.
* Both overwrite only Decimal.negative, test the same compile-time
  !optimize_for_size condition, call try_fast_path once, and return its Some
  directly.  The trace stores the copied Decimal and Option; Decimal is Copy.
* Both call compute_float first with num.exponent and num.mantissa.  The crate's
  second_compute_guard is exactly the first two conjuncts of the source
  short-circuit.  Therefore the checked mantissa+1 and second compute_float call
  occur under precisely the source guard, in the same order.  The same pair
  comparison either retains fp or changes only p_biased to -1.
* Both test the post-comparison p_biased<0 once, call parse_long_mantissa on the
  unchanged body exactly when true, and otherwise retain the same pair.  The
  trace records both guard and result without another helper call.
* The extra assembled_word expression is the same cast, shift, and OR performed
  by biased_fp_to_float at upstream lines 202-206 and crate lines 278-282; these
  integer operations neither panic nor mutate fp.  Both then call assembly once
  on the selected pair and apply unary negation exactly when num.negative.
  Public dec2flt returns the identical Result first component.

Consequently the trace does not infer uncomputed data: it records the exact
variant; sign-stripped body and sign; numeric/special Options; fast-path input
and result; first and conditional second integer operands and results;
comparison, forced-deferral and post-comparison pair; slow guard and result;
selected pair; assembled word; pre-sign assembly word; sign-application fact;
and final word.  Special and native direct returns create no selected pair.
All source call order, guards, checked arithmetic, mutable-state transitions,
panic points, and returned Result/F64 observations remain in place.

F64-only restriction
--------------------

crate/traits.rs:187-307 and crate/dec2flt/mod.rs:140-215 add cfg(any()) to the
f16/f32 Float, FloatExt, and Lemire implementations.  crate/traits.rs:59-64
retains only u64 Int.  The retained f64 implementations are
crate/traits.rs:309-360 and crate/dec2flt/mod.rs:217-264.  Every goal-facing
function remains generic in the source and extraction, but each pursued source
subject specializes it to f64, whose associated integer is u64.  There is no
dynamic format dispatch, so removing other impl blocks cannot change an f64
call, its native decision, checks, result word, NaN classification, fields, or
trace.  The fresh boundary inventory in setup-reproduction.txt confirms that
no removed-format external remains.

Conclusion
----------

The inventory is exhaustive: three supplied files are identical, seven have
all hunks classified above, and the four added files are the package shell.
For the configured f64 specialization, the adapted crate has the same input
domains, branch order, guards, checked/wrapping distinction, state transitions,
panic versus normal behavior, and public/helper observations as the supplied
source.  The only new observations are the trace fields, each copied from an
existing value or computed by the same pure assembly expression.  This
conclusion is independent of whether any parser-correctness GOAL is true.
reference/model-evidence/source-valid-byte-slice-probe.out

Open file

arch=x86_64
usize_bits=64
isize_max=9223372036854775807
u8_size=1
reference/model-evidence/source-valid-byte-slice-probe.rs

Open file

fn main() {
    println!("arch={}", std::env::consts::ARCH);
    println!("usize_bits={}", usize::BITS);
    println!("isize_max={}", isize::MAX);
    println!("u8_size={}", std::mem::size_of::<u8>());
}
reference/model-evidence/source-valid-byte-slice.txt

Open file

Source-valid byte-slice and string domain evidence
==================================================

Scope and pinned identities
---------------------------

All commands below were run from the repository root.  The configured compiler
is:

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

Its SHA-256 is:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b

The exact identity commands were:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  sha256sum "$R"
  "$R" --version --verbose
  "$R" --target x86_64-unknown-linux-gnu --print cfg | LC_ALL=C sort | \
    rg 'target_(arch|pointer_width)'

Their relevant raw output was:

  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
  target_arch="x86_64"
  target_pointer_width="64"

Retained configured-target probe
--------------------------------

The retained probe source is
reference/model-evidence/source-valid-byte-slice-probe.rs.  It was compiled
for the configured target and executed with this exact command, which depends
only on the retained source and the pinned compiler:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/source-valid-byte-slice-probe.rs
  B=/tmp/dec2flt-source-valid-byte-slice-probe
  O=reference/model-evidence/source-valid-byte-slice-probe.out
  "$R" --edition 2024 --target x86_64-unknown-linux-gnu -C opt-level=0 \
    -C debuginfo=0 -C overflow-checks=on -C debug-assertions=on \
    --crate-name source_valid_byte_slice_probe "$P" -o "$B"
  sha256sum "$R" "$P" "$B"
  "$B" > "$O"
  sha256sum "$O"
  cat "$O"

The actual hashes were:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd  reference/model-evidence/source-valid-byte-slice-probe.rs
  87dc3b9b7a46506d2205503d8aa007b451c452968af48d1ba5961a821934ee55  /tmp/dec2flt-source-valid-byte-slice-probe
  01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4  reference/model-evidence/source-valid-byte-slice-probe.out

The retained raw output file contains exactly:

  arch=x86_64
  usize_bits=64
  isize_max=9223372036854775807
  u8_size=1

Pinned core-library source
--------------------------

Let:

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

The exact commands used to identify and inspect the relevant core sources were:

  sha256sum "$S/slice/mod.rs" "$S/num/int_macros.rs" "$S/str/mod.rs"
  sed -n '798,808p' "$S/slice/mod.rs"
  sed -n '43,51p' "$S/num/int_macros.rs"
  sed -n '495,510p' "$S/str/mod.rs"

The file identities are:

  354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840  core/src/slice/mod.rs
  3896304e7cb14628e293134ac41fd18be2b5369bedc02d1c6a7408bd8c755a31  core/src/num/int_macros.rs
  284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78  core/src/str/mod.rs

The relevant exact excerpt of slice/mod.rs, line 801, is:

  //   - The size of the slice is never larger than `isize::MAX` bytes, as

The relevant exact declaration in num/int_macros.rs, line 47, is:

  pub const MAX: Self = (<$UnsignedT>::MAX >> 1) as Self;

The relevant exact excerpts of str/mod.rs are its same-layout byte-slice
conversion at lines 498-500:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }

and its UTF-8 invariant at lines 507-510:

  /// The caller must ensure that the content of the slice is valid UTF-8
  /// before the borrow ends and the underlying `str` is used.
  ///
  /// Use of a `str` whose contents are not valid UTF-8 is undefined behavior.

Conclusion
----------

The configured target has 64-bit usize/isize and one-byte u8 elements.
The pinned signed-MAX definition therefore gives
isize::MAX = 2^63 - 1 = 9223372036854775807, and the pinned slice rule bounds a
slice by that many bytes.  For &[u8], this is exactly an element-count bound;
the rule adds no UTF-8 condition or other restriction on the byte contents.
The pinned str source exposes the identical-layout &[u8] bytes and separately
requires them to be valid UTF-8.  Consequently the exact configured domains
are arbitrary &[u8] bytes of length at most isize::MAX, and Rust str bytes of
length at most isize::MAX that are valid UTF-8.  No smaller convenience bound
is introduced.
Upstream → extraction-crate adaptation diff
--- upstream/dec2flt/common.rs
+++ crate/dec2flt/common.rs
@@ -11,10 +11,6 @@
     /// Calculate the difference in length between two slices.
     fn offset_from(&self, other: &Self) -> isize;
 
-    /// Iteratively parse and consume digits from bytes.
-    ///
-    /// Returns the same bytes with consumed digits being elided. Breaks on invalid digits.
-    fn parse_digits(&self, func: impl FnMut(u8)) -> &Self;
 }
 
 impl ByteSlice for [u8] {
@@ -35,22 +31,6 @@
         other.len() as isize - self.len() as isize
     }
 
-    #[inline]
-    fn parse_digits(&self, mut func: impl FnMut(u8)) -> &Self {
-        let mut s = self;
-
-        while let Some((c, rest)) = s.split_first() {
-            let c = c.wrapping_sub(b'0');
-            if c < 10 {
-                func(c);
-                s = rest;
-            } else {
-                break;
-            }
-        }
-
-        s
-    }
 }
 
 /// Determine if all characters in an 8-byte byte string (represented as a `u64`) are all decimal
@@ -65,7 +45,10 @@
 
 /// A custom 64-bit floating point type, representing `m * 2^p`.
 /// p is biased, so it be directly shifted into the exponent bits.
-#[derive(Debug, Copy, Clone, PartialEq, Eq, Default)]
+// Debug output is not an accepted public or trace observation.  Removing only
+// that implementation preserves the fields, computational derives, and every
+// algorithm operation independently of GOAL truth.
+#[derive(Copy, Clone, PartialEq, Eq, Default)]
 pub struct BiasedFp {
     /// The significant digits.
     pub m: u64,
Record details
Kindsource adaptation site (file-level diff)
Captured evidence identities
[
  {
    "path": "extraction-evidence/COMMAND.json",
    "sha256": "5f26225136b8c7c4d7f95615e3e8ff8b357e523eeada4bc649e50f9c76cb9bda",
    "cited_by": [
      "shared mechanical extraction record",
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "extraction-evidence/DETERMINISM.json",
    "sha256": "74e45977d1fa84e7d4c696906005f13faca994995fdeff0fac8dc13e5c18f11c",
    "cited_by": [
      "shared mechanical extraction record"
    ]
  },
  {
    "path": "extraction-evidence/RESULT.json",
    "sha256": "31059e900d9ee03a54504c1dd3560a943d6c0f883fba737163b1ca0cb40065b0",
    "cited_by": [
      "shared mechanical extraction record",
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "extraction-evidence/STDERR.bin",
    "sha256": "c284799d633c64b898f716d62fbf1146c173227bd6bd44309c6504a43926e000",
    "cited_by": [
      "shared mechanical extraction record"
    ]
  },
  {
    "path": "extraction-evidence/STDOUT.bin",
    "sha256": "8e0aed62f6941e7c81b09d5c5b63ea7602756e69e4bcce9944258b229a9a0ba3",
    "cited_by": [
      "shared mechanical extraction record"
    ]
  },
  {
    "path": "reference/model-evidence/adaptation-constants-probe.rs",
    "sha256": "b5a4a2cba0c08053cb9a816adb1ba5dbd160bf3928bdf5ccf56b7ae83aaa2aa5",
    "cited_by": [
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-boundary.txt",
    "sha256": "fa45c924747337e8d6f84a19fe9e83fb9b33c73434887c0cf57c062533f51fe1",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex",
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-probe.rs",
    "sha256": "68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e",
    "cited_by": [
      "reference/model-evidence/binary64-boundary.txt"
    ]
  },
  {
    "path": "reference/model-evidence/native-boundary.txt",
    "sha256": "fa0d69e4a434007e6ee675380fc13f98e22655b7faa77cdc5216d4af4356438f",
    "cited_by": [
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "reference/model-evidence/setup-reproduction.txt",
    "sha256": "209bc94a47b1b905a2a7b1fea229c759e6250becbd353fe4eadc7bc49be7742c",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex",
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-adaptation-delta.diff",
    "sha256": "fdf88cabfe40ce962d2bd5eda22eb5b3cbbf8a936a81b896e98698bf472cd0e4",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex",
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-adaptation-delta.txt",
    "sha256": "3c1483d48286a82484eba249a5434936e1a33a08f4e99ec0e3a03ce9bb0ecd9b",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.out",
    "sha256": "01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.rs",
    "sha256": "b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice.txt",
    "sha256": "eb501317621baa00236f9773885466bd38ec1a45cb56457d555b9e9139dc780a",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex"
    ]
  }
]

crate/dec2flt/decimal.rs

Historical preparation document: preparation source-adaptation audit. It describes the state and obligations at preparation. This generation is captured in ProofFormalization. Later closure and review results appear in the proof and modeling views. This original document remains available as history.

Captured upstream and extraction-crate files differ. Consult the recorded preservation explanations for the purpose and scope of each adaptation.
Shared extraction-boundary explanation (Preamble)

Preservation argument

Claim

Fix Rust nightly-2026-06-01 and target x86_64-unknown-linux-gnu, the library's empty default feature set (so optimize_for_size is disabled), the unoptimized development profile, enabled debug assertions and integer overflow checks, and the target's SSE2 precision-setting branch. Interpret each of the frozen extraction's 24 external operations by the separately justified model-support definition that owns that operation. Under those interpretations, the composed Aeneas model represents the supplied source's f64 specialization on all of these domains, without a correctness premise: every Rust str whose bytes are valid UTF-8 and whose 64-bit slice length is at most \mathtt{isize::MAX}=2^{63}-1; every Rust &[u8] whose length is at most that bound, with arbitrary byte contents; every Decimal; every i64/u64 pair; and every BiasedFp.
For dec2flt::<f64> the relation preserves panic versus normal return, the outer returned Result's Ok/Err discriminant, and, on success, the exact binary64 word and its NaN classification. For parse_number it preserves panic versus normal return, the Option discriminant, and all four returned Decimal fields. For parse_inf_nan::<f64> and Decimal::try_fast_path::<f64> it preserves panic versus normal return, None versus Some, and every returned word and NaN classification. For compute_float::<f64> and parse_long_mantissa::<f64> it preserves panic versus normal return and both fields of every returned BiasedFp. For biased_fp_to_float::<f64> it preserves panic versus normal return and the exact returned word, with no restriction on the pair fields.
For dec2flt_with_trace::<f64> it additionally preserves the public result and the complete trace: its control-flow variant; sign-stripped body and lexical sign; numeric and special helper results; signed native input and native result; first integer operands and result; second-call guard, optional operands and result, comparison and forced-deferral fact; post-comparison pair; slow-path guard and optional result; selected pair; assembled unsigned word; pre-sign assembly result; sign-application fact; and final word. Public dec2flt::<f64> is exactly the first projection of that interface, and direct special and native returns select no raw pair.

Proof

The fresh extraction record reference/model-evidence/setup-reproduction.txt pins all six tool executables by SHA-256, gives the empty Cargo/Charon/Aeneas argument configuration, and records the effective development cfg. Its Cargo, Charon, and Aeneas executions all exit successfully. Fresh Aeneas output is byte-for-byte the frozen generated.lean, with SHA-256 45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9. The raw source has no placeholder. The compatibility check reports no unapproved axiom and isolates exactly 24 external declarations; the complete inventory equals the 24 entries of Tablet/model-support.json. compose-native --check reports an unchanged composition and equal expected and actual Preamble hashes. Thus all transparent extracted declarations come from this one pinned source and every nontransparent operation is explicit. The premise assigning each external its owning definition deliberately leaves that definition's primitive-semantics proof to its own preservation record; no primitive binding is re-proved here.
The paired meanings of all 24 owners make that composition premise concrete. The binary64 carrier is the complete raw-word representation of F64. Its clone, precision constant, NaN and infinity constants, field masks, classification, bit conversions, arithmetic, negation, and asserted integer conversion have respectively the meanings in ModelF64Clone, ModelF64MantissaDigits, ModelF64Nan, ModelF64Infinity, ModelF64NegInfinity, ModelF64ExponentMask, ModelF64MantissaMask, ModelF64Classify, ModelF64ToBits, ModelF64FromBits, ModelF64Mul, ModelF64Div, ModelF64Neg, and ModelF64FromU64. The four bounded word operations have the Rust meanings in ModelU64BitAnd, ModelU64BitOr, ModelU64Shl, and ModelU64Shr; the digit test has the meaning in ModelU8IsAsciiDigit. Option branching and residual return have the meanings in ModelOptionBranch and ModelOptionFromResidual; first-element and split-first observation have the meanings in ModelSliceFirst and ModelSliceSplitFirst; and string-to-byte observation has the meaning in ModelStrAsBytes. These are exactly the semantic operations substituted for the inventoried externals.
The source carrier used below is the arbitrary-byte, length-at-most 2^{63}-1 slice of SourceValidByteSlice. The abstract domains and observations used in the GOAL applications are those of DecimalGoalVocabulary; their concrete UTF-8 string predicate, lexical grammar, decimal values, binary64 rounding and classification, sign, and unrestricted raw-pair assembly are those of DecimalGoalVocabularyDefault. Thus the composition cites the paired meanings that connect its source domains and observations to the GOAL vocabulary, rather than inferring those meanings from boundary inventory alone.
The complete upstream-to-crate inventory and its source hashes are recorded in reference/model-evidence/source-adaptation-delta.txt; its exact aggregate byte diff is retained in reference/model-evidence/source-adaptation-delta.diff. The supplied fpu.rs, lemire.rs, and table.rs are byte-identical. The standalone namespace and local error shell introduce no call. The GOALs observe only panic versus normal return and the outer Ok/Err discriminant, so the shell's private kind and formatting are unobserved; no identity with an unpinned core error payload is asserted. Visibility and removed Debug derives do not affect values. The retained generic bodies use none of the removed trait operations; the direct Mul, Div, and Neg clauses and calls are the operations already implied by Lemire. Only the u64 integer instance and f64 Float, FloatExt, and Lemire instances can participate in an f64 execution, so disabling the u16/u32 and f16/f32 instances changes no such call.
The same delta record compares each constant, table entry, and specialized decoder with its source expression. The retained decoder is the source default after substituting the f64/u64 field widths and masks; the fast-path bounds are the source formula results; and the match over power-of-ten words has the same masked index and exact words as the source array. The toolchain-specific words, masks, classifications, casts, and rounding behavior are independently pinned in reference/model-evidence/binary64-boundary.txt. The frozen from_u64 Rust body is the enabled assertion followed by the u64 as f64 conversion. Because #[charon::opaque] applies to the whole function, neither operation inside that body is transparent in the extraction: the whole method is the single inventoried external. Its callers, their guards, and the surrounding native computation remain transparent. ModelF64FromU64 supplies exactly successful integer conversion for v\leq2^{53} and assertion failure otherwise.
All other changed bodies are syntax-directed rewrites. Indexed digit scans test the same byte, use the same wrapping subtraction and accumulator update, advance by the same amount, and stop at the same first nondigit as the source closures and split_first loops. Extracted helpers receive the same slices and mutable values, visit bytes in the same forward or reverse order, and retain every saturating, wrapping, and checked operation. Delayed returns set a result flag, execute no intervening state update, leave the loop through that flag, and immediately return the source value. In particular, casts and length-derived additions on very large inputs keep their original panic or normal behavior rather than acquiring a convenience size bound.
Finally, direct comparison of the supplied dispatcher with the instrumented body shows identical sequencing. Both strip at most one sign, reject empty or sign-only input, call the numeric helper first and the special helper only after its None, overwrite only the parsed sign, try the enabled native path, make the first integer call, and evaluate the checked mantissa+1 and second call under exactly the source short-circuit guard. Both force the same deferral on unequal pairs, call the slow helper on the unchanged body exactly for a negative post-comparison exponent, assemble the same selected pair, and apply the sign last. Every trace field is either one of those already computed values or the same nonmutating cast/shift/OR word used by assembly. Hence recording the trace and discarding it in the public projection changes neither call order, guards, state, panic points, nor any returned observation.
The exact source carrier condition is separately evidenced by reference/model-evidence/source-valid-byte-slice.txt: on this 64-bit target a byte slice has arbitrary bytes and length at most isize::MAX, while a Rust string adds UTF-8 validity. Sub-slicing preserves the length bound and need not preserve an independent string type. These facts establish all domains and observations in the claim independently of the truth or falsity of any GOAL.

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

extraction-evidence/COMMAND.json

Open file

{"declaration_reader_sha256":"76f60cf0b867fad9727d2256d32b306c8cba3725216a4225d0f83add77fd6158","extraction_provenance":{"extraction_toolchain":{"aeneas":"fa699427","aeneas_revision":"fa699427cdfa8f604b891fb0223ef42883dd7dc4","cargo_features":[{"features":["default"],"name":"dec2flt-model","source":"workspace:Cargo.toml","version":"0.1.0"}],"cargo_lock_sha256":"bc644c624ded89197356bbd65d995054b7fb08e5bdfbaa38c6e7c7a53772cecf","cfg":["debug_assertions","emscripten_wasm_eh","feature=\"default\"","fmt_debug=\"full\"","overflow_checks","panic=\"unwind\"","relocation_model=\"pic\"","target_abi=\"\"","target_arch=\"x86_64\"","target_endian=\"little\"","target_env=\"gnu\"","target_family=\"unix\"","target_feature=\"fxsr\"","target_feature=\"sse\"","target_feature=\"sse2\"","target_feature=\"x87\"","target_has_atomic","target_has_atomic=\"16\"","target_has_atomic=\"32\"","target_has_atomic=\"64\"","target_has_atomic=\"8\"","target_has_atomic=\"ptr\"","target_has_atomic_load_store","target_has_atomic_load_store=\"16\"","target_has_atomic_load_store=\"32\"","target_has_atomic_load_store=\"64\"","target_has_atomic_load_store=\"8\"","target_has_atomic_load_store=\"ptr\"","target_has_atomic_primitive_alignment=\"16\"","target_has_atomic_primitive_alignment=\"32\"","target_has_atomic_primitive_alignment=\"64\"","target_has_atomic_primitive_alignment=\"8\"","target_has_atomic_primitive_alignment=\"ptr\"","target_has_reliable_f128","target_has_reliable_f16","target_has_reliable_f16_math","target_object_format=\"elf\"","target_os=\"linux\"","target_pointer_width=\"64\"","target_thread_local","target_vendor=\"unknown\"","ub_checks","unix"],"charon":"0.1.216","charon_revision":"6f058254eb741c12e9b388df07adaf7cc8aac8ed","extraction_profile":"dev","lean":"4.30.0-rc2","overflow_checks":true,"panic_strategy":"unwind","rustc_vv":"rustc 1.98.0-nightly (14210df0e 2026-05-31)\nbinary: rustc\ncommit-hash: 14210df0e27ccd7d9e6a05b8085cbd438e4bbc65\ncommit-date: 2026-05-31\nhost: x86_64-unknown-linux-gnu\nrelease: 1.98.0-nightly\nLLVM version: 22.1.6\n","target_pointer_width":64,"target_triple":"x86_64-unknown-linux-gnu"},"extractor_stack":["charon@0.1.216","aeneas@fa699427"],"extractor_toolchain_sha256":"18657da0659dee7889ed8a937b136c9abbc3a35e9050241cd8201c94fd232323","not_recorded":[],"source_digests":[{"source_file":"lib.rs","source_sha256":"63c7f58df6caff552519c92155d902daf8a1015797adcd3f357f8b8cf1652b00"}]},"extractor_script_path":"/home/leanagent/pv_runs/trellis-native-implementation-v91/scripts/extract_pv_model.py","extractor_script_sha256":"cc1fdd50a78185c7bb564b715c554cb35d9fc09ed566b6c3d4f482f2d27ef67d","kernel_gate_checkers":[],"log_concatenation_order":"runs_then_steps_in_array_order","runs":[{"run_role":"primary","steps":[{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","-vV"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"rustc-version","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/pv_spike/tools/charon/bin/charon","cargo","--preset=aeneas","--dest-file","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc","--","--offline","--profile","dev","--target","x86_64-unknown-linux-gnu"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"charon","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/cargo","metadata","--format-version=1","--locked","--offline","--filter-platform","x86_64-unknown-linux-gnu"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"cargo-metadata","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/cargo","rustc","--lib","--locked","--offline","--profile","dev","--target","x86_64-unknown-linux-gnu","--","--print","cfg"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"cargo-rustc-cfg","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/pv_spike/tools/aeneas/bin/aeneas","-backend","lean","-dest","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen","-emit-json","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"aeneas","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"}]}],"schema":"trellis-extraction-command/v1","tool_source_checkouts":[]}
extraction-evidence/DETERMINISM.json

Open file

{"comparison":"generated_lean_and_complete_tablet_tree_byte_identity","generated_lean_byte_identical":false,"generated_lean_sha256":["45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9"],"kernel_filespec_gate":"not_run","kernel_prescribed_region_gate":"not_run","namespace_context_roundtrip_gate":"not_run","result_sha256":"31059e900d9ee03a54504c1dd3560a943d6c0f883fba737163b1ca0cb40065b0","run_roles":["primary"],"schema":"trellis-extraction-determinism/v2","status":"not_run","tablet_root_sha256":["5be7a89d6b46429df3229db0d97b337dfb51cea483d439817e51b774a2dd5cf1"],"tablet_tree_byte_identical":false}
extraction-evidence/RESULT.json

Open file

{"command_sha256":"5f26225136b8c7c4d7f95615e3e8ff8b357e523eeada4bc649e50f9c76cb9bda","runs":[{"generated_lean_sha256":"45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9","run_role":"primary","steps":[{"exit_status":0,"stderr_byte_length":0,"stderr_offset":0,"stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","stdout_byte_length":212,"stdout_offset":0,"stdout_sha256":"e6ea0da4a3301256a0a0dc0d67d11acf4e83e0d1bff5dd987ccdaa43708714bc","tool":"rustc-version"},{"exit_status":0,"stderr_byte_length":654,"stderr_offset":0,"stderr_sha256":"85f314396a5cc9f2303d9848c2d0ea392b64a71cb47e7b0914fd3b8acc916f02","stdout_byte_length":0,"stdout_offset":212,"stdout_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","tool":"charon"},{"exit_status":0,"stderr_byte_length":0,"stderr_offset":654,"stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","stdout_byte_length":2897,"stdout_offset":212,"stdout_sha256":"d792566b25914f10c1a27d3c55607a43dd6bcd31b381f8d54caa7d23257269ef","tool":"cargo-metadata"},{"exit_status":0,"stderr_byte_length":302,"stderr_offset":654,"stderr_sha256":"865b65d937d16c61cd9b975adc967136f6739ef2149207ae43742241f2f37686","stdout_byte_length":1062,"stdout_offset":3109,"stdout_sha256":"4081a320e6292139b4a673d225682dc054b77cba113b8c8a8fbb0593f824b713","tool":"cargo-rustc-cfg"},{"exit_status":0,"stderr_byte_length":6916,"stderr_offset":956,"stderr_sha256":"9c2b4695f1b3bb4e7fe3bf52b92d44fd21bed1de3047b698c950eafcc085c00b","stdout_byte_length":933,"stdout_offset":4171,"stdout_sha256":"35255952c6ce5b89d1280d096dff50ffcfc94817c3aafa58beda6db7e66721df","tool":"aeneas"}],"tablet_root_sha256":"5be7a89d6b46429df3229db0d97b337dfb51cea483d439817e51b774a2dd5cf1"}],"schema":"trellis-extraction-result/v2","stderr_byte_length":7872,"stderr_sha256":"c284799d633c64b898f716d62fbf1146c173227bd6bd44309c6504a43926e000","stdout_byte_length":5104,"stdout_sha256":"8e0aed62f6941e7c81b09d5c5b63ea7602756e69e4bcce9944258b229a9a0ba3"}
extraction-evidence/STDERR.bin

Open file

   Compiling dec2flt-model v0.1.0 (/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate)
warning: feature `f16` is declared but not used
 --> lib.rs:2:46
  |
2 | #![feature(cfg_target_has_reliable_f16_f128, f16, float_masks, register_tool, staged_api)]
  |                                              ^^^
  |
  = note: `#[warn(unused_features)]` (part of `#[warn(unused)]`) on by default

warning: `dec2flt-model` (lib) generated 1 warning
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.44s
   Compiling dec2flt-model v0.1.0 (/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.02s
[?25lApplied prepasses:  [------------------------------------------------]   0/203 ⠋

Applied prepasses:  [------------------------------------------------]   1/203 ⠋

Applied prepasses:  [#####-------------------------------------------]  24/203 ⠋

Applied prepasses:  [########----------------------------------------]  38/203 ⠋

Applied prepasses:  [##############################------------------] 128/203 ⠙
Applied prepasses:  [################################################] 203/203 ✔️
[?25h[?25lTranslated globals:  [-------------------------------------------------]  0/50 ⠋
Translated globals:  [#################################################] 50/50 ✔️
[?25h[?25lTranslated opaque functions:  [----------------------------------------]  0/87 ⠋
Translated opaque functions:  [########################################] 87/87 ✔️
[?25h[?25lTranslated transparent functions:  [---------------------------------]   0/107 ⠋

Translated transparent functions:  [---------------------------------]   1/107 ⠙

Translated transparent functions:  [###------------------------------]  10/107 ⠙

Translated transparent functions:  [######---------------------------]  22/107 ⠹

Translated transparent functions:  [##########-----------------------]  35/107 ⠹

Translated transparent functions:  [#############--------------------]  44/107 ⠹

Translated transparent functions:  [##############-------------------]  48/107 ⠸

Translated transparent functions:  [###############------------------]  51/107 ⠸

Translated transparent functions:  [##################---------------]  59/107 ⠸

Translated transparent functions:  [##################---------------]  60/107 ⠼

Translated transparent functions:  [##################---------------]  61/107 ⠼

Translated transparent functions:  [####################-------------]  65/107 ⠼

Translated transparent functions:  [#####################------------]  69/107 ⠼

Translated transparent functions:  [#####################------------]  70/107 ⠴

Translated transparent functions:  [######################-----------]  72/107 ⠴

Translated transparent functions:  [######################-----------]  73/107 ⠦

Translated transparent functions:  [######################-----------]  74/107 ⠦

Translated transparent functions:  [#######################----------]  77/107 ⠦

Translated transparent functions:  [########################---------]  78/107 ⠧

Translated transparent functions:  [########################---------]  79/107 ⠧

Translated transparent functions:  [########################---------]  81/107 ⠇

Translated transparent functions:  [#########################--------]  82/107 ⠇

Translated transparent functions:  [#########################--------]  83/107 ⠏

Translated transparent functions:  [#########################--------]  84/107 ⠏

Translated transparent functions:  [##########################-------]  86/107 ⠋

Translated transparent functions:  [###########################------]  88/107 ⠋

Translated transparent functions:  [###########################------]  89/107 ⠋

Translated transparent functions:  [###########################------]  90/107 ⠙

Translated transparent functions:  [############################-----]  91/107 ⠙

Translated transparent functions:  [############################-----]  93/107 ⠹

Translated transparent functions:  [############################-----]  94/107 ⠹

Translated transparent functions:  [#############################----]  95/107 ⠸

Translated transparent functions:  [#############################----]  97/107 ⠸

Translated transparent functions:  [##############################---]  99/107 ⠼

Translated transparent functions:  [##############################---] 100/107 ⠼

Translated transparent functions:  [###############################--] 102/107 ⠴

Translated transparent functions:  [###############################--] 103/107 ⠦

Translated transparent functions:  [################################-] 104/107 ⠦

Translated transparent functions:  [################################-] 105/107 ⠧

Translated transparent functions:  [################################-] 106/107 ⠇

Translated transparent functions:  [#################################] 107/107 ⠏
Translated transparent functions:  [#################################] 107/107 ✔️
[?25h[?25lTranslated trait declarations:  [--------------------------------------]  0/49 ⠋
Translated trait declarations:  [########################--------------] 31/49 ✔️
[?25h[?25lTranslated trait impls:  [---------------------------------------------]  0/85 ⠋
Translated trait impls:  [#################################------------] 64/85 ✔️
[?25h[?25lPost-processed translated opaque functions:  [-------------------------]  0/87 ⠋

Post-processed translated opaque functions:  [-------------------------]  1/87 ⠙
Post-processed translated opaque functions:  [#########################] 87/87 ✔️
[?25h[?25lPost-processed translated transparent functions:  [------------------]   0/107 ⠋

Post-processed translated transparent functions:  [------------------]   1/107 ⠋

Post-processed translated transparent functions:  [#-----------------]  10/107 ⠙

Post-processed translated transparent functions:  [##----------------]  12/107 ⠙

Post-processed translated transparent functions:  [##----------------]  13/107 ⠹

Post-processed translated transparent functions:  [##----------------]  14/107 ⠹

Post-processed translated transparent functions:  [##----------------]  16/107 ⠸

Post-processed translated transparent functions:  [##----------------]  17/107 ⠼

Post-processed translated transparent functions:  [###---------------]  18/107 ⠼

Post-processed translated transparent functions:  [###---------------]  23/107 ⠴

Post-processed translated transparent functions:  [####--------------]  27/107 ⠴

Post-processed translated transparent functions:  [#####-------------]  31/107 ⠴

Post-processed translated transparent functions:  [######------------]  37/107 ⠴

Post-processed translated transparent functions:  [########----------]  50/107 ⠴

Post-processed translated transparent functions:  [###############---]  95/107 ⠦

Post-processed translated transparent functions:  [################--]  99/107 ⠦

Post-processed translated transparent functions:  [################--] 100/107 ⠧

Post-processed translated transparent functions:  [################--] 101/107 ⠧

Post-processed translated transparent functions:  [#################-] 103/107 ⠧

Post-processed translated transparent functions:  [#################-] 105/107 ⠇

Post-processed translated transparent functions:  [##################] 107/107 ⠏
Post-processed translated transparent functions:  [##################] 107/107 ✔️
[?25h
extraction-evidence/STDOUT.bin

Open file

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
{"packages":[{"name":"dec2flt-model","version":"0.1.0","id":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0","license":null,"license_file":null,"description":null,"source":null,"dependencies":[],"targets":[{"kind":["lib"],"crate_types":["lib"],"name":"dec2flt_model","src_path":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate/lib.rs","edition":"2024","doc":true,"doctest":true,"test":true}],"features":{"default":[],"optimize_for_size":[]},"manifest_path":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate/Cargo.toml","metadata":null,"publish":[],"authors":[],"categories":[],"keywords":[],"readme":null,"repository":null,"homepage":null,"documentation":null,"edition":"2024","links":null,"default_run":null,"rust_version":null}],"workspace_members":["path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"],"workspace_default_members":["path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"],"resolve":{"nodes":[{"id":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0","dependencies":[],"deps":[],"features":["default"]}],"root":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"},"target_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","build_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","version":1,"workspace_root":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate","metadata":null}
debug_assertions
emscripten_wasm_eh
feature="default"
fmt_debug="full"
overflow_checks
panic="unwind"
relocation_model="pic"
target_abi=""
target_arch="x86_64"
target_endian="little"
target_env="gnu"
target_family="unix"
target_feature="fxsr"
target_feature="sse"
target_feature="sse2"
target_feature="x87"
target_has_atomic
target_has_atomic="16"
target_has_atomic="32"
target_has_atomic="64"
target_has_atomic="8"
target_has_atomic="ptr"
target_has_atomic_load_store
target_has_atomic_load_store="16"
target_has_atomic_load_store="32"
target_has_atomic_load_store="64"
target_has_atomic_load_store="8"
target_has_atomic_load_store="ptr"
target_has_atomic_primitive_alignment="16"
target_has_atomic_primitive_alignment="32"
target_has_atomic_primitive_alignment="64"
target_has_atomic_primitive_alignment="8"
target_has_atomic_primitive_alignment="ptr"
target_has_reliable_f128
target_has_reliable_f16
target_has_reliable_f16_math
target_object_format="elf"
target_os="linux"
target_pointer_width="64"
target_thread_local
target_vendor="unknown"
ub_checks
unix
[Info ] Imported: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc
[Info ] Generated: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/M.lean
[Info ] Generated: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/translation.json
[Warn ] The crate contains extracted external, unknown definitions: we advise using the option -split-files to allow manually providing these definitions in separate files.
[Info ] Total execution time: 7.337683 seconds
reference/model-evidence/adaptation-constants-probe.rs

Open file

fn main() {
    let largest_power_of_ten = (1024_f64 / std::f64::consts::LOG2_10) as i32;
    let log2_5 = std::f64::consts::LOG2_10 - 1.0;
    let max_exponent_fast_path = (53_f64 / log2_5) as i64;
    let max_exponent_disguised =
        max_exponent_fast_path + (53_f64 / std::f64::consts::LOG2_10) as i64;

    println!("largest_power_of_ten={largest_power_of_ten}");
    println!("max_exponent_fast_path={max_exponent_fast_path}");
    println!("max_exponent_disguised={max_exponent_disguised}");
    println!("neg_nan={:016x}", (-f64::NAN).to_bits());

    for (exponent, value) in IntoIterator::into_iter([
        1e0_f64, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11,
        1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22,
    ])
    .enumerate()
    {
        println!("pow10_{exponent}={:016x}", value.to_bits());
    }
}
reference/model-evidence/binary64-boundary.txt

Open file

Primary evidence for the binary64 boundary
==========================================

Scope and identities
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction, the
adapted Rust crate retained in this repository, and the installed toolchain
named by modeling-input/SETUP.md. The probe source is retained at
reference/model-evidence/binary64-probe.rs; no scratch source is required to
reproduce it.

Toolchain executable:
  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
Target:
  x86_64-unknown-linux-gnu
rustc executable SHA-256:
  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
Probe source SHA-256:
  68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
Compiled probe SHA-256:
  f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
Frozen generated.lean SHA-256:
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9
Frozen modeling-input/manifest.json SHA-256:
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2
Approved Binary64ModelDefault.lean SHA-256 at the time of this record:
  03ae48fb631e6242bd21bf95d0481b66acae05f8cab343c7ab279b3c116538a3

Exact reproduction commands
---------------------------

Run from the repository root:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-probe.rs
  B=.trellis/scratch/binary64-probe
  "$R" --version --verbose
  sha256sum "$R"
  sha256sum "$P"
  "$R" --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$B"
  "$B"

Raw output
----------

  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
  rustc_sha256=162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  probe_sha256=68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
  binary_sha256=f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
  target_arch=x86_64
  mantissa_digits=53
  exponent_mask=7ff0000000000000
  mantissa_mask=000fffffffffffff
  nan=7ff8000000000000
  infinity=7ff0000000000000
  neg_infinity=fff0000000000000
  nan_category=Nan
  infinity_category=Infinite
  zero_category=Zero
  subnormal_category=Subnormal
  normal_category=Normal
  from_bits_to_bits=7ff0000000000001
  neg_payload_nan=fff0000000000001
  neg_zero=8000000000000000
  subnormal_tie_to_even_zero=0000000000000000
  subnormal_tie_to_even_two=0000000000000002
  normal_division=3fb999999999999a
  mul_negative_zero=8000000000000000
  div_negative_zero=8000000000000000
  div_negative_infinity=fff0000000000000
  mul_overflow=7ff0000000000000
  mul_zero_infinity_is_nan=true
  div_zero_zero_is_nan=true
  mul_nan_is_nan=true
  cast_2_pow_53=4340000000000000
  cast_2_pow_53_plus_1=4340000000000000

Pinned Rust library sources
---------------------------

The installed sources below belong to the same named toolchain. Their
SHA-256 identities are:

  core/src/primitive_docs.rs
    c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5
  core/src/num/f64.rs
    84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618
  core/src/clone.rs
    23f9cfc80347fde6b8457d46fbf7a2b8d9f34c8c58601b0b6f714ca2f6d1976b

The exact relevant text of core/src/primitive_docs.rs is:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The referenced primitive-f32 documentation supplies the common primitive
floating-point operation rules quoted next:

  /// - −0.0: IEEE 754 floating-point numbers have a bit that indicates their sign, so −0.0 is a
  ///   possible value. For comparison −0.0 = +0.0, but floating-point operations can carry
  ///   the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
  ///   a negative number rounded to a value smaller than a float can represent also produces −0.0.
  /// - [∞](#associatedconstant.INFINITY) and
  ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
  ///   like `1.0 / 0.0`.
  ///
  /// When a primitive operation (addition, subtraction, multiplication, or
  /// division) is performed on this type, the result is rounded according to the
  /// roundTiesToEven direction defined in IEEE 754-2008. That means:
  ///
  /// - The result is the representable value closest to the true value, if there
  ///   is a unique closest representable value.
  /// - If the true value is exactly half-way between two representable values,
  ///   the result is the one with an even least-significant binary digit.
  /// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
  ///   `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
  ///   true value's sign).

The same file explicitly separates arithmetic NaN choice from exact bitwise
operations; its exact relevant text is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.
  ///
  /// The following rules apply when a NaN value is returned from an arithmetic operation:
  /// - The result has a non-deterministic sign.
  /// - The quiet bit and payload are non-deterministically chosen from
  ///   the following set of options:
  ///
  ///   - **Preferred NaN**: The quiet bit is set and the payload is all-zero.
  ///   - **Quieting NaN propagation**: The quiet bit is set and the payload is copied from any input
  ///     operand that is a NaN. If the inputs and outputs do not have the same payload size (i.e., for
  ///     `as` casts), then
  ///     - If the output is smaller than the input, low-order bits of the payload get dropped.
  ///     - If the output is larger than the input, the payload gets filled up with 0s in the low-order
  ///       bits.
  ///   - **Unchanged NaN propagation**: The quiet bit and payload are copied from any input operand
  ///     that is a NaN. If the inputs and outputs do not have the same size (i.e., for `as` casts), the
  ///     same rules as for "quieting NaN propagation" apply, with one caveat: if the output is smaller
  ///     than the input, dropping the low-order bits may result in a payload of 0; a payload of 0 is not
  ///     possible with a signaling NaN (the all-0 significand encodes an infinity) so unchanged NaN
  ///     propagation cannot occur with some inputs.
  ///   - **Target-specific NaN**: The quiet bit is set and the payload is picked from a target-specific
  ///     set of "extra" possible NaN payloads. The set can depend on the input operand values.
  ///     See the table below for the concrete NaNs this set contains on various targets.
  ///
  /// | `target_arch` | Extra payloads possible on this platform |
  /// |---------------|------------------------------------------|
  /// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |

Thus the model's preferred quiet NaN is one permitted result whenever
multiplication or division returns NaN. This does not claim that arbitrary
Rust arithmetic NaNs have those exact bits. By contrast, unary negation and
bit conversion must preserve all non-sign bits exactly, including for every
NaN payload.

The exact relevant declarations in core/src/num/f64.rs are:

  pub const MANTISSA_DIGITS: u32 = 53;
  pub const NAN: f64 = 0.0_f64 / 0.0_f64;
  pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
  pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
  pub const SIGN_MASK: u64 = 0x8000_0000_0000_0000;
  pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;
  pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff;

  pub const fn classify(self) -> FpCategory {
      // We used to have complicated logic here that avoids the simple bit-based tests to work
      // around buggy codegen for x87 targets (see
      // https://github.com/rust-lang/rust/issues/114479). However, some LLVM versions later, none
      // of our tests is able to find any difference between the complicated and the naive
      // version, so now we are back to the naive version.
      let b = self.to_bits();
      match (b & Self::MANTISSA_MASK, b & Self::EXPONENT_MASK) {
          (0, Self::EXPONENT_MASK) => FpCategory::Infinite,
          (_, Self::EXPONENT_MASK) => FpCategory::Nan,
          (0, 0) => FpCategory::Zero,
          (_, 0) => FpCategory::Subnormal,
          _ => FpCategory::Normal,
      }
  }

  pub const fn to_bits(self) -> u64 {
      // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
      unsafe { mem::transmute(self) }
  }

  pub const fn from_bits(v: u64) -> Self {
      // It turns out the safety issues with sNaN were overblown! Hooray!
      // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
      unsafe { mem::transmute(v) }
  }

The exact scalar clone body in core/src/clone.rs is:

  impl const Clone for $t {
      #[inline(always)]
      fn clone(&self) -> Self {
          *self
      }
  }

Frozen adapted source
---------------------

The relevant retained source file hashes are:

  crate/traits.rs
    9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  crate/dec2flt/decimal.rs
    633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb
  crate/dec2flt/lemire.rs
    fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1
  crate/dec2flt/slow.rs
    93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485

The dispatcher excerpts below are reproduced from the identified file by
running these commands from the repository root:

  sha256sum crate/dec2flt/mod.rs
  sed -n '354,403p' crate/dec2flt/mod.rs
  sed -n '405,422p' crate/dec2flt/mod.rs
  sed -n '465,475p' crate/dec2flt/mod.rs
  sed -n '506,523p' crate/dec2flt/mod.rs

Exact constant and bit-conversion excerpt from crate/traits.rs:

  impl Float for f64 {
      type Int = u64;

      const INFINITY: Self = Self::INFINITY;
      const NEG_INFINITY: Self = Self::NEG_INFINITY;
      const NAN: Self = Self::NAN;
      // Bit-identical to the upstream `-f64::NAN`, without the unsupported
      // compile-time float negation.
      const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);

      const BITS: u32 = 64;
      const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
      const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
      const SIG_MASK: Self::Int = Self::MANTISSA_MASK;

      fn to_bits(self) -> Self::Int {
          self.to_bits()
      }

      fn classify(self) -> FpCategory {
          self.classify()
      }
  }

  impl FloatExt for f64 {
      #[inline]
      fn from_u64_bits(v: u64) -> Self {
          f64::from_bits(v)
      }

Exact derived-constant defaults from crate/traits.rs:

  /// The number of bits in the significand, *excluding* the hidden bit.
  const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;

  /// Number of bits in the exponent.
  const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

  /// The saturated (maximum bitpattern) value of the exponent, i.e. the infinite
  /// representation.
  ///
  /// This shifted fully right, use `EXP_MASK` for the shifted value.
  const EXP_SAT: u32 = (1 << Self::EXP_BITS) - 1;

  /// Signed version of `EXP_SAT` since we convert a lot.
  const INFINITE_POWER: i32 = Self::EXP_SAT as i32;

  /// The exponent bias value. This is also the maximum value of the exponent.
  const EXP_BIAS: u32 = Self::EXP_SAT >> 1;

  /// Minimum exponent value of normal values.
  const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Together with the f64-instance lines `BITS = 64` and
`SIG_TOTAL_BITS = Self::MANTISSA_DIGITS` in the preceding excerpt, these
defaults derive SIG_BITS, EXP_MIN, and INFINITE_POWER from the primitive
mantissa-digit constant rather than introducing independent parameters.

Exact asserted-conversion excerpt from crate/dec2flt/mod.rs:

  #[inline]
  // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
  // `charon::opaque` makes this entire asserted conversion external: both the
  // unchanged `debug_assert!` and the unchanged cast below are in the opaque
  // body. The callers, their fast-path guards, and their surrounding
  // computation remain mechanically visible. A corresponding model binding
  // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
  // exact binary64 conversion at or below that bound.
  #[charon::opaque]
  fn from_u64(v: u64) -> Self {
      debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
      v as _
  }

Here MAX_MANTISSA_FAST_PATH is the retained default 1 << 53.  The attribute is
attached to the function item, so the generated external stands for the whole
method, not merely the cast.  In the enabled-debug configuration the source
succeeds only when v <= 2^53; above it the assertion fails before the cast. On
the successful branch every integer is exactly representable, so the source
cast and the model rounder return the same word.

Exact power-table and assembly excerpts from crate/dec2flt/mod.rs:

  /// Maximum mantissa for the fast-path (`1 << 53` for f64).
  const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;

  const MAX_EXPONENT_FAST_PATH: i64 = 22;
  const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
  const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;

  fn pow10_fast_path(exponent: usize) -> Self {
      // These bit patterns are exactly the source table's rounded binary64
      // literals.  The match is the same masked lookup; it merely keeps float
      // constants out of Aeneas's unsupported constant interpreter.
      match exponent & 31 {
          0 => f64::from_bits(0x3FF0_0000_0000_0000),
          1 => f64::from_bits(0x4024_0000_0000_0000),
          2 => f64::from_bits(0x4059_0000_0000_0000),
          3 => f64::from_bits(0x408F_4000_0000_0000),
          4 => f64::from_bits(0x40C3_8800_0000_0000),
          5 => f64::from_bits(0x40F8_6A00_0000_0000),
          6 => f64::from_bits(0x412E_8480_0000_0000),
          7 => f64::from_bits(0x4163_12D0_0000_0000),
          8 => f64::from_bits(0x4197_D784_0000_0000),
          9 => f64::from_bits(0x41CD_CD65_0000_0000),
          10 => f64::from_bits(0x4202_A05F_2000_0000),
          11 => f64::from_bits(0x4237_4876_E800_0000),
          12 => f64::from_bits(0x426D_1A94_A200_0000),
          13 => f64::from_bits(0x42A2_309C_E540_0000),
          14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
          15 => f64::from_bits(0x430C_6BF5_2634_0000),
          16 => f64::from_bits(0x4341_C379_37E0_8000),
          17 => f64::from_bits(0x4376_3457_85D8_A000),
          18 => f64::from_bits(0x43AB_C16D_674E_C800),
          19 => f64::from_bits(0x43E1_58E4_6091_3D00),
          20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
          21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
          22 => f64::from_bits(0x4480_F0CF_064D_D592),
          _ => f64::from_bits(0),
      }
  }

  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

Exact native-call excerpt from crate/dec2flt/decimal.rs:

  fn can_use_fast_path<F: Lemire>(&self) -> bool {
      F::MIN_EXPONENT_FAST_PATH <= self.exponent
          && self.exponent <= F::MAX_EXPONENT_DISGUISED_FAST_PATH
          && self.mantissa <= F::MAX_MANTISSA_FAST_PATH
          && !self.many_digits
  }

  if !self.can_use_fast_path::<F>() {
      return None;
  }

  let value = if self.exponent <= F::MAX_EXPONENT_FAST_PATH {
      // normal fast path
      let value = F::from_u64(self.mantissa);
      if self.exponent < 0 {
          // Explicit trait calls preserve Rust arithmetic and resolve
          // the generic output type that Charon leaves ambiguous.
          core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
      } else {
          core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
      }
  } else {
      // disguised fast path
      let shift = self.exponent - F::MAX_EXPONENT_FAST_PATH;
      let mantissa = self.mantissa.checked_mul(INT_POW10[shift as usize])?;
      if mantissa > F::MAX_MANTISSA_FAST_PATH {
          return None;
      }
      core::ops::Mul::mul(
          F::from_u64(mantissa),
          F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
      )
  };

  if self.negative {
      Some(core::ops::Neg::neg(value))
  } else {
      Some(value)
  }

The preceding can_use_fast_path body, together with
MAX_MANTISSA_FAST_PATH = 1 << SIG_TOTAL_BITS and SIG_TOTAL_BITS = 53 for f64,
requires the exponent to lie between -22 and 37, the input mantissa to be at
most 2^53, and many_digits to be false. Consequently an ordinary arithmetic
call has a from_u64 operand in 0..=2^53. In its negative-exponent arm,
`-self.exponent` lies in 1..=22; in its nonnegative arm, `self.exponent` lies
in 0..=22. The disguised branch checks its multiplied mantissa against 2^53
before from_u64 and uses table index 22. The paired statement
Binary64NativeCallDomain does not assert this source reachability. It says
conditionally that a from_u64 argument at most 2^53 succeeds with a finite,
non-NaN word and that a table index at most 22 succeeds with a positive,
nonzero, finite, non-NaN word. Applying that conditional statement to the
guards just derived establishes those properties for the actual ordinary and
disguised calls, and in particular establishes that every executed divisor is
nonzero.

Exact special-value excerpt from crate/dec2flt/parse.rs:

  let float = match (register, len) {
      (INF_3, 3) => F::INFINITY,
      (INF_8, 8) => F::INFINITY,
      (NAN, 3) => F::NAN,
      _ => return None,
  };

  if negative { Some(-float) } else { Some(float) }

Thus the executed special route is INFINITY or NAN followed by conditional
negation; it does not select NEG_INFINITY or NEG_NAN directly.

The number helper has the exact source body

  pub fn parse_number(s: &[u8]) -> Option<Decimal> {
      if let Some((float, rest)) = parse_partial_number(s) {
          if rest == s.len() {
              return Some(float);
          }
      }
      None
  }

It returns only the Decimal produced by parse_partial_number; there is no
float type parameter or float operation at this boundary.

Exact dispatcher excerpts from crate/dec2flt/mod.rs
---------------------------------------------------

The entry of `dec2flt_with_trace` strips at most one leading sign, rejects
empty and sign-only inputs, calls `parse_number` on the unsigned body, and
calls `parse_inf_nan` only when `parse_number` returns `None`:

  /// Run the actual dispatcher while retaining its approved internal observations.
  pub fn dec2flt_with_trace<
      'a,
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {
          return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
      };
      let negative = c == b'-';
      if c == b'-' || c == b'+' {
          body = &body[1..];
      }
      if body.is_empty() {
          return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
      }

      let parse_number_result = parse_number(body);
      let parsed = match parse_number_result {
          Some(r) => r,
          None => {
              let parse_inf_nan_result = parse_inf_nan(body, negative);
              return match parse_inf_nan_result {
                  Some(value) => (
                      Ok(value),
                      Dec2FltTrace::Special {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                          result: value,
                      },
                  ),
                  None => (
                      Err(pfe_invalid()),
                      Dec2FltTrace::Invalid {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                      },
                  ),
              };
          }
      };

Thus every `Err` arm shown here returns before `parsed` is available and before
the native, integer, slow, assembly, or final-negation code below it can run.
On a numeric result, the lexical sign is copied into the parsed record before
the native attempt, whose successful result also returns before raw-pair
assembly:

      let mut num = parsed;
      num.negative = negative;
      if !cfg!(feature = "optimize_for_size") {
          let fast_path_result = num.try_fast_path::<F>();
          if let Some(value) = fast_path_result {
              return (
                  Ok(value),
                  Dec2FltTrace::FastPath {
                      body,
                      negative,
                      parse_number_result,
                      fast_path_input: num,
                      fast_path_result,
                      result: value,
                  },
              );
          }
      }

If the native attempt does not return, the selected raw pair is assembled and
the source then conditionally negates it according to the lexical-sign flag:

      let selected_pair = fp;
      // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
      // it neither changes the selected pair nor introduces a new branch or call.
      let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
      let assembly_result = biased_fp_to_float::<F>(fp);
      let lexical_sign_applied = num.negative;
      let result = if lexical_sign_applied {
          core::ops::Neg::neg(assembly_result)
      } else {
          assembly_result
      };

The public `dec2flt` executes that same route and returns its result projection;
it does not reimplement or reorder any parsing or float operation:

  /// Converts a decimal string into a floating point number.
  #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
  pub fn dec2flt<
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &str,
  ) -> Result<F, ParseFloatError> {
      // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
      // clause admits exactly the same instances and lets Charon resolve the
      // explicit, source-equivalent final negation.
      // The public function is now exactly the result projection of the single
      // instrumented implementation.  No conversion step is duplicated, and
      // discarding the trace cannot affect Rust evaluation or the returned bits.
      dec2flt_with_trace::<F>(s).0
  }

The integer-tier helper has the source type and exact executable excerpts
below (long explanatory comments are elided). In particular it returns a raw
BiasedFp and contains no from_u64 cast, primitive float multiplication,
division, negation, or from_bits call:

  pub fn compute_float<F: Float>(q: i64, mut w: u64) -> BiasedFp {
      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);
      let fp_error = BiasedFp::zero_pow2(-1);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if w == 0 || q < F::SMALLEST_POWER_OF_TEN as i64 {
          return fp_zero;
      } else if q > F::LARGEST_POWER_OF_TEN as i64 {
          return fp_inf;
      }
      // Normalize our significant digits, so the most-significant bit is set.
      let lz = w.leading_zeros();
      w <<= lz;
      let (lo, hi) = compute_product_approx(q, w, F::SIG_BITS as usize + 3);
      if lo == 0xFFFF_FFFF_FFFF_FFFF {
          let inside_safe_exponent = (q >= -27) && (q <= 55);
          if !inside_safe_exponent {
              return fp_error;
          }
      }
      let upperbit = (hi >> 63) as i32;
      let mut mantissa = hi >> (upperbit + 64 - F::SIG_BITS as i32 - 3);
      let mut power2 = power(q as i32) + upperbit - lz as i32 - F::EXP_MIN + 1;
      if power2 <= 0 {
          if -power2 + 1 >= 64 {
              // Have more than 64 bits below the minimum exponent, must be 0.
              return fp_zero;
          }
          // Have a subnormal value.
          mantissa >>= -power2 + 1;
          mantissa += mantissa & 1;
          mantissa >>= 1;
          power2 = (mantissa >= (1_u64 << F::SIG_BITS)) as i32;
          return BiasedFp { m: mantissa, p_biased: power2 };
      }
      // Need to handle rounding ties. Normally, we need to round up,
      // but if we fall right in between and we have an even basis, we
      // need to round down.
      if lo <= 1
          && q >= F::MIN_EXPONENT_ROUND_TO_EVEN as i64
          && q <= F::MAX_EXPONENT_ROUND_TO_EVEN as i64
          && mantissa & 0b11 == 0b01
          && (mantissa << (upperbit + 64 - F::SIG_BITS as i32 - 3)) == hi
      {
          // Zero the lowest bit, so we don't round up.
          mantissa &= !1_u64;
      }
      // Round-to-even, then shift the significant digits into place.
      mantissa += mantissa & 1;
      mantissa >>= 1;
      if mantissa >= (2_u64 << F::SIG_BITS) {
          // Rounding up overflowed, so the carry bit is set. Set the
          // mantissa to 1 (only the implicit, hidden bit is set) and
          // increase the exponent.
          mantissa = 1_u64 << F::SIG_BITS;
          power2 += 1;
      }
      // Zero out the hidden bit.
      mantissa &= !(1_u64 << F::SIG_BITS);
      if power2 >= F::INFINITE_POWER {
          // Exponent is above largest normal value, must be infinite.
          return fp_inf;
      }
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact slow-tier source body from crate/dec2flt/slow.rs:

  pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {
      const MAX_SHIFT: usize = 60;
      const NUM_POWERS: usize = 19;
      const POWERS: [u8; 19] =
          [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];

      let get_shift = |n| {
          if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }
      };

      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);

      let mut d = parse_decimal_seq(s);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if d.num_digits == 0 || d.decimal_point < -324 {
          return fp_zero;
      } else if d.decimal_point >= 310 {
          return fp_inf;
      }
      let mut exp2 = 0_i32;
      let mut loop_result = None;
      // Shift right toward (1/2 ... 1].
      while d.decimal_point > 0 && loop_result.is_none() {
          let n = d.decimal_point as usize;
          let shift = get_shift(n);
          d.right_shift(shift);
          if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_zero);
          } else {
              exp2 += shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // Shift left toward (1/2 ... 1].
      while d.decimal_point <= 0 && loop_result.is_none() {
          let shift = if d.decimal_point == 0 {
              match d.digits[0] {
                  digit if digit >= 5 => break,
                  0 | 1 => 2,
                  _ => 1,
              }
          } else {
              get_shift((-d.decimal_point) as _)
          };
          d.left_shift(shift);
          if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_inf);
          } else {
              exp2 -= shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
      exp2 -= 1;
      while F::EXP_MIN > exp2 {
          let mut n = (F::EXP_MIN - exp2) as usize;
          if n > MAX_SHIFT {
              n = MAX_SHIFT;
          }
          d.right_shift(n);
          exp2 += n as i32;
      }
      if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
          return fp_inf;
      }
      // Shift the decimal to the hidden bit, and then round the value
      // to get the high mantissa+1 bits.
      d.left_shift(F::SIG_BITS as usize + 1);
      let mut mantissa = d.round();
      if mantissa >= (1_u64 << (F::SIG_BITS + 1)) {
          // Rounding up overflowed to the carry bit, need to
          // shift back to the hidden bit.
          d.right_shift(1);
          exp2 += 1;
          mantissa = d.round();
          if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
              return fp_inf;
          }
      }
      let mut power2 = exp2 - F::EXP_MIN + 1;
      if mantissa < (1_u64 << F::SIG_BITS) {
          power2 -= 1;
      }
      // Zero out all the bits above the explicit mantissa bits.
      mantissa &= (1_u64 << F::SIG_BITS) - 1;
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact final numeric-sign excerpt from crate/dec2flt/mod.rs:

  let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
  let assembly_result = biased_fp_to_float::<F>(fp);
  let lexical_sign_applied = num.negative;
  let result = if lexical_sign_applied {
      core::ops::Neg::neg(assembly_result)
  } else {
      assembly_result
  };

Thus a numeric execution that reaches the integer/slow selection route
assembles its selected pair with from_bits through biased_fp_to_float and only
then conditionally negates it. A successful try_fast_path returns earlier and
does not perform this assembly. compute_float and parse_long_mantissa produce
raw BiasedFp pairs and do not call from_u64, primitive float multiplication,
division, negation, or from_bits; they do, however, execute constants derived
from SIG_TOTAL_BITS before producing those pairs.

Retained structural-boundary evidence
-------------------------------------

Several adjacent structural bindings cite this same evidence record. Their
pinned library source identities are:

  core/src/num/mod.rs
    f0820f9dfb94999440c8cb4a349736fa21df7e5668e19b6b49e016ff67c05ce3
  core/src/option.rs
    7cf61204b05d98a95bc2e322d5fbfc1f4f91505109971917d9a7fb47151c50e6
  core/src/slice/mod.rs
    354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840
  core/src/str/mod.rs
    284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78

Exact ASCII-digit body from core/src/num/mod.rs:

  pub const fn is_ascii_digit(&self) -> bool {
      matches!(*self, b'0'..=b'9')
  }

Exact Option control-flow bodies from core/src/option.rs:

  fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
      match self {
          Some(v) => ControlFlow::Continue(v),
          None => ControlFlow::Break(None),
      }
  }

  fn from_residual(residual: Option<convert::Infallible>) -> Self {
      match residual {
          None => None,
      }
  }

Exact slice observation bodies from core/src/slice/mod.rs:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

Exact string-byte body from core/src/str/mod.rs:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }
reference/model-evidence/binary64-probe.rs

Open file

#![feature(float_masks)]

use std::num::FpCategory;

fn bits(label: &str, value: f64) {
    println!("{label}={:016x}", value.to_bits());
}

fn main() {
    println!("target_arch={}", std::env::consts::ARCH);
    println!("mantissa_digits={}", f64::MANTISSA_DIGITS);
    println!("exponent_mask={:016x}", f64::EXPONENT_MASK);
    println!("mantissa_mask={:016x}", f64::MANTISSA_MASK);
    bits("nan", f64::NAN);
    bits("infinity", f64::INFINITY);
    bits("neg_infinity", f64::NEG_INFINITY);

    for (label, value) in [
        ("nan_category", f64::NAN),
        ("infinity_category", f64::INFINITY),
        ("zero_category", 0.0),
        ("subnormal_category", f64::from_bits(1)),
        ("normal_category", 1.0),
    ] {
        let category = match value.classify() {
            FpCategory::Nan => "Nan",
            FpCategory::Infinite => "Infinite",
            FpCategory::Zero => "Zero",
            FpCategory::Subnormal => "Subnormal",
            FpCategory::Normal => "Normal",
        };
        println!("{label}={category}");
    }

    let payload_nan_word = 0x7ff0_0000_0000_0001_u64;
    println!(
        "from_bits_to_bits={:016x}",
        f64::from_bits(payload_nan_word).to_bits()
    );
    bits("neg_payload_nan", -f64::from_bits(payload_nan_word));
    bits("neg_zero", -0.0);

    bits("subnormal_tie_to_even_zero", f64::from_bits(1) * 0.5);
    bits("subnormal_tie_to_even_two", f64::from_bits(3) * 0.5);
    bits("normal_division", 1.0 / 10.0);
    bits("mul_negative_zero", -0.0 * 2.0);
    bits("div_negative_zero", -1.0 / f64::INFINITY);
    bits("div_negative_infinity", 1.0 / -0.0);
    bits("mul_overflow", f64::MAX * (1.0 + f64::EPSILON));
    println!("mul_zero_infinity_is_nan={}", (0.0 * f64::INFINITY).is_nan());
    println!("div_zero_zero_is_nan={}", (0.0_f64 / 0.0_f64).is_nan());
    println!("mul_nan_is_nan={}", (f64::NAN * 1.0).is_nan());

    bits("cast_2_pow_53", (1_u64 << 53) as f64);
    bits("cast_2_pow_53_plus_1", ((1_u64 << 53) + 1) as f64);
}
reference/model-evidence/native-boundary.txt

Open file

Native boundary inventory for Binary64Model

Reproduction command (repository root):
  python3 .trellis/scripts/pv_modeling.py inspect-native .

Tool identity for this reproduction:
  Python 3.14.4
  .trellis/scripts/pv_modeling.py
  sha256 915b29822cb4c47b70dabb1dc011514641deb2e428b62347fc31aa898de5e0d4

Top-level result:
  declaration_count: 24

The complete raw inspect-native records for the fourteen F64 externals follow.
They are copied from the command's complete index; no scratch artifact is needed
to review them.

[
  {
    "name": "F64.Insts.CoreCloneClone.clone",
    "extracted_signature": ": F64 → Result F64",
    "rust_symbol": "core::clone::impls::{impl core::clone::Clone for f64}::clone",
    "raw_declaration_sha256": "5eaad5fb9af034045cf0dafed5af85445fe4af9a78958259a15a1faddd1e8f05",
    "source_utf8": "/-- [core::clone::impls::{impl core::clone::Clone for f64}::clone]:\n    Source: '/rustc/library/core/src/clone.rs', lines 698:20-698:43\n    Name pattern: [core::clone::impls::{core::clone::Clone<f64>}::clone]\n    Visibility: public -/\n@[rust_fun \"core::clone::impls::{core::clone::Clone<f64>}::clone\"]\naxiom F64.Insts.CoreCloneClone.clone : F64 → Result F64\n"
  },
  {
    "name": "core.f64.F64.MANTISSA_DIGITS",
    "extracted_signature": ": Result Std.U32",
    "rust_symbol": "core::f64::{f64}::MANTISSA_DIGITS",
    "raw_declaration_sha256": "42b1b0c4d2c2bbc7271748fc78c518391f55bf6517c643667a6561a0ac6e771c",
    "source_utf8": "/-- [core::f64::{f64}::MANTISSA_DIGITS]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 412:4-412:34\n    Name pattern: [core::f64::{f64}::MANTISSA_DIGITS]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::MANTISSA_DIGITS\"]\naxiom core.f64.F64.MANTISSA_DIGITS : Result Std.U32\n"
  },
  {
    "name": "core.f64.F64.NAN",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::NAN",
    "raw_declaration_sha256": "a18685a80db5dbebe39151c7375a0470bb3905fe1228e5598a995a1cf017a768",
    "source_utf8": "/-- [core::f64::{f64}::NAN]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 509:4-509:22\n    Name pattern: [core::f64::{f64}::NAN]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::NAN\"] axiom core.f64.F64.NAN : Result F64\n"
  },
  {
    "name": "core.f64.F64.INFINITY",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::INFINITY",
    "raw_declaration_sha256": "f905901e67400987f49cddd13a8768644bed9e7e3f79c3a81b34879f494a2816",
    "source_utf8": "/-- [core::f64::{f64}::INFINITY]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 512:4-512:27\n    Name pattern: [core::f64::{f64}::INFINITY]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::INFINITY\"]\naxiom core.f64.F64.INFINITY : Result F64\n"
  },
  {
    "name": "core.f64.F64.NEG_INFINITY",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::NEG_INFINITY",
    "raw_declaration_sha256": "85f6e517e439c2f2d5c59aa29884ff38b2381c2f5dd7cb14e7947b232efe7f0e",
    "source_utf8": "/-- [core::f64::{f64}::NEG_INFINITY]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 515:4-515:31\n    Name pattern: [core::f64::{f64}::NEG_INFINITY]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::NEG_INFINITY\"]\naxiom core.f64.F64.NEG_INFINITY : Result F64\n"
  },
  {
    "name": "core.f64.F64.EXPONENT_MASK",
    "extracted_signature": ": Result Std.U64",
    "rust_symbol": "core::f64::{f64}::EXPONENT_MASK",
    "raw_declaration_sha256": "f1054e64392d8f9306e8c69015f0b521d9f387edda8458a3bae4773606f46a71",
    "source_utf8": "/-- [core::f64::{f64}::EXPONENT_MASK]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 615:4-615:32\n    Name pattern: [core::f64::{f64}::EXPONENT_MASK]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::EXPONENT_MASK\"]\naxiom core.f64.F64.EXPONENT_MASK : Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.MANTISSA_MASK",
    "extracted_signature": ": Result Std.U64",
    "rust_symbol": "core::f64::{f64}::MANTISSA_MASK",
    "raw_declaration_sha256": "dc3517faa141b7a7a016e9f73930af3c9af23d3e6d06874440d99eabbc846538",
    "source_utf8": "/-- [core::f64::{f64}::MANTISSA_MASK]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 637:4-637:32\n    Name pattern: [core::f64::{f64}::MANTISSA_MASK]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::MANTISSA_MASK\"]\naxiom core.f64.F64.MANTISSA_MASK : Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.classify",
    "extracted_signature": ": F64 → Result core.num.FpCategory",
    "rust_symbol": "core::f64::{f64}::classify",
    "raw_declaration_sha256": "9fedd442d1d0403c4a7323d8f4e95c51b8bd39bf82d2d0ba357eaaf243e69b78",
    "source_utf8": "/-- [core::f64::{f64}::classify]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 782:4-782:45\n    Name pattern: [core::f64::{f64}::classify]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::classify\"]\naxiom core.f64.F64.classify : F64 → Result core.num.FpCategory\n"
  },
  {
    "name": "core.f64.F64.to_bits",
    "extracted_signature": ": F64 → Result Std.U64",
    "rust_symbol": "core::f64::{f64}::to_bits",
    "raw_declaration_sha256": "ddaec6bb7c36ba6445a5b0b8e52f841240ca2563004e8ce1255caf0e36ec22ae",
    "source_utf8": "/-- [core::f64::{f64}::to_bits]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 1223:4-1223:37\n    Name pattern: [core::f64::{f64}::to_bits]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::to_bits\"]\naxiom core.f64.F64.to_bits : F64 → Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.from_bits",
    "extracted_signature": ": Std.U64 → Result F64",
    "rust_symbol": "core::f64::{f64}::from_bits",
    "raw_declaration_sha256": "af8ee4387cea97d0a353a83d6280c03f3c9f739bf733af5bd39c29909f1b2b19",
    "source_utf8": "/-- [core::f64::{f64}::from_bits]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 1269:4-1269:42\n    Name pattern: [core::f64::{f64}::from_bits]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::from_bits\"]\naxiom core.f64.F64.from_bits : Std.U64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithMulF64F64.mul",
    "extracted_signature": ": F64 → F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Mul<f64, f64> for f64}::mul",
    "raw_declaration_sha256": "20d985819a981e9e80485ce169c1d045ea13fa8796e9314d5b621141aae6deec",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Mul<f64, f64> for f64}::mul]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 350:12-350:41\n    Name pattern: [core::ops::arith::{core::ops::arith::Mul<f64, f64, f64>}::mul]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Mul<f64, f64, f64>}::mul\"]\naxiom F64.Insts.CoreOpsArithMulF64F64.mul : F64 → F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithDivF64F64.div",
    "extracted_signature": ": F64 → F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Div<f64, f64> for f64}::div",
    "raw_declaration_sha256": "1ebb67b412d89328acb4c5dd53168e84fdf26be6cbe1ef49f5a27edbd84ada36",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Div<f64, f64> for f64}::div]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 515:12-515:41\n    Name pattern: [core::ops::arith::{core::ops::arith::Div<f64, f64, f64>}::div]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Div<f64, f64, f64>}::div\"]\naxiom F64.Insts.CoreOpsArithDivF64F64.div : F64 → F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithNegF64.neg",
    "extracted_signature": ": F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Neg<f64> for f64}::neg",
    "raw_declaration_sha256": "bbf93f24bd7cfbc72e47e8bb3a9acc6641df939ad6afafd9ba02c81fe27f7ed0",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Neg<f64> for f64}::neg]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 719:12-719:30\n    Name pattern: [core::ops::arith::{core::ops::arith::Neg<f64, f64>}::neg]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Neg<f64, f64>}::neg\"]\naxiom F64.Insts.CoreOpsArithNegF64.neg : F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64",
    "extracted_signature": ": Std.U64 → Result F64",
    "rust_symbol": "dec2flt_model::num::imp::dec2flt::{impl dec2flt_model::num::imp::dec2flt::Lemire<u64> for f64}::from_u64",
    "raw_declaration_sha256": "ad172bce0522e7e41bceb8c66a5adff962822ee8a9454dfd59b7019086797ba8",
    "source_utf8": "/-- [dec2flt_model::num::imp::dec2flt::{impl dec2flt_model::num::imp::dec2flt::Lemire<u64> for f64}::from_u64]:\n    Source: 'num/imp/../../dec2flt/mod.rs', lines 263:4-266:5\n    Visibility: public -/\naxiom F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64\n  : Std.U64 → Result F64\n"
  }
]
reference/model-evidence/setup-reproduction.txt

Open file

Fresh extraction and composition evidence for Preamble
======================================================

Scope
-----

This record identifies the preparation evidence frozen with this reopened
repository and records the model-support composition reproduced on 2026-09-24.
It is evidence about source, extraction, and composition, not evidence that any
supplied GOAL is true.

Pinned configuration and tools
------------------------------

modeling-input/extraction.json selects the single library crate `crate` with
empty Cargo, Charon, and Aeneas argument lists.  crate/Cargo.toml gives the
`default` feature an empty definition, leaves `optimize_for_size` disabled,
uses the development profile, and explicitly enables overflow checks.
extraction-evidence/COMMAND.json records target x86_64-unknown-linux-gnu,
nightly-2026-06-01, debug assertions, overflow checks, unwind panic handling,
64-bit pointers, and SSE2.

modeling-input/tool-identities.json pins these six executables by SHA-256:

  cargo   54e05dce8c9ca2f638cc3d87ec1a19425b5d0bf1f31aeb48cf4792aec5cadf27
  rustc   162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  rustdoc 2bf660d140310e28146e2c002dc6fcabd957c0a3b740be0419e6f8e5a9c87523
  Charon  6490034f368ce98f3e7ae5a28bf71ed56d03bdf1e3712e71376b96fc55baeade
  Aeneas  9f446d2aaf59e8e705e36d05cb993f1c6ab0e97f8dc6fd2f19907a86ede30922
  Lean    3e0d0d3d801675359f2d4cf9815bfdb417b20b92fdd9d48b3b14c95bbae28bbf

Fresh extraction
----------------

The authoritative reproduction command in modeling-input/manifest.json is:

  python3 .trellis/scripts/pv_modeling.py check-native . --fresh

extraction-evidence/COMMAND.json records the exact argv, environment, and
working directory for every step.  extraction-evidence/RESULT.json records
exit status 0 for rustc identity, Charon/Cargo extraction, Cargo metadata,
Cargo cfg, and Aeneas.  Its primary run produced generated Lean SHA-256:

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9

The same digest is recorded for both `audited_sha256` and `native_sha256` in
modeling-input/manifest.json, whose `byte_identical` field is true, and is the
digest of this repository's generated.lean.  The manifest's accepted setup and
adaptation audits record the successful uncached Cargo, Charon, and Aeneas
checks, the absence of source placeholders, and the exact 24-external native
boundary.  In particular, the corrected source basis is:

  c42107d27bc47c02e4beb4d6db4c47879aecb68a175ab67f7e6c5d5e866a2402c06583f9e94b467095cf9aff1a26a4857650ace006061c1ca5e4c441747ef622

The pinned compatibility report modeling-input/axiom-compatibility.json has
SHA-256

  473825c0fe635e1abc7a734a2035f5df20ed4fe7053403ef2fb6833d7101a016

and checks 2,225 declarations.  It reports no unapproved axiom.  Its only
pending group contains 64 declarations downstream of the absent raw F64
carrier and external operations, exactly the boundary supplied by the authored
model-support layer; the raw extractor output contains no proof placeholder.

External boundary
-----------------

The reproducible command

  python3 .trellis/scripts/pv_modeling.py inspect-native .

returns exactly 24 declarations: fourteen F64 operations, four U64 bit
operations, and six byte/Option/slice/string operations.  Their complete
records are retained in reference/model-evidence/native-boundary.txt and the
structural-operation evidence files.  Tablet/model-support.json has exactly
one exact-signature binding for each declaration.  The whole opaque
`Lemire::from_u64` method has raw declaration SHA-256

  ad172bce0522e7e41bceb8c66a5adff962822ee8a9454dfd59b7019086797ba8

and covers source lines 263:4-266:5, including both the debug assertion and
the conversion.  It is not a cast-only boundary.

Composition and elaboration
---------------------------

After installing all 24 bindings, the exact command

  python3 .trellis/scripts/pv_modeling.py compose-native . --check

returned `matches=true`, `changed=false`, no mismatched files, raw extraction
hash

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9

and equal expected and actual Preamble hashes

  2bf9c25b895e20dd9efe782ae173e2b07b55020eed41a7d9b63b2ae9e1db007c.

The receipt reports 24 bindings, 47 authored definitions, and 170 extracted
modules.  Finally,

  python3 .trellis/scripts/check.py tablet

checked all 236 registered nodes against this composition and exited 0.  This
establishes complete composition and elaboration while leaving the 32 principal
GOAL proofs open for argument development as required.
reference/model-evidence/source-adaptation-delta.diff

Open file

--- upstream/dec2flt/common.rs
+++ crate/dec2flt/common.rs
@@ -14,4 +13,0 @@
-    /// Iteratively parse and consume digits from bytes.
-    ///
-    /// Returns the same bytes with consumed digits being elided. Breaks on invalid digits.
-    fn parse_digits(&self, func: impl FnMut(u8)) -> &Self;
@@ -38,16 +33,0 @@
-    #[inline]
-    fn parse_digits(&self, mut func: impl FnMut(u8)) -> &Self {
-        let mut s = self;
-
-        while let Some((c, rest)) = s.split_first() {
-            let c = c.wrapping_sub(b'0');
-            if c < 10 {
-                func(c);
-                s = rest;
-            } else {
-                break;
-            }
-        }
-
-        s
-    }
@@ -68 +48,4 @@
-#[derive(Debug, Copy, Clone, PartialEq, Eq, Default)]
+// Debug output is not an accepted public or trace observation.  Removing only
+// that implementation preserves the fields, computational derives, and every
+// algorithm operation independently of GOAL truth.
+#[derive(Copy, Clone, PartialEq, Eq, Default)]
--- upstream/dec2flt/decimal.rs
+++ crate/dec2flt/decimal.rs
@@ -28 +28,4 @@
-#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
+// Debug output is absent from the accepted observations.  Removing only that
+// implementation leaves all fields, computational derives, and parser
+// operations unchanged independently of GOAL truth.
+#[derive(Clone, Copy, Default, PartialEq, Eq)]
@@ -56 +59,11 @@
-    pub fn try_fast_path<F: Lemire>(&self) -> Option<F> {
+    pub fn try_fast_path<
+        F: Lemire
+            + core::ops::Div<Output = F>
+            + core::ops::Mul<Output = F>
+            + core::ops::Neg<Output = F>,
+    >(
+        &self,
+    ) -> Option<F> {
+        // `Lemire` already entails these three operator bounds through
+        // `Float`; spelling them directly changes no admitted type.  Charon
+        // needs the direct clauses to resolve each explicit call's `Output`.
@@ -73 +86,3 @@
-                value / F::pow10_fast_path((-self.exponent) as _)
+                // Explicit trait calls preserve Rust arithmetic and resolve
+                // the generic output type that Charon leaves ambiguous.
+                core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
@@ -75 +90 @@
-                value * F::pow10_fast_path(self.exponent as _)
+                core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
@@ -84 +99,4 @@
-            F::from_u64(mantissa) * F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _)
+            core::ops::Mul::mul(
+                F::from_u64(mantissa),
+                F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
+            )
@@ -87 +105,5 @@
-        if self.negative { Some(-value) } else { Some(value) }
+        if self.negative {
+            Some(core::ops::Neg::neg(value))
+        } else {
+            Some(value)
+        }
--- upstream/dec2flt/decimal_seq.rs
+++ crate/dec2flt/decimal_seq.rs
@@ -17 +17,4 @@
-#[derive(Clone, Debug, PartialEq)]
+// Debug output is absent from the accepted observations.  Removing only that
+// implementation preserves the representation, Clone/PartialEq behavior, and
+// every fallback operation independently of GOAL truth.
+#[derive(Clone, PartialEq)]
@@ -176 +179,2 @@
-        while (n >> shift) == 0 {
+        let mut all_zero = false;
+        while (n >> shift) == 0 && !all_zero {
@@ -181 +185,4 @@
-                return;
+                // The source returns here from inside the loop.  Recording the
+                // condition and returning immediately after the loop executes
+                // no intervening operation and preserves the unchanged value.
+                all_zero = true;
@@ -189,0 +197,3 @@
+        if all_zero {
+            return;
+        }
@@ -220,0 +231,51 @@
+// This is exactly the source reverse scan over the already-consumed prefix.
+// It is separate because Aeneas cannot join the loop while `parse_decimal_seq`
+// retains its other slice borrows.  The downward index has the same visitation
+// order and counts precisely the same zero bytes while ignoring dots.
+fn count_trailing_zeros(start: &[u8], consumed_len: usize) -> usize {
+    let mut n_trailing_zeros = 0;
+    let mut i = consumed_len;
+    let mut scanning = true;
+    while i != 0 && scanning {
+        let c = start[i - 1];
+        if c == b'0' || c == b'.' {
+            i -= 1;
+            if c == b'0' {
+                n_trailing_zeros += 1;
+            }
+        } else {
+            scanning = false;
+        }
+    }
+    n_trailing_zeros
+}
+
+// Equivalent to `ByteSlice::parse_digits(|digit| d.try_add_digit(digit))`.
+// An explicit index keeps the closure's mutable borrow out of the enclosing
+// parser context while retaining the same wrapping digit test and updates.
+fn parse_digits_into_seq<'a>(s: &'a [u8], d: &mut DecimalSeq) -> &'a [u8] {
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
+        d.try_add_digit(digit);
+        count += 1;
+    }
+    &s[count..]
+}
+
+// Equivalent to the source exponent `parse_digits` closure.  Bytes after the
+// first nondigit were ignored by the caller, so only the accumulated value is
+// returned; the 0x10000 guard and wrapping digit classification are identical.
+fn parse_decimal_exponent(s: &[u8]) -> i32 {
+    let mut exp_num = 0;
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
+        if exp_num < 0x10000 {
+            exp_num = 10 * exp_num + digit as i32;
+        }
+        count += 1;
+    }
+    exp_num
+}
+
@@ -226,2 +287,5 @@
-    while let Some((&b'0', s_next)) = s.split_first() {
-        s = s_next;
+    // Aeneas rejects the literal-pattern `while let`; this loop performs the
+    // same nonempty check, byte comparison, and one-byte consumption in the
+    // same order, with identical slice bounds.
+    while !s.is_empty() && s[0] == b'0' {
+        s = &s[1..];
@@ -230 +294 @@
-    s = s.parse_digits(|digit| d.try_add_digit(digit));
+    s = parse_digits_into_seq(s, &mut d);
@@ -232,2 +296,2 @@
-    if let Some((b'.', s_next)) = s.split_first() {
-        s = s_next;
+    if !s.is_empty() && s[0] == b'.' {
+        s = &s[1..];
@@ -237,2 +301,4 @@
-            while let Some((&b'0', s_next)) = s.split_first() {
-                s = s_next;
+            // As above, this is the source leading-zero loop written in the
+            // indexed form accepted by Aeneas.
+            while !s.is_empty() && s[0] == b'0' {
+                s = &s[1..];
@@ -250 +316 @@
-        s = s.parse_digits(|digit| d.try_add_digit(digit));
+        s = parse_digits_into_seq(s, &mut d);
@@ -256,8 +322,5 @@
-        let mut n_trailing_zeros = 0;
-        for &c in start[..(start.len() - s.len())].iter().rev() {
-            if c == b'0' {
-                n_trailing_zeros += 1;
-            } else if c != b'.' {
-                break;
-            }
-        }
+        let consumed_len = start.len() - s.len();
+        // Walking an index downward visits exactly the same bytes as
+        // `.iter().rev()` and stops on the same first nonzero nondot byte.  It
+        // also avoids the missing extracted `Iterator::rev` library field.
+        let n_trailing_zeros = count_trailing_zeros(start, consumed_len);
@@ -273 +336,4 @@
-    if let Some((&ch, s_next)) = s.split_first() {
+    // Indexed tests preserve `split_first`'s nonempty guard and byte order but
+    // avoid the loop-context joins Aeneas creates for nested slice patterns.
+    if !s.is_empty() {
+        let ch = s[0];
@@ -275,4 +341,7 @@
-            s = s_next;
-            let mut neg_exp = false;
-            if let Some((&ch, s_next)) = s.split_first() {
-                neg_exp = ch == b'-';
+            s = &s[1..];
+            let mut exp_sign = 1_i32;
+            if !s.is_empty() {
+                let ch = s[0];
+                if ch == b'-' {
+                    exp_sign = -1;
+                }
@@ -280 +349 @@
-                    s = s_next;
+                    s = &s[1..];
@@ -283,7 +352 @@
-            let mut exp_num = 0_i32;
-
-            s.parse_digits(|digit| {
-                if exp_num < 0x10000 {
-                    exp_num = 10 * exp_num + digit as i32;
-                }
-            });
+            let exp_num = parse_decimal_exponent(s);
@@ -291 +354,4 @@
-            d.decimal_point += if neg_exp { -exp_num } else { exp_num };
+            // `exp_num` is bounded by the source's 0x10000 guard, so this
+            // multiplication cannot overflow and equals the original Boolean
+            // choice between `-exp_num` and `exp_num` under checked arithmetic.
+            d.decimal_point += exp_sign * exp_num;
--- upstream/dec2flt/mod.rs
+++ crate/dec2flt/mod.rs
@@ -90 +90 @@
-use common::BiasedFp;
+pub use common::BiasedFp;
@@ -118,4 +118 @@
-    const MAX_EXPONENT_FAST_PATH: i64 = {
-        let log2_5 = f64::consts::LOG2_10 - 1.0;
-        (Self::SIG_TOTAL_BITS as f64 / log2_5) as i64
-    };
+    const MAX_EXPONENT_FAST_PATH: i64;
@@ -128,2 +125 @@
-    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 =
-        Self::MAX_EXPONENT_FAST_PATH + (Self::SIG_TOTAL_BITS as f64 / f64::consts::LOG2_10) as i64;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64;
@@ -144,0 +141,4 @@
+// The f16 Lemire instance is outside the exclusively f64 scope. Disabling it
+// leaves every retained f64 parser/helper/trace body, native decision, checked
+// operation, debug assertion, return value, and accepted observation unchanged.
+#[cfg(any())]
@@ -145,0 +146,7 @@
+    // These are the exact integer results of the upstream compile-time float
+    // formulae for `SIG_TOTAL_BITS = 11`: floor(11/log2(5)) = 4 and
+    // 4 + floor(11/log2(10)) = 7.  Concrete integers avoid unsupported const
+    // float arithmetic without changing either fast-path guard.
+    const MAX_EXPONENT_FAST_PATH: i64 = 4;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 7;
+
@@ -147,3 +154,11 @@
-        #[allow(clippy::use_self)]
-        const TABLE: [f16; 8] = [1e0, 1e1, 1e2, 1e3, 1e4, 0.0, 0.0, 0.];
-        TABLE[exponent & 7]
+        // Each integer is the exact IEEE encoding of the corresponding
+        // upstream table literal; the masked lookup and fallback zeros are
+        // unchanged.  Aeneas cannot translate arrays containing float values.
+        match exponent & 7 {
+            0 => f16::from_bits(0x3C00),
+            1 => f16::from_bits(0x4900),
+            2 => f16::from_bits(0x5640),
+            3 => f16::from_bits(0x63D0),
+            4 => f16::from_bits(0x70E2),
+            _ => f16::from_bits(0),
+        }
@@ -152,0 +168,4 @@
+    // This method is exactly the upstream primitive `u64 as f16` conversion.
+    // Charon extracts the cast, but Aeneas reports it unreachable; making only
+    // this primitive boundary opaque preserves all guards and dispatcher logic.
+    #[charon::opaque]
@@ -158,0 +178,4 @@
+// The f32 Lemire instance is likewise unused by the retained f64
+// specialization, so disabling it cannot affect any retained body or observed
+// f64 execution independently of the correctness GOALs.
+#[cfg(any())]
@@ -159,0 +183,4 @@
+    // Exact upstream formula results for `SIG_TOTAL_BITS = 24`.
+    const MAX_EXPONENT_FAST_PATH: i64 = 10;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 17;
+
@@ -161,4 +188,16 @@
-        #[allow(clippy::use_self)]
-        const TABLE: [f32; 16] =
-            [1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 0., 0., 0., 0., 0.];
-        TABLE[exponent & 15]
+        // Bit constructors preserve the exact table values and masked lookup,
+        // while avoiding Aeneas's unsupported float-valued array constants.
+        match exponent & 15 {
+            0 => f32::from_bits(0x3F80_0000),
+            1 => f32::from_bits(0x4120_0000),
+            2 => f32::from_bits(0x42C8_0000),
+            3 => f32::from_bits(0x447A_0000),
+            4 => f32::from_bits(0x461C_4000),
+            5 => f32::from_bits(0x47C3_5000),
+            6 => f32::from_bits(0x4974_2400),
+            7 => f32::from_bits(0x4B18_9680),
+            8 => f32::from_bits(0x4CBE_BC20),
+            9 => f32::from_bits(0x4E6E_6B28),
+            10 => f32::from_bits(0x5015_02F9),
+            _ => f32::from_bits(0),
+        }
@@ -167,0 +207,4 @@
+    // This is exactly the source `u64 as f32` conversion.  The narrow opaque
+    // boundary is required because Aeneas rejects the primitive cast itself;
+    // its input guard and every caller remain transparent.
+    #[charon::opaque]
@@ -174,0 +218,4 @@
+    // Exact upstream formula results for `SIG_TOTAL_BITS = 53`.
+    const MAX_EXPONENT_FAST_PATH: i64 = 22;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;
+
@@ -176,5 +223,29 @@
-        const TABLE: [f64; 32] = [
-            1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13, 1e14, 1e15,
-            1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22, 0., 0., 0., 0., 0., 0., 0., 0., 0.,
-        ];
-        TABLE[exponent & 31]
+        // These bit patterns are exactly the source table's rounded binary64
+        // literals.  The match is the same masked lookup; it merely keeps float
+        // constants out of Aeneas's unsupported constant interpreter.
+        match exponent & 31 {
+            0 => f64::from_bits(0x3FF0_0000_0000_0000),
+            1 => f64::from_bits(0x4024_0000_0000_0000),
+            2 => f64::from_bits(0x4059_0000_0000_0000),
+            3 => f64::from_bits(0x408F_4000_0000_0000),
+            4 => f64::from_bits(0x40C3_8800_0000_0000),
+            5 => f64::from_bits(0x40F8_6A00_0000_0000),
+            6 => f64::from_bits(0x412E_8480_0000_0000),
+            7 => f64::from_bits(0x4163_12D0_0000_0000),
+            8 => f64::from_bits(0x4197_D784_0000_0000),
+            9 => f64::from_bits(0x41CD_CD65_0000_0000),
+            10 => f64::from_bits(0x4202_A05F_2000_0000),
+            11 => f64::from_bits(0x4237_4876_E800_0000),
+            12 => f64::from_bits(0x426D_1A94_A200_0000),
+            13 => f64::from_bits(0x42A2_309C_E540_0000),
+            14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
+            15 => f64::from_bits(0x430C_6BF5_2634_0000),
+            16 => f64::from_bits(0x4341_C379_37E0_8000),
+            17 => f64::from_bits(0x4376_3457_85D8_A000),
+            18 => f64::from_bits(0x43AB_C16D_674E_C800),
+            19 => f64::from_bits(0x43E1_58E4_6091_3D00),
+            20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
+            21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
+            22 => f64::from_bits(0x4480_F0CF_064D_D592),
+            _ => f64::from_bits(0),
+        }
@@ -183,0 +255,8 @@
+    // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
+    // `charon::opaque` makes this entire asserted conversion external: both the
+    // unchanged `debug_assert!` and the unchanged cast below are in the opaque
+    // body. The callers, their fast-path guards, and their surrounding
+    // computation remain mechanically visible. A corresponding model binding
+    // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
+    // exact binary64 conversion at or below that bound.
+    #[charon::opaque]
@@ -209,5 +288,80 @@
-/// Converts a decimal string into a floating point number.
-#[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
-pub fn dec2flt<F: Lemire>(s: &str) -> Result<F, ParseFloatError> {
-    let mut s = s.as_bytes();
-    let Some(&c) = s.first() else { return Err(pfe_empty()) };
+/// Observable control-flow record for a dispatcher execution.
+///
+/// These variants add no decisions to the conversion: each stores values
+/// already computed at the corresponding source branch.  In particular, the
+/// first component returned by `dec2flt_with_trace` is the ordinary parser
+/// result, so projecting it preserves every public source observation without
+/// assuming any correctness goal.
+pub enum Dec2FltTrace<'a, F> {
+    /// The original string was empty; no helper was called.
+    EmptyInput,
+    /// Removing one lexical sign left an empty body; no helper was called.
+    SignOnly { body: &'a [u8], negative: bool },
+    /// Both lexical helpers returned `None`; no raw pair was selected.
+    Invalid {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        parse_inf_nan_result: Option<F>,
+    },
+    /// The special helper supplied the directly returned value; no pair was selected.
+    Special {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        parse_inf_nan_result: Option<F>,
+        result: F,
+    },
+    /// The ordinary native shortcut supplied the directly returned value.
+    FastPath {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        fast_path_input: decimal::Decimal,
+        fast_path_result: Option<F>,
+        result: F,
+    },
+    /// The integer/slow path selected and assembled one raw pair.
+    Assembled(Dec2FltAssemblyTrace<'a, F>),
+}
+
+/// Full observation record for the dispatcher path that performs final assembly.
+pub struct Dec2FltAssemblyTrace<'a, F> {
+    pub body: &'a [u8],
+    pub negative: bool,
+    pub parse_number_result: Option<decimal::Decimal>,
+    pub fast_path_input: decimal::Decimal,
+    pub fast_path_result: Option<F>,
+    pub first_compute_exponent: i64,
+    pub first_compute_mantissa: u64,
+    pub first_compute_result: BiasedFp,
+    pub second_compute_guard: bool,
+    pub second_compute_exponent: Option<i64>,
+    pub second_compute_mantissa: Option<u64>,
+    pub second_compute_result: Option<BiasedFp>,
+    pub second_equals_first: Option<bool>,
+    pub forced_deferral: bool,
+    pub post_comparison_pair: BiasedFp,
+    pub slow_path_guard: bool,
+    pub slow_path_result: Option<BiasedFp>,
+    pub selected_pair: BiasedFp,
+    pub assembled_word: u64,
+    pub assembly_result: F,
+    pub lexical_sign_applied: bool,
+    pub result: F,
+}
+
+/// Run the actual dispatcher while retaining its approved internal observations.
+pub fn dec2flt_with_trace<
+    'a,
+    F: Lemire
+        + core::ops::Div<Output = F>
+        + core::ops::Mul<Output = F>
+        + core::ops::Neg<Output = F>,
+>(
+    s: &'a str,
+) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
+    let mut body = s.as_bytes();
+    let Some(&c) = body.first() else {
+        return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
+    };
@@ -216 +370 @@
-        s = &s[1..];
+        body = &body[1..];
@@ -218,2 +372,2 @@
-    if s.is_empty() {
-        return Err(pfe_invalid());
+    if body.is_empty() {
+        return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
@@ -222 +376,2 @@
-    let mut num = match parse_number(s) {
+    let parse_number_result = parse_number(body);
+    let parsed = match parse_number_result {
@@ -224,2 +379,24 @@
-        None if let Some(value) = parse_inf_nan(s, negative) => return Ok(value),
-        None => return Err(pfe_invalid()),
+        None => {
+            let parse_inf_nan_result = parse_inf_nan(body, negative);
+            return match parse_inf_nan_result {
+                Some(value) => (
+                    Ok(value),
+                    Dec2FltTrace::Special {
+                        body,
+                        negative,
+                        parse_number_result,
+                        parse_inf_nan_result,
+                        result: value,
+                    },
+                ),
+                None => (
+                    Err(pfe_invalid()),
+                    Dec2FltTrace::Invalid {
+                        body,
+                        negative,
+                        parse_number_result,
+                        parse_inf_nan_result,
+                    },
+                ),
+            };
+        }
@@ -226,0 +404,2 @@
+
+    let mut num = parsed;
@@ -229,2 +408,13 @@
-        if let Some(value) = num.try_fast_path::<F>() {
-            return Ok(value);
+        let fast_path_result = num.try_fast_path::<F>();
+        if let Some(value) = fast_path_result {
+            return (
+                Ok(value),
+                Dec2FltTrace::FastPath {
+                    body,
+                    negative,
+                    parse_number_result,
+                    fast_path_input: num,
+                    fast_path_result,
+                    result: value,
+                },
+            );
@@ -234,15 +424,27 @@
-    // If significant digits were truncated, then we can have rounding error
-    // only if `mantissa + 1` produces a different result. We also avoid
-    // redundantly using the Eisel-Lemire algorithm if it was unable to
-    // correctly round on the first pass.
-    let mut fp = compute_float::<F>(num.exponent, num.mantissa);
-    if num.many_digits
-        && fp.p_biased >= 0
-        && fp != compute_float::<F>(num.exponent, num.mantissa + 1)
-    {
-        fp.p_biased = -1;
-    }
-    // Unable to correctly round the float using the Eisel-Lemire algorithm.
-    // Fallback to a slower, but always correct algorithm.
-    if fp.p_biased < 0 {
-        fp = parse_long_mantissa::<F>(s);
+    let first_compute_exponent = num.exponent;
+    let first_compute_mantissa = num.mantissa;
+    let first_compute_result = compute_float::<F>(first_compute_exponent, first_compute_mantissa);
+    let mut fp = first_compute_result;
+
+    // This expands the source short-circuit conjunction without moving the
+    // checked `mantissa + 1`: that addition and the second helper call still
+    // occur exactly when `many_digits && fp.p_biased >= 0`.
+    let second_compute_guard = num.many_digits && fp.p_biased >= 0;
+    let mut second_compute_exponent = None;
+    let mut second_compute_mantissa = None;
+    let mut second_compute_result = None;
+    let mut second_equals_first = None;
+    let mut forced_deferral = false;
+    if second_compute_guard {
+        let exponent = num.exponent;
+        let mantissa = num.mantissa + 1;
+        let second = compute_float::<F>(exponent, mantissa);
+        let equal = fp == second;
+        second_compute_exponent = Some(exponent);
+        second_compute_mantissa = Some(mantissa);
+        second_compute_result = Some(second);
+        second_equals_first = Some(equal);
+        if !equal {
+            fp.p_biased = -1;
+            forced_deferral = true;
+        }
@@ -249,0 +452 @@
+    let post_comparison_pair = fp;
@@ -251,5 +454,69 @@
-    let mut float = biased_fp_to_float::<F>(fp);
-    if num.negative {
-        float = -float;
-    }
-    Ok(float)
+    let slow_path_guard = fp.p_biased < 0;
+    let mut slow_path_result = None;
+    if slow_path_guard {
+        // The exact slow-path input is the trace's common `body`; the guard
+        // records whether this call occurred, avoiding a duplicate live slice
+        // reference that Aeneas cannot join across this branch.
+        let replacement = parse_long_mantissa::<F>(body);
+        slow_path_result = Some(replacement);
+        fp = replacement;
+    }
+
+    let selected_pair = fp;
+    // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
+    // it neither changes the selected pair nor introduces a new branch or call.
+    let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
+    let assembly_result = biased_fp_to_float::<F>(fp);
+    let lexical_sign_applied = num.negative;
+    let result = if lexical_sign_applied {
+        core::ops::Neg::neg(assembly_result)
+    } else {
+        assembly_result
+    };
+
+    (
+        Ok(result),
+        Dec2FltTrace::Assembled(Dec2FltAssemblyTrace {
+            body,
+            negative,
+            parse_number_result,
+            fast_path_input: num,
+            fast_path_result: None,
+            first_compute_exponent,
+            first_compute_mantissa,
+            first_compute_result,
+            second_compute_guard,
+            second_compute_exponent,
+            second_compute_mantissa,
+            second_compute_result,
+            second_equals_first,
+            forced_deferral,
+            post_comparison_pair,
+            slow_path_guard,
+            slow_path_result,
+            selected_pair,
+            assembled_word,
+            assembly_result,
+            lexical_sign_applied,
+            result,
+        }),
+    )
+}
+
+/// Converts a decimal string into a floating point number.
+#[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
+pub fn dec2flt<
+    F: Lemire
+        + core::ops::Div<Output = F>
+        + core::ops::Mul<Output = F>
+        + core::ops::Neg<Output = F>,
+>(
+    s: &str,
+) -> Result<F, ParseFloatError> {
+    // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
+    // clause admits exactly the same instances and lets Charon resolve the
+    // explicit, source-equivalent final negation.
+    // The public function is now exactly the result projection of the single
+    // instrumented implementation.  No conversion step is duplicated, and
+    // discarding the trace cannot affect Rust evaluation or the returned bits.
+    dec2flt_with_trace::<F>(s).0
--- upstream/dec2flt/parse.rs
+++ crate/dec2flt/parse.rs
@@ -34,3 +34,6 @@
-        let num = s.read_u64();
-        if is_8digits(num) {
-            x = x.wrapping_mul(1_0000_0000).wrapping_add(parse_8digits(num));
+        // `chunk` is the source's local `num` under a nonconflicting name.
+        // The rename has no Rust effect and prevents the Lean backend from
+        // resolving `num.imp...` as a field projection on this local value.
+        let chunk = s.read_u64();
+        if is_8digits(chunk) {
+            x = x.wrapping_mul(1_0000_0000).wrapping_add(parse_8digits(chunk));
@@ -43 +46,6 @@
-    s = s.parse_digits(|digit| {
+    // This is the removed `ByteSlice::parse_digits` call specialized to its
+    // only parser use: identical wrapping digit classification, accumulator
+    // update, and first-nondigit stop, without an unsupported closure state.
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
@@ -45 +53,3 @@
-    });
+        count += 1;
+    }
+    s = &s[count..];
@@ -71,0 +82,38 @@
+// This is the source prefix scan isolated from `parse_partial_number` because
+// Aeneas cannot join its loop context while the enclosing function's other
+// slice borrows are live.  It visits the same bytes, in order, and performs
+// the identical checked `isize` subtraction for every leading dot or zero.
+fn adjust_many_digit_count(start: &[u8], mut n_digits: isize) -> isize {
+    let mut scan_index = 0;
+    let mut scanning = true;
+    while scan_index < start.len() && scanning {
+        let c = start[scan_index];
+        if c == b'.' || c == b'0' {
+            n_digits -= c.saturating_sub(b'0' - 1) as isize;
+            scan_index += 1;
+        } else {
+            scanning = false;
+        }
+    }
+    n_digits
+}
+
+// This is the source many-digit retry as a transparent helper.  Isolating its
+// rebased slices avoids an Aeneas context-join failure; both calls, the branch,
+// the offset arithmetic, and the explicit-exponent addition are unchanged.
+fn parse_many_digits(start: &[u8], int_end: &[u8], exp_number: i64) -> (u64, i64) {
+    let mut mantissa = 0;
+    let mut s = start;
+    try_parse_19digits(&mut s, &mut mantissa);
+    let mut exponent = if mantissa >= MIN_19DIGIT_INT {
+        int_end.offset_from(s)
+    } else {
+        s = &s[1..];
+        let before = s;
+        try_parse_19digits(&mut s, &mut mantissa);
+        -s.offset_from(before)
+    } as i64;
+    exponent += exp_number;
+    (mantissa, exponent)
+}
+
@@ -86,3 +134,10 @@
-    if matches!(s.first(), Some(&x) if x.is_ascii_digit()) {
-        *s_ref = s.parse_digits(|digit| {
-            // no overflows here, saturate well before overflow
+    // `matches!` with a guarded slice pattern triggers an Aeneas internal
+    // error.  This short-circuit test reads the same first byte exactly when
+    // it exists and therefore preserves both acceptance and evaluation order.
+    if !s.is_empty() && s[0].is_ascii_digit() {
+        // Specialized form of the source digit callback.  `count` advances
+        // exactly once per accepted byte and the bound keeps every checked
+        // exponent operation in the same safe range as the source.
+        let mut count = 0;
+        while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+            let digit = s[count].wrapping_sub(b'0');
@@ -92 +147,3 @@
-        });
+            count += 1;
+        }
+        *s_ref = &s[count..];
@@ -155,9 +212,5 @@
-    let mut p = start;
-    while let Some((&c, p_next)) = p.split_first() {
-        if c == b'.' || c == b'0' {
-            n_digits -= c.saturating_sub(b'0' - 1) as isize;
-            p = p_next;
-        } else {
-            break;
-        }
-    }
+    // The indexed loop is equivalent to the source `while let split_first`:
+    // it tests nonemptiness before the same byte read and consumes one byte
+    // only on the two source continuation cases.  This avoids Aeneas's loop
+    // context mismatch without changing checked subtraction or slice bounds.
+    n_digits = adjust_many_digit_count(start, n_digits);
@@ -167,14 +220,3 @@
-        mantissa = 0;
-        let mut s = start;
-        try_parse_19digits(&mut s, &mut mantissa);
-        exponent = if mantissa >= MIN_19DIGIT_INT {
-            // big int
-            int_end.offset_from(s)
-        } else {
-            s = &s[1..];
-            let before = s;
-            try_parse_19digits(&mut s, &mut mantissa);
-            -s.offset_from(before)
-        } as i64;
-        // add back the explicit part
-        exponent += exp_number;
+        let retried = parse_many_digits(start, int_end, exp_number);
+        mantissa = retried.0;
+        exponent = retried.1;
--- upstream/dec2flt/slow.rs
+++ crate/dec2flt/slow.rs
@@ -48,0 +49 @@
+    let mut loop_result = None;
@@ -50 +51 @@
-    while d.decimal_point > 0 {
+    while d.decimal_point > 0 && loop_result.is_none() {
@@ -55 +56,7 @@
-            return fp_zero;
+            // The source returns `fp_zero` at this exact point.  Storing that
+            // result and terminating the loop performs no later loop update;
+            // the return below is therefore behavior-identical and avoids an
+            // Aeneas restriction on returns from nested loop translation.
+            loop_result = Some(fp_zero);
+        } else {
+            exp2 += shift as i32;
@@ -57 +64,3 @@
-        exp2 += shift as i32;
+    }
+    if let Some(result) = loop_result {
+        return result;
@@ -60 +69 @@
-    while d.decimal_point <= 0 {
+    while d.decimal_point <= 0 && loop_result.is_none() {
@@ -72 +81,6 @@
-            return fp_inf;
+            // This records the source's immediate `fp_inf` return.  Since the
+            // guarded loop exits before the exponent update, moving the return
+            // just below the loop preserves every state transition.
+            loop_result = Some(fp_inf);
+        } else {
+            exp2 -= shift as i32;
@@ -74 +88,3 @@
-        exp2 -= shift as i32;
+    }
+    if let Some(result) = loop_result {
+        return result;
--- upstream/traits.rs
+++ crate/traits.rs
@@ -11 +11 @@
-use crate::{f64, fmt, ops};
+use crate::{f64, ops};
@@ -14 +14,5 @@
-pub trait CastInto<T: Copy>: Copy {
+// All uses are through `Int`, which independently requires `Self: Copy`, and
+// every implementation here is a primitive Copy type.  Removing that redundant
+// supertrait changes no call or value but prevents Aeneas from emitting two
+// identically named `Copy` fields for `Self` and `T` in the Lean structure.
+pub trait CastInto<T: Copy> {
@@ -18,0 +23,4 @@
+// The accepted observations contain no formatting behavior.  Removing the
+// `Debug` supertrait changes neither the concrete primitive integer instances
+// nor any operation used by the algorithms, so it preserves the f64
+// specialization and every inventoried observation independently of GOAL truth.
@@ -23 +30,0 @@
-    + fmt::Debug
@@ -52 +59,6 @@
-int!(u16, u32, u64);
+// Only `u64` is the associated integer of the retained `f64` specialization.
+// The removed `u16`/`u32` instances served only the excluded `f16`/`f32`
+// implementations, so their removal changes no f64 public, helper, or trace
+// body, native decision, checked arithmetic, debug assertion, return value, or
+// accepted observation.
+int!(u64);
@@ -55,0 +68,6 @@
+// Formatting is outside every accepted public and trace observation. `Add`,
+// equality, ordering, default construction, and cloning are also unused by all
+// retained generic bodies; only `Copy`, `Mul`, `Div`, and `Neg` are required.
+// Removing those unused requirements admits the same f64 implementation and
+// changes no f64 body, native decision, checked arithmetic, debug assertion,
+// return value, or trace observation, independently of any GOAL's truth.
@@ -61,6 +78,0 @@
-    + ops::Add<Output = Self>
-    + fmt::Debug
-    + PartialEq
-    + PartialOrd
-    + Default
-    + Clone
@@ -134,4 +146 @@
-    const LARGEST_POWER_OF_TEN: i32 = {
-        let largest_pow2 = Self::EXP_BIAS + 1;
-        pow2_to_pow10(largest_pow2 as i64) as i32
-    };
+    const LARGEST_POWER_OF_TEN: i32;
@@ -175,19 +184 @@
-    fn integer_decode(self) -> (u64, i16, i8) {
-        let bits = self.to_bits();
-        let sign: i8 = if bits >> (Self::BITS - 1) == Self::Int::ZERO { 1 } else { -1 };
-        let mut exponent: i16 = ((bits & Self::EXP_MASK) >> Self::SIG_BITS).cast();
-        let mantissa = if exponent == 0 {
-            (bits & Self::SIG_MASK) << 1
-        } else {
-            (bits & Self::SIG_MASK) | (Self::Int::ONE << Self::SIG_BITS)
-        };
-        // Exponent bias + mantissa shift
-        exponent -= (Self::EXP_BIAS + Self::SIG_BITS) as i16;
-        (mantissa.into(), exponent, sign)
-    }
-}
-
-/// Solve for `b` in `10^b = 2^a`
-const fn pow2_to_pow10(a: i64) -> i64 {
-    let res = (a as f64) / f64::consts::LOG2_10;
-    res as i64
+    fn integer_decode(self) -> (u64, i16, i8);
@@ -196,0 +188,4 @@
+// The f16 implementation is outside the exclusively f64 scope. Disabling it
+// leaves every retained f64 public/helper/trace body and all of its decisions,
+// checked operations, assertions, return values, and observations unchanged.
+#[cfg(any())]
@@ -203 +198,4 @@
-    const NEG_NAN: Self = -Self::NAN;
+    // `from_bits` produces exactly the bit pattern obtained by negating the
+    // upstream canonical NaN.  This avoids Aeneas's unsupported float unop
+    // while preserving the constant, including its sign and payload bits.
+    const NEG_NAN: Self = f16::from_bits(0xFE00);
@@ -211,0 +210,2 @@
+    // Exact value of trunc(16 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 4;
@@ -223,0 +224,3 @@
+// `FloatExt for f16` is used only by the excluded f16 specialization; it is
+// irrelevant to all retained f64 computation and observations listed above.
+#[cfg(any())]
@@ -228,0 +232,16 @@
+
+    // Specializing the upstream default removes only unsupported associated-
+    // integer operator resolution; these are the same bit operations with
+    // `Self::Int = u16` and the same exponent-bias subtraction.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 15 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 10) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u16 << 10)
+        };
+        exponent -= 15 + 10;
+        (mantissa as u64, exponent, sign)
+    }
@@ -230,0 +250,3 @@
+// The f32 implementation is outside the exclusively f64 scope. Disabling it
+// does not alter any retained f64 computation, assertion, result, or trace.
+#[cfg(any())]
@@ -237 +259,3 @@
-    const NEG_NAN: Self = -f32::NAN;
+    // Bit-identical to the upstream `-f32::NAN`, without the unsupported
+    // compile-time float negation.
+    const NEG_NAN: Self = f32::from_bits(0xFFC0_0000);
@@ -245,0 +270,2 @@
+    // Exact value of trunc(128 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 38;
@@ -256,0 +283,3 @@
+// `FloatExt for f32` likewise has no use in any retained f64 body or accepted
+// observation and is disabled without changing f64 execution.
+#[cfg(any())]
@@ -261,0 +291,16 @@
+
+    // This is the upstream default after substituting `Self::Int = u32`;
+    // concreteness is needed only because Charon cannot resolve the generic
+    // associated-integer shifts and bit operators for Aeneas.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 31 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 23) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u32 << 23)
+        };
+        exponent -= 127 + 23;
+        (mantissa as u64, exponent, sign)
+    }
@@ -270 +315,3 @@
-    const NEG_NAN: Self = -Self::NAN;
+    // Bit-identical to the upstream `-f64::NAN`, without the unsupported
+    // compile-time float negation.
+    const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);
@@ -278,0 +326,2 @@
+    // Exact value of trunc(1024 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 308;
@@ -293,0 +343,16 @@
+    }
+
+    // This is the upstream default after substituting `Self::Int = u64`;
+    // it preserves every decoded field while avoiding unsupported generic
+    // associated-integer operator resolution.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 63 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 52) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u64 << 52)
+        };
+        exponent -= 1023 + 52;
+        (mantissa, exponent, sign)
reference/model-evidence/source-adaptation-delta.txt

Open file

Primary inventory and preservation analysis of the upstream-to-crate delta
============================================================================

Method and complete file inventory
----------------------------------

This record compares the supplied files in upstream/ with the frozen adapted
crate/.  It treats the sources and their control flow as primary evidence; it
does not use a prior route decision as semantic proof and makes no assertion
that a supplied GOAL is true.  The exact raw aggregate diff is retained as
reference/model-evidence/source-adaptation-delta.diff.  It was generated from
the repository root by this exact command (the for-list is the complete
LC_ALL=C-sorted upstream inventory, identical files contribute zero bytes,
labels are literal root-relative paths, hunks are concatenated in listed
order, status 1 is accepted as diff's expected ``files differ'' status, and
every other nonzero status aborts):

  export LC_ALL=C
  artifact=reference/model-evidence/source-adaptation-delta.diff
  : > "$artifact"
  saw_difference=0
  for supplied in \
    dec2flt/common.rs \
    dec2flt/decimal.rs \
    dec2flt/decimal_seq.rs \
    dec2flt/fpu.rs \
    dec2flt/lemire.rs \
    dec2flt/mod.rs \
    dec2flt/parse.rs \
    dec2flt/slow.rs \
    dec2flt/table.rs \
    traits.rs
  do
    if diff --unified=0 --label "upstream/$supplied" --label "crate/$supplied" \
        "upstream/$supplied" "crate/$supplied" >> "$artifact"; then
      :
    else
      diff_status=$?
      if [ "$diff_status" -ne 1 ]; then
        exit "$diff_status"
      fi
      saw_difference=1
    fi
  done
  test "$saw_difference" -eq 1
  sha256sum "$artifact"

The command used GNU diffutils 3.12 at /usr/bin/diff, whose SHA-256 is
dfab4814355b488934cf8c63ce96d94184ea3d9b5e4f9be50278ad8e080168f5.
Its actual final output was:

  fdf88cabfe40ce962d2bd5eda22eb5b3cbbf8a936a81b896e98698bf472cd0e4  reference/model-evidence/source-adaptation-delta.diff

The retained byte stream is 38,813 bytes and 933 lines.  The complete source
inventory and independently reproduced file hashes are:

  supplied path                 upstream SHA-256                                                   crate SHA-256                                                      status
  dec2flt/common.rs             fc64094721ff23e08fcba013154d04dec3fe986cae5ffd73a20f86049980aace   4c4be815335a7b176527eb1345e662890caa48181a0a4f814594339016cab18e   changed
  dec2flt/decimal.rs            3c164785e1bc3f3b48aa9c212dd6c4ab535fe828523af9fa584df4c7b1e60e0d   633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb   changed
  dec2flt/decimal_seq.rs        c0c1c6028e3f57cefc3de7635a94788e9180f5ebcedc7a334ec8dbac786ec788   4aa4ecf9f31970033093d73238d4f2c72d433639bbe467c0741b185807380bd9   changed
  dec2flt/fpu.rs                16cf9ec154d477ab3d4184a01fb4b9ed7c59f0228cc55589d393c40a61b19d8f   16cf9ec154d477ab3d4184a01fb4b9ed7c59f0228cc55589d393c40a61b19d8f   identical
  dec2flt/lemire.rs             fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1   fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1   identical
  dec2flt/mod.rs                7198e238c554b692405537a446b3526ad66805ec2900cd0e299f10c51402a44a   ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d   changed
  dec2flt/parse.rs              9daf21ab9445a84552535152f376eef8c30f3d5827296c0645f5952d3b22bbf1   50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f   changed
  dec2flt/slow.rs               43e7aba32d7431bbf0e1bbcb4c334eaffb23eb66891c7e45abe799c5235cc0d2   93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485   changed
  dec2flt/table.rs              6eb59023784bd84cb6fb074c70da8a99bef72bc2a2ea179b0da457ca1ee00abb   6eb59023784bd84cb6fb074c70da8a99bef72bc2a2ea179b0da457ca1ee00abb   identical
  traits.rs                     66a02c44d72dfcc3ddae7e34a290e390dabaf98c5911b283d2d97f2f0075a44e   9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf   changed

The standalone package adds four files having no supplied counterpart:

  crate/Cargo.toml              2040ce5dc92c51b5245113f97682b692b876aa57708b5c7c483425ba152943c8
  crate/lib.rs                  1df2b8bcb2f52068d05a6343923716d0ef4475abdef34a0de3fe7cb8dc2ba95b
  crate/num/mod.rs              d9ac4f964d124bd4660914dc4c80bbb14f48d7851f9a8edc71a0931e9fce37b3
  crate/num/imp/mod.rs          df09b97393e97b23b0a558c2fcbbf4e75dd9d68338f1e83f168bab80a37a31f1

Thus fpu.rs, lemire.rs, and the complete 671-line table.rs, including their
algorithmic constants and tables, are byte-identical.  The following sections
account for every other file and every changed hunk.

Namespace and error shell
-------------------------

crate/lib.rs:1-12 is a no_std crate root that re-exports core::f64 and
core::ops and introduces the same num module path expected by the supplied
slice.  crate/num/imp/mod.rs:1-10 uses path attributes to place traits.rs and
dec2flt/mod.rs at core::num::imp-like module names.  These declarations add no
wrapper call or computation.  crate/num/mod.rs:1 re-exports
core::num::FpCategory.  crate/num/mod.rs:3-26 defines a local private
FloatErrorKind and ParseFloatError shell so the standalone package can name
the parser's error type.  The pursued GOALs observe only panic versus normal
return and, on normal return, the outer Result's Ok/Err discriminant; they do
not observe the private error kind or formatting.  No identity is asserted
between this local shell and an unpinned core error payload.
crate/Cargo.toml:5-22 selects the package, empty default features, and
checked-overflow profiles.  The configuration and fresh build are independently
reproduced in setup-reproduction.txt.

Visibility, derives, and bounds
-------------------------------

upstream/dec2flt/mod.rs:90 versus crate/dec2flt/mod.rs:90 changes only the
visibility of the existing BiasedFp import so a goal-facing caller can name the
same type.  It changes neither layout nor execution.

upstream/dec2flt/common.rs:68 and decimal.rs:28 and decimal_seq.rs:17 include
Debug derives.  The corresponding crate spans common.rs:48-51,
decimal.rs:28-31, and decimal_seq.rs:17-20 remove only Debug.  Copy, Clone,
PartialEq, Eq, and Default used by computation remain where present, and no
accepted observation formats these records.

upstream/traits.rs:11-52 versus crate/traits.rs:11-64 removes formatting from
Int, removes a redundant Copy supertrait from CastInto, and instantiates Int
only for u64.  Every call of CastInto is through Int, which still requires
Copy; all retained concrete values are primitive Copy values.  The removed
u16/u32 instances are associated only with the disabled f16/f32 formats.

upstream/traits.rs:55-76 versus crate/traits.rs:67-80 removes Add, Debug,
PartialEq, PartialOrd, Default, and Clone from Float while retaining Copy, Mul,
Div, and Neg.  A search of all retained generic bodies shows no call using a
removed operation.  upstream/dec2flt/decimal.rs:56-89 versus
crate/dec2flt/decimal.rs:59-111 and upstream/dec2flt/mod.rs:209-256 versus
crate/dec2flt/mod.rs:352-520 add direct Div, Mul, and Neg bounds already implied
by Lemire -> Float, and replace operator notation with calls to those same
traits.  Rust desugars the original /, *, and unary - to these trait calls, so
the operands, call order, result, and admitted f64 specialization are unchanged.

Exact constants, tables, and specialized decoding
-------------------------------------------------

The source formulae and decimal-literal table were evaluated directly by the
pinned rustc using the retained source
reference/model-evidence/adaptation-constants-probe.rs.  The command was:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/adaptation-constants-probe.rs
  B=.trellis/scratch/adaptation-constants-probe
  "$R" --edition 2024 --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$P" "$B"
  "$B"

The source hash was
b5a4a2cba0c08053cb9a816adb1ba5dbd160bf3928bdf5ccf56b7ae83aaa2aa5
and the resulting executable hash was
b02d2f6deb675f17d0dbdc22e57a67d7692689f7a2b0d7b125556c35c4b8a4a5.
Raw output was:

  largest_power_of_ten=308
  max_exponent_fast_path=22
  max_exponent_disguised=37
  neg_nan=fff8000000000000
  pow10_0=3ff0000000000000
  pow10_1=4024000000000000
  pow10_2=4059000000000000
  pow10_3=408f400000000000
  pow10_4=40c3880000000000
  pow10_5=40f86a0000000000
  pow10_6=412e848000000000
  pow10_7=416312d000000000
  pow10_8=4197d78400000000
  pow10_9=41cdcd6500000000
  pow10_10=4202a05f20000000
  pow10_11=42374876e8000000
  pow10_12=426d1a94a2000000
  pow10_13=42a2309ce5400000
  pow10_14=42d6bcc41e900000
  pow10_15=430c6bf526340000
  pow10_16=4341c37937e08000
  pow10_17=4376345785d8a000
  pow10_18=43abc16d674ec800
  pow10_19=43e158e460913d00
  pow10_20=4415af1d78b58c40
  pow10_21=444b1ae4d6e2ef50
  pow10_22=4480f0cf064dd592

upstream/traits.rs:134-137 computes LARGEST_POWER_OF_TEN through a Float
default, and upstream/traits.rs:175-193 gives the generic integer_decode and
the helper used by that constant.  crate/traits.rs:146 makes the constant an
associated requirement; crate/traits.rs:309-359 supplies the retained f64
values and decoder after substituting BITS=64, SIG_BITS=52, EXP_BIAS=1023,
EXPONENT_MASK, MANTISSA_MASK, and the u64 operations.  Each source expression
then becomes exactly the corresponding crate expression: sign is bits>>63,
exponent is (bits & mask)>>52 cast to i16, the subnormal mantissa is shifted
once, the normal mantissa receives 1<<52, and 1023+52 is subtracted.  The
resulting tuple and every bit operation are unchanged.  The probe output above
shows that the computed f64 LARGEST_POWER_OF_TEN is 308 and that the source
-f64::NAN word is fff8000000000000, exactly crate/traits.rs:315-327; the
independent binary64-boundary.txt record fixes the masks and primitive bit
semantics used by the decoder.

upstream/dec2flt/mod.rs:118-129 gives the two Lemire default formulae.
crate/dec2flt/mod.rs:115-128 makes them associated requirements, and the
retained f64 instance at crate/dec2flt/mod.rs:217-220 supplies 22 and 37, the
integer results of the two source formulae for 53 significand bits.
upstream/dec2flt/mod.rs:176-181 indexes a 32-entry f64 table with exponent&31.
crate/dec2flt/mod.rs:222-251 performs the same masked selection using from_bits:
cases 0 through 22 are the exact pinned binary64 words printed above for 1e0 through 1e22 and
all other cases return positive zero, as did entries 23 through 31.  The full
word list and the pinned float semantics are recorded in binary64-boundary.txt.
The analogous f16/f32 replacements at crate/dec2flt/mod.rs:145-215 and
crate/traits.rs:187-307 lie under cfg(any()) and cannot enter this build.

Whole-function from_u64 opacity
-------------------------------

upstream/dec2flt/mod.rs:184-188 and crate/dec2flt/mod.rs:263-266 have the same
f64 body: the same enabled debug_assert that v <= 1<<53, followed by the same
primitive `v as f64` cast.  The sole semantic-boundary annotation is
#[charon::opaque] at crate line 262, syntactically attached to the function
item.  It therefore hides the entire from_u64 body from translation: neither
the debug assertion nor the cast is transparent in the extraction.  The
callers, their guards, and the surrounding native-path computation remain
transparent.  The fresh external inventory contains the whole method as the
single external F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64.  Its
separately reviewed ModelF64FromU64 binding supplies exactly successful integer
conversion for v <= 2^53 and assertion failure otherwise.

Digit scans, slice patterns, and helper extraction
-------------------------------------------------

upstream/dec2flt/common.rs:14-53 supplies ByteSlice::parse_digits: repeatedly
split_first, wrapping-subtract ASCII zero, invoke the closure exactly when the
result is below 10, consume that byte, and stop at the first other byte.
crate/dec2flt/common.rs:11-36 removes only this method.  Its complete set of
uses is replaced as follows.

* upstream/dec2flt/parse.rs:31-48 versus crate/dec2flt/parse.rs:31-58 keeps the
  eight-byte loop, wrapping multiply/add, and then performs the same digit test,
  accumulator update, and one-byte progress with an index.  The local rename
  num to chunk is lexical only.
* upstream/dec2flt/parse.rs:83-97 versus crate/dec2flt/parse.rs:131-153 expands
  matches!/parse_digits into the same nonempty first-digit guard, the same
  0x10000 bounded exponent update, the same first-nondigit suffix, and the same
  final sign.  The bound is tested before each checked multiply and addition,
  exactly as in the closure.
* upstream/dec2flt/decimal_seq.rs:220-295 versus
  crate/dec2flt/decimal_seq.rs:231-359 extracts parse_digits_into_seq,
  parse_decimal_exponent, and count_trailing_zeros.  The digit helpers use the
  same wrapping byte test, forward order, try_add_digit state transition, and
  0x10000 exponent guard.  The reverse helper visits indices consumed_len-1
  down to zero, increments only for ASCII zero, ignores a decimal point, and
  stops at the first other byte, exactly the original iter().rev() loop.

In all these replacements, indexing occurs only under count<len or !is_empty,
so it has the same bounds as split_first.  Slicing advances by exactly the same
one or eight bytes.  No wrapping operation is replaced by checked arithmetic,
and no checked source operation is replaced by wrapping arithmetic.

upstream/dec2flt/parse.rs:155-181 versus crate/dec2flt/parse.rs:82-119 and
212-226 moves two loops into adjust_many_digit_count and parse_many_digits.
The prefix helper visits the same start bytes in the same order, performs the
same saturating_sub and checked isize subtraction, and stops on the same byte.
The retry helper makes the same first 19-digit call, tests the same threshold,
makes the same one-byte rebase and second call in the alternate branch,
computes the same offset with the same sign, casts it to i64, and performs the
same checked addition of exp_number last.  Thus any large-input panic is
preserved rather than excluded.

upstream/dec2flt/decimal_seq.rs:226-295 versus
crate/dec2flt/decimal_seq.rs:284-359 replaces literal split_first patterns by
nonempty index tests.  The leading-zero scans, optional decimal point, optional
exponent marker, optional exponent sign, and suffixes occur in the same order.
The crate's exp_sign*exp_num equals the source choice between exp_num and
-exp_num because exp_num is bounded by the unchanged 0x10000 guard; the final
decimal_point checked addition is in the same position.  Casts of lengths to
i32 and every subsequent checked update remain unchanged, including their
large-input behavior.

Delayed returns
---------------

upstream/dec2flt/decimal_seq.rs:173-198 versus
crate/dec2flt/decimal_seq.rs:176-203 replaces one return inside right_shift's
loop by all_zero=true, exits because !all_zero is the loop guard, and returns
immediately afterward.  No decimal_point, digit, index, or arithmetic update
occurs between the original and delayed return.

upstream/dec2flt/slow.rs:46-76 versus crate/dec2flt/slow.rs:46-94 replaces two
nested-loop returns by loop_result.  In the zero branch it records fp_zero,
skips the source-skipped exp2 addition, exits through is_none(), and returns.
In the infinity branch it records fp_inf, skips the source-skipped exp2
subtraction, exits, and returns.  On all other iterations it performs the same
shift, checked state changes, and exponent update.  Lines 95-126 after these
returns are otherwise the source lines 77-110 unchanged.

Dispatcher trace and public projection
--------------------------------------

upstream/dec2flt/mod.rs:209-256 is the whole original dispatcher.
crate/dec2flt/mod.rs:285-349 declares trace data only, lines 352-505 execute the
instrumented dispatcher, and lines 507-520 define public dec2flt as its first
projection.  Comparing the bodies gives the following branch-by-branch
correspondence.

* Both call as_bytes, inspect the first byte, reject empty input before a helper,
  remove at most one sign, and reject a sign-only body.  The trace stores the
  already obtained body and Boolean sign.
* Both call parse_number first on that exact body.  Only None calls
  parse_inf_nan on the same body and sign.  Its Some is returned directly and
  its None returns invalid.  The trace stores those existing Option values.
* Both overwrite only Decimal.negative, test the same compile-time
  !optimize_for_size condition, call try_fast_path once, and return its Some
  directly.  The trace stores the copied Decimal and Option; Decimal is Copy.
* Both call compute_float first with num.exponent and num.mantissa.  The crate's
  second_compute_guard is exactly the first two conjuncts of the source
  short-circuit.  Therefore the checked mantissa+1 and second compute_float call
  occur under precisely the source guard, in the same order.  The same pair
  comparison either retains fp or changes only p_biased to -1.
* Both test the post-comparison p_biased<0 once, call parse_long_mantissa on the
  unchanged body exactly when true, and otherwise retain the same pair.  The
  trace records both guard and result without another helper call.
* The extra assembled_word expression is the same cast, shift, and OR performed
  by biased_fp_to_float at upstream lines 202-206 and crate lines 278-282; these
  integer operations neither panic nor mutate fp.  Both then call assembly once
  on the selected pair and apply unary negation exactly when num.negative.
  Public dec2flt returns the identical Result first component.

Consequently the trace does not infer uncomputed data: it records the exact
variant; sign-stripped body and sign; numeric/special Options; fast-path input
and result; first and conditional second integer operands and results;
comparison, forced-deferral and post-comparison pair; slow guard and result;
selected pair; assembled word; pre-sign assembly word; sign-application fact;
and final word.  Special and native direct returns create no selected pair.
All source call order, guards, checked arithmetic, mutable-state transitions,
panic points, and returned Result/F64 observations remain in place.

F64-only restriction
--------------------

crate/traits.rs:187-307 and crate/dec2flt/mod.rs:140-215 add cfg(any()) to the
f16/f32 Float, FloatExt, and Lemire implementations.  crate/traits.rs:59-64
retains only u64 Int.  The retained f64 implementations are
crate/traits.rs:309-360 and crate/dec2flt/mod.rs:217-264.  Every goal-facing
function remains generic in the source and extraction, but each pursued source
subject specializes it to f64, whose associated integer is u64.  There is no
dynamic format dispatch, so removing other impl blocks cannot change an f64
call, its native decision, checks, result word, NaN classification, fields, or
trace.  The fresh boundary inventory in setup-reproduction.txt confirms that
no removed-format external remains.

Conclusion
----------

The inventory is exhaustive: three supplied files are identical, seven have
all hunks classified above, and the four added files are the package shell.
For the configured f64 specialization, the adapted crate has the same input
domains, branch order, guards, checked/wrapping distinction, state transitions,
panic versus normal behavior, and public/helper observations as the supplied
source.  The only new observations are the trace fields, each copied from an
existing value or computed by the same pure assembly expression.  This
conclusion is independent of whether any parser-correctness GOAL is true.
reference/model-evidence/source-valid-byte-slice-probe.out

Open file

arch=x86_64
usize_bits=64
isize_max=9223372036854775807
u8_size=1
reference/model-evidence/source-valid-byte-slice-probe.rs

Open file

fn main() {
    println!("arch={}", std::env::consts::ARCH);
    println!("usize_bits={}", usize::BITS);
    println!("isize_max={}", isize::MAX);
    println!("u8_size={}", std::mem::size_of::<u8>());
}
reference/model-evidence/source-valid-byte-slice.txt

Open file

Source-valid byte-slice and string domain evidence
==================================================

Scope and pinned identities
---------------------------

All commands below were run from the repository root.  The configured compiler
is:

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

Its SHA-256 is:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b

The exact identity commands were:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  sha256sum "$R"
  "$R" --version --verbose
  "$R" --target x86_64-unknown-linux-gnu --print cfg | LC_ALL=C sort | \
    rg 'target_(arch|pointer_width)'

Their relevant raw output was:

  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
  target_arch="x86_64"
  target_pointer_width="64"

Retained configured-target probe
--------------------------------

The retained probe source is
reference/model-evidence/source-valid-byte-slice-probe.rs.  It was compiled
for the configured target and executed with this exact command, which depends
only on the retained source and the pinned compiler:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/source-valid-byte-slice-probe.rs
  B=/tmp/dec2flt-source-valid-byte-slice-probe
  O=reference/model-evidence/source-valid-byte-slice-probe.out
  "$R" --edition 2024 --target x86_64-unknown-linux-gnu -C opt-level=0 \
    -C debuginfo=0 -C overflow-checks=on -C debug-assertions=on \
    --crate-name source_valid_byte_slice_probe "$P" -o "$B"
  sha256sum "$R" "$P" "$B"
  "$B" > "$O"
  sha256sum "$O"
  cat "$O"

The actual hashes were:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd  reference/model-evidence/source-valid-byte-slice-probe.rs
  87dc3b9b7a46506d2205503d8aa007b451c452968af48d1ba5961a821934ee55  /tmp/dec2flt-source-valid-byte-slice-probe
  01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4  reference/model-evidence/source-valid-byte-slice-probe.out

The retained raw output file contains exactly:

  arch=x86_64
  usize_bits=64
  isize_max=9223372036854775807
  u8_size=1

Pinned core-library source
--------------------------

Let:

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

The exact commands used to identify and inspect the relevant core sources were:

  sha256sum "$S/slice/mod.rs" "$S/num/int_macros.rs" "$S/str/mod.rs"
  sed -n '798,808p' "$S/slice/mod.rs"
  sed -n '43,51p' "$S/num/int_macros.rs"
  sed -n '495,510p' "$S/str/mod.rs"

The file identities are:

  354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840  core/src/slice/mod.rs
  3896304e7cb14628e293134ac41fd18be2b5369bedc02d1c6a7408bd8c755a31  core/src/num/int_macros.rs
  284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78  core/src/str/mod.rs

The relevant exact excerpt of slice/mod.rs, line 801, is:

  //   - The size of the slice is never larger than `isize::MAX` bytes, as

The relevant exact declaration in num/int_macros.rs, line 47, is:

  pub const MAX: Self = (<$UnsignedT>::MAX >> 1) as Self;

The relevant exact excerpts of str/mod.rs are its same-layout byte-slice
conversion at lines 498-500:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }

and its UTF-8 invariant at lines 507-510:

  /// The caller must ensure that the content of the slice is valid UTF-8
  /// before the borrow ends and the underlying `str` is used.
  ///
  /// Use of a `str` whose contents are not valid UTF-8 is undefined behavior.

Conclusion
----------

The configured target has 64-bit usize/isize and one-byte u8 elements.
The pinned signed-MAX definition therefore gives
isize::MAX = 2^63 - 1 = 9223372036854775807, and the pinned slice rule bounds a
slice by that many bytes.  For &[u8], this is exactly an element-count bound;
the rule adds no UTF-8 condition or other restriction on the byte contents.
The pinned str source exposes the identical-layout &[u8] bytes and separately
requires them to be valid UTF-8.  Consequently the exact configured domains
are arbitrary &[u8] bytes of length at most isize::MAX, and Rust str bytes of
length at most isize::MAX that are valid UTF-8.  No smaller convenience bound
is introduced.
Upstream → extraction-crate adaptation diff
--- upstream/dec2flt/decimal.rs
+++ crate/dec2flt/decimal.rs
@@ -25,7 +25,10 @@
 ];
 
 /// A floating point number with up to 64 bits of mantissa and an `i64` exponent.
-#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
+// Debug output is absent from the accepted observations.  Removing only that
+// implementation leaves all fields, computational derives, and parser
+// operations unchanged independently of GOAL truth.
+#[derive(Clone, Copy, Default, PartialEq, Eq)]
 pub struct Decimal {
     pub exponent: i64,
     pub mantissa: u64,
@@ -53,7 +56,17 @@
     ///
     /// There is an exception: disguised fast-path cases, where we can shift
     /// powers-of-10 from the exponent to the significant digits.
-    pub fn try_fast_path<F: Lemire>(&self) -> Option<F> {
+    pub fn try_fast_path<
+        F: Lemire
+            + core::ops::Div<Output = F>
+            + core::ops::Mul<Output = F>
+            + core::ops::Neg<Output = F>,
+    >(
+        &self,
+    ) -> Option<F> {
+        // `Lemire` already entails these three operator bounds through
+        // `Float`; spelling them directly changes no admitted type.  Charon
+        // needs the direct clauses to resolve each explicit call's `Output`.
         // Here we need to work around <https://github.com/rust-lang/rust/issues/114479>.
         // The fast path crucially depends on arithmetic being rounded to the correct number of bits
         // without any intermediate rounding. On x86 (without SSE or SSE2) this requires the precision
@@ -70,9 +83,11 @@
             // normal fast path
             let value = F::from_u64(self.mantissa);
             if self.exponent < 0 {
-                value / F::pow10_fast_path((-self.exponent) as _)
+                // Explicit trait calls preserve Rust arithmetic and resolve
+                // the generic output type that Charon leaves ambiguous.
+                core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
             } else {
-                value * F::pow10_fast_path(self.exponent as _)
+                core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
             }
         } else {
             // disguised fast path
@@ -81,9 +96,16 @@
             if mantissa > F::MAX_MANTISSA_FAST_PATH {
                 return None;
             }
-            F::from_u64(mantissa) * F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _)
+            core::ops::Mul::mul(
+                F::from_u64(mantissa),
+                F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
+            )
         };
 
-        if self.negative { Some(-value) } else { Some(value) }
+        if self.negative {
+            Some(core::ops::Neg::neg(value))
+        } else {
+            Some(value)
+        }
     }
 }
Record details
Kindsource adaptation site (file-level diff)
Captured evidence identities
[
  {
    "path": "extraction-evidence/COMMAND.json",
    "sha256": "5f26225136b8c7c4d7f95615e3e8ff8b357e523eeada4bc649e50f9c76cb9bda",
    "cited_by": [
      "shared mechanical extraction record",
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "extraction-evidence/DETERMINISM.json",
    "sha256": "74e45977d1fa84e7d4c696906005f13faca994995fdeff0fac8dc13e5c18f11c",
    "cited_by": [
      "shared mechanical extraction record"
    ]
  },
  {
    "path": "extraction-evidence/RESULT.json",
    "sha256": "31059e900d9ee03a54504c1dd3560a943d6c0f883fba737163b1ca0cb40065b0",
    "cited_by": [
      "shared mechanical extraction record",
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "extraction-evidence/STDERR.bin",
    "sha256": "c284799d633c64b898f716d62fbf1146c173227bd6bd44309c6504a43926e000",
    "cited_by": [
      "shared mechanical extraction record"
    ]
  },
  {
    "path": "extraction-evidence/STDOUT.bin",
    "sha256": "8e0aed62f6941e7c81b09d5c5b63ea7602756e69e4bcce9944258b229a9a0ba3",
    "cited_by": [
      "shared mechanical extraction record"
    ]
  },
  {
    "path": "reference/model-evidence/adaptation-constants-probe.rs",
    "sha256": "b5a4a2cba0c08053cb9a816adb1ba5dbd160bf3928bdf5ccf56b7ae83aaa2aa5",
    "cited_by": [
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-boundary.txt",
    "sha256": "fa45c924747337e8d6f84a19fe9e83fb9b33c73434887c0cf57c062533f51fe1",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex",
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-probe.rs",
    "sha256": "68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e",
    "cited_by": [
      "reference/model-evidence/binary64-boundary.txt"
    ]
  },
  {
    "path": "reference/model-evidence/native-boundary.txt",
    "sha256": "fa0d69e4a434007e6ee675380fc13f98e22655b7faa77cdc5216d4af4356438f",
    "cited_by": [
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "reference/model-evidence/setup-reproduction.txt",
    "sha256": "209bc94a47b1b905a2a7b1fea229c759e6250becbd353fe4eadc7bc49be7742c",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex",
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-adaptation-delta.diff",
    "sha256": "fdf88cabfe40ce962d2bd5eda22eb5b3cbbf8a936a81b896e98698bf472cd0e4",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex",
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-adaptation-delta.txt",
    "sha256": "3c1483d48286a82484eba249a5434936e1a33a08f4e99ec0e3a03ce9bb0ecd9b",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.out",
    "sha256": "01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.rs",
    "sha256": "b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice.txt",
    "sha256": "eb501317621baa00236f9773885466bd38ec1a45cb56457d555b9e9139dc780a",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex"
    ]
  }
]

crate/dec2flt/decimal_seq.rs

Historical preparation document: preparation source-adaptation audit. It describes the state and obligations at preparation. This generation is captured in ProofFormalization. Later closure and review results appear in the proof and modeling views. This original document remains available as history.

Captured upstream and extraction-crate files differ. Consult the recorded preservation explanations for the purpose and scope of each adaptation.
Shared extraction-boundary explanation (Preamble)

Preservation argument

Claim

Fix Rust nightly-2026-06-01 and target x86_64-unknown-linux-gnu, the library's empty default feature set (so optimize_for_size is disabled), the unoptimized development profile, enabled debug assertions and integer overflow checks, and the target's SSE2 precision-setting branch. Interpret each of the frozen extraction's 24 external operations by the separately justified model-support definition that owns that operation. Under those interpretations, the composed Aeneas model represents the supplied source's f64 specialization on all of these domains, without a correctness premise: every Rust str whose bytes are valid UTF-8 and whose 64-bit slice length is at most \mathtt{isize::MAX}=2^{63}-1; every Rust &[u8] whose length is at most that bound, with arbitrary byte contents; every Decimal; every i64/u64 pair; and every BiasedFp.
For dec2flt::<f64> the relation preserves panic versus normal return, the outer returned Result's Ok/Err discriminant, and, on success, the exact binary64 word and its NaN classification. For parse_number it preserves panic versus normal return, the Option discriminant, and all four returned Decimal fields. For parse_inf_nan::<f64> and Decimal::try_fast_path::<f64> it preserves panic versus normal return, None versus Some, and every returned word and NaN classification. For compute_float::<f64> and parse_long_mantissa::<f64> it preserves panic versus normal return and both fields of every returned BiasedFp. For biased_fp_to_float::<f64> it preserves panic versus normal return and the exact returned word, with no restriction on the pair fields.
For dec2flt_with_trace::<f64> it additionally preserves the public result and the complete trace: its control-flow variant; sign-stripped body and lexical sign; numeric and special helper results; signed native input and native result; first integer operands and result; second-call guard, optional operands and result, comparison and forced-deferral fact; post-comparison pair; slow-path guard and optional result; selected pair; assembled unsigned word; pre-sign assembly result; sign-application fact; and final word. Public dec2flt::<f64> is exactly the first projection of that interface, and direct special and native returns select no raw pair.

Proof

The fresh extraction record reference/model-evidence/setup-reproduction.txt pins all six tool executables by SHA-256, gives the empty Cargo/Charon/Aeneas argument configuration, and records the effective development cfg. Its Cargo, Charon, and Aeneas executions all exit successfully. Fresh Aeneas output is byte-for-byte the frozen generated.lean, with SHA-256 45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9. The raw source has no placeholder. The compatibility check reports no unapproved axiom and isolates exactly 24 external declarations; the complete inventory equals the 24 entries of Tablet/model-support.json. compose-native --check reports an unchanged composition and equal expected and actual Preamble hashes. Thus all transparent extracted declarations come from this one pinned source and every nontransparent operation is explicit. The premise assigning each external its owning definition deliberately leaves that definition's primitive-semantics proof to its own preservation record; no primitive binding is re-proved here.
The paired meanings of all 24 owners make that composition premise concrete. The binary64 carrier is the complete raw-word representation of F64. Its clone, precision constant, NaN and infinity constants, field masks, classification, bit conversions, arithmetic, negation, and asserted integer conversion have respectively the meanings in ModelF64Clone, ModelF64MantissaDigits, ModelF64Nan, ModelF64Infinity, ModelF64NegInfinity, ModelF64ExponentMask, ModelF64MantissaMask, ModelF64Classify, ModelF64ToBits, ModelF64FromBits, ModelF64Mul, ModelF64Div, ModelF64Neg, and ModelF64FromU64. The four bounded word operations have the Rust meanings in ModelU64BitAnd, ModelU64BitOr, ModelU64Shl, and ModelU64Shr; the digit test has the meaning in ModelU8IsAsciiDigit. Option branching and residual return have the meanings in ModelOptionBranch and ModelOptionFromResidual; first-element and split-first observation have the meanings in ModelSliceFirst and ModelSliceSplitFirst; and string-to-byte observation has the meaning in ModelStrAsBytes. These are exactly the semantic operations substituted for the inventoried externals.
The source carrier used below is the arbitrary-byte, length-at-most 2^{63}-1 slice of SourceValidByteSlice. The abstract domains and observations used in the GOAL applications are those of DecimalGoalVocabulary; their concrete UTF-8 string predicate, lexical grammar, decimal values, binary64 rounding and classification, sign, and unrestricted raw-pair assembly are those of DecimalGoalVocabularyDefault. Thus the composition cites the paired meanings that connect its source domains and observations to the GOAL vocabulary, rather than inferring those meanings from boundary inventory alone.
The complete upstream-to-crate inventory and its source hashes are recorded in reference/model-evidence/source-adaptation-delta.txt; its exact aggregate byte diff is retained in reference/model-evidence/source-adaptation-delta.diff. The supplied fpu.rs, lemire.rs, and table.rs are byte-identical. The standalone namespace and local error shell introduce no call. The GOALs observe only panic versus normal return and the outer Ok/Err discriminant, so the shell's private kind and formatting are unobserved; no identity with an unpinned core error payload is asserted. Visibility and removed Debug derives do not affect values. The retained generic bodies use none of the removed trait operations; the direct Mul, Div, and Neg clauses and calls are the operations already implied by Lemire. Only the u64 integer instance and f64 Float, FloatExt, and Lemire instances can participate in an f64 execution, so disabling the u16/u32 and f16/f32 instances changes no such call.
The same delta record compares each constant, table entry, and specialized decoder with its source expression. The retained decoder is the source default after substituting the f64/u64 field widths and masks; the fast-path bounds are the source formula results; and the match over power-of-ten words has the same masked index and exact words as the source array. The toolchain-specific words, masks, classifications, casts, and rounding behavior are independently pinned in reference/model-evidence/binary64-boundary.txt. The frozen from_u64 Rust body is the enabled assertion followed by the u64 as f64 conversion. Because #[charon::opaque] applies to the whole function, neither operation inside that body is transparent in the extraction: the whole method is the single inventoried external. Its callers, their guards, and the surrounding native computation remain transparent. ModelF64FromU64 supplies exactly successful integer conversion for v\leq2^{53} and assertion failure otherwise.
All other changed bodies are syntax-directed rewrites. Indexed digit scans test the same byte, use the same wrapping subtraction and accumulator update, advance by the same amount, and stop at the same first nondigit as the source closures and split_first loops. Extracted helpers receive the same slices and mutable values, visit bytes in the same forward or reverse order, and retain every saturating, wrapping, and checked operation. Delayed returns set a result flag, execute no intervening state update, leave the loop through that flag, and immediately return the source value. In particular, casts and length-derived additions on very large inputs keep their original panic or normal behavior rather than acquiring a convenience size bound.
Finally, direct comparison of the supplied dispatcher with the instrumented body shows identical sequencing. Both strip at most one sign, reject empty or sign-only input, call the numeric helper first and the special helper only after its None, overwrite only the parsed sign, try the enabled native path, make the first integer call, and evaluate the checked mantissa+1 and second call under exactly the source short-circuit guard. Both force the same deferral on unequal pairs, call the slow helper on the unchanged body exactly for a negative post-comparison exponent, assemble the same selected pair, and apply the sign last. Every trace field is either one of those already computed values or the same nonmutating cast/shift/OR word used by assembly. Hence recording the trace and discarding it in the public projection changes neither call order, guards, state, panic points, nor any returned observation.
The exact source carrier condition is separately evidenced by reference/model-evidence/source-valid-byte-slice.txt: on this 64-bit target a byte slice has arbitrary bytes and length at most isize::MAX, while a Rust string adds UTF-8 validity. Sub-slicing preserves the length bound and need not preserve an independent string type. These facts establish all domains and observations in the claim independently of the truth or falsity of any GOAL.

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

extraction-evidence/COMMAND.json

Open file

{"declaration_reader_sha256":"76f60cf0b867fad9727d2256d32b306c8cba3725216a4225d0f83add77fd6158","extraction_provenance":{"extraction_toolchain":{"aeneas":"fa699427","aeneas_revision":"fa699427cdfa8f604b891fb0223ef42883dd7dc4","cargo_features":[{"features":["default"],"name":"dec2flt-model","source":"workspace:Cargo.toml","version":"0.1.0"}],"cargo_lock_sha256":"bc644c624ded89197356bbd65d995054b7fb08e5bdfbaa38c6e7c7a53772cecf","cfg":["debug_assertions","emscripten_wasm_eh","feature=\"default\"","fmt_debug=\"full\"","overflow_checks","panic=\"unwind\"","relocation_model=\"pic\"","target_abi=\"\"","target_arch=\"x86_64\"","target_endian=\"little\"","target_env=\"gnu\"","target_family=\"unix\"","target_feature=\"fxsr\"","target_feature=\"sse\"","target_feature=\"sse2\"","target_feature=\"x87\"","target_has_atomic","target_has_atomic=\"16\"","target_has_atomic=\"32\"","target_has_atomic=\"64\"","target_has_atomic=\"8\"","target_has_atomic=\"ptr\"","target_has_atomic_load_store","target_has_atomic_load_store=\"16\"","target_has_atomic_load_store=\"32\"","target_has_atomic_load_store=\"64\"","target_has_atomic_load_store=\"8\"","target_has_atomic_load_store=\"ptr\"","target_has_atomic_primitive_alignment=\"16\"","target_has_atomic_primitive_alignment=\"32\"","target_has_atomic_primitive_alignment=\"64\"","target_has_atomic_primitive_alignment=\"8\"","target_has_atomic_primitive_alignment=\"ptr\"","target_has_reliable_f128","target_has_reliable_f16","target_has_reliable_f16_math","target_object_format=\"elf\"","target_os=\"linux\"","target_pointer_width=\"64\"","target_thread_local","target_vendor=\"unknown\"","ub_checks","unix"],"charon":"0.1.216","charon_revision":"6f058254eb741c12e9b388df07adaf7cc8aac8ed","extraction_profile":"dev","lean":"4.30.0-rc2","overflow_checks":true,"panic_strategy":"unwind","rustc_vv":"rustc 1.98.0-nightly (14210df0e 2026-05-31)\nbinary: rustc\ncommit-hash: 14210df0e27ccd7d9e6a05b8085cbd438e4bbc65\ncommit-date: 2026-05-31\nhost: x86_64-unknown-linux-gnu\nrelease: 1.98.0-nightly\nLLVM version: 22.1.6\n","target_pointer_width":64,"target_triple":"x86_64-unknown-linux-gnu"},"extractor_stack":["charon@0.1.216","aeneas@fa699427"],"extractor_toolchain_sha256":"18657da0659dee7889ed8a937b136c9abbc3a35e9050241cd8201c94fd232323","not_recorded":[],"source_digests":[{"source_file":"lib.rs","source_sha256":"63c7f58df6caff552519c92155d902daf8a1015797adcd3f357f8b8cf1652b00"}]},"extractor_script_path":"/home/leanagent/pv_runs/trellis-native-implementation-v91/scripts/extract_pv_model.py","extractor_script_sha256":"cc1fdd50a78185c7bb564b715c554cb35d9fc09ed566b6c3d4f482f2d27ef67d","kernel_gate_checkers":[],"log_concatenation_order":"runs_then_steps_in_array_order","runs":[{"run_role":"primary","steps":[{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","-vV"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"rustc-version","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/pv_spike/tools/charon/bin/charon","cargo","--preset=aeneas","--dest-file","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc","--","--offline","--profile","dev","--target","x86_64-unknown-linux-gnu"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"charon","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/cargo","metadata","--format-version=1","--locked","--offline","--filter-platform","x86_64-unknown-linux-gnu"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"cargo-metadata","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/cargo","rustc","--lib","--locked","--offline","--profile","dev","--target","x86_64-unknown-linux-gnu","--","--print","cfg"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"cargo-rustc-cfg","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/pv_spike/tools/aeneas/bin/aeneas","-backend","lean","-dest","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen","-emit-json","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"aeneas","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"}]}],"schema":"trellis-extraction-command/v1","tool_source_checkouts":[]}
extraction-evidence/DETERMINISM.json

Open file

{"comparison":"generated_lean_and_complete_tablet_tree_byte_identity","generated_lean_byte_identical":false,"generated_lean_sha256":["45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9"],"kernel_filespec_gate":"not_run","kernel_prescribed_region_gate":"not_run","namespace_context_roundtrip_gate":"not_run","result_sha256":"31059e900d9ee03a54504c1dd3560a943d6c0f883fba737163b1ca0cb40065b0","run_roles":["primary"],"schema":"trellis-extraction-determinism/v2","status":"not_run","tablet_root_sha256":["5be7a89d6b46429df3229db0d97b337dfb51cea483d439817e51b774a2dd5cf1"],"tablet_tree_byte_identical":false}
extraction-evidence/RESULT.json

Open file

{"command_sha256":"5f26225136b8c7c4d7f95615e3e8ff8b357e523eeada4bc649e50f9c76cb9bda","runs":[{"generated_lean_sha256":"45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9","run_role":"primary","steps":[{"exit_status":0,"stderr_byte_length":0,"stderr_offset":0,"stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","stdout_byte_length":212,"stdout_offset":0,"stdout_sha256":"e6ea0da4a3301256a0a0dc0d67d11acf4e83e0d1bff5dd987ccdaa43708714bc","tool":"rustc-version"},{"exit_status":0,"stderr_byte_length":654,"stderr_offset":0,"stderr_sha256":"85f314396a5cc9f2303d9848c2d0ea392b64a71cb47e7b0914fd3b8acc916f02","stdout_byte_length":0,"stdout_offset":212,"stdout_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","tool":"charon"},{"exit_status":0,"stderr_byte_length":0,"stderr_offset":654,"stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","stdout_byte_length":2897,"stdout_offset":212,"stdout_sha256":"d792566b25914f10c1a27d3c55607a43dd6bcd31b381f8d54caa7d23257269ef","tool":"cargo-metadata"},{"exit_status":0,"stderr_byte_length":302,"stderr_offset":654,"stderr_sha256":"865b65d937d16c61cd9b975adc967136f6739ef2149207ae43742241f2f37686","stdout_byte_length":1062,"stdout_offset":3109,"stdout_sha256":"4081a320e6292139b4a673d225682dc054b77cba113b8c8a8fbb0593f824b713","tool":"cargo-rustc-cfg"},{"exit_status":0,"stderr_byte_length":6916,"stderr_offset":956,"stderr_sha256":"9c2b4695f1b3bb4e7fe3bf52b92d44fd21bed1de3047b698c950eafcc085c00b","stdout_byte_length":933,"stdout_offset":4171,"stdout_sha256":"35255952c6ce5b89d1280d096dff50ffcfc94817c3aafa58beda6db7e66721df","tool":"aeneas"}],"tablet_root_sha256":"5be7a89d6b46429df3229db0d97b337dfb51cea483d439817e51b774a2dd5cf1"}],"schema":"trellis-extraction-result/v2","stderr_byte_length":7872,"stderr_sha256":"c284799d633c64b898f716d62fbf1146c173227bd6bd44309c6504a43926e000","stdout_byte_length":5104,"stdout_sha256":"8e0aed62f6941e7c81b09d5c5b63ea7602756e69e4bcce9944258b229a9a0ba3"}
extraction-evidence/STDERR.bin

Open file

   Compiling dec2flt-model v0.1.0 (/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate)
warning: feature `f16` is declared but not used
 --> lib.rs:2:46
  |
2 | #![feature(cfg_target_has_reliable_f16_f128, f16, float_masks, register_tool, staged_api)]
  |                                              ^^^
  |
  = note: `#[warn(unused_features)]` (part of `#[warn(unused)]`) on by default

warning: `dec2flt-model` (lib) generated 1 warning
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.44s
   Compiling dec2flt-model v0.1.0 (/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.02s
[?25lApplied prepasses:  [------------------------------------------------]   0/203 ⠋

Applied prepasses:  [------------------------------------------------]   1/203 ⠋

Applied prepasses:  [#####-------------------------------------------]  24/203 ⠋

Applied prepasses:  [########----------------------------------------]  38/203 ⠋

Applied prepasses:  [##############################------------------] 128/203 ⠙
Applied prepasses:  [################################################] 203/203 ✔️
[?25h[?25lTranslated globals:  [-------------------------------------------------]  0/50 ⠋
Translated globals:  [#################################################] 50/50 ✔️
[?25h[?25lTranslated opaque functions:  [----------------------------------------]  0/87 ⠋
Translated opaque functions:  [########################################] 87/87 ✔️
[?25h[?25lTranslated transparent functions:  [---------------------------------]   0/107 ⠋

Translated transparent functions:  [---------------------------------]   1/107 ⠙

Translated transparent functions:  [###------------------------------]  10/107 ⠙

Translated transparent functions:  [######---------------------------]  22/107 ⠹

Translated transparent functions:  [##########-----------------------]  35/107 ⠹

Translated transparent functions:  [#############--------------------]  44/107 ⠹

Translated transparent functions:  [##############-------------------]  48/107 ⠸

Translated transparent functions:  [###############------------------]  51/107 ⠸

Translated transparent functions:  [##################---------------]  59/107 ⠸

Translated transparent functions:  [##################---------------]  60/107 ⠼

Translated transparent functions:  [##################---------------]  61/107 ⠼

Translated transparent functions:  [####################-------------]  65/107 ⠼

Translated transparent functions:  [#####################------------]  69/107 ⠼

Translated transparent functions:  [#####################------------]  70/107 ⠴

Translated transparent functions:  [######################-----------]  72/107 ⠴

Translated transparent functions:  [######################-----------]  73/107 ⠦

Translated transparent functions:  [######################-----------]  74/107 ⠦

Translated transparent functions:  [#######################----------]  77/107 ⠦

Translated transparent functions:  [########################---------]  78/107 ⠧

Translated transparent functions:  [########################---------]  79/107 ⠧

Translated transparent functions:  [########################---------]  81/107 ⠇

Translated transparent functions:  [#########################--------]  82/107 ⠇

Translated transparent functions:  [#########################--------]  83/107 ⠏

Translated transparent functions:  [#########################--------]  84/107 ⠏

Translated transparent functions:  [##########################-------]  86/107 ⠋

Translated transparent functions:  [###########################------]  88/107 ⠋

Translated transparent functions:  [###########################------]  89/107 ⠋

Translated transparent functions:  [###########################------]  90/107 ⠙

Translated transparent functions:  [############################-----]  91/107 ⠙

Translated transparent functions:  [############################-----]  93/107 ⠹

Translated transparent functions:  [############################-----]  94/107 ⠹

Translated transparent functions:  [#############################----]  95/107 ⠸

Translated transparent functions:  [#############################----]  97/107 ⠸

Translated transparent functions:  [##############################---]  99/107 ⠼

Translated transparent functions:  [##############################---] 100/107 ⠼

Translated transparent functions:  [###############################--] 102/107 ⠴

Translated transparent functions:  [###############################--] 103/107 ⠦

Translated transparent functions:  [################################-] 104/107 ⠦

Translated transparent functions:  [################################-] 105/107 ⠧

Translated transparent functions:  [################################-] 106/107 ⠇

Translated transparent functions:  [#################################] 107/107 ⠏
Translated transparent functions:  [#################################] 107/107 ✔️
[?25h[?25lTranslated trait declarations:  [--------------------------------------]  0/49 ⠋
Translated trait declarations:  [########################--------------] 31/49 ✔️
[?25h[?25lTranslated trait impls:  [---------------------------------------------]  0/85 ⠋
Translated trait impls:  [#################################------------] 64/85 ✔️
[?25h[?25lPost-processed translated opaque functions:  [-------------------------]  0/87 ⠋

Post-processed translated opaque functions:  [-------------------------]  1/87 ⠙
Post-processed translated opaque functions:  [#########################] 87/87 ✔️
[?25h[?25lPost-processed translated transparent functions:  [------------------]   0/107 ⠋

Post-processed translated transparent functions:  [------------------]   1/107 ⠋

Post-processed translated transparent functions:  [#-----------------]  10/107 ⠙

Post-processed translated transparent functions:  [##----------------]  12/107 ⠙

Post-processed translated transparent functions:  [##----------------]  13/107 ⠹

Post-processed translated transparent functions:  [##----------------]  14/107 ⠹

Post-processed translated transparent functions:  [##----------------]  16/107 ⠸

Post-processed translated transparent functions:  [##----------------]  17/107 ⠼

Post-processed translated transparent functions:  [###---------------]  18/107 ⠼

Post-processed translated transparent functions:  [###---------------]  23/107 ⠴

Post-processed translated transparent functions:  [####--------------]  27/107 ⠴

Post-processed translated transparent functions:  [#####-------------]  31/107 ⠴

Post-processed translated transparent functions:  [######------------]  37/107 ⠴

Post-processed translated transparent functions:  [########----------]  50/107 ⠴

Post-processed translated transparent functions:  [###############---]  95/107 ⠦

Post-processed translated transparent functions:  [################--]  99/107 ⠦

Post-processed translated transparent functions:  [################--] 100/107 ⠧

Post-processed translated transparent functions:  [################--] 101/107 ⠧

Post-processed translated transparent functions:  [#################-] 103/107 ⠧

Post-processed translated transparent functions:  [#################-] 105/107 ⠇

Post-processed translated transparent functions:  [##################] 107/107 ⠏
Post-processed translated transparent functions:  [##################] 107/107 ✔️
[?25h
extraction-evidence/STDOUT.bin

Open file

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
{"packages":[{"name":"dec2flt-model","version":"0.1.0","id":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0","license":null,"license_file":null,"description":null,"source":null,"dependencies":[],"targets":[{"kind":["lib"],"crate_types":["lib"],"name":"dec2flt_model","src_path":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate/lib.rs","edition":"2024","doc":true,"doctest":true,"test":true}],"features":{"default":[],"optimize_for_size":[]},"manifest_path":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate/Cargo.toml","metadata":null,"publish":[],"authors":[],"categories":[],"keywords":[],"readme":null,"repository":null,"homepage":null,"documentation":null,"edition":"2024","links":null,"default_run":null,"rust_version":null}],"workspace_members":["path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"],"workspace_default_members":["path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"],"resolve":{"nodes":[{"id":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0","dependencies":[],"deps":[],"features":["default"]}],"root":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"},"target_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","build_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","version":1,"workspace_root":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate","metadata":null}
debug_assertions
emscripten_wasm_eh
feature="default"
fmt_debug="full"
overflow_checks
panic="unwind"
relocation_model="pic"
target_abi=""
target_arch="x86_64"
target_endian="little"
target_env="gnu"
target_family="unix"
target_feature="fxsr"
target_feature="sse"
target_feature="sse2"
target_feature="x87"
target_has_atomic
target_has_atomic="16"
target_has_atomic="32"
target_has_atomic="64"
target_has_atomic="8"
target_has_atomic="ptr"
target_has_atomic_load_store
target_has_atomic_load_store="16"
target_has_atomic_load_store="32"
target_has_atomic_load_store="64"
target_has_atomic_load_store="8"
target_has_atomic_load_store="ptr"
target_has_atomic_primitive_alignment="16"
target_has_atomic_primitive_alignment="32"
target_has_atomic_primitive_alignment="64"
target_has_atomic_primitive_alignment="8"
target_has_atomic_primitive_alignment="ptr"
target_has_reliable_f128
target_has_reliable_f16
target_has_reliable_f16_math
target_object_format="elf"
target_os="linux"
target_pointer_width="64"
target_thread_local
target_vendor="unknown"
ub_checks
unix
[Info ] Imported: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc
[Info ] Generated: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/M.lean
[Info ] Generated: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/translation.json
[Warn ] The crate contains extracted external, unknown definitions: we advise using the option -split-files to allow manually providing these definitions in separate files.
[Info ] Total execution time: 7.337683 seconds
reference/model-evidence/adaptation-constants-probe.rs

Open file

fn main() {
    let largest_power_of_ten = (1024_f64 / std::f64::consts::LOG2_10) as i32;
    let log2_5 = std::f64::consts::LOG2_10 - 1.0;
    let max_exponent_fast_path = (53_f64 / log2_5) as i64;
    let max_exponent_disguised =
        max_exponent_fast_path + (53_f64 / std::f64::consts::LOG2_10) as i64;

    println!("largest_power_of_ten={largest_power_of_ten}");
    println!("max_exponent_fast_path={max_exponent_fast_path}");
    println!("max_exponent_disguised={max_exponent_disguised}");
    println!("neg_nan={:016x}", (-f64::NAN).to_bits());

    for (exponent, value) in IntoIterator::into_iter([
        1e0_f64, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11,
        1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22,
    ])
    .enumerate()
    {
        println!("pow10_{exponent}={:016x}", value.to_bits());
    }
}
reference/model-evidence/binary64-boundary.txt

Open file

Primary evidence for the binary64 boundary
==========================================

Scope and identities
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction, the
adapted Rust crate retained in this repository, and the installed toolchain
named by modeling-input/SETUP.md. The probe source is retained at
reference/model-evidence/binary64-probe.rs; no scratch source is required to
reproduce it.

Toolchain executable:
  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
Target:
  x86_64-unknown-linux-gnu
rustc executable SHA-256:
  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
Probe source SHA-256:
  68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
Compiled probe SHA-256:
  f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
Frozen generated.lean SHA-256:
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9
Frozen modeling-input/manifest.json SHA-256:
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2
Approved Binary64ModelDefault.lean SHA-256 at the time of this record:
  03ae48fb631e6242bd21bf95d0481b66acae05f8cab343c7ab279b3c116538a3

Exact reproduction commands
---------------------------

Run from the repository root:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-probe.rs
  B=.trellis/scratch/binary64-probe
  "$R" --version --verbose
  sha256sum "$R"
  sha256sum "$P"
  "$R" --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$B"
  "$B"

Raw output
----------

  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
  rustc_sha256=162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  probe_sha256=68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
  binary_sha256=f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
  target_arch=x86_64
  mantissa_digits=53
  exponent_mask=7ff0000000000000
  mantissa_mask=000fffffffffffff
  nan=7ff8000000000000
  infinity=7ff0000000000000
  neg_infinity=fff0000000000000
  nan_category=Nan
  infinity_category=Infinite
  zero_category=Zero
  subnormal_category=Subnormal
  normal_category=Normal
  from_bits_to_bits=7ff0000000000001
  neg_payload_nan=fff0000000000001
  neg_zero=8000000000000000
  subnormal_tie_to_even_zero=0000000000000000
  subnormal_tie_to_even_two=0000000000000002
  normal_division=3fb999999999999a
  mul_negative_zero=8000000000000000
  div_negative_zero=8000000000000000
  div_negative_infinity=fff0000000000000
  mul_overflow=7ff0000000000000
  mul_zero_infinity_is_nan=true
  div_zero_zero_is_nan=true
  mul_nan_is_nan=true
  cast_2_pow_53=4340000000000000
  cast_2_pow_53_plus_1=4340000000000000

Pinned Rust library sources
---------------------------

The installed sources below belong to the same named toolchain. Their
SHA-256 identities are:

  core/src/primitive_docs.rs
    c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5
  core/src/num/f64.rs
    84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618
  core/src/clone.rs
    23f9cfc80347fde6b8457d46fbf7a2b8d9f34c8c58601b0b6f714ca2f6d1976b

The exact relevant text of core/src/primitive_docs.rs is:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The referenced primitive-f32 documentation supplies the common primitive
floating-point operation rules quoted next:

  /// - −0.0: IEEE 754 floating-point numbers have a bit that indicates their sign, so −0.0 is a
  ///   possible value. For comparison −0.0 = +0.0, but floating-point operations can carry
  ///   the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
  ///   a negative number rounded to a value smaller than a float can represent also produces −0.0.
  /// - [∞](#associatedconstant.INFINITY) and
  ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
  ///   like `1.0 / 0.0`.
  ///
  /// When a primitive operation (addition, subtraction, multiplication, or
  /// division) is performed on this type, the result is rounded according to the
  /// roundTiesToEven direction defined in IEEE 754-2008. That means:
  ///
  /// - The result is the representable value closest to the true value, if there
  ///   is a unique closest representable value.
  /// - If the true value is exactly half-way between two representable values,
  ///   the result is the one with an even least-significant binary digit.
  /// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
  ///   `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
  ///   true value's sign).

The same file explicitly separates arithmetic NaN choice from exact bitwise
operations; its exact relevant text is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.
  ///
  /// The following rules apply when a NaN value is returned from an arithmetic operation:
  /// - The result has a non-deterministic sign.
  /// - The quiet bit and payload are non-deterministically chosen from
  ///   the following set of options:
  ///
  ///   - **Preferred NaN**: The quiet bit is set and the payload is all-zero.
  ///   - **Quieting NaN propagation**: The quiet bit is set and the payload is copied from any input
  ///     operand that is a NaN. If the inputs and outputs do not have the same payload size (i.e., for
  ///     `as` casts), then
  ///     - If the output is smaller than the input, low-order bits of the payload get dropped.
  ///     - If the output is larger than the input, the payload gets filled up with 0s in the low-order
  ///       bits.
  ///   - **Unchanged NaN propagation**: The quiet bit and payload are copied from any input operand
  ///     that is a NaN. If the inputs and outputs do not have the same size (i.e., for `as` casts), the
  ///     same rules as for "quieting NaN propagation" apply, with one caveat: if the output is smaller
  ///     than the input, dropping the low-order bits may result in a payload of 0; a payload of 0 is not
  ///     possible with a signaling NaN (the all-0 significand encodes an infinity) so unchanged NaN
  ///     propagation cannot occur with some inputs.
  ///   - **Target-specific NaN**: The quiet bit is set and the payload is picked from a target-specific
  ///     set of "extra" possible NaN payloads. The set can depend on the input operand values.
  ///     See the table below for the concrete NaNs this set contains on various targets.
  ///
  /// | `target_arch` | Extra payloads possible on this platform |
  /// |---------------|------------------------------------------|
  /// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |

Thus the model's preferred quiet NaN is one permitted result whenever
multiplication or division returns NaN. This does not claim that arbitrary
Rust arithmetic NaNs have those exact bits. By contrast, unary negation and
bit conversion must preserve all non-sign bits exactly, including for every
NaN payload.

The exact relevant declarations in core/src/num/f64.rs are:

  pub const MANTISSA_DIGITS: u32 = 53;
  pub const NAN: f64 = 0.0_f64 / 0.0_f64;
  pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
  pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
  pub const SIGN_MASK: u64 = 0x8000_0000_0000_0000;
  pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;
  pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff;

  pub const fn classify(self) -> FpCategory {
      // We used to have complicated logic here that avoids the simple bit-based tests to work
      // around buggy codegen for x87 targets (see
      // https://github.com/rust-lang/rust/issues/114479). However, some LLVM versions later, none
      // of our tests is able to find any difference between the complicated and the naive
      // version, so now we are back to the naive version.
      let b = self.to_bits();
      match (b & Self::MANTISSA_MASK, b & Self::EXPONENT_MASK) {
          (0, Self::EXPONENT_MASK) => FpCategory::Infinite,
          (_, Self::EXPONENT_MASK) => FpCategory::Nan,
          (0, 0) => FpCategory::Zero,
          (_, 0) => FpCategory::Subnormal,
          _ => FpCategory::Normal,
      }
  }

  pub const fn to_bits(self) -> u64 {
      // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
      unsafe { mem::transmute(self) }
  }

  pub const fn from_bits(v: u64) -> Self {
      // It turns out the safety issues with sNaN were overblown! Hooray!
      // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
      unsafe { mem::transmute(v) }
  }

The exact scalar clone body in core/src/clone.rs is:

  impl const Clone for $t {
      #[inline(always)]
      fn clone(&self) -> Self {
          *self
      }
  }

Frozen adapted source
---------------------

The relevant retained source file hashes are:

  crate/traits.rs
    9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  crate/dec2flt/decimal.rs
    633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb
  crate/dec2flt/lemire.rs
    fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1
  crate/dec2flt/slow.rs
    93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485

The dispatcher excerpts below are reproduced from the identified file by
running these commands from the repository root:

  sha256sum crate/dec2flt/mod.rs
  sed -n '354,403p' crate/dec2flt/mod.rs
  sed -n '405,422p' crate/dec2flt/mod.rs
  sed -n '465,475p' crate/dec2flt/mod.rs
  sed -n '506,523p' crate/dec2flt/mod.rs

Exact constant and bit-conversion excerpt from crate/traits.rs:

  impl Float for f64 {
      type Int = u64;

      const INFINITY: Self = Self::INFINITY;
      const NEG_INFINITY: Self = Self::NEG_INFINITY;
      const NAN: Self = Self::NAN;
      // Bit-identical to the upstream `-f64::NAN`, without the unsupported
      // compile-time float negation.
      const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);

      const BITS: u32 = 64;
      const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
      const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
      const SIG_MASK: Self::Int = Self::MANTISSA_MASK;

      fn to_bits(self) -> Self::Int {
          self.to_bits()
      }

      fn classify(self) -> FpCategory {
          self.classify()
      }
  }

  impl FloatExt for f64 {
      #[inline]
      fn from_u64_bits(v: u64) -> Self {
          f64::from_bits(v)
      }

Exact derived-constant defaults from crate/traits.rs:

  /// The number of bits in the significand, *excluding* the hidden bit.
  const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;

  /// Number of bits in the exponent.
  const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

  /// The saturated (maximum bitpattern) value of the exponent, i.e. the infinite
  /// representation.
  ///
  /// This shifted fully right, use `EXP_MASK` for the shifted value.
  const EXP_SAT: u32 = (1 << Self::EXP_BITS) - 1;

  /// Signed version of `EXP_SAT` since we convert a lot.
  const INFINITE_POWER: i32 = Self::EXP_SAT as i32;

  /// The exponent bias value. This is also the maximum value of the exponent.
  const EXP_BIAS: u32 = Self::EXP_SAT >> 1;

  /// Minimum exponent value of normal values.
  const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Together with the f64-instance lines `BITS = 64` and
`SIG_TOTAL_BITS = Self::MANTISSA_DIGITS` in the preceding excerpt, these
defaults derive SIG_BITS, EXP_MIN, and INFINITE_POWER from the primitive
mantissa-digit constant rather than introducing independent parameters.

Exact asserted-conversion excerpt from crate/dec2flt/mod.rs:

  #[inline]
  // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
  // `charon::opaque` makes this entire asserted conversion external: both the
  // unchanged `debug_assert!` and the unchanged cast below are in the opaque
  // body. The callers, their fast-path guards, and their surrounding
  // computation remain mechanically visible. A corresponding model binding
  // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
  // exact binary64 conversion at or below that bound.
  #[charon::opaque]
  fn from_u64(v: u64) -> Self {
      debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
      v as _
  }

Here MAX_MANTISSA_FAST_PATH is the retained default 1 << 53.  The attribute is
attached to the function item, so the generated external stands for the whole
method, not merely the cast.  In the enabled-debug configuration the source
succeeds only when v <= 2^53; above it the assertion fails before the cast. On
the successful branch every integer is exactly representable, so the source
cast and the model rounder return the same word.

Exact power-table and assembly excerpts from crate/dec2flt/mod.rs:

  /// Maximum mantissa for the fast-path (`1 << 53` for f64).
  const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;

  const MAX_EXPONENT_FAST_PATH: i64 = 22;
  const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
  const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;

  fn pow10_fast_path(exponent: usize) -> Self {
      // These bit patterns are exactly the source table's rounded binary64
      // literals.  The match is the same masked lookup; it merely keeps float
      // constants out of Aeneas's unsupported constant interpreter.
      match exponent & 31 {
          0 => f64::from_bits(0x3FF0_0000_0000_0000),
          1 => f64::from_bits(0x4024_0000_0000_0000),
          2 => f64::from_bits(0x4059_0000_0000_0000),
          3 => f64::from_bits(0x408F_4000_0000_0000),
          4 => f64::from_bits(0x40C3_8800_0000_0000),
          5 => f64::from_bits(0x40F8_6A00_0000_0000),
          6 => f64::from_bits(0x412E_8480_0000_0000),
          7 => f64::from_bits(0x4163_12D0_0000_0000),
          8 => f64::from_bits(0x4197_D784_0000_0000),
          9 => f64::from_bits(0x41CD_CD65_0000_0000),
          10 => f64::from_bits(0x4202_A05F_2000_0000),
          11 => f64::from_bits(0x4237_4876_E800_0000),
          12 => f64::from_bits(0x426D_1A94_A200_0000),
          13 => f64::from_bits(0x42A2_309C_E540_0000),
          14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
          15 => f64::from_bits(0x430C_6BF5_2634_0000),
          16 => f64::from_bits(0x4341_C379_37E0_8000),
          17 => f64::from_bits(0x4376_3457_85D8_A000),
          18 => f64::from_bits(0x43AB_C16D_674E_C800),
          19 => f64::from_bits(0x43E1_58E4_6091_3D00),
          20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
          21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
          22 => f64::from_bits(0x4480_F0CF_064D_D592),
          _ => f64::from_bits(0),
      }
  }

  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

Exact native-call excerpt from crate/dec2flt/decimal.rs:

  fn can_use_fast_path<F: Lemire>(&self) -> bool {
      F::MIN_EXPONENT_FAST_PATH <= self.exponent
          && self.exponent <= F::MAX_EXPONENT_DISGUISED_FAST_PATH
          && self.mantissa <= F::MAX_MANTISSA_FAST_PATH
          && !self.many_digits
  }

  if !self.can_use_fast_path::<F>() {
      return None;
  }

  let value = if self.exponent <= F::MAX_EXPONENT_FAST_PATH {
      // normal fast path
      let value = F::from_u64(self.mantissa);
      if self.exponent < 0 {
          // Explicit trait calls preserve Rust arithmetic and resolve
          // the generic output type that Charon leaves ambiguous.
          core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
      } else {
          core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
      }
  } else {
      // disguised fast path
      let shift = self.exponent - F::MAX_EXPONENT_FAST_PATH;
      let mantissa = self.mantissa.checked_mul(INT_POW10[shift as usize])?;
      if mantissa > F::MAX_MANTISSA_FAST_PATH {
          return None;
      }
      core::ops::Mul::mul(
          F::from_u64(mantissa),
          F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
      )
  };

  if self.negative {
      Some(core::ops::Neg::neg(value))
  } else {
      Some(value)
  }

The preceding can_use_fast_path body, together with
MAX_MANTISSA_FAST_PATH = 1 << SIG_TOTAL_BITS and SIG_TOTAL_BITS = 53 for f64,
requires the exponent to lie between -22 and 37, the input mantissa to be at
most 2^53, and many_digits to be false. Consequently an ordinary arithmetic
call has a from_u64 operand in 0..=2^53. In its negative-exponent arm,
`-self.exponent` lies in 1..=22; in its nonnegative arm, `self.exponent` lies
in 0..=22. The disguised branch checks its multiplied mantissa against 2^53
before from_u64 and uses table index 22. The paired statement
Binary64NativeCallDomain does not assert this source reachability. It says
conditionally that a from_u64 argument at most 2^53 succeeds with a finite,
non-NaN word and that a table index at most 22 succeeds with a positive,
nonzero, finite, non-NaN word. Applying that conditional statement to the
guards just derived establishes those properties for the actual ordinary and
disguised calls, and in particular establishes that every executed divisor is
nonzero.

Exact special-value excerpt from crate/dec2flt/parse.rs:

  let float = match (register, len) {
      (INF_3, 3) => F::INFINITY,
      (INF_8, 8) => F::INFINITY,
      (NAN, 3) => F::NAN,
      _ => return None,
  };

  if negative { Some(-float) } else { Some(float) }

Thus the executed special route is INFINITY or NAN followed by conditional
negation; it does not select NEG_INFINITY or NEG_NAN directly.

The number helper has the exact source body

  pub fn parse_number(s: &[u8]) -> Option<Decimal> {
      if let Some((float, rest)) = parse_partial_number(s) {
          if rest == s.len() {
              return Some(float);
          }
      }
      None
  }

It returns only the Decimal produced by parse_partial_number; there is no
float type parameter or float operation at this boundary.

Exact dispatcher excerpts from crate/dec2flt/mod.rs
---------------------------------------------------

The entry of `dec2flt_with_trace` strips at most one leading sign, rejects
empty and sign-only inputs, calls `parse_number` on the unsigned body, and
calls `parse_inf_nan` only when `parse_number` returns `None`:

  /// Run the actual dispatcher while retaining its approved internal observations.
  pub fn dec2flt_with_trace<
      'a,
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {
          return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
      };
      let negative = c == b'-';
      if c == b'-' || c == b'+' {
          body = &body[1..];
      }
      if body.is_empty() {
          return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
      }

      let parse_number_result = parse_number(body);
      let parsed = match parse_number_result {
          Some(r) => r,
          None => {
              let parse_inf_nan_result = parse_inf_nan(body, negative);
              return match parse_inf_nan_result {
                  Some(value) => (
                      Ok(value),
                      Dec2FltTrace::Special {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                          result: value,
                      },
                  ),
                  None => (
                      Err(pfe_invalid()),
                      Dec2FltTrace::Invalid {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                      },
                  ),
              };
          }
      };

Thus every `Err` arm shown here returns before `parsed` is available and before
the native, integer, slow, assembly, or final-negation code below it can run.
On a numeric result, the lexical sign is copied into the parsed record before
the native attempt, whose successful result also returns before raw-pair
assembly:

      let mut num = parsed;
      num.negative = negative;
      if !cfg!(feature = "optimize_for_size") {
          let fast_path_result = num.try_fast_path::<F>();
          if let Some(value) = fast_path_result {
              return (
                  Ok(value),
                  Dec2FltTrace::FastPath {
                      body,
                      negative,
                      parse_number_result,
                      fast_path_input: num,
                      fast_path_result,
                      result: value,
                  },
              );
          }
      }

If the native attempt does not return, the selected raw pair is assembled and
the source then conditionally negates it according to the lexical-sign flag:

      let selected_pair = fp;
      // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
      // it neither changes the selected pair nor introduces a new branch or call.
      let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
      let assembly_result = biased_fp_to_float::<F>(fp);
      let lexical_sign_applied = num.negative;
      let result = if lexical_sign_applied {
          core::ops::Neg::neg(assembly_result)
      } else {
          assembly_result
      };

The public `dec2flt` executes that same route and returns its result projection;
it does not reimplement or reorder any parsing or float operation:

  /// Converts a decimal string into a floating point number.
  #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
  pub fn dec2flt<
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &str,
  ) -> Result<F, ParseFloatError> {
      // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
      // clause admits exactly the same instances and lets Charon resolve the
      // explicit, source-equivalent final negation.
      // The public function is now exactly the result projection of the single
      // instrumented implementation.  No conversion step is duplicated, and
      // discarding the trace cannot affect Rust evaluation or the returned bits.
      dec2flt_with_trace::<F>(s).0
  }

The integer-tier helper has the source type and exact executable excerpts
below (long explanatory comments are elided). In particular it returns a raw
BiasedFp and contains no from_u64 cast, primitive float multiplication,
division, negation, or from_bits call:

  pub fn compute_float<F: Float>(q: i64, mut w: u64) -> BiasedFp {
      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);
      let fp_error = BiasedFp::zero_pow2(-1);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if w == 0 || q < F::SMALLEST_POWER_OF_TEN as i64 {
          return fp_zero;
      } else if q > F::LARGEST_POWER_OF_TEN as i64 {
          return fp_inf;
      }
      // Normalize our significant digits, so the most-significant bit is set.
      let lz = w.leading_zeros();
      w <<= lz;
      let (lo, hi) = compute_product_approx(q, w, F::SIG_BITS as usize + 3);
      if lo == 0xFFFF_FFFF_FFFF_FFFF {
          let inside_safe_exponent = (q >= -27) && (q <= 55);
          if !inside_safe_exponent {
              return fp_error;
          }
      }
      let upperbit = (hi >> 63) as i32;
      let mut mantissa = hi >> (upperbit + 64 - F::SIG_BITS as i32 - 3);
      let mut power2 = power(q as i32) + upperbit - lz as i32 - F::EXP_MIN + 1;
      if power2 <= 0 {
          if -power2 + 1 >= 64 {
              // Have more than 64 bits below the minimum exponent, must be 0.
              return fp_zero;
          }
          // Have a subnormal value.
          mantissa >>= -power2 + 1;
          mantissa += mantissa & 1;
          mantissa >>= 1;
          power2 = (mantissa >= (1_u64 << F::SIG_BITS)) as i32;
          return BiasedFp { m: mantissa, p_biased: power2 };
      }
      // Need to handle rounding ties. Normally, we need to round up,
      // but if we fall right in between and we have an even basis, we
      // need to round down.
      if lo <= 1
          && q >= F::MIN_EXPONENT_ROUND_TO_EVEN as i64
          && q <= F::MAX_EXPONENT_ROUND_TO_EVEN as i64
          && mantissa & 0b11 == 0b01
          && (mantissa << (upperbit + 64 - F::SIG_BITS as i32 - 3)) == hi
      {
          // Zero the lowest bit, so we don't round up.
          mantissa &= !1_u64;
      }
      // Round-to-even, then shift the significant digits into place.
      mantissa += mantissa & 1;
      mantissa >>= 1;
      if mantissa >= (2_u64 << F::SIG_BITS) {
          // Rounding up overflowed, so the carry bit is set. Set the
          // mantissa to 1 (only the implicit, hidden bit is set) and
          // increase the exponent.
          mantissa = 1_u64 << F::SIG_BITS;
          power2 += 1;
      }
      // Zero out the hidden bit.
      mantissa &= !(1_u64 << F::SIG_BITS);
      if power2 >= F::INFINITE_POWER {
          // Exponent is above largest normal value, must be infinite.
          return fp_inf;
      }
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact slow-tier source body from crate/dec2flt/slow.rs:

  pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {
      const MAX_SHIFT: usize = 60;
      const NUM_POWERS: usize = 19;
      const POWERS: [u8; 19] =
          [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];

      let get_shift = |n| {
          if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }
      };

      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);

      let mut d = parse_decimal_seq(s);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if d.num_digits == 0 || d.decimal_point < -324 {
          return fp_zero;
      } else if d.decimal_point >= 310 {
          return fp_inf;
      }
      let mut exp2 = 0_i32;
      let mut loop_result = None;
      // Shift right toward (1/2 ... 1].
      while d.decimal_point > 0 && loop_result.is_none() {
          let n = d.decimal_point as usize;
          let shift = get_shift(n);
          d.right_shift(shift);
          if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_zero);
          } else {
              exp2 += shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // Shift left toward (1/2 ... 1].
      while d.decimal_point <= 0 && loop_result.is_none() {
          let shift = if d.decimal_point == 0 {
              match d.digits[0] {
                  digit if digit >= 5 => break,
                  0 | 1 => 2,
                  _ => 1,
              }
          } else {
              get_shift((-d.decimal_point) as _)
          };
          d.left_shift(shift);
          if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_inf);
          } else {
              exp2 -= shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
      exp2 -= 1;
      while F::EXP_MIN > exp2 {
          let mut n = (F::EXP_MIN - exp2) as usize;
          if n > MAX_SHIFT {
              n = MAX_SHIFT;
          }
          d.right_shift(n);
          exp2 += n as i32;
      }
      if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
          return fp_inf;
      }
      // Shift the decimal to the hidden bit, and then round the value
      // to get the high mantissa+1 bits.
      d.left_shift(F::SIG_BITS as usize + 1);
      let mut mantissa = d.round();
      if mantissa >= (1_u64 << (F::SIG_BITS + 1)) {
          // Rounding up overflowed to the carry bit, need to
          // shift back to the hidden bit.
          d.right_shift(1);
          exp2 += 1;
          mantissa = d.round();
          if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
              return fp_inf;
          }
      }
      let mut power2 = exp2 - F::EXP_MIN + 1;
      if mantissa < (1_u64 << F::SIG_BITS) {
          power2 -= 1;
      }
      // Zero out all the bits above the explicit mantissa bits.
      mantissa &= (1_u64 << F::SIG_BITS) - 1;
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact final numeric-sign excerpt from crate/dec2flt/mod.rs:

  let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
  let assembly_result = biased_fp_to_float::<F>(fp);
  let lexical_sign_applied = num.negative;
  let result = if lexical_sign_applied {
      core::ops::Neg::neg(assembly_result)
  } else {
      assembly_result
  };

Thus a numeric execution that reaches the integer/slow selection route
assembles its selected pair with from_bits through biased_fp_to_float and only
then conditionally negates it. A successful try_fast_path returns earlier and
does not perform this assembly. compute_float and parse_long_mantissa produce
raw BiasedFp pairs and do not call from_u64, primitive float multiplication,
division, negation, or from_bits; they do, however, execute constants derived
from SIG_TOTAL_BITS before producing those pairs.

Retained structural-boundary evidence
-------------------------------------

Several adjacent structural bindings cite this same evidence record. Their
pinned library source identities are:

  core/src/num/mod.rs
    f0820f9dfb94999440c8cb4a349736fa21df7e5668e19b6b49e016ff67c05ce3
  core/src/option.rs
    7cf61204b05d98a95bc2e322d5fbfc1f4f91505109971917d9a7fb47151c50e6
  core/src/slice/mod.rs
    354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840
  core/src/str/mod.rs
    284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78

Exact ASCII-digit body from core/src/num/mod.rs:

  pub const fn is_ascii_digit(&self) -> bool {
      matches!(*self, b'0'..=b'9')
  }

Exact Option control-flow bodies from core/src/option.rs:

  fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
      match self {
          Some(v) => ControlFlow::Continue(v),
          None => ControlFlow::Break(None),
      }
  }

  fn from_residual(residual: Option<convert::Infallible>) -> Self {
      match residual {
          None => None,
      }
  }

Exact slice observation bodies from core/src/slice/mod.rs:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

Exact string-byte body from core/src/str/mod.rs:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }
reference/model-evidence/binary64-probe.rs

Open file

#![feature(float_masks)]

use std::num::FpCategory;

fn bits(label: &str, value: f64) {
    println!("{label}={:016x}", value.to_bits());
}

fn main() {
    println!("target_arch={}", std::env::consts::ARCH);
    println!("mantissa_digits={}", f64::MANTISSA_DIGITS);
    println!("exponent_mask={:016x}", f64::EXPONENT_MASK);
    println!("mantissa_mask={:016x}", f64::MANTISSA_MASK);
    bits("nan", f64::NAN);
    bits("infinity", f64::INFINITY);
    bits("neg_infinity", f64::NEG_INFINITY);

    for (label, value) in [
        ("nan_category", f64::NAN),
        ("infinity_category", f64::INFINITY),
        ("zero_category", 0.0),
        ("subnormal_category", f64::from_bits(1)),
        ("normal_category", 1.0),
    ] {
        let category = match value.classify() {
            FpCategory::Nan => "Nan",
            FpCategory::Infinite => "Infinite",
            FpCategory::Zero => "Zero",
            FpCategory::Subnormal => "Subnormal",
            FpCategory::Normal => "Normal",
        };
        println!("{label}={category}");
    }

    let payload_nan_word = 0x7ff0_0000_0000_0001_u64;
    println!(
        "from_bits_to_bits={:016x}",
        f64::from_bits(payload_nan_word).to_bits()
    );
    bits("neg_payload_nan", -f64::from_bits(payload_nan_word));
    bits("neg_zero", -0.0);

    bits("subnormal_tie_to_even_zero", f64::from_bits(1) * 0.5);
    bits("subnormal_tie_to_even_two", f64::from_bits(3) * 0.5);
    bits("normal_division", 1.0 / 10.0);
    bits("mul_negative_zero", -0.0 * 2.0);
    bits("div_negative_zero", -1.0 / f64::INFINITY);
    bits("div_negative_infinity", 1.0 / -0.0);
    bits("mul_overflow", f64::MAX * (1.0 + f64::EPSILON));
    println!("mul_zero_infinity_is_nan={}", (0.0 * f64::INFINITY).is_nan());
    println!("div_zero_zero_is_nan={}", (0.0_f64 / 0.0_f64).is_nan());
    println!("mul_nan_is_nan={}", (f64::NAN * 1.0).is_nan());

    bits("cast_2_pow_53", (1_u64 << 53) as f64);
    bits("cast_2_pow_53_plus_1", ((1_u64 << 53) + 1) as f64);
}
reference/model-evidence/native-boundary.txt

Open file

Native boundary inventory for Binary64Model

Reproduction command (repository root):
  python3 .trellis/scripts/pv_modeling.py inspect-native .

Tool identity for this reproduction:
  Python 3.14.4
  .trellis/scripts/pv_modeling.py
  sha256 915b29822cb4c47b70dabb1dc011514641deb2e428b62347fc31aa898de5e0d4

Top-level result:
  declaration_count: 24

The complete raw inspect-native records for the fourteen F64 externals follow.
They are copied from the command's complete index; no scratch artifact is needed
to review them.

[
  {
    "name": "F64.Insts.CoreCloneClone.clone",
    "extracted_signature": ": F64 → Result F64",
    "rust_symbol": "core::clone::impls::{impl core::clone::Clone for f64}::clone",
    "raw_declaration_sha256": "5eaad5fb9af034045cf0dafed5af85445fe4af9a78958259a15a1faddd1e8f05",
    "source_utf8": "/-- [core::clone::impls::{impl core::clone::Clone for f64}::clone]:\n    Source: '/rustc/library/core/src/clone.rs', lines 698:20-698:43\n    Name pattern: [core::clone::impls::{core::clone::Clone<f64>}::clone]\n    Visibility: public -/\n@[rust_fun \"core::clone::impls::{core::clone::Clone<f64>}::clone\"]\naxiom F64.Insts.CoreCloneClone.clone : F64 → Result F64\n"
  },
  {
    "name": "core.f64.F64.MANTISSA_DIGITS",
    "extracted_signature": ": Result Std.U32",
    "rust_symbol": "core::f64::{f64}::MANTISSA_DIGITS",
    "raw_declaration_sha256": "42b1b0c4d2c2bbc7271748fc78c518391f55bf6517c643667a6561a0ac6e771c",
    "source_utf8": "/-- [core::f64::{f64}::MANTISSA_DIGITS]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 412:4-412:34\n    Name pattern: [core::f64::{f64}::MANTISSA_DIGITS]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::MANTISSA_DIGITS\"]\naxiom core.f64.F64.MANTISSA_DIGITS : Result Std.U32\n"
  },
  {
    "name": "core.f64.F64.NAN",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::NAN",
    "raw_declaration_sha256": "a18685a80db5dbebe39151c7375a0470bb3905fe1228e5598a995a1cf017a768",
    "source_utf8": "/-- [core::f64::{f64}::NAN]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 509:4-509:22\n    Name pattern: [core::f64::{f64}::NAN]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::NAN\"] axiom core.f64.F64.NAN : Result F64\n"
  },
  {
    "name": "core.f64.F64.INFINITY",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::INFINITY",
    "raw_declaration_sha256": "f905901e67400987f49cddd13a8768644bed9e7e3f79c3a81b34879f494a2816",
    "source_utf8": "/-- [core::f64::{f64}::INFINITY]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 512:4-512:27\n    Name pattern: [core::f64::{f64}::INFINITY]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::INFINITY\"]\naxiom core.f64.F64.INFINITY : Result F64\n"
  },
  {
    "name": "core.f64.F64.NEG_INFINITY",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::NEG_INFINITY",
    "raw_declaration_sha256": "85f6e517e439c2f2d5c59aa29884ff38b2381c2f5dd7cb14e7947b232efe7f0e",
    "source_utf8": "/-- [core::f64::{f64}::NEG_INFINITY]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 515:4-515:31\n    Name pattern: [core::f64::{f64}::NEG_INFINITY]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::NEG_INFINITY\"]\naxiom core.f64.F64.NEG_INFINITY : Result F64\n"
  },
  {
    "name": "core.f64.F64.EXPONENT_MASK",
    "extracted_signature": ": Result Std.U64",
    "rust_symbol": "core::f64::{f64}::EXPONENT_MASK",
    "raw_declaration_sha256": "f1054e64392d8f9306e8c69015f0b521d9f387edda8458a3bae4773606f46a71",
    "source_utf8": "/-- [core::f64::{f64}::EXPONENT_MASK]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 615:4-615:32\n    Name pattern: [core::f64::{f64}::EXPONENT_MASK]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::EXPONENT_MASK\"]\naxiom core.f64.F64.EXPONENT_MASK : Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.MANTISSA_MASK",
    "extracted_signature": ": Result Std.U64",
    "rust_symbol": "core::f64::{f64}::MANTISSA_MASK",
    "raw_declaration_sha256": "dc3517faa141b7a7a016e9f73930af3c9af23d3e6d06874440d99eabbc846538",
    "source_utf8": "/-- [core::f64::{f64}::MANTISSA_MASK]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 637:4-637:32\n    Name pattern: [core::f64::{f64}::MANTISSA_MASK]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::MANTISSA_MASK\"]\naxiom core.f64.F64.MANTISSA_MASK : Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.classify",
    "extracted_signature": ": F64 → Result core.num.FpCategory",
    "rust_symbol": "core::f64::{f64}::classify",
    "raw_declaration_sha256": "9fedd442d1d0403c4a7323d8f4e95c51b8bd39bf82d2d0ba357eaaf243e69b78",
    "source_utf8": "/-- [core::f64::{f64}::classify]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 782:4-782:45\n    Name pattern: [core::f64::{f64}::classify]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::classify\"]\naxiom core.f64.F64.classify : F64 → Result core.num.FpCategory\n"
  },
  {
    "name": "core.f64.F64.to_bits",
    "extracted_signature": ": F64 → Result Std.U64",
    "rust_symbol": "core::f64::{f64}::to_bits",
    "raw_declaration_sha256": "ddaec6bb7c36ba6445a5b0b8e52f841240ca2563004e8ce1255caf0e36ec22ae",
    "source_utf8": "/-- [core::f64::{f64}::to_bits]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 1223:4-1223:37\n    Name pattern: [core::f64::{f64}::to_bits]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::to_bits\"]\naxiom core.f64.F64.to_bits : F64 → Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.from_bits",
    "extracted_signature": ": Std.U64 → Result F64",
    "rust_symbol": "core::f64::{f64}::from_bits",
    "raw_declaration_sha256": "af8ee4387cea97d0a353a83d6280c03f3c9f739bf733af5bd39c29909f1b2b19",
    "source_utf8": "/-- [core::f64::{f64}::from_bits]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 1269:4-1269:42\n    Name pattern: [core::f64::{f64}::from_bits]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::from_bits\"]\naxiom core.f64.F64.from_bits : Std.U64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithMulF64F64.mul",
    "extracted_signature": ": F64 → F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Mul<f64, f64> for f64}::mul",
    "raw_declaration_sha256": "20d985819a981e9e80485ce169c1d045ea13fa8796e9314d5b621141aae6deec",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Mul<f64, f64> for f64}::mul]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 350:12-350:41\n    Name pattern: [core::ops::arith::{core::ops::arith::Mul<f64, f64, f64>}::mul]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Mul<f64, f64, f64>}::mul\"]\naxiom F64.Insts.CoreOpsArithMulF64F64.mul : F64 → F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithDivF64F64.div",
    "extracted_signature": ": F64 → F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Div<f64, f64> for f64}::div",
    "raw_declaration_sha256": "1ebb67b412d89328acb4c5dd53168e84fdf26be6cbe1ef49f5a27edbd84ada36",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Div<f64, f64> for f64}::div]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 515:12-515:41\n    Name pattern: [core::ops::arith::{core::ops::arith::Div<f64, f64, f64>}::div]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Div<f64, f64, f64>}::div\"]\naxiom F64.Insts.CoreOpsArithDivF64F64.div : F64 → F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithNegF64.neg",
    "extracted_signature": ": F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Neg<f64> for f64}::neg",
    "raw_declaration_sha256": "bbf93f24bd7cfbc72e47e8bb3a9acc6641df939ad6afafd9ba02c81fe27f7ed0",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Neg<f64> for f64}::neg]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 719:12-719:30\n    Name pattern: [core::ops::arith::{core::ops::arith::Neg<f64, f64>}::neg]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Neg<f64, f64>}::neg\"]\naxiom F64.Insts.CoreOpsArithNegF64.neg : F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64",
    "extracted_signature": ": Std.U64 → Result F64",
    "rust_symbol": "dec2flt_model::num::imp::dec2flt::{impl dec2flt_model::num::imp::dec2flt::Lemire<u64> for f64}::from_u64",
    "raw_declaration_sha256": "ad172bce0522e7e41bceb8c66a5adff962822ee8a9454dfd59b7019086797ba8",
    "source_utf8": "/-- [dec2flt_model::num::imp::dec2flt::{impl dec2flt_model::num::imp::dec2flt::Lemire<u64> for f64}::from_u64]:\n    Source: 'num/imp/../../dec2flt/mod.rs', lines 263:4-266:5\n    Visibility: public -/\naxiom F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64\n  : Std.U64 → Result F64\n"
  }
]
reference/model-evidence/setup-reproduction.txt

Open file

Fresh extraction and composition evidence for Preamble
======================================================

Scope
-----

This record identifies the preparation evidence frozen with this reopened
repository and records the model-support composition reproduced on 2026-09-24.
It is evidence about source, extraction, and composition, not evidence that any
supplied GOAL is true.

Pinned configuration and tools
------------------------------

modeling-input/extraction.json selects the single library crate `crate` with
empty Cargo, Charon, and Aeneas argument lists.  crate/Cargo.toml gives the
`default` feature an empty definition, leaves `optimize_for_size` disabled,
uses the development profile, and explicitly enables overflow checks.
extraction-evidence/COMMAND.json records target x86_64-unknown-linux-gnu,
nightly-2026-06-01, debug assertions, overflow checks, unwind panic handling,
64-bit pointers, and SSE2.

modeling-input/tool-identities.json pins these six executables by SHA-256:

  cargo   54e05dce8c9ca2f638cc3d87ec1a19425b5d0bf1f31aeb48cf4792aec5cadf27
  rustc   162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  rustdoc 2bf660d140310e28146e2c002dc6fcabd957c0a3b740be0419e6f8e5a9c87523
  Charon  6490034f368ce98f3e7ae5a28bf71ed56d03bdf1e3712e71376b96fc55baeade
  Aeneas  9f446d2aaf59e8e705e36d05cb993f1c6ab0e97f8dc6fd2f19907a86ede30922
  Lean    3e0d0d3d801675359f2d4cf9815bfdb417b20b92fdd9d48b3b14c95bbae28bbf

Fresh extraction
----------------

The authoritative reproduction command in modeling-input/manifest.json is:

  python3 .trellis/scripts/pv_modeling.py check-native . --fresh

extraction-evidence/COMMAND.json records the exact argv, environment, and
working directory for every step.  extraction-evidence/RESULT.json records
exit status 0 for rustc identity, Charon/Cargo extraction, Cargo metadata,
Cargo cfg, and Aeneas.  Its primary run produced generated Lean SHA-256:

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9

The same digest is recorded for both `audited_sha256` and `native_sha256` in
modeling-input/manifest.json, whose `byte_identical` field is true, and is the
digest of this repository's generated.lean.  The manifest's accepted setup and
adaptation audits record the successful uncached Cargo, Charon, and Aeneas
checks, the absence of source placeholders, and the exact 24-external native
boundary.  In particular, the corrected source basis is:

  c42107d27bc47c02e4beb4d6db4c47879aecb68a175ab67f7e6c5d5e866a2402c06583f9e94b467095cf9aff1a26a4857650ace006061c1ca5e4c441747ef622

The pinned compatibility report modeling-input/axiom-compatibility.json has
SHA-256

  473825c0fe635e1abc7a734a2035f5df20ed4fe7053403ef2fb6833d7101a016

and checks 2,225 declarations.  It reports no unapproved axiom.  Its only
pending group contains 64 declarations downstream of the absent raw F64
carrier and external operations, exactly the boundary supplied by the authored
model-support layer; the raw extractor output contains no proof placeholder.

External boundary
-----------------

The reproducible command

  python3 .trellis/scripts/pv_modeling.py inspect-native .

returns exactly 24 declarations: fourteen F64 operations, four U64 bit
operations, and six byte/Option/slice/string operations.  Their complete
records are retained in reference/model-evidence/native-boundary.txt and the
structural-operation evidence files.  Tablet/model-support.json has exactly
one exact-signature binding for each declaration.  The whole opaque
`Lemire::from_u64` method has raw declaration SHA-256

  ad172bce0522e7e41bceb8c66a5adff962822ee8a9454dfd59b7019086797ba8

and covers source lines 263:4-266:5, including both the debug assertion and
the conversion.  It is not a cast-only boundary.

Composition and elaboration
---------------------------

After installing all 24 bindings, the exact command

  python3 .trellis/scripts/pv_modeling.py compose-native . --check

returned `matches=true`, `changed=false`, no mismatched files, raw extraction
hash

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9

and equal expected and actual Preamble hashes

  2bf9c25b895e20dd9efe782ae173e2b07b55020eed41a7d9b63b2ae9e1db007c.

The receipt reports 24 bindings, 47 authored definitions, and 170 extracted
modules.  Finally,

  python3 .trellis/scripts/check.py tablet

checked all 236 registered nodes against this composition and exited 0.  This
establishes complete composition and elaboration while leaving the 32 principal
GOAL proofs open for argument development as required.
reference/model-evidence/source-adaptation-delta.diff

Open file

--- upstream/dec2flt/common.rs
+++ crate/dec2flt/common.rs
@@ -14,4 +13,0 @@
-    /// Iteratively parse and consume digits from bytes.
-    ///
-    /// Returns the same bytes with consumed digits being elided. Breaks on invalid digits.
-    fn parse_digits(&self, func: impl FnMut(u8)) -> &Self;
@@ -38,16 +33,0 @@
-    #[inline]
-    fn parse_digits(&self, mut func: impl FnMut(u8)) -> &Self {
-        let mut s = self;
-
-        while let Some((c, rest)) = s.split_first() {
-            let c = c.wrapping_sub(b'0');
-            if c < 10 {
-                func(c);
-                s = rest;
-            } else {
-                break;
-            }
-        }
-
-        s
-    }
@@ -68 +48,4 @@
-#[derive(Debug, Copy, Clone, PartialEq, Eq, Default)]
+// Debug output is not an accepted public or trace observation.  Removing only
+// that implementation preserves the fields, computational derives, and every
+// algorithm operation independently of GOAL truth.
+#[derive(Copy, Clone, PartialEq, Eq, Default)]
--- upstream/dec2flt/decimal.rs
+++ crate/dec2flt/decimal.rs
@@ -28 +28,4 @@
-#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
+// Debug output is absent from the accepted observations.  Removing only that
+// implementation leaves all fields, computational derives, and parser
+// operations unchanged independently of GOAL truth.
+#[derive(Clone, Copy, Default, PartialEq, Eq)]
@@ -56 +59,11 @@
-    pub fn try_fast_path<F: Lemire>(&self) -> Option<F> {
+    pub fn try_fast_path<
+        F: Lemire
+            + core::ops::Div<Output = F>
+            + core::ops::Mul<Output = F>
+            + core::ops::Neg<Output = F>,
+    >(
+        &self,
+    ) -> Option<F> {
+        // `Lemire` already entails these three operator bounds through
+        // `Float`; spelling them directly changes no admitted type.  Charon
+        // needs the direct clauses to resolve each explicit call's `Output`.
@@ -73 +86,3 @@
-                value / F::pow10_fast_path((-self.exponent) as _)
+                // Explicit trait calls preserve Rust arithmetic and resolve
+                // the generic output type that Charon leaves ambiguous.
+                core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
@@ -75 +90 @@
-                value * F::pow10_fast_path(self.exponent as _)
+                core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
@@ -84 +99,4 @@
-            F::from_u64(mantissa) * F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _)
+            core::ops::Mul::mul(
+                F::from_u64(mantissa),
+                F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
+            )
@@ -87 +105,5 @@
-        if self.negative { Some(-value) } else { Some(value) }
+        if self.negative {
+            Some(core::ops::Neg::neg(value))
+        } else {
+            Some(value)
+        }
--- upstream/dec2flt/decimal_seq.rs
+++ crate/dec2flt/decimal_seq.rs
@@ -17 +17,4 @@
-#[derive(Clone, Debug, PartialEq)]
+// Debug output is absent from the accepted observations.  Removing only that
+// implementation preserves the representation, Clone/PartialEq behavior, and
+// every fallback operation independently of GOAL truth.
+#[derive(Clone, PartialEq)]
@@ -176 +179,2 @@
-        while (n >> shift) == 0 {
+        let mut all_zero = false;
+        while (n >> shift) == 0 && !all_zero {
@@ -181 +185,4 @@
-                return;
+                // The source returns here from inside the loop.  Recording the
+                // condition and returning immediately after the loop executes
+                // no intervening operation and preserves the unchanged value.
+                all_zero = true;
@@ -189,0 +197,3 @@
+        if all_zero {
+            return;
+        }
@@ -220,0 +231,51 @@
+// This is exactly the source reverse scan over the already-consumed prefix.
+// It is separate because Aeneas cannot join the loop while `parse_decimal_seq`
+// retains its other slice borrows.  The downward index has the same visitation
+// order and counts precisely the same zero bytes while ignoring dots.
+fn count_trailing_zeros(start: &[u8], consumed_len: usize) -> usize {
+    let mut n_trailing_zeros = 0;
+    let mut i = consumed_len;
+    let mut scanning = true;
+    while i != 0 && scanning {
+        let c = start[i - 1];
+        if c == b'0' || c == b'.' {
+            i -= 1;
+            if c == b'0' {
+                n_trailing_zeros += 1;
+            }
+        } else {
+            scanning = false;
+        }
+    }
+    n_trailing_zeros
+}
+
+// Equivalent to `ByteSlice::parse_digits(|digit| d.try_add_digit(digit))`.
+// An explicit index keeps the closure's mutable borrow out of the enclosing
+// parser context while retaining the same wrapping digit test and updates.
+fn parse_digits_into_seq<'a>(s: &'a [u8], d: &mut DecimalSeq) -> &'a [u8] {
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
+        d.try_add_digit(digit);
+        count += 1;
+    }
+    &s[count..]
+}
+
+// Equivalent to the source exponent `parse_digits` closure.  Bytes after the
+// first nondigit were ignored by the caller, so only the accumulated value is
+// returned; the 0x10000 guard and wrapping digit classification are identical.
+fn parse_decimal_exponent(s: &[u8]) -> i32 {
+    let mut exp_num = 0;
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
+        if exp_num < 0x10000 {
+            exp_num = 10 * exp_num + digit as i32;
+        }
+        count += 1;
+    }
+    exp_num
+}
+
@@ -226,2 +287,5 @@
-    while let Some((&b'0', s_next)) = s.split_first() {
-        s = s_next;
+    // Aeneas rejects the literal-pattern `while let`; this loop performs the
+    // same nonempty check, byte comparison, and one-byte consumption in the
+    // same order, with identical slice bounds.
+    while !s.is_empty() && s[0] == b'0' {
+        s = &s[1..];
@@ -230 +294 @@
-    s = s.parse_digits(|digit| d.try_add_digit(digit));
+    s = parse_digits_into_seq(s, &mut d);
@@ -232,2 +296,2 @@
-    if let Some((b'.', s_next)) = s.split_first() {
-        s = s_next;
+    if !s.is_empty() && s[0] == b'.' {
+        s = &s[1..];
@@ -237,2 +301,4 @@
-            while let Some((&b'0', s_next)) = s.split_first() {
-                s = s_next;
+            // As above, this is the source leading-zero loop written in the
+            // indexed form accepted by Aeneas.
+            while !s.is_empty() && s[0] == b'0' {
+                s = &s[1..];
@@ -250 +316 @@
-        s = s.parse_digits(|digit| d.try_add_digit(digit));
+        s = parse_digits_into_seq(s, &mut d);
@@ -256,8 +322,5 @@
-        let mut n_trailing_zeros = 0;
-        for &c in start[..(start.len() - s.len())].iter().rev() {
-            if c == b'0' {
-                n_trailing_zeros += 1;
-            } else if c != b'.' {
-                break;
-            }
-        }
+        let consumed_len = start.len() - s.len();
+        // Walking an index downward visits exactly the same bytes as
+        // `.iter().rev()` and stops on the same first nonzero nondot byte.  It
+        // also avoids the missing extracted `Iterator::rev` library field.
+        let n_trailing_zeros = count_trailing_zeros(start, consumed_len);
@@ -273 +336,4 @@
-    if let Some((&ch, s_next)) = s.split_first() {
+    // Indexed tests preserve `split_first`'s nonempty guard and byte order but
+    // avoid the loop-context joins Aeneas creates for nested slice patterns.
+    if !s.is_empty() {
+        let ch = s[0];
@@ -275,4 +341,7 @@
-            s = s_next;
-            let mut neg_exp = false;
-            if let Some((&ch, s_next)) = s.split_first() {
-                neg_exp = ch == b'-';
+            s = &s[1..];
+            let mut exp_sign = 1_i32;
+            if !s.is_empty() {
+                let ch = s[0];
+                if ch == b'-' {
+                    exp_sign = -1;
+                }
@@ -280 +349 @@
-                    s = s_next;
+                    s = &s[1..];
@@ -283,7 +352 @@
-            let mut exp_num = 0_i32;
-
-            s.parse_digits(|digit| {
-                if exp_num < 0x10000 {
-                    exp_num = 10 * exp_num + digit as i32;
-                }
-            });
+            let exp_num = parse_decimal_exponent(s);
@@ -291 +354,4 @@
-            d.decimal_point += if neg_exp { -exp_num } else { exp_num };
+            // `exp_num` is bounded by the source's 0x10000 guard, so this
+            // multiplication cannot overflow and equals the original Boolean
+            // choice between `-exp_num` and `exp_num` under checked arithmetic.
+            d.decimal_point += exp_sign * exp_num;
--- upstream/dec2flt/mod.rs
+++ crate/dec2flt/mod.rs
@@ -90 +90 @@
-use common::BiasedFp;
+pub use common::BiasedFp;
@@ -118,4 +118 @@
-    const MAX_EXPONENT_FAST_PATH: i64 = {
-        let log2_5 = f64::consts::LOG2_10 - 1.0;
-        (Self::SIG_TOTAL_BITS as f64 / log2_5) as i64
-    };
+    const MAX_EXPONENT_FAST_PATH: i64;
@@ -128,2 +125 @@
-    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 =
-        Self::MAX_EXPONENT_FAST_PATH + (Self::SIG_TOTAL_BITS as f64 / f64::consts::LOG2_10) as i64;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64;
@@ -144,0 +141,4 @@
+// The f16 Lemire instance is outside the exclusively f64 scope. Disabling it
+// leaves every retained f64 parser/helper/trace body, native decision, checked
+// operation, debug assertion, return value, and accepted observation unchanged.
+#[cfg(any())]
@@ -145,0 +146,7 @@
+    // These are the exact integer results of the upstream compile-time float
+    // formulae for `SIG_TOTAL_BITS = 11`: floor(11/log2(5)) = 4 and
+    // 4 + floor(11/log2(10)) = 7.  Concrete integers avoid unsupported const
+    // float arithmetic without changing either fast-path guard.
+    const MAX_EXPONENT_FAST_PATH: i64 = 4;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 7;
+
@@ -147,3 +154,11 @@
-        #[allow(clippy::use_self)]
-        const TABLE: [f16; 8] = [1e0, 1e1, 1e2, 1e3, 1e4, 0.0, 0.0, 0.];
-        TABLE[exponent & 7]
+        // Each integer is the exact IEEE encoding of the corresponding
+        // upstream table literal; the masked lookup and fallback zeros are
+        // unchanged.  Aeneas cannot translate arrays containing float values.
+        match exponent & 7 {
+            0 => f16::from_bits(0x3C00),
+            1 => f16::from_bits(0x4900),
+            2 => f16::from_bits(0x5640),
+            3 => f16::from_bits(0x63D0),
+            4 => f16::from_bits(0x70E2),
+            _ => f16::from_bits(0),
+        }
@@ -152,0 +168,4 @@
+    // This method is exactly the upstream primitive `u64 as f16` conversion.
+    // Charon extracts the cast, but Aeneas reports it unreachable; making only
+    // this primitive boundary opaque preserves all guards and dispatcher logic.
+    #[charon::opaque]
@@ -158,0 +178,4 @@
+// The f32 Lemire instance is likewise unused by the retained f64
+// specialization, so disabling it cannot affect any retained body or observed
+// f64 execution independently of the correctness GOALs.
+#[cfg(any())]
@@ -159,0 +183,4 @@
+    // Exact upstream formula results for `SIG_TOTAL_BITS = 24`.
+    const MAX_EXPONENT_FAST_PATH: i64 = 10;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 17;
+
@@ -161,4 +188,16 @@
-        #[allow(clippy::use_self)]
-        const TABLE: [f32; 16] =
-            [1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 0., 0., 0., 0., 0.];
-        TABLE[exponent & 15]
+        // Bit constructors preserve the exact table values and masked lookup,
+        // while avoiding Aeneas's unsupported float-valued array constants.
+        match exponent & 15 {
+            0 => f32::from_bits(0x3F80_0000),
+            1 => f32::from_bits(0x4120_0000),
+            2 => f32::from_bits(0x42C8_0000),
+            3 => f32::from_bits(0x447A_0000),
+            4 => f32::from_bits(0x461C_4000),
+            5 => f32::from_bits(0x47C3_5000),
+            6 => f32::from_bits(0x4974_2400),
+            7 => f32::from_bits(0x4B18_9680),
+            8 => f32::from_bits(0x4CBE_BC20),
+            9 => f32::from_bits(0x4E6E_6B28),
+            10 => f32::from_bits(0x5015_02F9),
+            _ => f32::from_bits(0),
+        }
@@ -167,0 +207,4 @@
+    // This is exactly the source `u64 as f32` conversion.  The narrow opaque
+    // boundary is required because Aeneas rejects the primitive cast itself;
+    // its input guard and every caller remain transparent.
+    #[charon::opaque]
@@ -174,0 +218,4 @@
+    // Exact upstream formula results for `SIG_TOTAL_BITS = 53`.
+    const MAX_EXPONENT_FAST_PATH: i64 = 22;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;
+
@@ -176,5 +223,29 @@
-        const TABLE: [f64; 32] = [
-            1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13, 1e14, 1e15,
-            1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22, 0., 0., 0., 0., 0., 0., 0., 0., 0.,
-        ];
-        TABLE[exponent & 31]
+        // These bit patterns are exactly the source table's rounded binary64
+        // literals.  The match is the same masked lookup; it merely keeps float
+        // constants out of Aeneas's unsupported constant interpreter.
+        match exponent & 31 {
+            0 => f64::from_bits(0x3FF0_0000_0000_0000),
+            1 => f64::from_bits(0x4024_0000_0000_0000),
+            2 => f64::from_bits(0x4059_0000_0000_0000),
+            3 => f64::from_bits(0x408F_4000_0000_0000),
+            4 => f64::from_bits(0x40C3_8800_0000_0000),
+            5 => f64::from_bits(0x40F8_6A00_0000_0000),
+            6 => f64::from_bits(0x412E_8480_0000_0000),
+            7 => f64::from_bits(0x4163_12D0_0000_0000),
+            8 => f64::from_bits(0x4197_D784_0000_0000),
+            9 => f64::from_bits(0x41CD_CD65_0000_0000),
+            10 => f64::from_bits(0x4202_A05F_2000_0000),
+            11 => f64::from_bits(0x4237_4876_E800_0000),
+            12 => f64::from_bits(0x426D_1A94_A200_0000),
+            13 => f64::from_bits(0x42A2_309C_E540_0000),
+            14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
+            15 => f64::from_bits(0x430C_6BF5_2634_0000),
+            16 => f64::from_bits(0x4341_C379_37E0_8000),
+            17 => f64::from_bits(0x4376_3457_85D8_A000),
+            18 => f64::from_bits(0x43AB_C16D_674E_C800),
+            19 => f64::from_bits(0x43E1_58E4_6091_3D00),
+            20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
+            21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
+            22 => f64::from_bits(0x4480_F0CF_064D_D592),
+            _ => f64::from_bits(0),
+        }
@@ -183,0 +255,8 @@
+    // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
+    // `charon::opaque` makes this entire asserted conversion external: both the
+    // unchanged `debug_assert!` and the unchanged cast below are in the opaque
+    // body. The callers, their fast-path guards, and their surrounding
+    // computation remain mechanically visible. A corresponding model binding
+    // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
+    // exact binary64 conversion at or below that bound.
+    #[charon::opaque]
@@ -209,5 +288,80 @@
-/// Converts a decimal string into a floating point number.
-#[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
-pub fn dec2flt<F: Lemire>(s: &str) -> Result<F, ParseFloatError> {
-    let mut s = s.as_bytes();
-    let Some(&c) = s.first() else { return Err(pfe_empty()) };
+/// Observable control-flow record for a dispatcher execution.
+///
+/// These variants add no decisions to the conversion: each stores values
+/// already computed at the corresponding source branch.  In particular, the
+/// first component returned by `dec2flt_with_trace` is the ordinary parser
+/// result, so projecting it preserves every public source observation without
+/// assuming any correctness goal.
+pub enum Dec2FltTrace<'a, F> {
+    /// The original string was empty; no helper was called.
+    EmptyInput,
+    /// Removing one lexical sign left an empty body; no helper was called.
+    SignOnly { body: &'a [u8], negative: bool },
+    /// Both lexical helpers returned `None`; no raw pair was selected.
+    Invalid {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        parse_inf_nan_result: Option<F>,
+    },
+    /// The special helper supplied the directly returned value; no pair was selected.
+    Special {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        parse_inf_nan_result: Option<F>,
+        result: F,
+    },
+    /// The ordinary native shortcut supplied the directly returned value.
+    FastPath {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        fast_path_input: decimal::Decimal,
+        fast_path_result: Option<F>,
+        result: F,
+    },
+    /// The integer/slow path selected and assembled one raw pair.
+    Assembled(Dec2FltAssemblyTrace<'a, F>),
+}
+
+/// Full observation record for the dispatcher path that performs final assembly.
+pub struct Dec2FltAssemblyTrace<'a, F> {
+    pub body: &'a [u8],
+    pub negative: bool,
+    pub parse_number_result: Option<decimal::Decimal>,
+    pub fast_path_input: decimal::Decimal,
+    pub fast_path_result: Option<F>,
+    pub first_compute_exponent: i64,
+    pub first_compute_mantissa: u64,
+    pub first_compute_result: BiasedFp,
+    pub second_compute_guard: bool,
+    pub second_compute_exponent: Option<i64>,
+    pub second_compute_mantissa: Option<u64>,
+    pub second_compute_result: Option<BiasedFp>,
+    pub second_equals_first: Option<bool>,
+    pub forced_deferral: bool,
+    pub post_comparison_pair: BiasedFp,
+    pub slow_path_guard: bool,
+    pub slow_path_result: Option<BiasedFp>,
+    pub selected_pair: BiasedFp,
+    pub assembled_word: u64,
+    pub assembly_result: F,
+    pub lexical_sign_applied: bool,
+    pub result: F,
+}
+
+/// Run the actual dispatcher while retaining its approved internal observations.
+pub fn dec2flt_with_trace<
+    'a,
+    F: Lemire
+        + core::ops::Div<Output = F>
+        + core::ops::Mul<Output = F>
+        + core::ops::Neg<Output = F>,
+>(
+    s: &'a str,
+) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
+    let mut body = s.as_bytes();
+    let Some(&c) = body.first() else {
+        return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
+    };
@@ -216 +370 @@
-        s = &s[1..];
+        body = &body[1..];
@@ -218,2 +372,2 @@
-    if s.is_empty() {
-        return Err(pfe_invalid());
+    if body.is_empty() {
+        return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
@@ -222 +376,2 @@
-    let mut num = match parse_number(s) {
+    let parse_number_result = parse_number(body);
+    let parsed = match parse_number_result {
@@ -224,2 +379,24 @@
-        None if let Some(value) = parse_inf_nan(s, negative) => return Ok(value),
-        None => return Err(pfe_invalid()),
+        None => {
+            let parse_inf_nan_result = parse_inf_nan(body, negative);
+            return match parse_inf_nan_result {
+                Some(value) => (
+                    Ok(value),
+                    Dec2FltTrace::Special {
+                        body,
+                        negative,
+                        parse_number_result,
+                        parse_inf_nan_result,
+                        result: value,
+                    },
+                ),
+                None => (
+                    Err(pfe_invalid()),
+                    Dec2FltTrace::Invalid {
+                        body,
+                        negative,
+                        parse_number_result,
+                        parse_inf_nan_result,
+                    },
+                ),
+            };
+        }
@@ -226,0 +404,2 @@
+
+    let mut num = parsed;
@@ -229,2 +408,13 @@
-        if let Some(value) = num.try_fast_path::<F>() {
-            return Ok(value);
+        let fast_path_result = num.try_fast_path::<F>();
+        if let Some(value) = fast_path_result {
+            return (
+                Ok(value),
+                Dec2FltTrace::FastPath {
+                    body,
+                    negative,
+                    parse_number_result,
+                    fast_path_input: num,
+                    fast_path_result,
+                    result: value,
+                },
+            );
@@ -234,15 +424,27 @@
-    // If significant digits were truncated, then we can have rounding error
-    // only if `mantissa + 1` produces a different result. We also avoid
-    // redundantly using the Eisel-Lemire algorithm if it was unable to
-    // correctly round on the first pass.
-    let mut fp = compute_float::<F>(num.exponent, num.mantissa);
-    if num.many_digits
-        && fp.p_biased >= 0
-        && fp != compute_float::<F>(num.exponent, num.mantissa + 1)
-    {
-        fp.p_biased = -1;
-    }
-    // Unable to correctly round the float using the Eisel-Lemire algorithm.
-    // Fallback to a slower, but always correct algorithm.
-    if fp.p_biased < 0 {
-        fp = parse_long_mantissa::<F>(s);
+    let first_compute_exponent = num.exponent;
+    let first_compute_mantissa = num.mantissa;
+    let first_compute_result = compute_float::<F>(first_compute_exponent, first_compute_mantissa);
+    let mut fp = first_compute_result;
+
+    // This expands the source short-circuit conjunction without moving the
+    // checked `mantissa + 1`: that addition and the second helper call still
+    // occur exactly when `many_digits && fp.p_biased >= 0`.
+    let second_compute_guard = num.many_digits && fp.p_biased >= 0;
+    let mut second_compute_exponent = None;
+    let mut second_compute_mantissa = None;
+    let mut second_compute_result = None;
+    let mut second_equals_first = None;
+    let mut forced_deferral = false;
+    if second_compute_guard {
+        let exponent = num.exponent;
+        let mantissa = num.mantissa + 1;
+        let second = compute_float::<F>(exponent, mantissa);
+        let equal = fp == second;
+        second_compute_exponent = Some(exponent);
+        second_compute_mantissa = Some(mantissa);
+        second_compute_result = Some(second);
+        second_equals_first = Some(equal);
+        if !equal {
+            fp.p_biased = -1;
+            forced_deferral = true;
+        }
@@ -249,0 +452 @@
+    let post_comparison_pair = fp;
@@ -251,5 +454,69 @@
-    let mut float = biased_fp_to_float::<F>(fp);
-    if num.negative {
-        float = -float;
-    }
-    Ok(float)
+    let slow_path_guard = fp.p_biased < 0;
+    let mut slow_path_result = None;
+    if slow_path_guard {
+        // The exact slow-path input is the trace's common `body`; the guard
+        // records whether this call occurred, avoiding a duplicate live slice
+        // reference that Aeneas cannot join across this branch.
+        let replacement = parse_long_mantissa::<F>(body);
+        slow_path_result = Some(replacement);
+        fp = replacement;
+    }
+
+    let selected_pair = fp;
+    // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
+    // it neither changes the selected pair nor introduces a new branch or call.
+    let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
+    let assembly_result = biased_fp_to_float::<F>(fp);
+    let lexical_sign_applied = num.negative;
+    let result = if lexical_sign_applied {
+        core::ops::Neg::neg(assembly_result)
+    } else {
+        assembly_result
+    };
+
+    (
+        Ok(result),
+        Dec2FltTrace::Assembled(Dec2FltAssemblyTrace {
+            body,
+            negative,
+            parse_number_result,
+            fast_path_input: num,
+            fast_path_result: None,
+            first_compute_exponent,
+            first_compute_mantissa,
+            first_compute_result,
+            second_compute_guard,
+            second_compute_exponent,
+            second_compute_mantissa,
+            second_compute_result,
+            second_equals_first,
+            forced_deferral,
+            post_comparison_pair,
+            slow_path_guard,
+            slow_path_result,
+            selected_pair,
+            assembled_word,
+            assembly_result,
+            lexical_sign_applied,
+            result,
+        }),
+    )
+}
+
+/// Converts a decimal string into a floating point number.
+#[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
+pub fn dec2flt<
+    F: Lemire
+        + core::ops::Div<Output = F>
+        + core::ops::Mul<Output = F>
+        + core::ops::Neg<Output = F>,
+>(
+    s: &str,
+) -> Result<F, ParseFloatError> {
+    // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
+    // clause admits exactly the same instances and lets Charon resolve the
+    // explicit, source-equivalent final negation.
+    // The public function is now exactly the result projection of the single
+    // instrumented implementation.  No conversion step is duplicated, and
+    // discarding the trace cannot affect Rust evaluation or the returned bits.
+    dec2flt_with_trace::<F>(s).0
--- upstream/dec2flt/parse.rs
+++ crate/dec2flt/parse.rs
@@ -34,3 +34,6 @@
-        let num = s.read_u64();
-        if is_8digits(num) {
-            x = x.wrapping_mul(1_0000_0000).wrapping_add(parse_8digits(num));
+        // `chunk` is the source's local `num` under a nonconflicting name.
+        // The rename has no Rust effect and prevents the Lean backend from
+        // resolving `num.imp...` as a field projection on this local value.
+        let chunk = s.read_u64();
+        if is_8digits(chunk) {
+            x = x.wrapping_mul(1_0000_0000).wrapping_add(parse_8digits(chunk));
@@ -43 +46,6 @@
-    s = s.parse_digits(|digit| {
+    // This is the removed `ByteSlice::parse_digits` call specialized to its
+    // only parser use: identical wrapping digit classification, accumulator
+    // update, and first-nondigit stop, without an unsupported closure state.
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
@@ -45 +53,3 @@
-    });
+        count += 1;
+    }
+    s = &s[count..];
@@ -71,0 +82,38 @@
+// This is the source prefix scan isolated from `parse_partial_number` because
+// Aeneas cannot join its loop context while the enclosing function's other
+// slice borrows are live.  It visits the same bytes, in order, and performs
+// the identical checked `isize` subtraction for every leading dot or zero.
+fn adjust_many_digit_count(start: &[u8], mut n_digits: isize) -> isize {
+    let mut scan_index = 0;
+    let mut scanning = true;
+    while scan_index < start.len() && scanning {
+        let c = start[scan_index];
+        if c == b'.' || c == b'0' {
+            n_digits -= c.saturating_sub(b'0' - 1) as isize;
+            scan_index += 1;
+        } else {
+            scanning = false;
+        }
+    }
+    n_digits
+}
+
+// This is the source many-digit retry as a transparent helper.  Isolating its
+// rebased slices avoids an Aeneas context-join failure; both calls, the branch,
+// the offset arithmetic, and the explicit-exponent addition are unchanged.
+fn parse_many_digits(start: &[u8], int_end: &[u8], exp_number: i64) -> (u64, i64) {
+    let mut mantissa = 0;
+    let mut s = start;
+    try_parse_19digits(&mut s, &mut mantissa);
+    let mut exponent = if mantissa >= MIN_19DIGIT_INT {
+        int_end.offset_from(s)
+    } else {
+        s = &s[1..];
+        let before = s;
+        try_parse_19digits(&mut s, &mut mantissa);
+        -s.offset_from(before)
+    } as i64;
+    exponent += exp_number;
+    (mantissa, exponent)
+}
+
@@ -86,3 +134,10 @@
-    if matches!(s.first(), Some(&x) if x.is_ascii_digit()) {
-        *s_ref = s.parse_digits(|digit| {
-            // no overflows here, saturate well before overflow
+    // `matches!` with a guarded slice pattern triggers an Aeneas internal
+    // error.  This short-circuit test reads the same first byte exactly when
+    // it exists and therefore preserves both acceptance and evaluation order.
+    if !s.is_empty() && s[0].is_ascii_digit() {
+        // Specialized form of the source digit callback.  `count` advances
+        // exactly once per accepted byte and the bound keeps every checked
+        // exponent operation in the same safe range as the source.
+        let mut count = 0;
+        while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+            let digit = s[count].wrapping_sub(b'0');
@@ -92 +147,3 @@
-        });
+            count += 1;
+        }
+        *s_ref = &s[count..];
@@ -155,9 +212,5 @@
-    let mut p = start;
-    while let Some((&c, p_next)) = p.split_first() {
-        if c == b'.' || c == b'0' {
-            n_digits -= c.saturating_sub(b'0' - 1) as isize;
-            p = p_next;
-        } else {
-            break;
-        }
-    }
+    // The indexed loop is equivalent to the source `while let split_first`:
+    // it tests nonemptiness before the same byte read and consumes one byte
+    // only on the two source continuation cases.  This avoids Aeneas's loop
+    // context mismatch without changing checked subtraction or slice bounds.
+    n_digits = adjust_many_digit_count(start, n_digits);
@@ -167,14 +220,3 @@
-        mantissa = 0;
-        let mut s = start;
-        try_parse_19digits(&mut s, &mut mantissa);
-        exponent = if mantissa >= MIN_19DIGIT_INT {
-            // big int
-            int_end.offset_from(s)
-        } else {
-            s = &s[1..];
-            let before = s;
-            try_parse_19digits(&mut s, &mut mantissa);
-            -s.offset_from(before)
-        } as i64;
-        // add back the explicit part
-        exponent += exp_number;
+        let retried = parse_many_digits(start, int_end, exp_number);
+        mantissa = retried.0;
+        exponent = retried.1;
--- upstream/dec2flt/slow.rs
+++ crate/dec2flt/slow.rs
@@ -48,0 +49 @@
+    let mut loop_result = None;
@@ -50 +51 @@
-    while d.decimal_point > 0 {
+    while d.decimal_point > 0 && loop_result.is_none() {
@@ -55 +56,7 @@
-            return fp_zero;
+            // The source returns `fp_zero` at this exact point.  Storing that
+            // result and terminating the loop performs no later loop update;
+            // the return below is therefore behavior-identical and avoids an
+            // Aeneas restriction on returns from nested loop translation.
+            loop_result = Some(fp_zero);
+        } else {
+            exp2 += shift as i32;
@@ -57 +64,3 @@
-        exp2 += shift as i32;
+    }
+    if let Some(result) = loop_result {
+        return result;
@@ -60 +69 @@
-    while d.decimal_point <= 0 {
+    while d.decimal_point <= 0 && loop_result.is_none() {
@@ -72 +81,6 @@
-            return fp_inf;
+            // This records the source's immediate `fp_inf` return.  Since the
+            // guarded loop exits before the exponent update, moving the return
+            // just below the loop preserves every state transition.
+            loop_result = Some(fp_inf);
+        } else {
+            exp2 -= shift as i32;
@@ -74 +88,3 @@
-        exp2 -= shift as i32;
+    }
+    if let Some(result) = loop_result {
+        return result;
--- upstream/traits.rs
+++ crate/traits.rs
@@ -11 +11 @@
-use crate::{f64, fmt, ops};
+use crate::{f64, ops};
@@ -14 +14,5 @@
-pub trait CastInto<T: Copy>: Copy {
+// All uses are through `Int`, which independently requires `Self: Copy`, and
+// every implementation here is a primitive Copy type.  Removing that redundant
+// supertrait changes no call or value but prevents Aeneas from emitting two
+// identically named `Copy` fields for `Self` and `T` in the Lean structure.
+pub trait CastInto<T: Copy> {
@@ -18,0 +23,4 @@
+// The accepted observations contain no formatting behavior.  Removing the
+// `Debug` supertrait changes neither the concrete primitive integer instances
+// nor any operation used by the algorithms, so it preserves the f64
+// specialization and every inventoried observation independently of GOAL truth.
@@ -23 +30,0 @@
-    + fmt::Debug
@@ -52 +59,6 @@
-int!(u16, u32, u64);
+// Only `u64` is the associated integer of the retained `f64` specialization.
+// The removed `u16`/`u32` instances served only the excluded `f16`/`f32`
+// implementations, so their removal changes no f64 public, helper, or trace
+// body, native decision, checked arithmetic, debug assertion, return value, or
+// accepted observation.
+int!(u64);
@@ -55,0 +68,6 @@
+// Formatting is outside every accepted public and trace observation. `Add`,
+// equality, ordering, default construction, and cloning are also unused by all
+// retained generic bodies; only `Copy`, `Mul`, `Div`, and `Neg` are required.
+// Removing those unused requirements admits the same f64 implementation and
+// changes no f64 body, native decision, checked arithmetic, debug assertion,
+// return value, or trace observation, independently of any GOAL's truth.
@@ -61,6 +78,0 @@
-    + ops::Add<Output = Self>
-    + fmt::Debug
-    + PartialEq
-    + PartialOrd
-    + Default
-    + Clone
@@ -134,4 +146 @@
-    const LARGEST_POWER_OF_TEN: i32 = {
-        let largest_pow2 = Self::EXP_BIAS + 1;
-        pow2_to_pow10(largest_pow2 as i64) as i32
-    };
+    const LARGEST_POWER_OF_TEN: i32;
@@ -175,19 +184 @@
-    fn integer_decode(self) -> (u64, i16, i8) {
-        let bits = self.to_bits();
-        let sign: i8 = if bits >> (Self::BITS - 1) == Self::Int::ZERO { 1 } else { -1 };
-        let mut exponent: i16 = ((bits & Self::EXP_MASK) >> Self::SIG_BITS).cast();
-        let mantissa = if exponent == 0 {
-            (bits & Self::SIG_MASK) << 1
-        } else {
-            (bits & Self::SIG_MASK) | (Self::Int::ONE << Self::SIG_BITS)
-        };
-        // Exponent bias + mantissa shift
-        exponent -= (Self::EXP_BIAS + Self::SIG_BITS) as i16;
-        (mantissa.into(), exponent, sign)
-    }
-}
-
-/// Solve for `b` in `10^b = 2^a`
-const fn pow2_to_pow10(a: i64) -> i64 {
-    let res = (a as f64) / f64::consts::LOG2_10;
-    res as i64
+    fn integer_decode(self) -> (u64, i16, i8);
@@ -196,0 +188,4 @@
+// The f16 implementation is outside the exclusively f64 scope. Disabling it
+// leaves every retained f64 public/helper/trace body and all of its decisions,
+// checked operations, assertions, return values, and observations unchanged.
+#[cfg(any())]
@@ -203 +198,4 @@
-    const NEG_NAN: Self = -Self::NAN;
+    // `from_bits` produces exactly the bit pattern obtained by negating the
+    // upstream canonical NaN.  This avoids Aeneas's unsupported float unop
+    // while preserving the constant, including its sign and payload bits.
+    const NEG_NAN: Self = f16::from_bits(0xFE00);
@@ -211,0 +210,2 @@
+    // Exact value of trunc(16 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 4;
@@ -223,0 +224,3 @@
+// `FloatExt for f16` is used only by the excluded f16 specialization; it is
+// irrelevant to all retained f64 computation and observations listed above.
+#[cfg(any())]
@@ -228,0 +232,16 @@
+
+    // Specializing the upstream default removes only unsupported associated-
+    // integer operator resolution; these are the same bit operations with
+    // `Self::Int = u16` and the same exponent-bias subtraction.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 15 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 10) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u16 << 10)
+        };
+        exponent -= 15 + 10;
+        (mantissa as u64, exponent, sign)
+    }
@@ -230,0 +250,3 @@
+// The f32 implementation is outside the exclusively f64 scope. Disabling it
+// does not alter any retained f64 computation, assertion, result, or trace.
+#[cfg(any())]
@@ -237 +259,3 @@
-    const NEG_NAN: Self = -f32::NAN;
+    // Bit-identical to the upstream `-f32::NAN`, without the unsupported
+    // compile-time float negation.
+    const NEG_NAN: Self = f32::from_bits(0xFFC0_0000);
@@ -245,0 +270,2 @@
+    // Exact value of trunc(128 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 38;
@@ -256,0 +283,3 @@
+// `FloatExt for f32` likewise has no use in any retained f64 body or accepted
+// observation and is disabled without changing f64 execution.
+#[cfg(any())]
@@ -261,0 +291,16 @@
+
+    // This is the upstream default after substituting `Self::Int = u32`;
+    // concreteness is needed only because Charon cannot resolve the generic
+    // associated-integer shifts and bit operators for Aeneas.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 31 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 23) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u32 << 23)
+        };
+        exponent -= 127 + 23;
+        (mantissa as u64, exponent, sign)
+    }
@@ -270 +315,3 @@
-    const NEG_NAN: Self = -Self::NAN;
+    // Bit-identical to the upstream `-f64::NAN`, without the unsupported
+    // compile-time float negation.
+    const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);
@@ -278,0 +326,2 @@
+    // Exact value of trunc(1024 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 308;
@@ -293,0 +343,16 @@
+    }
+
+    // This is the upstream default after substituting `Self::Int = u64`;
+    // it preserves every decoded field while avoiding unsupported generic
+    // associated-integer operator resolution.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 63 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 52) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u64 << 52)
+        };
+        exponent -= 1023 + 52;
+        (mantissa, exponent, sign)
reference/model-evidence/source-adaptation-delta.txt

Open file

Primary inventory and preservation analysis of the upstream-to-crate delta
============================================================================

Method and complete file inventory
----------------------------------

This record compares the supplied files in upstream/ with the frozen adapted
crate/.  It treats the sources and their control flow as primary evidence; it
does not use a prior route decision as semantic proof and makes no assertion
that a supplied GOAL is true.  The exact raw aggregate diff is retained as
reference/model-evidence/source-adaptation-delta.diff.  It was generated from
the repository root by this exact command (the for-list is the complete
LC_ALL=C-sorted upstream inventory, identical files contribute zero bytes,
labels are literal root-relative paths, hunks are concatenated in listed
order, status 1 is accepted as diff's expected ``files differ'' status, and
every other nonzero status aborts):

  export LC_ALL=C
  artifact=reference/model-evidence/source-adaptation-delta.diff
  : > "$artifact"
  saw_difference=0
  for supplied in \
    dec2flt/common.rs \
    dec2flt/decimal.rs \
    dec2flt/decimal_seq.rs \
    dec2flt/fpu.rs \
    dec2flt/lemire.rs \
    dec2flt/mod.rs \
    dec2flt/parse.rs \
    dec2flt/slow.rs \
    dec2flt/table.rs \
    traits.rs
  do
    if diff --unified=0 --label "upstream/$supplied" --label "crate/$supplied" \
        "upstream/$supplied" "crate/$supplied" >> "$artifact"; then
      :
    else
      diff_status=$?
      if [ "$diff_status" -ne 1 ]; then
        exit "$diff_status"
      fi
      saw_difference=1
    fi
  done
  test "$saw_difference" -eq 1
  sha256sum "$artifact"

The command used GNU diffutils 3.12 at /usr/bin/diff, whose SHA-256 is
dfab4814355b488934cf8c63ce96d94184ea3d9b5e4f9be50278ad8e080168f5.
Its actual final output was:

  fdf88cabfe40ce962d2bd5eda22eb5b3cbbf8a936a81b896e98698bf472cd0e4  reference/model-evidence/source-adaptation-delta.diff

The retained byte stream is 38,813 bytes and 933 lines.  The complete source
inventory and independently reproduced file hashes are:

  supplied path                 upstream SHA-256                                                   crate SHA-256                                                      status
  dec2flt/common.rs             fc64094721ff23e08fcba013154d04dec3fe986cae5ffd73a20f86049980aace   4c4be815335a7b176527eb1345e662890caa48181a0a4f814594339016cab18e   changed
  dec2flt/decimal.rs            3c164785e1bc3f3b48aa9c212dd6c4ab535fe828523af9fa584df4c7b1e60e0d   633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb   changed
  dec2flt/decimal_seq.rs        c0c1c6028e3f57cefc3de7635a94788e9180f5ebcedc7a334ec8dbac786ec788   4aa4ecf9f31970033093d73238d4f2c72d433639bbe467c0741b185807380bd9   changed
  dec2flt/fpu.rs                16cf9ec154d477ab3d4184a01fb4b9ed7c59f0228cc55589d393c40a61b19d8f   16cf9ec154d477ab3d4184a01fb4b9ed7c59f0228cc55589d393c40a61b19d8f   identical
  dec2flt/lemire.rs             fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1   fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1   identical
  dec2flt/mod.rs                7198e238c554b692405537a446b3526ad66805ec2900cd0e299f10c51402a44a   ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d   changed
  dec2flt/parse.rs              9daf21ab9445a84552535152f376eef8c30f3d5827296c0645f5952d3b22bbf1   50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f   changed
  dec2flt/slow.rs               43e7aba32d7431bbf0e1bbcb4c334eaffb23eb66891c7e45abe799c5235cc0d2   93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485   changed
  dec2flt/table.rs              6eb59023784bd84cb6fb074c70da8a99bef72bc2a2ea179b0da457ca1ee00abb   6eb59023784bd84cb6fb074c70da8a99bef72bc2a2ea179b0da457ca1ee00abb   identical
  traits.rs                     66a02c44d72dfcc3ddae7e34a290e390dabaf98c5911b283d2d97f2f0075a44e   9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf   changed

The standalone package adds four files having no supplied counterpart:

  crate/Cargo.toml              2040ce5dc92c51b5245113f97682b692b876aa57708b5c7c483425ba152943c8
  crate/lib.rs                  1df2b8bcb2f52068d05a6343923716d0ef4475abdef34a0de3fe7cb8dc2ba95b
  crate/num/mod.rs              d9ac4f964d124bd4660914dc4c80bbb14f48d7851f9a8edc71a0931e9fce37b3
  crate/num/imp/mod.rs          df09b97393e97b23b0a558c2fcbbf4e75dd9d68338f1e83f168bab80a37a31f1

Thus fpu.rs, lemire.rs, and the complete 671-line table.rs, including their
algorithmic constants and tables, are byte-identical.  The following sections
account for every other file and every changed hunk.

Namespace and error shell
-------------------------

crate/lib.rs:1-12 is a no_std crate root that re-exports core::f64 and
core::ops and introduces the same num module path expected by the supplied
slice.  crate/num/imp/mod.rs:1-10 uses path attributes to place traits.rs and
dec2flt/mod.rs at core::num::imp-like module names.  These declarations add no
wrapper call or computation.  crate/num/mod.rs:1 re-exports
core::num::FpCategory.  crate/num/mod.rs:3-26 defines a local private
FloatErrorKind and ParseFloatError shell so the standalone package can name
the parser's error type.  The pursued GOALs observe only panic versus normal
return and, on normal return, the outer Result's Ok/Err discriminant; they do
not observe the private error kind or formatting.  No identity is asserted
between this local shell and an unpinned core error payload.
crate/Cargo.toml:5-22 selects the package, empty default features, and
checked-overflow profiles.  The configuration and fresh build are independently
reproduced in setup-reproduction.txt.

Visibility, derives, and bounds
-------------------------------

upstream/dec2flt/mod.rs:90 versus crate/dec2flt/mod.rs:90 changes only the
visibility of the existing BiasedFp import so a goal-facing caller can name the
same type.  It changes neither layout nor execution.

upstream/dec2flt/common.rs:68 and decimal.rs:28 and decimal_seq.rs:17 include
Debug derives.  The corresponding crate spans common.rs:48-51,
decimal.rs:28-31, and decimal_seq.rs:17-20 remove only Debug.  Copy, Clone,
PartialEq, Eq, and Default used by computation remain where present, and no
accepted observation formats these records.

upstream/traits.rs:11-52 versus crate/traits.rs:11-64 removes formatting from
Int, removes a redundant Copy supertrait from CastInto, and instantiates Int
only for u64.  Every call of CastInto is through Int, which still requires
Copy; all retained concrete values are primitive Copy values.  The removed
u16/u32 instances are associated only with the disabled f16/f32 formats.

upstream/traits.rs:55-76 versus crate/traits.rs:67-80 removes Add, Debug,
PartialEq, PartialOrd, Default, and Clone from Float while retaining Copy, Mul,
Div, and Neg.  A search of all retained generic bodies shows no call using a
removed operation.  upstream/dec2flt/decimal.rs:56-89 versus
crate/dec2flt/decimal.rs:59-111 and upstream/dec2flt/mod.rs:209-256 versus
crate/dec2flt/mod.rs:352-520 add direct Div, Mul, and Neg bounds already implied
by Lemire -> Float, and replace operator notation with calls to those same
traits.  Rust desugars the original /, *, and unary - to these trait calls, so
the operands, call order, result, and admitted f64 specialization are unchanged.

Exact constants, tables, and specialized decoding
-------------------------------------------------

The source formulae and decimal-literal table were evaluated directly by the
pinned rustc using the retained source
reference/model-evidence/adaptation-constants-probe.rs.  The command was:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/adaptation-constants-probe.rs
  B=.trellis/scratch/adaptation-constants-probe
  "$R" --edition 2024 --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$P" "$B"
  "$B"

The source hash was
b5a4a2cba0c08053cb9a816adb1ba5dbd160bf3928bdf5ccf56b7ae83aaa2aa5
and the resulting executable hash was
b02d2f6deb675f17d0dbdc22e57a67d7692689f7a2b0d7b125556c35c4b8a4a5.
Raw output was:

  largest_power_of_ten=308
  max_exponent_fast_path=22
  max_exponent_disguised=37
  neg_nan=fff8000000000000
  pow10_0=3ff0000000000000
  pow10_1=4024000000000000
  pow10_2=4059000000000000
  pow10_3=408f400000000000
  pow10_4=40c3880000000000
  pow10_5=40f86a0000000000
  pow10_6=412e848000000000
  pow10_7=416312d000000000
  pow10_8=4197d78400000000
  pow10_9=41cdcd6500000000
  pow10_10=4202a05f20000000
  pow10_11=42374876e8000000
  pow10_12=426d1a94a2000000
  pow10_13=42a2309ce5400000
  pow10_14=42d6bcc41e900000
  pow10_15=430c6bf526340000
  pow10_16=4341c37937e08000
  pow10_17=4376345785d8a000
  pow10_18=43abc16d674ec800
  pow10_19=43e158e460913d00
  pow10_20=4415af1d78b58c40
  pow10_21=444b1ae4d6e2ef50
  pow10_22=4480f0cf064dd592

upstream/traits.rs:134-137 computes LARGEST_POWER_OF_TEN through a Float
default, and upstream/traits.rs:175-193 gives the generic integer_decode and
the helper used by that constant.  crate/traits.rs:146 makes the constant an
associated requirement; crate/traits.rs:309-359 supplies the retained f64
values and decoder after substituting BITS=64, SIG_BITS=52, EXP_BIAS=1023,
EXPONENT_MASK, MANTISSA_MASK, and the u64 operations.  Each source expression
then becomes exactly the corresponding crate expression: sign is bits>>63,
exponent is (bits & mask)>>52 cast to i16, the subnormal mantissa is shifted
once, the normal mantissa receives 1<<52, and 1023+52 is subtracted.  The
resulting tuple and every bit operation are unchanged.  The probe output above
shows that the computed f64 LARGEST_POWER_OF_TEN is 308 and that the source
-f64::NAN word is fff8000000000000, exactly crate/traits.rs:315-327; the
independent binary64-boundary.txt record fixes the masks and primitive bit
semantics used by the decoder.

upstream/dec2flt/mod.rs:118-129 gives the two Lemire default formulae.
crate/dec2flt/mod.rs:115-128 makes them associated requirements, and the
retained f64 instance at crate/dec2flt/mod.rs:217-220 supplies 22 and 37, the
integer results of the two source formulae for 53 significand bits.
upstream/dec2flt/mod.rs:176-181 indexes a 32-entry f64 table with exponent&31.
crate/dec2flt/mod.rs:222-251 performs the same masked selection using from_bits:
cases 0 through 22 are the exact pinned binary64 words printed above for 1e0 through 1e22 and
all other cases return positive zero, as did entries 23 through 31.  The full
word list and the pinned float semantics are recorded in binary64-boundary.txt.
The analogous f16/f32 replacements at crate/dec2flt/mod.rs:145-215 and
crate/traits.rs:187-307 lie under cfg(any()) and cannot enter this build.

Whole-function from_u64 opacity
-------------------------------

upstream/dec2flt/mod.rs:184-188 and crate/dec2flt/mod.rs:263-266 have the same
f64 body: the same enabled debug_assert that v <= 1<<53, followed by the same
primitive `v as f64` cast.  The sole semantic-boundary annotation is
#[charon::opaque] at crate line 262, syntactically attached to the function
item.  It therefore hides the entire from_u64 body from translation: neither
the debug assertion nor the cast is transparent in the extraction.  The
callers, their guards, and the surrounding native-path computation remain
transparent.  The fresh external inventory contains the whole method as the
single external F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64.  Its
separately reviewed ModelF64FromU64 binding supplies exactly successful integer
conversion for v <= 2^53 and assertion failure otherwise.

Digit scans, slice patterns, and helper extraction
-------------------------------------------------

upstream/dec2flt/common.rs:14-53 supplies ByteSlice::parse_digits: repeatedly
split_first, wrapping-subtract ASCII zero, invoke the closure exactly when the
result is below 10, consume that byte, and stop at the first other byte.
crate/dec2flt/common.rs:11-36 removes only this method.  Its complete set of
uses is replaced as follows.

* upstream/dec2flt/parse.rs:31-48 versus crate/dec2flt/parse.rs:31-58 keeps the
  eight-byte loop, wrapping multiply/add, and then performs the same digit test,
  accumulator update, and one-byte progress with an index.  The local rename
  num to chunk is lexical only.
* upstream/dec2flt/parse.rs:83-97 versus crate/dec2flt/parse.rs:131-153 expands
  matches!/parse_digits into the same nonempty first-digit guard, the same
  0x10000 bounded exponent update, the same first-nondigit suffix, and the same
  final sign.  The bound is tested before each checked multiply and addition,
  exactly as in the closure.
* upstream/dec2flt/decimal_seq.rs:220-295 versus
  crate/dec2flt/decimal_seq.rs:231-359 extracts parse_digits_into_seq,
  parse_decimal_exponent, and count_trailing_zeros.  The digit helpers use the
  same wrapping byte test, forward order, try_add_digit state transition, and
  0x10000 exponent guard.  The reverse helper visits indices consumed_len-1
  down to zero, increments only for ASCII zero, ignores a decimal point, and
  stops at the first other byte, exactly the original iter().rev() loop.

In all these replacements, indexing occurs only under count<len or !is_empty,
so it has the same bounds as split_first.  Slicing advances by exactly the same
one or eight bytes.  No wrapping operation is replaced by checked arithmetic,
and no checked source operation is replaced by wrapping arithmetic.

upstream/dec2flt/parse.rs:155-181 versus crate/dec2flt/parse.rs:82-119 and
212-226 moves two loops into adjust_many_digit_count and parse_many_digits.
The prefix helper visits the same start bytes in the same order, performs the
same saturating_sub and checked isize subtraction, and stops on the same byte.
The retry helper makes the same first 19-digit call, tests the same threshold,
makes the same one-byte rebase and second call in the alternate branch,
computes the same offset with the same sign, casts it to i64, and performs the
same checked addition of exp_number last.  Thus any large-input panic is
preserved rather than excluded.

upstream/dec2flt/decimal_seq.rs:226-295 versus
crate/dec2flt/decimal_seq.rs:284-359 replaces literal split_first patterns by
nonempty index tests.  The leading-zero scans, optional decimal point, optional
exponent marker, optional exponent sign, and suffixes occur in the same order.
The crate's exp_sign*exp_num equals the source choice between exp_num and
-exp_num because exp_num is bounded by the unchanged 0x10000 guard; the final
decimal_point checked addition is in the same position.  Casts of lengths to
i32 and every subsequent checked update remain unchanged, including their
large-input behavior.

Delayed returns
---------------

upstream/dec2flt/decimal_seq.rs:173-198 versus
crate/dec2flt/decimal_seq.rs:176-203 replaces one return inside right_shift's
loop by all_zero=true, exits because !all_zero is the loop guard, and returns
immediately afterward.  No decimal_point, digit, index, or arithmetic update
occurs between the original and delayed return.

upstream/dec2flt/slow.rs:46-76 versus crate/dec2flt/slow.rs:46-94 replaces two
nested-loop returns by loop_result.  In the zero branch it records fp_zero,
skips the source-skipped exp2 addition, exits through is_none(), and returns.
In the infinity branch it records fp_inf, skips the source-skipped exp2
subtraction, exits, and returns.  On all other iterations it performs the same
shift, checked state changes, and exponent update.  Lines 95-126 after these
returns are otherwise the source lines 77-110 unchanged.

Dispatcher trace and public projection
--------------------------------------

upstream/dec2flt/mod.rs:209-256 is the whole original dispatcher.
crate/dec2flt/mod.rs:285-349 declares trace data only, lines 352-505 execute the
instrumented dispatcher, and lines 507-520 define public dec2flt as its first
projection.  Comparing the bodies gives the following branch-by-branch
correspondence.

* Both call as_bytes, inspect the first byte, reject empty input before a helper,
  remove at most one sign, and reject a sign-only body.  The trace stores the
  already obtained body and Boolean sign.
* Both call parse_number first on that exact body.  Only None calls
  parse_inf_nan on the same body and sign.  Its Some is returned directly and
  its None returns invalid.  The trace stores those existing Option values.
* Both overwrite only Decimal.negative, test the same compile-time
  !optimize_for_size condition, call try_fast_path once, and return its Some
  directly.  The trace stores the copied Decimal and Option; Decimal is Copy.
* Both call compute_float first with num.exponent and num.mantissa.  The crate's
  second_compute_guard is exactly the first two conjuncts of the source
  short-circuit.  Therefore the checked mantissa+1 and second compute_float call
  occur under precisely the source guard, in the same order.  The same pair
  comparison either retains fp or changes only p_biased to -1.
* Both test the post-comparison p_biased<0 once, call parse_long_mantissa on the
  unchanged body exactly when true, and otherwise retain the same pair.  The
  trace records both guard and result without another helper call.
* The extra assembled_word expression is the same cast, shift, and OR performed
  by biased_fp_to_float at upstream lines 202-206 and crate lines 278-282; these
  integer operations neither panic nor mutate fp.  Both then call assembly once
  on the selected pair and apply unary negation exactly when num.negative.
  Public dec2flt returns the identical Result first component.

Consequently the trace does not infer uncomputed data: it records the exact
variant; sign-stripped body and sign; numeric/special Options; fast-path input
and result; first and conditional second integer operands and results;
comparison, forced-deferral and post-comparison pair; slow guard and result;
selected pair; assembled word; pre-sign assembly word; sign-application fact;
and final word.  Special and native direct returns create no selected pair.
All source call order, guards, checked arithmetic, mutable-state transitions,
panic points, and returned Result/F64 observations remain in place.

F64-only restriction
--------------------

crate/traits.rs:187-307 and crate/dec2flt/mod.rs:140-215 add cfg(any()) to the
f16/f32 Float, FloatExt, and Lemire implementations.  crate/traits.rs:59-64
retains only u64 Int.  The retained f64 implementations are
crate/traits.rs:309-360 and crate/dec2flt/mod.rs:217-264.  Every goal-facing
function remains generic in the source and extraction, but each pursued source
subject specializes it to f64, whose associated integer is u64.  There is no
dynamic format dispatch, so removing other impl blocks cannot change an f64
call, its native decision, checks, result word, NaN classification, fields, or
trace.  The fresh boundary inventory in setup-reproduction.txt confirms that
no removed-format external remains.

Conclusion
----------

The inventory is exhaustive: three supplied files are identical, seven have
all hunks classified above, and the four added files are the package shell.
For the configured f64 specialization, the adapted crate has the same input
domains, branch order, guards, checked/wrapping distinction, state transitions,
panic versus normal behavior, and public/helper observations as the supplied
source.  The only new observations are the trace fields, each copied from an
existing value or computed by the same pure assembly expression.  This
conclusion is independent of whether any parser-correctness GOAL is true.
reference/model-evidence/source-valid-byte-slice-probe.out

Open file

arch=x86_64
usize_bits=64
isize_max=9223372036854775807
u8_size=1
reference/model-evidence/source-valid-byte-slice-probe.rs

Open file

fn main() {
    println!("arch={}", std::env::consts::ARCH);
    println!("usize_bits={}", usize::BITS);
    println!("isize_max={}", isize::MAX);
    println!("u8_size={}", std::mem::size_of::<u8>());
}
reference/model-evidence/source-valid-byte-slice.txt

Open file

Source-valid byte-slice and string domain evidence
==================================================

Scope and pinned identities
---------------------------

All commands below were run from the repository root.  The configured compiler
is:

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

Its SHA-256 is:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b

The exact identity commands were:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  sha256sum "$R"
  "$R" --version --verbose
  "$R" --target x86_64-unknown-linux-gnu --print cfg | LC_ALL=C sort | \
    rg 'target_(arch|pointer_width)'

Their relevant raw output was:

  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
  target_arch="x86_64"
  target_pointer_width="64"

Retained configured-target probe
--------------------------------

The retained probe source is
reference/model-evidence/source-valid-byte-slice-probe.rs.  It was compiled
for the configured target and executed with this exact command, which depends
only on the retained source and the pinned compiler:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/source-valid-byte-slice-probe.rs
  B=/tmp/dec2flt-source-valid-byte-slice-probe
  O=reference/model-evidence/source-valid-byte-slice-probe.out
  "$R" --edition 2024 --target x86_64-unknown-linux-gnu -C opt-level=0 \
    -C debuginfo=0 -C overflow-checks=on -C debug-assertions=on \
    --crate-name source_valid_byte_slice_probe "$P" -o "$B"
  sha256sum "$R" "$P" "$B"
  "$B" > "$O"
  sha256sum "$O"
  cat "$O"

The actual hashes were:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd  reference/model-evidence/source-valid-byte-slice-probe.rs
  87dc3b9b7a46506d2205503d8aa007b451c452968af48d1ba5961a821934ee55  /tmp/dec2flt-source-valid-byte-slice-probe
  01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4  reference/model-evidence/source-valid-byte-slice-probe.out

The retained raw output file contains exactly:

  arch=x86_64
  usize_bits=64
  isize_max=9223372036854775807
  u8_size=1

Pinned core-library source
--------------------------

Let:

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

The exact commands used to identify and inspect the relevant core sources were:

  sha256sum "$S/slice/mod.rs" "$S/num/int_macros.rs" "$S/str/mod.rs"
  sed -n '798,808p' "$S/slice/mod.rs"
  sed -n '43,51p' "$S/num/int_macros.rs"
  sed -n '495,510p' "$S/str/mod.rs"

The file identities are:

  354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840  core/src/slice/mod.rs
  3896304e7cb14628e293134ac41fd18be2b5369bedc02d1c6a7408bd8c755a31  core/src/num/int_macros.rs
  284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78  core/src/str/mod.rs

The relevant exact excerpt of slice/mod.rs, line 801, is:

  //   - The size of the slice is never larger than `isize::MAX` bytes, as

The relevant exact declaration in num/int_macros.rs, line 47, is:

  pub const MAX: Self = (<$UnsignedT>::MAX >> 1) as Self;

The relevant exact excerpts of str/mod.rs are its same-layout byte-slice
conversion at lines 498-500:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }

and its UTF-8 invariant at lines 507-510:

  /// The caller must ensure that the content of the slice is valid UTF-8
  /// before the borrow ends and the underlying `str` is used.
  ///
  /// Use of a `str` whose contents are not valid UTF-8 is undefined behavior.

Conclusion
----------

The configured target has 64-bit usize/isize and one-byte u8 elements.
The pinned signed-MAX definition therefore gives
isize::MAX = 2^63 - 1 = 9223372036854775807, and the pinned slice rule bounds a
slice by that many bytes.  For &[u8], this is exactly an element-count bound;
the rule adds no UTF-8 condition or other restriction on the byte contents.
The pinned str source exposes the identical-layout &[u8] bytes and separately
requires them to be valid UTF-8.  Consequently the exact configured domains
are arbitrary &[u8] bytes of length at most isize::MAX, and Rust str bytes of
length at most isize::MAX that are valid UTF-8.  No smaller convenience bound
is introduced.
Upstream → extraction-crate adaptation diff
--- upstream/dec2flt/decimal_seq.rs
+++ crate/dec2flt/decimal_seq.rs
@@ -14,7 +14,10 @@
 use crate::num::imp::dec2flt;
 
 /// A decimal floating-point number, represented as a sequence of decimal digits.
-#[derive(Clone, Debug, PartialEq)]
+// Debug output is absent from the accepted observations.  Removing only that
+// implementation preserves the representation, Clone/PartialEq behavior, and
+// every fallback operation independently of GOAL truth.
+#[derive(Clone, PartialEq)]
 pub struct DecimalSeq {
     /// The number of significant digits in the decimal.
     pub num_digits: usize,
@@ -173,12 +176,16 @@
         let mut read_index = 0;
         let mut write_index = 0;
         let mut n = 0_u64;
-        while (n >> shift) == 0 {
+        let mut all_zero = false;
+        while (n >> shift) == 0 && !all_zero {
             if read_index < self.num_digits {
                 n = (10 * n) + self.digits[read_index] as u64;
                 read_index += 1;
             } else if n == 0 {
-                return;
+                // The source returns here from inside the loop.  Recording the
+                // condition and returning immediately after the loop executes
+                // no intervening operation and preserves the unchanged value.
+                all_zero = true;
             } else {
                 while (n >> shift) == 0 {
                     n *= 10;
@@ -186,6 +193,9 @@
                 }
                 break;
             }
+        }
+        if all_zero {
+            return;
         }
         self.decimal_point -= read_index as i32 - 1;
         if self.decimal_point < -Self::DECIMAL_POINT_RANGE {
@@ -218,24 +228,80 @@
     }
 }
 
+// This is exactly the source reverse scan over the already-consumed prefix.
+// It is separate because Aeneas cannot join the loop while `parse_decimal_seq`
+// retains its other slice borrows.  The downward index has the same visitation
+// order and counts precisely the same zero bytes while ignoring dots.
+fn count_trailing_zeros(start: &[u8], consumed_len: usize) -> usize {
+    let mut n_trailing_zeros = 0;
+    let mut i = consumed_len;
+    let mut scanning = true;
+    while i != 0 && scanning {
+        let c = start[i - 1];
+        if c == b'0' || c == b'.' {
+            i -= 1;
+            if c == b'0' {
+                n_trailing_zeros += 1;
+            }
+        } else {
+            scanning = false;
+        }
+    }
+    n_trailing_zeros
+}
+
+// Equivalent to `ByteSlice::parse_digits(|digit| d.try_add_digit(digit))`.
+// An explicit index keeps the closure's mutable borrow out of the enclosing
+// parser context while retaining the same wrapping digit test and updates.
+fn parse_digits_into_seq<'a>(s: &'a [u8], d: &mut DecimalSeq) -> &'a [u8] {
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
+        d.try_add_digit(digit);
+        count += 1;
+    }
+    &s[count..]
+}
+
+// Equivalent to the source exponent `parse_digits` closure.  Bytes after the
+// first nondigit were ignored by the caller, so only the accumulated value is
+// returned; the 0x10000 guard and wrapping digit classification are identical.
+fn parse_decimal_exponent(s: &[u8]) -> i32 {
+    let mut exp_num = 0;
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
+        if exp_num < 0x10000 {
+            exp_num = 10 * exp_num + digit as i32;
+        }
+        count += 1;
+    }
+    exp_num
+}
+
 /// Parse a big integer representation of the float as a decimal.
 pub fn parse_decimal_seq(mut s: &[u8]) -> DecimalSeq {
     let mut d = DecimalSeq::default();
     let start = s;
 
-    while let Some((&b'0', s_next)) = s.split_first() {
-        s = s_next;
-    }
-
-    s = s.parse_digits(|digit| d.try_add_digit(digit));
-
-    if let Some((b'.', s_next)) = s.split_first() {
-        s = s_next;
+    // Aeneas rejects the literal-pattern `while let`; this loop performs the
+    // same nonempty check, byte comparison, and one-byte consumption in the
+    // same order, with identical slice bounds.
+    while !s.is_empty() && s[0] == b'0' {
+        s = &s[1..];
+    }
+
+    s = parse_digits_into_seq(s, &mut d);
+
+    if !s.is_empty() && s[0] == b'.' {
+        s = &s[1..];
         let first = s;
         // Skip leading zeros.
         if d.num_digits == 0 {
-            while let Some((&b'0', s_next)) = s.split_first() {
-                s = s_next;
+            // As above, this is the source leading-zero loop written in the
+            // indexed form accepted by Aeneas.
+            while !s.is_empty() && s[0] == b'0' {
+                s = &s[1..];
             }
         }
         while s.len() >= 8 && d.num_digits + 8 < DecimalSeq::MAX_DIGITS {
@@ -247,20 +313,17 @@
             d.num_digits += 8;
             s = &s[8..];
         }
-        s = s.parse_digits(|digit| d.try_add_digit(digit));
+        s = parse_digits_into_seq(s, &mut d);
         d.decimal_point = s.len() as i32 - first.len() as i32;
     }
 
     if d.num_digits != 0 {
         // Ignore the trailing zeros if there are any
-        let mut n_trailing_zeros = 0;
-        for &c in start[..(start.len() - s.len())].iter().rev() {
-            if c == b'0' {
-                n_trailing_zeros += 1;
-            } else if c != b'.' {
-                break;
-            }
-        }
+        let consumed_len = start.len() - s.len();
+        // Walking an index downward visits exactly the same bytes as
+        // `.iter().rev()` and stops on the same first nonzero nondot byte.  It
+        // also avoids the missing extracted `Iterator::rev` library field.
+        let n_trailing_zeros = count_trailing_zeros(start, consumed_len);
         d.decimal_point += n_trailing_zeros as i32;
         d.num_digits -= n_trailing_zeros;
         d.decimal_point += d.num_digits as i32;
@@ -270,25 +333,28 @@
         }
     }
 
-    if let Some((&ch, s_next)) = s.split_first() {
+    // Indexed tests preserve `split_first`'s nonempty guard and byte order but
+    // avoid the loop-context joins Aeneas creates for nested slice patterns.
+    if !s.is_empty() {
+        let ch = s[0];
         if ch == b'e' || ch == b'E' {
-            s = s_next;
-            let mut neg_exp = false;
-            if let Some((&ch, s_next)) = s.split_first() {
-                neg_exp = ch == b'-';
+            s = &s[1..];
+            let mut exp_sign = 1_i32;
+            if !s.is_empty() {
+                let ch = s[0];
+                if ch == b'-' {
+                    exp_sign = -1;
+                }
                 if ch == b'-' || ch == b'+' {
-                    s = s_next;
+                    s = &s[1..];
                 }
             }
-            let mut exp_num = 0_i32;
-
-            s.parse_digits(|digit| {
-                if exp_num < 0x10000 {
-                    exp_num = 10 * exp_num + digit as i32;
-                }
-            });
-
-            d.decimal_point += if neg_exp { -exp_num } else { exp_num };
+            let exp_num = parse_decimal_exponent(s);
+
+            // `exp_num` is bounded by the source's 0x10000 guard, so this
+            // multiplication cannot overflow and equals the original Boolean
+            // choice between `-exp_num` and `exp_num` under checked arithmetic.
+            d.decimal_point += exp_sign * exp_num;
         }
     }
 
Record details
Kindsource adaptation site (file-level diff)
Captured evidence identities
[
  {
    "path": "extraction-evidence/COMMAND.json",
    "sha256": "5f26225136b8c7c4d7f95615e3e8ff8b357e523eeada4bc649e50f9c76cb9bda",
    "cited_by": [
      "shared mechanical extraction record",
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "extraction-evidence/DETERMINISM.json",
    "sha256": "74e45977d1fa84e7d4c696906005f13faca994995fdeff0fac8dc13e5c18f11c",
    "cited_by": [
      "shared mechanical extraction record"
    ]
  },
  {
    "path": "extraction-evidence/RESULT.json",
    "sha256": "31059e900d9ee03a54504c1dd3560a943d6c0f883fba737163b1ca0cb40065b0",
    "cited_by": [
      "shared mechanical extraction record",
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "extraction-evidence/STDERR.bin",
    "sha256": "c284799d633c64b898f716d62fbf1146c173227bd6bd44309c6504a43926e000",
    "cited_by": [
      "shared mechanical extraction record"
    ]
  },
  {
    "path": "extraction-evidence/STDOUT.bin",
    "sha256": "8e0aed62f6941e7c81b09d5c5b63ea7602756e69e4bcce9944258b229a9a0ba3",
    "cited_by": [
      "shared mechanical extraction record"
    ]
  },
  {
    "path": "reference/model-evidence/adaptation-constants-probe.rs",
    "sha256": "b5a4a2cba0c08053cb9a816adb1ba5dbd160bf3928bdf5ccf56b7ae83aaa2aa5",
    "cited_by": [
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-boundary.txt",
    "sha256": "fa45c924747337e8d6f84a19fe9e83fb9b33c73434887c0cf57c062533f51fe1",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex",
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-probe.rs",
    "sha256": "68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e",
    "cited_by": [
      "reference/model-evidence/binary64-boundary.txt"
    ]
  },
  {
    "path": "reference/model-evidence/native-boundary.txt",
    "sha256": "fa0d69e4a434007e6ee675380fc13f98e22655b7faa77cdc5216d4af4356438f",
    "cited_by": [
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "reference/model-evidence/setup-reproduction.txt",
    "sha256": "209bc94a47b1b905a2a7b1fea229c759e6250becbd353fe4eadc7bc49be7742c",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex",
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-adaptation-delta.diff",
    "sha256": "fdf88cabfe40ce962d2bd5eda22eb5b3cbbf8a936a81b896e98698bf472cd0e4",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex",
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-adaptation-delta.txt",
    "sha256": "3c1483d48286a82484eba249a5434936e1a33a08f4e99ec0e3a03ce9bb0ecd9b",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.out",
    "sha256": "01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.rs",
    "sha256": "b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice.txt",
    "sha256": "eb501317621baa00236f9773885466bd38ec1a45cb56457d555b9e9139dc780a",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex"
    ]
  }
]

crate/dec2flt/mod.rs

Historical preparation document: preparation source-adaptation audit. It describes the state and obligations at preparation. This generation is captured in ProofFormalization. Later closure and review results appear in the proof and modeling views. This original document remains available as history.

Captured upstream and extraction-crate files differ. Consult the recorded preservation explanations for the purpose and scope of each adaptation.
Shared extraction-boundary explanation (Preamble)

Preservation argument

Claim

Fix Rust nightly-2026-06-01 and target x86_64-unknown-linux-gnu, the library's empty default feature set (so optimize_for_size is disabled), the unoptimized development profile, enabled debug assertions and integer overflow checks, and the target's SSE2 precision-setting branch. Interpret each of the frozen extraction's 24 external operations by the separately justified model-support definition that owns that operation. Under those interpretations, the composed Aeneas model represents the supplied source's f64 specialization on all of these domains, without a correctness premise: every Rust str whose bytes are valid UTF-8 and whose 64-bit slice length is at most \mathtt{isize::MAX}=2^{63}-1; every Rust &[u8] whose length is at most that bound, with arbitrary byte contents; every Decimal; every i64/u64 pair; and every BiasedFp.
For dec2flt::<f64> the relation preserves panic versus normal return, the outer returned Result's Ok/Err discriminant, and, on success, the exact binary64 word and its NaN classification. For parse_number it preserves panic versus normal return, the Option discriminant, and all four returned Decimal fields. For parse_inf_nan::<f64> and Decimal::try_fast_path::<f64> it preserves panic versus normal return, None versus Some, and every returned word and NaN classification. For compute_float::<f64> and parse_long_mantissa::<f64> it preserves panic versus normal return and both fields of every returned BiasedFp. For biased_fp_to_float::<f64> it preserves panic versus normal return and the exact returned word, with no restriction on the pair fields.
For dec2flt_with_trace::<f64> it additionally preserves the public result and the complete trace: its control-flow variant; sign-stripped body and lexical sign; numeric and special helper results; signed native input and native result; first integer operands and result; second-call guard, optional operands and result, comparison and forced-deferral fact; post-comparison pair; slow-path guard and optional result; selected pair; assembled unsigned word; pre-sign assembly result; sign-application fact; and final word. Public dec2flt::<f64> is exactly the first projection of that interface, and direct special and native returns select no raw pair.

Proof

The fresh extraction record reference/model-evidence/setup-reproduction.txt pins all six tool executables by SHA-256, gives the empty Cargo/Charon/Aeneas argument configuration, and records the effective development cfg. Its Cargo, Charon, and Aeneas executions all exit successfully. Fresh Aeneas output is byte-for-byte the frozen generated.lean, with SHA-256 45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9. The raw source has no placeholder. The compatibility check reports no unapproved axiom and isolates exactly 24 external declarations; the complete inventory equals the 24 entries of Tablet/model-support.json. compose-native --check reports an unchanged composition and equal expected and actual Preamble hashes. Thus all transparent extracted declarations come from this one pinned source and every nontransparent operation is explicit. The premise assigning each external its owning definition deliberately leaves that definition's primitive-semantics proof to its own preservation record; no primitive binding is re-proved here.
The paired meanings of all 24 owners make that composition premise concrete. The binary64 carrier is the complete raw-word representation of F64. Its clone, precision constant, NaN and infinity constants, field masks, classification, bit conversions, arithmetic, negation, and asserted integer conversion have respectively the meanings in ModelF64Clone, ModelF64MantissaDigits, ModelF64Nan, ModelF64Infinity, ModelF64NegInfinity, ModelF64ExponentMask, ModelF64MantissaMask, ModelF64Classify, ModelF64ToBits, ModelF64FromBits, ModelF64Mul, ModelF64Div, ModelF64Neg, and ModelF64FromU64. The four bounded word operations have the Rust meanings in ModelU64BitAnd, ModelU64BitOr, ModelU64Shl, and ModelU64Shr; the digit test has the meaning in ModelU8IsAsciiDigit. Option branching and residual return have the meanings in ModelOptionBranch and ModelOptionFromResidual; first-element and split-first observation have the meanings in ModelSliceFirst and ModelSliceSplitFirst; and string-to-byte observation has the meaning in ModelStrAsBytes. These are exactly the semantic operations substituted for the inventoried externals.
The source carrier used below is the arbitrary-byte, length-at-most 2^{63}-1 slice of SourceValidByteSlice. The abstract domains and observations used in the GOAL applications are those of DecimalGoalVocabulary; their concrete UTF-8 string predicate, lexical grammar, decimal values, binary64 rounding and classification, sign, and unrestricted raw-pair assembly are those of DecimalGoalVocabularyDefault. Thus the composition cites the paired meanings that connect its source domains and observations to the GOAL vocabulary, rather than inferring those meanings from boundary inventory alone.
The complete upstream-to-crate inventory and its source hashes are recorded in reference/model-evidence/source-adaptation-delta.txt; its exact aggregate byte diff is retained in reference/model-evidence/source-adaptation-delta.diff. The supplied fpu.rs, lemire.rs, and table.rs are byte-identical. The standalone namespace and local error shell introduce no call. The GOALs observe only panic versus normal return and the outer Ok/Err discriminant, so the shell's private kind and formatting are unobserved; no identity with an unpinned core error payload is asserted. Visibility and removed Debug derives do not affect values. The retained generic bodies use none of the removed trait operations; the direct Mul, Div, and Neg clauses and calls are the operations already implied by Lemire. Only the u64 integer instance and f64 Float, FloatExt, and Lemire instances can participate in an f64 execution, so disabling the u16/u32 and f16/f32 instances changes no such call.
The same delta record compares each constant, table entry, and specialized decoder with its source expression. The retained decoder is the source default after substituting the f64/u64 field widths and masks; the fast-path bounds are the source formula results; and the match over power-of-ten words has the same masked index and exact words as the source array. The toolchain-specific words, masks, classifications, casts, and rounding behavior are independently pinned in reference/model-evidence/binary64-boundary.txt. The frozen from_u64 Rust body is the enabled assertion followed by the u64 as f64 conversion. Because #[charon::opaque] applies to the whole function, neither operation inside that body is transparent in the extraction: the whole method is the single inventoried external. Its callers, their guards, and the surrounding native computation remain transparent. ModelF64FromU64 supplies exactly successful integer conversion for v\leq2^{53} and assertion failure otherwise.
All other changed bodies are syntax-directed rewrites. Indexed digit scans test the same byte, use the same wrapping subtraction and accumulator update, advance by the same amount, and stop at the same first nondigit as the source closures and split_first loops. Extracted helpers receive the same slices and mutable values, visit bytes in the same forward or reverse order, and retain every saturating, wrapping, and checked operation. Delayed returns set a result flag, execute no intervening state update, leave the loop through that flag, and immediately return the source value. In particular, casts and length-derived additions on very large inputs keep their original panic or normal behavior rather than acquiring a convenience size bound.
Finally, direct comparison of the supplied dispatcher with the instrumented body shows identical sequencing. Both strip at most one sign, reject empty or sign-only input, call the numeric helper first and the special helper only after its None, overwrite only the parsed sign, try the enabled native path, make the first integer call, and evaluate the checked mantissa+1 and second call under exactly the source short-circuit guard. Both force the same deferral on unequal pairs, call the slow helper on the unchanged body exactly for a negative post-comparison exponent, assemble the same selected pair, and apply the sign last. Every trace field is either one of those already computed values or the same nonmutating cast/shift/OR word used by assembly. Hence recording the trace and discarding it in the public projection changes neither call order, guards, state, panic points, nor any returned observation.
The exact source carrier condition is separately evidenced by reference/model-evidence/source-valid-byte-slice.txt: on this 64-bit target a byte slice has arbitrary bytes and length at most isize::MAX, while a Rust string adds UTF-8 validity. Sub-slicing preserves the length bound and need not preserve an independent string type. These facts establish all domains and observations in the claim independently of the truth or falsity of any GOAL.

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

extraction-evidence/COMMAND.json

Open file

{"declaration_reader_sha256":"76f60cf0b867fad9727d2256d32b306c8cba3725216a4225d0f83add77fd6158","extraction_provenance":{"extraction_toolchain":{"aeneas":"fa699427","aeneas_revision":"fa699427cdfa8f604b891fb0223ef42883dd7dc4","cargo_features":[{"features":["default"],"name":"dec2flt-model","source":"workspace:Cargo.toml","version":"0.1.0"}],"cargo_lock_sha256":"bc644c624ded89197356bbd65d995054b7fb08e5bdfbaa38c6e7c7a53772cecf","cfg":["debug_assertions","emscripten_wasm_eh","feature=\"default\"","fmt_debug=\"full\"","overflow_checks","panic=\"unwind\"","relocation_model=\"pic\"","target_abi=\"\"","target_arch=\"x86_64\"","target_endian=\"little\"","target_env=\"gnu\"","target_family=\"unix\"","target_feature=\"fxsr\"","target_feature=\"sse\"","target_feature=\"sse2\"","target_feature=\"x87\"","target_has_atomic","target_has_atomic=\"16\"","target_has_atomic=\"32\"","target_has_atomic=\"64\"","target_has_atomic=\"8\"","target_has_atomic=\"ptr\"","target_has_atomic_load_store","target_has_atomic_load_store=\"16\"","target_has_atomic_load_store=\"32\"","target_has_atomic_load_store=\"64\"","target_has_atomic_load_store=\"8\"","target_has_atomic_load_store=\"ptr\"","target_has_atomic_primitive_alignment=\"16\"","target_has_atomic_primitive_alignment=\"32\"","target_has_atomic_primitive_alignment=\"64\"","target_has_atomic_primitive_alignment=\"8\"","target_has_atomic_primitive_alignment=\"ptr\"","target_has_reliable_f128","target_has_reliable_f16","target_has_reliable_f16_math","target_object_format=\"elf\"","target_os=\"linux\"","target_pointer_width=\"64\"","target_thread_local","target_vendor=\"unknown\"","ub_checks","unix"],"charon":"0.1.216","charon_revision":"6f058254eb741c12e9b388df07adaf7cc8aac8ed","extraction_profile":"dev","lean":"4.30.0-rc2","overflow_checks":true,"panic_strategy":"unwind","rustc_vv":"rustc 1.98.0-nightly (14210df0e 2026-05-31)\nbinary: rustc\ncommit-hash: 14210df0e27ccd7d9e6a05b8085cbd438e4bbc65\ncommit-date: 2026-05-31\nhost: x86_64-unknown-linux-gnu\nrelease: 1.98.0-nightly\nLLVM version: 22.1.6\n","target_pointer_width":64,"target_triple":"x86_64-unknown-linux-gnu"},"extractor_stack":["charon@0.1.216","aeneas@fa699427"],"extractor_toolchain_sha256":"18657da0659dee7889ed8a937b136c9abbc3a35e9050241cd8201c94fd232323","not_recorded":[],"source_digests":[{"source_file":"lib.rs","source_sha256":"63c7f58df6caff552519c92155d902daf8a1015797adcd3f357f8b8cf1652b00"}]},"extractor_script_path":"/home/leanagent/pv_runs/trellis-native-implementation-v91/scripts/extract_pv_model.py","extractor_script_sha256":"cc1fdd50a78185c7bb564b715c554cb35d9fc09ed566b6c3d4f482f2d27ef67d","kernel_gate_checkers":[],"log_concatenation_order":"runs_then_steps_in_array_order","runs":[{"run_role":"primary","steps":[{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","-vV"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"rustc-version","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/pv_spike/tools/charon/bin/charon","cargo","--preset=aeneas","--dest-file","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc","--","--offline","--profile","dev","--target","x86_64-unknown-linux-gnu"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"charon","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/cargo","metadata","--format-version=1","--locked","--offline","--filter-platform","x86_64-unknown-linux-gnu"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"cargo-metadata","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/cargo","rustc","--lib","--locked","--offline","--profile","dev","--target","x86_64-unknown-linux-gnu","--","--print","cfg"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"cargo-rustc-cfg","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/pv_spike/tools/aeneas/bin/aeneas","-backend","lean","-dest","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen","-emit-json","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"aeneas","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"}]}],"schema":"trellis-extraction-command/v1","tool_source_checkouts":[]}
extraction-evidence/DETERMINISM.json

Open file

{"comparison":"generated_lean_and_complete_tablet_tree_byte_identity","generated_lean_byte_identical":false,"generated_lean_sha256":["45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9"],"kernel_filespec_gate":"not_run","kernel_prescribed_region_gate":"not_run","namespace_context_roundtrip_gate":"not_run","result_sha256":"31059e900d9ee03a54504c1dd3560a943d6c0f883fba737163b1ca0cb40065b0","run_roles":["primary"],"schema":"trellis-extraction-determinism/v2","status":"not_run","tablet_root_sha256":["5be7a89d6b46429df3229db0d97b337dfb51cea483d439817e51b774a2dd5cf1"],"tablet_tree_byte_identical":false}
extraction-evidence/RESULT.json

Open file

{"command_sha256":"5f26225136b8c7c4d7f95615e3e8ff8b357e523eeada4bc649e50f9c76cb9bda","runs":[{"generated_lean_sha256":"45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9","run_role":"primary","steps":[{"exit_status":0,"stderr_byte_length":0,"stderr_offset":0,"stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","stdout_byte_length":212,"stdout_offset":0,"stdout_sha256":"e6ea0da4a3301256a0a0dc0d67d11acf4e83e0d1bff5dd987ccdaa43708714bc","tool":"rustc-version"},{"exit_status":0,"stderr_byte_length":654,"stderr_offset":0,"stderr_sha256":"85f314396a5cc9f2303d9848c2d0ea392b64a71cb47e7b0914fd3b8acc916f02","stdout_byte_length":0,"stdout_offset":212,"stdout_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","tool":"charon"},{"exit_status":0,"stderr_byte_length":0,"stderr_offset":654,"stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","stdout_byte_length":2897,"stdout_offset":212,"stdout_sha256":"d792566b25914f10c1a27d3c55607a43dd6bcd31b381f8d54caa7d23257269ef","tool":"cargo-metadata"},{"exit_status":0,"stderr_byte_length":302,"stderr_offset":654,"stderr_sha256":"865b65d937d16c61cd9b975adc967136f6739ef2149207ae43742241f2f37686","stdout_byte_length":1062,"stdout_offset":3109,"stdout_sha256":"4081a320e6292139b4a673d225682dc054b77cba113b8c8a8fbb0593f824b713","tool":"cargo-rustc-cfg"},{"exit_status":0,"stderr_byte_length":6916,"stderr_offset":956,"stderr_sha256":"9c2b4695f1b3bb4e7fe3bf52b92d44fd21bed1de3047b698c950eafcc085c00b","stdout_byte_length":933,"stdout_offset":4171,"stdout_sha256":"35255952c6ce5b89d1280d096dff50ffcfc94817c3aafa58beda6db7e66721df","tool":"aeneas"}],"tablet_root_sha256":"5be7a89d6b46429df3229db0d97b337dfb51cea483d439817e51b774a2dd5cf1"}],"schema":"trellis-extraction-result/v2","stderr_byte_length":7872,"stderr_sha256":"c284799d633c64b898f716d62fbf1146c173227bd6bd44309c6504a43926e000","stdout_byte_length":5104,"stdout_sha256":"8e0aed62f6941e7c81b09d5c5b63ea7602756e69e4bcce9944258b229a9a0ba3"}
extraction-evidence/STDERR.bin

Open file

   Compiling dec2flt-model v0.1.0 (/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate)
warning: feature `f16` is declared but not used
 --> lib.rs:2:46
  |
2 | #![feature(cfg_target_has_reliable_f16_f128, f16, float_masks, register_tool, staged_api)]
  |                                              ^^^
  |
  = note: `#[warn(unused_features)]` (part of `#[warn(unused)]`) on by default

warning: `dec2flt-model` (lib) generated 1 warning
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.44s
   Compiling dec2flt-model v0.1.0 (/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.02s
[?25lApplied prepasses:  [------------------------------------------------]   0/203 ⠋

Applied prepasses:  [------------------------------------------------]   1/203 ⠋

Applied prepasses:  [#####-------------------------------------------]  24/203 ⠋

Applied prepasses:  [########----------------------------------------]  38/203 ⠋

Applied prepasses:  [##############################------------------] 128/203 ⠙
Applied prepasses:  [################################################] 203/203 ✔️
[?25h[?25lTranslated globals:  [-------------------------------------------------]  0/50 ⠋
Translated globals:  [#################################################] 50/50 ✔️
[?25h[?25lTranslated opaque functions:  [----------------------------------------]  0/87 ⠋
Translated opaque functions:  [########################################] 87/87 ✔️
[?25h[?25lTranslated transparent functions:  [---------------------------------]   0/107 ⠋

Translated transparent functions:  [---------------------------------]   1/107 ⠙

Translated transparent functions:  [###------------------------------]  10/107 ⠙

Translated transparent functions:  [######---------------------------]  22/107 ⠹

Translated transparent functions:  [##########-----------------------]  35/107 ⠹

Translated transparent functions:  [#############--------------------]  44/107 ⠹

Translated transparent functions:  [##############-------------------]  48/107 ⠸

Translated transparent functions:  [###############------------------]  51/107 ⠸

Translated transparent functions:  [##################---------------]  59/107 ⠸

Translated transparent functions:  [##################---------------]  60/107 ⠼

Translated transparent functions:  [##################---------------]  61/107 ⠼

Translated transparent functions:  [####################-------------]  65/107 ⠼

Translated transparent functions:  [#####################------------]  69/107 ⠼

Translated transparent functions:  [#####################------------]  70/107 ⠴

Translated transparent functions:  [######################-----------]  72/107 ⠴

Translated transparent functions:  [######################-----------]  73/107 ⠦

Translated transparent functions:  [######################-----------]  74/107 ⠦

Translated transparent functions:  [#######################----------]  77/107 ⠦

Translated transparent functions:  [########################---------]  78/107 ⠧

Translated transparent functions:  [########################---------]  79/107 ⠧

Translated transparent functions:  [########################---------]  81/107 ⠇

Translated transparent functions:  [#########################--------]  82/107 ⠇

Translated transparent functions:  [#########################--------]  83/107 ⠏

Translated transparent functions:  [#########################--------]  84/107 ⠏

Translated transparent functions:  [##########################-------]  86/107 ⠋

Translated transparent functions:  [###########################------]  88/107 ⠋

Translated transparent functions:  [###########################------]  89/107 ⠋

Translated transparent functions:  [###########################------]  90/107 ⠙

Translated transparent functions:  [############################-----]  91/107 ⠙

Translated transparent functions:  [############################-----]  93/107 ⠹

Translated transparent functions:  [############################-----]  94/107 ⠹

Translated transparent functions:  [#############################----]  95/107 ⠸

Translated transparent functions:  [#############################----]  97/107 ⠸

Translated transparent functions:  [##############################---]  99/107 ⠼

Translated transparent functions:  [##############################---] 100/107 ⠼

Translated transparent functions:  [###############################--] 102/107 ⠴

Translated transparent functions:  [###############################--] 103/107 ⠦

Translated transparent functions:  [################################-] 104/107 ⠦

Translated transparent functions:  [################################-] 105/107 ⠧

Translated transparent functions:  [################################-] 106/107 ⠇

Translated transparent functions:  [#################################] 107/107 ⠏
Translated transparent functions:  [#################################] 107/107 ✔️
[?25h[?25lTranslated trait declarations:  [--------------------------------------]  0/49 ⠋
Translated trait declarations:  [########################--------------] 31/49 ✔️
[?25h[?25lTranslated trait impls:  [---------------------------------------------]  0/85 ⠋
Translated trait impls:  [#################################------------] 64/85 ✔️
[?25h[?25lPost-processed translated opaque functions:  [-------------------------]  0/87 ⠋

Post-processed translated opaque functions:  [-------------------------]  1/87 ⠙
Post-processed translated opaque functions:  [#########################] 87/87 ✔️
[?25h[?25lPost-processed translated transparent functions:  [------------------]   0/107 ⠋

Post-processed translated transparent functions:  [------------------]   1/107 ⠋

Post-processed translated transparent functions:  [#-----------------]  10/107 ⠙

Post-processed translated transparent functions:  [##----------------]  12/107 ⠙

Post-processed translated transparent functions:  [##----------------]  13/107 ⠹

Post-processed translated transparent functions:  [##----------------]  14/107 ⠹

Post-processed translated transparent functions:  [##----------------]  16/107 ⠸

Post-processed translated transparent functions:  [##----------------]  17/107 ⠼

Post-processed translated transparent functions:  [###---------------]  18/107 ⠼

Post-processed translated transparent functions:  [###---------------]  23/107 ⠴

Post-processed translated transparent functions:  [####--------------]  27/107 ⠴

Post-processed translated transparent functions:  [#####-------------]  31/107 ⠴

Post-processed translated transparent functions:  [######------------]  37/107 ⠴

Post-processed translated transparent functions:  [########----------]  50/107 ⠴

Post-processed translated transparent functions:  [###############---]  95/107 ⠦

Post-processed translated transparent functions:  [################--]  99/107 ⠦

Post-processed translated transparent functions:  [################--] 100/107 ⠧

Post-processed translated transparent functions:  [################--] 101/107 ⠧

Post-processed translated transparent functions:  [#################-] 103/107 ⠧

Post-processed translated transparent functions:  [#################-] 105/107 ⠇

Post-processed translated transparent functions:  [##################] 107/107 ⠏
Post-processed translated transparent functions:  [##################] 107/107 ✔️
[?25h
extraction-evidence/STDOUT.bin

Open file

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
{"packages":[{"name":"dec2flt-model","version":"0.1.0","id":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0","license":null,"license_file":null,"description":null,"source":null,"dependencies":[],"targets":[{"kind":["lib"],"crate_types":["lib"],"name":"dec2flt_model","src_path":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate/lib.rs","edition":"2024","doc":true,"doctest":true,"test":true}],"features":{"default":[],"optimize_for_size":[]},"manifest_path":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate/Cargo.toml","metadata":null,"publish":[],"authors":[],"categories":[],"keywords":[],"readme":null,"repository":null,"homepage":null,"documentation":null,"edition":"2024","links":null,"default_run":null,"rust_version":null}],"workspace_members":["path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"],"workspace_default_members":["path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"],"resolve":{"nodes":[{"id":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0","dependencies":[],"deps":[],"features":["default"]}],"root":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"},"target_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","build_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","version":1,"workspace_root":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate","metadata":null}
debug_assertions
emscripten_wasm_eh
feature="default"
fmt_debug="full"
overflow_checks
panic="unwind"
relocation_model="pic"
target_abi=""
target_arch="x86_64"
target_endian="little"
target_env="gnu"
target_family="unix"
target_feature="fxsr"
target_feature="sse"
target_feature="sse2"
target_feature="x87"
target_has_atomic
target_has_atomic="16"
target_has_atomic="32"
target_has_atomic="64"
target_has_atomic="8"
target_has_atomic="ptr"
target_has_atomic_load_store
target_has_atomic_load_store="16"
target_has_atomic_load_store="32"
target_has_atomic_load_store="64"
target_has_atomic_load_store="8"
target_has_atomic_load_store="ptr"
target_has_atomic_primitive_alignment="16"
target_has_atomic_primitive_alignment="32"
target_has_atomic_primitive_alignment="64"
target_has_atomic_primitive_alignment="8"
target_has_atomic_primitive_alignment="ptr"
target_has_reliable_f128
target_has_reliable_f16
target_has_reliable_f16_math
target_object_format="elf"
target_os="linux"
target_pointer_width="64"
target_thread_local
target_vendor="unknown"
ub_checks
unix
[Info ] Imported: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc
[Info ] Generated: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/M.lean
[Info ] Generated: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/translation.json
[Warn ] The crate contains extracted external, unknown definitions: we advise using the option -split-files to allow manually providing these definitions in separate files.
[Info ] Total execution time: 7.337683 seconds
reference/model-evidence/adaptation-constants-probe.rs

Open file

fn main() {
    let largest_power_of_ten = (1024_f64 / std::f64::consts::LOG2_10) as i32;
    let log2_5 = std::f64::consts::LOG2_10 - 1.0;
    let max_exponent_fast_path = (53_f64 / log2_5) as i64;
    let max_exponent_disguised =
        max_exponent_fast_path + (53_f64 / std::f64::consts::LOG2_10) as i64;

    println!("largest_power_of_ten={largest_power_of_ten}");
    println!("max_exponent_fast_path={max_exponent_fast_path}");
    println!("max_exponent_disguised={max_exponent_disguised}");
    println!("neg_nan={:016x}", (-f64::NAN).to_bits());

    for (exponent, value) in IntoIterator::into_iter([
        1e0_f64, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11,
        1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22,
    ])
    .enumerate()
    {
        println!("pow10_{exponent}={:016x}", value.to_bits());
    }
}
reference/model-evidence/binary64-boundary.txt

Open file

Primary evidence for the binary64 boundary
==========================================

Scope and identities
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction, the
adapted Rust crate retained in this repository, and the installed toolchain
named by modeling-input/SETUP.md. The probe source is retained at
reference/model-evidence/binary64-probe.rs; no scratch source is required to
reproduce it.

Toolchain executable:
  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
Target:
  x86_64-unknown-linux-gnu
rustc executable SHA-256:
  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
Probe source SHA-256:
  68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
Compiled probe SHA-256:
  f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
Frozen generated.lean SHA-256:
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9
Frozen modeling-input/manifest.json SHA-256:
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2
Approved Binary64ModelDefault.lean SHA-256 at the time of this record:
  03ae48fb631e6242bd21bf95d0481b66acae05f8cab343c7ab279b3c116538a3

Exact reproduction commands
---------------------------

Run from the repository root:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-probe.rs
  B=.trellis/scratch/binary64-probe
  "$R" --version --verbose
  sha256sum "$R"
  sha256sum "$P"
  "$R" --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$B"
  "$B"

Raw output
----------

  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
  rustc_sha256=162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  probe_sha256=68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
  binary_sha256=f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
  target_arch=x86_64
  mantissa_digits=53
  exponent_mask=7ff0000000000000
  mantissa_mask=000fffffffffffff
  nan=7ff8000000000000
  infinity=7ff0000000000000
  neg_infinity=fff0000000000000
  nan_category=Nan
  infinity_category=Infinite
  zero_category=Zero
  subnormal_category=Subnormal
  normal_category=Normal
  from_bits_to_bits=7ff0000000000001
  neg_payload_nan=fff0000000000001
  neg_zero=8000000000000000
  subnormal_tie_to_even_zero=0000000000000000
  subnormal_tie_to_even_two=0000000000000002
  normal_division=3fb999999999999a
  mul_negative_zero=8000000000000000
  div_negative_zero=8000000000000000
  div_negative_infinity=fff0000000000000
  mul_overflow=7ff0000000000000
  mul_zero_infinity_is_nan=true
  div_zero_zero_is_nan=true
  mul_nan_is_nan=true
  cast_2_pow_53=4340000000000000
  cast_2_pow_53_plus_1=4340000000000000

Pinned Rust library sources
---------------------------

The installed sources below belong to the same named toolchain. Their
SHA-256 identities are:

  core/src/primitive_docs.rs
    c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5
  core/src/num/f64.rs
    84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618
  core/src/clone.rs
    23f9cfc80347fde6b8457d46fbf7a2b8d9f34c8c58601b0b6f714ca2f6d1976b

The exact relevant text of core/src/primitive_docs.rs is:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The referenced primitive-f32 documentation supplies the common primitive
floating-point operation rules quoted next:

  /// - −0.0: IEEE 754 floating-point numbers have a bit that indicates their sign, so −0.0 is a
  ///   possible value. For comparison −0.0 = +0.0, but floating-point operations can carry
  ///   the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
  ///   a negative number rounded to a value smaller than a float can represent also produces −0.0.
  /// - [∞](#associatedconstant.INFINITY) and
  ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
  ///   like `1.0 / 0.0`.
  ///
  /// When a primitive operation (addition, subtraction, multiplication, or
  /// division) is performed on this type, the result is rounded according to the
  /// roundTiesToEven direction defined in IEEE 754-2008. That means:
  ///
  /// - The result is the representable value closest to the true value, if there
  ///   is a unique closest representable value.
  /// - If the true value is exactly half-way between two representable values,
  ///   the result is the one with an even least-significant binary digit.
  /// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
  ///   `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
  ///   true value's sign).

The same file explicitly separates arithmetic NaN choice from exact bitwise
operations; its exact relevant text is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.
  ///
  /// The following rules apply when a NaN value is returned from an arithmetic operation:
  /// - The result has a non-deterministic sign.
  /// - The quiet bit and payload are non-deterministically chosen from
  ///   the following set of options:
  ///
  ///   - **Preferred NaN**: The quiet bit is set and the payload is all-zero.
  ///   - **Quieting NaN propagation**: The quiet bit is set and the payload is copied from any input
  ///     operand that is a NaN. If the inputs and outputs do not have the same payload size (i.e., for
  ///     `as` casts), then
  ///     - If the output is smaller than the input, low-order bits of the payload get dropped.
  ///     - If the output is larger than the input, the payload gets filled up with 0s in the low-order
  ///       bits.
  ///   - **Unchanged NaN propagation**: The quiet bit and payload are copied from any input operand
  ///     that is a NaN. If the inputs and outputs do not have the same size (i.e., for `as` casts), the
  ///     same rules as for "quieting NaN propagation" apply, with one caveat: if the output is smaller
  ///     than the input, dropping the low-order bits may result in a payload of 0; a payload of 0 is not
  ///     possible with a signaling NaN (the all-0 significand encodes an infinity) so unchanged NaN
  ///     propagation cannot occur with some inputs.
  ///   - **Target-specific NaN**: The quiet bit is set and the payload is picked from a target-specific
  ///     set of "extra" possible NaN payloads. The set can depend on the input operand values.
  ///     See the table below for the concrete NaNs this set contains on various targets.
  ///
  /// | `target_arch` | Extra payloads possible on this platform |
  /// |---------------|------------------------------------------|
  /// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |

Thus the model's preferred quiet NaN is one permitted result whenever
multiplication or division returns NaN. This does not claim that arbitrary
Rust arithmetic NaNs have those exact bits. By contrast, unary negation and
bit conversion must preserve all non-sign bits exactly, including for every
NaN payload.

The exact relevant declarations in core/src/num/f64.rs are:

  pub const MANTISSA_DIGITS: u32 = 53;
  pub const NAN: f64 = 0.0_f64 / 0.0_f64;
  pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
  pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
  pub const SIGN_MASK: u64 = 0x8000_0000_0000_0000;
  pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;
  pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff;

  pub const fn classify(self) -> FpCategory {
      // We used to have complicated logic here that avoids the simple bit-based tests to work
      // around buggy codegen for x87 targets (see
      // https://github.com/rust-lang/rust/issues/114479). However, some LLVM versions later, none
      // of our tests is able to find any difference between the complicated and the naive
      // version, so now we are back to the naive version.
      let b = self.to_bits();
      match (b & Self::MANTISSA_MASK, b & Self::EXPONENT_MASK) {
          (0, Self::EXPONENT_MASK) => FpCategory::Infinite,
          (_, Self::EXPONENT_MASK) => FpCategory::Nan,
          (0, 0) => FpCategory::Zero,
          (_, 0) => FpCategory::Subnormal,
          _ => FpCategory::Normal,
      }
  }

  pub const fn to_bits(self) -> u64 {
      // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
      unsafe { mem::transmute(self) }
  }

  pub const fn from_bits(v: u64) -> Self {
      // It turns out the safety issues with sNaN were overblown! Hooray!
      // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
      unsafe { mem::transmute(v) }
  }

The exact scalar clone body in core/src/clone.rs is:

  impl const Clone for $t {
      #[inline(always)]
      fn clone(&self) -> Self {
          *self
      }
  }

Frozen adapted source
---------------------

The relevant retained source file hashes are:

  crate/traits.rs
    9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  crate/dec2flt/decimal.rs
    633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb
  crate/dec2flt/lemire.rs
    fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1
  crate/dec2flt/slow.rs
    93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485

The dispatcher excerpts below are reproduced from the identified file by
running these commands from the repository root:

  sha256sum crate/dec2flt/mod.rs
  sed -n '354,403p' crate/dec2flt/mod.rs
  sed -n '405,422p' crate/dec2flt/mod.rs
  sed -n '465,475p' crate/dec2flt/mod.rs
  sed -n '506,523p' crate/dec2flt/mod.rs

Exact constant and bit-conversion excerpt from crate/traits.rs:

  impl Float for f64 {
      type Int = u64;

      const INFINITY: Self = Self::INFINITY;
      const NEG_INFINITY: Self = Self::NEG_INFINITY;
      const NAN: Self = Self::NAN;
      // Bit-identical to the upstream `-f64::NAN`, without the unsupported
      // compile-time float negation.
      const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);

      const BITS: u32 = 64;
      const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
      const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
      const SIG_MASK: Self::Int = Self::MANTISSA_MASK;

      fn to_bits(self) -> Self::Int {
          self.to_bits()
      }

      fn classify(self) -> FpCategory {
          self.classify()
      }
  }

  impl FloatExt for f64 {
      #[inline]
      fn from_u64_bits(v: u64) -> Self {
          f64::from_bits(v)
      }

Exact derived-constant defaults from crate/traits.rs:

  /// The number of bits in the significand, *excluding* the hidden bit.
  const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;

  /// Number of bits in the exponent.
  const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

  /// The saturated (maximum bitpattern) value of the exponent, i.e. the infinite
  /// representation.
  ///
  /// This shifted fully right, use `EXP_MASK` for the shifted value.
  const EXP_SAT: u32 = (1 << Self::EXP_BITS) - 1;

  /// Signed version of `EXP_SAT` since we convert a lot.
  const INFINITE_POWER: i32 = Self::EXP_SAT as i32;

  /// The exponent bias value. This is also the maximum value of the exponent.
  const EXP_BIAS: u32 = Self::EXP_SAT >> 1;

  /// Minimum exponent value of normal values.
  const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Together with the f64-instance lines `BITS = 64` and
`SIG_TOTAL_BITS = Self::MANTISSA_DIGITS` in the preceding excerpt, these
defaults derive SIG_BITS, EXP_MIN, and INFINITE_POWER from the primitive
mantissa-digit constant rather than introducing independent parameters.

Exact asserted-conversion excerpt from crate/dec2flt/mod.rs:

  #[inline]
  // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
  // `charon::opaque` makes this entire asserted conversion external: both the
  // unchanged `debug_assert!` and the unchanged cast below are in the opaque
  // body. The callers, their fast-path guards, and their surrounding
  // computation remain mechanically visible. A corresponding model binding
  // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
  // exact binary64 conversion at or below that bound.
  #[charon::opaque]
  fn from_u64(v: u64) -> Self {
      debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
      v as _
  }

Here MAX_MANTISSA_FAST_PATH is the retained default 1 << 53.  The attribute is
attached to the function item, so the generated external stands for the whole
method, not merely the cast.  In the enabled-debug configuration the source
succeeds only when v <= 2^53; above it the assertion fails before the cast. On
the successful branch every integer is exactly representable, so the source
cast and the model rounder return the same word.

Exact power-table and assembly excerpts from crate/dec2flt/mod.rs:

  /// Maximum mantissa for the fast-path (`1 << 53` for f64).
  const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;

  const MAX_EXPONENT_FAST_PATH: i64 = 22;
  const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
  const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;

  fn pow10_fast_path(exponent: usize) -> Self {
      // These bit patterns are exactly the source table's rounded binary64
      // literals.  The match is the same masked lookup; it merely keeps float
      // constants out of Aeneas's unsupported constant interpreter.
      match exponent & 31 {
          0 => f64::from_bits(0x3FF0_0000_0000_0000),
          1 => f64::from_bits(0x4024_0000_0000_0000),
          2 => f64::from_bits(0x4059_0000_0000_0000),
          3 => f64::from_bits(0x408F_4000_0000_0000),
          4 => f64::from_bits(0x40C3_8800_0000_0000),
          5 => f64::from_bits(0x40F8_6A00_0000_0000),
          6 => f64::from_bits(0x412E_8480_0000_0000),
          7 => f64::from_bits(0x4163_12D0_0000_0000),
          8 => f64::from_bits(0x4197_D784_0000_0000),
          9 => f64::from_bits(0x41CD_CD65_0000_0000),
          10 => f64::from_bits(0x4202_A05F_2000_0000),
          11 => f64::from_bits(0x4237_4876_E800_0000),
          12 => f64::from_bits(0x426D_1A94_A200_0000),
          13 => f64::from_bits(0x42A2_309C_E540_0000),
          14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
          15 => f64::from_bits(0x430C_6BF5_2634_0000),
          16 => f64::from_bits(0x4341_C379_37E0_8000),
          17 => f64::from_bits(0x4376_3457_85D8_A000),
          18 => f64::from_bits(0x43AB_C16D_674E_C800),
          19 => f64::from_bits(0x43E1_58E4_6091_3D00),
          20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
          21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
          22 => f64::from_bits(0x4480_F0CF_064D_D592),
          _ => f64::from_bits(0),
      }
  }

  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

Exact native-call excerpt from crate/dec2flt/decimal.rs:

  fn can_use_fast_path<F: Lemire>(&self) -> bool {
      F::MIN_EXPONENT_FAST_PATH <= self.exponent
          && self.exponent <= F::MAX_EXPONENT_DISGUISED_FAST_PATH
          && self.mantissa <= F::MAX_MANTISSA_FAST_PATH
          && !self.many_digits
  }

  if !self.can_use_fast_path::<F>() {
      return None;
  }

  let value = if self.exponent <= F::MAX_EXPONENT_FAST_PATH {
      // normal fast path
      let value = F::from_u64(self.mantissa);
      if self.exponent < 0 {
          // Explicit trait calls preserve Rust arithmetic and resolve
          // the generic output type that Charon leaves ambiguous.
          core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
      } else {
          core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
      }
  } else {
      // disguised fast path
      let shift = self.exponent - F::MAX_EXPONENT_FAST_PATH;
      let mantissa = self.mantissa.checked_mul(INT_POW10[shift as usize])?;
      if mantissa > F::MAX_MANTISSA_FAST_PATH {
          return None;
      }
      core::ops::Mul::mul(
          F::from_u64(mantissa),
          F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
      )
  };

  if self.negative {
      Some(core::ops::Neg::neg(value))
  } else {
      Some(value)
  }

The preceding can_use_fast_path body, together with
MAX_MANTISSA_FAST_PATH = 1 << SIG_TOTAL_BITS and SIG_TOTAL_BITS = 53 for f64,
requires the exponent to lie between -22 and 37, the input mantissa to be at
most 2^53, and many_digits to be false. Consequently an ordinary arithmetic
call has a from_u64 operand in 0..=2^53. In its negative-exponent arm,
`-self.exponent` lies in 1..=22; in its nonnegative arm, `self.exponent` lies
in 0..=22. The disguised branch checks its multiplied mantissa against 2^53
before from_u64 and uses table index 22. The paired statement
Binary64NativeCallDomain does not assert this source reachability. It says
conditionally that a from_u64 argument at most 2^53 succeeds with a finite,
non-NaN word and that a table index at most 22 succeeds with a positive,
nonzero, finite, non-NaN word. Applying that conditional statement to the
guards just derived establishes those properties for the actual ordinary and
disguised calls, and in particular establishes that every executed divisor is
nonzero.

Exact special-value excerpt from crate/dec2flt/parse.rs:

  let float = match (register, len) {
      (INF_3, 3) => F::INFINITY,
      (INF_8, 8) => F::INFINITY,
      (NAN, 3) => F::NAN,
      _ => return None,
  };

  if negative { Some(-float) } else { Some(float) }

Thus the executed special route is INFINITY or NAN followed by conditional
negation; it does not select NEG_INFINITY or NEG_NAN directly.

The number helper has the exact source body

  pub fn parse_number(s: &[u8]) -> Option<Decimal> {
      if let Some((float, rest)) = parse_partial_number(s) {
          if rest == s.len() {
              return Some(float);
          }
      }
      None
  }

It returns only the Decimal produced by parse_partial_number; there is no
float type parameter or float operation at this boundary.

Exact dispatcher excerpts from crate/dec2flt/mod.rs
---------------------------------------------------

The entry of `dec2flt_with_trace` strips at most one leading sign, rejects
empty and sign-only inputs, calls `parse_number` on the unsigned body, and
calls `parse_inf_nan` only when `parse_number` returns `None`:

  /// Run the actual dispatcher while retaining its approved internal observations.
  pub fn dec2flt_with_trace<
      'a,
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {
          return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
      };
      let negative = c == b'-';
      if c == b'-' || c == b'+' {
          body = &body[1..];
      }
      if body.is_empty() {
          return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
      }

      let parse_number_result = parse_number(body);
      let parsed = match parse_number_result {
          Some(r) => r,
          None => {
              let parse_inf_nan_result = parse_inf_nan(body, negative);
              return match parse_inf_nan_result {
                  Some(value) => (
                      Ok(value),
                      Dec2FltTrace::Special {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                          result: value,
                      },
                  ),
                  None => (
                      Err(pfe_invalid()),
                      Dec2FltTrace::Invalid {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                      },
                  ),
              };
          }
      };

Thus every `Err` arm shown here returns before `parsed` is available and before
the native, integer, slow, assembly, or final-negation code below it can run.
On a numeric result, the lexical sign is copied into the parsed record before
the native attempt, whose successful result also returns before raw-pair
assembly:

      let mut num = parsed;
      num.negative = negative;
      if !cfg!(feature = "optimize_for_size") {
          let fast_path_result = num.try_fast_path::<F>();
          if let Some(value) = fast_path_result {
              return (
                  Ok(value),
                  Dec2FltTrace::FastPath {
                      body,
                      negative,
                      parse_number_result,
                      fast_path_input: num,
                      fast_path_result,
                      result: value,
                  },
              );
          }
      }

If the native attempt does not return, the selected raw pair is assembled and
the source then conditionally negates it according to the lexical-sign flag:

      let selected_pair = fp;
      // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
      // it neither changes the selected pair nor introduces a new branch or call.
      let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
      let assembly_result = biased_fp_to_float::<F>(fp);
      let lexical_sign_applied = num.negative;
      let result = if lexical_sign_applied {
          core::ops::Neg::neg(assembly_result)
      } else {
          assembly_result
      };

The public `dec2flt` executes that same route and returns its result projection;
it does not reimplement or reorder any parsing or float operation:

  /// Converts a decimal string into a floating point number.
  #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
  pub fn dec2flt<
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &str,
  ) -> Result<F, ParseFloatError> {
      // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
      // clause admits exactly the same instances and lets Charon resolve the
      // explicit, source-equivalent final negation.
      // The public function is now exactly the result projection of the single
      // instrumented implementation.  No conversion step is duplicated, and
      // discarding the trace cannot affect Rust evaluation or the returned bits.
      dec2flt_with_trace::<F>(s).0
  }

The integer-tier helper has the source type and exact executable excerpts
below (long explanatory comments are elided). In particular it returns a raw
BiasedFp and contains no from_u64 cast, primitive float multiplication,
division, negation, or from_bits call:

  pub fn compute_float<F: Float>(q: i64, mut w: u64) -> BiasedFp {
      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);
      let fp_error = BiasedFp::zero_pow2(-1);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if w == 0 || q < F::SMALLEST_POWER_OF_TEN as i64 {
          return fp_zero;
      } else if q > F::LARGEST_POWER_OF_TEN as i64 {
          return fp_inf;
      }
      // Normalize our significant digits, so the most-significant bit is set.
      let lz = w.leading_zeros();
      w <<= lz;
      let (lo, hi) = compute_product_approx(q, w, F::SIG_BITS as usize + 3);
      if lo == 0xFFFF_FFFF_FFFF_FFFF {
          let inside_safe_exponent = (q >= -27) && (q <= 55);
          if !inside_safe_exponent {
              return fp_error;
          }
      }
      let upperbit = (hi >> 63) as i32;
      let mut mantissa = hi >> (upperbit + 64 - F::SIG_BITS as i32 - 3);
      let mut power2 = power(q as i32) + upperbit - lz as i32 - F::EXP_MIN + 1;
      if power2 <= 0 {
          if -power2 + 1 >= 64 {
              // Have more than 64 bits below the minimum exponent, must be 0.
              return fp_zero;
          }
          // Have a subnormal value.
          mantissa >>= -power2 + 1;
          mantissa += mantissa & 1;
          mantissa >>= 1;
          power2 = (mantissa >= (1_u64 << F::SIG_BITS)) as i32;
          return BiasedFp { m: mantissa, p_biased: power2 };
      }
      // Need to handle rounding ties. Normally, we need to round up,
      // but if we fall right in between and we have an even basis, we
      // need to round down.
      if lo <= 1
          && q >= F::MIN_EXPONENT_ROUND_TO_EVEN as i64
          && q <= F::MAX_EXPONENT_ROUND_TO_EVEN as i64
          && mantissa & 0b11 == 0b01
          && (mantissa << (upperbit + 64 - F::SIG_BITS as i32 - 3)) == hi
      {
          // Zero the lowest bit, so we don't round up.
          mantissa &= !1_u64;
      }
      // Round-to-even, then shift the significant digits into place.
      mantissa += mantissa & 1;
      mantissa >>= 1;
      if mantissa >= (2_u64 << F::SIG_BITS) {
          // Rounding up overflowed, so the carry bit is set. Set the
          // mantissa to 1 (only the implicit, hidden bit is set) and
          // increase the exponent.
          mantissa = 1_u64 << F::SIG_BITS;
          power2 += 1;
      }
      // Zero out the hidden bit.
      mantissa &= !(1_u64 << F::SIG_BITS);
      if power2 >= F::INFINITE_POWER {
          // Exponent is above largest normal value, must be infinite.
          return fp_inf;
      }
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact slow-tier source body from crate/dec2flt/slow.rs:

  pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {
      const MAX_SHIFT: usize = 60;
      const NUM_POWERS: usize = 19;
      const POWERS: [u8; 19] =
          [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];

      let get_shift = |n| {
          if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }
      };

      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);

      let mut d = parse_decimal_seq(s);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if d.num_digits == 0 || d.decimal_point < -324 {
          return fp_zero;
      } else if d.decimal_point >= 310 {
          return fp_inf;
      }
      let mut exp2 = 0_i32;
      let mut loop_result = None;
      // Shift right toward (1/2 ... 1].
      while d.decimal_point > 0 && loop_result.is_none() {
          let n = d.decimal_point as usize;
          let shift = get_shift(n);
          d.right_shift(shift);
          if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_zero);
          } else {
              exp2 += shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // Shift left toward (1/2 ... 1].
      while d.decimal_point <= 0 && loop_result.is_none() {
          let shift = if d.decimal_point == 0 {
              match d.digits[0] {
                  digit if digit >= 5 => break,
                  0 | 1 => 2,
                  _ => 1,
              }
          } else {
              get_shift((-d.decimal_point) as _)
          };
          d.left_shift(shift);
          if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_inf);
          } else {
              exp2 -= shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
      exp2 -= 1;
      while F::EXP_MIN > exp2 {
          let mut n = (F::EXP_MIN - exp2) as usize;
          if n > MAX_SHIFT {
              n = MAX_SHIFT;
          }
          d.right_shift(n);
          exp2 += n as i32;
      }
      if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
          return fp_inf;
      }
      // Shift the decimal to the hidden bit, and then round the value
      // to get the high mantissa+1 bits.
      d.left_shift(F::SIG_BITS as usize + 1);
      let mut mantissa = d.round();
      if mantissa >= (1_u64 << (F::SIG_BITS + 1)) {
          // Rounding up overflowed to the carry bit, need to
          // shift back to the hidden bit.
          d.right_shift(1);
          exp2 += 1;
          mantissa = d.round();
          if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
              return fp_inf;
          }
      }
      let mut power2 = exp2 - F::EXP_MIN + 1;
      if mantissa < (1_u64 << F::SIG_BITS) {
          power2 -= 1;
      }
      // Zero out all the bits above the explicit mantissa bits.
      mantissa &= (1_u64 << F::SIG_BITS) - 1;
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact final numeric-sign excerpt from crate/dec2flt/mod.rs:

  let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
  let assembly_result = biased_fp_to_float::<F>(fp);
  let lexical_sign_applied = num.negative;
  let result = if lexical_sign_applied {
      core::ops::Neg::neg(assembly_result)
  } else {
      assembly_result
  };

Thus a numeric execution that reaches the integer/slow selection route
assembles its selected pair with from_bits through biased_fp_to_float and only
then conditionally negates it. A successful try_fast_path returns earlier and
does not perform this assembly. compute_float and parse_long_mantissa produce
raw BiasedFp pairs and do not call from_u64, primitive float multiplication,
division, negation, or from_bits; they do, however, execute constants derived
from SIG_TOTAL_BITS before producing those pairs.

Retained structural-boundary evidence
-------------------------------------

Several adjacent structural bindings cite this same evidence record. Their
pinned library source identities are:

  core/src/num/mod.rs
    f0820f9dfb94999440c8cb4a349736fa21df7e5668e19b6b49e016ff67c05ce3
  core/src/option.rs
    7cf61204b05d98a95bc2e322d5fbfc1f4f91505109971917d9a7fb47151c50e6
  core/src/slice/mod.rs
    354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840
  core/src/str/mod.rs
    284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78

Exact ASCII-digit body from core/src/num/mod.rs:

  pub const fn is_ascii_digit(&self) -> bool {
      matches!(*self, b'0'..=b'9')
  }

Exact Option control-flow bodies from core/src/option.rs:

  fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
      match self {
          Some(v) => ControlFlow::Continue(v),
          None => ControlFlow::Break(None),
      }
  }

  fn from_residual(residual: Option<convert::Infallible>) -> Self {
      match residual {
          None => None,
      }
  }

Exact slice observation bodies from core/src/slice/mod.rs:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

Exact string-byte body from core/src/str/mod.rs:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }
reference/model-evidence/binary64-probe.rs

Open file

#![feature(float_masks)]

use std::num::FpCategory;

fn bits(label: &str, value: f64) {
    println!("{label}={:016x}", value.to_bits());
}

fn main() {
    println!("target_arch={}", std::env::consts::ARCH);
    println!("mantissa_digits={}", f64::MANTISSA_DIGITS);
    println!("exponent_mask={:016x}", f64::EXPONENT_MASK);
    println!("mantissa_mask={:016x}", f64::MANTISSA_MASK);
    bits("nan", f64::NAN);
    bits("infinity", f64::INFINITY);
    bits("neg_infinity", f64::NEG_INFINITY);

    for (label, value) in [
        ("nan_category", f64::NAN),
        ("infinity_category", f64::INFINITY),
        ("zero_category", 0.0),
        ("subnormal_category", f64::from_bits(1)),
        ("normal_category", 1.0),
    ] {
        let category = match value.classify() {
            FpCategory::Nan => "Nan",
            FpCategory::Infinite => "Infinite",
            FpCategory::Zero => "Zero",
            FpCategory::Subnormal => "Subnormal",
            FpCategory::Normal => "Normal",
        };
        println!("{label}={category}");
    }

    let payload_nan_word = 0x7ff0_0000_0000_0001_u64;
    println!(
        "from_bits_to_bits={:016x}",
        f64::from_bits(payload_nan_word).to_bits()
    );
    bits("neg_payload_nan", -f64::from_bits(payload_nan_word));
    bits("neg_zero", -0.0);

    bits("subnormal_tie_to_even_zero", f64::from_bits(1) * 0.5);
    bits("subnormal_tie_to_even_two", f64::from_bits(3) * 0.5);
    bits("normal_division", 1.0 / 10.0);
    bits("mul_negative_zero", -0.0 * 2.0);
    bits("div_negative_zero", -1.0 / f64::INFINITY);
    bits("div_negative_infinity", 1.0 / -0.0);
    bits("mul_overflow", f64::MAX * (1.0 + f64::EPSILON));
    println!("mul_zero_infinity_is_nan={}", (0.0 * f64::INFINITY).is_nan());
    println!("div_zero_zero_is_nan={}", (0.0_f64 / 0.0_f64).is_nan());
    println!("mul_nan_is_nan={}", (f64::NAN * 1.0).is_nan());

    bits("cast_2_pow_53", (1_u64 << 53) as f64);
    bits("cast_2_pow_53_plus_1", ((1_u64 << 53) + 1) as f64);
}
reference/model-evidence/native-boundary.txt

Open file

Native boundary inventory for Binary64Model

Reproduction command (repository root):
  python3 .trellis/scripts/pv_modeling.py inspect-native .

Tool identity for this reproduction:
  Python 3.14.4
  .trellis/scripts/pv_modeling.py
  sha256 915b29822cb4c47b70dabb1dc011514641deb2e428b62347fc31aa898de5e0d4

Top-level result:
  declaration_count: 24

The complete raw inspect-native records for the fourteen F64 externals follow.
They are copied from the command's complete index; no scratch artifact is needed
to review them.

[
  {
    "name": "F64.Insts.CoreCloneClone.clone",
    "extracted_signature": ": F64 → Result F64",
    "rust_symbol": "core::clone::impls::{impl core::clone::Clone for f64}::clone",
    "raw_declaration_sha256": "5eaad5fb9af034045cf0dafed5af85445fe4af9a78958259a15a1faddd1e8f05",
    "source_utf8": "/-- [core::clone::impls::{impl core::clone::Clone for f64}::clone]:\n    Source: '/rustc/library/core/src/clone.rs', lines 698:20-698:43\n    Name pattern: [core::clone::impls::{core::clone::Clone<f64>}::clone]\n    Visibility: public -/\n@[rust_fun \"core::clone::impls::{core::clone::Clone<f64>}::clone\"]\naxiom F64.Insts.CoreCloneClone.clone : F64 → Result F64\n"
  },
  {
    "name": "core.f64.F64.MANTISSA_DIGITS",
    "extracted_signature": ": Result Std.U32",
    "rust_symbol": "core::f64::{f64}::MANTISSA_DIGITS",
    "raw_declaration_sha256": "42b1b0c4d2c2bbc7271748fc78c518391f55bf6517c643667a6561a0ac6e771c",
    "source_utf8": "/-- [core::f64::{f64}::MANTISSA_DIGITS]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 412:4-412:34\n    Name pattern: [core::f64::{f64}::MANTISSA_DIGITS]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::MANTISSA_DIGITS\"]\naxiom core.f64.F64.MANTISSA_DIGITS : Result Std.U32\n"
  },
  {
    "name": "core.f64.F64.NAN",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::NAN",
    "raw_declaration_sha256": "a18685a80db5dbebe39151c7375a0470bb3905fe1228e5598a995a1cf017a768",
    "source_utf8": "/-- [core::f64::{f64}::NAN]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 509:4-509:22\n    Name pattern: [core::f64::{f64}::NAN]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::NAN\"] axiom core.f64.F64.NAN : Result F64\n"
  },
  {
    "name": "core.f64.F64.INFINITY",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::INFINITY",
    "raw_declaration_sha256": "f905901e67400987f49cddd13a8768644bed9e7e3f79c3a81b34879f494a2816",
    "source_utf8": "/-- [core::f64::{f64}::INFINITY]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 512:4-512:27\n    Name pattern: [core::f64::{f64}::INFINITY]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::INFINITY\"]\naxiom core.f64.F64.INFINITY : Result F64\n"
  },
  {
    "name": "core.f64.F64.NEG_INFINITY",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::NEG_INFINITY",
    "raw_declaration_sha256": "85f6e517e439c2f2d5c59aa29884ff38b2381c2f5dd7cb14e7947b232efe7f0e",
    "source_utf8": "/-- [core::f64::{f64}::NEG_INFINITY]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 515:4-515:31\n    Name pattern: [core::f64::{f64}::NEG_INFINITY]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::NEG_INFINITY\"]\naxiom core.f64.F64.NEG_INFINITY : Result F64\n"
  },
  {
    "name": "core.f64.F64.EXPONENT_MASK",
    "extracted_signature": ": Result Std.U64",
    "rust_symbol": "core::f64::{f64}::EXPONENT_MASK",
    "raw_declaration_sha256": "f1054e64392d8f9306e8c69015f0b521d9f387edda8458a3bae4773606f46a71",
    "source_utf8": "/-- [core::f64::{f64}::EXPONENT_MASK]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 615:4-615:32\n    Name pattern: [core::f64::{f64}::EXPONENT_MASK]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::EXPONENT_MASK\"]\naxiom core.f64.F64.EXPONENT_MASK : Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.MANTISSA_MASK",
    "extracted_signature": ": Result Std.U64",
    "rust_symbol": "core::f64::{f64}::MANTISSA_MASK",
    "raw_declaration_sha256": "dc3517faa141b7a7a016e9f73930af3c9af23d3e6d06874440d99eabbc846538",
    "source_utf8": "/-- [core::f64::{f64}::MANTISSA_MASK]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 637:4-637:32\n    Name pattern: [core::f64::{f64}::MANTISSA_MASK]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::MANTISSA_MASK\"]\naxiom core.f64.F64.MANTISSA_MASK : Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.classify",
    "extracted_signature": ": F64 → Result core.num.FpCategory",
    "rust_symbol": "core::f64::{f64}::classify",
    "raw_declaration_sha256": "9fedd442d1d0403c4a7323d8f4e95c51b8bd39bf82d2d0ba357eaaf243e69b78",
    "source_utf8": "/-- [core::f64::{f64}::classify]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 782:4-782:45\n    Name pattern: [core::f64::{f64}::classify]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::classify\"]\naxiom core.f64.F64.classify : F64 → Result core.num.FpCategory\n"
  },
  {
    "name": "core.f64.F64.to_bits",
    "extracted_signature": ": F64 → Result Std.U64",
    "rust_symbol": "core::f64::{f64}::to_bits",
    "raw_declaration_sha256": "ddaec6bb7c36ba6445a5b0b8e52f841240ca2563004e8ce1255caf0e36ec22ae",
    "source_utf8": "/-- [core::f64::{f64}::to_bits]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 1223:4-1223:37\n    Name pattern: [core::f64::{f64}::to_bits]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::to_bits\"]\naxiom core.f64.F64.to_bits : F64 → Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.from_bits",
    "extracted_signature": ": Std.U64 → Result F64",
    "rust_symbol": "core::f64::{f64}::from_bits",
    "raw_declaration_sha256": "af8ee4387cea97d0a353a83d6280c03f3c9f739bf733af5bd39c29909f1b2b19",
    "source_utf8": "/-- [core::f64::{f64}::from_bits]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 1269:4-1269:42\n    Name pattern: [core::f64::{f64}::from_bits]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::from_bits\"]\naxiom core.f64.F64.from_bits : Std.U64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithMulF64F64.mul",
    "extracted_signature": ": F64 → F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Mul<f64, f64> for f64}::mul",
    "raw_declaration_sha256": "20d985819a981e9e80485ce169c1d045ea13fa8796e9314d5b621141aae6deec",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Mul<f64, f64> for f64}::mul]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 350:12-350:41\n    Name pattern: [core::ops::arith::{core::ops::arith::Mul<f64, f64, f64>}::mul]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Mul<f64, f64, f64>}::mul\"]\naxiom F64.Insts.CoreOpsArithMulF64F64.mul : F64 → F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithDivF64F64.div",
    "extracted_signature": ": F64 → F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Div<f64, f64> for f64}::div",
    "raw_declaration_sha256": "1ebb67b412d89328acb4c5dd53168e84fdf26be6cbe1ef49f5a27edbd84ada36",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Div<f64, f64> for f64}::div]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 515:12-515:41\n    Name pattern: [core::ops::arith::{core::ops::arith::Div<f64, f64, f64>}::div]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Div<f64, f64, f64>}::div\"]\naxiom F64.Insts.CoreOpsArithDivF64F64.div : F64 → F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithNegF64.neg",
    "extracted_signature": ": F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Neg<f64> for f64}::neg",
    "raw_declaration_sha256": "bbf93f24bd7cfbc72e47e8bb3a9acc6641df939ad6afafd9ba02c81fe27f7ed0",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Neg<f64> for f64}::neg]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 719:12-719:30\n    Name pattern: [core::ops::arith::{core::ops::arith::Neg<f64, f64>}::neg]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Neg<f64, f64>}::neg\"]\naxiom F64.Insts.CoreOpsArithNegF64.neg : F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64",
    "extracted_signature": ": Std.U64 → Result F64",
    "rust_symbol": "dec2flt_model::num::imp::dec2flt::{impl dec2flt_model::num::imp::dec2flt::Lemire<u64> for f64}::from_u64",
    "raw_declaration_sha256": "ad172bce0522e7e41bceb8c66a5adff962822ee8a9454dfd59b7019086797ba8",
    "source_utf8": "/-- [dec2flt_model::num::imp::dec2flt::{impl dec2flt_model::num::imp::dec2flt::Lemire<u64> for f64}::from_u64]:\n    Source: 'num/imp/../../dec2flt/mod.rs', lines 263:4-266:5\n    Visibility: public -/\naxiom F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64\n  : Std.U64 → Result F64\n"
  }
]
reference/model-evidence/setup-reproduction.txt

Open file

Fresh extraction and composition evidence for Preamble
======================================================

Scope
-----

This record identifies the preparation evidence frozen with this reopened
repository and records the model-support composition reproduced on 2026-09-24.
It is evidence about source, extraction, and composition, not evidence that any
supplied GOAL is true.

Pinned configuration and tools
------------------------------

modeling-input/extraction.json selects the single library crate `crate` with
empty Cargo, Charon, and Aeneas argument lists.  crate/Cargo.toml gives the
`default` feature an empty definition, leaves `optimize_for_size` disabled,
uses the development profile, and explicitly enables overflow checks.
extraction-evidence/COMMAND.json records target x86_64-unknown-linux-gnu,
nightly-2026-06-01, debug assertions, overflow checks, unwind panic handling,
64-bit pointers, and SSE2.

modeling-input/tool-identities.json pins these six executables by SHA-256:

  cargo   54e05dce8c9ca2f638cc3d87ec1a19425b5d0bf1f31aeb48cf4792aec5cadf27
  rustc   162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  rustdoc 2bf660d140310e28146e2c002dc6fcabd957c0a3b740be0419e6f8e5a9c87523
  Charon  6490034f368ce98f3e7ae5a28bf71ed56d03bdf1e3712e71376b96fc55baeade
  Aeneas  9f446d2aaf59e8e705e36d05cb993f1c6ab0e97f8dc6fd2f19907a86ede30922
  Lean    3e0d0d3d801675359f2d4cf9815bfdb417b20b92fdd9d48b3b14c95bbae28bbf

Fresh extraction
----------------

The authoritative reproduction command in modeling-input/manifest.json is:

  python3 .trellis/scripts/pv_modeling.py check-native . --fresh

extraction-evidence/COMMAND.json records the exact argv, environment, and
working directory for every step.  extraction-evidence/RESULT.json records
exit status 0 for rustc identity, Charon/Cargo extraction, Cargo metadata,
Cargo cfg, and Aeneas.  Its primary run produced generated Lean SHA-256:

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9

The same digest is recorded for both `audited_sha256` and `native_sha256` in
modeling-input/manifest.json, whose `byte_identical` field is true, and is the
digest of this repository's generated.lean.  The manifest's accepted setup and
adaptation audits record the successful uncached Cargo, Charon, and Aeneas
checks, the absence of source placeholders, and the exact 24-external native
boundary.  In particular, the corrected source basis is:

  c42107d27bc47c02e4beb4d6db4c47879aecb68a175ab67f7e6c5d5e866a2402c06583f9e94b467095cf9aff1a26a4857650ace006061c1ca5e4c441747ef622

The pinned compatibility report modeling-input/axiom-compatibility.json has
SHA-256

  473825c0fe635e1abc7a734a2035f5df20ed4fe7053403ef2fb6833d7101a016

and checks 2,225 declarations.  It reports no unapproved axiom.  Its only
pending group contains 64 declarations downstream of the absent raw F64
carrier and external operations, exactly the boundary supplied by the authored
model-support layer; the raw extractor output contains no proof placeholder.

External boundary
-----------------

The reproducible command

  python3 .trellis/scripts/pv_modeling.py inspect-native .

returns exactly 24 declarations: fourteen F64 operations, four U64 bit
operations, and six byte/Option/slice/string operations.  Their complete
records are retained in reference/model-evidence/native-boundary.txt and the
structural-operation evidence files.  Tablet/model-support.json has exactly
one exact-signature binding for each declaration.  The whole opaque
`Lemire::from_u64` method has raw declaration SHA-256

  ad172bce0522e7e41bceb8c66a5adff962822ee8a9454dfd59b7019086797ba8

and covers source lines 263:4-266:5, including both the debug assertion and
the conversion.  It is not a cast-only boundary.

Composition and elaboration
---------------------------

After installing all 24 bindings, the exact command

  python3 .trellis/scripts/pv_modeling.py compose-native . --check

returned `matches=true`, `changed=false`, no mismatched files, raw extraction
hash

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9

and equal expected and actual Preamble hashes

  2bf9c25b895e20dd9efe782ae173e2b07b55020eed41a7d9b63b2ae9e1db007c.

The receipt reports 24 bindings, 47 authored definitions, and 170 extracted
modules.  Finally,

  python3 .trellis/scripts/check.py tablet

checked all 236 registered nodes against this composition and exited 0.  This
establishes complete composition and elaboration while leaving the 32 principal
GOAL proofs open for argument development as required.
reference/model-evidence/source-adaptation-delta.diff

Open file

--- upstream/dec2flt/common.rs
+++ crate/dec2flt/common.rs
@@ -14,4 +13,0 @@
-    /// Iteratively parse and consume digits from bytes.
-    ///
-    /// Returns the same bytes with consumed digits being elided. Breaks on invalid digits.
-    fn parse_digits(&self, func: impl FnMut(u8)) -> &Self;
@@ -38,16 +33,0 @@
-    #[inline]
-    fn parse_digits(&self, mut func: impl FnMut(u8)) -> &Self {
-        let mut s = self;
-
-        while let Some((c, rest)) = s.split_first() {
-            let c = c.wrapping_sub(b'0');
-            if c < 10 {
-                func(c);
-                s = rest;
-            } else {
-                break;
-            }
-        }
-
-        s
-    }
@@ -68 +48,4 @@
-#[derive(Debug, Copy, Clone, PartialEq, Eq, Default)]
+// Debug output is not an accepted public or trace observation.  Removing only
+// that implementation preserves the fields, computational derives, and every
+// algorithm operation independently of GOAL truth.
+#[derive(Copy, Clone, PartialEq, Eq, Default)]
--- upstream/dec2flt/decimal.rs
+++ crate/dec2flt/decimal.rs
@@ -28 +28,4 @@
-#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
+// Debug output is absent from the accepted observations.  Removing only that
+// implementation leaves all fields, computational derives, and parser
+// operations unchanged independently of GOAL truth.
+#[derive(Clone, Copy, Default, PartialEq, Eq)]
@@ -56 +59,11 @@
-    pub fn try_fast_path<F: Lemire>(&self) -> Option<F> {
+    pub fn try_fast_path<
+        F: Lemire
+            + core::ops::Div<Output = F>
+            + core::ops::Mul<Output = F>
+            + core::ops::Neg<Output = F>,
+    >(
+        &self,
+    ) -> Option<F> {
+        // `Lemire` already entails these three operator bounds through
+        // `Float`; spelling them directly changes no admitted type.  Charon
+        // needs the direct clauses to resolve each explicit call's `Output`.
@@ -73 +86,3 @@
-                value / F::pow10_fast_path((-self.exponent) as _)
+                // Explicit trait calls preserve Rust arithmetic and resolve
+                // the generic output type that Charon leaves ambiguous.
+                core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
@@ -75 +90 @@
-                value * F::pow10_fast_path(self.exponent as _)
+                core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
@@ -84 +99,4 @@
-            F::from_u64(mantissa) * F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _)
+            core::ops::Mul::mul(
+                F::from_u64(mantissa),
+                F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
+            )
@@ -87 +105,5 @@
-        if self.negative { Some(-value) } else { Some(value) }
+        if self.negative {
+            Some(core::ops::Neg::neg(value))
+        } else {
+            Some(value)
+        }
--- upstream/dec2flt/decimal_seq.rs
+++ crate/dec2flt/decimal_seq.rs
@@ -17 +17,4 @@
-#[derive(Clone, Debug, PartialEq)]
+// Debug output is absent from the accepted observations.  Removing only that
+// implementation preserves the representation, Clone/PartialEq behavior, and
+// every fallback operation independently of GOAL truth.
+#[derive(Clone, PartialEq)]
@@ -176 +179,2 @@
-        while (n >> shift) == 0 {
+        let mut all_zero = false;
+        while (n >> shift) == 0 && !all_zero {
@@ -181 +185,4 @@
-                return;
+                // The source returns here from inside the loop.  Recording the
+                // condition and returning immediately after the loop executes
+                // no intervening operation and preserves the unchanged value.
+                all_zero = true;
@@ -189,0 +197,3 @@
+        if all_zero {
+            return;
+        }
@@ -220,0 +231,51 @@
+// This is exactly the source reverse scan over the already-consumed prefix.
+// It is separate because Aeneas cannot join the loop while `parse_decimal_seq`
+// retains its other slice borrows.  The downward index has the same visitation
+// order and counts precisely the same zero bytes while ignoring dots.
+fn count_trailing_zeros(start: &[u8], consumed_len: usize) -> usize {
+    let mut n_trailing_zeros = 0;
+    let mut i = consumed_len;
+    let mut scanning = true;
+    while i != 0 && scanning {
+        let c = start[i - 1];
+        if c == b'0' || c == b'.' {
+            i -= 1;
+            if c == b'0' {
+                n_trailing_zeros += 1;
+            }
+        } else {
+            scanning = false;
+        }
+    }
+    n_trailing_zeros
+}
+
+// Equivalent to `ByteSlice::parse_digits(|digit| d.try_add_digit(digit))`.
+// An explicit index keeps the closure's mutable borrow out of the enclosing
+// parser context while retaining the same wrapping digit test and updates.
+fn parse_digits_into_seq<'a>(s: &'a [u8], d: &mut DecimalSeq) -> &'a [u8] {
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
+        d.try_add_digit(digit);
+        count += 1;
+    }
+    &s[count..]
+}
+
+// Equivalent to the source exponent `parse_digits` closure.  Bytes after the
+// first nondigit were ignored by the caller, so only the accumulated value is
+// returned; the 0x10000 guard and wrapping digit classification are identical.
+fn parse_decimal_exponent(s: &[u8]) -> i32 {
+    let mut exp_num = 0;
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
+        if exp_num < 0x10000 {
+            exp_num = 10 * exp_num + digit as i32;
+        }
+        count += 1;
+    }
+    exp_num
+}
+
@@ -226,2 +287,5 @@
-    while let Some((&b'0', s_next)) = s.split_first() {
-        s = s_next;
+    // Aeneas rejects the literal-pattern `while let`; this loop performs the
+    // same nonempty check, byte comparison, and one-byte consumption in the
+    // same order, with identical slice bounds.
+    while !s.is_empty() && s[0] == b'0' {
+        s = &s[1..];
@@ -230 +294 @@
-    s = s.parse_digits(|digit| d.try_add_digit(digit));
+    s = parse_digits_into_seq(s, &mut d);
@@ -232,2 +296,2 @@
-    if let Some((b'.', s_next)) = s.split_first() {
-        s = s_next;
+    if !s.is_empty() && s[0] == b'.' {
+        s = &s[1..];
@@ -237,2 +301,4 @@
-            while let Some((&b'0', s_next)) = s.split_first() {
-                s = s_next;
+            // As above, this is the source leading-zero loop written in the
+            // indexed form accepted by Aeneas.
+            while !s.is_empty() && s[0] == b'0' {
+                s = &s[1..];
@@ -250 +316 @@
-        s = s.parse_digits(|digit| d.try_add_digit(digit));
+        s = parse_digits_into_seq(s, &mut d);
@@ -256,8 +322,5 @@
-        let mut n_trailing_zeros = 0;
-        for &c in start[..(start.len() - s.len())].iter().rev() {
-            if c == b'0' {
-                n_trailing_zeros += 1;
-            } else if c != b'.' {
-                break;
-            }
-        }
+        let consumed_len = start.len() - s.len();
+        // Walking an index downward visits exactly the same bytes as
+        // `.iter().rev()` and stops on the same first nonzero nondot byte.  It
+        // also avoids the missing extracted `Iterator::rev` library field.
+        let n_trailing_zeros = count_trailing_zeros(start, consumed_len);
@@ -273 +336,4 @@
-    if let Some((&ch, s_next)) = s.split_first() {
+    // Indexed tests preserve `split_first`'s nonempty guard and byte order but
+    // avoid the loop-context joins Aeneas creates for nested slice patterns.
+    if !s.is_empty() {
+        let ch = s[0];
@@ -275,4 +341,7 @@
-            s = s_next;
-            let mut neg_exp = false;
-            if let Some((&ch, s_next)) = s.split_first() {
-                neg_exp = ch == b'-';
+            s = &s[1..];
+            let mut exp_sign = 1_i32;
+            if !s.is_empty() {
+                let ch = s[0];
+                if ch == b'-' {
+                    exp_sign = -1;
+                }
@@ -280 +349 @@
-                    s = s_next;
+                    s = &s[1..];
@@ -283,7 +352 @@
-            let mut exp_num = 0_i32;
-
-            s.parse_digits(|digit| {
-                if exp_num < 0x10000 {
-                    exp_num = 10 * exp_num + digit as i32;
-                }
-            });
+            let exp_num = parse_decimal_exponent(s);
@@ -291 +354,4 @@
-            d.decimal_point += if neg_exp { -exp_num } else { exp_num };
+            // `exp_num` is bounded by the source's 0x10000 guard, so this
+            // multiplication cannot overflow and equals the original Boolean
+            // choice between `-exp_num` and `exp_num` under checked arithmetic.
+            d.decimal_point += exp_sign * exp_num;
--- upstream/dec2flt/mod.rs
+++ crate/dec2flt/mod.rs
@@ -90 +90 @@
-use common::BiasedFp;
+pub use common::BiasedFp;
@@ -118,4 +118 @@
-    const MAX_EXPONENT_FAST_PATH: i64 = {
-        let log2_5 = f64::consts::LOG2_10 - 1.0;
-        (Self::SIG_TOTAL_BITS as f64 / log2_5) as i64
-    };
+    const MAX_EXPONENT_FAST_PATH: i64;
@@ -128,2 +125 @@
-    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 =
-        Self::MAX_EXPONENT_FAST_PATH + (Self::SIG_TOTAL_BITS as f64 / f64::consts::LOG2_10) as i64;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64;
@@ -144,0 +141,4 @@
+// The f16 Lemire instance is outside the exclusively f64 scope. Disabling it
+// leaves every retained f64 parser/helper/trace body, native decision, checked
+// operation, debug assertion, return value, and accepted observation unchanged.
+#[cfg(any())]
@@ -145,0 +146,7 @@
+    // These are the exact integer results of the upstream compile-time float
+    // formulae for `SIG_TOTAL_BITS = 11`: floor(11/log2(5)) = 4 and
+    // 4 + floor(11/log2(10)) = 7.  Concrete integers avoid unsupported const
+    // float arithmetic without changing either fast-path guard.
+    const MAX_EXPONENT_FAST_PATH: i64 = 4;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 7;
+
@@ -147,3 +154,11 @@
-        #[allow(clippy::use_self)]
-        const TABLE: [f16; 8] = [1e0, 1e1, 1e2, 1e3, 1e4, 0.0, 0.0, 0.];
-        TABLE[exponent & 7]
+        // Each integer is the exact IEEE encoding of the corresponding
+        // upstream table literal; the masked lookup and fallback zeros are
+        // unchanged.  Aeneas cannot translate arrays containing float values.
+        match exponent & 7 {
+            0 => f16::from_bits(0x3C00),
+            1 => f16::from_bits(0x4900),
+            2 => f16::from_bits(0x5640),
+            3 => f16::from_bits(0x63D0),
+            4 => f16::from_bits(0x70E2),
+            _ => f16::from_bits(0),
+        }
@@ -152,0 +168,4 @@
+    // This method is exactly the upstream primitive `u64 as f16` conversion.
+    // Charon extracts the cast, but Aeneas reports it unreachable; making only
+    // this primitive boundary opaque preserves all guards and dispatcher logic.
+    #[charon::opaque]
@@ -158,0 +178,4 @@
+// The f32 Lemire instance is likewise unused by the retained f64
+// specialization, so disabling it cannot affect any retained body or observed
+// f64 execution independently of the correctness GOALs.
+#[cfg(any())]
@@ -159,0 +183,4 @@
+    // Exact upstream formula results for `SIG_TOTAL_BITS = 24`.
+    const MAX_EXPONENT_FAST_PATH: i64 = 10;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 17;
+
@@ -161,4 +188,16 @@
-        #[allow(clippy::use_self)]
-        const TABLE: [f32; 16] =
-            [1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 0., 0., 0., 0., 0.];
-        TABLE[exponent & 15]
+        // Bit constructors preserve the exact table values and masked lookup,
+        // while avoiding Aeneas's unsupported float-valued array constants.
+        match exponent & 15 {
+            0 => f32::from_bits(0x3F80_0000),
+            1 => f32::from_bits(0x4120_0000),
+            2 => f32::from_bits(0x42C8_0000),
+            3 => f32::from_bits(0x447A_0000),
+            4 => f32::from_bits(0x461C_4000),
+            5 => f32::from_bits(0x47C3_5000),
+            6 => f32::from_bits(0x4974_2400),
+            7 => f32::from_bits(0x4B18_9680),
+            8 => f32::from_bits(0x4CBE_BC20),
+            9 => f32::from_bits(0x4E6E_6B28),
+            10 => f32::from_bits(0x5015_02F9),
+            _ => f32::from_bits(0),
+        }
@@ -167,0 +207,4 @@
+    // This is exactly the source `u64 as f32` conversion.  The narrow opaque
+    // boundary is required because Aeneas rejects the primitive cast itself;
+    // its input guard and every caller remain transparent.
+    #[charon::opaque]
@@ -174,0 +218,4 @@
+    // Exact upstream formula results for `SIG_TOTAL_BITS = 53`.
+    const MAX_EXPONENT_FAST_PATH: i64 = 22;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;
+
@@ -176,5 +223,29 @@
-        const TABLE: [f64; 32] = [
-            1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13, 1e14, 1e15,
-            1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22, 0., 0., 0., 0., 0., 0., 0., 0., 0.,
-        ];
-        TABLE[exponent & 31]
+        // These bit patterns are exactly the source table's rounded binary64
+        // literals.  The match is the same masked lookup; it merely keeps float
+        // constants out of Aeneas's unsupported constant interpreter.
+        match exponent & 31 {
+            0 => f64::from_bits(0x3FF0_0000_0000_0000),
+            1 => f64::from_bits(0x4024_0000_0000_0000),
+            2 => f64::from_bits(0x4059_0000_0000_0000),
+            3 => f64::from_bits(0x408F_4000_0000_0000),
+            4 => f64::from_bits(0x40C3_8800_0000_0000),
+            5 => f64::from_bits(0x40F8_6A00_0000_0000),
+            6 => f64::from_bits(0x412E_8480_0000_0000),
+            7 => f64::from_bits(0x4163_12D0_0000_0000),
+            8 => f64::from_bits(0x4197_D784_0000_0000),
+            9 => f64::from_bits(0x41CD_CD65_0000_0000),
+            10 => f64::from_bits(0x4202_A05F_2000_0000),
+            11 => f64::from_bits(0x4237_4876_E800_0000),
+            12 => f64::from_bits(0x426D_1A94_A200_0000),
+            13 => f64::from_bits(0x42A2_309C_E540_0000),
+            14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
+            15 => f64::from_bits(0x430C_6BF5_2634_0000),
+            16 => f64::from_bits(0x4341_C379_37E0_8000),
+            17 => f64::from_bits(0x4376_3457_85D8_A000),
+            18 => f64::from_bits(0x43AB_C16D_674E_C800),
+            19 => f64::from_bits(0x43E1_58E4_6091_3D00),
+            20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
+            21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
+            22 => f64::from_bits(0x4480_F0CF_064D_D592),
+            _ => f64::from_bits(0),
+        }
@@ -183,0 +255,8 @@
+    // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
+    // `charon::opaque` makes this entire asserted conversion external: both the
+    // unchanged `debug_assert!` and the unchanged cast below are in the opaque
+    // body. The callers, their fast-path guards, and their surrounding
+    // computation remain mechanically visible. A corresponding model binding
+    // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
+    // exact binary64 conversion at or below that bound.
+    #[charon::opaque]
@@ -209,5 +288,80 @@
-/// Converts a decimal string into a floating point number.
-#[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
-pub fn dec2flt<F: Lemire>(s: &str) -> Result<F, ParseFloatError> {
-    let mut s = s.as_bytes();
-    let Some(&c) = s.first() else { return Err(pfe_empty()) };
+/// Observable control-flow record for a dispatcher execution.
+///
+/// These variants add no decisions to the conversion: each stores values
+/// already computed at the corresponding source branch.  In particular, the
+/// first component returned by `dec2flt_with_trace` is the ordinary parser
+/// result, so projecting it preserves every public source observation without
+/// assuming any correctness goal.
+pub enum Dec2FltTrace<'a, F> {
+    /// The original string was empty; no helper was called.
+    EmptyInput,
+    /// Removing one lexical sign left an empty body; no helper was called.
+    SignOnly { body: &'a [u8], negative: bool },
+    /// Both lexical helpers returned `None`; no raw pair was selected.
+    Invalid {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        parse_inf_nan_result: Option<F>,
+    },
+    /// The special helper supplied the directly returned value; no pair was selected.
+    Special {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        parse_inf_nan_result: Option<F>,
+        result: F,
+    },
+    /// The ordinary native shortcut supplied the directly returned value.
+    FastPath {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        fast_path_input: decimal::Decimal,
+        fast_path_result: Option<F>,
+        result: F,
+    },
+    /// The integer/slow path selected and assembled one raw pair.
+    Assembled(Dec2FltAssemblyTrace<'a, F>),
+}
+
+/// Full observation record for the dispatcher path that performs final assembly.
+pub struct Dec2FltAssemblyTrace<'a, F> {
+    pub body: &'a [u8],
+    pub negative: bool,
+    pub parse_number_result: Option<decimal::Decimal>,
+    pub fast_path_input: decimal::Decimal,
+    pub fast_path_result: Option<F>,
+    pub first_compute_exponent: i64,
+    pub first_compute_mantissa: u64,
+    pub first_compute_result: BiasedFp,
+    pub second_compute_guard: bool,
+    pub second_compute_exponent: Option<i64>,
+    pub second_compute_mantissa: Option<u64>,
+    pub second_compute_result: Option<BiasedFp>,
+    pub second_equals_first: Option<bool>,
+    pub forced_deferral: bool,
+    pub post_comparison_pair: BiasedFp,
+    pub slow_path_guard: bool,
+    pub slow_path_result: Option<BiasedFp>,
+    pub selected_pair: BiasedFp,
+    pub assembled_word: u64,
+    pub assembly_result: F,
+    pub lexical_sign_applied: bool,
+    pub result: F,
+}
+
+/// Run the actual dispatcher while retaining its approved internal observations.
+pub fn dec2flt_with_trace<
+    'a,
+    F: Lemire
+        + core::ops::Div<Output = F>
+        + core::ops::Mul<Output = F>
+        + core::ops::Neg<Output = F>,
+>(
+    s: &'a str,
+) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
+    let mut body = s.as_bytes();
+    let Some(&c) = body.first() else {
+        return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
+    };
@@ -216 +370 @@
-        s = &s[1..];
+        body = &body[1..];
@@ -218,2 +372,2 @@
-    if s.is_empty() {
-        return Err(pfe_invalid());
+    if body.is_empty() {
+        return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
@@ -222 +376,2 @@
-    let mut num = match parse_number(s) {
+    let parse_number_result = parse_number(body);
+    let parsed = match parse_number_result {
@@ -224,2 +379,24 @@
-        None if let Some(value) = parse_inf_nan(s, negative) => return Ok(value),
-        None => return Err(pfe_invalid()),
+        None => {
+            let parse_inf_nan_result = parse_inf_nan(body, negative);
+            return match parse_inf_nan_result {
+                Some(value) => (
+                    Ok(value),
+                    Dec2FltTrace::Special {
+                        body,
+                        negative,
+                        parse_number_result,
+                        parse_inf_nan_result,
+                        result: value,
+                    },
+                ),
+                None => (
+                    Err(pfe_invalid()),
+                    Dec2FltTrace::Invalid {
+                        body,
+                        negative,
+                        parse_number_result,
+                        parse_inf_nan_result,
+                    },
+                ),
+            };
+        }
@@ -226,0 +404,2 @@
+
+    let mut num = parsed;
@@ -229,2 +408,13 @@
-        if let Some(value) = num.try_fast_path::<F>() {
-            return Ok(value);
+        let fast_path_result = num.try_fast_path::<F>();
+        if let Some(value) = fast_path_result {
+            return (
+                Ok(value),
+                Dec2FltTrace::FastPath {
+                    body,
+                    negative,
+                    parse_number_result,
+                    fast_path_input: num,
+                    fast_path_result,
+                    result: value,
+                },
+            );
@@ -234,15 +424,27 @@
-    // If significant digits were truncated, then we can have rounding error
-    // only if `mantissa + 1` produces a different result. We also avoid
-    // redundantly using the Eisel-Lemire algorithm if it was unable to
-    // correctly round on the first pass.
-    let mut fp = compute_float::<F>(num.exponent, num.mantissa);
-    if num.many_digits
-        && fp.p_biased >= 0
-        && fp != compute_float::<F>(num.exponent, num.mantissa + 1)
-    {
-        fp.p_biased = -1;
-    }
-    // Unable to correctly round the float using the Eisel-Lemire algorithm.
-    // Fallback to a slower, but always correct algorithm.
-    if fp.p_biased < 0 {
-        fp = parse_long_mantissa::<F>(s);
+    let first_compute_exponent = num.exponent;
+    let first_compute_mantissa = num.mantissa;
+    let first_compute_result = compute_float::<F>(first_compute_exponent, first_compute_mantissa);
+    let mut fp = first_compute_result;
+
+    // This expands the source short-circuit conjunction without moving the
+    // checked `mantissa + 1`: that addition and the second helper call still
+    // occur exactly when `many_digits && fp.p_biased >= 0`.
+    let second_compute_guard = num.many_digits && fp.p_biased >= 0;
+    let mut second_compute_exponent = None;
+    let mut second_compute_mantissa = None;
+    let mut second_compute_result = None;
+    let mut second_equals_first = None;
+    let mut forced_deferral = false;
+    if second_compute_guard {
+        let exponent = num.exponent;
+        let mantissa = num.mantissa + 1;
+        let second = compute_float::<F>(exponent, mantissa);
+        let equal = fp == second;
+        second_compute_exponent = Some(exponent);
+        second_compute_mantissa = Some(mantissa);
+        second_compute_result = Some(second);
+        second_equals_first = Some(equal);
+        if !equal {
+            fp.p_biased = -1;
+            forced_deferral = true;
+        }
@@ -249,0 +452 @@
+    let post_comparison_pair = fp;
@@ -251,5 +454,69 @@
-    let mut float = biased_fp_to_float::<F>(fp);
-    if num.negative {
-        float = -float;
-    }
-    Ok(float)
+    let slow_path_guard = fp.p_biased < 0;
+    let mut slow_path_result = None;
+    if slow_path_guard {
+        // The exact slow-path input is the trace's common `body`; the guard
+        // records whether this call occurred, avoiding a duplicate live slice
+        // reference that Aeneas cannot join across this branch.
+        let replacement = parse_long_mantissa::<F>(body);
+        slow_path_result = Some(replacement);
+        fp = replacement;
+    }
+
+    let selected_pair = fp;
+    // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
+    // it neither changes the selected pair nor introduces a new branch or call.
+    let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
+    let assembly_result = biased_fp_to_float::<F>(fp);
+    let lexical_sign_applied = num.negative;
+    let result = if lexical_sign_applied {
+        core::ops::Neg::neg(assembly_result)
+    } else {
+        assembly_result
+    };
+
+    (
+        Ok(result),
+        Dec2FltTrace::Assembled(Dec2FltAssemblyTrace {
+            body,
+            negative,
+            parse_number_result,
+            fast_path_input: num,
+            fast_path_result: None,
+            first_compute_exponent,
+            first_compute_mantissa,
+            first_compute_result,
+            second_compute_guard,
+            second_compute_exponent,
+            second_compute_mantissa,
+            second_compute_result,
+            second_equals_first,
+            forced_deferral,
+            post_comparison_pair,
+            slow_path_guard,
+            slow_path_result,
+            selected_pair,
+            assembled_word,
+            assembly_result,
+            lexical_sign_applied,
+            result,
+        }),
+    )
+}
+
+/// Converts a decimal string into a floating point number.
+#[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
+pub fn dec2flt<
+    F: Lemire
+        + core::ops::Div<Output = F>
+        + core::ops::Mul<Output = F>
+        + core::ops::Neg<Output = F>,
+>(
+    s: &str,
+) -> Result<F, ParseFloatError> {
+    // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
+    // clause admits exactly the same instances and lets Charon resolve the
+    // explicit, source-equivalent final negation.
+    // The public function is now exactly the result projection of the single
+    // instrumented implementation.  No conversion step is duplicated, and
+    // discarding the trace cannot affect Rust evaluation or the returned bits.
+    dec2flt_with_trace::<F>(s).0
--- upstream/dec2flt/parse.rs
+++ crate/dec2flt/parse.rs
@@ -34,3 +34,6 @@
-        let num = s.read_u64();
-        if is_8digits(num) {
-            x = x.wrapping_mul(1_0000_0000).wrapping_add(parse_8digits(num));
+        // `chunk` is the source's local `num` under a nonconflicting name.
+        // The rename has no Rust effect and prevents the Lean backend from
+        // resolving `num.imp...` as a field projection on this local value.
+        let chunk = s.read_u64();
+        if is_8digits(chunk) {
+            x = x.wrapping_mul(1_0000_0000).wrapping_add(parse_8digits(chunk));
@@ -43 +46,6 @@
-    s = s.parse_digits(|digit| {
+    // This is the removed `ByteSlice::parse_digits` call specialized to its
+    // only parser use: identical wrapping digit classification, accumulator
+    // update, and first-nondigit stop, without an unsupported closure state.
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
@@ -45 +53,3 @@
-    });
+        count += 1;
+    }
+    s = &s[count..];
@@ -71,0 +82,38 @@
+// This is the source prefix scan isolated from `parse_partial_number` because
+// Aeneas cannot join its loop context while the enclosing function's other
+// slice borrows are live.  It visits the same bytes, in order, and performs
+// the identical checked `isize` subtraction for every leading dot or zero.
+fn adjust_many_digit_count(start: &[u8], mut n_digits: isize) -> isize {
+    let mut scan_index = 0;
+    let mut scanning = true;
+    while scan_index < start.len() && scanning {
+        let c = start[scan_index];
+        if c == b'.' || c == b'0' {
+            n_digits -= c.saturating_sub(b'0' - 1) as isize;
+            scan_index += 1;
+        } else {
+            scanning = false;
+        }
+    }
+    n_digits
+}
+
+// This is the source many-digit retry as a transparent helper.  Isolating its
+// rebased slices avoids an Aeneas context-join failure; both calls, the branch,
+// the offset arithmetic, and the explicit-exponent addition are unchanged.
+fn parse_many_digits(start: &[u8], int_end: &[u8], exp_number: i64) -> (u64, i64) {
+    let mut mantissa = 0;
+    let mut s = start;
+    try_parse_19digits(&mut s, &mut mantissa);
+    let mut exponent = if mantissa >= MIN_19DIGIT_INT {
+        int_end.offset_from(s)
+    } else {
+        s = &s[1..];
+        let before = s;
+        try_parse_19digits(&mut s, &mut mantissa);
+        -s.offset_from(before)
+    } as i64;
+    exponent += exp_number;
+    (mantissa, exponent)
+}
+
@@ -86,3 +134,10 @@
-    if matches!(s.first(), Some(&x) if x.is_ascii_digit()) {
-        *s_ref = s.parse_digits(|digit| {
-            // no overflows here, saturate well before overflow
+    // `matches!` with a guarded slice pattern triggers an Aeneas internal
+    // error.  This short-circuit test reads the same first byte exactly when
+    // it exists and therefore preserves both acceptance and evaluation order.
+    if !s.is_empty() && s[0].is_ascii_digit() {
+        // Specialized form of the source digit callback.  `count` advances
+        // exactly once per accepted byte and the bound keeps every checked
+        // exponent operation in the same safe range as the source.
+        let mut count = 0;
+        while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+            let digit = s[count].wrapping_sub(b'0');
@@ -92 +147,3 @@
-        });
+            count += 1;
+        }
+        *s_ref = &s[count..];
@@ -155,9 +212,5 @@
-    let mut p = start;
-    while let Some((&c, p_next)) = p.split_first() {
-        if c == b'.' || c == b'0' {
-            n_digits -= c.saturating_sub(b'0' - 1) as isize;
-            p = p_next;
-        } else {
-            break;
-        }
-    }
+    // The indexed loop is equivalent to the source `while let split_first`:
+    // it tests nonemptiness before the same byte read and consumes one byte
+    // only on the two source continuation cases.  This avoids Aeneas's loop
+    // context mismatch without changing checked subtraction or slice bounds.
+    n_digits = adjust_many_digit_count(start, n_digits);
@@ -167,14 +220,3 @@
-        mantissa = 0;
-        let mut s = start;
-        try_parse_19digits(&mut s, &mut mantissa);
-        exponent = if mantissa >= MIN_19DIGIT_INT {
-            // big int
-            int_end.offset_from(s)
-        } else {
-            s = &s[1..];
-            let before = s;
-            try_parse_19digits(&mut s, &mut mantissa);
-            -s.offset_from(before)
-        } as i64;
-        // add back the explicit part
-        exponent += exp_number;
+        let retried = parse_many_digits(start, int_end, exp_number);
+        mantissa = retried.0;
+        exponent = retried.1;
--- upstream/dec2flt/slow.rs
+++ crate/dec2flt/slow.rs
@@ -48,0 +49 @@
+    let mut loop_result = None;
@@ -50 +51 @@
-    while d.decimal_point > 0 {
+    while d.decimal_point > 0 && loop_result.is_none() {
@@ -55 +56,7 @@
-            return fp_zero;
+            // The source returns `fp_zero` at this exact point.  Storing that
+            // result and terminating the loop performs no later loop update;
+            // the return below is therefore behavior-identical and avoids an
+            // Aeneas restriction on returns from nested loop translation.
+            loop_result = Some(fp_zero);
+        } else {
+            exp2 += shift as i32;
@@ -57 +64,3 @@
-        exp2 += shift as i32;
+    }
+    if let Some(result) = loop_result {
+        return result;
@@ -60 +69 @@
-    while d.decimal_point <= 0 {
+    while d.decimal_point <= 0 && loop_result.is_none() {
@@ -72 +81,6 @@
-            return fp_inf;
+            // This records the source's immediate `fp_inf` return.  Since the
+            // guarded loop exits before the exponent update, moving the return
+            // just below the loop preserves every state transition.
+            loop_result = Some(fp_inf);
+        } else {
+            exp2 -= shift as i32;
@@ -74 +88,3 @@
-        exp2 -= shift as i32;
+    }
+    if let Some(result) = loop_result {
+        return result;
--- upstream/traits.rs
+++ crate/traits.rs
@@ -11 +11 @@
-use crate::{f64, fmt, ops};
+use crate::{f64, ops};
@@ -14 +14,5 @@
-pub trait CastInto<T: Copy>: Copy {
+// All uses are through `Int`, which independently requires `Self: Copy`, and
+// every implementation here is a primitive Copy type.  Removing that redundant
+// supertrait changes no call or value but prevents Aeneas from emitting two
+// identically named `Copy` fields for `Self` and `T` in the Lean structure.
+pub trait CastInto<T: Copy> {
@@ -18,0 +23,4 @@
+// The accepted observations contain no formatting behavior.  Removing the
+// `Debug` supertrait changes neither the concrete primitive integer instances
+// nor any operation used by the algorithms, so it preserves the f64
+// specialization and every inventoried observation independently of GOAL truth.
@@ -23 +30,0 @@
-    + fmt::Debug
@@ -52 +59,6 @@
-int!(u16, u32, u64);
+// Only `u64` is the associated integer of the retained `f64` specialization.
+// The removed `u16`/`u32` instances served only the excluded `f16`/`f32`
+// implementations, so their removal changes no f64 public, helper, or trace
+// body, native decision, checked arithmetic, debug assertion, return value, or
+// accepted observation.
+int!(u64);
@@ -55,0 +68,6 @@
+// Formatting is outside every accepted public and trace observation. `Add`,
+// equality, ordering, default construction, and cloning are also unused by all
+// retained generic bodies; only `Copy`, `Mul`, `Div`, and `Neg` are required.
+// Removing those unused requirements admits the same f64 implementation and
+// changes no f64 body, native decision, checked arithmetic, debug assertion,
+// return value, or trace observation, independently of any GOAL's truth.
@@ -61,6 +78,0 @@
-    + ops::Add<Output = Self>
-    + fmt::Debug
-    + PartialEq
-    + PartialOrd
-    + Default
-    + Clone
@@ -134,4 +146 @@
-    const LARGEST_POWER_OF_TEN: i32 = {
-        let largest_pow2 = Self::EXP_BIAS + 1;
-        pow2_to_pow10(largest_pow2 as i64) as i32
-    };
+    const LARGEST_POWER_OF_TEN: i32;
@@ -175,19 +184 @@
-    fn integer_decode(self) -> (u64, i16, i8) {
-        let bits = self.to_bits();
-        let sign: i8 = if bits >> (Self::BITS - 1) == Self::Int::ZERO { 1 } else { -1 };
-        let mut exponent: i16 = ((bits & Self::EXP_MASK) >> Self::SIG_BITS).cast();
-        let mantissa = if exponent == 0 {
-            (bits & Self::SIG_MASK) << 1
-        } else {
-            (bits & Self::SIG_MASK) | (Self::Int::ONE << Self::SIG_BITS)
-        };
-        // Exponent bias + mantissa shift
-        exponent -= (Self::EXP_BIAS + Self::SIG_BITS) as i16;
-        (mantissa.into(), exponent, sign)
-    }
-}
-
-/// Solve for `b` in `10^b = 2^a`
-const fn pow2_to_pow10(a: i64) -> i64 {
-    let res = (a as f64) / f64::consts::LOG2_10;
-    res as i64
+    fn integer_decode(self) -> (u64, i16, i8);
@@ -196,0 +188,4 @@
+// The f16 implementation is outside the exclusively f64 scope. Disabling it
+// leaves every retained f64 public/helper/trace body and all of its decisions,
+// checked operations, assertions, return values, and observations unchanged.
+#[cfg(any())]
@@ -203 +198,4 @@
-    const NEG_NAN: Self = -Self::NAN;
+    // `from_bits` produces exactly the bit pattern obtained by negating the
+    // upstream canonical NaN.  This avoids Aeneas's unsupported float unop
+    // while preserving the constant, including its sign and payload bits.
+    const NEG_NAN: Self = f16::from_bits(0xFE00);
@@ -211,0 +210,2 @@
+    // Exact value of trunc(16 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 4;
@@ -223,0 +224,3 @@
+// `FloatExt for f16` is used only by the excluded f16 specialization; it is
+// irrelevant to all retained f64 computation and observations listed above.
+#[cfg(any())]
@@ -228,0 +232,16 @@
+
+    // Specializing the upstream default removes only unsupported associated-
+    // integer operator resolution; these are the same bit operations with
+    // `Self::Int = u16` and the same exponent-bias subtraction.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 15 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 10) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u16 << 10)
+        };
+        exponent -= 15 + 10;
+        (mantissa as u64, exponent, sign)
+    }
@@ -230,0 +250,3 @@
+// The f32 implementation is outside the exclusively f64 scope. Disabling it
+// does not alter any retained f64 computation, assertion, result, or trace.
+#[cfg(any())]
@@ -237 +259,3 @@
-    const NEG_NAN: Self = -f32::NAN;
+    // Bit-identical to the upstream `-f32::NAN`, without the unsupported
+    // compile-time float negation.
+    const NEG_NAN: Self = f32::from_bits(0xFFC0_0000);
@@ -245,0 +270,2 @@
+    // Exact value of trunc(128 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 38;
@@ -256,0 +283,3 @@
+// `FloatExt for f32` likewise has no use in any retained f64 body or accepted
+// observation and is disabled without changing f64 execution.
+#[cfg(any())]
@@ -261,0 +291,16 @@
+
+    // This is the upstream default after substituting `Self::Int = u32`;
+    // concreteness is needed only because Charon cannot resolve the generic
+    // associated-integer shifts and bit operators for Aeneas.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 31 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 23) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u32 << 23)
+        };
+        exponent -= 127 + 23;
+        (mantissa as u64, exponent, sign)
+    }
@@ -270 +315,3 @@
-    const NEG_NAN: Self = -Self::NAN;
+    // Bit-identical to the upstream `-f64::NAN`, without the unsupported
+    // compile-time float negation.
+    const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);
@@ -278,0 +326,2 @@
+    // Exact value of trunc(1024 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 308;
@@ -293,0 +343,16 @@
+    }
+
+    // This is the upstream default after substituting `Self::Int = u64`;
+    // it preserves every decoded field while avoiding unsupported generic
+    // associated-integer operator resolution.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 63 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 52) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u64 << 52)
+        };
+        exponent -= 1023 + 52;
+        (mantissa, exponent, sign)
reference/model-evidence/source-adaptation-delta.txt

Open file

Primary inventory and preservation analysis of the upstream-to-crate delta
============================================================================

Method and complete file inventory
----------------------------------

This record compares the supplied files in upstream/ with the frozen adapted
crate/.  It treats the sources and their control flow as primary evidence; it
does not use a prior route decision as semantic proof and makes no assertion
that a supplied GOAL is true.  The exact raw aggregate diff is retained as
reference/model-evidence/source-adaptation-delta.diff.  It was generated from
the repository root by this exact command (the for-list is the complete
LC_ALL=C-sorted upstream inventory, identical files contribute zero bytes,
labels are literal root-relative paths, hunks are concatenated in listed
order, status 1 is accepted as diff's expected ``files differ'' status, and
every other nonzero status aborts):

  export LC_ALL=C
  artifact=reference/model-evidence/source-adaptation-delta.diff
  : > "$artifact"
  saw_difference=0
  for supplied in \
    dec2flt/common.rs \
    dec2flt/decimal.rs \
    dec2flt/decimal_seq.rs \
    dec2flt/fpu.rs \
    dec2flt/lemire.rs \
    dec2flt/mod.rs \
    dec2flt/parse.rs \
    dec2flt/slow.rs \
    dec2flt/table.rs \
    traits.rs
  do
    if diff --unified=0 --label "upstream/$supplied" --label "crate/$supplied" \
        "upstream/$supplied" "crate/$supplied" >> "$artifact"; then
      :
    else
      diff_status=$?
      if [ "$diff_status" -ne 1 ]; then
        exit "$diff_status"
      fi
      saw_difference=1
    fi
  done
  test "$saw_difference" -eq 1
  sha256sum "$artifact"

The command used GNU diffutils 3.12 at /usr/bin/diff, whose SHA-256 is
dfab4814355b488934cf8c63ce96d94184ea3d9b5e4f9be50278ad8e080168f5.
Its actual final output was:

  fdf88cabfe40ce962d2bd5eda22eb5b3cbbf8a936a81b896e98698bf472cd0e4  reference/model-evidence/source-adaptation-delta.diff

The retained byte stream is 38,813 bytes and 933 lines.  The complete source
inventory and independently reproduced file hashes are:

  supplied path                 upstream SHA-256                                                   crate SHA-256                                                      status
  dec2flt/common.rs             fc64094721ff23e08fcba013154d04dec3fe986cae5ffd73a20f86049980aace   4c4be815335a7b176527eb1345e662890caa48181a0a4f814594339016cab18e   changed
  dec2flt/decimal.rs            3c164785e1bc3f3b48aa9c212dd6c4ab535fe828523af9fa584df4c7b1e60e0d   633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb   changed
  dec2flt/decimal_seq.rs        c0c1c6028e3f57cefc3de7635a94788e9180f5ebcedc7a334ec8dbac786ec788   4aa4ecf9f31970033093d73238d4f2c72d433639bbe467c0741b185807380bd9   changed
  dec2flt/fpu.rs                16cf9ec154d477ab3d4184a01fb4b9ed7c59f0228cc55589d393c40a61b19d8f   16cf9ec154d477ab3d4184a01fb4b9ed7c59f0228cc55589d393c40a61b19d8f   identical
  dec2flt/lemire.rs             fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1   fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1   identical
  dec2flt/mod.rs                7198e238c554b692405537a446b3526ad66805ec2900cd0e299f10c51402a44a   ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d   changed
  dec2flt/parse.rs              9daf21ab9445a84552535152f376eef8c30f3d5827296c0645f5952d3b22bbf1   50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f   changed
  dec2flt/slow.rs               43e7aba32d7431bbf0e1bbcb4c334eaffb23eb66891c7e45abe799c5235cc0d2   93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485   changed
  dec2flt/table.rs              6eb59023784bd84cb6fb074c70da8a99bef72bc2a2ea179b0da457ca1ee00abb   6eb59023784bd84cb6fb074c70da8a99bef72bc2a2ea179b0da457ca1ee00abb   identical
  traits.rs                     66a02c44d72dfcc3ddae7e34a290e390dabaf98c5911b283d2d97f2f0075a44e   9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf   changed

The standalone package adds four files having no supplied counterpart:

  crate/Cargo.toml              2040ce5dc92c51b5245113f97682b692b876aa57708b5c7c483425ba152943c8
  crate/lib.rs                  1df2b8bcb2f52068d05a6343923716d0ef4475abdef34a0de3fe7cb8dc2ba95b
  crate/num/mod.rs              d9ac4f964d124bd4660914dc4c80bbb14f48d7851f9a8edc71a0931e9fce37b3
  crate/num/imp/mod.rs          df09b97393e97b23b0a558c2fcbbf4e75dd9d68338f1e83f168bab80a37a31f1

Thus fpu.rs, lemire.rs, and the complete 671-line table.rs, including their
algorithmic constants and tables, are byte-identical.  The following sections
account for every other file and every changed hunk.

Namespace and error shell
-------------------------

crate/lib.rs:1-12 is a no_std crate root that re-exports core::f64 and
core::ops and introduces the same num module path expected by the supplied
slice.  crate/num/imp/mod.rs:1-10 uses path attributes to place traits.rs and
dec2flt/mod.rs at core::num::imp-like module names.  These declarations add no
wrapper call or computation.  crate/num/mod.rs:1 re-exports
core::num::FpCategory.  crate/num/mod.rs:3-26 defines a local private
FloatErrorKind and ParseFloatError shell so the standalone package can name
the parser's error type.  The pursued GOALs observe only panic versus normal
return and, on normal return, the outer Result's Ok/Err discriminant; they do
not observe the private error kind or formatting.  No identity is asserted
between this local shell and an unpinned core error payload.
crate/Cargo.toml:5-22 selects the package, empty default features, and
checked-overflow profiles.  The configuration and fresh build are independently
reproduced in setup-reproduction.txt.

Visibility, derives, and bounds
-------------------------------

upstream/dec2flt/mod.rs:90 versus crate/dec2flt/mod.rs:90 changes only the
visibility of the existing BiasedFp import so a goal-facing caller can name the
same type.  It changes neither layout nor execution.

upstream/dec2flt/common.rs:68 and decimal.rs:28 and decimal_seq.rs:17 include
Debug derives.  The corresponding crate spans common.rs:48-51,
decimal.rs:28-31, and decimal_seq.rs:17-20 remove only Debug.  Copy, Clone,
PartialEq, Eq, and Default used by computation remain where present, and no
accepted observation formats these records.

upstream/traits.rs:11-52 versus crate/traits.rs:11-64 removes formatting from
Int, removes a redundant Copy supertrait from CastInto, and instantiates Int
only for u64.  Every call of CastInto is through Int, which still requires
Copy; all retained concrete values are primitive Copy values.  The removed
u16/u32 instances are associated only with the disabled f16/f32 formats.

upstream/traits.rs:55-76 versus crate/traits.rs:67-80 removes Add, Debug,
PartialEq, PartialOrd, Default, and Clone from Float while retaining Copy, Mul,
Div, and Neg.  A search of all retained generic bodies shows no call using a
removed operation.  upstream/dec2flt/decimal.rs:56-89 versus
crate/dec2flt/decimal.rs:59-111 and upstream/dec2flt/mod.rs:209-256 versus
crate/dec2flt/mod.rs:352-520 add direct Div, Mul, and Neg bounds already implied
by Lemire -> Float, and replace operator notation with calls to those same
traits.  Rust desugars the original /, *, and unary - to these trait calls, so
the operands, call order, result, and admitted f64 specialization are unchanged.

Exact constants, tables, and specialized decoding
-------------------------------------------------

The source formulae and decimal-literal table were evaluated directly by the
pinned rustc using the retained source
reference/model-evidence/adaptation-constants-probe.rs.  The command was:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/adaptation-constants-probe.rs
  B=.trellis/scratch/adaptation-constants-probe
  "$R" --edition 2024 --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$P" "$B"
  "$B"

The source hash was
b5a4a2cba0c08053cb9a816adb1ba5dbd160bf3928bdf5ccf56b7ae83aaa2aa5
and the resulting executable hash was
b02d2f6deb675f17d0dbdc22e57a67d7692689f7a2b0d7b125556c35c4b8a4a5.
Raw output was:

  largest_power_of_ten=308
  max_exponent_fast_path=22
  max_exponent_disguised=37
  neg_nan=fff8000000000000
  pow10_0=3ff0000000000000
  pow10_1=4024000000000000
  pow10_2=4059000000000000
  pow10_3=408f400000000000
  pow10_4=40c3880000000000
  pow10_5=40f86a0000000000
  pow10_6=412e848000000000
  pow10_7=416312d000000000
  pow10_8=4197d78400000000
  pow10_9=41cdcd6500000000
  pow10_10=4202a05f20000000
  pow10_11=42374876e8000000
  pow10_12=426d1a94a2000000
  pow10_13=42a2309ce5400000
  pow10_14=42d6bcc41e900000
  pow10_15=430c6bf526340000
  pow10_16=4341c37937e08000
  pow10_17=4376345785d8a000
  pow10_18=43abc16d674ec800
  pow10_19=43e158e460913d00
  pow10_20=4415af1d78b58c40
  pow10_21=444b1ae4d6e2ef50
  pow10_22=4480f0cf064dd592

upstream/traits.rs:134-137 computes LARGEST_POWER_OF_TEN through a Float
default, and upstream/traits.rs:175-193 gives the generic integer_decode and
the helper used by that constant.  crate/traits.rs:146 makes the constant an
associated requirement; crate/traits.rs:309-359 supplies the retained f64
values and decoder after substituting BITS=64, SIG_BITS=52, EXP_BIAS=1023,
EXPONENT_MASK, MANTISSA_MASK, and the u64 operations.  Each source expression
then becomes exactly the corresponding crate expression: sign is bits>>63,
exponent is (bits & mask)>>52 cast to i16, the subnormal mantissa is shifted
once, the normal mantissa receives 1<<52, and 1023+52 is subtracted.  The
resulting tuple and every bit operation are unchanged.  The probe output above
shows that the computed f64 LARGEST_POWER_OF_TEN is 308 and that the source
-f64::NAN word is fff8000000000000, exactly crate/traits.rs:315-327; the
independent binary64-boundary.txt record fixes the masks and primitive bit
semantics used by the decoder.

upstream/dec2flt/mod.rs:118-129 gives the two Lemire default formulae.
crate/dec2flt/mod.rs:115-128 makes them associated requirements, and the
retained f64 instance at crate/dec2flt/mod.rs:217-220 supplies 22 and 37, the
integer results of the two source formulae for 53 significand bits.
upstream/dec2flt/mod.rs:176-181 indexes a 32-entry f64 table with exponent&31.
crate/dec2flt/mod.rs:222-251 performs the same masked selection using from_bits:
cases 0 through 22 are the exact pinned binary64 words printed above for 1e0 through 1e22 and
all other cases return positive zero, as did entries 23 through 31.  The full
word list and the pinned float semantics are recorded in binary64-boundary.txt.
The analogous f16/f32 replacements at crate/dec2flt/mod.rs:145-215 and
crate/traits.rs:187-307 lie under cfg(any()) and cannot enter this build.

Whole-function from_u64 opacity
-------------------------------

upstream/dec2flt/mod.rs:184-188 and crate/dec2flt/mod.rs:263-266 have the same
f64 body: the same enabled debug_assert that v <= 1<<53, followed by the same
primitive `v as f64` cast.  The sole semantic-boundary annotation is
#[charon::opaque] at crate line 262, syntactically attached to the function
item.  It therefore hides the entire from_u64 body from translation: neither
the debug assertion nor the cast is transparent in the extraction.  The
callers, their guards, and the surrounding native-path computation remain
transparent.  The fresh external inventory contains the whole method as the
single external F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64.  Its
separately reviewed ModelF64FromU64 binding supplies exactly successful integer
conversion for v <= 2^53 and assertion failure otherwise.

Digit scans, slice patterns, and helper extraction
-------------------------------------------------

upstream/dec2flt/common.rs:14-53 supplies ByteSlice::parse_digits: repeatedly
split_first, wrapping-subtract ASCII zero, invoke the closure exactly when the
result is below 10, consume that byte, and stop at the first other byte.
crate/dec2flt/common.rs:11-36 removes only this method.  Its complete set of
uses is replaced as follows.

* upstream/dec2flt/parse.rs:31-48 versus crate/dec2flt/parse.rs:31-58 keeps the
  eight-byte loop, wrapping multiply/add, and then performs the same digit test,
  accumulator update, and one-byte progress with an index.  The local rename
  num to chunk is lexical only.
* upstream/dec2flt/parse.rs:83-97 versus crate/dec2flt/parse.rs:131-153 expands
  matches!/parse_digits into the same nonempty first-digit guard, the same
  0x10000 bounded exponent update, the same first-nondigit suffix, and the same
  final sign.  The bound is tested before each checked multiply and addition,
  exactly as in the closure.
* upstream/dec2flt/decimal_seq.rs:220-295 versus
  crate/dec2flt/decimal_seq.rs:231-359 extracts parse_digits_into_seq,
  parse_decimal_exponent, and count_trailing_zeros.  The digit helpers use the
  same wrapping byte test, forward order, try_add_digit state transition, and
  0x10000 exponent guard.  The reverse helper visits indices consumed_len-1
  down to zero, increments only for ASCII zero, ignores a decimal point, and
  stops at the first other byte, exactly the original iter().rev() loop.

In all these replacements, indexing occurs only under count<len or !is_empty,
so it has the same bounds as split_first.  Slicing advances by exactly the same
one or eight bytes.  No wrapping operation is replaced by checked arithmetic,
and no checked source operation is replaced by wrapping arithmetic.

upstream/dec2flt/parse.rs:155-181 versus crate/dec2flt/parse.rs:82-119 and
212-226 moves two loops into adjust_many_digit_count and parse_many_digits.
The prefix helper visits the same start bytes in the same order, performs the
same saturating_sub and checked isize subtraction, and stops on the same byte.
The retry helper makes the same first 19-digit call, tests the same threshold,
makes the same one-byte rebase and second call in the alternate branch,
computes the same offset with the same sign, casts it to i64, and performs the
same checked addition of exp_number last.  Thus any large-input panic is
preserved rather than excluded.

upstream/dec2flt/decimal_seq.rs:226-295 versus
crate/dec2flt/decimal_seq.rs:284-359 replaces literal split_first patterns by
nonempty index tests.  The leading-zero scans, optional decimal point, optional
exponent marker, optional exponent sign, and suffixes occur in the same order.
The crate's exp_sign*exp_num equals the source choice between exp_num and
-exp_num because exp_num is bounded by the unchanged 0x10000 guard; the final
decimal_point checked addition is in the same position.  Casts of lengths to
i32 and every subsequent checked update remain unchanged, including their
large-input behavior.

Delayed returns
---------------

upstream/dec2flt/decimal_seq.rs:173-198 versus
crate/dec2flt/decimal_seq.rs:176-203 replaces one return inside right_shift's
loop by all_zero=true, exits because !all_zero is the loop guard, and returns
immediately afterward.  No decimal_point, digit, index, or arithmetic update
occurs between the original and delayed return.

upstream/dec2flt/slow.rs:46-76 versus crate/dec2flt/slow.rs:46-94 replaces two
nested-loop returns by loop_result.  In the zero branch it records fp_zero,
skips the source-skipped exp2 addition, exits through is_none(), and returns.
In the infinity branch it records fp_inf, skips the source-skipped exp2
subtraction, exits, and returns.  On all other iterations it performs the same
shift, checked state changes, and exponent update.  Lines 95-126 after these
returns are otherwise the source lines 77-110 unchanged.

Dispatcher trace and public projection
--------------------------------------

upstream/dec2flt/mod.rs:209-256 is the whole original dispatcher.
crate/dec2flt/mod.rs:285-349 declares trace data only, lines 352-505 execute the
instrumented dispatcher, and lines 507-520 define public dec2flt as its first
projection.  Comparing the bodies gives the following branch-by-branch
correspondence.

* Both call as_bytes, inspect the first byte, reject empty input before a helper,
  remove at most one sign, and reject a sign-only body.  The trace stores the
  already obtained body and Boolean sign.
* Both call parse_number first on that exact body.  Only None calls
  parse_inf_nan on the same body and sign.  Its Some is returned directly and
  its None returns invalid.  The trace stores those existing Option values.
* Both overwrite only Decimal.negative, test the same compile-time
  !optimize_for_size condition, call try_fast_path once, and return its Some
  directly.  The trace stores the copied Decimal and Option; Decimal is Copy.
* Both call compute_float first with num.exponent and num.mantissa.  The crate's
  second_compute_guard is exactly the first two conjuncts of the source
  short-circuit.  Therefore the checked mantissa+1 and second compute_float call
  occur under precisely the source guard, in the same order.  The same pair
  comparison either retains fp or changes only p_biased to -1.
* Both test the post-comparison p_biased<0 once, call parse_long_mantissa on the
  unchanged body exactly when true, and otherwise retain the same pair.  The
  trace records both guard and result without another helper call.
* The extra assembled_word expression is the same cast, shift, and OR performed
  by biased_fp_to_float at upstream lines 202-206 and crate lines 278-282; these
  integer operations neither panic nor mutate fp.  Both then call assembly once
  on the selected pair and apply unary negation exactly when num.negative.
  Public dec2flt returns the identical Result first component.

Consequently the trace does not infer uncomputed data: it records the exact
variant; sign-stripped body and sign; numeric/special Options; fast-path input
and result; first and conditional second integer operands and results;
comparison, forced-deferral and post-comparison pair; slow guard and result;
selected pair; assembled word; pre-sign assembly word; sign-application fact;
and final word.  Special and native direct returns create no selected pair.
All source call order, guards, checked arithmetic, mutable-state transitions,
panic points, and returned Result/F64 observations remain in place.

F64-only restriction
--------------------

crate/traits.rs:187-307 and crate/dec2flt/mod.rs:140-215 add cfg(any()) to the
f16/f32 Float, FloatExt, and Lemire implementations.  crate/traits.rs:59-64
retains only u64 Int.  The retained f64 implementations are
crate/traits.rs:309-360 and crate/dec2flt/mod.rs:217-264.  Every goal-facing
function remains generic in the source and extraction, but each pursued source
subject specializes it to f64, whose associated integer is u64.  There is no
dynamic format dispatch, so removing other impl blocks cannot change an f64
call, its native decision, checks, result word, NaN classification, fields, or
trace.  The fresh boundary inventory in setup-reproduction.txt confirms that
no removed-format external remains.

Conclusion
----------

The inventory is exhaustive: three supplied files are identical, seven have
all hunks classified above, and the four added files are the package shell.
For the configured f64 specialization, the adapted crate has the same input
domains, branch order, guards, checked/wrapping distinction, state transitions,
panic versus normal behavior, and public/helper observations as the supplied
source.  The only new observations are the trace fields, each copied from an
existing value or computed by the same pure assembly expression.  This
conclusion is independent of whether any parser-correctness GOAL is true.
reference/model-evidence/source-valid-byte-slice-probe.out

Open file

arch=x86_64
usize_bits=64
isize_max=9223372036854775807
u8_size=1
reference/model-evidence/source-valid-byte-slice-probe.rs

Open file

fn main() {
    println!("arch={}", std::env::consts::ARCH);
    println!("usize_bits={}", usize::BITS);
    println!("isize_max={}", isize::MAX);
    println!("u8_size={}", std::mem::size_of::<u8>());
}
reference/model-evidence/source-valid-byte-slice.txt

Open file

Source-valid byte-slice and string domain evidence
==================================================

Scope and pinned identities
---------------------------

All commands below were run from the repository root.  The configured compiler
is:

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

Its SHA-256 is:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b

The exact identity commands were:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  sha256sum "$R"
  "$R" --version --verbose
  "$R" --target x86_64-unknown-linux-gnu --print cfg | LC_ALL=C sort | \
    rg 'target_(arch|pointer_width)'

Their relevant raw output was:

  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
  target_arch="x86_64"
  target_pointer_width="64"

Retained configured-target probe
--------------------------------

The retained probe source is
reference/model-evidence/source-valid-byte-slice-probe.rs.  It was compiled
for the configured target and executed with this exact command, which depends
only on the retained source and the pinned compiler:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/source-valid-byte-slice-probe.rs
  B=/tmp/dec2flt-source-valid-byte-slice-probe
  O=reference/model-evidence/source-valid-byte-slice-probe.out
  "$R" --edition 2024 --target x86_64-unknown-linux-gnu -C opt-level=0 \
    -C debuginfo=0 -C overflow-checks=on -C debug-assertions=on \
    --crate-name source_valid_byte_slice_probe "$P" -o "$B"
  sha256sum "$R" "$P" "$B"
  "$B" > "$O"
  sha256sum "$O"
  cat "$O"

The actual hashes were:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd  reference/model-evidence/source-valid-byte-slice-probe.rs
  87dc3b9b7a46506d2205503d8aa007b451c452968af48d1ba5961a821934ee55  /tmp/dec2flt-source-valid-byte-slice-probe
  01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4  reference/model-evidence/source-valid-byte-slice-probe.out

The retained raw output file contains exactly:

  arch=x86_64
  usize_bits=64
  isize_max=9223372036854775807
  u8_size=1

Pinned core-library source
--------------------------

Let:

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

The exact commands used to identify and inspect the relevant core sources were:

  sha256sum "$S/slice/mod.rs" "$S/num/int_macros.rs" "$S/str/mod.rs"
  sed -n '798,808p' "$S/slice/mod.rs"
  sed -n '43,51p' "$S/num/int_macros.rs"
  sed -n '495,510p' "$S/str/mod.rs"

The file identities are:

  354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840  core/src/slice/mod.rs
  3896304e7cb14628e293134ac41fd18be2b5369bedc02d1c6a7408bd8c755a31  core/src/num/int_macros.rs
  284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78  core/src/str/mod.rs

The relevant exact excerpt of slice/mod.rs, line 801, is:

  //   - The size of the slice is never larger than `isize::MAX` bytes, as

The relevant exact declaration in num/int_macros.rs, line 47, is:

  pub const MAX: Self = (<$UnsignedT>::MAX >> 1) as Self;

The relevant exact excerpts of str/mod.rs are its same-layout byte-slice
conversion at lines 498-500:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }

and its UTF-8 invariant at lines 507-510:

  /// The caller must ensure that the content of the slice is valid UTF-8
  /// before the borrow ends and the underlying `str` is used.
  ///
  /// Use of a `str` whose contents are not valid UTF-8 is undefined behavior.

Conclusion
----------

The configured target has 64-bit usize/isize and one-byte u8 elements.
The pinned signed-MAX definition therefore gives
isize::MAX = 2^63 - 1 = 9223372036854775807, and the pinned slice rule bounds a
slice by that many bytes.  For &[u8], this is exactly an element-count bound;
the rule adds no UTF-8 condition or other restriction on the byte contents.
The pinned str source exposes the identical-layout &[u8] bytes and separately
requires them to be valid UTF-8.  Consequently the exact configured domains
are arbitrary &[u8] bytes of length at most isize::MAX, and Rust str bytes of
length at most isize::MAX that are valid UTF-8.  No smaller convenience bound
is introduced.
Upstream → extraction-crate adaptation diff
--- upstream/dec2flt/mod.rs
+++ crate/dec2flt/mod.rs
@@ -87,7 +87,7 @@
     issue = "none"
 )]
 
-use common::BiasedFp;
+pub use common::BiasedFp;
 use lemire::compute_float;
 use parse::{parse_inf_nan, parse_number};
 use slow::parse_long_mantissa;
@@ -115,18 +115,14 @@
 pub trait Lemire: FloatExt {
     /// Maximum exponent for a fast path case, or `⌊(SIG_BITS+1)/log2(5)⌋`
     // assuming FLT_EVAL_METHOD = 0
-    const MAX_EXPONENT_FAST_PATH: i64 = {
-        let log2_5 = f64::consts::LOG2_10 - 1.0;
-        (Self::SIG_TOTAL_BITS as f64 / log2_5) as i64
-    };
+    const MAX_EXPONENT_FAST_PATH: i64;
 
     /// Minimum exponent for a fast path case, or `-⌊(SIG_BITS+1)/log2(5)⌋`
     const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
 
     /// Maximum exponent that can be represented for a disguised-fast path case.
     /// This is `MAX_EXPONENT_FAST_PATH + ⌊(SIG_BITS+1)/log2(10)⌋`
-    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 =
-        Self::MAX_EXPONENT_FAST_PATH + (Self::SIG_TOTAL_BITS as f64 / f64::consts::LOG2_10) as i64;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64;
 
     /// Maximum mantissa for the fast-path (`1 << 53` for f64).
     const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;
@@ -142,29 +138,76 @@
 }
 
 #[cfg(target_has_reliable_f16)]
+// The f16 Lemire instance is outside the exclusively f64 scope. Disabling it
+// leaves every retained f64 parser/helper/trace body, native decision, checked
+// operation, debug assertion, return value, and accepted observation unchanged.
+#[cfg(any())]
 impl Lemire for f16 {
+    // These are the exact integer results of the upstream compile-time float
+    // formulae for `SIG_TOTAL_BITS = 11`: floor(11/log2(5)) = 4 and
+    // 4 + floor(11/log2(10)) = 7.  Concrete integers avoid unsupported const
+    // float arithmetic without changing either fast-path guard.
+    const MAX_EXPONENT_FAST_PATH: i64 = 4;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 7;
+
     fn pow10_fast_path(exponent: usize) -> Self {
-        #[allow(clippy::use_self)]
-        const TABLE: [f16; 8] = [1e0, 1e1, 1e2, 1e3, 1e4, 0.0, 0.0, 0.];
-        TABLE[exponent & 7]
+        // Each integer is the exact IEEE encoding of the corresponding
+        // upstream table literal; the masked lookup and fallback zeros are
+        // unchanged.  Aeneas cannot translate arrays containing float values.
+        match exponent & 7 {
+            0 => f16::from_bits(0x3C00),
+            1 => f16::from_bits(0x4900),
+            2 => f16::from_bits(0x5640),
+            3 => f16::from_bits(0x63D0),
+            4 => f16::from_bits(0x70E2),
+            _ => f16::from_bits(0),
+        }
     }
 
     #[inline]
+    // This method is exactly the upstream primitive `u64 as f16` conversion.
+    // Charon extracts the cast, but Aeneas reports it unreachable; making only
+    // this primitive boundary opaque preserves all guards and dispatcher logic.
+    #[charon::opaque]
     fn from_u64(v: u64) -> Self {
         debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
         v as _
     }
 }
 
+// The f32 Lemire instance is likewise unused by the retained f64
+// specialization, so disabling it cannot affect any retained body or observed
+// f64 execution independently of the correctness GOALs.
+#[cfg(any())]
 impl Lemire for f32 {
+    // Exact upstream formula results for `SIG_TOTAL_BITS = 24`.
+    const MAX_EXPONENT_FAST_PATH: i64 = 10;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 17;
+
     fn pow10_fast_path(exponent: usize) -> Self {
-        #[allow(clippy::use_self)]
-        const TABLE: [f32; 16] =
-            [1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 0., 0., 0., 0., 0.];
-        TABLE[exponent & 15]
+        // Bit constructors preserve the exact table values and masked lookup,
+        // while avoiding Aeneas's unsupported float-valued array constants.
+        match exponent & 15 {
+            0 => f32::from_bits(0x3F80_0000),
+            1 => f32::from_bits(0x4120_0000),
+            2 => f32::from_bits(0x42C8_0000),
+            3 => f32::from_bits(0x447A_0000),
+            4 => f32::from_bits(0x461C_4000),
+            5 => f32::from_bits(0x47C3_5000),
+            6 => f32::from_bits(0x4974_2400),
+            7 => f32::from_bits(0x4B18_9680),
+            8 => f32::from_bits(0x4CBE_BC20),
+            9 => f32::from_bits(0x4E6E_6B28),
+            10 => f32::from_bits(0x5015_02F9),
+            _ => f32::from_bits(0),
+        }
     }
 
     #[inline]
+    // This is exactly the source `u64 as f32` conversion.  The narrow opaque
+    // boundary is required because Aeneas rejects the primitive cast itself;
+    // its input guard and every caller remain transparent.
+    #[charon::opaque]
     fn from_u64(v: u64) -> Self {
         debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
         v as _
@@ -172,15 +215,51 @@
 }
 
 impl Lemire for f64 {
+    // Exact upstream formula results for `SIG_TOTAL_BITS = 53`.
+    const MAX_EXPONENT_FAST_PATH: i64 = 22;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;
+
     fn pow10_fast_path(exponent: usize) -> Self {
-        const TABLE: [f64; 32] = [
-            1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13, 1e14, 1e15,
-            1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22, 0., 0., 0., 0., 0., 0., 0., 0., 0.,
-        ];
-        TABLE[exponent & 31]
+        // These bit patterns are exactly the source table's rounded binary64
+        // literals.  The match is the same masked lookup; it merely keeps float
+        // constants out of Aeneas's unsupported constant interpreter.
+        match exponent & 31 {
+            0 => f64::from_bits(0x3FF0_0000_0000_0000),
+            1 => f64::from_bits(0x4024_0000_0000_0000),
+            2 => f64::from_bits(0x4059_0000_0000_0000),
+            3 => f64::from_bits(0x408F_4000_0000_0000),
+            4 => f64::from_bits(0x40C3_8800_0000_0000),
+            5 => f64::from_bits(0x40F8_6A00_0000_0000),
+            6 => f64::from_bits(0x412E_8480_0000_0000),
+            7 => f64::from_bits(0x4163_12D0_0000_0000),
+            8 => f64::from_bits(0x4197_D784_0000_0000),
+            9 => f64::from_bits(0x41CD_CD65_0000_0000),
+            10 => f64::from_bits(0x4202_A05F_2000_0000),
+            11 => f64::from_bits(0x4237_4876_E800_0000),
+            12 => f64::from_bits(0x426D_1A94_A200_0000),
+            13 => f64::from_bits(0x42A2_309C_E540_0000),
+            14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
+            15 => f64::from_bits(0x430C_6BF5_2634_0000),
+            16 => f64::from_bits(0x4341_C379_37E0_8000),
+            17 => f64::from_bits(0x4376_3457_85D8_A000),
+            18 => f64::from_bits(0x43AB_C16D_674E_C800),
+            19 => f64::from_bits(0x43E1_58E4_6091_3D00),
+            20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
+            21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
+            22 => f64::from_bits(0x4480_F0CF_064D_D592),
+            _ => f64::from_bits(0),
+        }
     }
 
     #[inline]
+    // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
+    // `charon::opaque` makes this entire asserted conversion external: both the
+    // unchanged `debug_assert!` and the unchanged cast below are in the opaque
+    // body. The callers, their fast-path guards, and their surrounding
+    // computation remain mechanically visible. A corresponding model binding
+    // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
+    // exact binary64 conversion at or below that bound.
+    #[charon::opaque]
     fn from_u64(v: u64) -> Self {
         debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
         v as _
@@ -206,51 +285,239 @@
     F::from_u64_bits(word)
 }
 
+/// Observable control-flow record for a dispatcher execution.
+///
+/// These variants add no decisions to the conversion: each stores values
+/// already computed at the corresponding source branch.  In particular, the
+/// first component returned by `dec2flt_with_trace` is the ordinary parser
+/// result, so projecting it preserves every public source observation without
+/// assuming any correctness goal.
+pub enum Dec2FltTrace<'a, F> {
+    /// The original string was empty; no helper was called.
+    EmptyInput,
+    /// Removing one lexical sign left an empty body; no helper was called.
+    SignOnly { body: &'a [u8], negative: bool },
+    /// Both lexical helpers returned `None`; no raw pair was selected.
+    Invalid {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        parse_inf_nan_result: Option<F>,
+    },
+    /// The special helper supplied the directly returned value; no pair was selected.
+    Special {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        parse_inf_nan_result: Option<F>,
+        result: F,
+    },
+    /// The ordinary native shortcut supplied the directly returned value.
+    FastPath {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        fast_path_input: decimal::Decimal,
+        fast_path_result: Option<F>,
+        result: F,
+    },
+    /// The integer/slow path selected and assembled one raw pair.
+    Assembled(Dec2FltAssemblyTrace<'a, F>),
+}
+
+/// Full observation record for the dispatcher path that performs final assembly.
+pub struct Dec2FltAssemblyTrace<'a, F> {
+    pub body: &'a [u8],
+    pub negative: bool,
+    pub parse_number_result: Option<decimal::Decimal>,
+    pub fast_path_input: decimal::Decimal,
+    pub fast_path_result: Option<F>,
+    pub first_compute_exponent: i64,
+    pub first_compute_mantissa: u64,
+    pub first_compute_result: BiasedFp,
+    pub second_compute_guard: bool,
+    pub second_compute_exponent: Option<i64>,
+    pub second_compute_mantissa: Option<u64>,
+    pub second_compute_result: Option<BiasedFp>,
+    pub second_equals_first: Option<bool>,
+    pub forced_deferral: bool,
+    pub post_comparison_pair: BiasedFp,
+    pub slow_path_guard: bool,
+    pub slow_path_result: Option<BiasedFp>,
+    pub selected_pair: BiasedFp,
+    pub assembled_word: u64,
+    pub assembly_result: F,
+    pub lexical_sign_applied: bool,
+    pub result: F,
+}
+
+/// Run the actual dispatcher while retaining its approved internal observations.
+pub fn dec2flt_with_trace<
+    'a,
+    F: Lemire
+        + core::ops::Div<Output = F>
+        + core::ops::Mul<Output = F>
+        + core::ops::Neg<Output = F>,
+>(
+    s: &'a str,
+) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
+    let mut body = s.as_bytes();
+    let Some(&c) = body.first() else {
+        return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
+    };
+    let negative = c == b'-';
+    if c == b'-' || c == b'+' {
+        body = &body[1..];
+    }
+    if body.is_empty() {
+        return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
+    }
+
+    let parse_number_result = parse_number(body);
+    let parsed = match parse_number_result {
+        Some(r) => r,
+        None => {
+            let parse_inf_nan_result = parse_inf_nan(body, negative);
+            return match parse_inf_nan_result {
+                Some(value) => (
+                    Ok(value),
+                    Dec2FltTrace::Special {
+                        body,
+                        negative,
+                        parse_number_result,
+                        parse_inf_nan_result,
+                        result: value,
+                    },
+                ),
+                None => (
+                    Err(pfe_invalid()),
+                    Dec2FltTrace::Invalid {
+                        body,
+                        negative,
+                        parse_number_result,
+                        parse_inf_nan_result,
+                    },
+                ),
+            };
+        }
+    };
+
+    let mut num = parsed;
+    num.negative = negative;
+    if !cfg!(feature = "optimize_for_size") {
+        let fast_path_result = num.try_fast_path::<F>();
+        if let Some(value) = fast_path_result {
+            return (
+                Ok(value),
+                Dec2FltTrace::FastPath {
+                    body,
+                    negative,
+                    parse_number_result,
+                    fast_path_input: num,
+                    fast_path_result,
+                    result: value,
+                },
+            );
+        }
+    }
+
+    let first_compute_exponent = num.exponent;
+    let first_compute_mantissa = num.mantissa;
+    let first_compute_result = compute_float::<F>(first_compute_exponent, first_compute_mantissa);
+    let mut fp = first_compute_result;
+
+    // This expands the source short-circuit conjunction without moving the
+    // checked `mantissa + 1`: that addition and the second helper call still
+    // occur exactly when `many_digits && fp.p_biased >= 0`.
+    let second_compute_guard = num.many_digits && fp.p_biased >= 0;
+    let mut second_compute_exponent = None;
+    let mut second_compute_mantissa = None;
+    let mut second_compute_result = None;
+    let mut second_equals_first = None;
+    let mut forced_deferral = false;
+    if second_compute_guard {
+        let exponent = num.exponent;
+        let mantissa = num.mantissa + 1;
+        let second = compute_float::<F>(exponent, mantissa);
+        let equal = fp == second;
+        second_compute_exponent = Some(exponent);
+        second_compute_mantissa = Some(mantissa);
+        second_compute_result = Some(second);
+        second_equals_first = Some(equal);
+        if !equal {
+            fp.p_biased = -1;
+            forced_deferral = true;
+        }
+    }
+    let post_comparison_pair = fp;
+
+    let slow_path_guard = fp.p_biased < 0;
+    let mut slow_path_result = None;
+    if slow_path_guard {
+        // The exact slow-path input is the trace's common `body`; the guard
+        // records whether this call occurred, avoiding a duplicate live slice
+        // reference that Aeneas cannot join across this branch.
+        let replacement = parse_long_mantissa::<F>(body);
+        slow_path_result = Some(replacement);
+        fp = replacement;
+    }
+
+    let selected_pair = fp;
+    // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
+    // it neither changes the selected pair nor introduces a new branch or call.
+    let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
+    let assembly_result = biased_fp_to_float::<F>(fp);
+    let lexical_sign_applied = num.negative;
+    let result = if lexical_sign_applied {
+        core::ops::Neg::neg(assembly_result)
+    } else {
+        assembly_result
+    };
+
+    (
+        Ok(result),
+        Dec2FltTrace::Assembled(Dec2FltAssemblyTrace {
+            body,
+            negative,
+            parse_number_result,
+            fast_path_input: num,
+            fast_path_result: None,
+            first_compute_exponent,
+            first_compute_mantissa,
+            first_compute_result,
+            second_compute_guard,
+            second_compute_exponent,
+            second_compute_mantissa,
+            second_compute_result,
+            second_equals_first,
+            forced_deferral,
+            post_comparison_pair,
+            slow_path_guard,
+            slow_path_result,
+            selected_pair,
+            assembled_word,
+            assembly_result,
+            lexical_sign_applied,
+            result,
+        }),
+    )
+}
+
 /// Converts a decimal string into a floating point number.
 #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
-pub fn dec2flt<F: Lemire>(s: &str) -> Result<F, ParseFloatError> {
-    let mut s = s.as_bytes();
-    let Some(&c) = s.first() else { return Err(pfe_empty()) };
-    let negative = c == b'-';
-    if c == b'-' || c == b'+' {
-        s = &s[1..];
-    }
-    if s.is_empty() {
-        return Err(pfe_invalid());
-    }
-
-    let mut num = match parse_number(s) {
-        Some(r) => r,
-        None if let Some(value) = parse_inf_nan(s, negative) => return Ok(value),
-        None => return Err(pfe_invalid()),
-    };
-    num.negative = negative;
-    if !cfg!(feature = "optimize_for_size") {
-        if let Some(value) = num.try_fast_path::<F>() {
-            return Ok(value);
-        }
-    }
-
-    // If significant digits were truncated, then we can have rounding error
-    // only if `mantissa + 1` produces a different result. We also avoid
-    // redundantly using the Eisel-Lemire algorithm if it was unable to
-    // correctly round on the first pass.
-    let mut fp = compute_float::<F>(num.exponent, num.mantissa);
-    if num.many_digits
-        && fp.p_biased >= 0
-        && fp != compute_float::<F>(num.exponent, num.mantissa + 1)
-    {
-        fp.p_biased = -1;
-    }
-    // Unable to correctly round the float using the Eisel-Lemire algorithm.
-    // Fallback to a slower, but always correct algorithm.
-    if fp.p_biased < 0 {
-        fp = parse_long_mantissa::<F>(s);
-    }
-
-    let mut float = biased_fp_to_float::<F>(fp);
-    if num.negative {
-        float = -float;
-    }
-    Ok(float)
-}
+pub fn dec2flt<
+    F: Lemire
+        + core::ops::Div<Output = F>
+        + core::ops::Mul<Output = F>
+        + core::ops::Neg<Output = F>,
+>(
+    s: &str,
+) -> Result<F, ParseFloatError> {
+    // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
+    // clause admits exactly the same instances and lets Charon resolve the
+    // explicit, source-equivalent final negation.
+    // The public function is now exactly the result projection of the single
+    // instrumented implementation.  No conversion step is duplicated, and
+    // discarding the trace cannot affect Rust evaluation or the returned bits.
+    dec2flt_with_trace::<F>(s).0
+}
Record details
Kindsource adaptation site (file-level diff)
Captured evidence identities
[
  {
    "path": "extraction-evidence/COMMAND.json",
    "sha256": "5f26225136b8c7c4d7f95615e3e8ff8b357e523eeada4bc649e50f9c76cb9bda",
    "cited_by": [
      "shared mechanical extraction record",
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "extraction-evidence/DETERMINISM.json",
    "sha256": "74e45977d1fa84e7d4c696906005f13faca994995fdeff0fac8dc13e5c18f11c",
    "cited_by": [
      "shared mechanical extraction record"
    ]
  },
  {
    "path": "extraction-evidence/RESULT.json",
    "sha256": "31059e900d9ee03a54504c1dd3560a943d6c0f883fba737163b1ca0cb40065b0",
    "cited_by": [
      "shared mechanical extraction record",
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "extraction-evidence/STDERR.bin",
    "sha256": "c284799d633c64b898f716d62fbf1146c173227bd6bd44309c6504a43926e000",
    "cited_by": [
      "shared mechanical extraction record"
    ]
  },
  {
    "path": "extraction-evidence/STDOUT.bin",
    "sha256": "8e0aed62f6941e7c81b09d5c5b63ea7602756e69e4bcce9944258b229a9a0ba3",
    "cited_by": [
      "shared mechanical extraction record"
    ]
  },
  {
    "path": "reference/model-evidence/adaptation-constants-probe.rs",
    "sha256": "b5a4a2cba0c08053cb9a816adb1ba5dbd160bf3928bdf5ccf56b7ae83aaa2aa5",
    "cited_by": [
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-boundary.txt",
    "sha256": "fa45c924747337e8d6f84a19fe9e83fb9b33c73434887c0cf57c062533f51fe1",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex",
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-probe.rs",
    "sha256": "68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e",
    "cited_by": [
      "reference/model-evidence/binary64-boundary.txt"
    ]
  },
  {
    "path": "reference/model-evidence/native-boundary.txt",
    "sha256": "fa0d69e4a434007e6ee675380fc13f98e22655b7faa77cdc5216d4af4356438f",
    "cited_by": [
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "reference/model-evidence/setup-reproduction.txt",
    "sha256": "209bc94a47b1b905a2a7b1fea229c759e6250becbd353fe4eadc7bc49be7742c",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex",
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-adaptation-delta.diff",
    "sha256": "fdf88cabfe40ce962d2bd5eda22eb5b3cbbf8a936a81b896e98698bf472cd0e4",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex",
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-adaptation-delta.txt",
    "sha256": "3c1483d48286a82484eba249a5434936e1a33a08f4e99ec0e3a03ce9bb0ecd9b",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.out",
    "sha256": "01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.rs",
    "sha256": "b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice.txt",
    "sha256": "eb501317621baa00236f9773885466bd38ec1a45cb56457d555b9e9139dc780a",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex"
    ]
  }
]

crate/dec2flt/parse.rs

Historical preparation document: preparation source-adaptation audit. It describes the state and obligations at preparation. This generation is captured in ProofFormalization. Later closure and review results appear in the proof and modeling views. This original document remains available as history.

Captured upstream and extraction-crate files differ. Consult the recorded preservation explanations for the purpose and scope of each adaptation.
Shared extraction-boundary explanation (Preamble)

Preservation argument

Claim

Fix Rust nightly-2026-06-01 and target x86_64-unknown-linux-gnu, the library's empty default feature set (so optimize_for_size is disabled), the unoptimized development profile, enabled debug assertions and integer overflow checks, and the target's SSE2 precision-setting branch. Interpret each of the frozen extraction's 24 external operations by the separately justified model-support definition that owns that operation. Under those interpretations, the composed Aeneas model represents the supplied source's f64 specialization on all of these domains, without a correctness premise: every Rust str whose bytes are valid UTF-8 and whose 64-bit slice length is at most \mathtt{isize::MAX}=2^{63}-1; every Rust &[u8] whose length is at most that bound, with arbitrary byte contents; every Decimal; every i64/u64 pair; and every BiasedFp.
For dec2flt::<f64> the relation preserves panic versus normal return, the outer returned Result's Ok/Err discriminant, and, on success, the exact binary64 word and its NaN classification. For parse_number it preserves panic versus normal return, the Option discriminant, and all four returned Decimal fields. For parse_inf_nan::<f64> and Decimal::try_fast_path::<f64> it preserves panic versus normal return, None versus Some, and every returned word and NaN classification. For compute_float::<f64> and parse_long_mantissa::<f64> it preserves panic versus normal return and both fields of every returned BiasedFp. For biased_fp_to_float::<f64> it preserves panic versus normal return and the exact returned word, with no restriction on the pair fields.
For dec2flt_with_trace::<f64> it additionally preserves the public result and the complete trace: its control-flow variant; sign-stripped body and lexical sign; numeric and special helper results; signed native input and native result; first integer operands and result; second-call guard, optional operands and result, comparison and forced-deferral fact; post-comparison pair; slow-path guard and optional result; selected pair; assembled unsigned word; pre-sign assembly result; sign-application fact; and final word. Public dec2flt::<f64> is exactly the first projection of that interface, and direct special and native returns select no raw pair.

Proof

The fresh extraction record reference/model-evidence/setup-reproduction.txt pins all six tool executables by SHA-256, gives the empty Cargo/Charon/Aeneas argument configuration, and records the effective development cfg. Its Cargo, Charon, and Aeneas executions all exit successfully. Fresh Aeneas output is byte-for-byte the frozen generated.lean, with SHA-256 45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9. The raw source has no placeholder. The compatibility check reports no unapproved axiom and isolates exactly 24 external declarations; the complete inventory equals the 24 entries of Tablet/model-support.json. compose-native --check reports an unchanged composition and equal expected and actual Preamble hashes. Thus all transparent extracted declarations come from this one pinned source and every nontransparent operation is explicit. The premise assigning each external its owning definition deliberately leaves that definition's primitive-semantics proof to its own preservation record; no primitive binding is re-proved here.
The paired meanings of all 24 owners make that composition premise concrete. The binary64 carrier is the complete raw-word representation of F64. Its clone, precision constant, NaN and infinity constants, field masks, classification, bit conversions, arithmetic, negation, and asserted integer conversion have respectively the meanings in ModelF64Clone, ModelF64MantissaDigits, ModelF64Nan, ModelF64Infinity, ModelF64NegInfinity, ModelF64ExponentMask, ModelF64MantissaMask, ModelF64Classify, ModelF64ToBits, ModelF64FromBits, ModelF64Mul, ModelF64Div, ModelF64Neg, and ModelF64FromU64. The four bounded word operations have the Rust meanings in ModelU64BitAnd, ModelU64BitOr, ModelU64Shl, and ModelU64Shr; the digit test has the meaning in ModelU8IsAsciiDigit. Option branching and residual return have the meanings in ModelOptionBranch and ModelOptionFromResidual; first-element and split-first observation have the meanings in ModelSliceFirst and ModelSliceSplitFirst; and string-to-byte observation has the meaning in ModelStrAsBytes. These are exactly the semantic operations substituted for the inventoried externals.
The source carrier used below is the arbitrary-byte, length-at-most 2^{63}-1 slice of SourceValidByteSlice. The abstract domains and observations used in the GOAL applications are those of DecimalGoalVocabulary; their concrete UTF-8 string predicate, lexical grammar, decimal values, binary64 rounding and classification, sign, and unrestricted raw-pair assembly are those of DecimalGoalVocabularyDefault. Thus the composition cites the paired meanings that connect its source domains and observations to the GOAL vocabulary, rather than inferring those meanings from boundary inventory alone.
The complete upstream-to-crate inventory and its source hashes are recorded in reference/model-evidence/source-adaptation-delta.txt; its exact aggregate byte diff is retained in reference/model-evidence/source-adaptation-delta.diff. The supplied fpu.rs, lemire.rs, and table.rs are byte-identical. The standalone namespace and local error shell introduce no call. The GOALs observe only panic versus normal return and the outer Ok/Err discriminant, so the shell's private kind and formatting are unobserved; no identity with an unpinned core error payload is asserted. Visibility and removed Debug derives do not affect values. The retained generic bodies use none of the removed trait operations; the direct Mul, Div, and Neg clauses and calls are the operations already implied by Lemire. Only the u64 integer instance and f64 Float, FloatExt, and Lemire instances can participate in an f64 execution, so disabling the u16/u32 and f16/f32 instances changes no such call.
The same delta record compares each constant, table entry, and specialized decoder with its source expression. The retained decoder is the source default after substituting the f64/u64 field widths and masks; the fast-path bounds are the source formula results; and the match over power-of-ten words has the same masked index and exact words as the source array. The toolchain-specific words, masks, classifications, casts, and rounding behavior are independently pinned in reference/model-evidence/binary64-boundary.txt. The frozen from_u64 Rust body is the enabled assertion followed by the u64 as f64 conversion. Because #[charon::opaque] applies to the whole function, neither operation inside that body is transparent in the extraction: the whole method is the single inventoried external. Its callers, their guards, and the surrounding native computation remain transparent. ModelF64FromU64 supplies exactly successful integer conversion for v\leq2^{53} and assertion failure otherwise.
All other changed bodies are syntax-directed rewrites. Indexed digit scans test the same byte, use the same wrapping subtraction and accumulator update, advance by the same amount, and stop at the same first nondigit as the source closures and split_first loops. Extracted helpers receive the same slices and mutable values, visit bytes in the same forward or reverse order, and retain every saturating, wrapping, and checked operation. Delayed returns set a result flag, execute no intervening state update, leave the loop through that flag, and immediately return the source value. In particular, casts and length-derived additions on very large inputs keep their original panic or normal behavior rather than acquiring a convenience size bound.
Finally, direct comparison of the supplied dispatcher with the instrumented body shows identical sequencing. Both strip at most one sign, reject empty or sign-only input, call the numeric helper first and the special helper only after its None, overwrite only the parsed sign, try the enabled native path, make the first integer call, and evaluate the checked mantissa+1 and second call under exactly the source short-circuit guard. Both force the same deferral on unequal pairs, call the slow helper on the unchanged body exactly for a negative post-comparison exponent, assemble the same selected pair, and apply the sign last. Every trace field is either one of those already computed values or the same nonmutating cast/shift/OR word used by assembly. Hence recording the trace and discarding it in the public projection changes neither call order, guards, state, panic points, nor any returned observation.
The exact source carrier condition is separately evidenced by reference/model-evidence/source-valid-byte-slice.txt: on this 64-bit target a byte slice has arbitrary bytes and length at most isize::MAX, while a Rust string adds UTF-8 validity. Sub-slicing preserves the length bound and need not preserve an independent string type. These facts establish all domains and observations in the claim independently of the truth or falsity of any GOAL.

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

extraction-evidence/COMMAND.json

Open file

{"declaration_reader_sha256":"76f60cf0b867fad9727d2256d32b306c8cba3725216a4225d0f83add77fd6158","extraction_provenance":{"extraction_toolchain":{"aeneas":"fa699427","aeneas_revision":"fa699427cdfa8f604b891fb0223ef42883dd7dc4","cargo_features":[{"features":["default"],"name":"dec2flt-model","source":"workspace:Cargo.toml","version":"0.1.0"}],"cargo_lock_sha256":"bc644c624ded89197356bbd65d995054b7fb08e5bdfbaa38c6e7c7a53772cecf","cfg":["debug_assertions","emscripten_wasm_eh","feature=\"default\"","fmt_debug=\"full\"","overflow_checks","panic=\"unwind\"","relocation_model=\"pic\"","target_abi=\"\"","target_arch=\"x86_64\"","target_endian=\"little\"","target_env=\"gnu\"","target_family=\"unix\"","target_feature=\"fxsr\"","target_feature=\"sse\"","target_feature=\"sse2\"","target_feature=\"x87\"","target_has_atomic","target_has_atomic=\"16\"","target_has_atomic=\"32\"","target_has_atomic=\"64\"","target_has_atomic=\"8\"","target_has_atomic=\"ptr\"","target_has_atomic_load_store","target_has_atomic_load_store=\"16\"","target_has_atomic_load_store=\"32\"","target_has_atomic_load_store=\"64\"","target_has_atomic_load_store=\"8\"","target_has_atomic_load_store=\"ptr\"","target_has_atomic_primitive_alignment=\"16\"","target_has_atomic_primitive_alignment=\"32\"","target_has_atomic_primitive_alignment=\"64\"","target_has_atomic_primitive_alignment=\"8\"","target_has_atomic_primitive_alignment=\"ptr\"","target_has_reliable_f128","target_has_reliable_f16","target_has_reliable_f16_math","target_object_format=\"elf\"","target_os=\"linux\"","target_pointer_width=\"64\"","target_thread_local","target_vendor=\"unknown\"","ub_checks","unix"],"charon":"0.1.216","charon_revision":"6f058254eb741c12e9b388df07adaf7cc8aac8ed","extraction_profile":"dev","lean":"4.30.0-rc2","overflow_checks":true,"panic_strategy":"unwind","rustc_vv":"rustc 1.98.0-nightly (14210df0e 2026-05-31)\nbinary: rustc\ncommit-hash: 14210df0e27ccd7d9e6a05b8085cbd438e4bbc65\ncommit-date: 2026-05-31\nhost: x86_64-unknown-linux-gnu\nrelease: 1.98.0-nightly\nLLVM version: 22.1.6\n","target_pointer_width":64,"target_triple":"x86_64-unknown-linux-gnu"},"extractor_stack":["charon@0.1.216","aeneas@fa699427"],"extractor_toolchain_sha256":"18657da0659dee7889ed8a937b136c9abbc3a35e9050241cd8201c94fd232323","not_recorded":[],"source_digests":[{"source_file":"lib.rs","source_sha256":"63c7f58df6caff552519c92155d902daf8a1015797adcd3f357f8b8cf1652b00"}]},"extractor_script_path":"/home/leanagent/pv_runs/trellis-native-implementation-v91/scripts/extract_pv_model.py","extractor_script_sha256":"cc1fdd50a78185c7bb564b715c554cb35d9fc09ed566b6c3d4f482f2d27ef67d","kernel_gate_checkers":[],"log_concatenation_order":"runs_then_steps_in_array_order","runs":[{"run_role":"primary","steps":[{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","-vV"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"rustc-version","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/pv_spike/tools/charon/bin/charon","cargo","--preset=aeneas","--dest-file","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc","--","--offline","--profile","dev","--target","x86_64-unknown-linux-gnu"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"charon","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/cargo","metadata","--format-version=1","--locked","--offline","--filter-platform","x86_64-unknown-linux-gnu"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"cargo-metadata","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/cargo","rustc","--lib","--locked","--offline","--profile","dev","--target","x86_64-unknown-linux-gnu","--","--print","cfg"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"cargo-rustc-cfg","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/pv_spike/tools/aeneas/bin/aeneas","-backend","lean","-dest","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen","-emit-json","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"aeneas","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"}]}],"schema":"trellis-extraction-command/v1","tool_source_checkouts":[]}
extraction-evidence/DETERMINISM.json

Open file

{"comparison":"generated_lean_and_complete_tablet_tree_byte_identity","generated_lean_byte_identical":false,"generated_lean_sha256":["45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9"],"kernel_filespec_gate":"not_run","kernel_prescribed_region_gate":"not_run","namespace_context_roundtrip_gate":"not_run","result_sha256":"31059e900d9ee03a54504c1dd3560a943d6c0f883fba737163b1ca0cb40065b0","run_roles":["primary"],"schema":"trellis-extraction-determinism/v2","status":"not_run","tablet_root_sha256":["5be7a89d6b46429df3229db0d97b337dfb51cea483d439817e51b774a2dd5cf1"],"tablet_tree_byte_identical":false}
extraction-evidence/RESULT.json

Open file

{"command_sha256":"5f26225136b8c7c4d7f95615e3e8ff8b357e523eeada4bc649e50f9c76cb9bda","runs":[{"generated_lean_sha256":"45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9","run_role":"primary","steps":[{"exit_status":0,"stderr_byte_length":0,"stderr_offset":0,"stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","stdout_byte_length":212,"stdout_offset":0,"stdout_sha256":"e6ea0da4a3301256a0a0dc0d67d11acf4e83e0d1bff5dd987ccdaa43708714bc","tool":"rustc-version"},{"exit_status":0,"stderr_byte_length":654,"stderr_offset":0,"stderr_sha256":"85f314396a5cc9f2303d9848c2d0ea392b64a71cb47e7b0914fd3b8acc916f02","stdout_byte_length":0,"stdout_offset":212,"stdout_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","tool":"charon"},{"exit_status":0,"stderr_byte_length":0,"stderr_offset":654,"stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","stdout_byte_length":2897,"stdout_offset":212,"stdout_sha256":"d792566b25914f10c1a27d3c55607a43dd6bcd31b381f8d54caa7d23257269ef","tool":"cargo-metadata"},{"exit_status":0,"stderr_byte_length":302,"stderr_offset":654,"stderr_sha256":"865b65d937d16c61cd9b975adc967136f6739ef2149207ae43742241f2f37686","stdout_byte_length":1062,"stdout_offset":3109,"stdout_sha256":"4081a320e6292139b4a673d225682dc054b77cba113b8c8a8fbb0593f824b713","tool":"cargo-rustc-cfg"},{"exit_status":0,"stderr_byte_length":6916,"stderr_offset":956,"stderr_sha256":"9c2b4695f1b3bb4e7fe3bf52b92d44fd21bed1de3047b698c950eafcc085c00b","stdout_byte_length":933,"stdout_offset":4171,"stdout_sha256":"35255952c6ce5b89d1280d096dff50ffcfc94817c3aafa58beda6db7e66721df","tool":"aeneas"}],"tablet_root_sha256":"5be7a89d6b46429df3229db0d97b337dfb51cea483d439817e51b774a2dd5cf1"}],"schema":"trellis-extraction-result/v2","stderr_byte_length":7872,"stderr_sha256":"c284799d633c64b898f716d62fbf1146c173227bd6bd44309c6504a43926e000","stdout_byte_length":5104,"stdout_sha256":"8e0aed62f6941e7c81b09d5c5b63ea7602756e69e4bcce9944258b229a9a0ba3"}
extraction-evidence/STDERR.bin

Open file

   Compiling dec2flt-model v0.1.0 (/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate)
warning: feature `f16` is declared but not used
 --> lib.rs:2:46
  |
2 | #![feature(cfg_target_has_reliable_f16_f128, f16, float_masks, register_tool, staged_api)]
  |                                              ^^^
  |
  = note: `#[warn(unused_features)]` (part of `#[warn(unused)]`) on by default

warning: `dec2flt-model` (lib) generated 1 warning
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.44s
   Compiling dec2flt-model v0.1.0 (/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.02s
[?25lApplied prepasses:  [------------------------------------------------]   0/203 ⠋

Applied prepasses:  [------------------------------------------------]   1/203 ⠋

Applied prepasses:  [#####-------------------------------------------]  24/203 ⠋

Applied prepasses:  [########----------------------------------------]  38/203 ⠋

Applied prepasses:  [##############################------------------] 128/203 ⠙
Applied prepasses:  [################################################] 203/203 ✔️
[?25h[?25lTranslated globals:  [-------------------------------------------------]  0/50 ⠋
Translated globals:  [#################################################] 50/50 ✔️
[?25h[?25lTranslated opaque functions:  [----------------------------------------]  0/87 ⠋
Translated opaque functions:  [########################################] 87/87 ✔️
[?25h[?25lTranslated transparent functions:  [---------------------------------]   0/107 ⠋

Translated transparent functions:  [---------------------------------]   1/107 ⠙

Translated transparent functions:  [###------------------------------]  10/107 ⠙

Translated transparent functions:  [######---------------------------]  22/107 ⠹

Translated transparent functions:  [##########-----------------------]  35/107 ⠹

Translated transparent functions:  [#############--------------------]  44/107 ⠹

Translated transparent functions:  [##############-------------------]  48/107 ⠸

Translated transparent functions:  [###############------------------]  51/107 ⠸

Translated transparent functions:  [##################---------------]  59/107 ⠸

Translated transparent functions:  [##################---------------]  60/107 ⠼

Translated transparent functions:  [##################---------------]  61/107 ⠼

Translated transparent functions:  [####################-------------]  65/107 ⠼

Translated transparent functions:  [#####################------------]  69/107 ⠼

Translated transparent functions:  [#####################------------]  70/107 ⠴

Translated transparent functions:  [######################-----------]  72/107 ⠴

Translated transparent functions:  [######################-----------]  73/107 ⠦

Translated transparent functions:  [######################-----------]  74/107 ⠦

Translated transparent functions:  [#######################----------]  77/107 ⠦

Translated transparent functions:  [########################---------]  78/107 ⠧

Translated transparent functions:  [########################---------]  79/107 ⠧

Translated transparent functions:  [########################---------]  81/107 ⠇

Translated transparent functions:  [#########################--------]  82/107 ⠇

Translated transparent functions:  [#########################--------]  83/107 ⠏

Translated transparent functions:  [#########################--------]  84/107 ⠏

Translated transparent functions:  [##########################-------]  86/107 ⠋

Translated transparent functions:  [###########################------]  88/107 ⠋

Translated transparent functions:  [###########################------]  89/107 ⠋

Translated transparent functions:  [###########################------]  90/107 ⠙

Translated transparent functions:  [############################-----]  91/107 ⠙

Translated transparent functions:  [############################-----]  93/107 ⠹

Translated transparent functions:  [############################-----]  94/107 ⠹

Translated transparent functions:  [#############################----]  95/107 ⠸

Translated transparent functions:  [#############################----]  97/107 ⠸

Translated transparent functions:  [##############################---]  99/107 ⠼

Translated transparent functions:  [##############################---] 100/107 ⠼

Translated transparent functions:  [###############################--] 102/107 ⠴

Translated transparent functions:  [###############################--] 103/107 ⠦

Translated transparent functions:  [################################-] 104/107 ⠦

Translated transparent functions:  [################################-] 105/107 ⠧

Translated transparent functions:  [################################-] 106/107 ⠇

Translated transparent functions:  [#################################] 107/107 ⠏
Translated transparent functions:  [#################################] 107/107 ✔️
[?25h[?25lTranslated trait declarations:  [--------------------------------------]  0/49 ⠋
Translated trait declarations:  [########################--------------] 31/49 ✔️
[?25h[?25lTranslated trait impls:  [---------------------------------------------]  0/85 ⠋
Translated trait impls:  [#################################------------] 64/85 ✔️
[?25h[?25lPost-processed translated opaque functions:  [-------------------------]  0/87 ⠋

Post-processed translated opaque functions:  [-------------------------]  1/87 ⠙
Post-processed translated opaque functions:  [#########################] 87/87 ✔️
[?25h[?25lPost-processed translated transparent functions:  [------------------]   0/107 ⠋

Post-processed translated transparent functions:  [------------------]   1/107 ⠋

Post-processed translated transparent functions:  [#-----------------]  10/107 ⠙

Post-processed translated transparent functions:  [##----------------]  12/107 ⠙

Post-processed translated transparent functions:  [##----------------]  13/107 ⠹

Post-processed translated transparent functions:  [##----------------]  14/107 ⠹

Post-processed translated transparent functions:  [##----------------]  16/107 ⠸

Post-processed translated transparent functions:  [##----------------]  17/107 ⠼

Post-processed translated transparent functions:  [###---------------]  18/107 ⠼

Post-processed translated transparent functions:  [###---------------]  23/107 ⠴

Post-processed translated transparent functions:  [####--------------]  27/107 ⠴

Post-processed translated transparent functions:  [#####-------------]  31/107 ⠴

Post-processed translated transparent functions:  [######------------]  37/107 ⠴

Post-processed translated transparent functions:  [########----------]  50/107 ⠴

Post-processed translated transparent functions:  [###############---]  95/107 ⠦

Post-processed translated transparent functions:  [################--]  99/107 ⠦

Post-processed translated transparent functions:  [################--] 100/107 ⠧

Post-processed translated transparent functions:  [################--] 101/107 ⠧

Post-processed translated transparent functions:  [#################-] 103/107 ⠧

Post-processed translated transparent functions:  [#################-] 105/107 ⠇

Post-processed translated transparent functions:  [##################] 107/107 ⠏
Post-processed translated transparent functions:  [##################] 107/107 ✔️
[?25h
extraction-evidence/STDOUT.bin

Open file

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
{"packages":[{"name":"dec2flt-model","version":"0.1.0","id":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0","license":null,"license_file":null,"description":null,"source":null,"dependencies":[],"targets":[{"kind":["lib"],"crate_types":["lib"],"name":"dec2flt_model","src_path":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate/lib.rs","edition":"2024","doc":true,"doctest":true,"test":true}],"features":{"default":[],"optimize_for_size":[]},"manifest_path":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate/Cargo.toml","metadata":null,"publish":[],"authors":[],"categories":[],"keywords":[],"readme":null,"repository":null,"homepage":null,"documentation":null,"edition":"2024","links":null,"default_run":null,"rust_version":null}],"workspace_members":["path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"],"workspace_default_members":["path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"],"resolve":{"nodes":[{"id":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0","dependencies":[],"deps":[],"features":["default"]}],"root":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"},"target_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","build_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","version":1,"workspace_root":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate","metadata":null}
debug_assertions
emscripten_wasm_eh
feature="default"
fmt_debug="full"
overflow_checks
panic="unwind"
relocation_model="pic"
target_abi=""
target_arch="x86_64"
target_endian="little"
target_env="gnu"
target_family="unix"
target_feature="fxsr"
target_feature="sse"
target_feature="sse2"
target_feature="x87"
target_has_atomic
target_has_atomic="16"
target_has_atomic="32"
target_has_atomic="64"
target_has_atomic="8"
target_has_atomic="ptr"
target_has_atomic_load_store
target_has_atomic_load_store="16"
target_has_atomic_load_store="32"
target_has_atomic_load_store="64"
target_has_atomic_load_store="8"
target_has_atomic_load_store="ptr"
target_has_atomic_primitive_alignment="16"
target_has_atomic_primitive_alignment="32"
target_has_atomic_primitive_alignment="64"
target_has_atomic_primitive_alignment="8"
target_has_atomic_primitive_alignment="ptr"
target_has_reliable_f128
target_has_reliable_f16
target_has_reliable_f16_math
target_object_format="elf"
target_os="linux"
target_pointer_width="64"
target_thread_local
target_vendor="unknown"
ub_checks
unix
[Info ] Imported: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc
[Info ] Generated: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/M.lean
[Info ] Generated: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/translation.json
[Warn ] The crate contains extracted external, unknown definitions: we advise using the option -split-files to allow manually providing these definitions in separate files.
[Info ] Total execution time: 7.337683 seconds
reference/model-evidence/adaptation-constants-probe.rs

Open file

fn main() {
    let largest_power_of_ten = (1024_f64 / std::f64::consts::LOG2_10) as i32;
    let log2_5 = std::f64::consts::LOG2_10 - 1.0;
    let max_exponent_fast_path = (53_f64 / log2_5) as i64;
    let max_exponent_disguised =
        max_exponent_fast_path + (53_f64 / std::f64::consts::LOG2_10) as i64;

    println!("largest_power_of_ten={largest_power_of_ten}");
    println!("max_exponent_fast_path={max_exponent_fast_path}");
    println!("max_exponent_disguised={max_exponent_disguised}");
    println!("neg_nan={:016x}", (-f64::NAN).to_bits());

    for (exponent, value) in IntoIterator::into_iter([
        1e0_f64, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11,
        1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22,
    ])
    .enumerate()
    {
        println!("pow10_{exponent}={:016x}", value.to_bits());
    }
}
reference/model-evidence/binary64-boundary.txt

Open file

Primary evidence for the binary64 boundary
==========================================

Scope and identities
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction, the
adapted Rust crate retained in this repository, and the installed toolchain
named by modeling-input/SETUP.md. The probe source is retained at
reference/model-evidence/binary64-probe.rs; no scratch source is required to
reproduce it.

Toolchain executable:
  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
Target:
  x86_64-unknown-linux-gnu
rustc executable SHA-256:
  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
Probe source SHA-256:
  68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
Compiled probe SHA-256:
  f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
Frozen generated.lean SHA-256:
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9
Frozen modeling-input/manifest.json SHA-256:
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2
Approved Binary64ModelDefault.lean SHA-256 at the time of this record:
  03ae48fb631e6242bd21bf95d0481b66acae05f8cab343c7ab279b3c116538a3

Exact reproduction commands
---------------------------

Run from the repository root:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-probe.rs
  B=.trellis/scratch/binary64-probe
  "$R" --version --verbose
  sha256sum "$R"
  sha256sum "$P"
  "$R" --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$B"
  "$B"

Raw output
----------

  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
  rustc_sha256=162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  probe_sha256=68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
  binary_sha256=f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
  target_arch=x86_64
  mantissa_digits=53
  exponent_mask=7ff0000000000000
  mantissa_mask=000fffffffffffff
  nan=7ff8000000000000
  infinity=7ff0000000000000
  neg_infinity=fff0000000000000
  nan_category=Nan
  infinity_category=Infinite
  zero_category=Zero
  subnormal_category=Subnormal
  normal_category=Normal
  from_bits_to_bits=7ff0000000000001
  neg_payload_nan=fff0000000000001
  neg_zero=8000000000000000
  subnormal_tie_to_even_zero=0000000000000000
  subnormal_tie_to_even_two=0000000000000002
  normal_division=3fb999999999999a
  mul_negative_zero=8000000000000000
  div_negative_zero=8000000000000000
  div_negative_infinity=fff0000000000000
  mul_overflow=7ff0000000000000
  mul_zero_infinity_is_nan=true
  div_zero_zero_is_nan=true
  mul_nan_is_nan=true
  cast_2_pow_53=4340000000000000
  cast_2_pow_53_plus_1=4340000000000000

Pinned Rust library sources
---------------------------

The installed sources below belong to the same named toolchain. Their
SHA-256 identities are:

  core/src/primitive_docs.rs
    c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5
  core/src/num/f64.rs
    84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618
  core/src/clone.rs
    23f9cfc80347fde6b8457d46fbf7a2b8d9f34c8c58601b0b6f714ca2f6d1976b

The exact relevant text of core/src/primitive_docs.rs is:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The referenced primitive-f32 documentation supplies the common primitive
floating-point operation rules quoted next:

  /// - −0.0: IEEE 754 floating-point numbers have a bit that indicates their sign, so −0.0 is a
  ///   possible value. For comparison −0.0 = +0.0, but floating-point operations can carry
  ///   the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
  ///   a negative number rounded to a value smaller than a float can represent also produces −0.0.
  /// - [∞](#associatedconstant.INFINITY) and
  ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
  ///   like `1.0 / 0.0`.
  ///
  /// When a primitive operation (addition, subtraction, multiplication, or
  /// division) is performed on this type, the result is rounded according to the
  /// roundTiesToEven direction defined in IEEE 754-2008. That means:
  ///
  /// - The result is the representable value closest to the true value, if there
  ///   is a unique closest representable value.
  /// - If the true value is exactly half-way between two representable values,
  ///   the result is the one with an even least-significant binary digit.
  /// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
  ///   `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
  ///   true value's sign).

The same file explicitly separates arithmetic NaN choice from exact bitwise
operations; its exact relevant text is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.
  ///
  /// The following rules apply when a NaN value is returned from an arithmetic operation:
  /// - The result has a non-deterministic sign.
  /// - The quiet bit and payload are non-deterministically chosen from
  ///   the following set of options:
  ///
  ///   - **Preferred NaN**: The quiet bit is set and the payload is all-zero.
  ///   - **Quieting NaN propagation**: The quiet bit is set and the payload is copied from any input
  ///     operand that is a NaN. If the inputs and outputs do not have the same payload size (i.e., for
  ///     `as` casts), then
  ///     - If the output is smaller than the input, low-order bits of the payload get dropped.
  ///     - If the output is larger than the input, the payload gets filled up with 0s in the low-order
  ///       bits.
  ///   - **Unchanged NaN propagation**: The quiet bit and payload are copied from any input operand
  ///     that is a NaN. If the inputs and outputs do not have the same size (i.e., for `as` casts), the
  ///     same rules as for "quieting NaN propagation" apply, with one caveat: if the output is smaller
  ///     than the input, dropping the low-order bits may result in a payload of 0; a payload of 0 is not
  ///     possible with a signaling NaN (the all-0 significand encodes an infinity) so unchanged NaN
  ///     propagation cannot occur with some inputs.
  ///   - **Target-specific NaN**: The quiet bit is set and the payload is picked from a target-specific
  ///     set of "extra" possible NaN payloads. The set can depend on the input operand values.
  ///     See the table below for the concrete NaNs this set contains on various targets.
  ///
  /// | `target_arch` | Extra payloads possible on this platform |
  /// |---------------|------------------------------------------|
  /// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |

Thus the model's preferred quiet NaN is one permitted result whenever
multiplication or division returns NaN. This does not claim that arbitrary
Rust arithmetic NaNs have those exact bits. By contrast, unary negation and
bit conversion must preserve all non-sign bits exactly, including for every
NaN payload.

The exact relevant declarations in core/src/num/f64.rs are:

  pub const MANTISSA_DIGITS: u32 = 53;
  pub const NAN: f64 = 0.0_f64 / 0.0_f64;
  pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
  pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
  pub const SIGN_MASK: u64 = 0x8000_0000_0000_0000;
  pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;
  pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff;

  pub const fn classify(self) -> FpCategory {
      // We used to have complicated logic here that avoids the simple bit-based tests to work
      // around buggy codegen for x87 targets (see
      // https://github.com/rust-lang/rust/issues/114479). However, some LLVM versions later, none
      // of our tests is able to find any difference between the complicated and the naive
      // version, so now we are back to the naive version.
      let b = self.to_bits();
      match (b & Self::MANTISSA_MASK, b & Self::EXPONENT_MASK) {
          (0, Self::EXPONENT_MASK) => FpCategory::Infinite,
          (_, Self::EXPONENT_MASK) => FpCategory::Nan,
          (0, 0) => FpCategory::Zero,
          (_, 0) => FpCategory::Subnormal,
          _ => FpCategory::Normal,
      }
  }

  pub const fn to_bits(self) -> u64 {
      // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
      unsafe { mem::transmute(self) }
  }

  pub const fn from_bits(v: u64) -> Self {
      // It turns out the safety issues with sNaN were overblown! Hooray!
      // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
      unsafe { mem::transmute(v) }
  }

The exact scalar clone body in core/src/clone.rs is:

  impl const Clone for $t {
      #[inline(always)]
      fn clone(&self) -> Self {
          *self
      }
  }

Frozen adapted source
---------------------

The relevant retained source file hashes are:

  crate/traits.rs
    9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  crate/dec2flt/decimal.rs
    633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb
  crate/dec2flt/lemire.rs
    fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1
  crate/dec2flt/slow.rs
    93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485

The dispatcher excerpts below are reproduced from the identified file by
running these commands from the repository root:

  sha256sum crate/dec2flt/mod.rs
  sed -n '354,403p' crate/dec2flt/mod.rs
  sed -n '405,422p' crate/dec2flt/mod.rs
  sed -n '465,475p' crate/dec2flt/mod.rs
  sed -n '506,523p' crate/dec2flt/mod.rs

Exact constant and bit-conversion excerpt from crate/traits.rs:

  impl Float for f64 {
      type Int = u64;

      const INFINITY: Self = Self::INFINITY;
      const NEG_INFINITY: Self = Self::NEG_INFINITY;
      const NAN: Self = Self::NAN;
      // Bit-identical to the upstream `-f64::NAN`, without the unsupported
      // compile-time float negation.
      const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);

      const BITS: u32 = 64;
      const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
      const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
      const SIG_MASK: Self::Int = Self::MANTISSA_MASK;

      fn to_bits(self) -> Self::Int {
          self.to_bits()
      }

      fn classify(self) -> FpCategory {
          self.classify()
      }
  }

  impl FloatExt for f64 {
      #[inline]
      fn from_u64_bits(v: u64) -> Self {
          f64::from_bits(v)
      }

Exact derived-constant defaults from crate/traits.rs:

  /// The number of bits in the significand, *excluding* the hidden bit.
  const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;

  /// Number of bits in the exponent.
  const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

  /// The saturated (maximum bitpattern) value of the exponent, i.e. the infinite
  /// representation.
  ///
  /// This shifted fully right, use `EXP_MASK` for the shifted value.
  const EXP_SAT: u32 = (1 << Self::EXP_BITS) - 1;

  /// Signed version of `EXP_SAT` since we convert a lot.
  const INFINITE_POWER: i32 = Self::EXP_SAT as i32;

  /// The exponent bias value. This is also the maximum value of the exponent.
  const EXP_BIAS: u32 = Self::EXP_SAT >> 1;

  /// Minimum exponent value of normal values.
  const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Together with the f64-instance lines `BITS = 64` and
`SIG_TOTAL_BITS = Self::MANTISSA_DIGITS` in the preceding excerpt, these
defaults derive SIG_BITS, EXP_MIN, and INFINITE_POWER from the primitive
mantissa-digit constant rather than introducing independent parameters.

Exact asserted-conversion excerpt from crate/dec2flt/mod.rs:

  #[inline]
  // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
  // `charon::opaque` makes this entire asserted conversion external: both the
  // unchanged `debug_assert!` and the unchanged cast below are in the opaque
  // body. The callers, their fast-path guards, and their surrounding
  // computation remain mechanically visible. A corresponding model binding
  // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
  // exact binary64 conversion at or below that bound.
  #[charon::opaque]
  fn from_u64(v: u64) -> Self {
      debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
      v as _
  }

Here MAX_MANTISSA_FAST_PATH is the retained default 1 << 53.  The attribute is
attached to the function item, so the generated external stands for the whole
method, not merely the cast.  In the enabled-debug configuration the source
succeeds only when v <= 2^53; above it the assertion fails before the cast. On
the successful branch every integer is exactly representable, so the source
cast and the model rounder return the same word.

Exact power-table and assembly excerpts from crate/dec2flt/mod.rs:

  /// Maximum mantissa for the fast-path (`1 << 53` for f64).
  const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;

  const MAX_EXPONENT_FAST_PATH: i64 = 22;
  const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
  const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;

  fn pow10_fast_path(exponent: usize) -> Self {
      // These bit patterns are exactly the source table's rounded binary64
      // literals.  The match is the same masked lookup; it merely keeps float
      // constants out of Aeneas's unsupported constant interpreter.
      match exponent & 31 {
          0 => f64::from_bits(0x3FF0_0000_0000_0000),
          1 => f64::from_bits(0x4024_0000_0000_0000),
          2 => f64::from_bits(0x4059_0000_0000_0000),
          3 => f64::from_bits(0x408F_4000_0000_0000),
          4 => f64::from_bits(0x40C3_8800_0000_0000),
          5 => f64::from_bits(0x40F8_6A00_0000_0000),
          6 => f64::from_bits(0x412E_8480_0000_0000),
          7 => f64::from_bits(0x4163_12D0_0000_0000),
          8 => f64::from_bits(0x4197_D784_0000_0000),
          9 => f64::from_bits(0x41CD_CD65_0000_0000),
          10 => f64::from_bits(0x4202_A05F_2000_0000),
          11 => f64::from_bits(0x4237_4876_E800_0000),
          12 => f64::from_bits(0x426D_1A94_A200_0000),
          13 => f64::from_bits(0x42A2_309C_E540_0000),
          14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
          15 => f64::from_bits(0x430C_6BF5_2634_0000),
          16 => f64::from_bits(0x4341_C379_37E0_8000),
          17 => f64::from_bits(0x4376_3457_85D8_A000),
          18 => f64::from_bits(0x43AB_C16D_674E_C800),
          19 => f64::from_bits(0x43E1_58E4_6091_3D00),
          20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
          21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
          22 => f64::from_bits(0x4480_F0CF_064D_D592),
          _ => f64::from_bits(0),
      }
  }

  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

Exact native-call excerpt from crate/dec2flt/decimal.rs:

  fn can_use_fast_path<F: Lemire>(&self) -> bool {
      F::MIN_EXPONENT_FAST_PATH <= self.exponent
          && self.exponent <= F::MAX_EXPONENT_DISGUISED_FAST_PATH
          && self.mantissa <= F::MAX_MANTISSA_FAST_PATH
          && !self.many_digits
  }

  if !self.can_use_fast_path::<F>() {
      return None;
  }

  let value = if self.exponent <= F::MAX_EXPONENT_FAST_PATH {
      // normal fast path
      let value = F::from_u64(self.mantissa);
      if self.exponent < 0 {
          // Explicit trait calls preserve Rust arithmetic and resolve
          // the generic output type that Charon leaves ambiguous.
          core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
      } else {
          core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
      }
  } else {
      // disguised fast path
      let shift = self.exponent - F::MAX_EXPONENT_FAST_PATH;
      let mantissa = self.mantissa.checked_mul(INT_POW10[shift as usize])?;
      if mantissa > F::MAX_MANTISSA_FAST_PATH {
          return None;
      }
      core::ops::Mul::mul(
          F::from_u64(mantissa),
          F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
      )
  };

  if self.negative {
      Some(core::ops::Neg::neg(value))
  } else {
      Some(value)
  }

The preceding can_use_fast_path body, together with
MAX_MANTISSA_FAST_PATH = 1 << SIG_TOTAL_BITS and SIG_TOTAL_BITS = 53 for f64,
requires the exponent to lie between -22 and 37, the input mantissa to be at
most 2^53, and many_digits to be false. Consequently an ordinary arithmetic
call has a from_u64 operand in 0..=2^53. In its negative-exponent arm,
`-self.exponent` lies in 1..=22; in its nonnegative arm, `self.exponent` lies
in 0..=22. The disguised branch checks its multiplied mantissa against 2^53
before from_u64 and uses table index 22. The paired statement
Binary64NativeCallDomain does not assert this source reachability. It says
conditionally that a from_u64 argument at most 2^53 succeeds with a finite,
non-NaN word and that a table index at most 22 succeeds with a positive,
nonzero, finite, non-NaN word. Applying that conditional statement to the
guards just derived establishes those properties for the actual ordinary and
disguised calls, and in particular establishes that every executed divisor is
nonzero.

Exact special-value excerpt from crate/dec2flt/parse.rs:

  let float = match (register, len) {
      (INF_3, 3) => F::INFINITY,
      (INF_8, 8) => F::INFINITY,
      (NAN, 3) => F::NAN,
      _ => return None,
  };

  if negative { Some(-float) } else { Some(float) }

Thus the executed special route is INFINITY or NAN followed by conditional
negation; it does not select NEG_INFINITY or NEG_NAN directly.

The number helper has the exact source body

  pub fn parse_number(s: &[u8]) -> Option<Decimal> {
      if let Some((float, rest)) = parse_partial_number(s) {
          if rest == s.len() {
              return Some(float);
          }
      }
      None
  }

It returns only the Decimal produced by parse_partial_number; there is no
float type parameter or float operation at this boundary.

Exact dispatcher excerpts from crate/dec2flt/mod.rs
---------------------------------------------------

The entry of `dec2flt_with_trace` strips at most one leading sign, rejects
empty and sign-only inputs, calls `parse_number` on the unsigned body, and
calls `parse_inf_nan` only when `parse_number` returns `None`:

  /// Run the actual dispatcher while retaining its approved internal observations.
  pub fn dec2flt_with_trace<
      'a,
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {
          return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
      };
      let negative = c == b'-';
      if c == b'-' || c == b'+' {
          body = &body[1..];
      }
      if body.is_empty() {
          return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
      }

      let parse_number_result = parse_number(body);
      let parsed = match parse_number_result {
          Some(r) => r,
          None => {
              let parse_inf_nan_result = parse_inf_nan(body, negative);
              return match parse_inf_nan_result {
                  Some(value) => (
                      Ok(value),
                      Dec2FltTrace::Special {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                          result: value,
                      },
                  ),
                  None => (
                      Err(pfe_invalid()),
                      Dec2FltTrace::Invalid {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                      },
                  ),
              };
          }
      };

Thus every `Err` arm shown here returns before `parsed` is available and before
the native, integer, slow, assembly, or final-negation code below it can run.
On a numeric result, the lexical sign is copied into the parsed record before
the native attempt, whose successful result also returns before raw-pair
assembly:

      let mut num = parsed;
      num.negative = negative;
      if !cfg!(feature = "optimize_for_size") {
          let fast_path_result = num.try_fast_path::<F>();
          if let Some(value) = fast_path_result {
              return (
                  Ok(value),
                  Dec2FltTrace::FastPath {
                      body,
                      negative,
                      parse_number_result,
                      fast_path_input: num,
                      fast_path_result,
                      result: value,
                  },
              );
          }
      }

If the native attempt does not return, the selected raw pair is assembled and
the source then conditionally negates it according to the lexical-sign flag:

      let selected_pair = fp;
      // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
      // it neither changes the selected pair nor introduces a new branch or call.
      let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
      let assembly_result = biased_fp_to_float::<F>(fp);
      let lexical_sign_applied = num.negative;
      let result = if lexical_sign_applied {
          core::ops::Neg::neg(assembly_result)
      } else {
          assembly_result
      };

The public `dec2flt` executes that same route and returns its result projection;
it does not reimplement or reorder any parsing or float operation:

  /// Converts a decimal string into a floating point number.
  #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
  pub fn dec2flt<
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &str,
  ) -> Result<F, ParseFloatError> {
      // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
      // clause admits exactly the same instances and lets Charon resolve the
      // explicit, source-equivalent final negation.
      // The public function is now exactly the result projection of the single
      // instrumented implementation.  No conversion step is duplicated, and
      // discarding the trace cannot affect Rust evaluation or the returned bits.
      dec2flt_with_trace::<F>(s).0
  }

The integer-tier helper has the source type and exact executable excerpts
below (long explanatory comments are elided). In particular it returns a raw
BiasedFp and contains no from_u64 cast, primitive float multiplication,
division, negation, or from_bits call:

  pub fn compute_float<F: Float>(q: i64, mut w: u64) -> BiasedFp {
      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);
      let fp_error = BiasedFp::zero_pow2(-1);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if w == 0 || q < F::SMALLEST_POWER_OF_TEN as i64 {
          return fp_zero;
      } else if q > F::LARGEST_POWER_OF_TEN as i64 {
          return fp_inf;
      }
      // Normalize our significant digits, so the most-significant bit is set.
      let lz = w.leading_zeros();
      w <<= lz;
      let (lo, hi) = compute_product_approx(q, w, F::SIG_BITS as usize + 3);
      if lo == 0xFFFF_FFFF_FFFF_FFFF {
          let inside_safe_exponent = (q >= -27) && (q <= 55);
          if !inside_safe_exponent {
              return fp_error;
          }
      }
      let upperbit = (hi >> 63) as i32;
      let mut mantissa = hi >> (upperbit + 64 - F::SIG_BITS as i32 - 3);
      let mut power2 = power(q as i32) + upperbit - lz as i32 - F::EXP_MIN + 1;
      if power2 <= 0 {
          if -power2 + 1 >= 64 {
              // Have more than 64 bits below the minimum exponent, must be 0.
              return fp_zero;
          }
          // Have a subnormal value.
          mantissa >>= -power2 + 1;
          mantissa += mantissa & 1;
          mantissa >>= 1;
          power2 = (mantissa >= (1_u64 << F::SIG_BITS)) as i32;
          return BiasedFp { m: mantissa, p_biased: power2 };
      }
      // Need to handle rounding ties. Normally, we need to round up,
      // but if we fall right in between and we have an even basis, we
      // need to round down.
      if lo <= 1
          && q >= F::MIN_EXPONENT_ROUND_TO_EVEN as i64
          && q <= F::MAX_EXPONENT_ROUND_TO_EVEN as i64
          && mantissa & 0b11 == 0b01
          && (mantissa << (upperbit + 64 - F::SIG_BITS as i32 - 3)) == hi
      {
          // Zero the lowest bit, so we don't round up.
          mantissa &= !1_u64;
      }
      // Round-to-even, then shift the significant digits into place.
      mantissa += mantissa & 1;
      mantissa >>= 1;
      if mantissa >= (2_u64 << F::SIG_BITS) {
          // Rounding up overflowed, so the carry bit is set. Set the
          // mantissa to 1 (only the implicit, hidden bit is set) and
          // increase the exponent.
          mantissa = 1_u64 << F::SIG_BITS;
          power2 += 1;
      }
      // Zero out the hidden bit.
      mantissa &= !(1_u64 << F::SIG_BITS);
      if power2 >= F::INFINITE_POWER {
          // Exponent is above largest normal value, must be infinite.
          return fp_inf;
      }
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact slow-tier source body from crate/dec2flt/slow.rs:

  pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {
      const MAX_SHIFT: usize = 60;
      const NUM_POWERS: usize = 19;
      const POWERS: [u8; 19] =
          [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];

      let get_shift = |n| {
          if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }
      };

      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);

      let mut d = parse_decimal_seq(s);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if d.num_digits == 0 || d.decimal_point < -324 {
          return fp_zero;
      } else if d.decimal_point >= 310 {
          return fp_inf;
      }
      let mut exp2 = 0_i32;
      let mut loop_result = None;
      // Shift right toward (1/2 ... 1].
      while d.decimal_point > 0 && loop_result.is_none() {
          let n = d.decimal_point as usize;
          let shift = get_shift(n);
          d.right_shift(shift);
          if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_zero);
          } else {
              exp2 += shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // Shift left toward (1/2 ... 1].
      while d.decimal_point <= 0 && loop_result.is_none() {
          let shift = if d.decimal_point == 0 {
              match d.digits[0] {
                  digit if digit >= 5 => break,
                  0 | 1 => 2,
                  _ => 1,
              }
          } else {
              get_shift((-d.decimal_point) as _)
          };
          d.left_shift(shift);
          if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_inf);
          } else {
              exp2 -= shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
      exp2 -= 1;
      while F::EXP_MIN > exp2 {
          let mut n = (F::EXP_MIN - exp2) as usize;
          if n > MAX_SHIFT {
              n = MAX_SHIFT;
          }
          d.right_shift(n);
          exp2 += n as i32;
      }
      if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
          return fp_inf;
      }
      // Shift the decimal to the hidden bit, and then round the value
      // to get the high mantissa+1 bits.
      d.left_shift(F::SIG_BITS as usize + 1);
      let mut mantissa = d.round();
      if mantissa >= (1_u64 << (F::SIG_BITS + 1)) {
          // Rounding up overflowed to the carry bit, need to
          // shift back to the hidden bit.
          d.right_shift(1);
          exp2 += 1;
          mantissa = d.round();
          if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
              return fp_inf;
          }
      }
      let mut power2 = exp2 - F::EXP_MIN + 1;
      if mantissa < (1_u64 << F::SIG_BITS) {
          power2 -= 1;
      }
      // Zero out all the bits above the explicit mantissa bits.
      mantissa &= (1_u64 << F::SIG_BITS) - 1;
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact final numeric-sign excerpt from crate/dec2flt/mod.rs:

  let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
  let assembly_result = biased_fp_to_float::<F>(fp);
  let lexical_sign_applied = num.negative;
  let result = if lexical_sign_applied {
      core::ops::Neg::neg(assembly_result)
  } else {
      assembly_result
  };

Thus a numeric execution that reaches the integer/slow selection route
assembles its selected pair with from_bits through biased_fp_to_float and only
then conditionally negates it. A successful try_fast_path returns earlier and
does not perform this assembly. compute_float and parse_long_mantissa produce
raw BiasedFp pairs and do not call from_u64, primitive float multiplication,
division, negation, or from_bits; they do, however, execute constants derived
from SIG_TOTAL_BITS before producing those pairs.

Retained structural-boundary evidence
-------------------------------------

Several adjacent structural bindings cite this same evidence record. Their
pinned library source identities are:

  core/src/num/mod.rs
    f0820f9dfb94999440c8cb4a349736fa21df7e5668e19b6b49e016ff67c05ce3
  core/src/option.rs
    7cf61204b05d98a95bc2e322d5fbfc1f4f91505109971917d9a7fb47151c50e6
  core/src/slice/mod.rs
    354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840
  core/src/str/mod.rs
    284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78

Exact ASCII-digit body from core/src/num/mod.rs:

  pub const fn is_ascii_digit(&self) -> bool {
      matches!(*self, b'0'..=b'9')
  }

Exact Option control-flow bodies from core/src/option.rs:

  fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
      match self {
          Some(v) => ControlFlow::Continue(v),
          None => ControlFlow::Break(None),
      }
  }

  fn from_residual(residual: Option<convert::Infallible>) -> Self {
      match residual {
          None => None,
      }
  }

Exact slice observation bodies from core/src/slice/mod.rs:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

Exact string-byte body from core/src/str/mod.rs:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }
reference/model-evidence/binary64-probe.rs

Open file

#![feature(float_masks)]

use std::num::FpCategory;

fn bits(label: &str, value: f64) {
    println!("{label}={:016x}", value.to_bits());
}

fn main() {
    println!("target_arch={}", std::env::consts::ARCH);
    println!("mantissa_digits={}", f64::MANTISSA_DIGITS);
    println!("exponent_mask={:016x}", f64::EXPONENT_MASK);
    println!("mantissa_mask={:016x}", f64::MANTISSA_MASK);
    bits("nan", f64::NAN);
    bits("infinity", f64::INFINITY);
    bits("neg_infinity", f64::NEG_INFINITY);

    for (label, value) in [
        ("nan_category", f64::NAN),
        ("infinity_category", f64::INFINITY),
        ("zero_category", 0.0),
        ("subnormal_category", f64::from_bits(1)),
        ("normal_category", 1.0),
    ] {
        let category = match value.classify() {
            FpCategory::Nan => "Nan",
            FpCategory::Infinite => "Infinite",
            FpCategory::Zero => "Zero",
            FpCategory::Subnormal => "Subnormal",
            FpCategory::Normal => "Normal",
        };
        println!("{label}={category}");
    }

    let payload_nan_word = 0x7ff0_0000_0000_0001_u64;
    println!(
        "from_bits_to_bits={:016x}",
        f64::from_bits(payload_nan_word).to_bits()
    );
    bits("neg_payload_nan", -f64::from_bits(payload_nan_word));
    bits("neg_zero", -0.0);

    bits("subnormal_tie_to_even_zero", f64::from_bits(1) * 0.5);
    bits("subnormal_tie_to_even_two", f64::from_bits(3) * 0.5);
    bits("normal_division", 1.0 / 10.0);
    bits("mul_negative_zero", -0.0 * 2.0);
    bits("div_negative_zero", -1.0 / f64::INFINITY);
    bits("div_negative_infinity", 1.0 / -0.0);
    bits("mul_overflow", f64::MAX * (1.0 + f64::EPSILON));
    println!("mul_zero_infinity_is_nan={}", (0.0 * f64::INFINITY).is_nan());
    println!("div_zero_zero_is_nan={}", (0.0_f64 / 0.0_f64).is_nan());
    println!("mul_nan_is_nan={}", (f64::NAN * 1.0).is_nan());

    bits("cast_2_pow_53", (1_u64 << 53) as f64);
    bits("cast_2_pow_53_plus_1", ((1_u64 << 53) + 1) as f64);
}
reference/model-evidence/native-boundary.txt

Open file

Native boundary inventory for Binary64Model

Reproduction command (repository root):
  python3 .trellis/scripts/pv_modeling.py inspect-native .

Tool identity for this reproduction:
  Python 3.14.4
  .trellis/scripts/pv_modeling.py
  sha256 915b29822cb4c47b70dabb1dc011514641deb2e428b62347fc31aa898de5e0d4

Top-level result:
  declaration_count: 24

The complete raw inspect-native records for the fourteen F64 externals follow.
They are copied from the command's complete index; no scratch artifact is needed
to review them.

[
  {
    "name": "F64.Insts.CoreCloneClone.clone",
    "extracted_signature": ": F64 → Result F64",
    "rust_symbol": "core::clone::impls::{impl core::clone::Clone for f64}::clone",
    "raw_declaration_sha256": "5eaad5fb9af034045cf0dafed5af85445fe4af9a78958259a15a1faddd1e8f05",
    "source_utf8": "/-- [core::clone::impls::{impl core::clone::Clone for f64}::clone]:\n    Source: '/rustc/library/core/src/clone.rs', lines 698:20-698:43\n    Name pattern: [core::clone::impls::{core::clone::Clone<f64>}::clone]\n    Visibility: public -/\n@[rust_fun \"core::clone::impls::{core::clone::Clone<f64>}::clone\"]\naxiom F64.Insts.CoreCloneClone.clone : F64 → Result F64\n"
  },
  {
    "name": "core.f64.F64.MANTISSA_DIGITS",
    "extracted_signature": ": Result Std.U32",
    "rust_symbol": "core::f64::{f64}::MANTISSA_DIGITS",
    "raw_declaration_sha256": "42b1b0c4d2c2bbc7271748fc78c518391f55bf6517c643667a6561a0ac6e771c",
    "source_utf8": "/-- [core::f64::{f64}::MANTISSA_DIGITS]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 412:4-412:34\n    Name pattern: [core::f64::{f64}::MANTISSA_DIGITS]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::MANTISSA_DIGITS\"]\naxiom core.f64.F64.MANTISSA_DIGITS : Result Std.U32\n"
  },
  {
    "name": "core.f64.F64.NAN",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::NAN",
    "raw_declaration_sha256": "a18685a80db5dbebe39151c7375a0470bb3905fe1228e5598a995a1cf017a768",
    "source_utf8": "/-- [core::f64::{f64}::NAN]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 509:4-509:22\n    Name pattern: [core::f64::{f64}::NAN]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::NAN\"] axiom core.f64.F64.NAN : Result F64\n"
  },
  {
    "name": "core.f64.F64.INFINITY",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::INFINITY",
    "raw_declaration_sha256": "f905901e67400987f49cddd13a8768644bed9e7e3f79c3a81b34879f494a2816",
    "source_utf8": "/-- [core::f64::{f64}::INFINITY]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 512:4-512:27\n    Name pattern: [core::f64::{f64}::INFINITY]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::INFINITY\"]\naxiom core.f64.F64.INFINITY : Result F64\n"
  },
  {
    "name": "core.f64.F64.NEG_INFINITY",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::NEG_INFINITY",
    "raw_declaration_sha256": "85f6e517e439c2f2d5c59aa29884ff38b2381c2f5dd7cb14e7947b232efe7f0e",
    "source_utf8": "/-- [core::f64::{f64}::NEG_INFINITY]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 515:4-515:31\n    Name pattern: [core::f64::{f64}::NEG_INFINITY]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::NEG_INFINITY\"]\naxiom core.f64.F64.NEG_INFINITY : Result F64\n"
  },
  {
    "name": "core.f64.F64.EXPONENT_MASK",
    "extracted_signature": ": Result Std.U64",
    "rust_symbol": "core::f64::{f64}::EXPONENT_MASK",
    "raw_declaration_sha256": "f1054e64392d8f9306e8c69015f0b521d9f387edda8458a3bae4773606f46a71",
    "source_utf8": "/-- [core::f64::{f64}::EXPONENT_MASK]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 615:4-615:32\n    Name pattern: [core::f64::{f64}::EXPONENT_MASK]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::EXPONENT_MASK\"]\naxiom core.f64.F64.EXPONENT_MASK : Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.MANTISSA_MASK",
    "extracted_signature": ": Result Std.U64",
    "rust_symbol": "core::f64::{f64}::MANTISSA_MASK",
    "raw_declaration_sha256": "dc3517faa141b7a7a016e9f73930af3c9af23d3e6d06874440d99eabbc846538",
    "source_utf8": "/-- [core::f64::{f64}::MANTISSA_MASK]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 637:4-637:32\n    Name pattern: [core::f64::{f64}::MANTISSA_MASK]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::MANTISSA_MASK\"]\naxiom core.f64.F64.MANTISSA_MASK : Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.classify",
    "extracted_signature": ": F64 → Result core.num.FpCategory",
    "rust_symbol": "core::f64::{f64}::classify",
    "raw_declaration_sha256": "9fedd442d1d0403c4a7323d8f4e95c51b8bd39bf82d2d0ba357eaaf243e69b78",
    "source_utf8": "/-- [core::f64::{f64}::classify]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 782:4-782:45\n    Name pattern: [core::f64::{f64}::classify]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::classify\"]\naxiom core.f64.F64.classify : F64 → Result core.num.FpCategory\n"
  },
  {
    "name": "core.f64.F64.to_bits",
    "extracted_signature": ": F64 → Result Std.U64",
    "rust_symbol": "core::f64::{f64}::to_bits",
    "raw_declaration_sha256": "ddaec6bb7c36ba6445a5b0b8e52f841240ca2563004e8ce1255caf0e36ec22ae",
    "source_utf8": "/-- [core::f64::{f64}::to_bits]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 1223:4-1223:37\n    Name pattern: [core::f64::{f64}::to_bits]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::to_bits\"]\naxiom core.f64.F64.to_bits : F64 → Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.from_bits",
    "extracted_signature": ": Std.U64 → Result F64",
    "rust_symbol": "core::f64::{f64}::from_bits",
    "raw_declaration_sha256": "af8ee4387cea97d0a353a83d6280c03f3c9f739bf733af5bd39c29909f1b2b19",
    "source_utf8": "/-- [core::f64::{f64}::from_bits]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 1269:4-1269:42\n    Name pattern: [core::f64::{f64}::from_bits]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::from_bits\"]\naxiom core.f64.F64.from_bits : Std.U64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithMulF64F64.mul",
    "extracted_signature": ": F64 → F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Mul<f64, f64> for f64}::mul",
    "raw_declaration_sha256": "20d985819a981e9e80485ce169c1d045ea13fa8796e9314d5b621141aae6deec",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Mul<f64, f64> for f64}::mul]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 350:12-350:41\n    Name pattern: [core::ops::arith::{core::ops::arith::Mul<f64, f64, f64>}::mul]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Mul<f64, f64, f64>}::mul\"]\naxiom F64.Insts.CoreOpsArithMulF64F64.mul : F64 → F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithDivF64F64.div",
    "extracted_signature": ": F64 → F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Div<f64, f64> for f64}::div",
    "raw_declaration_sha256": "1ebb67b412d89328acb4c5dd53168e84fdf26be6cbe1ef49f5a27edbd84ada36",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Div<f64, f64> for f64}::div]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 515:12-515:41\n    Name pattern: [core::ops::arith::{core::ops::arith::Div<f64, f64, f64>}::div]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Div<f64, f64, f64>}::div\"]\naxiom F64.Insts.CoreOpsArithDivF64F64.div : F64 → F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithNegF64.neg",
    "extracted_signature": ": F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Neg<f64> for f64}::neg",
    "raw_declaration_sha256": "bbf93f24bd7cfbc72e47e8bb3a9acc6641df939ad6afafd9ba02c81fe27f7ed0",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Neg<f64> for f64}::neg]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 719:12-719:30\n    Name pattern: [core::ops::arith::{core::ops::arith::Neg<f64, f64>}::neg]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Neg<f64, f64>}::neg\"]\naxiom F64.Insts.CoreOpsArithNegF64.neg : F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64",
    "extracted_signature": ": Std.U64 → Result F64",
    "rust_symbol": "dec2flt_model::num::imp::dec2flt::{impl dec2flt_model::num::imp::dec2flt::Lemire<u64> for f64}::from_u64",
    "raw_declaration_sha256": "ad172bce0522e7e41bceb8c66a5adff962822ee8a9454dfd59b7019086797ba8",
    "source_utf8": "/-- [dec2flt_model::num::imp::dec2flt::{impl dec2flt_model::num::imp::dec2flt::Lemire<u64> for f64}::from_u64]:\n    Source: 'num/imp/../../dec2flt/mod.rs', lines 263:4-266:5\n    Visibility: public -/\naxiom F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64\n  : Std.U64 → Result F64\n"
  }
]
reference/model-evidence/setup-reproduction.txt

Open file

Fresh extraction and composition evidence for Preamble
======================================================

Scope
-----

This record identifies the preparation evidence frozen with this reopened
repository and records the model-support composition reproduced on 2026-09-24.
It is evidence about source, extraction, and composition, not evidence that any
supplied GOAL is true.

Pinned configuration and tools
------------------------------

modeling-input/extraction.json selects the single library crate `crate` with
empty Cargo, Charon, and Aeneas argument lists.  crate/Cargo.toml gives the
`default` feature an empty definition, leaves `optimize_for_size` disabled,
uses the development profile, and explicitly enables overflow checks.
extraction-evidence/COMMAND.json records target x86_64-unknown-linux-gnu,
nightly-2026-06-01, debug assertions, overflow checks, unwind panic handling,
64-bit pointers, and SSE2.

modeling-input/tool-identities.json pins these six executables by SHA-256:

  cargo   54e05dce8c9ca2f638cc3d87ec1a19425b5d0bf1f31aeb48cf4792aec5cadf27
  rustc   162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  rustdoc 2bf660d140310e28146e2c002dc6fcabd957c0a3b740be0419e6f8e5a9c87523
  Charon  6490034f368ce98f3e7ae5a28bf71ed56d03bdf1e3712e71376b96fc55baeade
  Aeneas  9f446d2aaf59e8e705e36d05cb993f1c6ab0e97f8dc6fd2f19907a86ede30922
  Lean    3e0d0d3d801675359f2d4cf9815bfdb417b20b92fdd9d48b3b14c95bbae28bbf

Fresh extraction
----------------

The authoritative reproduction command in modeling-input/manifest.json is:

  python3 .trellis/scripts/pv_modeling.py check-native . --fresh

extraction-evidence/COMMAND.json records the exact argv, environment, and
working directory for every step.  extraction-evidence/RESULT.json records
exit status 0 for rustc identity, Charon/Cargo extraction, Cargo metadata,
Cargo cfg, and Aeneas.  Its primary run produced generated Lean SHA-256:

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9

The same digest is recorded for both `audited_sha256` and `native_sha256` in
modeling-input/manifest.json, whose `byte_identical` field is true, and is the
digest of this repository's generated.lean.  The manifest's accepted setup and
adaptation audits record the successful uncached Cargo, Charon, and Aeneas
checks, the absence of source placeholders, and the exact 24-external native
boundary.  In particular, the corrected source basis is:

  c42107d27bc47c02e4beb4d6db4c47879aecb68a175ab67f7e6c5d5e866a2402c06583f9e94b467095cf9aff1a26a4857650ace006061c1ca5e4c441747ef622

The pinned compatibility report modeling-input/axiom-compatibility.json has
SHA-256

  473825c0fe635e1abc7a734a2035f5df20ed4fe7053403ef2fb6833d7101a016

and checks 2,225 declarations.  It reports no unapproved axiom.  Its only
pending group contains 64 declarations downstream of the absent raw F64
carrier and external operations, exactly the boundary supplied by the authored
model-support layer; the raw extractor output contains no proof placeholder.

External boundary
-----------------

The reproducible command

  python3 .trellis/scripts/pv_modeling.py inspect-native .

returns exactly 24 declarations: fourteen F64 operations, four U64 bit
operations, and six byte/Option/slice/string operations.  Their complete
records are retained in reference/model-evidence/native-boundary.txt and the
structural-operation evidence files.  Tablet/model-support.json has exactly
one exact-signature binding for each declaration.  The whole opaque
`Lemire::from_u64` method has raw declaration SHA-256

  ad172bce0522e7e41bceb8c66a5adff962822ee8a9454dfd59b7019086797ba8

and covers source lines 263:4-266:5, including both the debug assertion and
the conversion.  It is not a cast-only boundary.

Composition and elaboration
---------------------------

After installing all 24 bindings, the exact command

  python3 .trellis/scripts/pv_modeling.py compose-native . --check

returned `matches=true`, `changed=false`, no mismatched files, raw extraction
hash

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9

and equal expected and actual Preamble hashes

  2bf9c25b895e20dd9efe782ae173e2b07b55020eed41a7d9b63b2ae9e1db007c.

The receipt reports 24 bindings, 47 authored definitions, and 170 extracted
modules.  Finally,

  python3 .trellis/scripts/check.py tablet

checked all 236 registered nodes against this composition and exited 0.  This
establishes complete composition and elaboration while leaving the 32 principal
GOAL proofs open for argument development as required.
reference/model-evidence/source-adaptation-delta.diff

Open file

--- upstream/dec2flt/common.rs
+++ crate/dec2flt/common.rs
@@ -14,4 +13,0 @@
-    /// Iteratively parse and consume digits from bytes.
-    ///
-    /// Returns the same bytes with consumed digits being elided. Breaks on invalid digits.
-    fn parse_digits(&self, func: impl FnMut(u8)) -> &Self;
@@ -38,16 +33,0 @@
-    #[inline]
-    fn parse_digits(&self, mut func: impl FnMut(u8)) -> &Self {
-        let mut s = self;
-
-        while let Some((c, rest)) = s.split_first() {
-            let c = c.wrapping_sub(b'0');
-            if c < 10 {
-                func(c);
-                s = rest;
-            } else {
-                break;
-            }
-        }
-
-        s
-    }
@@ -68 +48,4 @@
-#[derive(Debug, Copy, Clone, PartialEq, Eq, Default)]
+// Debug output is not an accepted public or trace observation.  Removing only
+// that implementation preserves the fields, computational derives, and every
+// algorithm operation independently of GOAL truth.
+#[derive(Copy, Clone, PartialEq, Eq, Default)]
--- upstream/dec2flt/decimal.rs
+++ crate/dec2flt/decimal.rs
@@ -28 +28,4 @@
-#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
+// Debug output is absent from the accepted observations.  Removing only that
+// implementation leaves all fields, computational derives, and parser
+// operations unchanged independently of GOAL truth.
+#[derive(Clone, Copy, Default, PartialEq, Eq)]
@@ -56 +59,11 @@
-    pub fn try_fast_path<F: Lemire>(&self) -> Option<F> {
+    pub fn try_fast_path<
+        F: Lemire
+            + core::ops::Div<Output = F>
+            + core::ops::Mul<Output = F>
+            + core::ops::Neg<Output = F>,
+    >(
+        &self,
+    ) -> Option<F> {
+        // `Lemire` already entails these three operator bounds through
+        // `Float`; spelling them directly changes no admitted type.  Charon
+        // needs the direct clauses to resolve each explicit call's `Output`.
@@ -73 +86,3 @@
-                value / F::pow10_fast_path((-self.exponent) as _)
+                // Explicit trait calls preserve Rust arithmetic and resolve
+                // the generic output type that Charon leaves ambiguous.
+                core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
@@ -75 +90 @@
-                value * F::pow10_fast_path(self.exponent as _)
+                core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
@@ -84 +99,4 @@
-            F::from_u64(mantissa) * F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _)
+            core::ops::Mul::mul(
+                F::from_u64(mantissa),
+                F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
+            )
@@ -87 +105,5 @@
-        if self.negative { Some(-value) } else { Some(value) }
+        if self.negative {
+            Some(core::ops::Neg::neg(value))
+        } else {
+            Some(value)
+        }
--- upstream/dec2flt/decimal_seq.rs
+++ crate/dec2flt/decimal_seq.rs
@@ -17 +17,4 @@
-#[derive(Clone, Debug, PartialEq)]
+// Debug output is absent from the accepted observations.  Removing only that
+// implementation preserves the representation, Clone/PartialEq behavior, and
+// every fallback operation independently of GOAL truth.
+#[derive(Clone, PartialEq)]
@@ -176 +179,2 @@
-        while (n >> shift) == 0 {
+        let mut all_zero = false;
+        while (n >> shift) == 0 && !all_zero {
@@ -181 +185,4 @@
-                return;
+                // The source returns here from inside the loop.  Recording the
+                // condition and returning immediately after the loop executes
+                // no intervening operation and preserves the unchanged value.
+                all_zero = true;
@@ -189,0 +197,3 @@
+        if all_zero {
+            return;
+        }
@@ -220,0 +231,51 @@
+// This is exactly the source reverse scan over the already-consumed prefix.
+// It is separate because Aeneas cannot join the loop while `parse_decimal_seq`
+// retains its other slice borrows.  The downward index has the same visitation
+// order and counts precisely the same zero bytes while ignoring dots.
+fn count_trailing_zeros(start: &[u8], consumed_len: usize) -> usize {
+    let mut n_trailing_zeros = 0;
+    let mut i = consumed_len;
+    let mut scanning = true;
+    while i != 0 && scanning {
+        let c = start[i - 1];
+        if c == b'0' || c == b'.' {
+            i -= 1;
+            if c == b'0' {
+                n_trailing_zeros += 1;
+            }
+        } else {
+            scanning = false;
+        }
+    }
+    n_trailing_zeros
+}
+
+// Equivalent to `ByteSlice::parse_digits(|digit| d.try_add_digit(digit))`.
+// An explicit index keeps the closure's mutable borrow out of the enclosing
+// parser context while retaining the same wrapping digit test and updates.
+fn parse_digits_into_seq<'a>(s: &'a [u8], d: &mut DecimalSeq) -> &'a [u8] {
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
+        d.try_add_digit(digit);
+        count += 1;
+    }
+    &s[count..]
+}
+
+// Equivalent to the source exponent `parse_digits` closure.  Bytes after the
+// first nondigit were ignored by the caller, so only the accumulated value is
+// returned; the 0x10000 guard and wrapping digit classification are identical.
+fn parse_decimal_exponent(s: &[u8]) -> i32 {
+    let mut exp_num = 0;
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
+        if exp_num < 0x10000 {
+            exp_num = 10 * exp_num + digit as i32;
+        }
+        count += 1;
+    }
+    exp_num
+}
+
@@ -226,2 +287,5 @@
-    while let Some((&b'0', s_next)) = s.split_first() {
-        s = s_next;
+    // Aeneas rejects the literal-pattern `while let`; this loop performs the
+    // same nonempty check, byte comparison, and one-byte consumption in the
+    // same order, with identical slice bounds.
+    while !s.is_empty() && s[0] == b'0' {
+        s = &s[1..];
@@ -230 +294 @@
-    s = s.parse_digits(|digit| d.try_add_digit(digit));
+    s = parse_digits_into_seq(s, &mut d);
@@ -232,2 +296,2 @@
-    if let Some((b'.', s_next)) = s.split_first() {
-        s = s_next;
+    if !s.is_empty() && s[0] == b'.' {
+        s = &s[1..];
@@ -237,2 +301,4 @@
-            while let Some((&b'0', s_next)) = s.split_first() {
-                s = s_next;
+            // As above, this is the source leading-zero loop written in the
+            // indexed form accepted by Aeneas.
+            while !s.is_empty() && s[0] == b'0' {
+                s = &s[1..];
@@ -250 +316 @@
-        s = s.parse_digits(|digit| d.try_add_digit(digit));
+        s = parse_digits_into_seq(s, &mut d);
@@ -256,8 +322,5 @@
-        let mut n_trailing_zeros = 0;
-        for &c in start[..(start.len() - s.len())].iter().rev() {
-            if c == b'0' {
-                n_trailing_zeros += 1;
-            } else if c != b'.' {
-                break;
-            }
-        }
+        let consumed_len = start.len() - s.len();
+        // Walking an index downward visits exactly the same bytes as
+        // `.iter().rev()` and stops on the same first nonzero nondot byte.  It
+        // also avoids the missing extracted `Iterator::rev` library field.
+        let n_trailing_zeros = count_trailing_zeros(start, consumed_len);
@@ -273 +336,4 @@
-    if let Some((&ch, s_next)) = s.split_first() {
+    // Indexed tests preserve `split_first`'s nonempty guard and byte order but
+    // avoid the loop-context joins Aeneas creates for nested slice patterns.
+    if !s.is_empty() {
+        let ch = s[0];
@@ -275,4 +341,7 @@
-            s = s_next;
-            let mut neg_exp = false;
-            if let Some((&ch, s_next)) = s.split_first() {
-                neg_exp = ch == b'-';
+            s = &s[1..];
+            let mut exp_sign = 1_i32;
+            if !s.is_empty() {
+                let ch = s[0];
+                if ch == b'-' {
+                    exp_sign = -1;
+                }
@@ -280 +349 @@
-                    s = s_next;
+                    s = &s[1..];
@@ -283,7 +352 @@
-            let mut exp_num = 0_i32;
-
-            s.parse_digits(|digit| {
-                if exp_num < 0x10000 {
-                    exp_num = 10 * exp_num + digit as i32;
-                }
-            });
+            let exp_num = parse_decimal_exponent(s);
@@ -291 +354,4 @@
-            d.decimal_point += if neg_exp { -exp_num } else { exp_num };
+            // `exp_num` is bounded by the source's 0x10000 guard, so this
+            // multiplication cannot overflow and equals the original Boolean
+            // choice between `-exp_num` and `exp_num` under checked arithmetic.
+            d.decimal_point += exp_sign * exp_num;
--- upstream/dec2flt/mod.rs
+++ crate/dec2flt/mod.rs
@@ -90 +90 @@
-use common::BiasedFp;
+pub use common::BiasedFp;
@@ -118,4 +118 @@
-    const MAX_EXPONENT_FAST_PATH: i64 = {
-        let log2_5 = f64::consts::LOG2_10 - 1.0;
-        (Self::SIG_TOTAL_BITS as f64 / log2_5) as i64
-    };
+    const MAX_EXPONENT_FAST_PATH: i64;
@@ -128,2 +125 @@
-    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 =
-        Self::MAX_EXPONENT_FAST_PATH + (Self::SIG_TOTAL_BITS as f64 / f64::consts::LOG2_10) as i64;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64;
@@ -144,0 +141,4 @@
+// The f16 Lemire instance is outside the exclusively f64 scope. Disabling it
+// leaves every retained f64 parser/helper/trace body, native decision, checked
+// operation, debug assertion, return value, and accepted observation unchanged.
+#[cfg(any())]
@@ -145,0 +146,7 @@
+    // These are the exact integer results of the upstream compile-time float
+    // formulae for `SIG_TOTAL_BITS = 11`: floor(11/log2(5)) = 4 and
+    // 4 + floor(11/log2(10)) = 7.  Concrete integers avoid unsupported const
+    // float arithmetic without changing either fast-path guard.
+    const MAX_EXPONENT_FAST_PATH: i64 = 4;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 7;
+
@@ -147,3 +154,11 @@
-        #[allow(clippy::use_self)]
-        const TABLE: [f16; 8] = [1e0, 1e1, 1e2, 1e3, 1e4, 0.0, 0.0, 0.];
-        TABLE[exponent & 7]
+        // Each integer is the exact IEEE encoding of the corresponding
+        // upstream table literal; the masked lookup and fallback zeros are
+        // unchanged.  Aeneas cannot translate arrays containing float values.
+        match exponent & 7 {
+            0 => f16::from_bits(0x3C00),
+            1 => f16::from_bits(0x4900),
+            2 => f16::from_bits(0x5640),
+            3 => f16::from_bits(0x63D0),
+            4 => f16::from_bits(0x70E2),
+            _ => f16::from_bits(0),
+        }
@@ -152,0 +168,4 @@
+    // This method is exactly the upstream primitive `u64 as f16` conversion.
+    // Charon extracts the cast, but Aeneas reports it unreachable; making only
+    // this primitive boundary opaque preserves all guards and dispatcher logic.
+    #[charon::opaque]
@@ -158,0 +178,4 @@
+// The f32 Lemire instance is likewise unused by the retained f64
+// specialization, so disabling it cannot affect any retained body or observed
+// f64 execution independently of the correctness GOALs.
+#[cfg(any())]
@@ -159,0 +183,4 @@
+    // Exact upstream formula results for `SIG_TOTAL_BITS = 24`.
+    const MAX_EXPONENT_FAST_PATH: i64 = 10;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 17;
+
@@ -161,4 +188,16 @@
-        #[allow(clippy::use_self)]
-        const TABLE: [f32; 16] =
-            [1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 0., 0., 0., 0., 0.];
-        TABLE[exponent & 15]
+        // Bit constructors preserve the exact table values and masked lookup,
+        // while avoiding Aeneas's unsupported float-valued array constants.
+        match exponent & 15 {
+            0 => f32::from_bits(0x3F80_0000),
+            1 => f32::from_bits(0x4120_0000),
+            2 => f32::from_bits(0x42C8_0000),
+            3 => f32::from_bits(0x447A_0000),
+            4 => f32::from_bits(0x461C_4000),
+            5 => f32::from_bits(0x47C3_5000),
+            6 => f32::from_bits(0x4974_2400),
+            7 => f32::from_bits(0x4B18_9680),
+            8 => f32::from_bits(0x4CBE_BC20),
+            9 => f32::from_bits(0x4E6E_6B28),
+            10 => f32::from_bits(0x5015_02F9),
+            _ => f32::from_bits(0),
+        }
@@ -167,0 +207,4 @@
+    // This is exactly the source `u64 as f32` conversion.  The narrow opaque
+    // boundary is required because Aeneas rejects the primitive cast itself;
+    // its input guard and every caller remain transparent.
+    #[charon::opaque]
@@ -174,0 +218,4 @@
+    // Exact upstream formula results for `SIG_TOTAL_BITS = 53`.
+    const MAX_EXPONENT_FAST_PATH: i64 = 22;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;
+
@@ -176,5 +223,29 @@
-        const TABLE: [f64; 32] = [
-            1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13, 1e14, 1e15,
-            1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22, 0., 0., 0., 0., 0., 0., 0., 0., 0.,
-        ];
-        TABLE[exponent & 31]
+        // These bit patterns are exactly the source table's rounded binary64
+        // literals.  The match is the same masked lookup; it merely keeps float
+        // constants out of Aeneas's unsupported constant interpreter.
+        match exponent & 31 {
+            0 => f64::from_bits(0x3FF0_0000_0000_0000),
+            1 => f64::from_bits(0x4024_0000_0000_0000),
+            2 => f64::from_bits(0x4059_0000_0000_0000),
+            3 => f64::from_bits(0x408F_4000_0000_0000),
+            4 => f64::from_bits(0x40C3_8800_0000_0000),
+            5 => f64::from_bits(0x40F8_6A00_0000_0000),
+            6 => f64::from_bits(0x412E_8480_0000_0000),
+            7 => f64::from_bits(0x4163_12D0_0000_0000),
+            8 => f64::from_bits(0x4197_D784_0000_0000),
+            9 => f64::from_bits(0x41CD_CD65_0000_0000),
+            10 => f64::from_bits(0x4202_A05F_2000_0000),
+            11 => f64::from_bits(0x4237_4876_E800_0000),
+            12 => f64::from_bits(0x426D_1A94_A200_0000),
+            13 => f64::from_bits(0x42A2_309C_E540_0000),
+            14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
+            15 => f64::from_bits(0x430C_6BF5_2634_0000),
+            16 => f64::from_bits(0x4341_C379_37E0_8000),
+            17 => f64::from_bits(0x4376_3457_85D8_A000),
+            18 => f64::from_bits(0x43AB_C16D_674E_C800),
+            19 => f64::from_bits(0x43E1_58E4_6091_3D00),
+            20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
+            21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
+            22 => f64::from_bits(0x4480_F0CF_064D_D592),
+            _ => f64::from_bits(0),
+        }
@@ -183,0 +255,8 @@
+    // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
+    // `charon::opaque` makes this entire asserted conversion external: both the
+    // unchanged `debug_assert!` and the unchanged cast below are in the opaque
+    // body. The callers, their fast-path guards, and their surrounding
+    // computation remain mechanically visible. A corresponding model binding
+    // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
+    // exact binary64 conversion at or below that bound.
+    #[charon::opaque]
@@ -209,5 +288,80 @@
-/// Converts a decimal string into a floating point number.
-#[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
-pub fn dec2flt<F: Lemire>(s: &str) -> Result<F, ParseFloatError> {
-    let mut s = s.as_bytes();
-    let Some(&c) = s.first() else { return Err(pfe_empty()) };
+/// Observable control-flow record for a dispatcher execution.
+///
+/// These variants add no decisions to the conversion: each stores values
+/// already computed at the corresponding source branch.  In particular, the
+/// first component returned by `dec2flt_with_trace` is the ordinary parser
+/// result, so projecting it preserves every public source observation without
+/// assuming any correctness goal.
+pub enum Dec2FltTrace<'a, F> {
+    /// The original string was empty; no helper was called.
+    EmptyInput,
+    /// Removing one lexical sign left an empty body; no helper was called.
+    SignOnly { body: &'a [u8], negative: bool },
+    /// Both lexical helpers returned `None`; no raw pair was selected.
+    Invalid {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        parse_inf_nan_result: Option<F>,
+    },
+    /// The special helper supplied the directly returned value; no pair was selected.
+    Special {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        parse_inf_nan_result: Option<F>,
+        result: F,
+    },
+    /// The ordinary native shortcut supplied the directly returned value.
+    FastPath {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        fast_path_input: decimal::Decimal,
+        fast_path_result: Option<F>,
+        result: F,
+    },
+    /// The integer/slow path selected and assembled one raw pair.
+    Assembled(Dec2FltAssemblyTrace<'a, F>),
+}
+
+/// Full observation record for the dispatcher path that performs final assembly.
+pub struct Dec2FltAssemblyTrace<'a, F> {
+    pub body: &'a [u8],
+    pub negative: bool,
+    pub parse_number_result: Option<decimal::Decimal>,
+    pub fast_path_input: decimal::Decimal,
+    pub fast_path_result: Option<F>,
+    pub first_compute_exponent: i64,
+    pub first_compute_mantissa: u64,
+    pub first_compute_result: BiasedFp,
+    pub second_compute_guard: bool,
+    pub second_compute_exponent: Option<i64>,
+    pub second_compute_mantissa: Option<u64>,
+    pub second_compute_result: Option<BiasedFp>,
+    pub second_equals_first: Option<bool>,
+    pub forced_deferral: bool,
+    pub post_comparison_pair: BiasedFp,
+    pub slow_path_guard: bool,
+    pub slow_path_result: Option<BiasedFp>,
+    pub selected_pair: BiasedFp,
+    pub assembled_word: u64,
+    pub assembly_result: F,
+    pub lexical_sign_applied: bool,
+    pub result: F,
+}
+
+/// Run the actual dispatcher while retaining its approved internal observations.
+pub fn dec2flt_with_trace<
+    'a,
+    F: Lemire
+        + core::ops::Div<Output = F>
+        + core::ops::Mul<Output = F>
+        + core::ops::Neg<Output = F>,
+>(
+    s: &'a str,
+) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
+    let mut body = s.as_bytes();
+    let Some(&c) = body.first() else {
+        return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
+    };
@@ -216 +370 @@
-        s = &s[1..];
+        body = &body[1..];
@@ -218,2 +372,2 @@
-    if s.is_empty() {
-        return Err(pfe_invalid());
+    if body.is_empty() {
+        return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
@@ -222 +376,2 @@
-    let mut num = match parse_number(s) {
+    let parse_number_result = parse_number(body);
+    let parsed = match parse_number_result {
@@ -224,2 +379,24 @@
-        None if let Some(value) = parse_inf_nan(s, negative) => return Ok(value),
-        None => return Err(pfe_invalid()),
+        None => {
+            let parse_inf_nan_result = parse_inf_nan(body, negative);
+            return match parse_inf_nan_result {
+                Some(value) => (
+                    Ok(value),
+                    Dec2FltTrace::Special {
+                        body,
+                        negative,
+                        parse_number_result,
+                        parse_inf_nan_result,
+                        result: value,
+                    },
+                ),
+                None => (
+                    Err(pfe_invalid()),
+                    Dec2FltTrace::Invalid {
+                        body,
+                        negative,
+                        parse_number_result,
+                        parse_inf_nan_result,
+                    },
+                ),
+            };
+        }
@@ -226,0 +404,2 @@
+
+    let mut num = parsed;
@@ -229,2 +408,13 @@
-        if let Some(value) = num.try_fast_path::<F>() {
-            return Ok(value);
+        let fast_path_result = num.try_fast_path::<F>();
+        if let Some(value) = fast_path_result {
+            return (
+                Ok(value),
+                Dec2FltTrace::FastPath {
+                    body,
+                    negative,
+                    parse_number_result,
+                    fast_path_input: num,
+                    fast_path_result,
+                    result: value,
+                },
+            );
@@ -234,15 +424,27 @@
-    // If significant digits were truncated, then we can have rounding error
-    // only if `mantissa + 1` produces a different result. We also avoid
-    // redundantly using the Eisel-Lemire algorithm if it was unable to
-    // correctly round on the first pass.
-    let mut fp = compute_float::<F>(num.exponent, num.mantissa);
-    if num.many_digits
-        && fp.p_biased >= 0
-        && fp != compute_float::<F>(num.exponent, num.mantissa + 1)
-    {
-        fp.p_biased = -1;
-    }
-    // Unable to correctly round the float using the Eisel-Lemire algorithm.
-    // Fallback to a slower, but always correct algorithm.
-    if fp.p_biased < 0 {
-        fp = parse_long_mantissa::<F>(s);
+    let first_compute_exponent = num.exponent;
+    let first_compute_mantissa = num.mantissa;
+    let first_compute_result = compute_float::<F>(first_compute_exponent, first_compute_mantissa);
+    let mut fp = first_compute_result;
+
+    // This expands the source short-circuit conjunction without moving the
+    // checked `mantissa + 1`: that addition and the second helper call still
+    // occur exactly when `many_digits && fp.p_biased >= 0`.
+    let second_compute_guard = num.many_digits && fp.p_biased >= 0;
+    let mut second_compute_exponent = None;
+    let mut second_compute_mantissa = None;
+    let mut second_compute_result = None;
+    let mut second_equals_first = None;
+    let mut forced_deferral = false;
+    if second_compute_guard {
+        let exponent = num.exponent;
+        let mantissa = num.mantissa + 1;
+        let second = compute_float::<F>(exponent, mantissa);
+        let equal = fp == second;
+        second_compute_exponent = Some(exponent);
+        second_compute_mantissa = Some(mantissa);
+        second_compute_result = Some(second);
+        second_equals_first = Some(equal);
+        if !equal {
+            fp.p_biased = -1;
+            forced_deferral = true;
+        }
@@ -249,0 +452 @@
+    let post_comparison_pair = fp;
@@ -251,5 +454,69 @@
-    let mut float = biased_fp_to_float::<F>(fp);
-    if num.negative {
-        float = -float;
-    }
-    Ok(float)
+    let slow_path_guard = fp.p_biased < 0;
+    let mut slow_path_result = None;
+    if slow_path_guard {
+        // The exact slow-path input is the trace's common `body`; the guard
+        // records whether this call occurred, avoiding a duplicate live slice
+        // reference that Aeneas cannot join across this branch.
+        let replacement = parse_long_mantissa::<F>(body);
+        slow_path_result = Some(replacement);
+        fp = replacement;
+    }
+
+    let selected_pair = fp;
+    // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
+    // it neither changes the selected pair nor introduces a new branch or call.
+    let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
+    let assembly_result = biased_fp_to_float::<F>(fp);
+    let lexical_sign_applied = num.negative;
+    let result = if lexical_sign_applied {
+        core::ops::Neg::neg(assembly_result)
+    } else {
+        assembly_result
+    };
+
+    (
+        Ok(result),
+        Dec2FltTrace::Assembled(Dec2FltAssemblyTrace {
+            body,
+            negative,
+            parse_number_result,
+            fast_path_input: num,
+            fast_path_result: None,
+            first_compute_exponent,
+            first_compute_mantissa,
+            first_compute_result,
+            second_compute_guard,
+            second_compute_exponent,
+            second_compute_mantissa,
+            second_compute_result,
+            second_equals_first,
+            forced_deferral,
+            post_comparison_pair,
+            slow_path_guard,
+            slow_path_result,
+            selected_pair,
+            assembled_word,
+            assembly_result,
+            lexical_sign_applied,
+            result,
+        }),
+    )
+}
+
+/// Converts a decimal string into a floating point number.
+#[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
+pub fn dec2flt<
+    F: Lemire
+        + core::ops::Div<Output = F>
+        + core::ops::Mul<Output = F>
+        + core::ops::Neg<Output = F>,
+>(
+    s: &str,
+) -> Result<F, ParseFloatError> {
+    // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
+    // clause admits exactly the same instances and lets Charon resolve the
+    // explicit, source-equivalent final negation.
+    // The public function is now exactly the result projection of the single
+    // instrumented implementation.  No conversion step is duplicated, and
+    // discarding the trace cannot affect Rust evaluation or the returned bits.
+    dec2flt_with_trace::<F>(s).0
--- upstream/dec2flt/parse.rs
+++ crate/dec2flt/parse.rs
@@ -34,3 +34,6 @@
-        let num = s.read_u64();
-        if is_8digits(num) {
-            x = x.wrapping_mul(1_0000_0000).wrapping_add(parse_8digits(num));
+        // `chunk` is the source's local `num` under a nonconflicting name.
+        // The rename has no Rust effect and prevents the Lean backend from
+        // resolving `num.imp...` as a field projection on this local value.
+        let chunk = s.read_u64();
+        if is_8digits(chunk) {
+            x = x.wrapping_mul(1_0000_0000).wrapping_add(parse_8digits(chunk));
@@ -43 +46,6 @@
-    s = s.parse_digits(|digit| {
+    // This is the removed `ByteSlice::parse_digits` call specialized to its
+    // only parser use: identical wrapping digit classification, accumulator
+    // update, and first-nondigit stop, without an unsupported closure state.
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
@@ -45 +53,3 @@
-    });
+        count += 1;
+    }
+    s = &s[count..];
@@ -71,0 +82,38 @@
+// This is the source prefix scan isolated from `parse_partial_number` because
+// Aeneas cannot join its loop context while the enclosing function's other
+// slice borrows are live.  It visits the same bytes, in order, and performs
+// the identical checked `isize` subtraction for every leading dot or zero.
+fn adjust_many_digit_count(start: &[u8], mut n_digits: isize) -> isize {
+    let mut scan_index = 0;
+    let mut scanning = true;
+    while scan_index < start.len() && scanning {
+        let c = start[scan_index];
+        if c == b'.' || c == b'0' {
+            n_digits -= c.saturating_sub(b'0' - 1) as isize;
+            scan_index += 1;
+        } else {
+            scanning = false;
+        }
+    }
+    n_digits
+}
+
+// This is the source many-digit retry as a transparent helper.  Isolating its
+// rebased slices avoids an Aeneas context-join failure; both calls, the branch,
+// the offset arithmetic, and the explicit-exponent addition are unchanged.
+fn parse_many_digits(start: &[u8], int_end: &[u8], exp_number: i64) -> (u64, i64) {
+    let mut mantissa = 0;
+    let mut s = start;
+    try_parse_19digits(&mut s, &mut mantissa);
+    let mut exponent = if mantissa >= MIN_19DIGIT_INT {
+        int_end.offset_from(s)
+    } else {
+        s = &s[1..];
+        let before = s;
+        try_parse_19digits(&mut s, &mut mantissa);
+        -s.offset_from(before)
+    } as i64;
+    exponent += exp_number;
+    (mantissa, exponent)
+}
+
@@ -86,3 +134,10 @@
-    if matches!(s.first(), Some(&x) if x.is_ascii_digit()) {
-        *s_ref = s.parse_digits(|digit| {
-            // no overflows here, saturate well before overflow
+    // `matches!` with a guarded slice pattern triggers an Aeneas internal
+    // error.  This short-circuit test reads the same first byte exactly when
+    // it exists and therefore preserves both acceptance and evaluation order.
+    if !s.is_empty() && s[0].is_ascii_digit() {
+        // Specialized form of the source digit callback.  `count` advances
+        // exactly once per accepted byte and the bound keeps every checked
+        // exponent operation in the same safe range as the source.
+        let mut count = 0;
+        while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+            let digit = s[count].wrapping_sub(b'0');
@@ -92 +147,3 @@
-        });
+            count += 1;
+        }
+        *s_ref = &s[count..];
@@ -155,9 +212,5 @@
-    let mut p = start;
-    while let Some((&c, p_next)) = p.split_first() {
-        if c == b'.' || c == b'0' {
-            n_digits -= c.saturating_sub(b'0' - 1) as isize;
-            p = p_next;
-        } else {
-            break;
-        }
-    }
+    // The indexed loop is equivalent to the source `while let split_first`:
+    // it tests nonemptiness before the same byte read and consumes one byte
+    // only on the two source continuation cases.  This avoids Aeneas's loop
+    // context mismatch without changing checked subtraction or slice bounds.
+    n_digits = adjust_many_digit_count(start, n_digits);
@@ -167,14 +220,3 @@
-        mantissa = 0;
-        let mut s = start;
-        try_parse_19digits(&mut s, &mut mantissa);
-        exponent = if mantissa >= MIN_19DIGIT_INT {
-            // big int
-            int_end.offset_from(s)
-        } else {
-            s = &s[1..];
-            let before = s;
-            try_parse_19digits(&mut s, &mut mantissa);
-            -s.offset_from(before)
-        } as i64;
-        // add back the explicit part
-        exponent += exp_number;
+        let retried = parse_many_digits(start, int_end, exp_number);
+        mantissa = retried.0;
+        exponent = retried.1;
--- upstream/dec2flt/slow.rs
+++ crate/dec2flt/slow.rs
@@ -48,0 +49 @@
+    let mut loop_result = None;
@@ -50 +51 @@
-    while d.decimal_point > 0 {
+    while d.decimal_point > 0 && loop_result.is_none() {
@@ -55 +56,7 @@
-            return fp_zero;
+            // The source returns `fp_zero` at this exact point.  Storing that
+            // result and terminating the loop performs no later loop update;
+            // the return below is therefore behavior-identical and avoids an
+            // Aeneas restriction on returns from nested loop translation.
+            loop_result = Some(fp_zero);
+        } else {
+            exp2 += shift as i32;
@@ -57 +64,3 @@
-        exp2 += shift as i32;
+    }
+    if let Some(result) = loop_result {
+        return result;
@@ -60 +69 @@
-    while d.decimal_point <= 0 {
+    while d.decimal_point <= 0 && loop_result.is_none() {
@@ -72 +81,6 @@
-            return fp_inf;
+            // This records the source's immediate `fp_inf` return.  Since the
+            // guarded loop exits before the exponent update, moving the return
+            // just below the loop preserves every state transition.
+            loop_result = Some(fp_inf);
+        } else {
+            exp2 -= shift as i32;
@@ -74 +88,3 @@
-        exp2 -= shift as i32;
+    }
+    if let Some(result) = loop_result {
+        return result;
--- upstream/traits.rs
+++ crate/traits.rs
@@ -11 +11 @@
-use crate::{f64, fmt, ops};
+use crate::{f64, ops};
@@ -14 +14,5 @@
-pub trait CastInto<T: Copy>: Copy {
+// All uses are through `Int`, which independently requires `Self: Copy`, and
+// every implementation here is a primitive Copy type.  Removing that redundant
+// supertrait changes no call or value but prevents Aeneas from emitting two
+// identically named `Copy` fields for `Self` and `T` in the Lean structure.
+pub trait CastInto<T: Copy> {
@@ -18,0 +23,4 @@
+// The accepted observations contain no formatting behavior.  Removing the
+// `Debug` supertrait changes neither the concrete primitive integer instances
+// nor any operation used by the algorithms, so it preserves the f64
+// specialization and every inventoried observation independently of GOAL truth.
@@ -23 +30,0 @@
-    + fmt::Debug
@@ -52 +59,6 @@
-int!(u16, u32, u64);
+// Only `u64` is the associated integer of the retained `f64` specialization.
+// The removed `u16`/`u32` instances served only the excluded `f16`/`f32`
+// implementations, so their removal changes no f64 public, helper, or trace
+// body, native decision, checked arithmetic, debug assertion, return value, or
+// accepted observation.
+int!(u64);
@@ -55,0 +68,6 @@
+// Formatting is outside every accepted public and trace observation. `Add`,
+// equality, ordering, default construction, and cloning are also unused by all
+// retained generic bodies; only `Copy`, `Mul`, `Div`, and `Neg` are required.
+// Removing those unused requirements admits the same f64 implementation and
+// changes no f64 body, native decision, checked arithmetic, debug assertion,
+// return value, or trace observation, independently of any GOAL's truth.
@@ -61,6 +78,0 @@
-    + ops::Add<Output = Self>
-    + fmt::Debug
-    + PartialEq
-    + PartialOrd
-    + Default
-    + Clone
@@ -134,4 +146 @@
-    const LARGEST_POWER_OF_TEN: i32 = {
-        let largest_pow2 = Self::EXP_BIAS + 1;
-        pow2_to_pow10(largest_pow2 as i64) as i32
-    };
+    const LARGEST_POWER_OF_TEN: i32;
@@ -175,19 +184 @@
-    fn integer_decode(self) -> (u64, i16, i8) {
-        let bits = self.to_bits();
-        let sign: i8 = if bits >> (Self::BITS - 1) == Self::Int::ZERO { 1 } else { -1 };
-        let mut exponent: i16 = ((bits & Self::EXP_MASK) >> Self::SIG_BITS).cast();
-        let mantissa = if exponent == 0 {
-            (bits & Self::SIG_MASK) << 1
-        } else {
-            (bits & Self::SIG_MASK) | (Self::Int::ONE << Self::SIG_BITS)
-        };
-        // Exponent bias + mantissa shift
-        exponent -= (Self::EXP_BIAS + Self::SIG_BITS) as i16;
-        (mantissa.into(), exponent, sign)
-    }
-}
-
-/// Solve for `b` in `10^b = 2^a`
-const fn pow2_to_pow10(a: i64) -> i64 {
-    let res = (a as f64) / f64::consts::LOG2_10;
-    res as i64
+    fn integer_decode(self) -> (u64, i16, i8);
@@ -196,0 +188,4 @@
+// The f16 implementation is outside the exclusively f64 scope. Disabling it
+// leaves every retained f64 public/helper/trace body and all of its decisions,
+// checked operations, assertions, return values, and observations unchanged.
+#[cfg(any())]
@@ -203 +198,4 @@
-    const NEG_NAN: Self = -Self::NAN;
+    // `from_bits` produces exactly the bit pattern obtained by negating the
+    // upstream canonical NaN.  This avoids Aeneas's unsupported float unop
+    // while preserving the constant, including its sign and payload bits.
+    const NEG_NAN: Self = f16::from_bits(0xFE00);
@@ -211,0 +210,2 @@
+    // Exact value of trunc(16 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 4;
@@ -223,0 +224,3 @@
+// `FloatExt for f16` is used only by the excluded f16 specialization; it is
+// irrelevant to all retained f64 computation and observations listed above.
+#[cfg(any())]
@@ -228,0 +232,16 @@
+
+    // Specializing the upstream default removes only unsupported associated-
+    // integer operator resolution; these are the same bit operations with
+    // `Self::Int = u16` and the same exponent-bias subtraction.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 15 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 10) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u16 << 10)
+        };
+        exponent -= 15 + 10;
+        (mantissa as u64, exponent, sign)
+    }
@@ -230,0 +250,3 @@
+// The f32 implementation is outside the exclusively f64 scope. Disabling it
+// does not alter any retained f64 computation, assertion, result, or trace.
+#[cfg(any())]
@@ -237 +259,3 @@
-    const NEG_NAN: Self = -f32::NAN;
+    // Bit-identical to the upstream `-f32::NAN`, without the unsupported
+    // compile-time float negation.
+    const NEG_NAN: Self = f32::from_bits(0xFFC0_0000);
@@ -245,0 +270,2 @@
+    // Exact value of trunc(128 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 38;
@@ -256,0 +283,3 @@
+// `FloatExt for f32` likewise has no use in any retained f64 body or accepted
+// observation and is disabled without changing f64 execution.
+#[cfg(any())]
@@ -261,0 +291,16 @@
+
+    // This is the upstream default after substituting `Self::Int = u32`;
+    // concreteness is needed only because Charon cannot resolve the generic
+    // associated-integer shifts and bit operators for Aeneas.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 31 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 23) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u32 << 23)
+        };
+        exponent -= 127 + 23;
+        (mantissa as u64, exponent, sign)
+    }
@@ -270 +315,3 @@
-    const NEG_NAN: Self = -Self::NAN;
+    // Bit-identical to the upstream `-f64::NAN`, without the unsupported
+    // compile-time float negation.
+    const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);
@@ -278,0 +326,2 @@
+    // Exact value of trunc(1024 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 308;
@@ -293,0 +343,16 @@
+    }
+
+    // This is the upstream default after substituting `Self::Int = u64`;
+    // it preserves every decoded field while avoiding unsupported generic
+    // associated-integer operator resolution.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 63 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 52) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u64 << 52)
+        };
+        exponent -= 1023 + 52;
+        (mantissa, exponent, sign)
reference/model-evidence/source-adaptation-delta.txt

Open file

Primary inventory and preservation analysis of the upstream-to-crate delta
============================================================================

Method and complete file inventory
----------------------------------

This record compares the supplied files in upstream/ with the frozen adapted
crate/.  It treats the sources and their control flow as primary evidence; it
does not use a prior route decision as semantic proof and makes no assertion
that a supplied GOAL is true.  The exact raw aggregate diff is retained as
reference/model-evidence/source-adaptation-delta.diff.  It was generated from
the repository root by this exact command (the for-list is the complete
LC_ALL=C-sorted upstream inventory, identical files contribute zero bytes,
labels are literal root-relative paths, hunks are concatenated in listed
order, status 1 is accepted as diff's expected ``files differ'' status, and
every other nonzero status aborts):

  export LC_ALL=C
  artifact=reference/model-evidence/source-adaptation-delta.diff
  : > "$artifact"
  saw_difference=0
  for supplied in \
    dec2flt/common.rs \
    dec2flt/decimal.rs \
    dec2flt/decimal_seq.rs \
    dec2flt/fpu.rs \
    dec2flt/lemire.rs \
    dec2flt/mod.rs \
    dec2flt/parse.rs \
    dec2flt/slow.rs \
    dec2flt/table.rs \
    traits.rs
  do
    if diff --unified=0 --label "upstream/$supplied" --label "crate/$supplied" \
        "upstream/$supplied" "crate/$supplied" >> "$artifact"; then
      :
    else
      diff_status=$?
      if [ "$diff_status" -ne 1 ]; then
        exit "$diff_status"
      fi
      saw_difference=1
    fi
  done
  test "$saw_difference" -eq 1
  sha256sum "$artifact"

The command used GNU diffutils 3.12 at /usr/bin/diff, whose SHA-256 is
dfab4814355b488934cf8c63ce96d94184ea3d9b5e4f9be50278ad8e080168f5.
Its actual final output was:

  fdf88cabfe40ce962d2bd5eda22eb5b3cbbf8a936a81b896e98698bf472cd0e4  reference/model-evidence/source-adaptation-delta.diff

The retained byte stream is 38,813 bytes and 933 lines.  The complete source
inventory and independently reproduced file hashes are:

  supplied path                 upstream SHA-256                                                   crate SHA-256                                                      status
  dec2flt/common.rs             fc64094721ff23e08fcba013154d04dec3fe986cae5ffd73a20f86049980aace   4c4be815335a7b176527eb1345e662890caa48181a0a4f814594339016cab18e   changed
  dec2flt/decimal.rs            3c164785e1bc3f3b48aa9c212dd6c4ab535fe828523af9fa584df4c7b1e60e0d   633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb   changed
  dec2flt/decimal_seq.rs        c0c1c6028e3f57cefc3de7635a94788e9180f5ebcedc7a334ec8dbac786ec788   4aa4ecf9f31970033093d73238d4f2c72d433639bbe467c0741b185807380bd9   changed
  dec2flt/fpu.rs                16cf9ec154d477ab3d4184a01fb4b9ed7c59f0228cc55589d393c40a61b19d8f   16cf9ec154d477ab3d4184a01fb4b9ed7c59f0228cc55589d393c40a61b19d8f   identical
  dec2flt/lemire.rs             fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1   fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1   identical
  dec2flt/mod.rs                7198e238c554b692405537a446b3526ad66805ec2900cd0e299f10c51402a44a   ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d   changed
  dec2flt/parse.rs              9daf21ab9445a84552535152f376eef8c30f3d5827296c0645f5952d3b22bbf1   50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f   changed
  dec2flt/slow.rs               43e7aba32d7431bbf0e1bbcb4c334eaffb23eb66891c7e45abe799c5235cc0d2   93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485   changed
  dec2flt/table.rs              6eb59023784bd84cb6fb074c70da8a99bef72bc2a2ea179b0da457ca1ee00abb   6eb59023784bd84cb6fb074c70da8a99bef72bc2a2ea179b0da457ca1ee00abb   identical
  traits.rs                     66a02c44d72dfcc3ddae7e34a290e390dabaf98c5911b283d2d97f2f0075a44e   9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf   changed

The standalone package adds four files having no supplied counterpart:

  crate/Cargo.toml              2040ce5dc92c51b5245113f97682b692b876aa57708b5c7c483425ba152943c8
  crate/lib.rs                  1df2b8bcb2f52068d05a6343923716d0ef4475abdef34a0de3fe7cb8dc2ba95b
  crate/num/mod.rs              d9ac4f964d124bd4660914dc4c80bbb14f48d7851f9a8edc71a0931e9fce37b3
  crate/num/imp/mod.rs          df09b97393e97b23b0a558c2fcbbf4e75dd9d68338f1e83f168bab80a37a31f1

Thus fpu.rs, lemire.rs, and the complete 671-line table.rs, including their
algorithmic constants and tables, are byte-identical.  The following sections
account for every other file and every changed hunk.

Namespace and error shell
-------------------------

crate/lib.rs:1-12 is a no_std crate root that re-exports core::f64 and
core::ops and introduces the same num module path expected by the supplied
slice.  crate/num/imp/mod.rs:1-10 uses path attributes to place traits.rs and
dec2flt/mod.rs at core::num::imp-like module names.  These declarations add no
wrapper call or computation.  crate/num/mod.rs:1 re-exports
core::num::FpCategory.  crate/num/mod.rs:3-26 defines a local private
FloatErrorKind and ParseFloatError shell so the standalone package can name
the parser's error type.  The pursued GOALs observe only panic versus normal
return and, on normal return, the outer Result's Ok/Err discriminant; they do
not observe the private error kind or formatting.  No identity is asserted
between this local shell and an unpinned core error payload.
crate/Cargo.toml:5-22 selects the package, empty default features, and
checked-overflow profiles.  The configuration and fresh build are independently
reproduced in setup-reproduction.txt.

Visibility, derives, and bounds
-------------------------------

upstream/dec2flt/mod.rs:90 versus crate/dec2flt/mod.rs:90 changes only the
visibility of the existing BiasedFp import so a goal-facing caller can name the
same type.  It changes neither layout nor execution.

upstream/dec2flt/common.rs:68 and decimal.rs:28 and decimal_seq.rs:17 include
Debug derives.  The corresponding crate spans common.rs:48-51,
decimal.rs:28-31, and decimal_seq.rs:17-20 remove only Debug.  Copy, Clone,
PartialEq, Eq, and Default used by computation remain where present, and no
accepted observation formats these records.

upstream/traits.rs:11-52 versus crate/traits.rs:11-64 removes formatting from
Int, removes a redundant Copy supertrait from CastInto, and instantiates Int
only for u64.  Every call of CastInto is through Int, which still requires
Copy; all retained concrete values are primitive Copy values.  The removed
u16/u32 instances are associated only with the disabled f16/f32 formats.

upstream/traits.rs:55-76 versus crate/traits.rs:67-80 removes Add, Debug,
PartialEq, PartialOrd, Default, and Clone from Float while retaining Copy, Mul,
Div, and Neg.  A search of all retained generic bodies shows no call using a
removed operation.  upstream/dec2flt/decimal.rs:56-89 versus
crate/dec2flt/decimal.rs:59-111 and upstream/dec2flt/mod.rs:209-256 versus
crate/dec2flt/mod.rs:352-520 add direct Div, Mul, and Neg bounds already implied
by Lemire -> Float, and replace operator notation with calls to those same
traits.  Rust desugars the original /, *, and unary - to these trait calls, so
the operands, call order, result, and admitted f64 specialization are unchanged.

Exact constants, tables, and specialized decoding
-------------------------------------------------

The source formulae and decimal-literal table were evaluated directly by the
pinned rustc using the retained source
reference/model-evidence/adaptation-constants-probe.rs.  The command was:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/adaptation-constants-probe.rs
  B=.trellis/scratch/adaptation-constants-probe
  "$R" --edition 2024 --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$P" "$B"
  "$B"

The source hash was
b5a4a2cba0c08053cb9a816adb1ba5dbd160bf3928bdf5ccf56b7ae83aaa2aa5
and the resulting executable hash was
b02d2f6deb675f17d0dbdc22e57a67d7692689f7a2b0d7b125556c35c4b8a4a5.
Raw output was:

  largest_power_of_ten=308
  max_exponent_fast_path=22
  max_exponent_disguised=37
  neg_nan=fff8000000000000
  pow10_0=3ff0000000000000
  pow10_1=4024000000000000
  pow10_2=4059000000000000
  pow10_3=408f400000000000
  pow10_4=40c3880000000000
  pow10_5=40f86a0000000000
  pow10_6=412e848000000000
  pow10_7=416312d000000000
  pow10_8=4197d78400000000
  pow10_9=41cdcd6500000000
  pow10_10=4202a05f20000000
  pow10_11=42374876e8000000
  pow10_12=426d1a94a2000000
  pow10_13=42a2309ce5400000
  pow10_14=42d6bcc41e900000
  pow10_15=430c6bf526340000
  pow10_16=4341c37937e08000
  pow10_17=4376345785d8a000
  pow10_18=43abc16d674ec800
  pow10_19=43e158e460913d00
  pow10_20=4415af1d78b58c40
  pow10_21=444b1ae4d6e2ef50
  pow10_22=4480f0cf064dd592

upstream/traits.rs:134-137 computes LARGEST_POWER_OF_TEN through a Float
default, and upstream/traits.rs:175-193 gives the generic integer_decode and
the helper used by that constant.  crate/traits.rs:146 makes the constant an
associated requirement; crate/traits.rs:309-359 supplies the retained f64
values and decoder after substituting BITS=64, SIG_BITS=52, EXP_BIAS=1023,
EXPONENT_MASK, MANTISSA_MASK, and the u64 operations.  Each source expression
then becomes exactly the corresponding crate expression: sign is bits>>63,
exponent is (bits & mask)>>52 cast to i16, the subnormal mantissa is shifted
once, the normal mantissa receives 1<<52, and 1023+52 is subtracted.  The
resulting tuple and every bit operation are unchanged.  The probe output above
shows that the computed f64 LARGEST_POWER_OF_TEN is 308 and that the source
-f64::NAN word is fff8000000000000, exactly crate/traits.rs:315-327; the
independent binary64-boundary.txt record fixes the masks and primitive bit
semantics used by the decoder.

upstream/dec2flt/mod.rs:118-129 gives the two Lemire default formulae.
crate/dec2flt/mod.rs:115-128 makes them associated requirements, and the
retained f64 instance at crate/dec2flt/mod.rs:217-220 supplies 22 and 37, the
integer results of the two source formulae for 53 significand bits.
upstream/dec2flt/mod.rs:176-181 indexes a 32-entry f64 table with exponent&31.
crate/dec2flt/mod.rs:222-251 performs the same masked selection using from_bits:
cases 0 through 22 are the exact pinned binary64 words printed above for 1e0 through 1e22 and
all other cases return positive zero, as did entries 23 through 31.  The full
word list and the pinned float semantics are recorded in binary64-boundary.txt.
The analogous f16/f32 replacements at crate/dec2flt/mod.rs:145-215 and
crate/traits.rs:187-307 lie under cfg(any()) and cannot enter this build.

Whole-function from_u64 opacity
-------------------------------

upstream/dec2flt/mod.rs:184-188 and crate/dec2flt/mod.rs:263-266 have the same
f64 body: the same enabled debug_assert that v <= 1<<53, followed by the same
primitive `v as f64` cast.  The sole semantic-boundary annotation is
#[charon::opaque] at crate line 262, syntactically attached to the function
item.  It therefore hides the entire from_u64 body from translation: neither
the debug assertion nor the cast is transparent in the extraction.  The
callers, their guards, and the surrounding native-path computation remain
transparent.  The fresh external inventory contains the whole method as the
single external F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64.  Its
separately reviewed ModelF64FromU64 binding supplies exactly successful integer
conversion for v <= 2^53 and assertion failure otherwise.

Digit scans, slice patterns, and helper extraction
-------------------------------------------------

upstream/dec2flt/common.rs:14-53 supplies ByteSlice::parse_digits: repeatedly
split_first, wrapping-subtract ASCII zero, invoke the closure exactly when the
result is below 10, consume that byte, and stop at the first other byte.
crate/dec2flt/common.rs:11-36 removes only this method.  Its complete set of
uses is replaced as follows.

* upstream/dec2flt/parse.rs:31-48 versus crate/dec2flt/parse.rs:31-58 keeps the
  eight-byte loop, wrapping multiply/add, and then performs the same digit test,
  accumulator update, and one-byte progress with an index.  The local rename
  num to chunk is lexical only.
* upstream/dec2flt/parse.rs:83-97 versus crate/dec2flt/parse.rs:131-153 expands
  matches!/parse_digits into the same nonempty first-digit guard, the same
  0x10000 bounded exponent update, the same first-nondigit suffix, and the same
  final sign.  The bound is tested before each checked multiply and addition,
  exactly as in the closure.
* upstream/dec2flt/decimal_seq.rs:220-295 versus
  crate/dec2flt/decimal_seq.rs:231-359 extracts parse_digits_into_seq,
  parse_decimal_exponent, and count_trailing_zeros.  The digit helpers use the
  same wrapping byte test, forward order, try_add_digit state transition, and
  0x10000 exponent guard.  The reverse helper visits indices consumed_len-1
  down to zero, increments only for ASCII zero, ignores a decimal point, and
  stops at the first other byte, exactly the original iter().rev() loop.

In all these replacements, indexing occurs only under count<len or !is_empty,
so it has the same bounds as split_first.  Slicing advances by exactly the same
one or eight bytes.  No wrapping operation is replaced by checked arithmetic,
and no checked source operation is replaced by wrapping arithmetic.

upstream/dec2flt/parse.rs:155-181 versus crate/dec2flt/parse.rs:82-119 and
212-226 moves two loops into adjust_many_digit_count and parse_many_digits.
The prefix helper visits the same start bytes in the same order, performs the
same saturating_sub and checked isize subtraction, and stops on the same byte.
The retry helper makes the same first 19-digit call, tests the same threshold,
makes the same one-byte rebase and second call in the alternate branch,
computes the same offset with the same sign, casts it to i64, and performs the
same checked addition of exp_number last.  Thus any large-input panic is
preserved rather than excluded.

upstream/dec2flt/decimal_seq.rs:226-295 versus
crate/dec2flt/decimal_seq.rs:284-359 replaces literal split_first patterns by
nonempty index tests.  The leading-zero scans, optional decimal point, optional
exponent marker, optional exponent sign, and suffixes occur in the same order.
The crate's exp_sign*exp_num equals the source choice between exp_num and
-exp_num because exp_num is bounded by the unchanged 0x10000 guard; the final
decimal_point checked addition is in the same position.  Casts of lengths to
i32 and every subsequent checked update remain unchanged, including their
large-input behavior.

Delayed returns
---------------

upstream/dec2flt/decimal_seq.rs:173-198 versus
crate/dec2flt/decimal_seq.rs:176-203 replaces one return inside right_shift's
loop by all_zero=true, exits because !all_zero is the loop guard, and returns
immediately afterward.  No decimal_point, digit, index, or arithmetic update
occurs between the original and delayed return.

upstream/dec2flt/slow.rs:46-76 versus crate/dec2flt/slow.rs:46-94 replaces two
nested-loop returns by loop_result.  In the zero branch it records fp_zero,
skips the source-skipped exp2 addition, exits through is_none(), and returns.
In the infinity branch it records fp_inf, skips the source-skipped exp2
subtraction, exits, and returns.  On all other iterations it performs the same
shift, checked state changes, and exponent update.  Lines 95-126 after these
returns are otherwise the source lines 77-110 unchanged.

Dispatcher trace and public projection
--------------------------------------

upstream/dec2flt/mod.rs:209-256 is the whole original dispatcher.
crate/dec2flt/mod.rs:285-349 declares trace data only, lines 352-505 execute the
instrumented dispatcher, and lines 507-520 define public dec2flt as its first
projection.  Comparing the bodies gives the following branch-by-branch
correspondence.

* Both call as_bytes, inspect the first byte, reject empty input before a helper,
  remove at most one sign, and reject a sign-only body.  The trace stores the
  already obtained body and Boolean sign.
* Both call parse_number first on that exact body.  Only None calls
  parse_inf_nan on the same body and sign.  Its Some is returned directly and
  its None returns invalid.  The trace stores those existing Option values.
* Both overwrite only Decimal.negative, test the same compile-time
  !optimize_for_size condition, call try_fast_path once, and return its Some
  directly.  The trace stores the copied Decimal and Option; Decimal is Copy.
* Both call compute_float first with num.exponent and num.mantissa.  The crate's
  second_compute_guard is exactly the first two conjuncts of the source
  short-circuit.  Therefore the checked mantissa+1 and second compute_float call
  occur under precisely the source guard, in the same order.  The same pair
  comparison either retains fp or changes only p_biased to -1.
* Both test the post-comparison p_biased<0 once, call parse_long_mantissa on the
  unchanged body exactly when true, and otherwise retain the same pair.  The
  trace records both guard and result without another helper call.
* The extra assembled_word expression is the same cast, shift, and OR performed
  by biased_fp_to_float at upstream lines 202-206 and crate lines 278-282; these
  integer operations neither panic nor mutate fp.  Both then call assembly once
  on the selected pair and apply unary negation exactly when num.negative.
  Public dec2flt returns the identical Result first component.

Consequently the trace does not infer uncomputed data: it records the exact
variant; sign-stripped body and sign; numeric/special Options; fast-path input
and result; first and conditional second integer operands and results;
comparison, forced-deferral and post-comparison pair; slow guard and result;
selected pair; assembled word; pre-sign assembly word; sign-application fact;
and final word.  Special and native direct returns create no selected pair.
All source call order, guards, checked arithmetic, mutable-state transitions,
panic points, and returned Result/F64 observations remain in place.

F64-only restriction
--------------------

crate/traits.rs:187-307 and crate/dec2flt/mod.rs:140-215 add cfg(any()) to the
f16/f32 Float, FloatExt, and Lemire implementations.  crate/traits.rs:59-64
retains only u64 Int.  The retained f64 implementations are
crate/traits.rs:309-360 and crate/dec2flt/mod.rs:217-264.  Every goal-facing
function remains generic in the source and extraction, but each pursued source
subject specializes it to f64, whose associated integer is u64.  There is no
dynamic format dispatch, so removing other impl blocks cannot change an f64
call, its native decision, checks, result word, NaN classification, fields, or
trace.  The fresh boundary inventory in setup-reproduction.txt confirms that
no removed-format external remains.

Conclusion
----------

The inventory is exhaustive: three supplied files are identical, seven have
all hunks classified above, and the four added files are the package shell.
For the configured f64 specialization, the adapted crate has the same input
domains, branch order, guards, checked/wrapping distinction, state transitions,
panic versus normal behavior, and public/helper observations as the supplied
source.  The only new observations are the trace fields, each copied from an
existing value or computed by the same pure assembly expression.  This
conclusion is independent of whether any parser-correctness GOAL is true.
reference/model-evidence/source-valid-byte-slice-probe.out

Open file

arch=x86_64
usize_bits=64
isize_max=9223372036854775807
u8_size=1
reference/model-evidence/source-valid-byte-slice-probe.rs

Open file

fn main() {
    println!("arch={}", std::env::consts::ARCH);
    println!("usize_bits={}", usize::BITS);
    println!("isize_max={}", isize::MAX);
    println!("u8_size={}", std::mem::size_of::<u8>());
}
reference/model-evidence/source-valid-byte-slice.txt

Open file

Source-valid byte-slice and string domain evidence
==================================================

Scope and pinned identities
---------------------------

All commands below were run from the repository root.  The configured compiler
is:

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

Its SHA-256 is:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b

The exact identity commands were:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  sha256sum "$R"
  "$R" --version --verbose
  "$R" --target x86_64-unknown-linux-gnu --print cfg | LC_ALL=C sort | \
    rg 'target_(arch|pointer_width)'

Their relevant raw output was:

  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
  target_arch="x86_64"
  target_pointer_width="64"

Retained configured-target probe
--------------------------------

The retained probe source is
reference/model-evidence/source-valid-byte-slice-probe.rs.  It was compiled
for the configured target and executed with this exact command, which depends
only on the retained source and the pinned compiler:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/source-valid-byte-slice-probe.rs
  B=/tmp/dec2flt-source-valid-byte-slice-probe
  O=reference/model-evidence/source-valid-byte-slice-probe.out
  "$R" --edition 2024 --target x86_64-unknown-linux-gnu -C opt-level=0 \
    -C debuginfo=0 -C overflow-checks=on -C debug-assertions=on \
    --crate-name source_valid_byte_slice_probe "$P" -o "$B"
  sha256sum "$R" "$P" "$B"
  "$B" > "$O"
  sha256sum "$O"
  cat "$O"

The actual hashes were:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd  reference/model-evidence/source-valid-byte-slice-probe.rs
  87dc3b9b7a46506d2205503d8aa007b451c452968af48d1ba5961a821934ee55  /tmp/dec2flt-source-valid-byte-slice-probe
  01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4  reference/model-evidence/source-valid-byte-slice-probe.out

The retained raw output file contains exactly:

  arch=x86_64
  usize_bits=64
  isize_max=9223372036854775807
  u8_size=1

Pinned core-library source
--------------------------

Let:

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

The exact commands used to identify and inspect the relevant core sources were:

  sha256sum "$S/slice/mod.rs" "$S/num/int_macros.rs" "$S/str/mod.rs"
  sed -n '798,808p' "$S/slice/mod.rs"
  sed -n '43,51p' "$S/num/int_macros.rs"
  sed -n '495,510p' "$S/str/mod.rs"

The file identities are:

  354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840  core/src/slice/mod.rs
  3896304e7cb14628e293134ac41fd18be2b5369bedc02d1c6a7408bd8c755a31  core/src/num/int_macros.rs
  284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78  core/src/str/mod.rs

The relevant exact excerpt of slice/mod.rs, line 801, is:

  //   - The size of the slice is never larger than `isize::MAX` bytes, as

The relevant exact declaration in num/int_macros.rs, line 47, is:

  pub const MAX: Self = (<$UnsignedT>::MAX >> 1) as Self;

The relevant exact excerpts of str/mod.rs are its same-layout byte-slice
conversion at lines 498-500:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }

and its UTF-8 invariant at lines 507-510:

  /// The caller must ensure that the content of the slice is valid UTF-8
  /// before the borrow ends and the underlying `str` is used.
  ///
  /// Use of a `str` whose contents are not valid UTF-8 is undefined behavior.

Conclusion
----------

The configured target has 64-bit usize/isize and one-byte u8 elements.
The pinned signed-MAX definition therefore gives
isize::MAX = 2^63 - 1 = 9223372036854775807, and the pinned slice rule bounds a
slice by that many bytes.  For &[u8], this is exactly an element-count bound;
the rule adds no UTF-8 condition or other restriction on the byte contents.
The pinned str source exposes the identical-layout &[u8] bytes and separately
requires them to be valid UTF-8.  Consequently the exact configured domains
are arbitrary &[u8] bytes of length at most isize::MAX, and Rust str bytes of
length at most isize::MAX that are valid UTF-8.  No smaller convenience bound
is introduced.
Upstream → extraction-crate adaptation diff
--- upstream/dec2flt/parse.rs
+++ crate/dec2flt/parse.rs
@@ -31,18 +31,28 @@
     // may cause overflows, to be handled later
 
     while s.len() >= 8 {
-        let num = s.read_u64();
-        if is_8digits(num) {
-            x = x.wrapping_mul(1_0000_0000).wrapping_add(parse_8digits(num));
+        // `chunk` is the source's local `num` under a nonconflicting name.
+        // The rename has no Rust effect and prevents the Lean backend from
+        // resolving `num.imp...` as a field projection on this local value.
+        let chunk = s.read_u64();
+        if is_8digits(chunk) {
+            x = x.wrapping_mul(1_0000_0000).wrapping_add(parse_8digits(chunk));
             s = &s[8..];
         } else {
             break;
         }
     }
 
-    s = s.parse_digits(|digit| {
+    // This is the removed `ByteSlice::parse_digits` call specialized to its
+    // only parser use: identical wrapping digit classification, accumulator
+    // update, and first-nondigit stop, without an unsupported closure state.
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
         x = x.wrapping_mul(10).wrapping_add(digit as _);
-    });
+        count += 1;
+    }
+    s = &s[count..];
 
     (s, x)
 }
@@ -69,6 +79,44 @@
     *s_ref = s;
 }
 
+// This is the source prefix scan isolated from `parse_partial_number` because
+// Aeneas cannot join its loop context while the enclosing function's other
+// slice borrows are live.  It visits the same bytes, in order, and performs
+// the identical checked `isize` subtraction for every leading dot or zero.
+fn adjust_many_digit_count(start: &[u8], mut n_digits: isize) -> isize {
+    let mut scan_index = 0;
+    let mut scanning = true;
+    while scan_index < start.len() && scanning {
+        let c = start[scan_index];
+        if c == b'.' || c == b'0' {
+            n_digits -= c.saturating_sub(b'0' - 1) as isize;
+            scan_index += 1;
+        } else {
+            scanning = false;
+        }
+    }
+    n_digits
+}
+
+// This is the source many-digit retry as a transparent helper.  Isolating its
+// rebased slices avoids an Aeneas context-join failure; both calls, the branch,
+// the offset arithmetic, and the explicit-exponent addition are unchanged.
+fn parse_many_digits(start: &[u8], int_end: &[u8], exp_number: i64) -> (u64, i64) {
+    let mut mantissa = 0;
+    let mut s = start;
+    try_parse_19digits(&mut s, &mut mantissa);
+    let mut exponent = if mantissa >= MIN_19DIGIT_INT {
+        int_end.offset_from(s)
+    } else {
+        s = &s[1..];
+        let before = s;
+        try_parse_19digits(&mut s, &mut mantissa);
+        -s.offset_from(before)
+    } as i64;
+    exponent += exp_number;
+    (mantissa, exponent)
+}
+
 /// Parse the scientific notation component of a float.
 fn parse_scientific(s_ref: &mut &[u8]) -> Option<i64> {
     let mut exponent = 0i64;
@@ -83,13 +131,22 @@
         }
     }
 
-    if matches!(s.first(), Some(&x) if x.is_ascii_digit()) {
-        *s_ref = s.parse_digits(|digit| {
-            // no overflows here, saturate well before overflow
+    // `matches!` with a guarded slice pattern triggers an Aeneas internal
+    // error.  This short-circuit test reads the same first byte exactly when
+    // it exists and therefore preserves both acceptance and evaluation order.
+    if !s.is_empty() && s[0].is_ascii_digit() {
+        // Specialized form of the source digit callback.  `count` advances
+        // exactly once per accepted byte and the bound keeps every checked
+        // exponent operation in the same safe range as the source.
+        let mut count = 0;
+        while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+            let digit = s[count].wrapping_sub(b'0');
             if exponent < 0x10000 {
                 exponent = 10 * exponent + digit as i64;
             }
-        });
+            count += 1;
+        }
+        *s_ref = &s[count..];
         if negative { Some(-exponent) } else { Some(exponent) }
     } else {
         *s_ref = s;
@@ -152,32 +209,17 @@
 
     n_digits -= 19;
     let mut many_digits = false;
-    let mut p = start;
-    while let Some((&c, p_next)) = p.split_first() {
-        if c == b'.' || c == b'0' {
-            n_digits -= c.saturating_sub(b'0' - 1) as isize;
-            p = p_next;
-        } else {
-            break;
-        }
-    }
+    // The indexed loop is equivalent to the source `while let split_first`:
+    // it tests nonemptiness before the same byte read and consumes one byte
+    // only on the two source continuation cases.  This avoids Aeneas's loop
+    // context mismatch without changing checked subtraction or slice bounds.
+    n_digits = adjust_many_digit_count(start, n_digits);
     if n_digits > 0 {
         // at this point we have more than 19 significant digits, let's try again
         many_digits = true;
-        mantissa = 0;
-        let mut s = start;
-        try_parse_19digits(&mut s, &mut mantissa);
-        exponent = if mantissa >= MIN_19DIGIT_INT {
-            // big int
-            int_end.offset_from(s)
-        } else {
-            s = &s[1..];
-            let before = s;
-            try_parse_19digits(&mut s, &mut mantissa);
-            -s.offset_from(before)
-        } as i64;
-        // add back the explicit part
-        exponent += exp_number;
+        let retried = parse_many_digits(start, int_end, exp_number);
+        mantissa = retried.0;
+        exponent = retried.1;
     }
 
     Some((Decimal { exponent, mantissa, negative: false, many_digits }, len))
Record details
Kindsource adaptation site (file-level diff)
Captured evidence identities
[
  {
    "path": "extraction-evidence/COMMAND.json",
    "sha256": "5f26225136b8c7c4d7f95615e3e8ff8b357e523eeada4bc649e50f9c76cb9bda",
    "cited_by": [
      "shared mechanical extraction record",
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "extraction-evidence/DETERMINISM.json",
    "sha256": "74e45977d1fa84e7d4c696906005f13faca994995fdeff0fac8dc13e5c18f11c",
    "cited_by": [
      "shared mechanical extraction record"
    ]
  },
  {
    "path": "extraction-evidence/RESULT.json",
    "sha256": "31059e900d9ee03a54504c1dd3560a943d6c0f883fba737163b1ca0cb40065b0",
    "cited_by": [
      "shared mechanical extraction record",
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "extraction-evidence/STDERR.bin",
    "sha256": "c284799d633c64b898f716d62fbf1146c173227bd6bd44309c6504a43926e000",
    "cited_by": [
      "shared mechanical extraction record"
    ]
  },
  {
    "path": "extraction-evidence/STDOUT.bin",
    "sha256": "8e0aed62f6941e7c81b09d5c5b63ea7602756e69e4bcce9944258b229a9a0ba3",
    "cited_by": [
      "shared mechanical extraction record"
    ]
  },
  {
    "path": "reference/model-evidence/adaptation-constants-probe.rs",
    "sha256": "b5a4a2cba0c08053cb9a816adb1ba5dbd160bf3928bdf5ccf56b7ae83aaa2aa5",
    "cited_by": [
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-boundary.txt",
    "sha256": "fa45c924747337e8d6f84a19fe9e83fb9b33c73434887c0cf57c062533f51fe1",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex",
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-probe.rs",
    "sha256": "68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e",
    "cited_by": [
      "reference/model-evidence/binary64-boundary.txt"
    ]
  },
  {
    "path": "reference/model-evidence/native-boundary.txt",
    "sha256": "fa0d69e4a434007e6ee675380fc13f98e22655b7faa77cdc5216d4af4356438f",
    "cited_by": [
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "reference/model-evidence/setup-reproduction.txt",
    "sha256": "209bc94a47b1b905a2a7b1fea229c759e6250becbd353fe4eadc7bc49be7742c",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex",
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-adaptation-delta.diff",
    "sha256": "fdf88cabfe40ce962d2bd5eda22eb5b3cbbf8a936a81b896e98698bf472cd0e4",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex",
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-adaptation-delta.txt",
    "sha256": "3c1483d48286a82484eba249a5434936e1a33a08f4e99ec0e3a03ce9bb0ecd9b",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.out",
    "sha256": "01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.rs",
    "sha256": "b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice.txt",
    "sha256": "eb501317621baa00236f9773885466bd38ec1a45cb56457d555b9e9139dc780a",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex"
    ]
  }
]

crate/dec2flt/slow.rs

Historical preparation document: preparation source-adaptation audit. It describes the state and obligations at preparation. This generation is captured in ProofFormalization. Later closure and review results appear in the proof and modeling views. This original document remains available as history.

Captured upstream and extraction-crate files differ. Consult the recorded preservation explanations for the purpose and scope of each adaptation.
Shared extraction-boundary explanation (Preamble)

Preservation argument

Claim

Fix Rust nightly-2026-06-01 and target x86_64-unknown-linux-gnu, the library's empty default feature set (so optimize_for_size is disabled), the unoptimized development profile, enabled debug assertions and integer overflow checks, and the target's SSE2 precision-setting branch. Interpret each of the frozen extraction's 24 external operations by the separately justified model-support definition that owns that operation. Under those interpretations, the composed Aeneas model represents the supplied source's f64 specialization on all of these domains, without a correctness premise: every Rust str whose bytes are valid UTF-8 and whose 64-bit slice length is at most \mathtt{isize::MAX}=2^{63}-1; every Rust &[u8] whose length is at most that bound, with arbitrary byte contents; every Decimal; every i64/u64 pair; and every BiasedFp.
For dec2flt::<f64> the relation preserves panic versus normal return, the outer returned Result's Ok/Err discriminant, and, on success, the exact binary64 word and its NaN classification. For parse_number it preserves panic versus normal return, the Option discriminant, and all four returned Decimal fields. For parse_inf_nan::<f64> and Decimal::try_fast_path::<f64> it preserves panic versus normal return, None versus Some, and every returned word and NaN classification. For compute_float::<f64> and parse_long_mantissa::<f64> it preserves panic versus normal return and both fields of every returned BiasedFp. For biased_fp_to_float::<f64> it preserves panic versus normal return and the exact returned word, with no restriction on the pair fields.
For dec2flt_with_trace::<f64> it additionally preserves the public result and the complete trace: its control-flow variant; sign-stripped body and lexical sign; numeric and special helper results; signed native input and native result; first integer operands and result; second-call guard, optional operands and result, comparison and forced-deferral fact; post-comparison pair; slow-path guard and optional result; selected pair; assembled unsigned word; pre-sign assembly result; sign-application fact; and final word. Public dec2flt::<f64> is exactly the first projection of that interface, and direct special and native returns select no raw pair.

Proof

The fresh extraction record reference/model-evidence/setup-reproduction.txt pins all six tool executables by SHA-256, gives the empty Cargo/Charon/Aeneas argument configuration, and records the effective development cfg. Its Cargo, Charon, and Aeneas executions all exit successfully. Fresh Aeneas output is byte-for-byte the frozen generated.lean, with SHA-256 45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9. The raw source has no placeholder. The compatibility check reports no unapproved axiom and isolates exactly 24 external declarations; the complete inventory equals the 24 entries of Tablet/model-support.json. compose-native --check reports an unchanged composition and equal expected and actual Preamble hashes. Thus all transparent extracted declarations come from this one pinned source and every nontransparent operation is explicit. The premise assigning each external its owning definition deliberately leaves that definition's primitive-semantics proof to its own preservation record; no primitive binding is re-proved here.
The paired meanings of all 24 owners make that composition premise concrete. The binary64 carrier is the complete raw-word representation of F64. Its clone, precision constant, NaN and infinity constants, field masks, classification, bit conversions, arithmetic, negation, and asserted integer conversion have respectively the meanings in ModelF64Clone, ModelF64MantissaDigits, ModelF64Nan, ModelF64Infinity, ModelF64NegInfinity, ModelF64ExponentMask, ModelF64MantissaMask, ModelF64Classify, ModelF64ToBits, ModelF64FromBits, ModelF64Mul, ModelF64Div, ModelF64Neg, and ModelF64FromU64. The four bounded word operations have the Rust meanings in ModelU64BitAnd, ModelU64BitOr, ModelU64Shl, and ModelU64Shr; the digit test has the meaning in ModelU8IsAsciiDigit. Option branching and residual return have the meanings in ModelOptionBranch and ModelOptionFromResidual; first-element and split-first observation have the meanings in ModelSliceFirst and ModelSliceSplitFirst; and string-to-byte observation has the meaning in ModelStrAsBytes. These are exactly the semantic operations substituted for the inventoried externals.
The source carrier used below is the arbitrary-byte, length-at-most 2^{63}-1 slice of SourceValidByteSlice. The abstract domains and observations used in the GOAL applications are those of DecimalGoalVocabulary; their concrete UTF-8 string predicate, lexical grammar, decimal values, binary64 rounding and classification, sign, and unrestricted raw-pair assembly are those of DecimalGoalVocabularyDefault. Thus the composition cites the paired meanings that connect its source domains and observations to the GOAL vocabulary, rather than inferring those meanings from boundary inventory alone.
The complete upstream-to-crate inventory and its source hashes are recorded in reference/model-evidence/source-adaptation-delta.txt; its exact aggregate byte diff is retained in reference/model-evidence/source-adaptation-delta.diff. The supplied fpu.rs, lemire.rs, and table.rs are byte-identical. The standalone namespace and local error shell introduce no call. The GOALs observe only panic versus normal return and the outer Ok/Err discriminant, so the shell's private kind and formatting are unobserved; no identity with an unpinned core error payload is asserted. Visibility and removed Debug derives do not affect values. The retained generic bodies use none of the removed trait operations; the direct Mul, Div, and Neg clauses and calls are the operations already implied by Lemire. Only the u64 integer instance and f64 Float, FloatExt, and Lemire instances can participate in an f64 execution, so disabling the u16/u32 and f16/f32 instances changes no such call.
The same delta record compares each constant, table entry, and specialized decoder with its source expression. The retained decoder is the source default after substituting the f64/u64 field widths and masks; the fast-path bounds are the source formula results; and the match over power-of-ten words has the same masked index and exact words as the source array. The toolchain-specific words, masks, classifications, casts, and rounding behavior are independently pinned in reference/model-evidence/binary64-boundary.txt. The frozen from_u64 Rust body is the enabled assertion followed by the u64 as f64 conversion. Because #[charon::opaque] applies to the whole function, neither operation inside that body is transparent in the extraction: the whole method is the single inventoried external. Its callers, their guards, and the surrounding native computation remain transparent. ModelF64FromU64 supplies exactly successful integer conversion for v\leq2^{53} and assertion failure otherwise.
All other changed bodies are syntax-directed rewrites. Indexed digit scans test the same byte, use the same wrapping subtraction and accumulator update, advance by the same amount, and stop at the same first nondigit as the source closures and split_first loops. Extracted helpers receive the same slices and mutable values, visit bytes in the same forward or reverse order, and retain every saturating, wrapping, and checked operation. Delayed returns set a result flag, execute no intervening state update, leave the loop through that flag, and immediately return the source value. In particular, casts and length-derived additions on very large inputs keep their original panic or normal behavior rather than acquiring a convenience size bound.
Finally, direct comparison of the supplied dispatcher with the instrumented body shows identical sequencing. Both strip at most one sign, reject empty or sign-only input, call the numeric helper first and the special helper only after its None, overwrite only the parsed sign, try the enabled native path, make the first integer call, and evaluate the checked mantissa+1 and second call under exactly the source short-circuit guard. Both force the same deferral on unequal pairs, call the slow helper on the unchanged body exactly for a negative post-comparison exponent, assemble the same selected pair, and apply the sign last. Every trace field is either one of those already computed values or the same nonmutating cast/shift/OR word used by assembly. Hence recording the trace and discarding it in the public projection changes neither call order, guards, state, panic points, nor any returned observation.
The exact source carrier condition is separately evidenced by reference/model-evidence/source-valid-byte-slice.txt: on this 64-bit target a byte slice has arbitrary bytes and length at most isize::MAX, while a Rust string adds UTF-8 validity. Sub-slicing preserves the length bound and need not preserve an independent string type. These facts establish all domains and observations in the claim independently of the truth or falsity of any GOAL.

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

extraction-evidence/COMMAND.json

Open file

{"declaration_reader_sha256":"76f60cf0b867fad9727d2256d32b306c8cba3725216a4225d0f83add77fd6158","extraction_provenance":{"extraction_toolchain":{"aeneas":"fa699427","aeneas_revision":"fa699427cdfa8f604b891fb0223ef42883dd7dc4","cargo_features":[{"features":["default"],"name":"dec2flt-model","source":"workspace:Cargo.toml","version":"0.1.0"}],"cargo_lock_sha256":"bc644c624ded89197356bbd65d995054b7fb08e5bdfbaa38c6e7c7a53772cecf","cfg":["debug_assertions","emscripten_wasm_eh","feature=\"default\"","fmt_debug=\"full\"","overflow_checks","panic=\"unwind\"","relocation_model=\"pic\"","target_abi=\"\"","target_arch=\"x86_64\"","target_endian=\"little\"","target_env=\"gnu\"","target_family=\"unix\"","target_feature=\"fxsr\"","target_feature=\"sse\"","target_feature=\"sse2\"","target_feature=\"x87\"","target_has_atomic","target_has_atomic=\"16\"","target_has_atomic=\"32\"","target_has_atomic=\"64\"","target_has_atomic=\"8\"","target_has_atomic=\"ptr\"","target_has_atomic_load_store","target_has_atomic_load_store=\"16\"","target_has_atomic_load_store=\"32\"","target_has_atomic_load_store=\"64\"","target_has_atomic_load_store=\"8\"","target_has_atomic_load_store=\"ptr\"","target_has_atomic_primitive_alignment=\"16\"","target_has_atomic_primitive_alignment=\"32\"","target_has_atomic_primitive_alignment=\"64\"","target_has_atomic_primitive_alignment=\"8\"","target_has_atomic_primitive_alignment=\"ptr\"","target_has_reliable_f128","target_has_reliable_f16","target_has_reliable_f16_math","target_object_format=\"elf\"","target_os=\"linux\"","target_pointer_width=\"64\"","target_thread_local","target_vendor=\"unknown\"","ub_checks","unix"],"charon":"0.1.216","charon_revision":"6f058254eb741c12e9b388df07adaf7cc8aac8ed","extraction_profile":"dev","lean":"4.30.0-rc2","overflow_checks":true,"panic_strategy":"unwind","rustc_vv":"rustc 1.98.0-nightly (14210df0e 2026-05-31)\nbinary: rustc\ncommit-hash: 14210df0e27ccd7d9e6a05b8085cbd438e4bbc65\ncommit-date: 2026-05-31\nhost: x86_64-unknown-linux-gnu\nrelease: 1.98.0-nightly\nLLVM version: 22.1.6\n","target_pointer_width":64,"target_triple":"x86_64-unknown-linux-gnu"},"extractor_stack":["charon@0.1.216","aeneas@fa699427"],"extractor_toolchain_sha256":"18657da0659dee7889ed8a937b136c9abbc3a35e9050241cd8201c94fd232323","not_recorded":[],"source_digests":[{"source_file":"lib.rs","source_sha256":"63c7f58df6caff552519c92155d902daf8a1015797adcd3f357f8b8cf1652b00"}]},"extractor_script_path":"/home/leanagent/pv_runs/trellis-native-implementation-v91/scripts/extract_pv_model.py","extractor_script_sha256":"cc1fdd50a78185c7bb564b715c554cb35d9fc09ed566b6c3d4f482f2d27ef67d","kernel_gate_checkers":[],"log_concatenation_order":"runs_then_steps_in_array_order","runs":[{"run_role":"primary","steps":[{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","-vV"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"rustc-version","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/pv_spike/tools/charon/bin/charon","cargo","--preset=aeneas","--dest-file","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc","--","--offline","--profile","dev","--target","x86_64-unknown-linux-gnu"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"charon","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/cargo","metadata","--format-version=1","--locked","--offline","--filter-platform","x86_64-unknown-linux-gnu"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"cargo-metadata","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/cargo","rustc","--lib","--locked","--offline","--profile","dev","--target","x86_64-unknown-linux-gnu","--","--print","cfg"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"cargo-rustc-cfg","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/pv_spike/tools/aeneas/bin/aeneas","-backend","lean","-dest","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen","-emit-json","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"aeneas","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"}]}],"schema":"trellis-extraction-command/v1","tool_source_checkouts":[]}
extraction-evidence/DETERMINISM.json

Open file

{"comparison":"generated_lean_and_complete_tablet_tree_byte_identity","generated_lean_byte_identical":false,"generated_lean_sha256":["45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9"],"kernel_filespec_gate":"not_run","kernel_prescribed_region_gate":"not_run","namespace_context_roundtrip_gate":"not_run","result_sha256":"31059e900d9ee03a54504c1dd3560a943d6c0f883fba737163b1ca0cb40065b0","run_roles":["primary"],"schema":"trellis-extraction-determinism/v2","status":"not_run","tablet_root_sha256":["5be7a89d6b46429df3229db0d97b337dfb51cea483d439817e51b774a2dd5cf1"],"tablet_tree_byte_identical":false}
extraction-evidence/RESULT.json

Open file

{"command_sha256":"5f26225136b8c7c4d7f95615e3e8ff8b357e523eeada4bc649e50f9c76cb9bda","runs":[{"generated_lean_sha256":"45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9","run_role":"primary","steps":[{"exit_status":0,"stderr_byte_length":0,"stderr_offset":0,"stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","stdout_byte_length":212,"stdout_offset":0,"stdout_sha256":"e6ea0da4a3301256a0a0dc0d67d11acf4e83e0d1bff5dd987ccdaa43708714bc","tool":"rustc-version"},{"exit_status":0,"stderr_byte_length":654,"stderr_offset":0,"stderr_sha256":"85f314396a5cc9f2303d9848c2d0ea392b64a71cb47e7b0914fd3b8acc916f02","stdout_byte_length":0,"stdout_offset":212,"stdout_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","tool":"charon"},{"exit_status":0,"stderr_byte_length":0,"stderr_offset":654,"stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","stdout_byte_length":2897,"stdout_offset":212,"stdout_sha256":"d792566b25914f10c1a27d3c55607a43dd6bcd31b381f8d54caa7d23257269ef","tool":"cargo-metadata"},{"exit_status":0,"stderr_byte_length":302,"stderr_offset":654,"stderr_sha256":"865b65d937d16c61cd9b975adc967136f6739ef2149207ae43742241f2f37686","stdout_byte_length":1062,"stdout_offset":3109,"stdout_sha256":"4081a320e6292139b4a673d225682dc054b77cba113b8c8a8fbb0593f824b713","tool":"cargo-rustc-cfg"},{"exit_status":0,"stderr_byte_length":6916,"stderr_offset":956,"stderr_sha256":"9c2b4695f1b3bb4e7fe3bf52b92d44fd21bed1de3047b698c950eafcc085c00b","stdout_byte_length":933,"stdout_offset":4171,"stdout_sha256":"35255952c6ce5b89d1280d096dff50ffcfc94817c3aafa58beda6db7e66721df","tool":"aeneas"}],"tablet_root_sha256":"5be7a89d6b46429df3229db0d97b337dfb51cea483d439817e51b774a2dd5cf1"}],"schema":"trellis-extraction-result/v2","stderr_byte_length":7872,"stderr_sha256":"c284799d633c64b898f716d62fbf1146c173227bd6bd44309c6504a43926e000","stdout_byte_length":5104,"stdout_sha256":"8e0aed62f6941e7c81b09d5c5b63ea7602756e69e4bcce9944258b229a9a0ba3"}
extraction-evidence/STDERR.bin

Open file

   Compiling dec2flt-model v0.1.0 (/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate)
warning: feature `f16` is declared but not used
 --> lib.rs:2:46
  |
2 | #![feature(cfg_target_has_reliable_f16_f128, f16, float_masks, register_tool, staged_api)]
  |                                              ^^^
  |
  = note: `#[warn(unused_features)]` (part of `#[warn(unused)]`) on by default

warning: `dec2flt-model` (lib) generated 1 warning
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.44s
   Compiling dec2flt-model v0.1.0 (/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.02s
[?25lApplied prepasses:  [------------------------------------------------]   0/203 ⠋

Applied prepasses:  [------------------------------------------------]   1/203 ⠋

Applied prepasses:  [#####-------------------------------------------]  24/203 ⠋

Applied prepasses:  [########----------------------------------------]  38/203 ⠋

Applied prepasses:  [##############################------------------] 128/203 ⠙
Applied prepasses:  [################################################] 203/203 ✔️
[?25h[?25lTranslated globals:  [-------------------------------------------------]  0/50 ⠋
Translated globals:  [#################################################] 50/50 ✔️
[?25h[?25lTranslated opaque functions:  [----------------------------------------]  0/87 ⠋
Translated opaque functions:  [########################################] 87/87 ✔️
[?25h[?25lTranslated transparent functions:  [---------------------------------]   0/107 ⠋

Translated transparent functions:  [---------------------------------]   1/107 ⠙

Translated transparent functions:  [###------------------------------]  10/107 ⠙

Translated transparent functions:  [######---------------------------]  22/107 ⠹

Translated transparent functions:  [##########-----------------------]  35/107 ⠹

Translated transparent functions:  [#############--------------------]  44/107 ⠹

Translated transparent functions:  [##############-------------------]  48/107 ⠸

Translated transparent functions:  [###############------------------]  51/107 ⠸

Translated transparent functions:  [##################---------------]  59/107 ⠸

Translated transparent functions:  [##################---------------]  60/107 ⠼

Translated transparent functions:  [##################---------------]  61/107 ⠼

Translated transparent functions:  [####################-------------]  65/107 ⠼

Translated transparent functions:  [#####################------------]  69/107 ⠼

Translated transparent functions:  [#####################------------]  70/107 ⠴

Translated transparent functions:  [######################-----------]  72/107 ⠴

Translated transparent functions:  [######################-----------]  73/107 ⠦

Translated transparent functions:  [######################-----------]  74/107 ⠦

Translated transparent functions:  [#######################----------]  77/107 ⠦

Translated transparent functions:  [########################---------]  78/107 ⠧

Translated transparent functions:  [########################---------]  79/107 ⠧

Translated transparent functions:  [########################---------]  81/107 ⠇

Translated transparent functions:  [#########################--------]  82/107 ⠇

Translated transparent functions:  [#########################--------]  83/107 ⠏

Translated transparent functions:  [#########################--------]  84/107 ⠏

Translated transparent functions:  [##########################-------]  86/107 ⠋

Translated transparent functions:  [###########################------]  88/107 ⠋

Translated transparent functions:  [###########################------]  89/107 ⠋

Translated transparent functions:  [###########################------]  90/107 ⠙

Translated transparent functions:  [############################-----]  91/107 ⠙

Translated transparent functions:  [############################-----]  93/107 ⠹

Translated transparent functions:  [############################-----]  94/107 ⠹

Translated transparent functions:  [#############################----]  95/107 ⠸

Translated transparent functions:  [#############################----]  97/107 ⠸

Translated transparent functions:  [##############################---]  99/107 ⠼

Translated transparent functions:  [##############################---] 100/107 ⠼

Translated transparent functions:  [###############################--] 102/107 ⠴

Translated transparent functions:  [###############################--] 103/107 ⠦

Translated transparent functions:  [################################-] 104/107 ⠦

Translated transparent functions:  [################################-] 105/107 ⠧

Translated transparent functions:  [################################-] 106/107 ⠇

Translated transparent functions:  [#################################] 107/107 ⠏
Translated transparent functions:  [#################################] 107/107 ✔️
[?25h[?25lTranslated trait declarations:  [--------------------------------------]  0/49 ⠋
Translated trait declarations:  [########################--------------] 31/49 ✔️
[?25h[?25lTranslated trait impls:  [---------------------------------------------]  0/85 ⠋
Translated trait impls:  [#################################------------] 64/85 ✔️
[?25h[?25lPost-processed translated opaque functions:  [-------------------------]  0/87 ⠋

Post-processed translated opaque functions:  [-------------------------]  1/87 ⠙
Post-processed translated opaque functions:  [#########################] 87/87 ✔️
[?25h[?25lPost-processed translated transparent functions:  [------------------]   0/107 ⠋

Post-processed translated transparent functions:  [------------------]   1/107 ⠋

Post-processed translated transparent functions:  [#-----------------]  10/107 ⠙

Post-processed translated transparent functions:  [##----------------]  12/107 ⠙

Post-processed translated transparent functions:  [##----------------]  13/107 ⠹

Post-processed translated transparent functions:  [##----------------]  14/107 ⠹

Post-processed translated transparent functions:  [##----------------]  16/107 ⠸

Post-processed translated transparent functions:  [##----------------]  17/107 ⠼

Post-processed translated transparent functions:  [###---------------]  18/107 ⠼

Post-processed translated transparent functions:  [###---------------]  23/107 ⠴

Post-processed translated transparent functions:  [####--------------]  27/107 ⠴

Post-processed translated transparent functions:  [#####-------------]  31/107 ⠴

Post-processed translated transparent functions:  [######------------]  37/107 ⠴

Post-processed translated transparent functions:  [########----------]  50/107 ⠴

Post-processed translated transparent functions:  [###############---]  95/107 ⠦

Post-processed translated transparent functions:  [################--]  99/107 ⠦

Post-processed translated transparent functions:  [################--] 100/107 ⠧

Post-processed translated transparent functions:  [################--] 101/107 ⠧

Post-processed translated transparent functions:  [#################-] 103/107 ⠧

Post-processed translated transparent functions:  [#################-] 105/107 ⠇

Post-processed translated transparent functions:  [##################] 107/107 ⠏
Post-processed translated transparent functions:  [##################] 107/107 ✔️
[?25h
extraction-evidence/STDOUT.bin

Open file

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
{"packages":[{"name":"dec2flt-model","version":"0.1.0","id":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0","license":null,"license_file":null,"description":null,"source":null,"dependencies":[],"targets":[{"kind":["lib"],"crate_types":["lib"],"name":"dec2flt_model","src_path":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate/lib.rs","edition":"2024","doc":true,"doctest":true,"test":true}],"features":{"default":[],"optimize_for_size":[]},"manifest_path":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate/Cargo.toml","metadata":null,"publish":[],"authors":[],"categories":[],"keywords":[],"readme":null,"repository":null,"homepage":null,"documentation":null,"edition":"2024","links":null,"default_run":null,"rust_version":null}],"workspace_members":["path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"],"workspace_default_members":["path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"],"resolve":{"nodes":[{"id":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0","dependencies":[],"deps":[],"features":["default"]}],"root":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"},"target_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","build_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","version":1,"workspace_root":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate","metadata":null}
debug_assertions
emscripten_wasm_eh
feature="default"
fmt_debug="full"
overflow_checks
panic="unwind"
relocation_model="pic"
target_abi=""
target_arch="x86_64"
target_endian="little"
target_env="gnu"
target_family="unix"
target_feature="fxsr"
target_feature="sse"
target_feature="sse2"
target_feature="x87"
target_has_atomic
target_has_atomic="16"
target_has_atomic="32"
target_has_atomic="64"
target_has_atomic="8"
target_has_atomic="ptr"
target_has_atomic_load_store
target_has_atomic_load_store="16"
target_has_atomic_load_store="32"
target_has_atomic_load_store="64"
target_has_atomic_load_store="8"
target_has_atomic_load_store="ptr"
target_has_atomic_primitive_alignment="16"
target_has_atomic_primitive_alignment="32"
target_has_atomic_primitive_alignment="64"
target_has_atomic_primitive_alignment="8"
target_has_atomic_primitive_alignment="ptr"
target_has_reliable_f128
target_has_reliable_f16
target_has_reliable_f16_math
target_object_format="elf"
target_os="linux"
target_pointer_width="64"
target_thread_local
target_vendor="unknown"
ub_checks
unix
[Info ] Imported: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc
[Info ] Generated: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/M.lean
[Info ] Generated: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/translation.json
[Warn ] The crate contains extracted external, unknown definitions: we advise using the option -split-files to allow manually providing these definitions in separate files.
[Info ] Total execution time: 7.337683 seconds
reference/model-evidence/adaptation-constants-probe.rs

Open file

fn main() {
    let largest_power_of_ten = (1024_f64 / std::f64::consts::LOG2_10) as i32;
    let log2_5 = std::f64::consts::LOG2_10 - 1.0;
    let max_exponent_fast_path = (53_f64 / log2_5) as i64;
    let max_exponent_disguised =
        max_exponent_fast_path + (53_f64 / std::f64::consts::LOG2_10) as i64;

    println!("largest_power_of_ten={largest_power_of_ten}");
    println!("max_exponent_fast_path={max_exponent_fast_path}");
    println!("max_exponent_disguised={max_exponent_disguised}");
    println!("neg_nan={:016x}", (-f64::NAN).to_bits());

    for (exponent, value) in IntoIterator::into_iter([
        1e0_f64, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11,
        1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22,
    ])
    .enumerate()
    {
        println!("pow10_{exponent}={:016x}", value.to_bits());
    }
}
reference/model-evidence/binary64-boundary.txt

Open file

Primary evidence for the binary64 boundary
==========================================

Scope and identities
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction, the
adapted Rust crate retained in this repository, and the installed toolchain
named by modeling-input/SETUP.md. The probe source is retained at
reference/model-evidence/binary64-probe.rs; no scratch source is required to
reproduce it.

Toolchain executable:
  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
Target:
  x86_64-unknown-linux-gnu
rustc executable SHA-256:
  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
Probe source SHA-256:
  68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
Compiled probe SHA-256:
  f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
Frozen generated.lean SHA-256:
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9
Frozen modeling-input/manifest.json SHA-256:
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2
Approved Binary64ModelDefault.lean SHA-256 at the time of this record:
  03ae48fb631e6242bd21bf95d0481b66acae05f8cab343c7ab279b3c116538a3

Exact reproduction commands
---------------------------

Run from the repository root:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-probe.rs
  B=.trellis/scratch/binary64-probe
  "$R" --version --verbose
  sha256sum "$R"
  sha256sum "$P"
  "$R" --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$B"
  "$B"

Raw output
----------

  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
  rustc_sha256=162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  probe_sha256=68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
  binary_sha256=f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
  target_arch=x86_64
  mantissa_digits=53
  exponent_mask=7ff0000000000000
  mantissa_mask=000fffffffffffff
  nan=7ff8000000000000
  infinity=7ff0000000000000
  neg_infinity=fff0000000000000
  nan_category=Nan
  infinity_category=Infinite
  zero_category=Zero
  subnormal_category=Subnormal
  normal_category=Normal
  from_bits_to_bits=7ff0000000000001
  neg_payload_nan=fff0000000000001
  neg_zero=8000000000000000
  subnormal_tie_to_even_zero=0000000000000000
  subnormal_tie_to_even_two=0000000000000002
  normal_division=3fb999999999999a
  mul_negative_zero=8000000000000000
  div_negative_zero=8000000000000000
  div_negative_infinity=fff0000000000000
  mul_overflow=7ff0000000000000
  mul_zero_infinity_is_nan=true
  div_zero_zero_is_nan=true
  mul_nan_is_nan=true
  cast_2_pow_53=4340000000000000
  cast_2_pow_53_plus_1=4340000000000000

Pinned Rust library sources
---------------------------

The installed sources below belong to the same named toolchain. Their
SHA-256 identities are:

  core/src/primitive_docs.rs
    c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5
  core/src/num/f64.rs
    84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618
  core/src/clone.rs
    23f9cfc80347fde6b8457d46fbf7a2b8d9f34c8c58601b0b6f714ca2f6d1976b

The exact relevant text of core/src/primitive_docs.rs is:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The referenced primitive-f32 documentation supplies the common primitive
floating-point operation rules quoted next:

  /// - −0.0: IEEE 754 floating-point numbers have a bit that indicates their sign, so −0.0 is a
  ///   possible value. For comparison −0.0 = +0.0, but floating-point operations can carry
  ///   the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
  ///   a negative number rounded to a value smaller than a float can represent also produces −0.0.
  /// - [∞](#associatedconstant.INFINITY) and
  ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
  ///   like `1.0 / 0.0`.
  ///
  /// When a primitive operation (addition, subtraction, multiplication, or
  /// division) is performed on this type, the result is rounded according to the
  /// roundTiesToEven direction defined in IEEE 754-2008. That means:
  ///
  /// - The result is the representable value closest to the true value, if there
  ///   is a unique closest representable value.
  /// - If the true value is exactly half-way between two representable values,
  ///   the result is the one with an even least-significant binary digit.
  /// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
  ///   `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
  ///   true value's sign).

The same file explicitly separates arithmetic NaN choice from exact bitwise
operations; its exact relevant text is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.
  ///
  /// The following rules apply when a NaN value is returned from an arithmetic operation:
  /// - The result has a non-deterministic sign.
  /// - The quiet bit and payload are non-deterministically chosen from
  ///   the following set of options:
  ///
  ///   - **Preferred NaN**: The quiet bit is set and the payload is all-zero.
  ///   - **Quieting NaN propagation**: The quiet bit is set and the payload is copied from any input
  ///     operand that is a NaN. If the inputs and outputs do not have the same payload size (i.e., for
  ///     `as` casts), then
  ///     - If the output is smaller than the input, low-order bits of the payload get dropped.
  ///     - If the output is larger than the input, the payload gets filled up with 0s in the low-order
  ///       bits.
  ///   - **Unchanged NaN propagation**: The quiet bit and payload are copied from any input operand
  ///     that is a NaN. If the inputs and outputs do not have the same size (i.e., for `as` casts), the
  ///     same rules as for "quieting NaN propagation" apply, with one caveat: if the output is smaller
  ///     than the input, dropping the low-order bits may result in a payload of 0; a payload of 0 is not
  ///     possible with a signaling NaN (the all-0 significand encodes an infinity) so unchanged NaN
  ///     propagation cannot occur with some inputs.
  ///   - **Target-specific NaN**: The quiet bit is set and the payload is picked from a target-specific
  ///     set of "extra" possible NaN payloads. The set can depend on the input operand values.
  ///     See the table below for the concrete NaNs this set contains on various targets.
  ///
  /// | `target_arch` | Extra payloads possible on this platform |
  /// |---------------|------------------------------------------|
  /// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |

Thus the model's preferred quiet NaN is one permitted result whenever
multiplication or division returns NaN. This does not claim that arbitrary
Rust arithmetic NaNs have those exact bits. By contrast, unary negation and
bit conversion must preserve all non-sign bits exactly, including for every
NaN payload.

The exact relevant declarations in core/src/num/f64.rs are:

  pub const MANTISSA_DIGITS: u32 = 53;
  pub const NAN: f64 = 0.0_f64 / 0.0_f64;
  pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
  pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
  pub const SIGN_MASK: u64 = 0x8000_0000_0000_0000;
  pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;
  pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff;

  pub const fn classify(self) -> FpCategory {
      // We used to have complicated logic here that avoids the simple bit-based tests to work
      // around buggy codegen for x87 targets (see
      // https://github.com/rust-lang/rust/issues/114479). However, some LLVM versions later, none
      // of our tests is able to find any difference between the complicated and the naive
      // version, so now we are back to the naive version.
      let b = self.to_bits();
      match (b & Self::MANTISSA_MASK, b & Self::EXPONENT_MASK) {
          (0, Self::EXPONENT_MASK) => FpCategory::Infinite,
          (_, Self::EXPONENT_MASK) => FpCategory::Nan,
          (0, 0) => FpCategory::Zero,
          (_, 0) => FpCategory::Subnormal,
          _ => FpCategory::Normal,
      }
  }

  pub const fn to_bits(self) -> u64 {
      // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
      unsafe { mem::transmute(self) }
  }

  pub const fn from_bits(v: u64) -> Self {
      // It turns out the safety issues with sNaN were overblown! Hooray!
      // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
      unsafe { mem::transmute(v) }
  }

The exact scalar clone body in core/src/clone.rs is:

  impl const Clone for $t {
      #[inline(always)]
      fn clone(&self) -> Self {
          *self
      }
  }

Frozen adapted source
---------------------

The relevant retained source file hashes are:

  crate/traits.rs
    9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  crate/dec2flt/decimal.rs
    633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb
  crate/dec2flt/lemire.rs
    fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1
  crate/dec2flt/slow.rs
    93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485

The dispatcher excerpts below are reproduced from the identified file by
running these commands from the repository root:

  sha256sum crate/dec2flt/mod.rs
  sed -n '354,403p' crate/dec2flt/mod.rs
  sed -n '405,422p' crate/dec2flt/mod.rs
  sed -n '465,475p' crate/dec2flt/mod.rs
  sed -n '506,523p' crate/dec2flt/mod.rs

Exact constant and bit-conversion excerpt from crate/traits.rs:

  impl Float for f64 {
      type Int = u64;

      const INFINITY: Self = Self::INFINITY;
      const NEG_INFINITY: Self = Self::NEG_INFINITY;
      const NAN: Self = Self::NAN;
      // Bit-identical to the upstream `-f64::NAN`, without the unsupported
      // compile-time float negation.
      const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);

      const BITS: u32 = 64;
      const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
      const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
      const SIG_MASK: Self::Int = Self::MANTISSA_MASK;

      fn to_bits(self) -> Self::Int {
          self.to_bits()
      }

      fn classify(self) -> FpCategory {
          self.classify()
      }
  }

  impl FloatExt for f64 {
      #[inline]
      fn from_u64_bits(v: u64) -> Self {
          f64::from_bits(v)
      }

Exact derived-constant defaults from crate/traits.rs:

  /// The number of bits in the significand, *excluding* the hidden bit.
  const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;

  /// Number of bits in the exponent.
  const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

  /// The saturated (maximum bitpattern) value of the exponent, i.e. the infinite
  /// representation.
  ///
  /// This shifted fully right, use `EXP_MASK` for the shifted value.
  const EXP_SAT: u32 = (1 << Self::EXP_BITS) - 1;

  /// Signed version of `EXP_SAT` since we convert a lot.
  const INFINITE_POWER: i32 = Self::EXP_SAT as i32;

  /// The exponent bias value. This is also the maximum value of the exponent.
  const EXP_BIAS: u32 = Self::EXP_SAT >> 1;

  /// Minimum exponent value of normal values.
  const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Together with the f64-instance lines `BITS = 64` and
`SIG_TOTAL_BITS = Self::MANTISSA_DIGITS` in the preceding excerpt, these
defaults derive SIG_BITS, EXP_MIN, and INFINITE_POWER from the primitive
mantissa-digit constant rather than introducing independent parameters.

Exact asserted-conversion excerpt from crate/dec2flt/mod.rs:

  #[inline]
  // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
  // `charon::opaque` makes this entire asserted conversion external: both the
  // unchanged `debug_assert!` and the unchanged cast below are in the opaque
  // body. The callers, their fast-path guards, and their surrounding
  // computation remain mechanically visible. A corresponding model binding
  // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
  // exact binary64 conversion at or below that bound.
  #[charon::opaque]
  fn from_u64(v: u64) -> Self {
      debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
      v as _
  }

Here MAX_MANTISSA_FAST_PATH is the retained default 1 << 53.  The attribute is
attached to the function item, so the generated external stands for the whole
method, not merely the cast.  In the enabled-debug configuration the source
succeeds only when v <= 2^53; above it the assertion fails before the cast. On
the successful branch every integer is exactly representable, so the source
cast and the model rounder return the same word.

Exact power-table and assembly excerpts from crate/dec2flt/mod.rs:

  /// Maximum mantissa for the fast-path (`1 << 53` for f64).
  const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;

  const MAX_EXPONENT_FAST_PATH: i64 = 22;
  const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
  const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;

  fn pow10_fast_path(exponent: usize) -> Self {
      // These bit patterns are exactly the source table's rounded binary64
      // literals.  The match is the same masked lookup; it merely keeps float
      // constants out of Aeneas's unsupported constant interpreter.
      match exponent & 31 {
          0 => f64::from_bits(0x3FF0_0000_0000_0000),
          1 => f64::from_bits(0x4024_0000_0000_0000),
          2 => f64::from_bits(0x4059_0000_0000_0000),
          3 => f64::from_bits(0x408F_4000_0000_0000),
          4 => f64::from_bits(0x40C3_8800_0000_0000),
          5 => f64::from_bits(0x40F8_6A00_0000_0000),
          6 => f64::from_bits(0x412E_8480_0000_0000),
          7 => f64::from_bits(0x4163_12D0_0000_0000),
          8 => f64::from_bits(0x4197_D784_0000_0000),
          9 => f64::from_bits(0x41CD_CD65_0000_0000),
          10 => f64::from_bits(0x4202_A05F_2000_0000),
          11 => f64::from_bits(0x4237_4876_E800_0000),
          12 => f64::from_bits(0x426D_1A94_A200_0000),
          13 => f64::from_bits(0x42A2_309C_E540_0000),
          14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
          15 => f64::from_bits(0x430C_6BF5_2634_0000),
          16 => f64::from_bits(0x4341_C379_37E0_8000),
          17 => f64::from_bits(0x4376_3457_85D8_A000),
          18 => f64::from_bits(0x43AB_C16D_674E_C800),
          19 => f64::from_bits(0x43E1_58E4_6091_3D00),
          20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
          21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
          22 => f64::from_bits(0x4480_F0CF_064D_D592),
          _ => f64::from_bits(0),
      }
  }

  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

Exact native-call excerpt from crate/dec2flt/decimal.rs:

  fn can_use_fast_path<F: Lemire>(&self) -> bool {
      F::MIN_EXPONENT_FAST_PATH <= self.exponent
          && self.exponent <= F::MAX_EXPONENT_DISGUISED_FAST_PATH
          && self.mantissa <= F::MAX_MANTISSA_FAST_PATH
          && !self.many_digits
  }

  if !self.can_use_fast_path::<F>() {
      return None;
  }

  let value = if self.exponent <= F::MAX_EXPONENT_FAST_PATH {
      // normal fast path
      let value = F::from_u64(self.mantissa);
      if self.exponent < 0 {
          // Explicit trait calls preserve Rust arithmetic and resolve
          // the generic output type that Charon leaves ambiguous.
          core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
      } else {
          core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
      }
  } else {
      // disguised fast path
      let shift = self.exponent - F::MAX_EXPONENT_FAST_PATH;
      let mantissa = self.mantissa.checked_mul(INT_POW10[shift as usize])?;
      if mantissa > F::MAX_MANTISSA_FAST_PATH {
          return None;
      }
      core::ops::Mul::mul(
          F::from_u64(mantissa),
          F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
      )
  };

  if self.negative {
      Some(core::ops::Neg::neg(value))
  } else {
      Some(value)
  }

The preceding can_use_fast_path body, together with
MAX_MANTISSA_FAST_PATH = 1 << SIG_TOTAL_BITS and SIG_TOTAL_BITS = 53 for f64,
requires the exponent to lie between -22 and 37, the input mantissa to be at
most 2^53, and many_digits to be false. Consequently an ordinary arithmetic
call has a from_u64 operand in 0..=2^53. In its negative-exponent arm,
`-self.exponent` lies in 1..=22; in its nonnegative arm, `self.exponent` lies
in 0..=22. The disguised branch checks its multiplied mantissa against 2^53
before from_u64 and uses table index 22. The paired statement
Binary64NativeCallDomain does not assert this source reachability. It says
conditionally that a from_u64 argument at most 2^53 succeeds with a finite,
non-NaN word and that a table index at most 22 succeeds with a positive,
nonzero, finite, non-NaN word. Applying that conditional statement to the
guards just derived establishes those properties for the actual ordinary and
disguised calls, and in particular establishes that every executed divisor is
nonzero.

Exact special-value excerpt from crate/dec2flt/parse.rs:

  let float = match (register, len) {
      (INF_3, 3) => F::INFINITY,
      (INF_8, 8) => F::INFINITY,
      (NAN, 3) => F::NAN,
      _ => return None,
  };

  if negative { Some(-float) } else { Some(float) }

Thus the executed special route is INFINITY or NAN followed by conditional
negation; it does not select NEG_INFINITY or NEG_NAN directly.

The number helper has the exact source body

  pub fn parse_number(s: &[u8]) -> Option<Decimal> {
      if let Some((float, rest)) = parse_partial_number(s) {
          if rest == s.len() {
              return Some(float);
          }
      }
      None
  }

It returns only the Decimal produced by parse_partial_number; there is no
float type parameter or float operation at this boundary.

Exact dispatcher excerpts from crate/dec2flt/mod.rs
---------------------------------------------------

The entry of `dec2flt_with_trace` strips at most one leading sign, rejects
empty and sign-only inputs, calls `parse_number` on the unsigned body, and
calls `parse_inf_nan` only when `parse_number` returns `None`:

  /// Run the actual dispatcher while retaining its approved internal observations.
  pub fn dec2flt_with_trace<
      'a,
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {
          return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
      };
      let negative = c == b'-';
      if c == b'-' || c == b'+' {
          body = &body[1..];
      }
      if body.is_empty() {
          return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
      }

      let parse_number_result = parse_number(body);
      let parsed = match parse_number_result {
          Some(r) => r,
          None => {
              let parse_inf_nan_result = parse_inf_nan(body, negative);
              return match parse_inf_nan_result {
                  Some(value) => (
                      Ok(value),
                      Dec2FltTrace::Special {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                          result: value,
                      },
                  ),
                  None => (
                      Err(pfe_invalid()),
                      Dec2FltTrace::Invalid {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                      },
                  ),
              };
          }
      };

Thus every `Err` arm shown here returns before `parsed` is available and before
the native, integer, slow, assembly, or final-negation code below it can run.
On a numeric result, the lexical sign is copied into the parsed record before
the native attempt, whose successful result also returns before raw-pair
assembly:

      let mut num = parsed;
      num.negative = negative;
      if !cfg!(feature = "optimize_for_size") {
          let fast_path_result = num.try_fast_path::<F>();
          if let Some(value) = fast_path_result {
              return (
                  Ok(value),
                  Dec2FltTrace::FastPath {
                      body,
                      negative,
                      parse_number_result,
                      fast_path_input: num,
                      fast_path_result,
                      result: value,
                  },
              );
          }
      }

If the native attempt does not return, the selected raw pair is assembled and
the source then conditionally negates it according to the lexical-sign flag:

      let selected_pair = fp;
      // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
      // it neither changes the selected pair nor introduces a new branch or call.
      let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
      let assembly_result = biased_fp_to_float::<F>(fp);
      let lexical_sign_applied = num.negative;
      let result = if lexical_sign_applied {
          core::ops::Neg::neg(assembly_result)
      } else {
          assembly_result
      };

The public `dec2flt` executes that same route and returns its result projection;
it does not reimplement or reorder any parsing or float operation:

  /// Converts a decimal string into a floating point number.
  #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
  pub fn dec2flt<
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &str,
  ) -> Result<F, ParseFloatError> {
      // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
      // clause admits exactly the same instances and lets Charon resolve the
      // explicit, source-equivalent final negation.
      // The public function is now exactly the result projection of the single
      // instrumented implementation.  No conversion step is duplicated, and
      // discarding the trace cannot affect Rust evaluation or the returned bits.
      dec2flt_with_trace::<F>(s).0
  }

The integer-tier helper has the source type and exact executable excerpts
below (long explanatory comments are elided). In particular it returns a raw
BiasedFp and contains no from_u64 cast, primitive float multiplication,
division, negation, or from_bits call:

  pub fn compute_float<F: Float>(q: i64, mut w: u64) -> BiasedFp {
      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);
      let fp_error = BiasedFp::zero_pow2(-1);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if w == 0 || q < F::SMALLEST_POWER_OF_TEN as i64 {
          return fp_zero;
      } else if q > F::LARGEST_POWER_OF_TEN as i64 {
          return fp_inf;
      }
      // Normalize our significant digits, so the most-significant bit is set.
      let lz = w.leading_zeros();
      w <<= lz;
      let (lo, hi) = compute_product_approx(q, w, F::SIG_BITS as usize + 3);
      if lo == 0xFFFF_FFFF_FFFF_FFFF {
          let inside_safe_exponent = (q >= -27) && (q <= 55);
          if !inside_safe_exponent {
              return fp_error;
          }
      }
      let upperbit = (hi >> 63) as i32;
      let mut mantissa = hi >> (upperbit + 64 - F::SIG_BITS as i32 - 3);
      let mut power2 = power(q as i32) + upperbit - lz as i32 - F::EXP_MIN + 1;
      if power2 <= 0 {
          if -power2 + 1 >= 64 {
              // Have more than 64 bits below the minimum exponent, must be 0.
              return fp_zero;
          }
          // Have a subnormal value.
          mantissa >>= -power2 + 1;
          mantissa += mantissa & 1;
          mantissa >>= 1;
          power2 = (mantissa >= (1_u64 << F::SIG_BITS)) as i32;
          return BiasedFp { m: mantissa, p_biased: power2 };
      }
      // Need to handle rounding ties. Normally, we need to round up,
      // but if we fall right in between and we have an even basis, we
      // need to round down.
      if lo <= 1
          && q >= F::MIN_EXPONENT_ROUND_TO_EVEN as i64
          && q <= F::MAX_EXPONENT_ROUND_TO_EVEN as i64
          && mantissa & 0b11 == 0b01
          && (mantissa << (upperbit + 64 - F::SIG_BITS as i32 - 3)) == hi
      {
          // Zero the lowest bit, so we don't round up.
          mantissa &= !1_u64;
      }
      // Round-to-even, then shift the significant digits into place.
      mantissa += mantissa & 1;
      mantissa >>= 1;
      if mantissa >= (2_u64 << F::SIG_BITS) {
          // Rounding up overflowed, so the carry bit is set. Set the
          // mantissa to 1 (only the implicit, hidden bit is set) and
          // increase the exponent.
          mantissa = 1_u64 << F::SIG_BITS;
          power2 += 1;
      }
      // Zero out the hidden bit.
      mantissa &= !(1_u64 << F::SIG_BITS);
      if power2 >= F::INFINITE_POWER {
          // Exponent is above largest normal value, must be infinite.
          return fp_inf;
      }
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact slow-tier source body from crate/dec2flt/slow.rs:

  pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {
      const MAX_SHIFT: usize = 60;
      const NUM_POWERS: usize = 19;
      const POWERS: [u8; 19] =
          [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];

      let get_shift = |n| {
          if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }
      };

      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);

      let mut d = parse_decimal_seq(s);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if d.num_digits == 0 || d.decimal_point < -324 {
          return fp_zero;
      } else if d.decimal_point >= 310 {
          return fp_inf;
      }
      let mut exp2 = 0_i32;
      let mut loop_result = None;
      // Shift right toward (1/2 ... 1].
      while d.decimal_point > 0 && loop_result.is_none() {
          let n = d.decimal_point as usize;
          let shift = get_shift(n);
          d.right_shift(shift);
          if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_zero);
          } else {
              exp2 += shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // Shift left toward (1/2 ... 1].
      while d.decimal_point <= 0 && loop_result.is_none() {
          let shift = if d.decimal_point == 0 {
              match d.digits[0] {
                  digit if digit >= 5 => break,
                  0 | 1 => 2,
                  _ => 1,
              }
          } else {
              get_shift((-d.decimal_point) as _)
          };
          d.left_shift(shift);
          if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_inf);
          } else {
              exp2 -= shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
      exp2 -= 1;
      while F::EXP_MIN > exp2 {
          let mut n = (F::EXP_MIN - exp2) as usize;
          if n > MAX_SHIFT {
              n = MAX_SHIFT;
          }
          d.right_shift(n);
          exp2 += n as i32;
      }
      if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
          return fp_inf;
      }
      // Shift the decimal to the hidden bit, and then round the value
      // to get the high mantissa+1 bits.
      d.left_shift(F::SIG_BITS as usize + 1);
      let mut mantissa = d.round();
      if mantissa >= (1_u64 << (F::SIG_BITS + 1)) {
          // Rounding up overflowed to the carry bit, need to
          // shift back to the hidden bit.
          d.right_shift(1);
          exp2 += 1;
          mantissa = d.round();
          if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
              return fp_inf;
          }
      }
      let mut power2 = exp2 - F::EXP_MIN + 1;
      if mantissa < (1_u64 << F::SIG_BITS) {
          power2 -= 1;
      }
      // Zero out all the bits above the explicit mantissa bits.
      mantissa &= (1_u64 << F::SIG_BITS) - 1;
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact final numeric-sign excerpt from crate/dec2flt/mod.rs:

  let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
  let assembly_result = biased_fp_to_float::<F>(fp);
  let lexical_sign_applied = num.negative;
  let result = if lexical_sign_applied {
      core::ops::Neg::neg(assembly_result)
  } else {
      assembly_result
  };

Thus a numeric execution that reaches the integer/slow selection route
assembles its selected pair with from_bits through biased_fp_to_float and only
then conditionally negates it. A successful try_fast_path returns earlier and
does not perform this assembly. compute_float and parse_long_mantissa produce
raw BiasedFp pairs and do not call from_u64, primitive float multiplication,
division, negation, or from_bits; they do, however, execute constants derived
from SIG_TOTAL_BITS before producing those pairs.

Retained structural-boundary evidence
-------------------------------------

Several adjacent structural bindings cite this same evidence record. Their
pinned library source identities are:

  core/src/num/mod.rs
    f0820f9dfb94999440c8cb4a349736fa21df7e5668e19b6b49e016ff67c05ce3
  core/src/option.rs
    7cf61204b05d98a95bc2e322d5fbfc1f4f91505109971917d9a7fb47151c50e6
  core/src/slice/mod.rs
    354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840
  core/src/str/mod.rs
    284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78

Exact ASCII-digit body from core/src/num/mod.rs:

  pub const fn is_ascii_digit(&self) -> bool {
      matches!(*self, b'0'..=b'9')
  }

Exact Option control-flow bodies from core/src/option.rs:

  fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
      match self {
          Some(v) => ControlFlow::Continue(v),
          None => ControlFlow::Break(None),
      }
  }

  fn from_residual(residual: Option<convert::Infallible>) -> Self {
      match residual {
          None => None,
      }
  }

Exact slice observation bodies from core/src/slice/mod.rs:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

Exact string-byte body from core/src/str/mod.rs:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }
reference/model-evidence/binary64-probe.rs

Open file

#![feature(float_masks)]

use std::num::FpCategory;

fn bits(label: &str, value: f64) {
    println!("{label}={:016x}", value.to_bits());
}

fn main() {
    println!("target_arch={}", std::env::consts::ARCH);
    println!("mantissa_digits={}", f64::MANTISSA_DIGITS);
    println!("exponent_mask={:016x}", f64::EXPONENT_MASK);
    println!("mantissa_mask={:016x}", f64::MANTISSA_MASK);
    bits("nan", f64::NAN);
    bits("infinity", f64::INFINITY);
    bits("neg_infinity", f64::NEG_INFINITY);

    for (label, value) in [
        ("nan_category", f64::NAN),
        ("infinity_category", f64::INFINITY),
        ("zero_category", 0.0),
        ("subnormal_category", f64::from_bits(1)),
        ("normal_category", 1.0),
    ] {
        let category = match value.classify() {
            FpCategory::Nan => "Nan",
            FpCategory::Infinite => "Infinite",
            FpCategory::Zero => "Zero",
            FpCategory::Subnormal => "Subnormal",
            FpCategory::Normal => "Normal",
        };
        println!("{label}={category}");
    }

    let payload_nan_word = 0x7ff0_0000_0000_0001_u64;
    println!(
        "from_bits_to_bits={:016x}",
        f64::from_bits(payload_nan_word).to_bits()
    );
    bits("neg_payload_nan", -f64::from_bits(payload_nan_word));
    bits("neg_zero", -0.0);

    bits("subnormal_tie_to_even_zero", f64::from_bits(1) * 0.5);
    bits("subnormal_tie_to_even_two", f64::from_bits(3) * 0.5);
    bits("normal_division", 1.0 / 10.0);
    bits("mul_negative_zero", -0.0 * 2.0);
    bits("div_negative_zero", -1.0 / f64::INFINITY);
    bits("div_negative_infinity", 1.0 / -0.0);
    bits("mul_overflow", f64::MAX * (1.0 + f64::EPSILON));
    println!("mul_zero_infinity_is_nan={}", (0.0 * f64::INFINITY).is_nan());
    println!("div_zero_zero_is_nan={}", (0.0_f64 / 0.0_f64).is_nan());
    println!("mul_nan_is_nan={}", (f64::NAN * 1.0).is_nan());

    bits("cast_2_pow_53", (1_u64 << 53) as f64);
    bits("cast_2_pow_53_plus_1", ((1_u64 << 53) + 1) as f64);
}
reference/model-evidence/native-boundary.txt

Open file

Native boundary inventory for Binary64Model

Reproduction command (repository root):
  python3 .trellis/scripts/pv_modeling.py inspect-native .

Tool identity for this reproduction:
  Python 3.14.4
  .trellis/scripts/pv_modeling.py
  sha256 915b29822cb4c47b70dabb1dc011514641deb2e428b62347fc31aa898de5e0d4

Top-level result:
  declaration_count: 24

The complete raw inspect-native records for the fourteen F64 externals follow.
They are copied from the command's complete index; no scratch artifact is needed
to review them.

[
  {
    "name": "F64.Insts.CoreCloneClone.clone",
    "extracted_signature": ": F64 → Result F64",
    "rust_symbol": "core::clone::impls::{impl core::clone::Clone for f64}::clone",
    "raw_declaration_sha256": "5eaad5fb9af034045cf0dafed5af85445fe4af9a78958259a15a1faddd1e8f05",
    "source_utf8": "/-- [core::clone::impls::{impl core::clone::Clone for f64}::clone]:\n    Source: '/rustc/library/core/src/clone.rs', lines 698:20-698:43\n    Name pattern: [core::clone::impls::{core::clone::Clone<f64>}::clone]\n    Visibility: public -/\n@[rust_fun \"core::clone::impls::{core::clone::Clone<f64>}::clone\"]\naxiom F64.Insts.CoreCloneClone.clone : F64 → Result F64\n"
  },
  {
    "name": "core.f64.F64.MANTISSA_DIGITS",
    "extracted_signature": ": Result Std.U32",
    "rust_symbol": "core::f64::{f64}::MANTISSA_DIGITS",
    "raw_declaration_sha256": "42b1b0c4d2c2bbc7271748fc78c518391f55bf6517c643667a6561a0ac6e771c",
    "source_utf8": "/-- [core::f64::{f64}::MANTISSA_DIGITS]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 412:4-412:34\n    Name pattern: [core::f64::{f64}::MANTISSA_DIGITS]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::MANTISSA_DIGITS\"]\naxiom core.f64.F64.MANTISSA_DIGITS : Result Std.U32\n"
  },
  {
    "name": "core.f64.F64.NAN",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::NAN",
    "raw_declaration_sha256": "a18685a80db5dbebe39151c7375a0470bb3905fe1228e5598a995a1cf017a768",
    "source_utf8": "/-- [core::f64::{f64}::NAN]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 509:4-509:22\n    Name pattern: [core::f64::{f64}::NAN]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::NAN\"] axiom core.f64.F64.NAN : Result F64\n"
  },
  {
    "name": "core.f64.F64.INFINITY",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::INFINITY",
    "raw_declaration_sha256": "f905901e67400987f49cddd13a8768644bed9e7e3f79c3a81b34879f494a2816",
    "source_utf8": "/-- [core::f64::{f64}::INFINITY]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 512:4-512:27\n    Name pattern: [core::f64::{f64}::INFINITY]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::INFINITY\"]\naxiom core.f64.F64.INFINITY : Result F64\n"
  },
  {
    "name": "core.f64.F64.NEG_INFINITY",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::NEG_INFINITY",
    "raw_declaration_sha256": "85f6e517e439c2f2d5c59aa29884ff38b2381c2f5dd7cb14e7947b232efe7f0e",
    "source_utf8": "/-- [core::f64::{f64}::NEG_INFINITY]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 515:4-515:31\n    Name pattern: [core::f64::{f64}::NEG_INFINITY]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::NEG_INFINITY\"]\naxiom core.f64.F64.NEG_INFINITY : Result F64\n"
  },
  {
    "name": "core.f64.F64.EXPONENT_MASK",
    "extracted_signature": ": Result Std.U64",
    "rust_symbol": "core::f64::{f64}::EXPONENT_MASK",
    "raw_declaration_sha256": "f1054e64392d8f9306e8c69015f0b521d9f387edda8458a3bae4773606f46a71",
    "source_utf8": "/-- [core::f64::{f64}::EXPONENT_MASK]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 615:4-615:32\n    Name pattern: [core::f64::{f64}::EXPONENT_MASK]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::EXPONENT_MASK\"]\naxiom core.f64.F64.EXPONENT_MASK : Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.MANTISSA_MASK",
    "extracted_signature": ": Result Std.U64",
    "rust_symbol": "core::f64::{f64}::MANTISSA_MASK",
    "raw_declaration_sha256": "dc3517faa141b7a7a016e9f73930af3c9af23d3e6d06874440d99eabbc846538",
    "source_utf8": "/-- [core::f64::{f64}::MANTISSA_MASK]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 637:4-637:32\n    Name pattern: [core::f64::{f64}::MANTISSA_MASK]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::MANTISSA_MASK\"]\naxiom core.f64.F64.MANTISSA_MASK : Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.classify",
    "extracted_signature": ": F64 → Result core.num.FpCategory",
    "rust_symbol": "core::f64::{f64}::classify",
    "raw_declaration_sha256": "9fedd442d1d0403c4a7323d8f4e95c51b8bd39bf82d2d0ba357eaaf243e69b78",
    "source_utf8": "/-- [core::f64::{f64}::classify]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 782:4-782:45\n    Name pattern: [core::f64::{f64}::classify]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::classify\"]\naxiom core.f64.F64.classify : F64 → Result core.num.FpCategory\n"
  },
  {
    "name": "core.f64.F64.to_bits",
    "extracted_signature": ": F64 → Result Std.U64",
    "rust_symbol": "core::f64::{f64}::to_bits",
    "raw_declaration_sha256": "ddaec6bb7c36ba6445a5b0b8e52f841240ca2563004e8ce1255caf0e36ec22ae",
    "source_utf8": "/-- [core::f64::{f64}::to_bits]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 1223:4-1223:37\n    Name pattern: [core::f64::{f64}::to_bits]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::to_bits\"]\naxiom core.f64.F64.to_bits : F64 → Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.from_bits",
    "extracted_signature": ": Std.U64 → Result F64",
    "rust_symbol": "core::f64::{f64}::from_bits",
    "raw_declaration_sha256": "af8ee4387cea97d0a353a83d6280c03f3c9f739bf733af5bd39c29909f1b2b19",
    "source_utf8": "/-- [core::f64::{f64}::from_bits]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 1269:4-1269:42\n    Name pattern: [core::f64::{f64}::from_bits]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::from_bits\"]\naxiom core.f64.F64.from_bits : Std.U64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithMulF64F64.mul",
    "extracted_signature": ": F64 → F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Mul<f64, f64> for f64}::mul",
    "raw_declaration_sha256": "20d985819a981e9e80485ce169c1d045ea13fa8796e9314d5b621141aae6deec",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Mul<f64, f64> for f64}::mul]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 350:12-350:41\n    Name pattern: [core::ops::arith::{core::ops::arith::Mul<f64, f64, f64>}::mul]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Mul<f64, f64, f64>}::mul\"]\naxiom F64.Insts.CoreOpsArithMulF64F64.mul : F64 → F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithDivF64F64.div",
    "extracted_signature": ": F64 → F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Div<f64, f64> for f64}::div",
    "raw_declaration_sha256": "1ebb67b412d89328acb4c5dd53168e84fdf26be6cbe1ef49f5a27edbd84ada36",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Div<f64, f64> for f64}::div]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 515:12-515:41\n    Name pattern: [core::ops::arith::{core::ops::arith::Div<f64, f64, f64>}::div]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Div<f64, f64, f64>}::div\"]\naxiom F64.Insts.CoreOpsArithDivF64F64.div : F64 → F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithNegF64.neg",
    "extracted_signature": ": F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Neg<f64> for f64}::neg",
    "raw_declaration_sha256": "bbf93f24bd7cfbc72e47e8bb3a9acc6641df939ad6afafd9ba02c81fe27f7ed0",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Neg<f64> for f64}::neg]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 719:12-719:30\n    Name pattern: [core::ops::arith::{core::ops::arith::Neg<f64, f64>}::neg]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Neg<f64, f64>}::neg\"]\naxiom F64.Insts.CoreOpsArithNegF64.neg : F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64",
    "extracted_signature": ": Std.U64 → Result F64",
    "rust_symbol": "dec2flt_model::num::imp::dec2flt::{impl dec2flt_model::num::imp::dec2flt::Lemire<u64> for f64}::from_u64",
    "raw_declaration_sha256": "ad172bce0522e7e41bceb8c66a5adff962822ee8a9454dfd59b7019086797ba8",
    "source_utf8": "/-- [dec2flt_model::num::imp::dec2flt::{impl dec2flt_model::num::imp::dec2flt::Lemire<u64> for f64}::from_u64]:\n    Source: 'num/imp/../../dec2flt/mod.rs', lines 263:4-266:5\n    Visibility: public -/\naxiom F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64\n  : Std.U64 → Result F64\n"
  }
]
reference/model-evidence/setup-reproduction.txt

Open file

Fresh extraction and composition evidence for Preamble
======================================================

Scope
-----

This record identifies the preparation evidence frozen with this reopened
repository and records the model-support composition reproduced on 2026-09-24.
It is evidence about source, extraction, and composition, not evidence that any
supplied GOAL is true.

Pinned configuration and tools
------------------------------

modeling-input/extraction.json selects the single library crate `crate` with
empty Cargo, Charon, and Aeneas argument lists.  crate/Cargo.toml gives the
`default` feature an empty definition, leaves `optimize_for_size` disabled,
uses the development profile, and explicitly enables overflow checks.
extraction-evidence/COMMAND.json records target x86_64-unknown-linux-gnu,
nightly-2026-06-01, debug assertions, overflow checks, unwind panic handling,
64-bit pointers, and SSE2.

modeling-input/tool-identities.json pins these six executables by SHA-256:

  cargo   54e05dce8c9ca2f638cc3d87ec1a19425b5d0bf1f31aeb48cf4792aec5cadf27
  rustc   162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  rustdoc 2bf660d140310e28146e2c002dc6fcabd957c0a3b740be0419e6f8e5a9c87523
  Charon  6490034f368ce98f3e7ae5a28bf71ed56d03bdf1e3712e71376b96fc55baeade
  Aeneas  9f446d2aaf59e8e705e36d05cb993f1c6ab0e97f8dc6fd2f19907a86ede30922
  Lean    3e0d0d3d801675359f2d4cf9815bfdb417b20b92fdd9d48b3b14c95bbae28bbf

Fresh extraction
----------------

The authoritative reproduction command in modeling-input/manifest.json is:

  python3 .trellis/scripts/pv_modeling.py check-native . --fresh

extraction-evidence/COMMAND.json records the exact argv, environment, and
working directory for every step.  extraction-evidence/RESULT.json records
exit status 0 for rustc identity, Charon/Cargo extraction, Cargo metadata,
Cargo cfg, and Aeneas.  Its primary run produced generated Lean SHA-256:

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9

The same digest is recorded for both `audited_sha256` and `native_sha256` in
modeling-input/manifest.json, whose `byte_identical` field is true, and is the
digest of this repository's generated.lean.  The manifest's accepted setup and
adaptation audits record the successful uncached Cargo, Charon, and Aeneas
checks, the absence of source placeholders, and the exact 24-external native
boundary.  In particular, the corrected source basis is:

  c42107d27bc47c02e4beb4d6db4c47879aecb68a175ab67f7e6c5d5e866a2402c06583f9e94b467095cf9aff1a26a4857650ace006061c1ca5e4c441747ef622

The pinned compatibility report modeling-input/axiom-compatibility.json has
SHA-256

  473825c0fe635e1abc7a734a2035f5df20ed4fe7053403ef2fb6833d7101a016

and checks 2,225 declarations.  It reports no unapproved axiom.  Its only
pending group contains 64 declarations downstream of the absent raw F64
carrier and external operations, exactly the boundary supplied by the authored
model-support layer; the raw extractor output contains no proof placeholder.

External boundary
-----------------

The reproducible command

  python3 .trellis/scripts/pv_modeling.py inspect-native .

returns exactly 24 declarations: fourteen F64 operations, four U64 bit
operations, and six byte/Option/slice/string operations.  Their complete
records are retained in reference/model-evidence/native-boundary.txt and the
structural-operation evidence files.  Tablet/model-support.json has exactly
one exact-signature binding for each declaration.  The whole opaque
`Lemire::from_u64` method has raw declaration SHA-256

  ad172bce0522e7e41bceb8c66a5adff962822ee8a9454dfd59b7019086797ba8

and covers source lines 263:4-266:5, including both the debug assertion and
the conversion.  It is not a cast-only boundary.

Composition and elaboration
---------------------------

After installing all 24 bindings, the exact command

  python3 .trellis/scripts/pv_modeling.py compose-native . --check

returned `matches=true`, `changed=false`, no mismatched files, raw extraction
hash

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9

and equal expected and actual Preamble hashes

  2bf9c25b895e20dd9efe782ae173e2b07b55020eed41a7d9b63b2ae9e1db007c.

The receipt reports 24 bindings, 47 authored definitions, and 170 extracted
modules.  Finally,

  python3 .trellis/scripts/check.py tablet

checked all 236 registered nodes against this composition and exited 0.  This
establishes complete composition and elaboration while leaving the 32 principal
GOAL proofs open for argument development as required.
reference/model-evidence/source-adaptation-delta.diff

Open file

--- upstream/dec2flt/common.rs
+++ crate/dec2flt/common.rs
@@ -14,4 +13,0 @@
-    /// Iteratively parse and consume digits from bytes.
-    ///
-    /// Returns the same bytes with consumed digits being elided. Breaks on invalid digits.
-    fn parse_digits(&self, func: impl FnMut(u8)) -> &Self;
@@ -38,16 +33,0 @@
-    #[inline]
-    fn parse_digits(&self, mut func: impl FnMut(u8)) -> &Self {
-        let mut s = self;
-
-        while let Some((c, rest)) = s.split_first() {
-            let c = c.wrapping_sub(b'0');
-            if c < 10 {
-                func(c);
-                s = rest;
-            } else {
-                break;
-            }
-        }
-
-        s
-    }
@@ -68 +48,4 @@
-#[derive(Debug, Copy, Clone, PartialEq, Eq, Default)]
+// Debug output is not an accepted public or trace observation.  Removing only
+// that implementation preserves the fields, computational derives, and every
+// algorithm operation independently of GOAL truth.
+#[derive(Copy, Clone, PartialEq, Eq, Default)]
--- upstream/dec2flt/decimal.rs
+++ crate/dec2flt/decimal.rs
@@ -28 +28,4 @@
-#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
+// Debug output is absent from the accepted observations.  Removing only that
+// implementation leaves all fields, computational derives, and parser
+// operations unchanged independently of GOAL truth.
+#[derive(Clone, Copy, Default, PartialEq, Eq)]
@@ -56 +59,11 @@
-    pub fn try_fast_path<F: Lemire>(&self) -> Option<F> {
+    pub fn try_fast_path<
+        F: Lemire
+            + core::ops::Div<Output = F>
+            + core::ops::Mul<Output = F>
+            + core::ops::Neg<Output = F>,
+    >(
+        &self,
+    ) -> Option<F> {
+        // `Lemire` already entails these three operator bounds through
+        // `Float`; spelling them directly changes no admitted type.  Charon
+        // needs the direct clauses to resolve each explicit call's `Output`.
@@ -73 +86,3 @@
-                value / F::pow10_fast_path((-self.exponent) as _)
+                // Explicit trait calls preserve Rust arithmetic and resolve
+                // the generic output type that Charon leaves ambiguous.
+                core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
@@ -75 +90 @@
-                value * F::pow10_fast_path(self.exponent as _)
+                core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
@@ -84 +99,4 @@
-            F::from_u64(mantissa) * F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _)
+            core::ops::Mul::mul(
+                F::from_u64(mantissa),
+                F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
+            )
@@ -87 +105,5 @@
-        if self.negative { Some(-value) } else { Some(value) }
+        if self.negative {
+            Some(core::ops::Neg::neg(value))
+        } else {
+            Some(value)
+        }
--- upstream/dec2flt/decimal_seq.rs
+++ crate/dec2flt/decimal_seq.rs
@@ -17 +17,4 @@
-#[derive(Clone, Debug, PartialEq)]
+// Debug output is absent from the accepted observations.  Removing only that
+// implementation preserves the representation, Clone/PartialEq behavior, and
+// every fallback operation independently of GOAL truth.
+#[derive(Clone, PartialEq)]
@@ -176 +179,2 @@
-        while (n >> shift) == 0 {
+        let mut all_zero = false;
+        while (n >> shift) == 0 && !all_zero {
@@ -181 +185,4 @@
-                return;
+                // The source returns here from inside the loop.  Recording the
+                // condition and returning immediately after the loop executes
+                // no intervening operation and preserves the unchanged value.
+                all_zero = true;
@@ -189,0 +197,3 @@
+        if all_zero {
+            return;
+        }
@@ -220,0 +231,51 @@
+// This is exactly the source reverse scan over the already-consumed prefix.
+// It is separate because Aeneas cannot join the loop while `parse_decimal_seq`
+// retains its other slice borrows.  The downward index has the same visitation
+// order and counts precisely the same zero bytes while ignoring dots.
+fn count_trailing_zeros(start: &[u8], consumed_len: usize) -> usize {
+    let mut n_trailing_zeros = 0;
+    let mut i = consumed_len;
+    let mut scanning = true;
+    while i != 0 && scanning {
+        let c = start[i - 1];
+        if c == b'0' || c == b'.' {
+            i -= 1;
+            if c == b'0' {
+                n_trailing_zeros += 1;
+            }
+        } else {
+            scanning = false;
+        }
+    }
+    n_trailing_zeros
+}
+
+// Equivalent to `ByteSlice::parse_digits(|digit| d.try_add_digit(digit))`.
+// An explicit index keeps the closure's mutable borrow out of the enclosing
+// parser context while retaining the same wrapping digit test and updates.
+fn parse_digits_into_seq<'a>(s: &'a [u8], d: &mut DecimalSeq) -> &'a [u8] {
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
+        d.try_add_digit(digit);
+        count += 1;
+    }
+    &s[count..]
+}
+
+// Equivalent to the source exponent `parse_digits` closure.  Bytes after the
+// first nondigit were ignored by the caller, so only the accumulated value is
+// returned; the 0x10000 guard and wrapping digit classification are identical.
+fn parse_decimal_exponent(s: &[u8]) -> i32 {
+    let mut exp_num = 0;
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
+        if exp_num < 0x10000 {
+            exp_num = 10 * exp_num + digit as i32;
+        }
+        count += 1;
+    }
+    exp_num
+}
+
@@ -226,2 +287,5 @@
-    while let Some((&b'0', s_next)) = s.split_first() {
-        s = s_next;
+    // Aeneas rejects the literal-pattern `while let`; this loop performs the
+    // same nonempty check, byte comparison, and one-byte consumption in the
+    // same order, with identical slice bounds.
+    while !s.is_empty() && s[0] == b'0' {
+        s = &s[1..];
@@ -230 +294 @@
-    s = s.parse_digits(|digit| d.try_add_digit(digit));
+    s = parse_digits_into_seq(s, &mut d);
@@ -232,2 +296,2 @@
-    if let Some((b'.', s_next)) = s.split_first() {
-        s = s_next;
+    if !s.is_empty() && s[0] == b'.' {
+        s = &s[1..];
@@ -237,2 +301,4 @@
-            while let Some((&b'0', s_next)) = s.split_first() {
-                s = s_next;
+            // As above, this is the source leading-zero loop written in the
+            // indexed form accepted by Aeneas.
+            while !s.is_empty() && s[0] == b'0' {
+                s = &s[1..];
@@ -250 +316 @@
-        s = s.parse_digits(|digit| d.try_add_digit(digit));
+        s = parse_digits_into_seq(s, &mut d);
@@ -256,8 +322,5 @@
-        let mut n_trailing_zeros = 0;
-        for &c in start[..(start.len() - s.len())].iter().rev() {
-            if c == b'0' {
-                n_trailing_zeros += 1;
-            } else if c != b'.' {
-                break;
-            }
-        }
+        let consumed_len = start.len() - s.len();
+        // Walking an index downward visits exactly the same bytes as
+        // `.iter().rev()` and stops on the same first nonzero nondot byte.  It
+        // also avoids the missing extracted `Iterator::rev` library field.
+        let n_trailing_zeros = count_trailing_zeros(start, consumed_len);
@@ -273 +336,4 @@
-    if let Some((&ch, s_next)) = s.split_first() {
+    // Indexed tests preserve `split_first`'s nonempty guard and byte order but
+    // avoid the loop-context joins Aeneas creates for nested slice patterns.
+    if !s.is_empty() {
+        let ch = s[0];
@@ -275,4 +341,7 @@
-            s = s_next;
-            let mut neg_exp = false;
-            if let Some((&ch, s_next)) = s.split_first() {
-                neg_exp = ch == b'-';
+            s = &s[1..];
+            let mut exp_sign = 1_i32;
+            if !s.is_empty() {
+                let ch = s[0];
+                if ch == b'-' {
+                    exp_sign = -1;
+                }
@@ -280 +349 @@
-                    s = s_next;
+                    s = &s[1..];
@@ -283,7 +352 @@
-            let mut exp_num = 0_i32;
-
-            s.parse_digits(|digit| {
-                if exp_num < 0x10000 {
-                    exp_num = 10 * exp_num + digit as i32;
-                }
-            });
+            let exp_num = parse_decimal_exponent(s);
@@ -291 +354,4 @@
-            d.decimal_point += if neg_exp { -exp_num } else { exp_num };
+            // `exp_num` is bounded by the source's 0x10000 guard, so this
+            // multiplication cannot overflow and equals the original Boolean
+            // choice between `-exp_num` and `exp_num` under checked arithmetic.
+            d.decimal_point += exp_sign * exp_num;
--- upstream/dec2flt/mod.rs
+++ crate/dec2flt/mod.rs
@@ -90 +90 @@
-use common::BiasedFp;
+pub use common::BiasedFp;
@@ -118,4 +118 @@
-    const MAX_EXPONENT_FAST_PATH: i64 = {
-        let log2_5 = f64::consts::LOG2_10 - 1.0;
-        (Self::SIG_TOTAL_BITS as f64 / log2_5) as i64
-    };
+    const MAX_EXPONENT_FAST_PATH: i64;
@@ -128,2 +125 @@
-    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 =
-        Self::MAX_EXPONENT_FAST_PATH + (Self::SIG_TOTAL_BITS as f64 / f64::consts::LOG2_10) as i64;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64;
@@ -144,0 +141,4 @@
+// The f16 Lemire instance is outside the exclusively f64 scope. Disabling it
+// leaves every retained f64 parser/helper/trace body, native decision, checked
+// operation, debug assertion, return value, and accepted observation unchanged.
+#[cfg(any())]
@@ -145,0 +146,7 @@
+    // These are the exact integer results of the upstream compile-time float
+    // formulae for `SIG_TOTAL_BITS = 11`: floor(11/log2(5)) = 4 and
+    // 4 + floor(11/log2(10)) = 7.  Concrete integers avoid unsupported const
+    // float arithmetic without changing either fast-path guard.
+    const MAX_EXPONENT_FAST_PATH: i64 = 4;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 7;
+
@@ -147,3 +154,11 @@
-        #[allow(clippy::use_self)]
-        const TABLE: [f16; 8] = [1e0, 1e1, 1e2, 1e3, 1e4, 0.0, 0.0, 0.];
-        TABLE[exponent & 7]
+        // Each integer is the exact IEEE encoding of the corresponding
+        // upstream table literal; the masked lookup and fallback zeros are
+        // unchanged.  Aeneas cannot translate arrays containing float values.
+        match exponent & 7 {
+            0 => f16::from_bits(0x3C00),
+            1 => f16::from_bits(0x4900),
+            2 => f16::from_bits(0x5640),
+            3 => f16::from_bits(0x63D0),
+            4 => f16::from_bits(0x70E2),
+            _ => f16::from_bits(0),
+        }
@@ -152,0 +168,4 @@
+    // This method is exactly the upstream primitive `u64 as f16` conversion.
+    // Charon extracts the cast, but Aeneas reports it unreachable; making only
+    // this primitive boundary opaque preserves all guards and dispatcher logic.
+    #[charon::opaque]
@@ -158,0 +178,4 @@
+// The f32 Lemire instance is likewise unused by the retained f64
+// specialization, so disabling it cannot affect any retained body or observed
+// f64 execution independently of the correctness GOALs.
+#[cfg(any())]
@@ -159,0 +183,4 @@
+    // Exact upstream formula results for `SIG_TOTAL_BITS = 24`.
+    const MAX_EXPONENT_FAST_PATH: i64 = 10;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 17;
+
@@ -161,4 +188,16 @@
-        #[allow(clippy::use_self)]
-        const TABLE: [f32; 16] =
-            [1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 0., 0., 0., 0., 0.];
-        TABLE[exponent & 15]
+        // Bit constructors preserve the exact table values and masked lookup,
+        // while avoiding Aeneas's unsupported float-valued array constants.
+        match exponent & 15 {
+            0 => f32::from_bits(0x3F80_0000),
+            1 => f32::from_bits(0x4120_0000),
+            2 => f32::from_bits(0x42C8_0000),
+            3 => f32::from_bits(0x447A_0000),
+            4 => f32::from_bits(0x461C_4000),
+            5 => f32::from_bits(0x47C3_5000),
+            6 => f32::from_bits(0x4974_2400),
+            7 => f32::from_bits(0x4B18_9680),
+            8 => f32::from_bits(0x4CBE_BC20),
+            9 => f32::from_bits(0x4E6E_6B28),
+            10 => f32::from_bits(0x5015_02F9),
+            _ => f32::from_bits(0),
+        }
@@ -167,0 +207,4 @@
+    // This is exactly the source `u64 as f32` conversion.  The narrow opaque
+    // boundary is required because Aeneas rejects the primitive cast itself;
+    // its input guard and every caller remain transparent.
+    #[charon::opaque]
@@ -174,0 +218,4 @@
+    // Exact upstream formula results for `SIG_TOTAL_BITS = 53`.
+    const MAX_EXPONENT_FAST_PATH: i64 = 22;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;
+
@@ -176,5 +223,29 @@
-        const TABLE: [f64; 32] = [
-            1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13, 1e14, 1e15,
-            1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22, 0., 0., 0., 0., 0., 0., 0., 0., 0.,
-        ];
-        TABLE[exponent & 31]
+        // These bit patterns are exactly the source table's rounded binary64
+        // literals.  The match is the same masked lookup; it merely keeps float
+        // constants out of Aeneas's unsupported constant interpreter.
+        match exponent & 31 {
+            0 => f64::from_bits(0x3FF0_0000_0000_0000),
+            1 => f64::from_bits(0x4024_0000_0000_0000),
+            2 => f64::from_bits(0x4059_0000_0000_0000),
+            3 => f64::from_bits(0x408F_4000_0000_0000),
+            4 => f64::from_bits(0x40C3_8800_0000_0000),
+            5 => f64::from_bits(0x40F8_6A00_0000_0000),
+            6 => f64::from_bits(0x412E_8480_0000_0000),
+            7 => f64::from_bits(0x4163_12D0_0000_0000),
+            8 => f64::from_bits(0x4197_D784_0000_0000),
+            9 => f64::from_bits(0x41CD_CD65_0000_0000),
+            10 => f64::from_bits(0x4202_A05F_2000_0000),
+            11 => f64::from_bits(0x4237_4876_E800_0000),
+            12 => f64::from_bits(0x426D_1A94_A200_0000),
+            13 => f64::from_bits(0x42A2_309C_E540_0000),
+            14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
+            15 => f64::from_bits(0x430C_6BF5_2634_0000),
+            16 => f64::from_bits(0x4341_C379_37E0_8000),
+            17 => f64::from_bits(0x4376_3457_85D8_A000),
+            18 => f64::from_bits(0x43AB_C16D_674E_C800),
+            19 => f64::from_bits(0x43E1_58E4_6091_3D00),
+            20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
+            21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
+            22 => f64::from_bits(0x4480_F0CF_064D_D592),
+            _ => f64::from_bits(0),
+        }
@@ -183,0 +255,8 @@
+    // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
+    // `charon::opaque` makes this entire asserted conversion external: both the
+    // unchanged `debug_assert!` and the unchanged cast below are in the opaque
+    // body. The callers, their fast-path guards, and their surrounding
+    // computation remain mechanically visible. A corresponding model binding
+    // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
+    // exact binary64 conversion at or below that bound.
+    #[charon::opaque]
@@ -209,5 +288,80 @@
-/// Converts a decimal string into a floating point number.
-#[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
-pub fn dec2flt<F: Lemire>(s: &str) -> Result<F, ParseFloatError> {
-    let mut s = s.as_bytes();
-    let Some(&c) = s.first() else { return Err(pfe_empty()) };
+/// Observable control-flow record for a dispatcher execution.
+///
+/// These variants add no decisions to the conversion: each stores values
+/// already computed at the corresponding source branch.  In particular, the
+/// first component returned by `dec2flt_with_trace` is the ordinary parser
+/// result, so projecting it preserves every public source observation without
+/// assuming any correctness goal.
+pub enum Dec2FltTrace<'a, F> {
+    /// The original string was empty; no helper was called.
+    EmptyInput,
+    /// Removing one lexical sign left an empty body; no helper was called.
+    SignOnly { body: &'a [u8], negative: bool },
+    /// Both lexical helpers returned `None`; no raw pair was selected.
+    Invalid {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        parse_inf_nan_result: Option<F>,
+    },
+    /// The special helper supplied the directly returned value; no pair was selected.
+    Special {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        parse_inf_nan_result: Option<F>,
+        result: F,
+    },
+    /// The ordinary native shortcut supplied the directly returned value.
+    FastPath {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        fast_path_input: decimal::Decimal,
+        fast_path_result: Option<F>,
+        result: F,
+    },
+    /// The integer/slow path selected and assembled one raw pair.
+    Assembled(Dec2FltAssemblyTrace<'a, F>),
+}
+
+/// Full observation record for the dispatcher path that performs final assembly.
+pub struct Dec2FltAssemblyTrace<'a, F> {
+    pub body: &'a [u8],
+    pub negative: bool,
+    pub parse_number_result: Option<decimal::Decimal>,
+    pub fast_path_input: decimal::Decimal,
+    pub fast_path_result: Option<F>,
+    pub first_compute_exponent: i64,
+    pub first_compute_mantissa: u64,
+    pub first_compute_result: BiasedFp,
+    pub second_compute_guard: bool,
+    pub second_compute_exponent: Option<i64>,
+    pub second_compute_mantissa: Option<u64>,
+    pub second_compute_result: Option<BiasedFp>,
+    pub second_equals_first: Option<bool>,
+    pub forced_deferral: bool,
+    pub post_comparison_pair: BiasedFp,
+    pub slow_path_guard: bool,
+    pub slow_path_result: Option<BiasedFp>,
+    pub selected_pair: BiasedFp,
+    pub assembled_word: u64,
+    pub assembly_result: F,
+    pub lexical_sign_applied: bool,
+    pub result: F,
+}
+
+/// Run the actual dispatcher while retaining its approved internal observations.
+pub fn dec2flt_with_trace<
+    'a,
+    F: Lemire
+        + core::ops::Div<Output = F>
+        + core::ops::Mul<Output = F>
+        + core::ops::Neg<Output = F>,
+>(
+    s: &'a str,
+) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
+    let mut body = s.as_bytes();
+    let Some(&c) = body.first() else {
+        return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
+    };
@@ -216 +370 @@
-        s = &s[1..];
+        body = &body[1..];
@@ -218,2 +372,2 @@
-    if s.is_empty() {
-        return Err(pfe_invalid());
+    if body.is_empty() {
+        return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
@@ -222 +376,2 @@
-    let mut num = match parse_number(s) {
+    let parse_number_result = parse_number(body);
+    let parsed = match parse_number_result {
@@ -224,2 +379,24 @@
-        None if let Some(value) = parse_inf_nan(s, negative) => return Ok(value),
-        None => return Err(pfe_invalid()),
+        None => {
+            let parse_inf_nan_result = parse_inf_nan(body, negative);
+            return match parse_inf_nan_result {
+                Some(value) => (
+                    Ok(value),
+                    Dec2FltTrace::Special {
+                        body,
+                        negative,
+                        parse_number_result,
+                        parse_inf_nan_result,
+                        result: value,
+                    },
+                ),
+                None => (
+                    Err(pfe_invalid()),
+                    Dec2FltTrace::Invalid {
+                        body,
+                        negative,
+                        parse_number_result,
+                        parse_inf_nan_result,
+                    },
+                ),
+            };
+        }
@@ -226,0 +404,2 @@
+
+    let mut num = parsed;
@@ -229,2 +408,13 @@
-        if let Some(value) = num.try_fast_path::<F>() {
-            return Ok(value);
+        let fast_path_result = num.try_fast_path::<F>();
+        if let Some(value) = fast_path_result {
+            return (
+                Ok(value),
+                Dec2FltTrace::FastPath {
+                    body,
+                    negative,
+                    parse_number_result,
+                    fast_path_input: num,
+                    fast_path_result,
+                    result: value,
+                },
+            );
@@ -234,15 +424,27 @@
-    // If significant digits were truncated, then we can have rounding error
-    // only if `mantissa + 1` produces a different result. We also avoid
-    // redundantly using the Eisel-Lemire algorithm if it was unable to
-    // correctly round on the first pass.
-    let mut fp = compute_float::<F>(num.exponent, num.mantissa);
-    if num.many_digits
-        && fp.p_biased >= 0
-        && fp != compute_float::<F>(num.exponent, num.mantissa + 1)
-    {
-        fp.p_biased = -1;
-    }
-    // Unable to correctly round the float using the Eisel-Lemire algorithm.
-    // Fallback to a slower, but always correct algorithm.
-    if fp.p_biased < 0 {
-        fp = parse_long_mantissa::<F>(s);
+    let first_compute_exponent = num.exponent;
+    let first_compute_mantissa = num.mantissa;
+    let first_compute_result = compute_float::<F>(first_compute_exponent, first_compute_mantissa);
+    let mut fp = first_compute_result;
+
+    // This expands the source short-circuit conjunction without moving the
+    // checked `mantissa + 1`: that addition and the second helper call still
+    // occur exactly when `many_digits && fp.p_biased >= 0`.
+    let second_compute_guard = num.many_digits && fp.p_biased >= 0;
+    let mut second_compute_exponent = None;
+    let mut second_compute_mantissa = None;
+    let mut second_compute_result = None;
+    let mut second_equals_first = None;
+    let mut forced_deferral = false;
+    if second_compute_guard {
+        let exponent = num.exponent;
+        let mantissa = num.mantissa + 1;
+        let second = compute_float::<F>(exponent, mantissa);
+        let equal = fp == second;
+        second_compute_exponent = Some(exponent);
+        second_compute_mantissa = Some(mantissa);
+        second_compute_result = Some(second);
+        second_equals_first = Some(equal);
+        if !equal {
+            fp.p_biased = -1;
+            forced_deferral = true;
+        }
@@ -249,0 +452 @@
+    let post_comparison_pair = fp;
@@ -251,5 +454,69 @@
-    let mut float = biased_fp_to_float::<F>(fp);
-    if num.negative {
-        float = -float;
-    }
-    Ok(float)
+    let slow_path_guard = fp.p_biased < 0;
+    let mut slow_path_result = None;
+    if slow_path_guard {
+        // The exact slow-path input is the trace's common `body`; the guard
+        // records whether this call occurred, avoiding a duplicate live slice
+        // reference that Aeneas cannot join across this branch.
+        let replacement = parse_long_mantissa::<F>(body);
+        slow_path_result = Some(replacement);
+        fp = replacement;
+    }
+
+    let selected_pair = fp;
+    // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
+    // it neither changes the selected pair nor introduces a new branch or call.
+    let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
+    let assembly_result = biased_fp_to_float::<F>(fp);
+    let lexical_sign_applied = num.negative;
+    let result = if lexical_sign_applied {
+        core::ops::Neg::neg(assembly_result)
+    } else {
+        assembly_result
+    };
+
+    (
+        Ok(result),
+        Dec2FltTrace::Assembled(Dec2FltAssemblyTrace {
+            body,
+            negative,
+            parse_number_result,
+            fast_path_input: num,
+            fast_path_result: None,
+            first_compute_exponent,
+            first_compute_mantissa,
+            first_compute_result,
+            second_compute_guard,
+            second_compute_exponent,
+            second_compute_mantissa,
+            second_compute_result,
+            second_equals_first,
+            forced_deferral,
+            post_comparison_pair,
+            slow_path_guard,
+            slow_path_result,
+            selected_pair,
+            assembled_word,
+            assembly_result,
+            lexical_sign_applied,
+            result,
+        }),
+    )
+}
+
+/// Converts a decimal string into a floating point number.
+#[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
+pub fn dec2flt<
+    F: Lemire
+        + core::ops::Div<Output = F>
+        + core::ops::Mul<Output = F>
+        + core::ops::Neg<Output = F>,
+>(
+    s: &str,
+) -> Result<F, ParseFloatError> {
+    // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
+    // clause admits exactly the same instances and lets Charon resolve the
+    // explicit, source-equivalent final negation.
+    // The public function is now exactly the result projection of the single
+    // instrumented implementation.  No conversion step is duplicated, and
+    // discarding the trace cannot affect Rust evaluation or the returned bits.
+    dec2flt_with_trace::<F>(s).0
--- upstream/dec2flt/parse.rs
+++ crate/dec2flt/parse.rs
@@ -34,3 +34,6 @@
-        let num = s.read_u64();
-        if is_8digits(num) {
-            x = x.wrapping_mul(1_0000_0000).wrapping_add(parse_8digits(num));
+        // `chunk` is the source's local `num` under a nonconflicting name.
+        // The rename has no Rust effect and prevents the Lean backend from
+        // resolving `num.imp...` as a field projection on this local value.
+        let chunk = s.read_u64();
+        if is_8digits(chunk) {
+            x = x.wrapping_mul(1_0000_0000).wrapping_add(parse_8digits(chunk));
@@ -43 +46,6 @@
-    s = s.parse_digits(|digit| {
+    // This is the removed `ByteSlice::parse_digits` call specialized to its
+    // only parser use: identical wrapping digit classification, accumulator
+    // update, and first-nondigit stop, without an unsupported closure state.
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
@@ -45 +53,3 @@
-    });
+        count += 1;
+    }
+    s = &s[count..];
@@ -71,0 +82,38 @@
+// This is the source prefix scan isolated from `parse_partial_number` because
+// Aeneas cannot join its loop context while the enclosing function's other
+// slice borrows are live.  It visits the same bytes, in order, and performs
+// the identical checked `isize` subtraction for every leading dot or zero.
+fn adjust_many_digit_count(start: &[u8], mut n_digits: isize) -> isize {
+    let mut scan_index = 0;
+    let mut scanning = true;
+    while scan_index < start.len() && scanning {
+        let c = start[scan_index];
+        if c == b'.' || c == b'0' {
+            n_digits -= c.saturating_sub(b'0' - 1) as isize;
+            scan_index += 1;
+        } else {
+            scanning = false;
+        }
+    }
+    n_digits
+}
+
+// This is the source many-digit retry as a transparent helper.  Isolating its
+// rebased slices avoids an Aeneas context-join failure; both calls, the branch,
+// the offset arithmetic, and the explicit-exponent addition are unchanged.
+fn parse_many_digits(start: &[u8], int_end: &[u8], exp_number: i64) -> (u64, i64) {
+    let mut mantissa = 0;
+    let mut s = start;
+    try_parse_19digits(&mut s, &mut mantissa);
+    let mut exponent = if mantissa >= MIN_19DIGIT_INT {
+        int_end.offset_from(s)
+    } else {
+        s = &s[1..];
+        let before = s;
+        try_parse_19digits(&mut s, &mut mantissa);
+        -s.offset_from(before)
+    } as i64;
+    exponent += exp_number;
+    (mantissa, exponent)
+}
+
@@ -86,3 +134,10 @@
-    if matches!(s.first(), Some(&x) if x.is_ascii_digit()) {
-        *s_ref = s.parse_digits(|digit| {
-            // no overflows here, saturate well before overflow
+    // `matches!` with a guarded slice pattern triggers an Aeneas internal
+    // error.  This short-circuit test reads the same first byte exactly when
+    // it exists and therefore preserves both acceptance and evaluation order.
+    if !s.is_empty() && s[0].is_ascii_digit() {
+        // Specialized form of the source digit callback.  `count` advances
+        // exactly once per accepted byte and the bound keeps every checked
+        // exponent operation in the same safe range as the source.
+        let mut count = 0;
+        while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+            let digit = s[count].wrapping_sub(b'0');
@@ -92 +147,3 @@
-        });
+            count += 1;
+        }
+        *s_ref = &s[count..];
@@ -155,9 +212,5 @@
-    let mut p = start;
-    while let Some((&c, p_next)) = p.split_first() {
-        if c == b'.' || c == b'0' {
-            n_digits -= c.saturating_sub(b'0' - 1) as isize;
-            p = p_next;
-        } else {
-            break;
-        }
-    }
+    // The indexed loop is equivalent to the source `while let split_first`:
+    // it tests nonemptiness before the same byte read and consumes one byte
+    // only on the two source continuation cases.  This avoids Aeneas's loop
+    // context mismatch without changing checked subtraction or slice bounds.
+    n_digits = adjust_many_digit_count(start, n_digits);
@@ -167,14 +220,3 @@
-        mantissa = 0;
-        let mut s = start;
-        try_parse_19digits(&mut s, &mut mantissa);
-        exponent = if mantissa >= MIN_19DIGIT_INT {
-            // big int
-            int_end.offset_from(s)
-        } else {
-            s = &s[1..];
-            let before = s;
-            try_parse_19digits(&mut s, &mut mantissa);
-            -s.offset_from(before)
-        } as i64;
-        // add back the explicit part
-        exponent += exp_number;
+        let retried = parse_many_digits(start, int_end, exp_number);
+        mantissa = retried.0;
+        exponent = retried.1;
--- upstream/dec2flt/slow.rs
+++ crate/dec2flt/slow.rs
@@ -48,0 +49 @@
+    let mut loop_result = None;
@@ -50 +51 @@
-    while d.decimal_point > 0 {
+    while d.decimal_point > 0 && loop_result.is_none() {
@@ -55 +56,7 @@
-            return fp_zero;
+            // The source returns `fp_zero` at this exact point.  Storing that
+            // result and terminating the loop performs no later loop update;
+            // the return below is therefore behavior-identical and avoids an
+            // Aeneas restriction on returns from nested loop translation.
+            loop_result = Some(fp_zero);
+        } else {
+            exp2 += shift as i32;
@@ -57 +64,3 @@
-        exp2 += shift as i32;
+    }
+    if let Some(result) = loop_result {
+        return result;
@@ -60 +69 @@
-    while d.decimal_point <= 0 {
+    while d.decimal_point <= 0 && loop_result.is_none() {
@@ -72 +81,6 @@
-            return fp_inf;
+            // This records the source's immediate `fp_inf` return.  Since the
+            // guarded loop exits before the exponent update, moving the return
+            // just below the loop preserves every state transition.
+            loop_result = Some(fp_inf);
+        } else {
+            exp2 -= shift as i32;
@@ -74 +88,3 @@
-        exp2 -= shift as i32;
+    }
+    if let Some(result) = loop_result {
+        return result;
--- upstream/traits.rs
+++ crate/traits.rs
@@ -11 +11 @@
-use crate::{f64, fmt, ops};
+use crate::{f64, ops};
@@ -14 +14,5 @@
-pub trait CastInto<T: Copy>: Copy {
+// All uses are through `Int`, which independently requires `Self: Copy`, and
+// every implementation here is a primitive Copy type.  Removing that redundant
+// supertrait changes no call or value but prevents Aeneas from emitting two
+// identically named `Copy` fields for `Self` and `T` in the Lean structure.
+pub trait CastInto<T: Copy> {
@@ -18,0 +23,4 @@
+// The accepted observations contain no formatting behavior.  Removing the
+// `Debug` supertrait changes neither the concrete primitive integer instances
+// nor any operation used by the algorithms, so it preserves the f64
+// specialization and every inventoried observation independently of GOAL truth.
@@ -23 +30,0 @@
-    + fmt::Debug
@@ -52 +59,6 @@
-int!(u16, u32, u64);
+// Only `u64` is the associated integer of the retained `f64` specialization.
+// The removed `u16`/`u32` instances served only the excluded `f16`/`f32`
+// implementations, so their removal changes no f64 public, helper, or trace
+// body, native decision, checked arithmetic, debug assertion, return value, or
+// accepted observation.
+int!(u64);
@@ -55,0 +68,6 @@
+// Formatting is outside every accepted public and trace observation. `Add`,
+// equality, ordering, default construction, and cloning are also unused by all
+// retained generic bodies; only `Copy`, `Mul`, `Div`, and `Neg` are required.
+// Removing those unused requirements admits the same f64 implementation and
+// changes no f64 body, native decision, checked arithmetic, debug assertion,
+// return value, or trace observation, independently of any GOAL's truth.
@@ -61,6 +78,0 @@
-    + ops::Add<Output = Self>
-    + fmt::Debug
-    + PartialEq
-    + PartialOrd
-    + Default
-    + Clone
@@ -134,4 +146 @@
-    const LARGEST_POWER_OF_TEN: i32 = {
-        let largest_pow2 = Self::EXP_BIAS + 1;
-        pow2_to_pow10(largest_pow2 as i64) as i32
-    };
+    const LARGEST_POWER_OF_TEN: i32;
@@ -175,19 +184 @@
-    fn integer_decode(self) -> (u64, i16, i8) {
-        let bits = self.to_bits();
-        let sign: i8 = if bits >> (Self::BITS - 1) == Self::Int::ZERO { 1 } else { -1 };
-        let mut exponent: i16 = ((bits & Self::EXP_MASK) >> Self::SIG_BITS).cast();
-        let mantissa = if exponent == 0 {
-            (bits & Self::SIG_MASK) << 1
-        } else {
-            (bits & Self::SIG_MASK) | (Self::Int::ONE << Self::SIG_BITS)
-        };
-        // Exponent bias + mantissa shift
-        exponent -= (Self::EXP_BIAS + Self::SIG_BITS) as i16;
-        (mantissa.into(), exponent, sign)
-    }
-}
-
-/// Solve for `b` in `10^b = 2^a`
-const fn pow2_to_pow10(a: i64) -> i64 {
-    let res = (a as f64) / f64::consts::LOG2_10;
-    res as i64
+    fn integer_decode(self) -> (u64, i16, i8);
@@ -196,0 +188,4 @@
+// The f16 implementation is outside the exclusively f64 scope. Disabling it
+// leaves every retained f64 public/helper/trace body and all of its decisions,
+// checked operations, assertions, return values, and observations unchanged.
+#[cfg(any())]
@@ -203 +198,4 @@
-    const NEG_NAN: Self = -Self::NAN;
+    // `from_bits` produces exactly the bit pattern obtained by negating the
+    // upstream canonical NaN.  This avoids Aeneas's unsupported float unop
+    // while preserving the constant, including its sign and payload bits.
+    const NEG_NAN: Self = f16::from_bits(0xFE00);
@@ -211,0 +210,2 @@
+    // Exact value of trunc(16 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 4;
@@ -223,0 +224,3 @@
+// `FloatExt for f16` is used only by the excluded f16 specialization; it is
+// irrelevant to all retained f64 computation and observations listed above.
+#[cfg(any())]
@@ -228,0 +232,16 @@
+
+    // Specializing the upstream default removes only unsupported associated-
+    // integer operator resolution; these are the same bit operations with
+    // `Self::Int = u16` and the same exponent-bias subtraction.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 15 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 10) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u16 << 10)
+        };
+        exponent -= 15 + 10;
+        (mantissa as u64, exponent, sign)
+    }
@@ -230,0 +250,3 @@
+// The f32 implementation is outside the exclusively f64 scope. Disabling it
+// does not alter any retained f64 computation, assertion, result, or trace.
+#[cfg(any())]
@@ -237 +259,3 @@
-    const NEG_NAN: Self = -f32::NAN;
+    // Bit-identical to the upstream `-f32::NAN`, without the unsupported
+    // compile-time float negation.
+    const NEG_NAN: Self = f32::from_bits(0xFFC0_0000);
@@ -245,0 +270,2 @@
+    // Exact value of trunc(128 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 38;
@@ -256,0 +283,3 @@
+// `FloatExt for f32` likewise has no use in any retained f64 body or accepted
+// observation and is disabled without changing f64 execution.
+#[cfg(any())]
@@ -261,0 +291,16 @@
+
+    // This is the upstream default after substituting `Self::Int = u32`;
+    // concreteness is needed only because Charon cannot resolve the generic
+    // associated-integer shifts and bit operators for Aeneas.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 31 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 23) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u32 << 23)
+        };
+        exponent -= 127 + 23;
+        (mantissa as u64, exponent, sign)
+    }
@@ -270 +315,3 @@
-    const NEG_NAN: Self = -Self::NAN;
+    // Bit-identical to the upstream `-f64::NAN`, without the unsupported
+    // compile-time float negation.
+    const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);
@@ -278,0 +326,2 @@
+    // Exact value of trunc(1024 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 308;
@@ -293,0 +343,16 @@
+    }
+
+    // This is the upstream default after substituting `Self::Int = u64`;
+    // it preserves every decoded field while avoiding unsupported generic
+    // associated-integer operator resolution.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 63 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 52) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u64 << 52)
+        };
+        exponent -= 1023 + 52;
+        (mantissa, exponent, sign)
reference/model-evidence/source-adaptation-delta.txt

Open file

Primary inventory and preservation analysis of the upstream-to-crate delta
============================================================================

Method and complete file inventory
----------------------------------

This record compares the supplied files in upstream/ with the frozen adapted
crate/.  It treats the sources and their control flow as primary evidence; it
does not use a prior route decision as semantic proof and makes no assertion
that a supplied GOAL is true.  The exact raw aggregate diff is retained as
reference/model-evidence/source-adaptation-delta.diff.  It was generated from
the repository root by this exact command (the for-list is the complete
LC_ALL=C-sorted upstream inventory, identical files contribute zero bytes,
labels are literal root-relative paths, hunks are concatenated in listed
order, status 1 is accepted as diff's expected ``files differ'' status, and
every other nonzero status aborts):

  export LC_ALL=C
  artifact=reference/model-evidence/source-adaptation-delta.diff
  : > "$artifact"
  saw_difference=0
  for supplied in \
    dec2flt/common.rs \
    dec2flt/decimal.rs \
    dec2flt/decimal_seq.rs \
    dec2flt/fpu.rs \
    dec2flt/lemire.rs \
    dec2flt/mod.rs \
    dec2flt/parse.rs \
    dec2flt/slow.rs \
    dec2flt/table.rs \
    traits.rs
  do
    if diff --unified=0 --label "upstream/$supplied" --label "crate/$supplied" \
        "upstream/$supplied" "crate/$supplied" >> "$artifact"; then
      :
    else
      diff_status=$?
      if [ "$diff_status" -ne 1 ]; then
        exit "$diff_status"
      fi
      saw_difference=1
    fi
  done
  test "$saw_difference" -eq 1
  sha256sum "$artifact"

The command used GNU diffutils 3.12 at /usr/bin/diff, whose SHA-256 is
dfab4814355b488934cf8c63ce96d94184ea3d9b5e4f9be50278ad8e080168f5.
Its actual final output was:

  fdf88cabfe40ce962d2bd5eda22eb5b3cbbf8a936a81b896e98698bf472cd0e4  reference/model-evidence/source-adaptation-delta.diff

The retained byte stream is 38,813 bytes and 933 lines.  The complete source
inventory and independently reproduced file hashes are:

  supplied path                 upstream SHA-256                                                   crate SHA-256                                                      status
  dec2flt/common.rs             fc64094721ff23e08fcba013154d04dec3fe986cae5ffd73a20f86049980aace   4c4be815335a7b176527eb1345e662890caa48181a0a4f814594339016cab18e   changed
  dec2flt/decimal.rs            3c164785e1bc3f3b48aa9c212dd6c4ab535fe828523af9fa584df4c7b1e60e0d   633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb   changed
  dec2flt/decimal_seq.rs        c0c1c6028e3f57cefc3de7635a94788e9180f5ebcedc7a334ec8dbac786ec788   4aa4ecf9f31970033093d73238d4f2c72d433639bbe467c0741b185807380bd9   changed
  dec2flt/fpu.rs                16cf9ec154d477ab3d4184a01fb4b9ed7c59f0228cc55589d393c40a61b19d8f   16cf9ec154d477ab3d4184a01fb4b9ed7c59f0228cc55589d393c40a61b19d8f   identical
  dec2flt/lemire.rs             fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1   fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1   identical
  dec2flt/mod.rs                7198e238c554b692405537a446b3526ad66805ec2900cd0e299f10c51402a44a   ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d   changed
  dec2flt/parse.rs              9daf21ab9445a84552535152f376eef8c30f3d5827296c0645f5952d3b22bbf1   50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f   changed
  dec2flt/slow.rs               43e7aba32d7431bbf0e1bbcb4c334eaffb23eb66891c7e45abe799c5235cc0d2   93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485   changed
  dec2flt/table.rs              6eb59023784bd84cb6fb074c70da8a99bef72bc2a2ea179b0da457ca1ee00abb   6eb59023784bd84cb6fb074c70da8a99bef72bc2a2ea179b0da457ca1ee00abb   identical
  traits.rs                     66a02c44d72dfcc3ddae7e34a290e390dabaf98c5911b283d2d97f2f0075a44e   9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf   changed

The standalone package adds four files having no supplied counterpart:

  crate/Cargo.toml              2040ce5dc92c51b5245113f97682b692b876aa57708b5c7c483425ba152943c8
  crate/lib.rs                  1df2b8bcb2f52068d05a6343923716d0ef4475abdef34a0de3fe7cb8dc2ba95b
  crate/num/mod.rs              d9ac4f964d124bd4660914dc4c80bbb14f48d7851f9a8edc71a0931e9fce37b3
  crate/num/imp/mod.rs          df09b97393e97b23b0a558c2fcbbf4e75dd9d68338f1e83f168bab80a37a31f1

Thus fpu.rs, lemire.rs, and the complete 671-line table.rs, including their
algorithmic constants and tables, are byte-identical.  The following sections
account for every other file and every changed hunk.

Namespace and error shell
-------------------------

crate/lib.rs:1-12 is a no_std crate root that re-exports core::f64 and
core::ops and introduces the same num module path expected by the supplied
slice.  crate/num/imp/mod.rs:1-10 uses path attributes to place traits.rs and
dec2flt/mod.rs at core::num::imp-like module names.  These declarations add no
wrapper call or computation.  crate/num/mod.rs:1 re-exports
core::num::FpCategory.  crate/num/mod.rs:3-26 defines a local private
FloatErrorKind and ParseFloatError shell so the standalone package can name
the parser's error type.  The pursued GOALs observe only panic versus normal
return and, on normal return, the outer Result's Ok/Err discriminant; they do
not observe the private error kind or formatting.  No identity is asserted
between this local shell and an unpinned core error payload.
crate/Cargo.toml:5-22 selects the package, empty default features, and
checked-overflow profiles.  The configuration and fresh build are independently
reproduced in setup-reproduction.txt.

Visibility, derives, and bounds
-------------------------------

upstream/dec2flt/mod.rs:90 versus crate/dec2flt/mod.rs:90 changes only the
visibility of the existing BiasedFp import so a goal-facing caller can name the
same type.  It changes neither layout nor execution.

upstream/dec2flt/common.rs:68 and decimal.rs:28 and decimal_seq.rs:17 include
Debug derives.  The corresponding crate spans common.rs:48-51,
decimal.rs:28-31, and decimal_seq.rs:17-20 remove only Debug.  Copy, Clone,
PartialEq, Eq, and Default used by computation remain where present, and no
accepted observation formats these records.

upstream/traits.rs:11-52 versus crate/traits.rs:11-64 removes formatting from
Int, removes a redundant Copy supertrait from CastInto, and instantiates Int
only for u64.  Every call of CastInto is through Int, which still requires
Copy; all retained concrete values are primitive Copy values.  The removed
u16/u32 instances are associated only with the disabled f16/f32 formats.

upstream/traits.rs:55-76 versus crate/traits.rs:67-80 removes Add, Debug,
PartialEq, PartialOrd, Default, and Clone from Float while retaining Copy, Mul,
Div, and Neg.  A search of all retained generic bodies shows no call using a
removed operation.  upstream/dec2flt/decimal.rs:56-89 versus
crate/dec2flt/decimal.rs:59-111 and upstream/dec2flt/mod.rs:209-256 versus
crate/dec2flt/mod.rs:352-520 add direct Div, Mul, and Neg bounds already implied
by Lemire -> Float, and replace operator notation with calls to those same
traits.  Rust desugars the original /, *, and unary - to these trait calls, so
the operands, call order, result, and admitted f64 specialization are unchanged.

Exact constants, tables, and specialized decoding
-------------------------------------------------

The source formulae and decimal-literal table were evaluated directly by the
pinned rustc using the retained source
reference/model-evidence/adaptation-constants-probe.rs.  The command was:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/adaptation-constants-probe.rs
  B=.trellis/scratch/adaptation-constants-probe
  "$R" --edition 2024 --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$P" "$B"
  "$B"

The source hash was
b5a4a2cba0c08053cb9a816adb1ba5dbd160bf3928bdf5ccf56b7ae83aaa2aa5
and the resulting executable hash was
b02d2f6deb675f17d0dbdc22e57a67d7692689f7a2b0d7b125556c35c4b8a4a5.
Raw output was:

  largest_power_of_ten=308
  max_exponent_fast_path=22
  max_exponent_disguised=37
  neg_nan=fff8000000000000
  pow10_0=3ff0000000000000
  pow10_1=4024000000000000
  pow10_2=4059000000000000
  pow10_3=408f400000000000
  pow10_4=40c3880000000000
  pow10_5=40f86a0000000000
  pow10_6=412e848000000000
  pow10_7=416312d000000000
  pow10_8=4197d78400000000
  pow10_9=41cdcd6500000000
  pow10_10=4202a05f20000000
  pow10_11=42374876e8000000
  pow10_12=426d1a94a2000000
  pow10_13=42a2309ce5400000
  pow10_14=42d6bcc41e900000
  pow10_15=430c6bf526340000
  pow10_16=4341c37937e08000
  pow10_17=4376345785d8a000
  pow10_18=43abc16d674ec800
  pow10_19=43e158e460913d00
  pow10_20=4415af1d78b58c40
  pow10_21=444b1ae4d6e2ef50
  pow10_22=4480f0cf064dd592

upstream/traits.rs:134-137 computes LARGEST_POWER_OF_TEN through a Float
default, and upstream/traits.rs:175-193 gives the generic integer_decode and
the helper used by that constant.  crate/traits.rs:146 makes the constant an
associated requirement; crate/traits.rs:309-359 supplies the retained f64
values and decoder after substituting BITS=64, SIG_BITS=52, EXP_BIAS=1023,
EXPONENT_MASK, MANTISSA_MASK, and the u64 operations.  Each source expression
then becomes exactly the corresponding crate expression: sign is bits>>63,
exponent is (bits & mask)>>52 cast to i16, the subnormal mantissa is shifted
once, the normal mantissa receives 1<<52, and 1023+52 is subtracted.  The
resulting tuple and every bit operation are unchanged.  The probe output above
shows that the computed f64 LARGEST_POWER_OF_TEN is 308 and that the source
-f64::NAN word is fff8000000000000, exactly crate/traits.rs:315-327; the
independent binary64-boundary.txt record fixes the masks and primitive bit
semantics used by the decoder.

upstream/dec2flt/mod.rs:118-129 gives the two Lemire default formulae.
crate/dec2flt/mod.rs:115-128 makes them associated requirements, and the
retained f64 instance at crate/dec2flt/mod.rs:217-220 supplies 22 and 37, the
integer results of the two source formulae for 53 significand bits.
upstream/dec2flt/mod.rs:176-181 indexes a 32-entry f64 table with exponent&31.
crate/dec2flt/mod.rs:222-251 performs the same masked selection using from_bits:
cases 0 through 22 are the exact pinned binary64 words printed above for 1e0 through 1e22 and
all other cases return positive zero, as did entries 23 through 31.  The full
word list and the pinned float semantics are recorded in binary64-boundary.txt.
The analogous f16/f32 replacements at crate/dec2flt/mod.rs:145-215 and
crate/traits.rs:187-307 lie under cfg(any()) and cannot enter this build.

Whole-function from_u64 opacity
-------------------------------

upstream/dec2flt/mod.rs:184-188 and crate/dec2flt/mod.rs:263-266 have the same
f64 body: the same enabled debug_assert that v <= 1<<53, followed by the same
primitive `v as f64` cast.  The sole semantic-boundary annotation is
#[charon::opaque] at crate line 262, syntactically attached to the function
item.  It therefore hides the entire from_u64 body from translation: neither
the debug assertion nor the cast is transparent in the extraction.  The
callers, their guards, and the surrounding native-path computation remain
transparent.  The fresh external inventory contains the whole method as the
single external F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64.  Its
separately reviewed ModelF64FromU64 binding supplies exactly successful integer
conversion for v <= 2^53 and assertion failure otherwise.

Digit scans, slice patterns, and helper extraction
-------------------------------------------------

upstream/dec2flt/common.rs:14-53 supplies ByteSlice::parse_digits: repeatedly
split_first, wrapping-subtract ASCII zero, invoke the closure exactly when the
result is below 10, consume that byte, and stop at the first other byte.
crate/dec2flt/common.rs:11-36 removes only this method.  Its complete set of
uses is replaced as follows.

* upstream/dec2flt/parse.rs:31-48 versus crate/dec2flt/parse.rs:31-58 keeps the
  eight-byte loop, wrapping multiply/add, and then performs the same digit test,
  accumulator update, and one-byte progress with an index.  The local rename
  num to chunk is lexical only.
* upstream/dec2flt/parse.rs:83-97 versus crate/dec2flt/parse.rs:131-153 expands
  matches!/parse_digits into the same nonempty first-digit guard, the same
  0x10000 bounded exponent update, the same first-nondigit suffix, and the same
  final sign.  The bound is tested before each checked multiply and addition,
  exactly as in the closure.
* upstream/dec2flt/decimal_seq.rs:220-295 versus
  crate/dec2flt/decimal_seq.rs:231-359 extracts parse_digits_into_seq,
  parse_decimal_exponent, and count_trailing_zeros.  The digit helpers use the
  same wrapping byte test, forward order, try_add_digit state transition, and
  0x10000 exponent guard.  The reverse helper visits indices consumed_len-1
  down to zero, increments only for ASCII zero, ignores a decimal point, and
  stops at the first other byte, exactly the original iter().rev() loop.

In all these replacements, indexing occurs only under count<len or !is_empty,
so it has the same bounds as split_first.  Slicing advances by exactly the same
one or eight bytes.  No wrapping operation is replaced by checked arithmetic,
and no checked source operation is replaced by wrapping arithmetic.

upstream/dec2flt/parse.rs:155-181 versus crate/dec2flt/parse.rs:82-119 and
212-226 moves two loops into adjust_many_digit_count and parse_many_digits.
The prefix helper visits the same start bytes in the same order, performs the
same saturating_sub and checked isize subtraction, and stops on the same byte.
The retry helper makes the same first 19-digit call, tests the same threshold,
makes the same one-byte rebase and second call in the alternate branch,
computes the same offset with the same sign, casts it to i64, and performs the
same checked addition of exp_number last.  Thus any large-input panic is
preserved rather than excluded.

upstream/dec2flt/decimal_seq.rs:226-295 versus
crate/dec2flt/decimal_seq.rs:284-359 replaces literal split_first patterns by
nonempty index tests.  The leading-zero scans, optional decimal point, optional
exponent marker, optional exponent sign, and suffixes occur in the same order.
The crate's exp_sign*exp_num equals the source choice between exp_num and
-exp_num because exp_num is bounded by the unchanged 0x10000 guard; the final
decimal_point checked addition is in the same position.  Casts of lengths to
i32 and every subsequent checked update remain unchanged, including their
large-input behavior.

Delayed returns
---------------

upstream/dec2flt/decimal_seq.rs:173-198 versus
crate/dec2flt/decimal_seq.rs:176-203 replaces one return inside right_shift's
loop by all_zero=true, exits because !all_zero is the loop guard, and returns
immediately afterward.  No decimal_point, digit, index, or arithmetic update
occurs between the original and delayed return.

upstream/dec2flt/slow.rs:46-76 versus crate/dec2flt/slow.rs:46-94 replaces two
nested-loop returns by loop_result.  In the zero branch it records fp_zero,
skips the source-skipped exp2 addition, exits through is_none(), and returns.
In the infinity branch it records fp_inf, skips the source-skipped exp2
subtraction, exits, and returns.  On all other iterations it performs the same
shift, checked state changes, and exponent update.  Lines 95-126 after these
returns are otherwise the source lines 77-110 unchanged.

Dispatcher trace and public projection
--------------------------------------

upstream/dec2flt/mod.rs:209-256 is the whole original dispatcher.
crate/dec2flt/mod.rs:285-349 declares trace data only, lines 352-505 execute the
instrumented dispatcher, and lines 507-520 define public dec2flt as its first
projection.  Comparing the bodies gives the following branch-by-branch
correspondence.

* Both call as_bytes, inspect the first byte, reject empty input before a helper,
  remove at most one sign, and reject a sign-only body.  The trace stores the
  already obtained body and Boolean sign.
* Both call parse_number first on that exact body.  Only None calls
  parse_inf_nan on the same body and sign.  Its Some is returned directly and
  its None returns invalid.  The trace stores those existing Option values.
* Both overwrite only Decimal.negative, test the same compile-time
  !optimize_for_size condition, call try_fast_path once, and return its Some
  directly.  The trace stores the copied Decimal and Option; Decimal is Copy.
* Both call compute_float first with num.exponent and num.mantissa.  The crate's
  second_compute_guard is exactly the first two conjuncts of the source
  short-circuit.  Therefore the checked mantissa+1 and second compute_float call
  occur under precisely the source guard, in the same order.  The same pair
  comparison either retains fp or changes only p_biased to -1.
* Both test the post-comparison p_biased<0 once, call parse_long_mantissa on the
  unchanged body exactly when true, and otherwise retain the same pair.  The
  trace records both guard and result without another helper call.
* The extra assembled_word expression is the same cast, shift, and OR performed
  by biased_fp_to_float at upstream lines 202-206 and crate lines 278-282; these
  integer operations neither panic nor mutate fp.  Both then call assembly once
  on the selected pair and apply unary negation exactly when num.negative.
  Public dec2flt returns the identical Result first component.

Consequently the trace does not infer uncomputed data: it records the exact
variant; sign-stripped body and sign; numeric/special Options; fast-path input
and result; first and conditional second integer operands and results;
comparison, forced-deferral and post-comparison pair; slow guard and result;
selected pair; assembled word; pre-sign assembly word; sign-application fact;
and final word.  Special and native direct returns create no selected pair.
All source call order, guards, checked arithmetic, mutable-state transitions,
panic points, and returned Result/F64 observations remain in place.

F64-only restriction
--------------------

crate/traits.rs:187-307 and crate/dec2flt/mod.rs:140-215 add cfg(any()) to the
f16/f32 Float, FloatExt, and Lemire implementations.  crate/traits.rs:59-64
retains only u64 Int.  The retained f64 implementations are
crate/traits.rs:309-360 and crate/dec2flt/mod.rs:217-264.  Every goal-facing
function remains generic in the source and extraction, but each pursued source
subject specializes it to f64, whose associated integer is u64.  There is no
dynamic format dispatch, so removing other impl blocks cannot change an f64
call, its native decision, checks, result word, NaN classification, fields, or
trace.  The fresh boundary inventory in setup-reproduction.txt confirms that
no removed-format external remains.

Conclusion
----------

The inventory is exhaustive: three supplied files are identical, seven have
all hunks classified above, and the four added files are the package shell.
For the configured f64 specialization, the adapted crate has the same input
domains, branch order, guards, checked/wrapping distinction, state transitions,
panic versus normal behavior, and public/helper observations as the supplied
source.  The only new observations are the trace fields, each copied from an
existing value or computed by the same pure assembly expression.  This
conclusion is independent of whether any parser-correctness GOAL is true.
reference/model-evidence/source-valid-byte-slice-probe.out

Open file

arch=x86_64
usize_bits=64
isize_max=9223372036854775807
u8_size=1
reference/model-evidence/source-valid-byte-slice-probe.rs

Open file

fn main() {
    println!("arch={}", std::env::consts::ARCH);
    println!("usize_bits={}", usize::BITS);
    println!("isize_max={}", isize::MAX);
    println!("u8_size={}", std::mem::size_of::<u8>());
}
reference/model-evidence/source-valid-byte-slice.txt

Open file

Source-valid byte-slice and string domain evidence
==================================================

Scope and pinned identities
---------------------------

All commands below were run from the repository root.  The configured compiler
is:

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

Its SHA-256 is:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b

The exact identity commands were:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  sha256sum "$R"
  "$R" --version --verbose
  "$R" --target x86_64-unknown-linux-gnu --print cfg | LC_ALL=C sort | \
    rg 'target_(arch|pointer_width)'

Their relevant raw output was:

  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
  target_arch="x86_64"
  target_pointer_width="64"

Retained configured-target probe
--------------------------------

The retained probe source is
reference/model-evidence/source-valid-byte-slice-probe.rs.  It was compiled
for the configured target and executed with this exact command, which depends
only on the retained source and the pinned compiler:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/source-valid-byte-slice-probe.rs
  B=/tmp/dec2flt-source-valid-byte-slice-probe
  O=reference/model-evidence/source-valid-byte-slice-probe.out
  "$R" --edition 2024 --target x86_64-unknown-linux-gnu -C opt-level=0 \
    -C debuginfo=0 -C overflow-checks=on -C debug-assertions=on \
    --crate-name source_valid_byte_slice_probe "$P" -o "$B"
  sha256sum "$R" "$P" "$B"
  "$B" > "$O"
  sha256sum "$O"
  cat "$O"

The actual hashes were:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd  reference/model-evidence/source-valid-byte-slice-probe.rs
  87dc3b9b7a46506d2205503d8aa007b451c452968af48d1ba5961a821934ee55  /tmp/dec2flt-source-valid-byte-slice-probe
  01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4  reference/model-evidence/source-valid-byte-slice-probe.out

The retained raw output file contains exactly:

  arch=x86_64
  usize_bits=64
  isize_max=9223372036854775807
  u8_size=1

Pinned core-library source
--------------------------

Let:

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

The exact commands used to identify and inspect the relevant core sources were:

  sha256sum "$S/slice/mod.rs" "$S/num/int_macros.rs" "$S/str/mod.rs"
  sed -n '798,808p' "$S/slice/mod.rs"
  sed -n '43,51p' "$S/num/int_macros.rs"
  sed -n '495,510p' "$S/str/mod.rs"

The file identities are:

  354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840  core/src/slice/mod.rs
  3896304e7cb14628e293134ac41fd18be2b5369bedc02d1c6a7408bd8c755a31  core/src/num/int_macros.rs
  284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78  core/src/str/mod.rs

The relevant exact excerpt of slice/mod.rs, line 801, is:

  //   - The size of the slice is never larger than `isize::MAX` bytes, as

The relevant exact declaration in num/int_macros.rs, line 47, is:

  pub const MAX: Self = (<$UnsignedT>::MAX >> 1) as Self;

The relevant exact excerpts of str/mod.rs are its same-layout byte-slice
conversion at lines 498-500:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }

and its UTF-8 invariant at lines 507-510:

  /// The caller must ensure that the content of the slice is valid UTF-8
  /// before the borrow ends and the underlying `str` is used.
  ///
  /// Use of a `str` whose contents are not valid UTF-8 is undefined behavior.

Conclusion
----------

The configured target has 64-bit usize/isize and one-byte u8 elements.
The pinned signed-MAX definition therefore gives
isize::MAX = 2^63 - 1 = 9223372036854775807, and the pinned slice rule bounds a
slice by that many bytes.  For &[u8], this is exactly an element-count bound;
the rule adds no UTF-8 condition or other restriction on the byte contents.
The pinned str source exposes the identical-layout &[u8] bytes and separately
requires them to be valid UTF-8.  Consequently the exact configured domains
are arbitrary &[u8] bytes of length at most isize::MAX, and Rust str bytes of
length at most isize::MAX that are valid UTF-8.  No smaller convenience bound
is introduced.
Upstream → extraction-crate adaptation diff
--- upstream/dec2flt/slow.rs
+++ crate/dec2flt/slow.rs
@@ -46,18 +46,27 @@
         return fp_inf;
     }
     let mut exp2 = 0_i32;
+    let mut loop_result = None;
     // Shift right toward (1/2 ... 1].
-    while d.decimal_point > 0 {
+    while d.decimal_point > 0 && loop_result.is_none() {
         let n = d.decimal_point as usize;
         let shift = get_shift(n);
         d.right_shift(shift);
         if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
-            return fp_zero;
+            // The source returns `fp_zero` at this exact point.  Storing that
+            // result and terminating the loop performs no later loop update;
+            // the return below is therefore behavior-identical and avoids an
+            // Aeneas restriction on returns from nested loop translation.
+            loop_result = Some(fp_zero);
+        } else {
+            exp2 += shift as i32;
         }
-        exp2 += shift as i32;
+    }
+    if let Some(result) = loop_result {
+        return result;
     }
     // Shift left toward (1/2 ... 1].
-    while d.decimal_point <= 0 {
+    while d.decimal_point <= 0 && loop_result.is_none() {
         let shift = if d.decimal_point == 0 {
             match d.digits[0] {
                 digit if digit >= 5 => break,
@@ -69,9 +78,16 @@
         };
         d.left_shift(shift);
         if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
-            return fp_inf;
+            // This records the source's immediate `fp_inf` return.  Since the
+            // guarded loop exits before the exponent update, moving the return
+            // just below the loop preserves every state transition.
+            loop_result = Some(fp_inf);
+        } else {
+            exp2 -= shift as i32;
         }
-        exp2 -= shift as i32;
+    }
+    if let Some(result) = loop_result {
+        return result;
     }
     // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
     exp2 -= 1;
Record details
Kindsource adaptation site (file-level diff)
Captured evidence identities
[
  {
    "path": "extraction-evidence/COMMAND.json",
    "sha256": "5f26225136b8c7c4d7f95615e3e8ff8b357e523eeada4bc649e50f9c76cb9bda",
    "cited_by": [
      "shared mechanical extraction record",
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "extraction-evidence/DETERMINISM.json",
    "sha256": "74e45977d1fa84e7d4c696906005f13faca994995fdeff0fac8dc13e5c18f11c",
    "cited_by": [
      "shared mechanical extraction record"
    ]
  },
  {
    "path": "extraction-evidence/RESULT.json",
    "sha256": "31059e900d9ee03a54504c1dd3560a943d6c0f883fba737163b1ca0cb40065b0",
    "cited_by": [
      "shared mechanical extraction record",
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "extraction-evidence/STDERR.bin",
    "sha256": "c284799d633c64b898f716d62fbf1146c173227bd6bd44309c6504a43926e000",
    "cited_by": [
      "shared mechanical extraction record"
    ]
  },
  {
    "path": "extraction-evidence/STDOUT.bin",
    "sha256": "8e0aed62f6941e7c81b09d5c5b63ea7602756e69e4bcce9944258b229a9a0ba3",
    "cited_by": [
      "shared mechanical extraction record"
    ]
  },
  {
    "path": "reference/model-evidence/adaptation-constants-probe.rs",
    "sha256": "b5a4a2cba0c08053cb9a816adb1ba5dbd160bf3928bdf5ccf56b7ae83aaa2aa5",
    "cited_by": [
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-boundary.txt",
    "sha256": "fa45c924747337e8d6f84a19fe9e83fb9b33c73434887c0cf57c062533f51fe1",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex",
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-probe.rs",
    "sha256": "68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e",
    "cited_by": [
      "reference/model-evidence/binary64-boundary.txt"
    ]
  },
  {
    "path": "reference/model-evidence/native-boundary.txt",
    "sha256": "fa0d69e4a434007e6ee675380fc13f98e22655b7faa77cdc5216d4af4356438f",
    "cited_by": [
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "reference/model-evidence/setup-reproduction.txt",
    "sha256": "209bc94a47b1b905a2a7b1fea229c759e6250becbd353fe4eadc7bc49be7742c",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex",
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-adaptation-delta.diff",
    "sha256": "fdf88cabfe40ce962d2bd5eda22eb5b3cbbf8a936a81b896e98698bf472cd0e4",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex",
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-adaptation-delta.txt",
    "sha256": "3c1483d48286a82484eba249a5434936e1a33a08f4e99ec0e3a03ce9bb0ecd9b",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.out",
    "sha256": "01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.rs",
    "sha256": "b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice.txt",
    "sha256": "eb501317621baa00236f9773885466bd38ec1a45cb56457d555b9e9139dc780a",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex"
    ]
  }
]

crate/traits.rs

Historical preparation document: preparation source-adaptation audit. It describes the state and obligations at preparation. This generation is captured in ProofFormalization. Later closure and review results appear in the proof and modeling views. This original document remains available as history.

Captured upstream and extraction-crate files differ. Consult the recorded preservation explanations for the purpose and scope of each adaptation.
Shared extraction-boundary explanation (Preamble)

Preservation argument

Claim

Fix Rust nightly-2026-06-01 and target x86_64-unknown-linux-gnu, the library's empty default feature set (so optimize_for_size is disabled), the unoptimized development profile, enabled debug assertions and integer overflow checks, and the target's SSE2 precision-setting branch. Interpret each of the frozen extraction's 24 external operations by the separately justified model-support definition that owns that operation. Under those interpretations, the composed Aeneas model represents the supplied source's f64 specialization on all of these domains, without a correctness premise: every Rust str whose bytes are valid UTF-8 and whose 64-bit slice length is at most \mathtt{isize::MAX}=2^{63}-1; every Rust &[u8] whose length is at most that bound, with arbitrary byte contents; every Decimal; every i64/u64 pair; and every BiasedFp.
For dec2flt::<f64> the relation preserves panic versus normal return, the outer returned Result's Ok/Err discriminant, and, on success, the exact binary64 word and its NaN classification. For parse_number it preserves panic versus normal return, the Option discriminant, and all four returned Decimal fields. For parse_inf_nan::<f64> and Decimal::try_fast_path::<f64> it preserves panic versus normal return, None versus Some, and every returned word and NaN classification. For compute_float::<f64> and parse_long_mantissa::<f64> it preserves panic versus normal return and both fields of every returned BiasedFp. For biased_fp_to_float::<f64> it preserves panic versus normal return and the exact returned word, with no restriction on the pair fields.
For dec2flt_with_trace::<f64> it additionally preserves the public result and the complete trace: its control-flow variant; sign-stripped body and lexical sign; numeric and special helper results; signed native input and native result; first integer operands and result; second-call guard, optional operands and result, comparison and forced-deferral fact; post-comparison pair; slow-path guard and optional result; selected pair; assembled unsigned word; pre-sign assembly result; sign-application fact; and final word. Public dec2flt::<f64> is exactly the first projection of that interface, and direct special and native returns select no raw pair.

Proof

The fresh extraction record reference/model-evidence/setup-reproduction.txt pins all six tool executables by SHA-256, gives the empty Cargo/Charon/Aeneas argument configuration, and records the effective development cfg. Its Cargo, Charon, and Aeneas executions all exit successfully. Fresh Aeneas output is byte-for-byte the frozen generated.lean, with SHA-256 45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9. The raw source has no placeholder. The compatibility check reports no unapproved axiom and isolates exactly 24 external declarations; the complete inventory equals the 24 entries of Tablet/model-support.json. compose-native --check reports an unchanged composition and equal expected and actual Preamble hashes. Thus all transparent extracted declarations come from this one pinned source and every nontransparent operation is explicit. The premise assigning each external its owning definition deliberately leaves that definition's primitive-semantics proof to its own preservation record; no primitive binding is re-proved here.
The paired meanings of all 24 owners make that composition premise concrete. The binary64 carrier is the complete raw-word representation of F64. Its clone, precision constant, NaN and infinity constants, field masks, classification, bit conversions, arithmetic, negation, and asserted integer conversion have respectively the meanings in ModelF64Clone, ModelF64MantissaDigits, ModelF64Nan, ModelF64Infinity, ModelF64NegInfinity, ModelF64ExponentMask, ModelF64MantissaMask, ModelF64Classify, ModelF64ToBits, ModelF64FromBits, ModelF64Mul, ModelF64Div, ModelF64Neg, and ModelF64FromU64. The four bounded word operations have the Rust meanings in ModelU64BitAnd, ModelU64BitOr, ModelU64Shl, and ModelU64Shr; the digit test has the meaning in ModelU8IsAsciiDigit. Option branching and residual return have the meanings in ModelOptionBranch and ModelOptionFromResidual; first-element and split-first observation have the meanings in ModelSliceFirst and ModelSliceSplitFirst; and string-to-byte observation has the meaning in ModelStrAsBytes. These are exactly the semantic operations substituted for the inventoried externals.
The source carrier used below is the arbitrary-byte, length-at-most 2^{63}-1 slice of SourceValidByteSlice. The abstract domains and observations used in the GOAL applications are those of DecimalGoalVocabulary; their concrete UTF-8 string predicate, lexical grammar, decimal values, binary64 rounding and classification, sign, and unrestricted raw-pair assembly are those of DecimalGoalVocabularyDefault. Thus the composition cites the paired meanings that connect its source domains and observations to the GOAL vocabulary, rather than inferring those meanings from boundary inventory alone.
The complete upstream-to-crate inventory and its source hashes are recorded in reference/model-evidence/source-adaptation-delta.txt; its exact aggregate byte diff is retained in reference/model-evidence/source-adaptation-delta.diff. The supplied fpu.rs, lemire.rs, and table.rs are byte-identical. The standalone namespace and local error shell introduce no call. The GOALs observe only panic versus normal return and the outer Ok/Err discriminant, so the shell's private kind and formatting are unobserved; no identity with an unpinned core error payload is asserted. Visibility and removed Debug derives do not affect values. The retained generic bodies use none of the removed trait operations; the direct Mul, Div, and Neg clauses and calls are the operations already implied by Lemire. Only the u64 integer instance and f64 Float, FloatExt, and Lemire instances can participate in an f64 execution, so disabling the u16/u32 and f16/f32 instances changes no such call.
The same delta record compares each constant, table entry, and specialized decoder with its source expression. The retained decoder is the source default after substituting the f64/u64 field widths and masks; the fast-path bounds are the source formula results; and the match over power-of-ten words has the same masked index and exact words as the source array. The toolchain-specific words, masks, classifications, casts, and rounding behavior are independently pinned in reference/model-evidence/binary64-boundary.txt. The frozen from_u64 Rust body is the enabled assertion followed by the u64 as f64 conversion. Because #[charon::opaque] applies to the whole function, neither operation inside that body is transparent in the extraction: the whole method is the single inventoried external. Its callers, their guards, and the surrounding native computation remain transparent. ModelF64FromU64 supplies exactly successful integer conversion for v\leq2^{53} and assertion failure otherwise.
All other changed bodies are syntax-directed rewrites. Indexed digit scans test the same byte, use the same wrapping subtraction and accumulator update, advance by the same amount, and stop at the same first nondigit as the source closures and split_first loops. Extracted helpers receive the same slices and mutable values, visit bytes in the same forward or reverse order, and retain every saturating, wrapping, and checked operation. Delayed returns set a result flag, execute no intervening state update, leave the loop through that flag, and immediately return the source value. In particular, casts and length-derived additions on very large inputs keep their original panic or normal behavior rather than acquiring a convenience size bound.
Finally, direct comparison of the supplied dispatcher with the instrumented body shows identical sequencing. Both strip at most one sign, reject empty or sign-only input, call the numeric helper first and the special helper only after its None, overwrite only the parsed sign, try the enabled native path, make the first integer call, and evaluate the checked mantissa+1 and second call under exactly the source short-circuit guard. Both force the same deferral on unequal pairs, call the slow helper on the unchanged body exactly for a negative post-comparison exponent, assemble the same selected pair, and apply the sign last. Every trace field is either one of those already computed values or the same nonmutating cast/shift/OR word used by assembly. Hence recording the trace and discarding it in the public projection changes neither call order, guards, state, panic points, nor any returned observation.
The exact source carrier condition is separately evidenced by reference/model-evidence/source-valid-byte-slice.txt: on this 64-bit target a byte slice has arbitrary bytes and length at most isize::MAX, while a Rust string adds UTF-8 validity. Sub-slicing preserves the length bound and need not preserve an independent string type. These facts establish all domains and observations in the claim independently of the truth or falsity of any GOAL.

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

extraction-evidence/COMMAND.json

Open file

{"declaration_reader_sha256":"76f60cf0b867fad9727d2256d32b306c8cba3725216a4225d0f83add77fd6158","extraction_provenance":{"extraction_toolchain":{"aeneas":"fa699427","aeneas_revision":"fa699427cdfa8f604b891fb0223ef42883dd7dc4","cargo_features":[{"features":["default"],"name":"dec2flt-model","source":"workspace:Cargo.toml","version":"0.1.0"}],"cargo_lock_sha256":"bc644c624ded89197356bbd65d995054b7fb08e5bdfbaa38c6e7c7a53772cecf","cfg":["debug_assertions","emscripten_wasm_eh","feature=\"default\"","fmt_debug=\"full\"","overflow_checks","panic=\"unwind\"","relocation_model=\"pic\"","target_abi=\"\"","target_arch=\"x86_64\"","target_endian=\"little\"","target_env=\"gnu\"","target_family=\"unix\"","target_feature=\"fxsr\"","target_feature=\"sse\"","target_feature=\"sse2\"","target_feature=\"x87\"","target_has_atomic","target_has_atomic=\"16\"","target_has_atomic=\"32\"","target_has_atomic=\"64\"","target_has_atomic=\"8\"","target_has_atomic=\"ptr\"","target_has_atomic_load_store","target_has_atomic_load_store=\"16\"","target_has_atomic_load_store=\"32\"","target_has_atomic_load_store=\"64\"","target_has_atomic_load_store=\"8\"","target_has_atomic_load_store=\"ptr\"","target_has_atomic_primitive_alignment=\"16\"","target_has_atomic_primitive_alignment=\"32\"","target_has_atomic_primitive_alignment=\"64\"","target_has_atomic_primitive_alignment=\"8\"","target_has_atomic_primitive_alignment=\"ptr\"","target_has_reliable_f128","target_has_reliable_f16","target_has_reliable_f16_math","target_object_format=\"elf\"","target_os=\"linux\"","target_pointer_width=\"64\"","target_thread_local","target_vendor=\"unknown\"","ub_checks","unix"],"charon":"0.1.216","charon_revision":"6f058254eb741c12e9b388df07adaf7cc8aac8ed","extraction_profile":"dev","lean":"4.30.0-rc2","overflow_checks":true,"panic_strategy":"unwind","rustc_vv":"rustc 1.98.0-nightly (14210df0e 2026-05-31)\nbinary: rustc\ncommit-hash: 14210df0e27ccd7d9e6a05b8085cbd438e4bbc65\ncommit-date: 2026-05-31\nhost: x86_64-unknown-linux-gnu\nrelease: 1.98.0-nightly\nLLVM version: 22.1.6\n","target_pointer_width":64,"target_triple":"x86_64-unknown-linux-gnu"},"extractor_stack":["charon@0.1.216","aeneas@fa699427"],"extractor_toolchain_sha256":"18657da0659dee7889ed8a937b136c9abbc3a35e9050241cd8201c94fd232323","not_recorded":[],"source_digests":[{"source_file":"lib.rs","source_sha256":"63c7f58df6caff552519c92155d902daf8a1015797adcd3f357f8b8cf1652b00"}]},"extractor_script_path":"/home/leanagent/pv_runs/trellis-native-implementation-v91/scripts/extract_pv_model.py","extractor_script_sha256":"cc1fdd50a78185c7bb564b715c554cb35d9fc09ed566b6c3d4f482f2d27ef67d","kernel_gate_checkers":[],"log_concatenation_order":"runs_then_steps_in_array_order","runs":[{"run_role":"primary","steps":[{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","-vV"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"rustc-version","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/pv_spike/tools/charon/bin/charon","cargo","--preset=aeneas","--dest-file","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc","--","--offline","--profile","dev","--target","x86_64-unknown-linux-gnu"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"charon","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/cargo","metadata","--format-version=1","--locked","--offline","--filter-platform","x86_64-unknown-linux-gnu"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"cargo-metadata","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/cargo","rustc","--lib","--locked","--offline","--profile","dev","--target","x86_64-unknown-linux-gnu","--","--print","cfg"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"cargo-rustc-cfg","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/pv_spike/tools/aeneas/bin/aeneas","-backend","lean","-dest","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen","-emit-json","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"aeneas","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"}]}],"schema":"trellis-extraction-command/v1","tool_source_checkouts":[]}
extraction-evidence/DETERMINISM.json

Open file

{"comparison":"generated_lean_and_complete_tablet_tree_byte_identity","generated_lean_byte_identical":false,"generated_lean_sha256":["45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9"],"kernel_filespec_gate":"not_run","kernel_prescribed_region_gate":"not_run","namespace_context_roundtrip_gate":"not_run","result_sha256":"31059e900d9ee03a54504c1dd3560a943d6c0f883fba737163b1ca0cb40065b0","run_roles":["primary"],"schema":"trellis-extraction-determinism/v2","status":"not_run","tablet_root_sha256":["5be7a89d6b46429df3229db0d97b337dfb51cea483d439817e51b774a2dd5cf1"],"tablet_tree_byte_identical":false}
extraction-evidence/RESULT.json

Open file

{"command_sha256":"5f26225136b8c7c4d7f95615e3e8ff8b357e523eeada4bc649e50f9c76cb9bda","runs":[{"generated_lean_sha256":"45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9","run_role":"primary","steps":[{"exit_status":0,"stderr_byte_length":0,"stderr_offset":0,"stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","stdout_byte_length":212,"stdout_offset":0,"stdout_sha256":"e6ea0da4a3301256a0a0dc0d67d11acf4e83e0d1bff5dd987ccdaa43708714bc","tool":"rustc-version"},{"exit_status":0,"stderr_byte_length":654,"stderr_offset":0,"stderr_sha256":"85f314396a5cc9f2303d9848c2d0ea392b64a71cb47e7b0914fd3b8acc916f02","stdout_byte_length":0,"stdout_offset":212,"stdout_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","tool":"charon"},{"exit_status":0,"stderr_byte_length":0,"stderr_offset":654,"stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","stdout_byte_length":2897,"stdout_offset":212,"stdout_sha256":"d792566b25914f10c1a27d3c55607a43dd6bcd31b381f8d54caa7d23257269ef","tool":"cargo-metadata"},{"exit_status":0,"stderr_byte_length":302,"stderr_offset":654,"stderr_sha256":"865b65d937d16c61cd9b975adc967136f6739ef2149207ae43742241f2f37686","stdout_byte_length":1062,"stdout_offset":3109,"stdout_sha256":"4081a320e6292139b4a673d225682dc054b77cba113b8c8a8fbb0593f824b713","tool":"cargo-rustc-cfg"},{"exit_status":0,"stderr_byte_length":6916,"stderr_offset":956,"stderr_sha256":"9c2b4695f1b3bb4e7fe3bf52b92d44fd21bed1de3047b698c950eafcc085c00b","stdout_byte_length":933,"stdout_offset":4171,"stdout_sha256":"35255952c6ce5b89d1280d096dff50ffcfc94817c3aafa58beda6db7e66721df","tool":"aeneas"}],"tablet_root_sha256":"5be7a89d6b46429df3229db0d97b337dfb51cea483d439817e51b774a2dd5cf1"}],"schema":"trellis-extraction-result/v2","stderr_byte_length":7872,"stderr_sha256":"c284799d633c64b898f716d62fbf1146c173227bd6bd44309c6504a43926e000","stdout_byte_length":5104,"stdout_sha256":"8e0aed62f6941e7c81b09d5c5b63ea7602756e69e4bcce9944258b229a9a0ba3"}
extraction-evidence/STDERR.bin

Open file

   Compiling dec2flt-model v0.1.0 (/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate)
warning: feature `f16` is declared but not used
 --> lib.rs:2:46
  |
2 | #![feature(cfg_target_has_reliable_f16_f128, f16, float_masks, register_tool, staged_api)]
  |                                              ^^^
  |
  = note: `#[warn(unused_features)]` (part of `#[warn(unused)]`) on by default

warning: `dec2flt-model` (lib) generated 1 warning
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.44s
   Compiling dec2flt-model v0.1.0 (/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.02s
[?25lApplied prepasses:  [------------------------------------------------]   0/203 ⠋

Applied prepasses:  [------------------------------------------------]   1/203 ⠋

Applied prepasses:  [#####-------------------------------------------]  24/203 ⠋

Applied prepasses:  [########----------------------------------------]  38/203 ⠋

Applied prepasses:  [##############################------------------] 128/203 ⠙
Applied prepasses:  [################################################] 203/203 ✔️
[?25h[?25lTranslated globals:  [-------------------------------------------------]  0/50 ⠋
Translated globals:  [#################################################] 50/50 ✔️
[?25h[?25lTranslated opaque functions:  [----------------------------------------]  0/87 ⠋
Translated opaque functions:  [########################################] 87/87 ✔️
[?25h[?25lTranslated transparent functions:  [---------------------------------]   0/107 ⠋

Translated transparent functions:  [---------------------------------]   1/107 ⠙

Translated transparent functions:  [###------------------------------]  10/107 ⠙

Translated transparent functions:  [######---------------------------]  22/107 ⠹

Translated transparent functions:  [##########-----------------------]  35/107 ⠹

Translated transparent functions:  [#############--------------------]  44/107 ⠹

Translated transparent functions:  [##############-------------------]  48/107 ⠸

Translated transparent functions:  [###############------------------]  51/107 ⠸

Translated transparent functions:  [##################---------------]  59/107 ⠸

Translated transparent functions:  [##################---------------]  60/107 ⠼

Translated transparent functions:  [##################---------------]  61/107 ⠼

Translated transparent functions:  [####################-------------]  65/107 ⠼

Translated transparent functions:  [#####################------------]  69/107 ⠼

Translated transparent functions:  [#####################------------]  70/107 ⠴

Translated transparent functions:  [######################-----------]  72/107 ⠴

Translated transparent functions:  [######################-----------]  73/107 ⠦

Translated transparent functions:  [######################-----------]  74/107 ⠦

Translated transparent functions:  [#######################----------]  77/107 ⠦

Translated transparent functions:  [########################---------]  78/107 ⠧

Translated transparent functions:  [########################---------]  79/107 ⠧

Translated transparent functions:  [########################---------]  81/107 ⠇

Translated transparent functions:  [#########################--------]  82/107 ⠇

Translated transparent functions:  [#########################--------]  83/107 ⠏

Translated transparent functions:  [#########################--------]  84/107 ⠏

Translated transparent functions:  [##########################-------]  86/107 ⠋

Translated transparent functions:  [###########################------]  88/107 ⠋

Translated transparent functions:  [###########################------]  89/107 ⠋

Translated transparent functions:  [###########################------]  90/107 ⠙

Translated transparent functions:  [############################-----]  91/107 ⠙

Translated transparent functions:  [############################-----]  93/107 ⠹

Translated transparent functions:  [############################-----]  94/107 ⠹

Translated transparent functions:  [#############################----]  95/107 ⠸

Translated transparent functions:  [#############################----]  97/107 ⠸

Translated transparent functions:  [##############################---]  99/107 ⠼

Translated transparent functions:  [##############################---] 100/107 ⠼

Translated transparent functions:  [###############################--] 102/107 ⠴

Translated transparent functions:  [###############################--] 103/107 ⠦

Translated transparent functions:  [################################-] 104/107 ⠦

Translated transparent functions:  [################################-] 105/107 ⠧

Translated transparent functions:  [################################-] 106/107 ⠇

Translated transparent functions:  [#################################] 107/107 ⠏
Translated transparent functions:  [#################################] 107/107 ✔️
[?25h[?25lTranslated trait declarations:  [--------------------------------------]  0/49 ⠋
Translated trait declarations:  [########################--------------] 31/49 ✔️
[?25h[?25lTranslated trait impls:  [---------------------------------------------]  0/85 ⠋
Translated trait impls:  [#################################------------] 64/85 ✔️
[?25h[?25lPost-processed translated opaque functions:  [-------------------------]  0/87 ⠋

Post-processed translated opaque functions:  [-------------------------]  1/87 ⠙
Post-processed translated opaque functions:  [#########################] 87/87 ✔️
[?25h[?25lPost-processed translated transparent functions:  [------------------]   0/107 ⠋

Post-processed translated transparent functions:  [------------------]   1/107 ⠋

Post-processed translated transparent functions:  [#-----------------]  10/107 ⠙

Post-processed translated transparent functions:  [##----------------]  12/107 ⠙

Post-processed translated transparent functions:  [##----------------]  13/107 ⠹

Post-processed translated transparent functions:  [##----------------]  14/107 ⠹

Post-processed translated transparent functions:  [##----------------]  16/107 ⠸

Post-processed translated transparent functions:  [##----------------]  17/107 ⠼

Post-processed translated transparent functions:  [###---------------]  18/107 ⠼

Post-processed translated transparent functions:  [###---------------]  23/107 ⠴

Post-processed translated transparent functions:  [####--------------]  27/107 ⠴

Post-processed translated transparent functions:  [#####-------------]  31/107 ⠴

Post-processed translated transparent functions:  [######------------]  37/107 ⠴

Post-processed translated transparent functions:  [########----------]  50/107 ⠴

Post-processed translated transparent functions:  [###############---]  95/107 ⠦

Post-processed translated transparent functions:  [################--]  99/107 ⠦

Post-processed translated transparent functions:  [################--] 100/107 ⠧

Post-processed translated transparent functions:  [################--] 101/107 ⠧

Post-processed translated transparent functions:  [#################-] 103/107 ⠧

Post-processed translated transparent functions:  [#################-] 105/107 ⠇

Post-processed translated transparent functions:  [##################] 107/107 ⠏
Post-processed translated transparent functions:  [##################] 107/107 ✔️
[?25h
extraction-evidence/STDOUT.bin

Open file

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
{"packages":[{"name":"dec2flt-model","version":"0.1.0","id":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0","license":null,"license_file":null,"description":null,"source":null,"dependencies":[],"targets":[{"kind":["lib"],"crate_types":["lib"],"name":"dec2flt_model","src_path":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate/lib.rs","edition":"2024","doc":true,"doctest":true,"test":true}],"features":{"default":[],"optimize_for_size":[]},"manifest_path":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate/Cargo.toml","metadata":null,"publish":[],"authors":[],"categories":[],"keywords":[],"readme":null,"repository":null,"homepage":null,"documentation":null,"edition":"2024","links":null,"default_run":null,"rust_version":null}],"workspace_members":["path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"],"workspace_default_members":["path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"],"resolve":{"nodes":[{"id":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0","dependencies":[],"deps":[],"features":["default"]}],"root":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"},"target_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","build_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","version":1,"workspace_root":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate","metadata":null}
debug_assertions
emscripten_wasm_eh
feature="default"
fmt_debug="full"
overflow_checks
panic="unwind"
relocation_model="pic"
target_abi=""
target_arch="x86_64"
target_endian="little"
target_env="gnu"
target_family="unix"
target_feature="fxsr"
target_feature="sse"
target_feature="sse2"
target_feature="x87"
target_has_atomic
target_has_atomic="16"
target_has_atomic="32"
target_has_atomic="64"
target_has_atomic="8"
target_has_atomic="ptr"
target_has_atomic_load_store
target_has_atomic_load_store="16"
target_has_atomic_load_store="32"
target_has_atomic_load_store="64"
target_has_atomic_load_store="8"
target_has_atomic_load_store="ptr"
target_has_atomic_primitive_alignment="16"
target_has_atomic_primitive_alignment="32"
target_has_atomic_primitive_alignment="64"
target_has_atomic_primitive_alignment="8"
target_has_atomic_primitive_alignment="ptr"
target_has_reliable_f128
target_has_reliable_f16
target_has_reliable_f16_math
target_object_format="elf"
target_os="linux"
target_pointer_width="64"
target_thread_local
target_vendor="unknown"
ub_checks
unix
[Info ] Imported: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc
[Info ] Generated: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/M.lean
[Info ] Generated: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/translation.json
[Warn ] The crate contains extracted external, unknown definitions: we advise using the option -split-files to allow manually providing these definitions in separate files.
[Info ] Total execution time: 7.337683 seconds
reference/model-evidence/adaptation-constants-probe.rs

Open file

fn main() {
    let largest_power_of_ten = (1024_f64 / std::f64::consts::LOG2_10) as i32;
    let log2_5 = std::f64::consts::LOG2_10 - 1.0;
    let max_exponent_fast_path = (53_f64 / log2_5) as i64;
    let max_exponent_disguised =
        max_exponent_fast_path + (53_f64 / std::f64::consts::LOG2_10) as i64;

    println!("largest_power_of_ten={largest_power_of_ten}");
    println!("max_exponent_fast_path={max_exponent_fast_path}");
    println!("max_exponent_disguised={max_exponent_disguised}");
    println!("neg_nan={:016x}", (-f64::NAN).to_bits());

    for (exponent, value) in IntoIterator::into_iter([
        1e0_f64, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11,
        1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22,
    ])
    .enumerate()
    {
        println!("pow10_{exponent}={:016x}", value.to_bits());
    }
}
reference/model-evidence/binary64-boundary.txt

Open file

Primary evidence for the binary64 boundary
==========================================

Scope and identities
--------------------

This record concerns the frozen x86_64-unknown-linux-gnu extraction, the
adapted Rust crate retained in this repository, and the installed toolchain
named by modeling-input/SETUP.md. The probe source is retained at
reference/model-evidence/binary64-probe.rs; no scratch source is required to
reproduce it.

Toolchain executable:
  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
Target:
  x86_64-unknown-linux-gnu
rustc executable SHA-256:
  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
Probe source SHA-256:
  68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
Compiled probe SHA-256:
  f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
Frozen generated.lean SHA-256:
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9
Frozen modeling-input/manifest.json SHA-256:
  a1fadc68519dfb08ec739d1f2e5d7ff558f696a3145a25bbb2934f2bf4aa04d2
Approved Binary64ModelDefault.lean SHA-256 at the time of this record:
  03ae48fb631e6242bd21bf95d0481b66acae05f8cab343c7ab279b3c116538a3

Exact reproduction commands
---------------------------

Run from the repository root:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/binary64-probe.rs
  B=.trellis/scratch/binary64-probe
  "$R" --version --verbose
  sha256sum "$R"
  sha256sum "$P"
  "$R" --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$B"
  "$B"

Raw output
----------

  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
  rustc_sha256=162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  probe_sha256=68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e
  binary_sha256=f49942b5558d9073d879c724067a771cddd07f1543efc6d1d8ee691f8e25a322
  target_arch=x86_64
  mantissa_digits=53
  exponent_mask=7ff0000000000000
  mantissa_mask=000fffffffffffff
  nan=7ff8000000000000
  infinity=7ff0000000000000
  neg_infinity=fff0000000000000
  nan_category=Nan
  infinity_category=Infinite
  zero_category=Zero
  subnormal_category=Subnormal
  normal_category=Normal
  from_bits_to_bits=7ff0000000000001
  neg_payload_nan=fff0000000000001
  neg_zero=8000000000000000
  subnormal_tie_to_even_zero=0000000000000000
  subnormal_tie_to_even_two=0000000000000002
  normal_division=3fb999999999999a
  mul_negative_zero=8000000000000000
  div_negative_zero=8000000000000000
  div_negative_infinity=fff0000000000000
  mul_overflow=7ff0000000000000
  mul_zero_infinity_is_nan=true
  div_zero_zero_is_nan=true
  mul_nan_is_nan=true
  cast_2_pow_53=4340000000000000
  cast_2_pow_53_plus_1=4340000000000000

Pinned Rust library sources
---------------------------

The installed sources below belong to the same named toolchain. Their
SHA-256 identities are:

  core/src/primitive_docs.rs
    c4b8627dd67d5dac8f383f383a9e7ff1229ea43e7599610fc61988694cf0f3e5
  core/src/num/f64.rs
    84540a6a59e347c63caabe12cf895ba1239c76a50682471567007138fac1c618
  core/src/clone.rs
    23f9cfc80347fde6b8457d46fbf7a2b8d9f34c8c58601b0b6f714ca2f6d1976b

The exact relevant text of core/src/primitive_docs.rs is:

  #[rustc_doc_primitive = "f64"]
  #[doc(alias = "double")]
  /// A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
  ///
  /// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
  /// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
  /// values][wikipedia] for more information.

The referenced primitive-f32 documentation supplies the common primitive
floating-point operation rules quoted next:

  /// - −0.0: IEEE 754 floating-point numbers have a bit that indicates their sign, so −0.0 is a
  ///   possible value. For comparison −0.0 = +0.0, but floating-point operations can carry
  ///   the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
  ///   a negative number rounded to a value smaller than a float can represent also produces −0.0.
  /// - [∞](#associatedconstant.INFINITY) and
  ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
  ///   like `1.0 / 0.0`.
  ///
  /// When a primitive operation (addition, subtraction, multiplication, or
  /// division) is performed on this type, the result is rounded according to the
  /// roundTiesToEven direction defined in IEEE 754-2008. That means:
  ///
  /// - The result is the representable value closest to the true value, if there
  ///   is a unique closest representable value.
  /// - If the true value is exactly half-way between two representable values,
  ///   the result is the one with an even least-significant binary digit.
  /// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
  ///   `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
  ///   true value's sign).

The same file explicitly separates arithmetic NaN choice from exact bitwise
operations; its exact relevant text is:

  /// The rules for NaN values differ between *arithmetic* and *non-arithmetic* (or "bitwise")
  /// operations. The non-arithmetic operations are unary `-`, `abs`, `copysign`, `signum`,
  /// `{to,from}_bits`, `{to,from}_{be,le,ne}_bytes` and `is_sign_{positive,negative}`. These
  /// operations are guaranteed to exactly preserve the bit pattern of their input except for possibly
  /// changing the sign bit.
  ///
  /// The following rules apply when a NaN value is returned from an arithmetic operation:
  /// - The result has a non-deterministic sign.
  /// - The quiet bit and payload are non-deterministically chosen from
  ///   the following set of options:
  ///
  ///   - **Preferred NaN**: The quiet bit is set and the payload is all-zero.
  ///   - **Quieting NaN propagation**: The quiet bit is set and the payload is copied from any input
  ///     operand that is a NaN. If the inputs and outputs do not have the same payload size (i.e., for
  ///     `as` casts), then
  ///     - If the output is smaller than the input, low-order bits of the payload get dropped.
  ///     - If the output is larger than the input, the payload gets filled up with 0s in the low-order
  ///       bits.
  ///   - **Unchanged NaN propagation**: The quiet bit and payload are copied from any input operand
  ///     that is a NaN. If the inputs and outputs do not have the same size (i.e., for `as` casts), the
  ///     same rules as for "quieting NaN propagation" apply, with one caveat: if the output is smaller
  ///     than the input, dropping the low-order bits may result in a payload of 0; a payload of 0 is not
  ///     possible with a signaling NaN (the all-0 significand encodes an infinity) so unchanged NaN
  ///     propagation cannot occur with some inputs.
  ///   - **Target-specific NaN**: The quiet bit is set and the payload is picked from a target-specific
  ///     set of "extra" possible NaN payloads. The set can depend on the input operand values.
  ///     See the table below for the concrete NaNs this set contains on various targets.
  ///
  /// | `target_arch` | Extra payloads possible on this platform |
  /// |---------------|------------------------------------------|
  /// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |

Thus the model's preferred quiet NaN is one permitted result whenever
multiplication or division returns NaN. This does not claim that arbitrary
Rust arithmetic NaNs have those exact bits. By contrast, unary negation and
bit conversion must preserve all non-sign bits exactly, including for every
NaN payload.

The exact relevant declarations in core/src/num/f64.rs are:

  pub const MANTISSA_DIGITS: u32 = 53;
  pub const NAN: f64 = 0.0_f64 / 0.0_f64;
  pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
  pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
  pub const SIGN_MASK: u64 = 0x8000_0000_0000_0000;
  pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000;
  pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff;

  pub const fn classify(self) -> FpCategory {
      // We used to have complicated logic here that avoids the simple bit-based tests to work
      // around buggy codegen for x87 targets (see
      // https://github.com/rust-lang/rust/issues/114479). However, some LLVM versions later, none
      // of our tests is able to find any difference between the complicated and the naive
      // version, so now we are back to the naive version.
      let b = self.to_bits();
      match (b & Self::MANTISSA_MASK, b & Self::EXPONENT_MASK) {
          (0, Self::EXPONENT_MASK) => FpCategory::Infinite,
          (_, Self::EXPONENT_MASK) => FpCategory::Nan,
          (0, 0) => FpCategory::Zero,
          (_, 0) => FpCategory::Subnormal,
          _ => FpCategory::Normal,
      }
  }

  pub const fn to_bits(self) -> u64 {
      // SAFETY: `u64` is a plain old datatype so we can always transmute to it.
      unsafe { mem::transmute(self) }
  }

  pub const fn from_bits(v: u64) -> Self {
      // It turns out the safety issues with sNaN were overblown! Hooray!
      // SAFETY: `u64` is a plain old datatype so we can always transmute from it.
      unsafe { mem::transmute(v) }
  }

The exact scalar clone body in core/src/clone.rs is:

  impl const Clone for $t {
      #[inline(always)]
      fn clone(&self) -> Self {
          *self
      }
  }

Frozen adapted source
---------------------

The relevant retained source file hashes are:

  crate/traits.rs
    9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf
  crate/dec2flt/mod.rs
    ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d
  crate/dec2flt/parse.rs
    50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f
  crate/dec2flt/decimal.rs
    633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb
  crate/dec2flt/lemire.rs
    fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1
  crate/dec2flt/slow.rs
    93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485

The dispatcher excerpts below are reproduced from the identified file by
running these commands from the repository root:

  sha256sum crate/dec2flt/mod.rs
  sed -n '354,403p' crate/dec2flt/mod.rs
  sed -n '405,422p' crate/dec2flt/mod.rs
  sed -n '465,475p' crate/dec2flt/mod.rs
  sed -n '506,523p' crate/dec2flt/mod.rs

Exact constant and bit-conversion excerpt from crate/traits.rs:

  impl Float for f64 {
      type Int = u64;

      const INFINITY: Self = Self::INFINITY;
      const NEG_INFINITY: Self = Self::NEG_INFINITY;
      const NAN: Self = Self::NAN;
      // Bit-identical to the upstream `-f64::NAN`, without the unsupported
      // compile-time float negation.
      const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);

      const BITS: u32 = 64;
      const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
      const EXP_MASK: Self::Int = Self::EXPONENT_MASK;
      const SIG_MASK: Self::Int = Self::MANTISSA_MASK;

      fn to_bits(self) -> Self::Int {
          self.to_bits()
      }

      fn classify(self) -> FpCategory {
          self.classify()
      }
  }

  impl FloatExt for f64 {
      #[inline]
      fn from_u64_bits(v: u64) -> Self {
          f64::from_bits(v)
      }

Exact derived-constant defaults from crate/traits.rs:

  /// The number of bits in the significand, *excluding* the hidden bit.
  const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;

  /// Number of bits in the exponent.
  const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

  /// The saturated (maximum bitpattern) value of the exponent, i.e. the infinite
  /// representation.
  ///
  /// This shifted fully right, use `EXP_MASK` for the shifted value.
  const EXP_SAT: u32 = (1 << Self::EXP_BITS) - 1;

  /// Signed version of `EXP_SAT` since we convert a lot.
  const INFINITE_POWER: i32 = Self::EXP_SAT as i32;

  /// The exponent bias value. This is also the maximum value of the exponent.
  const EXP_BIAS: u32 = Self::EXP_SAT >> 1;

  /// Minimum exponent value of normal values.
  const EXP_MIN: i32 = -(Self::EXP_BIAS as i32 - 1);

Together with the f64-instance lines `BITS = 64` and
`SIG_TOTAL_BITS = Self::MANTISSA_DIGITS` in the preceding excerpt, these
defaults derive SIG_BITS, EXP_MIN, and INFINITE_POWER from the primitive
mantissa-digit constant rather than introducing independent parameters.

Exact asserted-conversion excerpt from crate/dec2flt/mod.rs:

  #[inline]
  // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
  // `charon::opaque` makes this entire asserted conversion external: both the
  // unchanged `debug_assert!` and the unchanged cast below are in the opaque
  // body. The callers, their fast-path guards, and their surrounding
  // computation remain mechanically visible. A corresponding model binding
  // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
  // exact binary64 conversion at or below that bound.
  #[charon::opaque]
  fn from_u64(v: u64) -> Self {
      debug_assert!(v <= Self::MAX_MANTISSA_FAST_PATH);
      v as _
  }

Here MAX_MANTISSA_FAST_PATH is the retained default 1 << 53.  The attribute is
attached to the function item, so the generated external stands for the whole
method, not merely the cast.  In the enabled-debug configuration the source
succeeds only when v <= 2^53; above it the assertion fails before the cast. On
the successful branch every integer is exactly representable, so the source
cast and the model rounder return the same word.

Exact power-table and assembly excerpts from crate/dec2flt/mod.rs:

  /// Maximum mantissa for the fast-path (`1 << 53` for f64).
  const MAX_MANTISSA_FAST_PATH: u64 = 1 << Self::SIG_TOTAL_BITS;

  const MAX_EXPONENT_FAST_PATH: i64 = 22;
  const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;
  const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;

  fn pow10_fast_path(exponent: usize) -> Self {
      // These bit patterns are exactly the source table's rounded binary64
      // literals.  The match is the same masked lookup; it merely keeps float
      // constants out of Aeneas's unsupported constant interpreter.
      match exponent & 31 {
          0 => f64::from_bits(0x3FF0_0000_0000_0000),
          1 => f64::from_bits(0x4024_0000_0000_0000),
          2 => f64::from_bits(0x4059_0000_0000_0000),
          3 => f64::from_bits(0x408F_4000_0000_0000),
          4 => f64::from_bits(0x40C3_8800_0000_0000),
          5 => f64::from_bits(0x40F8_6A00_0000_0000),
          6 => f64::from_bits(0x412E_8480_0000_0000),
          7 => f64::from_bits(0x4163_12D0_0000_0000),
          8 => f64::from_bits(0x4197_D784_0000_0000),
          9 => f64::from_bits(0x41CD_CD65_0000_0000),
          10 => f64::from_bits(0x4202_A05F_2000_0000),
          11 => f64::from_bits(0x4237_4876_E800_0000),
          12 => f64::from_bits(0x426D_1A94_A200_0000),
          13 => f64::from_bits(0x42A2_309C_E540_0000),
          14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
          15 => f64::from_bits(0x430C_6BF5_2634_0000),
          16 => f64::from_bits(0x4341_C379_37E0_8000),
          17 => f64::from_bits(0x4376_3457_85D8_A000),
          18 => f64::from_bits(0x43AB_C16D_674E_C800),
          19 => f64::from_bits(0x43E1_58E4_6091_3D00),
          20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
          21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
          22 => f64::from_bits(0x4480_F0CF_064D_D592),
          _ => f64::from_bits(0),
      }
  }

  fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {
      let mut word = x.m;
      word |= (x.p_biased as u64) << F::SIG_BITS;
      F::from_u64_bits(word)
  }

Exact native-call excerpt from crate/dec2flt/decimal.rs:

  fn can_use_fast_path<F: Lemire>(&self) -> bool {
      F::MIN_EXPONENT_FAST_PATH <= self.exponent
          && self.exponent <= F::MAX_EXPONENT_DISGUISED_FAST_PATH
          && self.mantissa <= F::MAX_MANTISSA_FAST_PATH
          && !self.many_digits
  }

  if !self.can_use_fast_path::<F>() {
      return None;
  }

  let value = if self.exponent <= F::MAX_EXPONENT_FAST_PATH {
      // normal fast path
      let value = F::from_u64(self.mantissa);
      if self.exponent < 0 {
          // Explicit trait calls preserve Rust arithmetic and resolve
          // the generic output type that Charon leaves ambiguous.
          core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
      } else {
          core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
      }
  } else {
      // disguised fast path
      let shift = self.exponent - F::MAX_EXPONENT_FAST_PATH;
      let mantissa = self.mantissa.checked_mul(INT_POW10[shift as usize])?;
      if mantissa > F::MAX_MANTISSA_FAST_PATH {
          return None;
      }
      core::ops::Mul::mul(
          F::from_u64(mantissa),
          F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
      )
  };

  if self.negative {
      Some(core::ops::Neg::neg(value))
  } else {
      Some(value)
  }

The preceding can_use_fast_path body, together with
MAX_MANTISSA_FAST_PATH = 1 << SIG_TOTAL_BITS and SIG_TOTAL_BITS = 53 for f64,
requires the exponent to lie between -22 and 37, the input mantissa to be at
most 2^53, and many_digits to be false. Consequently an ordinary arithmetic
call has a from_u64 operand in 0..=2^53. In its negative-exponent arm,
`-self.exponent` lies in 1..=22; in its nonnegative arm, `self.exponent` lies
in 0..=22. The disguised branch checks its multiplied mantissa against 2^53
before from_u64 and uses table index 22. The paired statement
Binary64NativeCallDomain does not assert this source reachability. It says
conditionally that a from_u64 argument at most 2^53 succeeds with a finite,
non-NaN word and that a table index at most 22 succeeds with a positive,
nonzero, finite, non-NaN word. Applying that conditional statement to the
guards just derived establishes those properties for the actual ordinary and
disguised calls, and in particular establishes that every executed divisor is
nonzero.

Exact special-value excerpt from crate/dec2flt/parse.rs:

  let float = match (register, len) {
      (INF_3, 3) => F::INFINITY,
      (INF_8, 8) => F::INFINITY,
      (NAN, 3) => F::NAN,
      _ => return None,
  };

  if negative { Some(-float) } else { Some(float) }

Thus the executed special route is INFINITY or NAN followed by conditional
negation; it does not select NEG_INFINITY or NEG_NAN directly.

The number helper has the exact source body

  pub fn parse_number(s: &[u8]) -> Option<Decimal> {
      if let Some((float, rest)) = parse_partial_number(s) {
          if rest == s.len() {
              return Some(float);
          }
      }
      None
  }

It returns only the Decimal produced by parse_partial_number; there is no
float type parameter or float operation at this boundary.

Exact dispatcher excerpts from crate/dec2flt/mod.rs
---------------------------------------------------

The entry of `dec2flt_with_trace` strips at most one leading sign, rejects
empty and sign-only inputs, calls `parse_number` on the unsigned body, and
calls `parse_inf_nan` only when `parse_number` returns `None`:

  /// Run the actual dispatcher while retaining its approved internal observations.
  pub fn dec2flt_with_trace<
      'a,
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &'a str,
  ) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
      let mut body = s.as_bytes();
      let Some(&c) = body.first() else {
          return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
      };
      let negative = c == b'-';
      if c == b'-' || c == b'+' {
          body = &body[1..];
      }
      if body.is_empty() {
          return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
      }

      let parse_number_result = parse_number(body);
      let parsed = match parse_number_result {
          Some(r) => r,
          None => {
              let parse_inf_nan_result = parse_inf_nan(body, negative);
              return match parse_inf_nan_result {
                  Some(value) => (
                      Ok(value),
                      Dec2FltTrace::Special {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                          result: value,
                      },
                  ),
                  None => (
                      Err(pfe_invalid()),
                      Dec2FltTrace::Invalid {
                          body,
                          negative,
                          parse_number_result,
                          parse_inf_nan_result,
                      },
                  ),
              };
          }
      };

Thus every `Err` arm shown here returns before `parsed` is available and before
the native, integer, slow, assembly, or final-negation code below it can run.
On a numeric result, the lexical sign is copied into the parsed record before
the native attempt, whose successful result also returns before raw-pair
assembly:

      let mut num = parsed;
      num.negative = negative;
      if !cfg!(feature = "optimize_for_size") {
          let fast_path_result = num.try_fast_path::<F>();
          if let Some(value) = fast_path_result {
              return (
                  Ok(value),
                  Dec2FltTrace::FastPath {
                      body,
                      negative,
                      parse_number_result,
                      fast_path_input: num,
                      fast_path_result,
                      result: value,
                  },
              );
          }
      }

If the native attempt does not return, the selected raw pair is assembled and
the source then conditionally negates it according to the lexical-sign flag:

      let selected_pair = fp;
      // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
      // it neither changes the selected pair nor introduces a new branch or call.
      let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
      let assembly_result = biased_fp_to_float::<F>(fp);
      let lexical_sign_applied = num.negative;
      let result = if lexical_sign_applied {
          core::ops::Neg::neg(assembly_result)
      } else {
          assembly_result
      };

The public `dec2flt` executes that same route and returns its result projection;
it does not reimplement or reorder any parsing or float operation:

  /// Converts a decimal string into a floating point number.
  #[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
  pub fn dec2flt<
      F: Lemire
          + core::ops::Div<Output = F>
          + core::ops::Mul<Output = F>
          + core::ops::Neg<Output = F>,
  >(
      s: &str,
  ) -> Result<F, ParseFloatError> {
      // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
      // clause admits exactly the same instances and lets Charon resolve the
      // explicit, source-equivalent final negation.
      // The public function is now exactly the result projection of the single
      // instrumented implementation.  No conversion step is duplicated, and
      // discarding the trace cannot affect Rust evaluation or the returned bits.
      dec2flt_with_trace::<F>(s).0
  }

The integer-tier helper has the source type and exact executable excerpts
below (long explanatory comments are elided). In particular it returns a raw
BiasedFp and contains no from_u64 cast, primitive float multiplication,
division, negation, or from_bits call:

  pub fn compute_float<F: Float>(q: i64, mut w: u64) -> BiasedFp {
      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);
      let fp_error = BiasedFp::zero_pow2(-1);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if w == 0 || q < F::SMALLEST_POWER_OF_TEN as i64 {
          return fp_zero;
      } else if q > F::LARGEST_POWER_OF_TEN as i64 {
          return fp_inf;
      }
      // Normalize our significant digits, so the most-significant bit is set.
      let lz = w.leading_zeros();
      w <<= lz;
      let (lo, hi) = compute_product_approx(q, w, F::SIG_BITS as usize + 3);
      if lo == 0xFFFF_FFFF_FFFF_FFFF {
          let inside_safe_exponent = (q >= -27) && (q <= 55);
          if !inside_safe_exponent {
              return fp_error;
          }
      }
      let upperbit = (hi >> 63) as i32;
      let mut mantissa = hi >> (upperbit + 64 - F::SIG_BITS as i32 - 3);
      let mut power2 = power(q as i32) + upperbit - lz as i32 - F::EXP_MIN + 1;
      if power2 <= 0 {
          if -power2 + 1 >= 64 {
              // Have more than 64 bits below the minimum exponent, must be 0.
              return fp_zero;
          }
          // Have a subnormal value.
          mantissa >>= -power2 + 1;
          mantissa += mantissa & 1;
          mantissa >>= 1;
          power2 = (mantissa >= (1_u64 << F::SIG_BITS)) as i32;
          return BiasedFp { m: mantissa, p_biased: power2 };
      }
      // Need to handle rounding ties. Normally, we need to round up,
      // but if we fall right in between and we have an even basis, we
      // need to round down.
      if lo <= 1
          && q >= F::MIN_EXPONENT_ROUND_TO_EVEN as i64
          && q <= F::MAX_EXPONENT_ROUND_TO_EVEN as i64
          && mantissa & 0b11 == 0b01
          && (mantissa << (upperbit + 64 - F::SIG_BITS as i32 - 3)) == hi
      {
          // Zero the lowest bit, so we don't round up.
          mantissa &= !1_u64;
      }
      // Round-to-even, then shift the significant digits into place.
      mantissa += mantissa & 1;
      mantissa >>= 1;
      if mantissa >= (2_u64 << F::SIG_BITS) {
          // Rounding up overflowed, so the carry bit is set. Set the
          // mantissa to 1 (only the implicit, hidden bit is set) and
          // increase the exponent.
          mantissa = 1_u64 << F::SIG_BITS;
          power2 += 1;
      }
      // Zero out the hidden bit.
      mantissa &= !(1_u64 << F::SIG_BITS);
      if power2 >= F::INFINITE_POWER {
          // Exponent is above largest normal value, must be infinite.
          return fp_inf;
      }
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact slow-tier source body from crate/dec2flt/slow.rs:

  pub(crate) fn parse_long_mantissa<F: Float>(s: &[u8]) -> BiasedFp {
      const MAX_SHIFT: usize = 60;
      const NUM_POWERS: usize = 19;
      const POWERS: [u8; 19] =
          [0, 3, 6, 9, 13, 16, 19, 23, 26, 29, 33, 36, 39, 43, 46, 49, 53, 56, 59];

      let get_shift = |n| {
          if n < NUM_POWERS { POWERS[n] as usize } else { MAX_SHIFT }
      };

      let fp_zero = BiasedFp::zero_pow2(0);
      let fp_inf = BiasedFp::zero_pow2(F::INFINITE_POWER);

      let mut d = parse_decimal_seq(s);

      // Short-circuit if the value can only be a literal 0 or infinity.
      if d.num_digits == 0 || d.decimal_point < -324 {
          return fp_zero;
      } else if d.decimal_point >= 310 {
          return fp_inf;
      }
      let mut exp2 = 0_i32;
      let mut loop_result = None;
      // Shift right toward (1/2 ... 1].
      while d.decimal_point > 0 && loop_result.is_none() {
          let n = d.decimal_point as usize;
          let shift = get_shift(n);
          d.right_shift(shift);
          if d.decimal_point < -DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_zero);
          } else {
              exp2 += shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // Shift left toward (1/2 ... 1].
      while d.decimal_point <= 0 && loop_result.is_none() {
          let shift = if d.decimal_point == 0 {
              match d.digits[0] {
                  digit if digit >= 5 => break,
                  0 | 1 => 2,
                  _ => 1,
              }
          } else {
              get_shift((-d.decimal_point) as _)
          };
          d.left_shift(shift);
          if d.decimal_point > DecimalSeq::DECIMAL_POINT_RANGE {
              loop_result = Some(fp_inf);
          } else {
              exp2 -= shift as i32;
          }
      }
      if let Some(result) = loop_result {
          return result;
      }
      // We are now in the range [1/2 ... 1] but the binary format uses [1 ... 2].
      exp2 -= 1;
      while F::EXP_MIN > exp2 {
          let mut n = (F::EXP_MIN - exp2) as usize;
          if n > MAX_SHIFT {
              n = MAX_SHIFT;
          }
          d.right_shift(n);
          exp2 += n as i32;
      }
      if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
          return fp_inf;
      }
      // Shift the decimal to the hidden bit, and then round the value
      // to get the high mantissa+1 bits.
      d.left_shift(F::SIG_BITS as usize + 1);
      let mut mantissa = d.round();
      if mantissa >= (1_u64 << (F::SIG_BITS + 1)) {
          // Rounding up overflowed to the carry bit, need to
          // shift back to the hidden bit.
          d.right_shift(1);
          exp2 += 1;
          mantissa = d.round();
          if (exp2 - F::EXP_MIN + 1) >= F::INFINITE_POWER {
              return fp_inf;
          }
      }
      let mut power2 = exp2 - F::EXP_MIN + 1;
      if mantissa < (1_u64 << F::SIG_BITS) {
          power2 -= 1;
      }
      // Zero out all the bits above the explicit mantissa bits.
      mantissa &= (1_u64 << F::SIG_BITS) - 1;
      BiasedFp { m: mantissa, p_biased: power2 }
  }

Exact final numeric-sign excerpt from crate/dec2flt/mod.rs:

  let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
  let assembly_result = biased_fp_to_float::<F>(fp);
  let lexical_sign_applied = num.negative;
  let result = if lexical_sign_applied {
      core::ops::Neg::neg(assembly_result)
  } else {
      assembly_result
  };

Thus a numeric execution that reaches the integer/slow selection route
assembles its selected pair with from_bits through biased_fp_to_float and only
then conditionally negates it. A successful try_fast_path returns earlier and
does not perform this assembly. compute_float and parse_long_mantissa produce
raw BiasedFp pairs and do not call from_u64, primitive float multiplication,
division, negation, or from_bits; they do, however, execute constants derived
from SIG_TOTAL_BITS before producing those pairs.

Retained structural-boundary evidence
-------------------------------------

Several adjacent structural bindings cite this same evidence record. Their
pinned library source identities are:

  core/src/num/mod.rs
    f0820f9dfb94999440c8cb4a349736fa21df7e5668e19b6b49e016ff67c05ce3
  core/src/option.rs
    7cf61204b05d98a95bc2e322d5fbfc1f4f91505109971917d9a7fb47151c50e6
  core/src/slice/mod.rs
    354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840
  core/src/str/mod.rs
    284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78

Exact ASCII-digit body from core/src/num/mod.rs:

  pub const fn is_ascii_digit(&self) -> bool {
      matches!(*self, b'0'..=b'9')
  }

Exact Option control-flow bodies from core/src/option.rs:

  fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
      match self {
          Some(v) => ControlFlow::Continue(v),
          None => ControlFlow::Break(None),
      }
  }

  fn from_residual(residual: Option<convert::Infallible>) -> Self {
      match residual {
          None => None,
      }
  }

Exact slice observation bodies from core/src/slice/mod.rs:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

Exact string-byte body from core/src/str/mod.rs:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }
reference/model-evidence/binary64-probe.rs

Open file

#![feature(float_masks)]

use std::num::FpCategory;

fn bits(label: &str, value: f64) {
    println!("{label}={:016x}", value.to_bits());
}

fn main() {
    println!("target_arch={}", std::env::consts::ARCH);
    println!("mantissa_digits={}", f64::MANTISSA_DIGITS);
    println!("exponent_mask={:016x}", f64::EXPONENT_MASK);
    println!("mantissa_mask={:016x}", f64::MANTISSA_MASK);
    bits("nan", f64::NAN);
    bits("infinity", f64::INFINITY);
    bits("neg_infinity", f64::NEG_INFINITY);

    for (label, value) in [
        ("nan_category", f64::NAN),
        ("infinity_category", f64::INFINITY),
        ("zero_category", 0.0),
        ("subnormal_category", f64::from_bits(1)),
        ("normal_category", 1.0),
    ] {
        let category = match value.classify() {
            FpCategory::Nan => "Nan",
            FpCategory::Infinite => "Infinite",
            FpCategory::Zero => "Zero",
            FpCategory::Subnormal => "Subnormal",
            FpCategory::Normal => "Normal",
        };
        println!("{label}={category}");
    }

    let payload_nan_word = 0x7ff0_0000_0000_0001_u64;
    println!(
        "from_bits_to_bits={:016x}",
        f64::from_bits(payload_nan_word).to_bits()
    );
    bits("neg_payload_nan", -f64::from_bits(payload_nan_word));
    bits("neg_zero", -0.0);

    bits("subnormal_tie_to_even_zero", f64::from_bits(1) * 0.5);
    bits("subnormal_tie_to_even_two", f64::from_bits(3) * 0.5);
    bits("normal_division", 1.0 / 10.0);
    bits("mul_negative_zero", -0.0 * 2.0);
    bits("div_negative_zero", -1.0 / f64::INFINITY);
    bits("div_negative_infinity", 1.0 / -0.0);
    bits("mul_overflow", f64::MAX * (1.0 + f64::EPSILON));
    println!("mul_zero_infinity_is_nan={}", (0.0 * f64::INFINITY).is_nan());
    println!("div_zero_zero_is_nan={}", (0.0_f64 / 0.0_f64).is_nan());
    println!("mul_nan_is_nan={}", (f64::NAN * 1.0).is_nan());

    bits("cast_2_pow_53", (1_u64 << 53) as f64);
    bits("cast_2_pow_53_plus_1", ((1_u64 << 53) + 1) as f64);
}
reference/model-evidence/native-boundary.txt

Open file

Native boundary inventory for Binary64Model

Reproduction command (repository root):
  python3 .trellis/scripts/pv_modeling.py inspect-native .

Tool identity for this reproduction:
  Python 3.14.4
  .trellis/scripts/pv_modeling.py
  sha256 915b29822cb4c47b70dabb1dc011514641deb2e428b62347fc31aa898de5e0d4

Top-level result:
  declaration_count: 24

The complete raw inspect-native records for the fourteen F64 externals follow.
They are copied from the command's complete index; no scratch artifact is needed
to review them.

[
  {
    "name": "F64.Insts.CoreCloneClone.clone",
    "extracted_signature": ": F64 → Result F64",
    "rust_symbol": "core::clone::impls::{impl core::clone::Clone for f64}::clone",
    "raw_declaration_sha256": "5eaad5fb9af034045cf0dafed5af85445fe4af9a78958259a15a1faddd1e8f05",
    "source_utf8": "/-- [core::clone::impls::{impl core::clone::Clone for f64}::clone]:\n    Source: '/rustc/library/core/src/clone.rs', lines 698:20-698:43\n    Name pattern: [core::clone::impls::{core::clone::Clone<f64>}::clone]\n    Visibility: public -/\n@[rust_fun \"core::clone::impls::{core::clone::Clone<f64>}::clone\"]\naxiom F64.Insts.CoreCloneClone.clone : F64 → Result F64\n"
  },
  {
    "name": "core.f64.F64.MANTISSA_DIGITS",
    "extracted_signature": ": Result Std.U32",
    "rust_symbol": "core::f64::{f64}::MANTISSA_DIGITS",
    "raw_declaration_sha256": "42b1b0c4d2c2bbc7271748fc78c518391f55bf6517c643667a6561a0ac6e771c",
    "source_utf8": "/-- [core::f64::{f64}::MANTISSA_DIGITS]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 412:4-412:34\n    Name pattern: [core::f64::{f64}::MANTISSA_DIGITS]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::MANTISSA_DIGITS\"]\naxiom core.f64.F64.MANTISSA_DIGITS : Result Std.U32\n"
  },
  {
    "name": "core.f64.F64.NAN",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::NAN",
    "raw_declaration_sha256": "a18685a80db5dbebe39151c7375a0470bb3905fe1228e5598a995a1cf017a768",
    "source_utf8": "/-- [core::f64::{f64}::NAN]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 509:4-509:22\n    Name pattern: [core::f64::{f64}::NAN]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::NAN\"] axiom core.f64.F64.NAN : Result F64\n"
  },
  {
    "name": "core.f64.F64.INFINITY",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::INFINITY",
    "raw_declaration_sha256": "f905901e67400987f49cddd13a8768644bed9e7e3f79c3a81b34879f494a2816",
    "source_utf8": "/-- [core::f64::{f64}::INFINITY]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 512:4-512:27\n    Name pattern: [core::f64::{f64}::INFINITY]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::INFINITY\"]\naxiom core.f64.F64.INFINITY : Result F64\n"
  },
  {
    "name": "core.f64.F64.NEG_INFINITY",
    "extracted_signature": ": Result F64",
    "rust_symbol": "core::f64::{f64}::NEG_INFINITY",
    "raw_declaration_sha256": "85f6e517e439c2f2d5c59aa29884ff38b2381c2f5dd7cb14e7947b232efe7f0e",
    "source_utf8": "/-- [core::f64::{f64}::NEG_INFINITY]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 515:4-515:31\n    Name pattern: [core::f64::{f64}::NEG_INFINITY]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::NEG_INFINITY\"]\naxiom core.f64.F64.NEG_INFINITY : Result F64\n"
  },
  {
    "name": "core.f64.F64.EXPONENT_MASK",
    "extracted_signature": ": Result Std.U64",
    "rust_symbol": "core::f64::{f64}::EXPONENT_MASK",
    "raw_declaration_sha256": "f1054e64392d8f9306e8c69015f0b521d9f387edda8458a3bae4773606f46a71",
    "source_utf8": "/-- [core::f64::{f64}::EXPONENT_MASK]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 615:4-615:32\n    Name pattern: [core::f64::{f64}::EXPONENT_MASK]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::EXPONENT_MASK\"]\naxiom core.f64.F64.EXPONENT_MASK : Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.MANTISSA_MASK",
    "extracted_signature": ": Result Std.U64",
    "rust_symbol": "core::f64::{f64}::MANTISSA_MASK",
    "raw_declaration_sha256": "dc3517faa141b7a7a016e9f73930af3c9af23d3e6d06874440d99eabbc846538",
    "source_utf8": "/-- [core::f64::{f64}::MANTISSA_MASK]\n    Source: '/rustc/library/core/src/num/f64.rs', lines 637:4-637:32\n    Name pattern: [core::f64::{f64}::MANTISSA_MASK]\n    Visibility: public -/\n@[rust_const \"core::f64::{f64}::MANTISSA_MASK\"]\naxiom core.f64.F64.MANTISSA_MASK : Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.classify",
    "extracted_signature": ": F64 → Result core.num.FpCategory",
    "rust_symbol": "core::f64::{f64}::classify",
    "raw_declaration_sha256": "9fedd442d1d0403c4a7323d8f4e95c51b8bd39bf82d2d0ba357eaaf243e69b78",
    "source_utf8": "/-- [core::f64::{f64}::classify]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 782:4-782:45\n    Name pattern: [core::f64::{f64}::classify]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::classify\"]\naxiom core.f64.F64.classify : F64 → Result core.num.FpCategory\n"
  },
  {
    "name": "core.f64.F64.to_bits",
    "extracted_signature": ": F64 → Result Std.U64",
    "rust_symbol": "core::f64::{f64}::to_bits",
    "raw_declaration_sha256": "ddaec6bb7c36ba6445a5b0b8e52f841240ca2563004e8ce1255caf0e36ec22ae",
    "source_utf8": "/-- [core::f64::{f64}::to_bits]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 1223:4-1223:37\n    Name pattern: [core::f64::{f64}::to_bits]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::to_bits\"]\naxiom core.f64.F64.to_bits : F64 → Result Std.U64\n"
  },
  {
    "name": "core.f64.F64.from_bits",
    "extracted_signature": ": Std.U64 → Result F64",
    "rust_symbol": "core::f64::{f64}::from_bits",
    "raw_declaration_sha256": "af8ee4387cea97d0a353a83d6280c03f3c9f739bf733af5bd39c29909f1b2b19",
    "source_utf8": "/-- [core::f64::{f64}::from_bits]:\n    Source: '/rustc/library/core/src/num/f64.rs', lines 1269:4-1269:42\n    Name pattern: [core::f64::{f64}::from_bits]\n    Visibility: public -/\n@[rust_fun \"core::f64::{f64}::from_bits\"]\naxiom core.f64.F64.from_bits : Std.U64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithMulF64F64.mul",
    "extracted_signature": ": F64 → F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Mul<f64, f64> for f64}::mul",
    "raw_declaration_sha256": "20d985819a981e9e80485ce169c1d045ea13fa8796e9314d5b621141aae6deec",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Mul<f64, f64> for f64}::mul]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 350:12-350:41\n    Name pattern: [core::ops::arith::{core::ops::arith::Mul<f64, f64, f64>}::mul]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Mul<f64, f64, f64>}::mul\"]\naxiom F64.Insts.CoreOpsArithMulF64F64.mul : F64 → F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithDivF64F64.div",
    "extracted_signature": ": F64 → F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Div<f64, f64> for f64}::div",
    "raw_declaration_sha256": "1ebb67b412d89328acb4c5dd53168e84fdf26be6cbe1ef49f5a27edbd84ada36",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Div<f64, f64> for f64}::div]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 515:12-515:41\n    Name pattern: [core::ops::arith::{core::ops::arith::Div<f64, f64, f64>}::div]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Div<f64, f64, f64>}::div\"]\naxiom F64.Insts.CoreOpsArithDivF64F64.div : F64 → F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.CoreOpsArithNegF64.neg",
    "extracted_signature": ": F64 → Result F64",
    "rust_symbol": "core::ops::arith::{impl core::ops::arith::Neg<f64> for f64}::neg",
    "raw_declaration_sha256": "bbf93f24bd7cfbc72e47e8bb3a9acc6641df939ad6afafd9ba02c81fe27f7ed0",
    "source_utf8": "/-- [core::ops::arith::{impl core::ops::arith::Neg<f64> for f64}::neg]:\n    Source: '/rustc/library/core/src/ops/arith.rs', lines 719:12-719:30\n    Name pattern: [core::ops::arith::{core::ops::arith::Neg<f64, f64>}::neg]\n    Visibility: public -/\n@[rust_fun \"core::ops::arith::{core::ops::arith::Neg<f64, f64>}::neg\"]\naxiom F64.Insts.CoreOpsArithNegF64.neg : F64 → Result F64\n"
  },
  {
    "name": "F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64",
    "extracted_signature": ": Std.U64 → Result F64",
    "rust_symbol": "dec2flt_model::num::imp::dec2flt::{impl dec2flt_model::num::imp::dec2flt::Lemire<u64> for f64}::from_u64",
    "raw_declaration_sha256": "ad172bce0522e7e41bceb8c66a5adff962822ee8a9454dfd59b7019086797ba8",
    "source_utf8": "/-- [dec2flt_model::num::imp::dec2flt::{impl dec2flt_model::num::imp::dec2flt::Lemire<u64> for f64}::from_u64]:\n    Source: 'num/imp/../../dec2flt/mod.rs', lines 263:4-266:5\n    Visibility: public -/\naxiom F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64\n  : Std.U64 → Result F64\n"
  }
]
reference/model-evidence/setup-reproduction.txt

Open file

Fresh extraction and composition evidence for Preamble
======================================================

Scope
-----

This record identifies the preparation evidence frozen with this reopened
repository and records the model-support composition reproduced on 2026-09-24.
It is evidence about source, extraction, and composition, not evidence that any
supplied GOAL is true.

Pinned configuration and tools
------------------------------

modeling-input/extraction.json selects the single library crate `crate` with
empty Cargo, Charon, and Aeneas argument lists.  crate/Cargo.toml gives the
`default` feature an empty definition, leaves `optimize_for_size` disabled,
uses the development profile, and explicitly enables overflow checks.
extraction-evidence/COMMAND.json records target x86_64-unknown-linux-gnu,
nightly-2026-06-01, debug assertions, overflow checks, unwind panic handling,
64-bit pointers, and SSE2.

modeling-input/tool-identities.json pins these six executables by SHA-256:

  cargo   54e05dce8c9ca2f638cc3d87ec1a19425b5d0bf1f31aeb48cf4792aec5cadf27
  rustc   162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b
  rustdoc 2bf660d140310e28146e2c002dc6fcabd957c0a3b740be0419e6f8e5a9c87523
  Charon  6490034f368ce98f3e7ae5a28bf71ed56d03bdf1e3712e71376b96fc55baeade
  Aeneas  9f446d2aaf59e8e705e36d05cb993f1c6ab0e97f8dc6fd2f19907a86ede30922
  Lean    3e0d0d3d801675359f2d4cf9815bfdb417b20b92fdd9d48b3b14c95bbae28bbf

Fresh extraction
----------------

The authoritative reproduction command in modeling-input/manifest.json is:

  python3 .trellis/scripts/pv_modeling.py check-native . --fresh

extraction-evidence/COMMAND.json records the exact argv, environment, and
working directory for every step.  extraction-evidence/RESULT.json records
exit status 0 for rustc identity, Charon/Cargo extraction, Cargo metadata,
Cargo cfg, and Aeneas.  Its primary run produced generated Lean SHA-256:

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9

The same digest is recorded for both `audited_sha256` and `native_sha256` in
modeling-input/manifest.json, whose `byte_identical` field is true, and is the
digest of this repository's generated.lean.  The manifest's accepted setup and
adaptation audits record the successful uncached Cargo, Charon, and Aeneas
checks, the absence of source placeholders, and the exact 24-external native
boundary.  In particular, the corrected source basis is:

  c42107d27bc47c02e4beb4d6db4c47879aecb68a175ab67f7e6c5d5e866a2402c06583f9e94b467095cf9aff1a26a4857650ace006061c1ca5e4c441747ef622

The pinned compatibility report modeling-input/axiom-compatibility.json has
SHA-256

  473825c0fe635e1abc7a734a2035f5df20ed4fe7053403ef2fb6833d7101a016

and checks 2,225 declarations.  It reports no unapproved axiom.  Its only
pending group contains 64 declarations downstream of the absent raw F64
carrier and external operations, exactly the boundary supplied by the authored
model-support layer; the raw extractor output contains no proof placeholder.

External boundary
-----------------

The reproducible command

  python3 .trellis/scripts/pv_modeling.py inspect-native .

returns exactly 24 declarations: fourteen F64 operations, four U64 bit
operations, and six byte/Option/slice/string operations.  Their complete
records are retained in reference/model-evidence/native-boundary.txt and the
structural-operation evidence files.  Tablet/model-support.json has exactly
one exact-signature binding for each declaration.  The whole opaque
`Lemire::from_u64` method has raw declaration SHA-256

  ad172bce0522e7e41bceb8c66a5adff962822ee8a9454dfd59b7019086797ba8

and covers source lines 263:4-266:5, including both the debug assertion and
the conversion.  It is not a cast-only boundary.

Composition and elaboration
---------------------------

After installing all 24 bindings, the exact command

  python3 .trellis/scripts/pv_modeling.py compose-native . --check

returned `matches=true`, `changed=false`, no mismatched files, raw extraction
hash

  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9

and equal expected and actual Preamble hashes

  2bf9c25b895e20dd9efe782ae173e2b07b55020eed41a7d9b63b2ae9e1db007c.

The receipt reports 24 bindings, 47 authored definitions, and 170 extracted
modules.  Finally,

  python3 .trellis/scripts/check.py tablet

checked all 236 registered nodes against this composition and exited 0.  This
establishes complete composition and elaboration while leaving the 32 principal
GOAL proofs open for argument development as required.
reference/model-evidence/source-adaptation-delta.diff

Open file

--- upstream/dec2flt/common.rs
+++ crate/dec2flt/common.rs
@@ -14,4 +13,0 @@
-    /// Iteratively parse and consume digits from bytes.
-    ///
-    /// Returns the same bytes with consumed digits being elided. Breaks on invalid digits.
-    fn parse_digits(&self, func: impl FnMut(u8)) -> &Self;
@@ -38,16 +33,0 @@
-    #[inline]
-    fn parse_digits(&self, mut func: impl FnMut(u8)) -> &Self {
-        let mut s = self;
-
-        while let Some((c, rest)) = s.split_first() {
-            let c = c.wrapping_sub(b'0');
-            if c < 10 {
-                func(c);
-                s = rest;
-            } else {
-                break;
-            }
-        }
-
-        s
-    }
@@ -68 +48,4 @@
-#[derive(Debug, Copy, Clone, PartialEq, Eq, Default)]
+// Debug output is not an accepted public or trace observation.  Removing only
+// that implementation preserves the fields, computational derives, and every
+// algorithm operation independently of GOAL truth.
+#[derive(Copy, Clone, PartialEq, Eq, Default)]
--- upstream/dec2flt/decimal.rs
+++ crate/dec2flt/decimal.rs
@@ -28 +28,4 @@
-#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
+// Debug output is absent from the accepted observations.  Removing only that
+// implementation leaves all fields, computational derives, and parser
+// operations unchanged independently of GOAL truth.
+#[derive(Clone, Copy, Default, PartialEq, Eq)]
@@ -56 +59,11 @@
-    pub fn try_fast_path<F: Lemire>(&self) -> Option<F> {
+    pub fn try_fast_path<
+        F: Lemire
+            + core::ops::Div<Output = F>
+            + core::ops::Mul<Output = F>
+            + core::ops::Neg<Output = F>,
+    >(
+        &self,
+    ) -> Option<F> {
+        // `Lemire` already entails these three operator bounds through
+        // `Float`; spelling them directly changes no admitted type.  Charon
+        // needs the direct clauses to resolve each explicit call's `Output`.
@@ -73 +86,3 @@
-                value / F::pow10_fast_path((-self.exponent) as _)
+                // Explicit trait calls preserve Rust arithmetic and resolve
+                // the generic output type that Charon leaves ambiguous.
+                core::ops::Div::div(value, F::pow10_fast_path((-self.exponent) as _))
@@ -75 +90 @@
-                value * F::pow10_fast_path(self.exponent as _)
+                core::ops::Mul::mul(value, F::pow10_fast_path(self.exponent as _))
@@ -84 +99,4 @@
-            F::from_u64(mantissa) * F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _)
+            core::ops::Mul::mul(
+                F::from_u64(mantissa),
+                F::pow10_fast_path(F::MAX_EXPONENT_FAST_PATH as _),
+            )
@@ -87 +105,5 @@
-        if self.negative { Some(-value) } else { Some(value) }
+        if self.negative {
+            Some(core::ops::Neg::neg(value))
+        } else {
+            Some(value)
+        }
--- upstream/dec2flt/decimal_seq.rs
+++ crate/dec2flt/decimal_seq.rs
@@ -17 +17,4 @@
-#[derive(Clone, Debug, PartialEq)]
+// Debug output is absent from the accepted observations.  Removing only that
+// implementation preserves the representation, Clone/PartialEq behavior, and
+// every fallback operation independently of GOAL truth.
+#[derive(Clone, PartialEq)]
@@ -176 +179,2 @@
-        while (n >> shift) == 0 {
+        let mut all_zero = false;
+        while (n >> shift) == 0 && !all_zero {
@@ -181 +185,4 @@
-                return;
+                // The source returns here from inside the loop.  Recording the
+                // condition and returning immediately after the loop executes
+                // no intervening operation and preserves the unchanged value.
+                all_zero = true;
@@ -189,0 +197,3 @@
+        if all_zero {
+            return;
+        }
@@ -220,0 +231,51 @@
+// This is exactly the source reverse scan over the already-consumed prefix.
+// It is separate because Aeneas cannot join the loop while `parse_decimal_seq`
+// retains its other slice borrows.  The downward index has the same visitation
+// order and counts precisely the same zero bytes while ignoring dots.
+fn count_trailing_zeros(start: &[u8], consumed_len: usize) -> usize {
+    let mut n_trailing_zeros = 0;
+    let mut i = consumed_len;
+    let mut scanning = true;
+    while i != 0 && scanning {
+        let c = start[i - 1];
+        if c == b'0' || c == b'.' {
+            i -= 1;
+            if c == b'0' {
+                n_trailing_zeros += 1;
+            }
+        } else {
+            scanning = false;
+        }
+    }
+    n_trailing_zeros
+}
+
+// Equivalent to `ByteSlice::parse_digits(|digit| d.try_add_digit(digit))`.
+// An explicit index keeps the closure's mutable borrow out of the enclosing
+// parser context while retaining the same wrapping digit test and updates.
+fn parse_digits_into_seq<'a>(s: &'a [u8], d: &mut DecimalSeq) -> &'a [u8] {
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
+        d.try_add_digit(digit);
+        count += 1;
+    }
+    &s[count..]
+}
+
+// Equivalent to the source exponent `parse_digits` closure.  Bytes after the
+// first nondigit were ignored by the caller, so only the accumulated value is
+// returned; the 0x10000 guard and wrapping digit classification are identical.
+fn parse_decimal_exponent(s: &[u8]) -> i32 {
+    let mut exp_num = 0;
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
+        if exp_num < 0x10000 {
+            exp_num = 10 * exp_num + digit as i32;
+        }
+        count += 1;
+    }
+    exp_num
+}
+
@@ -226,2 +287,5 @@
-    while let Some((&b'0', s_next)) = s.split_first() {
-        s = s_next;
+    // Aeneas rejects the literal-pattern `while let`; this loop performs the
+    // same nonempty check, byte comparison, and one-byte consumption in the
+    // same order, with identical slice bounds.
+    while !s.is_empty() && s[0] == b'0' {
+        s = &s[1..];
@@ -230 +294 @@
-    s = s.parse_digits(|digit| d.try_add_digit(digit));
+    s = parse_digits_into_seq(s, &mut d);
@@ -232,2 +296,2 @@
-    if let Some((b'.', s_next)) = s.split_first() {
-        s = s_next;
+    if !s.is_empty() && s[0] == b'.' {
+        s = &s[1..];
@@ -237,2 +301,4 @@
-            while let Some((&b'0', s_next)) = s.split_first() {
-                s = s_next;
+            // As above, this is the source leading-zero loop written in the
+            // indexed form accepted by Aeneas.
+            while !s.is_empty() && s[0] == b'0' {
+                s = &s[1..];
@@ -250 +316 @@
-        s = s.parse_digits(|digit| d.try_add_digit(digit));
+        s = parse_digits_into_seq(s, &mut d);
@@ -256,8 +322,5 @@
-        let mut n_trailing_zeros = 0;
-        for &c in start[..(start.len() - s.len())].iter().rev() {
-            if c == b'0' {
-                n_trailing_zeros += 1;
-            } else if c != b'.' {
-                break;
-            }
-        }
+        let consumed_len = start.len() - s.len();
+        // Walking an index downward visits exactly the same bytes as
+        // `.iter().rev()` and stops on the same first nonzero nondot byte.  It
+        // also avoids the missing extracted `Iterator::rev` library field.
+        let n_trailing_zeros = count_trailing_zeros(start, consumed_len);
@@ -273 +336,4 @@
-    if let Some((&ch, s_next)) = s.split_first() {
+    // Indexed tests preserve `split_first`'s nonempty guard and byte order but
+    // avoid the loop-context joins Aeneas creates for nested slice patterns.
+    if !s.is_empty() {
+        let ch = s[0];
@@ -275,4 +341,7 @@
-            s = s_next;
-            let mut neg_exp = false;
-            if let Some((&ch, s_next)) = s.split_first() {
-                neg_exp = ch == b'-';
+            s = &s[1..];
+            let mut exp_sign = 1_i32;
+            if !s.is_empty() {
+                let ch = s[0];
+                if ch == b'-' {
+                    exp_sign = -1;
+                }
@@ -280 +349 @@
-                    s = s_next;
+                    s = &s[1..];
@@ -283,7 +352 @@
-            let mut exp_num = 0_i32;
-
-            s.parse_digits(|digit| {
-                if exp_num < 0x10000 {
-                    exp_num = 10 * exp_num + digit as i32;
-                }
-            });
+            let exp_num = parse_decimal_exponent(s);
@@ -291 +354,4 @@
-            d.decimal_point += if neg_exp { -exp_num } else { exp_num };
+            // `exp_num` is bounded by the source's 0x10000 guard, so this
+            // multiplication cannot overflow and equals the original Boolean
+            // choice between `-exp_num` and `exp_num` under checked arithmetic.
+            d.decimal_point += exp_sign * exp_num;
--- upstream/dec2flt/mod.rs
+++ crate/dec2flt/mod.rs
@@ -90 +90 @@
-use common::BiasedFp;
+pub use common::BiasedFp;
@@ -118,4 +118 @@
-    const MAX_EXPONENT_FAST_PATH: i64 = {
-        let log2_5 = f64::consts::LOG2_10 - 1.0;
-        (Self::SIG_TOTAL_BITS as f64 / log2_5) as i64
-    };
+    const MAX_EXPONENT_FAST_PATH: i64;
@@ -128,2 +125 @@
-    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 =
-        Self::MAX_EXPONENT_FAST_PATH + (Self::SIG_TOTAL_BITS as f64 / f64::consts::LOG2_10) as i64;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64;
@@ -144,0 +141,4 @@
+// The f16 Lemire instance is outside the exclusively f64 scope. Disabling it
+// leaves every retained f64 parser/helper/trace body, native decision, checked
+// operation, debug assertion, return value, and accepted observation unchanged.
+#[cfg(any())]
@@ -145,0 +146,7 @@
+    // These are the exact integer results of the upstream compile-time float
+    // formulae for `SIG_TOTAL_BITS = 11`: floor(11/log2(5)) = 4 and
+    // 4 + floor(11/log2(10)) = 7.  Concrete integers avoid unsupported const
+    // float arithmetic without changing either fast-path guard.
+    const MAX_EXPONENT_FAST_PATH: i64 = 4;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 7;
+
@@ -147,3 +154,11 @@
-        #[allow(clippy::use_self)]
-        const TABLE: [f16; 8] = [1e0, 1e1, 1e2, 1e3, 1e4, 0.0, 0.0, 0.];
-        TABLE[exponent & 7]
+        // Each integer is the exact IEEE encoding of the corresponding
+        // upstream table literal; the masked lookup and fallback zeros are
+        // unchanged.  Aeneas cannot translate arrays containing float values.
+        match exponent & 7 {
+            0 => f16::from_bits(0x3C00),
+            1 => f16::from_bits(0x4900),
+            2 => f16::from_bits(0x5640),
+            3 => f16::from_bits(0x63D0),
+            4 => f16::from_bits(0x70E2),
+            _ => f16::from_bits(0),
+        }
@@ -152,0 +168,4 @@
+    // This method is exactly the upstream primitive `u64 as f16` conversion.
+    // Charon extracts the cast, but Aeneas reports it unreachable; making only
+    // this primitive boundary opaque preserves all guards and dispatcher logic.
+    #[charon::opaque]
@@ -158,0 +178,4 @@
+// The f32 Lemire instance is likewise unused by the retained f64
+// specialization, so disabling it cannot affect any retained body or observed
+// f64 execution independently of the correctness GOALs.
+#[cfg(any())]
@@ -159,0 +183,4 @@
+    // Exact upstream formula results for `SIG_TOTAL_BITS = 24`.
+    const MAX_EXPONENT_FAST_PATH: i64 = 10;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 17;
+
@@ -161,4 +188,16 @@
-        #[allow(clippy::use_self)]
-        const TABLE: [f32; 16] =
-            [1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 0., 0., 0., 0., 0.];
-        TABLE[exponent & 15]
+        // Bit constructors preserve the exact table values and masked lookup,
+        // while avoiding Aeneas's unsupported float-valued array constants.
+        match exponent & 15 {
+            0 => f32::from_bits(0x3F80_0000),
+            1 => f32::from_bits(0x4120_0000),
+            2 => f32::from_bits(0x42C8_0000),
+            3 => f32::from_bits(0x447A_0000),
+            4 => f32::from_bits(0x461C_4000),
+            5 => f32::from_bits(0x47C3_5000),
+            6 => f32::from_bits(0x4974_2400),
+            7 => f32::from_bits(0x4B18_9680),
+            8 => f32::from_bits(0x4CBE_BC20),
+            9 => f32::from_bits(0x4E6E_6B28),
+            10 => f32::from_bits(0x5015_02F9),
+            _ => f32::from_bits(0),
+        }
@@ -167,0 +207,4 @@
+    // This is exactly the source `u64 as f32` conversion.  The narrow opaque
+    // boundary is required because Aeneas rejects the primitive cast itself;
+    // its input guard and every caller remain transparent.
+    #[charon::opaque]
@@ -174,0 +218,4 @@
+    // Exact upstream formula results for `SIG_TOTAL_BITS = 53`.
+    const MAX_EXPONENT_FAST_PATH: i64 = 22;
+    const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 37;
+
@@ -176,5 +223,29 @@
-        const TABLE: [f64; 32] = [
-            1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13, 1e14, 1e15,
-            1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22, 0., 0., 0., 0., 0., 0., 0., 0., 0.,
-        ];
-        TABLE[exponent & 31]
+        // These bit patterns are exactly the source table's rounded binary64
+        // literals.  The match is the same masked lookup; it merely keeps float
+        // constants out of Aeneas's unsupported constant interpreter.
+        match exponent & 31 {
+            0 => f64::from_bits(0x3FF0_0000_0000_0000),
+            1 => f64::from_bits(0x4024_0000_0000_0000),
+            2 => f64::from_bits(0x4059_0000_0000_0000),
+            3 => f64::from_bits(0x408F_4000_0000_0000),
+            4 => f64::from_bits(0x40C3_8800_0000_0000),
+            5 => f64::from_bits(0x40F8_6A00_0000_0000),
+            6 => f64::from_bits(0x412E_8480_0000_0000),
+            7 => f64::from_bits(0x4163_12D0_0000_0000),
+            8 => f64::from_bits(0x4197_D784_0000_0000),
+            9 => f64::from_bits(0x41CD_CD65_0000_0000),
+            10 => f64::from_bits(0x4202_A05F_2000_0000),
+            11 => f64::from_bits(0x4237_4876_E800_0000),
+            12 => f64::from_bits(0x426D_1A94_A200_0000),
+            13 => f64::from_bits(0x42A2_309C_E540_0000),
+            14 => f64::from_bits(0x42D6_BCC4_1E90_0000),
+            15 => f64::from_bits(0x430C_6BF5_2634_0000),
+            16 => f64::from_bits(0x4341_C379_37E0_8000),
+            17 => f64::from_bits(0x4376_3457_85D8_A000),
+            18 => f64::from_bits(0x43AB_C16D_674E_C800),
+            19 => f64::from_bits(0x43E1_58E4_6091_3D00),
+            20 => f64::from_bits(0x4415_AF1D_78B5_8C40),
+            21 => f64::from_bits(0x444B_1AE4_D6E2_EF50),
+            22 => f64::from_bits(0x4480_F0CF_064D_D592),
+            _ => f64::from_bits(0),
+        }
@@ -183,0 +255,8 @@
+    // Aeneas cannot translate the source `u64 as f64` primitive conversion, so
+    // `charon::opaque` makes this entire asserted conversion external: both the
+    // unchanged `debug_assert!` and the unchanged cast below are in the opaque
+    // body. The callers, their fast-path guards, and their surrounding
+    // computation remain mechanically visible. A corresponding model binding
+    // must fail the assertion above `MAX_MANTISSA_FAST_PATH` and return the
+    // exact binary64 conversion at or below that bound.
+    #[charon::opaque]
@@ -209,5 +288,80 @@
-/// Converts a decimal string into a floating point number.
-#[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
-pub fn dec2flt<F: Lemire>(s: &str) -> Result<F, ParseFloatError> {
-    let mut s = s.as_bytes();
-    let Some(&c) = s.first() else { return Err(pfe_empty()) };
+/// Observable control-flow record for a dispatcher execution.
+///
+/// These variants add no decisions to the conversion: each stores values
+/// already computed at the corresponding source branch.  In particular, the
+/// first component returned by `dec2flt_with_trace` is the ordinary parser
+/// result, so projecting it preserves every public source observation without
+/// assuming any correctness goal.
+pub enum Dec2FltTrace<'a, F> {
+    /// The original string was empty; no helper was called.
+    EmptyInput,
+    /// Removing one lexical sign left an empty body; no helper was called.
+    SignOnly { body: &'a [u8], negative: bool },
+    /// Both lexical helpers returned `None`; no raw pair was selected.
+    Invalid {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        parse_inf_nan_result: Option<F>,
+    },
+    /// The special helper supplied the directly returned value; no pair was selected.
+    Special {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        parse_inf_nan_result: Option<F>,
+        result: F,
+    },
+    /// The ordinary native shortcut supplied the directly returned value.
+    FastPath {
+        body: &'a [u8],
+        negative: bool,
+        parse_number_result: Option<decimal::Decimal>,
+        fast_path_input: decimal::Decimal,
+        fast_path_result: Option<F>,
+        result: F,
+    },
+    /// The integer/slow path selected and assembled one raw pair.
+    Assembled(Dec2FltAssemblyTrace<'a, F>),
+}
+
+/// Full observation record for the dispatcher path that performs final assembly.
+pub struct Dec2FltAssemblyTrace<'a, F> {
+    pub body: &'a [u8],
+    pub negative: bool,
+    pub parse_number_result: Option<decimal::Decimal>,
+    pub fast_path_input: decimal::Decimal,
+    pub fast_path_result: Option<F>,
+    pub first_compute_exponent: i64,
+    pub first_compute_mantissa: u64,
+    pub first_compute_result: BiasedFp,
+    pub second_compute_guard: bool,
+    pub second_compute_exponent: Option<i64>,
+    pub second_compute_mantissa: Option<u64>,
+    pub second_compute_result: Option<BiasedFp>,
+    pub second_equals_first: Option<bool>,
+    pub forced_deferral: bool,
+    pub post_comparison_pair: BiasedFp,
+    pub slow_path_guard: bool,
+    pub slow_path_result: Option<BiasedFp>,
+    pub selected_pair: BiasedFp,
+    pub assembled_word: u64,
+    pub assembly_result: F,
+    pub lexical_sign_applied: bool,
+    pub result: F,
+}
+
+/// Run the actual dispatcher while retaining its approved internal observations.
+pub fn dec2flt_with_trace<
+    'a,
+    F: Lemire
+        + core::ops::Div<Output = F>
+        + core::ops::Mul<Output = F>
+        + core::ops::Neg<Output = F>,
+>(
+    s: &'a str,
+) -> (Result<F, ParseFloatError>, Dec2FltTrace<'a, F>) {
+    let mut body = s.as_bytes();
+    let Some(&c) = body.first() else {
+        return (Err(pfe_empty()), Dec2FltTrace::EmptyInput);
+    };
@@ -216 +370 @@
-        s = &s[1..];
+        body = &body[1..];
@@ -218,2 +372,2 @@
-    if s.is_empty() {
-        return Err(pfe_invalid());
+    if body.is_empty() {
+        return (Err(pfe_invalid()), Dec2FltTrace::SignOnly { body, negative });
@@ -222 +376,2 @@
-    let mut num = match parse_number(s) {
+    let parse_number_result = parse_number(body);
+    let parsed = match parse_number_result {
@@ -224,2 +379,24 @@
-        None if let Some(value) = parse_inf_nan(s, negative) => return Ok(value),
-        None => return Err(pfe_invalid()),
+        None => {
+            let parse_inf_nan_result = parse_inf_nan(body, negative);
+            return match parse_inf_nan_result {
+                Some(value) => (
+                    Ok(value),
+                    Dec2FltTrace::Special {
+                        body,
+                        negative,
+                        parse_number_result,
+                        parse_inf_nan_result,
+                        result: value,
+                    },
+                ),
+                None => (
+                    Err(pfe_invalid()),
+                    Dec2FltTrace::Invalid {
+                        body,
+                        negative,
+                        parse_number_result,
+                        parse_inf_nan_result,
+                    },
+                ),
+            };
+        }
@@ -226,0 +404,2 @@
+
+    let mut num = parsed;
@@ -229,2 +408,13 @@
-        if let Some(value) = num.try_fast_path::<F>() {
-            return Ok(value);
+        let fast_path_result = num.try_fast_path::<F>();
+        if let Some(value) = fast_path_result {
+            return (
+                Ok(value),
+                Dec2FltTrace::FastPath {
+                    body,
+                    negative,
+                    parse_number_result,
+                    fast_path_input: num,
+                    fast_path_result,
+                    result: value,
+                },
+            );
@@ -234,15 +424,27 @@
-    // If significant digits were truncated, then we can have rounding error
-    // only if `mantissa + 1` produces a different result. We also avoid
-    // redundantly using the Eisel-Lemire algorithm if it was unable to
-    // correctly round on the first pass.
-    let mut fp = compute_float::<F>(num.exponent, num.mantissa);
-    if num.many_digits
-        && fp.p_biased >= 0
-        && fp != compute_float::<F>(num.exponent, num.mantissa + 1)
-    {
-        fp.p_biased = -1;
-    }
-    // Unable to correctly round the float using the Eisel-Lemire algorithm.
-    // Fallback to a slower, but always correct algorithm.
-    if fp.p_biased < 0 {
-        fp = parse_long_mantissa::<F>(s);
+    let first_compute_exponent = num.exponent;
+    let first_compute_mantissa = num.mantissa;
+    let first_compute_result = compute_float::<F>(first_compute_exponent, first_compute_mantissa);
+    let mut fp = first_compute_result;
+
+    // This expands the source short-circuit conjunction without moving the
+    // checked `mantissa + 1`: that addition and the second helper call still
+    // occur exactly when `many_digits && fp.p_biased >= 0`.
+    let second_compute_guard = num.many_digits && fp.p_biased >= 0;
+    let mut second_compute_exponent = None;
+    let mut second_compute_mantissa = None;
+    let mut second_compute_result = None;
+    let mut second_equals_first = None;
+    let mut forced_deferral = false;
+    if second_compute_guard {
+        let exponent = num.exponent;
+        let mantissa = num.mantissa + 1;
+        let second = compute_float::<F>(exponent, mantissa);
+        let equal = fp == second;
+        second_compute_exponent = Some(exponent);
+        second_compute_mantissa = Some(mantissa);
+        second_compute_result = Some(second);
+        second_equals_first = Some(equal);
+        if !equal {
+            fp.p_biased = -1;
+            forced_deferral = true;
+        }
@@ -249,0 +452 @@
+    let post_comparison_pair = fp;
@@ -251,5 +454,69 @@
-    let mut float = biased_fp_to_float::<F>(fp);
-    if num.negative {
-        float = -float;
-    }
-    Ok(float)
+    let slow_path_guard = fp.p_biased < 0;
+    let mut slow_path_result = None;
+    if slow_path_guard {
+        // The exact slow-path input is the trace's common `body`; the guard
+        // records whether this call occurred, avoiding a duplicate live slice
+        // reference that Aeneas cannot join across this branch.
+        let replacement = parse_long_mantissa::<F>(body);
+        slow_path_result = Some(replacement);
+        fp = replacement;
+    }
+
+    let selected_pair = fp;
+    // This is the same pure cast/shift/OR used by `biased_fp_to_float`; recording
+    // it neither changes the selected pair nor introduces a new branch or call.
+    let assembled_word = fp.m | ((fp.p_biased as u64) << F::SIG_BITS);
+    let assembly_result = biased_fp_to_float::<F>(fp);
+    let lexical_sign_applied = num.negative;
+    let result = if lexical_sign_applied {
+        core::ops::Neg::neg(assembly_result)
+    } else {
+        assembly_result
+    };
+
+    (
+        Ok(result),
+        Dec2FltTrace::Assembled(Dec2FltAssemblyTrace {
+            body,
+            negative,
+            parse_number_result,
+            fast_path_input: num,
+            fast_path_result: None,
+            first_compute_exponent,
+            first_compute_mantissa,
+            first_compute_result,
+            second_compute_guard,
+            second_compute_exponent,
+            second_compute_mantissa,
+            second_compute_result,
+            second_equals_first,
+            forced_deferral,
+            post_comparison_pair,
+            slow_path_guard,
+            slow_path_result,
+            selected_pair,
+            assembled_word,
+            assembly_result,
+            lexical_sign_applied,
+            result,
+        }),
+    )
+}
+
+/// Converts a decimal string into a floating point number.
+#[inline(always)] // Will be inlined into a function with `#[inline(never)]`, see above
+pub fn dec2flt<
+    F: Lemire
+        + core::ops::Div<Output = F>
+        + core::ops::Mul<Output = F>
+        + core::ops::Neg<Output = F>,
+>(
+    s: &str,
+) -> Result<F, ParseFloatError> {
+    // `Lemire` already implies `Neg<Output = F>` through `Float`; the direct
+    // clause admits exactly the same instances and lets Charon resolve the
+    // explicit, source-equivalent final negation.
+    // The public function is now exactly the result projection of the single
+    // instrumented implementation.  No conversion step is duplicated, and
+    // discarding the trace cannot affect Rust evaluation or the returned bits.
+    dec2flt_with_trace::<F>(s).0
--- upstream/dec2flt/parse.rs
+++ crate/dec2flt/parse.rs
@@ -34,3 +34,6 @@
-        let num = s.read_u64();
-        if is_8digits(num) {
-            x = x.wrapping_mul(1_0000_0000).wrapping_add(parse_8digits(num));
+        // `chunk` is the source's local `num` under a nonconflicting name.
+        // The rename has no Rust effect and prevents the Lean backend from
+        // resolving `num.imp...` as a field projection on this local value.
+        let chunk = s.read_u64();
+        if is_8digits(chunk) {
+            x = x.wrapping_mul(1_0000_0000).wrapping_add(parse_8digits(chunk));
@@ -43 +46,6 @@
-    s = s.parse_digits(|digit| {
+    // This is the removed `ByteSlice::parse_digits` call specialized to its
+    // only parser use: identical wrapping digit classification, accumulator
+    // update, and first-nondigit stop, without an unsupported closure state.
+    let mut count = 0;
+    while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+        let digit = s[count].wrapping_sub(b'0');
@@ -45 +53,3 @@
-    });
+        count += 1;
+    }
+    s = &s[count..];
@@ -71,0 +82,38 @@
+// This is the source prefix scan isolated from `parse_partial_number` because
+// Aeneas cannot join its loop context while the enclosing function's other
+// slice borrows are live.  It visits the same bytes, in order, and performs
+// the identical checked `isize` subtraction for every leading dot or zero.
+fn adjust_many_digit_count(start: &[u8], mut n_digits: isize) -> isize {
+    let mut scan_index = 0;
+    let mut scanning = true;
+    while scan_index < start.len() && scanning {
+        let c = start[scan_index];
+        if c == b'.' || c == b'0' {
+            n_digits -= c.saturating_sub(b'0' - 1) as isize;
+            scan_index += 1;
+        } else {
+            scanning = false;
+        }
+    }
+    n_digits
+}
+
+// This is the source many-digit retry as a transparent helper.  Isolating its
+// rebased slices avoids an Aeneas context-join failure; both calls, the branch,
+// the offset arithmetic, and the explicit-exponent addition are unchanged.
+fn parse_many_digits(start: &[u8], int_end: &[u8], exp_number: i64) -> (u64, i64) {
+    let mut mantissa = 0;
+    let mut s = start;
+    try_parse_19digits(&mut s, &mut mantissa);
+    let mut exponent = if mantissa >= MIN_19DIGIT_INT {
+        int_end.offset_from(s)
+    } else {
+        s = &s[1..];
+        let before = s;
+        try_parse_19digits(&mut s, &mut mantissa);
+        -s.offset_from(before)
+    } as i64;
+    exponent += exp_number;
+    (mantissa, exponent)
+}
+
@@ -86,3 +134,10 @@
-    if matches!(s.first(), Some(&x) if x.is_ascii_digit()) {
-        *s_ref = s.parse_digits(|digit| {
-            // no overflows here, saturate well before overflow
+    // `matches!` with a guarded slice pattern triggers an Aeneas internal
+    // error.  This short-circuit test reads the same first byte exactly when
+    // it exists and therefore preserves both acceptance and evaluation order.
+    if !s.is_empty() && s[0].is_ascii_digit() {
+        // Specialized form of the source digit callback.  `count` advances
+        // exactly once per accepted byte and the bound keeps every checked
+        // exponent operation in the same safe range as the source.
+        let mut count = 0;
+        while count < s.len() && s[count].wrapping_sub(b'0') < 10 {
+            let digit = s[count].wrapping_sub(b'0');
@@ -92 +147,3 @@
-        });
+            count += 1;
+        }
+        *s_ref = &s[count..];
@@ -155,9 +212,5 @@
-    let mut p = start;
-    while let Some((&c, p_next)) = p.split_first() {
-        if c == b'.' || c == b'0' {
-            n_digits -= c.saturating_sub(b'0' - 1) as isize;
-            p = p_next;
-        } else {
-            break;
-        }
-    }
+    // The indexed loop is equivalent to the source `while let split_first`:
+    // it tests nonemptiness before the same byte read and consumes one byte
+    // only on the two source continuation cases.  This avoids Aeneas's loop
+    // context mismatch without changing checked subtraction or slice bounds.
+    n_digits = adjust_many_digit_count(start, n_digits);
@@ -167,14 +220,3 @@
-        mantissa = 0;
-        let mut s = start;
-        try_parse_19digits(&mut s, &mut mantissa);
-        exponent = if mantissa >= MIN_19DIGIT_INT {
-            // big int
-            int_end.offset_from(s)
-        } else {
-            s = &s[1..];
-            let before = s;
-            try_parse_19digits(&mut s, &mut mantissa);
-            -s.offset_from(before)
-        } as i64;
-        // add back the explicit part
-        exponent += exp_number;
+        let retried = parse_many_digits(start, int_end, exp_number);
+        mantissa = retried.0;
+        exponent = retried.1;
--- upstream/dec2flt/slow.rs
+++ crate/dec2flt/slow.rs
@@ -48,0 +49 @@
+    let mut loop_result = None;
@@ -50 +51 @@
-    while d.decimal_point > 0 {
+    while d.decimal_point > 0 && loop_result.is_none() {
@@ -55 +56,7 @@
-            return fp_zero;
+            // The source returns `fp_zero` at this exact point.  Storing that
+            // result and terminating the loop performs no later loop update;
+            // the return below is therefore behavior-identical and avoids an
+            // Aeneas restriction on returns from nested loop translation.
+            loop_result = Some(fp_zero);
+        } else {
+            exp2 += shift as i32;
@@ -57 +64,3 @@
-        exp2 += shift as i32;
+    }
+    if let Some(result) = loop_result {
+        return result;
@@ -60 +69 @@
-    while d.decimal_point <= 0 {
+    while d.decimal_point <= 0 && loop_result.is_none() {
@@ -72 +81,6 @@
-            return fp_inf;
+            // This records the source's immediate `fp_inf` return.  Since the
+            // guarded loop exits before the exponent update, moving the return
+            // just below the loop preserves every state transition.
+            loop_result = Some(fp_inf);
+        } else {
+            exp2 -= shift as i32;
@@ -74 +88,3 @@
-        exp2 -= shift as i32;
+    }
+    if let Some(result) = loop_result {
+        return result;
--- upstream/traits.rs
+++ crate/traits.rs
@@ -11 +11 @@
-use crate::{f64, fmt, ops};
+use crate::{f64, ops};
@@ -14 +14,5 @@
-pub trait CastInto<T: Copy>: Copy {
+// All uses are through `Int`, which independently requires `Self: Copy`, and
+// every implementation here is a primitive Copy type.  Removing that redundant
+// supertrait changes no call or value but prevents Aeneas from emitting two
+// identically named `Copy` fields for `Self` and `T` in the Lean structure.
+pub trait CastInto<T: Copy> {
@@ -18,0 +23,4 @@
+// The accepted observations contain no formatting behavior.  Removing the
+// `Debug` supertrait changes neither the concrete primitive integer instances
+// nor any operation used by the algorithms, so it preserves the f64
+// specialization and every inventoried observation independently of GOAL truth.
@@ -23 +30,0 @@
-    + fmt::Debug
@@ -52 +59,6 @@
-int!(u16, u32, u64);
+// Only `u64` is the associated integer of the retained `f64` specialization.
+// The removed `u16`/`u32` instances served only the excluded `f16`/`f32`
+// implementations, so their removal changes no f64 public, helper, or trace
+// body, native decision, checked arithmetic, debug assertion, return value, or
+// accepted observation.
+int!(u64);
@@ -55,0 +68,6 @@
+// Formatting is outside every accepted public and trace observation. `Add`,
+// equality, ordering, default construction, and cloning are also unused by all
+// retained generic bodies; only `Copy`, `Mul`, `Div`, and `Neg` are required.
+// Removing those unused requirements admits the same f64 implementation and
+// changes no f64 body, native decision, checked arithmetic, debug assertion,
+// return value, or trace observation, independently of any GOAL's truth.
@@ -61,6 +78,0 @@
-    + ops::Add<Output = Self>
-    + fmt::Debug
-    + PartialEq
-    + PartialOrd
-    + Default
-    + Clone
@@ -134,4 +146 @@
-    const LARGEST_POWER_OF_TEN: i32 = {
-        let largest_pow2 = Self::EXP_BIAS + 1;
-        pow2_to_pow10(largest_pow2 as i64) as i32
-    };
+    const LARGEST_POWER_OF_TEN: i32;
@@ -175,19 +184 @@
-    fn integer_decode(self) -> (u64, i16, i8) {
-        let bits = self.to_bits();
-        let sign: i8 = if bits >> (Self::BITS - 1) == Self::Int::ZERO { 1 } else { -1 };
-        let mut exponent: i16 = ((bits & Self::EXP_MASK) >> Self::SIG_BITS).cast();
-        let mantissa = if exponent == 0 {
-            (bits & Self::SIG_MASK) << 1
-        } else {
-            (bits & Self::SIG_MASK) | (Self::Int::ONE << Self::SIG_BITS)
-        };
-        // Exponent bias + mantissa shift
-        exponent -= (Self::EXP_BIAS + Self::SIG_BITS) as i16;
-        (mantissa.into(), exponent, sign)
-    }
-}
-
-/// Solve for `b` in `10^b = 2^a`
-const fn pow2_to_pow10(a: i64) -> i64 {
-    let res = (a as f64) / f64::consts::LOG2_10;
-    res as i64
+    fn integer_decode(self) -> (u64, i16, i8);
@@ -196,0 +188,4 @@
+// The f16 implementation is outside the exclusively f64 scope. Disabling it
+// leaves every retained f64 public/helper/trace body and all of its decisions,
+// checked operations, assertions, return values, and observations unchanged.
+#[cfg(any())]
@@ -203 +198,4 @@
-    const NEG_NAN: Self = -Self::NAN;
+    // `from_bits` produces exactly the bit pattern obtained by negating the
+    // upstream canonical NaN.  This avoids Aeneas's unsupported float unop
+    // while preserving the constant, including its sign and payload bits.
+    const NEG_NAN: Self = f16::from_bits(0xFE00);
@@ -211,0 +210,2 @@
+    // Exact value of trunc(16 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 4;
@@ -223,0 +224,3 @@
+// `FloatExt for f16` is used only by the excluded f16 specialization; it is
+// irrelevant to all retained f64 computation and observations listed above.
+#[cfg(any())]
@@ -228,0 +232,16 @@
+
+    // Specializing the upstream default removes only unsupported associated-
+    // integer operator resolution; these are the same bit operations with
+    // `Self::Int = u16` and the same exponent-bias subtraction.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 15 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 10) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u16 << 10)
+        };
+        exponent -= 15 + 10;
+        (mantissa as u64, exponent, sign)
+    }
@@ -230,0 +250,3 @@
+// The f32 implementation is outside the exclusively f64 scope. Disabling it
+// does not alter any retained f64 computation, assertion, result, or trace.
+#[cfg(any())]
@@ -237 +259,3 @@
-    const NEG_NAN: Self = -f32::NAN;
+    // Bit-identical to the upstream `-f32::NAN`, without the unsupported
+    // compile-time float negation.
+    const NEG_NAN: Self = f32::from_bits(0xFFC0_0000);
@@ -245,0 +270,2 @@
+    // Exact value of trunc(128 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 38;
@@ -256,0 +283,3 @@
+// `FloatExt for f32` likewise has no use in any retained f64 body or accepted
+// observation and is disabled without changing f64 execution.
+#[cfg(any())]
@@ -261,0 +291,16 @@
+
+    // This is the upstream default after substituting `Self::Int = u32`;
+    // concreteness is needed only because Charon cannot resolve the generic
+    // associated-integer shifts and bit operators for Aeneas.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 31 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 23) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u32 << 23)
+        };
+        exponent -= 127 + 23;
+        (mantissa as u64, exponent, sign)
+    }
@@ -270 +315,3 @@
-    const NEG_NAN: Self = -Self::NAN;
+    // Bit-identical to the upstream `-f64::NAN`, without the unsupported
+    // compile-time float negation.
+    const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);
@@ -278,0 +326,2 @@
+    // Exact value of trunc(1024 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 308;
@@ -293,0 +343,16 @@
+    }
+
+    // This is the upstream default after substituting `Self::Int = u64`;
+    // it preserves every decoded field while avoiding unsupported generic
+    // associated-integer operator resolution.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 63 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 52) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u64 << 52)
+        };
+        exponent -= 1023 + 52;
+        (mantissa, exponent, sign)
reference/model-evidence/source-adaptation-delta.txt

Open file

Primary inventory and preservation analysis of the upstream-to-crate delta
============================================================================

Method and complete file inventory
----------------------------------

This record compares the supplied files in upstream/ with the frozen adapted
crate/.  It treats the sources and their control flow as primary evidence; it
does not use a prior route decision as semantic proof and makes no assertion
that a supplied GOAL is true.  The exact raw aggregate diff is retained as
reference/model-evidence/source-adaptation-delta.diff.  It was generated from
the repository root by this exact command (the for-list is the complete
LC_ALL=C-sorted upstream inventory, identical files contribute zero bytes,
labels are literal root-relative paths, hunks are concatenated in listed
order, status 1 is accepted as diff's expected ``files differ'' status, and
every other nonzero status aborts):

  export LC_ALL=C
  artifact=reference/model-evidence/source-adaptation-delta.diff
  : > "$artifact"
  saw_difference=0
  for supplied in \
    dec2flt/common.rs \
    dec2flt/decimal.rs \
    dec2flt/decimal_seq.rs \
    dec2flt/fpu.rs \
    dec2flt/lemire.rs \
    dec2flt/mod.rs \
    dec2flt/parse.rs \
    dec2flt/slow.rs \
    dec2flt/table.rs \
    traits.rs
  do
    if diff --unified=0 --label "upstream/$supplied" --label "crate/$supplied" \
        "upstream/$supplied" "crate/$supplied" >> "$artifact"; then
      :
    else
      diff_status=$?
      if [ "$diff_status" -ne 1 ]; then
        exit "$diff_status"
      fi
      saw_difference=1
    fi
  done
  test "$saw_difference" -eq 1
  sha256sum "$artifact"

The command used GNU diffutils 3.12 at /usr/bin/diff, whose SHA-256 is
dfab4814355b488934cf8c63ce96d94184ea3d9b5e4f9be50278ad8e080168f5.
Its actual final output was:

  fdf88cabfe40ce962d2bd5eda22eb5b3cbbf8a936a81b896e98698bf472cd0e4  reference/model-evidence/source-adaptation-delta.diff

The retained byte stream is 38,813 bytes and 933 lines.  The complete source
inventory and independently reproduced file hashes are:

  supplied path                 upstream SHA-256                                                   crate SHA-256                                                      status
  dec2flt/common.rs             fc64094721ff23e08fcba013154d04dec3fe986cae5ffd73a20f86049980aace   4c4be815335a7b176527eb1345e662890caa48181a0a4f814594339016cab18e   changed
  dec2flt/decimal.rs            3c164785e1bc3f3b48aa9c212dd6c4ab535fe828523af9fa584df4c7b1e60e0d   633658be803b7369b18feb098a8aa1b5f714a933d3b79ecbc4899a1b05f35beb   changed
  dec2flt/decimal_seq.rs        c0c1c6028e3f57cefc3de7635a94788e9180f5ebcedc7a334ec8dbac786ec788   4aa4ecf9f31970033093d73238d4f2c72d433639bbe467c0741b185807380bd9   changed
  dec2flt/fpu.rs                16cf9ec154d477ab3d4184a01fb4b9ed7c59f0228cc55589d393c40a61b19d8f   16cf9ec154d477ab3d4184a01fb4b9ed7c59f0228cc55589d393c40a61b19d8f   identical
  dec2flt/lemire.rs             fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1   fee1397d264fe4c5af5fa27efae0af7c5ad453be7cff8389abc24b9b252aead1   identical
  dec2flt/mod.rs                7198e238c554b692405537a446b3526ad66805ec2900cd0e299f10c51402a44a   ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d   changed
  dec2flt/parse.rs              9daf21ab9445a84552535152f376eef8c30f3d5827296c0645f5952d3b22bbf1   50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f   changed
  dec2flt/slow.rs               43e7aba32d7431bbf0e1bbcb4c334eaffb23eb66891c7e45abe799c5235cc0d2   93ba8f521d4c3c73dfbcd4c76e0e1cf1fff7fa400cb4cd559218e249a7f62485   changed
  dec2flt/table.rs              6eb59023784bd84cb6fb074c70da8a99bef72bc2a2ea179b0da457ca1ee00abb   6eb59023784bd84cb6fb074c70da8a99bef72bc2a2ea179b0da457ca1ee00abb   identical
  traits.rs                     66a02c44d72dfcc3ddae7e34a290e390dabaf98c5911b283d2d97f2f0075a44e   9013270fb846edcb0bdf2abd0353f575fdd727974cba9e89bdab8bb4c2b4f0bf   changed

The standalone package adds four files having no supplied counterpart:

  crate/Cargo.toml              2040ce5dc92c51b5245113f97682b692b876aa57708b5c7c483425ba152943c8
  crate/lib.rs                  1df2b8bcb2f52068d05a6343923716d0ef4475abdef34a0de3fe7cb8dc2ba95b
  crate/num/mod.rs              d9ac4f964d124bd4660914dc4c80bbb14f48d7851f9a8edc71a0931e9fce37b3
  crate/num/imp/mod.rs          df09b97393e97b23b0a558c2fcbbf4e75dd9d68338f1e83f168bab80a37a31f1

Thus fpu.rs, lemire.rs, and the complete 671-line table.rs, including their
algorithmic constants and tables, are byte-identical.  The following sections
account for every other file and every changed hunk.

Namespace and error shell
-------------------------

crate/lib.rs:1-12 is a no_std crate root that re-exports core::f64 and
core::ops and introduces the same num module path expected by the supplied
slice.  crate/num/imp/mod.rs:1-10 uses path attributes to place traits.rs and
dec2flt/mod.rs at core::num::imp-like module names.  These declarations add no
wrapper call or computation.  crate/num/mod.rs:1 re-exports
core::num::FpCategory.  crate/num/mod.rs:3-26 defines a local private
FloatErrorKind and ParseFloatError shell so the standalone package can name
the parser's error type.  The pursued GOALs observe only panic versus normal
return and, on normal return, the outer Result's Ok/Err discriminant; they do
not observe the private error kind or formatting.  No identity is asserted
between this local shell and an unpinned core error payload.
crate/Cargo.toml:5-22 selects the package, empty default features, and
checked-overflow profiles.  The configuration and fresh build are independently
reproduced in setup-reproduction.txt.

Visibility, derives, and bounds
-------------------------------

upstream/dec2flt/mod.rs:90 versus crate/dec2flt/mod.rs:90 changes only the
visibility of the existing BiasedFp import so a goal-facing caller can name the
same type.  It changes neither layout nor execution.

upstream/dec2flt/common.rs:68 and decimal.rs:28 and decimal_seq.rs:17 include
Debug derives.  The corresponding crate spans common.rs:48-51,
decimal.rs:28-31, and decimal_seq.rs:17-20 remove only Debug.  Copy, Clone,
PartialEq, Eq, and Default used by computation remain where present, and no
accepted observation formats these records.

upstream/traits.rs:11-52 versus crate/traits.rs:11-64 removes formatting from
Int, removes a redundant Copy supertrait from CastInto, and instantiates Int
only for u64.  Every call of CastInto is through Int, which still requires
Copy; all retained concrete values are primitive Copy values.  The removed
u16/u32 instances are associated only with the disabled f16/f32 formats.

upstream/traits.rs:55-76 versus crate/traits.rs:67-80 removes Add, Debug,
PartialEq, PartialOrd, Default, and Clone from Float while retaining Copy, Mul,
Div, and Neg.  A search of all retained generic bodies shows no call using a
removed operation.  upstream/dec2flt/decimal.rs:56-89 versus
crate/dec2flt/decimal.rs:59-111 and upstream/dec2flt/mod.rs:209-256 versus
crate/dec2flt/mod.rs:352-520 add direct Div, Mul, and Neg bounds already implied
by Lemire -> Float, and replace operator notation with calls to those same
traits.  Rust desugars the original /, *, and unary - to these trait calls, so
the operands, call order, result, and admitted f64 specialization are unchanged.

Exact constants, tables, and specialized decoding
-------------------------------------------------

The source formulae and decimal-literal table were evaluated directly by the
pinned rustc using the retained source
reference/model-evidence/adaptation-constants-probe.rs.  The command was:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/adaptation-constants-probe.rs
  B=.trellis/scratch/adaptation-constants-probe
  "$R" --edition 2024 --target x86_64-unknown-linux-gnu -C opt-level=0 "$P" -o "$B"
  sha256sum "$P" "$B"
  "$B"

The source hash was
b5a4a2cba0c08053cb9a816adb1ba5dbd160bf3928bdf5ccf56b7ae83aaa2aa5
and the resulting executable hash was
b02d2f6deb675f17d0dbdc22e57a67d7692689f7a2b0d7b125556c35c4b8a4a5.
Raw output was:

  largest_power_of_ten=308
  max_exponent_fast_path=22
  max_exponent_disguised=37
  neg_nan=fff8000000000000
  pow10_0=3ff0000000000000
  pow10_1=4024000000000000
  pow10_2=4059000000000000
  pow10_3=408f400000000000
  pow10_4=40c3880000000000
  pow10_5=40f86a0000000000
  pow10_6=412e848000000000
  pow10_7=416312d000000000
  pow10_8=4197d78400000000
  pow10_9=41cdcd6500000000
  pow10_10=4202a05f20000000
  pow10_11=42374876e8000000
  pow10_12=426d1a94a2000000
  pow10_13=42a2309ce5400000
  pow10_14=42d6bcc41e900000
  pow10_15=430c6bf526340000
  pow10_16=4341c37937e08000
  pow10_17=4376345785d8a000
  pow10_18=43abc16d674ec800
  pow10_19=43e158e460913d00
  pow10_20=4415af1d78b58c40
  pow10_21=444b1ae4d6e2ef50
  pow10_22=4480f0cf064dd592

upstream/traits.rs:134-137 computes LARGEST_POWER_OF_TEN through a Float
default, and upstream/traits.rs:175-193 gives the generic integer_decode and
the helper used by that constant.  crate/traits.rs:146 makes the constant an
associated requirement; crate/traits.rs:309-359 supplies the retained f64
values and decoder after substituting BITS=64, SIG_BITS=52, EXP_BIAS=1023,
EXPONENT_MASK, MANTISSA_MASK, and the u64 operations.  Each source expression
then becomes exactly the corresponding crate expression: sign is bits>>63,
exponent is (bits & mask)>>52 cast to i16, the subnormal mantissa is shifted
once, the normal mantissa receives 1<<52, and 1023+52 is subtracted.  The
resulting tuple and every bit operation are unchanged.  The probe output above
shows that the computed f64 LARGEST_POWER_OF_TEN is 308 and that the source
-f64::NAN word is fff8000000000000, exactly crate/traits.rs:315-327; the
independent binary64-boundary.txt record fixes the masks and primitive bit
semantics used by the decoder.

upstream/dec2flt/mod.rs:118-129 gives the two Lemire default formulae.
crate/dec2flt/mod.rs:115-128 makes them associated requirements, and the
retained f64 instance at crate/dec2flt/mod.rs:217-220 supplies 22 and 37, the
integer results of the two source formulae for 53 significand bits.
upstream/dec2flt/mod.rs:176-181 indexes a 32-entry f64 table with exponent&31.
crate/dec2flt/mod.rs:222-251 performs the same masked selection using from_bits:
cases 0 through 22 are the exact pinned binary64 words printed above for 1e0 through 1e22 and
all other cases return positive zero, as did entries 23 through 31.  The full
word list and the pinned float semantics are recorded in binary64-boundary.txt.
The analogous f16/f32 replacements at crate/dec2flt/mod.rs:145-215 and
crate/traits.rs:187-307 lie under cfg(any()) and cannot enter this build.

Whole-function from_u64 opacity
-------------------------------

upstream/dec2flt/mod.rs:184-188 and crate/dec2flt/mod.rs:263-266 have the same
f64 body: the same enabled debug_assert that v <= 1<<53, followed by the same
primitive `v as f64` cast.  The sole semantic-boundary annotation is
#[charon::opaque] at crate line 262, syntactically attached to the function
item.  It therefore hides the entire from_u64 body from translation: neither
the debug assertion nor the cast is transparent in the extraction.  The
callers, their guards, and the surrounding native-path computation remain
transparent.  The fresh external inventory contains the whole method as the
single external F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64.  Its
separately reviewed ModelF64FromU64 binding supplies exactly successful integer
conversion for v <= 2^53 and assertion failure otherwise.

Digit scans, slice patterns, and helper extraction
-------------------------------------------------

upstream/dec2flt/common.rs:14-53 supplies ByteSlice::parse_digits: repeatedly
split_first, wrapping-subtract ASCII zero, invoke the closure exactly when the
result is below 10, consume that byte, and stop at the first other byte.
crate/dec2flt/common.rs:11-36 removes only this method.  Its complete set of
uses is replaced as follows.

* upstream/dec2flt/parse.rs:31-48 versus crate/dec2flt/parse.rs:31-58 keeps the
  eight-byte loop, wrapping multiply/add, and then performs the same digit test,
  accumulator update, and one-byte progress with an index.  The local rename
  num to chunk is lexical only.
* upstream/dec2flt/parse.rs:83-97 versus crate/dec2flt/parse.rs:131-153 expands
  matches!/parse_digits into the same nonempty first-digit guard, the same
  0x10000 bounded exponent update, the same first-nondigit suffix, and the same
  final sign.  The bound is tested before each checked multiply and addition,
  exactly as in the closure.
* upstream/dec2flt/decimal_seq.rs:220-295 versus
  crate/dec2flt/decimal_seq.rs:231-359 extracts parse_digits_into_seq,
  parse_decimal_exponent, and count_trailing_zeros.  The digit helpers use the
  same wrapping byte test, forward order, try_add_digit state transition, and
  0x10000 exponent guard.  The reverse helper visits indices consumed_len-1
  down to zero, increments only for ASCII zero, ignores a decimal point, and
  stops at the first other byte, exactly the original iter().rev() loop.

In all these replacements, indexing occurs only under count<len or !is_empty,
so it has the same bounds as split_first.  Slicing advances by exactly the same
one or eight bytes.  No wrapping operation is replaced by checked arithmetic,
and no checked source operation is replaced by wrapping arithmetic.

upstream/dec2flt/parse.rs:155-181 versus crate/dec2flt/parse.rs:82-119 and
212-226 moves two loops into adjust_many_digit_count and parse_many_digits.
The prefix helper visits the same start bytes in the same order, performs the
same saturating_sub and checked isize subtraction, and stops on the same byte.
The retry helper makes the same first 19-digit call, tests the same threshold,
makes the same one-byte rebase and second call in the alternate branch,
computes the same offset with the same sign, casts it to i64, and performs the
same checked addition of exp_number last.  Thus any large-input panic is
preserved rather than excluded.

upstream/dec2flt/decimal_seq.rs:226-295 versus
crate/dec2flt/decimal_seq.rs:284-359 replaces literal split_first patterns by
nonempty index tests.  The leading-zero scans, optional decimal point, optional
exponent marker, optional exponent sign, and suffixes occur in the same order.
The crate's exp_sign*exp_num equals the source choice between exp_num and
-exp_num because exp_num is bounded by the unchanged 0x10000 guard; the final
decimal_point checked addition is in the same position.  Casts of lengths to
i32 and every subsequent checked update remain unchanged, including their
large-input behavior.

Delayed returns
---------------

upstream/dec2flt/decimal_seq.rs:173-198 versus
crate/dec2flt/decimal_seq.rs:176-203 replaces one return inside right_shift's
loop by all_zero=true, exits because !all_zero is the loop guard, and returns
immediately afterward.  No decimal_point, digit, index, or arithmetic update
occurs between the original and delayed return.

upstream/dec2flt/slow.rs:46-76 versus crate/dec2flt/slow.rs:46-94 replaces two
nested-loop returns by loop_result.  In the zero branch it records fp_zero,
skips the source-skipped exp2 addition, exits through is_none(), and returns.
In the infinity branch it records fp_inf, skips the source-skipped exp2
subtraction, exits, and returns.  On all other iterations it performs the same
shift, checked state changes, and exponent update.  Lines 95-126 after these
returns are otherwise the source lines 77-110 unchanged.

Dispatcher trace and public projection
--------------------------------------

upstream/dec2flt/mod.rs:209-256 is the whole original dispatcher.
crate/dec2flt/mod.rs:285-349 declares trace data only, lines 352-505 execute the
instrumented dispatcher, and lines 507-520 define public dec2flt as its first
projection.  Comparing the bodies gives the following branch-by-branch
correspondence.

* Both call as_bytes, inspect the first byte, reject empty input before a helper,
  remove at most one sign, and reject a sign-only body.  The trace stores the
  already obtained body and Boolean sign.
* Both call parse_number first on that exact body.  Only None calls
  parse_inf_nan on the same body and sign.  Its Some is returned directly and
  its None returns invalid.  The trace stores those existing Option values.
* Both overwrite only Decimal.negative, test the same compile-time
  !optimize_for_size condition, call try_fast_path once, and return its Some
  directly.  The trace stores the copied Decimal and Option; Decimal is Copy.
* Both call compute_float first with num.exponent and num.mantissa.  The crate's
  second_compute_guard is exactly the first two conjuncts of the source
  short-circuit.  Therefore the checked mantissa+1 and second compute_float call
  occur under precisely the source guard, in the same order.  The same pair
  comparison either retains fp or changes only p_biased to -1.
* Both test the post-comparison p_biased<0 once, call parse_long_mantissa on the
  unchanged body exactly when true, and otherwise retain the same pair.  The
  trace records both guard and result without another helper call.
* The extra assembled_word expression is the same cast, shift, and OR performed
  by biased_fp_to_float at upstream lines 202-206 and crate lines 278-282; these
  integer operations neither panic nor mutate fp.  Both then call assembly once
  on the selected pair and apply unary negation exactly when num.negative.
  Public dec2flt returns the identical Result first component.

Consequently the trace does not infer uncomputed data: it records the exact
variant; sign-stripped body and sign; numeric/special Options; fast-path input
and result; first and conditional second integer operands and results;
comparison, forced-deferral and post-comparison pair; slow guard and result;
selected pair; assembled word; pre-sign assembly word; sign-application fact;
and final word.  Special and native direct returns create no selected pair.
All source call order, guards, checked arithmetic, mutable-state transitions,
panic points, and returned Result/F64 observations remain in place.

F64-only restriction
--------------------

crate/traits.rs:187-307 and crate/dec2flt/mod.rs:140-215 add cfg(any()) to the
f16/f32 Float, FloatExt, and Lemire implementations.  crate/traits.rs:59-64
retains only u64 Int.  The retained f64 implementations are
crate/traits.rs:309-360 and crate/dec2flt/mod.rs:217-264.  Every goal-facing
function remains generic in the source and extraction, but each pursued source
subject specializes it to f64, whose associated integer is u64.  There is no
dynamic format dispatch, so removing other impl blocks cannot change an f64
call, its native decision, checks, result word, NaN classification, fields, or
trace.  The fresh boundary inventory in setup-reproduction.txt confirms that
no removed-format external remains.

Conclusion
----------

The inventory is exhaustive: three supplied files are identical, seven have
all hunks classified above, and the four added files are the package shell.
For the configured f64 specialization, the adapted crate has the same input
domains, branch order, guards, checked/wrapping distinction, state transitions,
panic versus normal behavior, and public/helper observations as the supplied
source.  The only new observations are the trace fields, each copied from an
existing value or computed by the same pure assembly expression.  This
conclusion is independent of whether any parser-correctness GOAL is true.
reference/model-evidence/source-valid-byte-slice-probe.out

Open file

arch=x86_64
usize_bits=64
isize_max=9223372036854775807
u8_size=1
reference/model-evidence/source-valid-byte-slice-probe.rs

Open file

fn main() {
    println!("arch={}", std::env::consts::ARCH);
    println!("usize_bits={}", usize::BITS);
    println!("isize_max={}", isize::MAX);
    println!("u8_size={}", std::mem::size_of::<u8>());
}
reference/model-evidence/source-valid-byte-slice.txt

Open file

Source-valid byte-slice and string domain evidence
==================================================

Scope and pinned identities
---------------------------

All commands below were run from the repository root.  The configured compiler
is:

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

Its SHA-256 is:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b

The exact identity commands were:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  sha256sum "$R"
  "$R" --version --verbose
  "$R" --target x86_64-unknown-linux-gnu --print cfg | LC_ALL=C sort | \
    rg 'target_(arch|pointer_width)'

Their relevant raw output was:

  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
  target_arch="x86_64"
  target_pointer_width="64"

Retained configured-target probe
--------------------------------

The retained probe source is
reference/model-evidence/source-valid-byte-slice-probe.rs.  It was compiled
for the configured target and executed with this exact command, which depends
only on the retained source and the pinned compiler:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/source-valid-byte-slice-probe.rs
  B=/tmp/dec2flt-source-valid-byte-slice-probe
  O=reference/model-evidence/source-valid-byte-slice-probe.out
  "$R" --edition 2024 --target x86_64-unknown-linux-gnu -C opt-level=0 \
    -C debuginfo=0 -C overflow-checks=on -C debug-assertions=on \
    --crate-name source_valid_byte_slice_probe "$P" -o "$B"
  sha256sum "$R" "$P" "$B"
  "$B" > "$O"
  sha256sum "$O"
  cat "$O"

The actual hashes were:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd  reference/model-evidence/source-valid-byte-slice-probe.rs
  87dc3b9b7a46506d2205503d8aa007b451c452968af48d1ba5961a821934ee55  /tmp/dec2flt-source-valid-byte-slice-probe
  01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4  reference/model-evidence/source-valid-byte-slice-probe.out

The retained raw output file contains exactly:

  arch=x86_64
  usize_bits=64
  isize_max=9223372036854775807
  u8_size=1

Pinned core-library source
--------------------------

Let:

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

The exact commands used to identify and inspect the relevant core sources were:

  sha256sum "$S/slice/mod.rs" "$S/num/int_macros.rs" "$S/str/mod.rs"
  sed -n '798,808p' "$S/slice/mod.rs"
  sed -n '43,51p' "$S/num/int_macros.rs"
  sed -n '495,510p' "$S/str/mod.rs"

The file identities are:

  354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840  core/src/slice/mod.rs
  3896304e7cb14628e293134ac41fd18be2b5369bedc02d1c6a7408bd8c755a31  core/src/num/int_macros.rs
  284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78  core/src/str/mod.rs

The relevant exact excerpt of slice/mod.rs, line 801, is:

  //   - The size of the slice is never larger than `isize::MAX` bytes, as

The relevant exact declaration in num/int_macros.rs, line 47, is:

  pub const MAX: Self = (<$UnsignedT>::MAX >> 1) as Self;

The relevant exact excerpts of str/mod.rs are its same-layout byte-slice
conversion at lines 498-500:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }

and its UTF-8 invariant at lines 507-510:

  /// The caller must ensure that the content of the slice is valid UTF-8
  /// before the borrow ends and the underlying `str` is used.
  ///
  /// Use of a `str` whose contents are not valid UTF-8 is undefined behavior.

Conclusion
----------

The configured target has 64-bit usize/isize and one-byte u8 elements.
The pinned signed-MAX definition therefore gives
isize::MAX = 2^63 - 1 = 9223372036854775807, and the pinned slice rule bounds a
slice by that many bytes.  For &[u8], this is exactly an element-count bound;
the rule adds no UTF-8 condition or other restriction on the byte contents.
The pinned str source exposes the identical-layout &[u8] bytes and separately
requires them to be valid UTF-8.  Consequently the exact configured domains
are arbitrary &[u8] bytes of length at most isize::MAX, and Rust str bytes of
length at most isize::MAX that are valid UTF-8.  No smaller convenience bound
is introduced.
Upstream → extraction-crate adaptation diff
--- upstream/traits.rs
+++ crate/traits.rs
@@ -8,19 +8,26 @@
 )]
 
 use crate::num::FpCategory;
-use crate::{f64, fmt, ops};
+use crate::{f64, ops};
 
 /// Lossy `as` casting between two types.
-pub trait CastInto<T: Copy>: Copy {
+// All uses are through `Int`, which independently requires `Self: Copy`, and
+// every implementation here is a primitive Copy type.  Removing that redundant
+// supertrait changes no call or value but prevents Aeneas from emitting two
+// identically named `Copy` fields for `Self` and `T` in the Lean structure.
+pub trait CastInto<T: Copy> {
     fn cast(self) -> T;
 }
 
 /// Collection of traits that allow us to be generic over integer size.
+// The accepted observations contain no formatting behavior.  Removing the
+// `Debug` supertrait changes neither the concrete primitive integer instances
+// nor any operation used by the algorithms, so it preserves the f64
+// specialization and every inventoried observation independently of GOAL truth.
 pub trait Int:
     Sized
     + Clone
     + Copy
-    + fmt::Debug
     + ops::Shr<u32, Output = Self>
     + ops::Shl<u32, Output = Self>
     + ops::BitAnd<Output = Self>
@@ -49,21 +56,26 @@
     }
 }
 
-int!(u16, u32, u64);
+// Only `u64` is the associated integer of the retained `f64` specialization.
+// The removed `u16`/`u32` instances served only the excluded `f16`/`f32`
+// implementations, so their removal changes no f64 public, helper, or trace
+// body, native decision, checked arithmetic, debug assertion, return value, or
+// accepted observation.
+int!(u64);
 
 /// A helper trait to avoid duplicating basically all the conversion code for IEEE floats.
 #[doc(hidden)]
+// Formatting is outside every accepted public and trace observation. `Add`,
+// equality, ordering, default construction, and cloning are also unused by all
+// retained generic bodies; only `Copy`, `Mul`, `Div`, and `Neg` are required.
+// Removing those unused requirements admits the same f64 implementation and
+// changes no f64 body, native decision, checked arithmetic, debug assertion,
+// return value, or trace observation, independently of any GOAL's truth.
 pub trait Float:
     Sized
     + ops::Div<Output = Self>
     + ops::Neg<Output = Self>
     + ops::Mul<Output = Self>
-    + ops::Add<Output = Self>
-    + fmt::Debug
-    + PartialEq
-    + PartialOrd
-    + Default
-    + Clone
     + Copy
 {
     /// The unsigned integer with the same size as the float
@@ -131,10 +143,7 @@
     ///
     /// This is the max exponent in binary converted to the max exponent in decimal. Allows fast
     /// pathing anything larger than `10^LARGEST_POWER_OF_TEN`, which will round to infinity.
-    const LARGEST_POWER_OF_TEN: i32 = {
-        let largest_pow2 = Self::EXP_BIAS + 1;
-        pow2_to_pow10(largest_pow2 as i64) as i32
-    };
+    const LARGEST_POWER_OF_TEN: i32;
 
     /// Smallest decimal exponent for a non-zero value. This allows for fast pathing anything
     /// smaller than `10^SMALLEST_POWER_OF_TEN`, which will round to zero.
@@ -172,35 +181,24 @@
     /// with the explicit bit set but otherwise unshifted
     ///
     /// `s` is only ever +/-1.
-    fn integer_decode(self) -> (u64, i16, i8) {
-        let bits = self.to_bits();
-        let sign: i8 = if bits >> (Self::BITS - 1) == Self::Int::ZERO { 1 } else { -1 };
-        let mut exponent: i16 = ((bits & Self::EXP_MASK) >> Self::SIG_BITS).cast();
-        let mantissa = if exponent == 0 {
-            (bits & Self::SIG_MASK) << 1
-        } else {
-            (bits & Self::SIG_MASK) | (Self::Int::ONE << Self::SIG_BITS)
-        };
-        // Exponent bias + mantissa shift
-        exponent -= (Self::EXP_BIAS + Self::SIG_BITS) as i16;
-        (mantissa.into(), exponent, sign)
-    }
-}
-
-/// Solve for `b` in `10^b = 2^a`
-const fn pow2_to_pow10(a: i64) -> i64 {
-    let res = (a as f64) / f64::consts::LOG2_10;
-    res as i64
+    fn integer_decode(self) -> (u64, i16, i8);
 }
 
 #[cfg(target_has_reliable_f16)]
+// The f16 implementation is outside the exclusively f64 scope. Disabling it
+// leaves every retained f64 public/helper/trace body and all of its decisions,
+// checked operations, assertions, return values, and observations unchanged.
+#[cfg(any())]
 impl Float for f16 {
     type Int = u16;
 
     const INFINITY: Self = Self::INFINITY;
     const NEG_INFINITY: Self = Self::NEG_INFINITY;
     const NAN: Self = Self::NAN;
-    const NEG_NAN: Self = -Self::NAN;
+    // `from_bits` produces exactly the bit pattern obtained by negating the
+    // upstream canonical NaN.  This avoids Aeneas's unsupported float unop
+    // while preserving the constant, including its sign and payload bits.
+    const NEG_NAN: Self = f16::from_bits(0xFE00);
 
     const BITS: u32 = 16;
     const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
@@ -209,6 +207,8 @@
 
     const MIN_EXPONENT_ROUND_TO_EVEN: i32 = -22;
     const MAX_EXPONENT_ROUND_TO_EVEN: i32 = 5;
+    // Exact value of trunc(16 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 4;
     const SMALLEST_POWER_OF_TEN: i32 = -27;
 
     fn to_bits(self) -> Self::Int {
@@ -221,20 +221,44 @@
 }
 
 #[cfg(target_has_reliable_f16)]
+// `FloatExt for f16` is used only by the excluded f16 specialization; it is
+// irrelevant to all retained f64 computation and observations listed above.
+#[cfg(any())]
 impl FloatExt for f16 {
     #[inline]
     fn from_u64_bits(v: u64) -> Self {
         Self::from_bits((v & 0xFFFF) as u16)
     }
-}
-
+
+    // Specializing the upstream default removes only unsupported associated-
+    // integer operator resolution; these are the same bit operations with
+    // `Self::Int = u16` and the same exponent-bias subtraction.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 15 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 10) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u16 << 10)
+        };
+        exponent -= 15 + 10;
+        (mantissa as u64, exponent, sign)
+    }
+}
+
+// The f32 implementation is outside the exclusively f64 scope. Disabling it
+// does not alter any retained f64 computation, assertion, result, or trace.
+#[cfg(any())]
 impl Float for f32 {
     type Int = u32;
 
     const INFINITY: Self = f32::INFINITY;
     const NEG_INFINITY: Self = f32::NEG_INFINITY;
     const NAN: Self = f32::NAN;
-    const NEG_NAN: Self = -f32::NAN;
+    // Bit-identical to the upstream `-f32::NAN`, without the unsupported
+    // compile-time float negation.
+    const NEG_NAN: Self = f32::from_bits(0xFFC0_0000);
 
     const BITS: u32 = 32;
     const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
@@ -243,6 +267,8 @@
 
     const MIN_EXPONENT_ROUND_TO_EVEN: i32 = -17;
     const MAX_EXPONENT_ROUND_TO_EVEN: i32 = 10;
+    // Exact value of trunc(128 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 38;
     const SMALLEST_POWER_OF_TEN: i32 = -65;
 
     fn to_bits(self) -> Self::Int {
@@ -254,11 +280,30 @@
     }
 }
 
+// `FloatExt for f32` likewise has no use in any retained f64 body or accepted
+// observation and is disabled without changing f64 execution.
+#[cfg(any())]
 impl FloatExt for f32 {
     #[inline]
     fn from_u64_bits(v: u64) -> Self {
         f32::from_bits((v & 0xFFFFFFFF) as u32)
     }
+
+    // This is the upstream default after substituting `Self::Int = u32`;
+    // concreteness is needed only because Charon cannot resolve the generic
+    // associated-integer shifts and bit operators for Aeneas.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 31 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 23) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u32 << 23)
+        };
+        exponent -= 127 + 23;
+        (mantissa as u64, exponent, sign)
+    }
 }
 
 impl Float for f64 {
@@ -267,7 +312,9 @@
     const INFINITY: Self = Self::INFINITY;
     const NEG_INFINITY: Self = Self::NEG_INFINITY;
     const NAN: Self = Self::NAN;
-    const NEG_NAN: Self = -Self::NAN;
+    // Bit-identical to the upstream `-f64::NAN`, without the unsupported
+    // compile-time float negation.
+    const NEG_NAN: Self = f64::from_bits(0xFFF8_0000_0000_0000);
 
     const BITS: u32 = 64;
     const SIG_TOTAL_BITS: u32 = Self::MANTISSA_DIGITS;
@@ -276,6 +323,8 @@
 
     const MIN_EXPONENT_ROUND_TO_EVEN: i32 = -4;
     const MAX_EXPONENT_ROUND_TO_EVEN: i32 = 23;
+    // Exact value of trunc(1024 / log2(10)) from the upstream default.
+    const LARGEST_POWER_OF_TEN: i32 = 308;
     const SMALLEST_POWER_OF_TEN: i32 = -342;
 
     fn to_bits(self) -> Self::Int {
@@ -292,4 +341,20 @@
     fn from_u64_bits(v: u64) -> Self {
         f64::from_bits(v)
     }
-}
+
+    // This is the upstream default after substituting `Self::Int = u64`;
+    // it preserves every decoded field while avoiding unsupported generic
+    // associated-integer operator resolution.
+    fn integer_decode(self) -> (u64, i16, i8) {
+        let bits = self.to_bits();
+        let sign = if bits >> 63 == 0 { 1 } else { -1 };
+        let mut exponent = ((bits & Self::EXPONENT_MASK) >> 52) as i16;
+        let mantissa = if exponent == 0 {
+            (bits & Self::MANTISSA_MASK) << 1
+        } else {
+            (bits & Self::MANTISSA_MASK) | (1_u64 << 52)
+        };
+        exponent -= 1023 + 52;
+        (mantissa, exponent, sign)
+    }
+}
Record details
Kindsource adaptation site (file-level diff)
Captured evidence identities
[
  {
    "path": "extraction-evidence/COMMAND.json",
    "sha256": "5f26225136b8c7c4d7f95615e3e8ff8b357e523eeada4bc649e50f9c76cb9bda",
    "cited_by": [
      "shared mechanical extraction record",
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "extraction-evidence/DETERMINISM.json",
    "sha256": "74e45977d1fa84e7d4c696906005f13faca994995fdeff0fac8dc13e5c18f11c",
    "cited_by": [
      "shared mechanical extraction record"
    ]
  },
  {
    "path": "extraction-evidence/RESULT.json",
    "sha256": "31059e900d9ee03a54504c1dd3560a943d6c0f883fba737163b1ca0cb40065b0",
    "cited_by": [
      "shared mechanical extraction record",
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "extraction-evidence/STDERR.bin",
    "sha256": "c284799d633c64b898f716d62fbf1146c173227bd6bd44309c6504a43926e000",
    "cited_by": [
      "shared mechanical extraction record"
    ]
  },
  {
    "path": "extraction-evidence/STDOUT.bin",
    "sha256": "8e0aed62f6941e7c81b09d5c5b63ea7602756e69e4bcce9944258b229a9a0ba3",
    "cited_by": [
      "shared mechanical extraction record"
    ]
  },
  {
    "path": "reference/model-evidence/adaptation-constants-probe.rs",
    "sha256": "b5a4a2cba0c08053cb9a816adb1ba5dbd160bf3928bdf5ccf56b7ae83aaa2aa5",
    "cited_by": [
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-boundary.txt",
    "sha256": "fa45c924747337e8d6f84a19fe9e83fb9b33c73434887c0cf57c062533f51fe1",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex",
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/binary64-probe.rs",
    "sha256": "68e70be70faa44c2781990457f09ef5fc7815e120fda0a468eaa85f9b634ad7e",
    "cited_by": [
      "reference/model-evidence/binary64-boundary.txt"
    ]
  },
  {
    "path": "reference/model-evidence/native-boundary.txt",
    "sha256": "fa0d69e4a434007e6ee675380fc13f98e22655b7faa77cdc5216d4af4356438f",
    "cited_by": [
      "reference/model-evidence/setup-reproduction.txt"
    ]
  },
  {
    "path": "reference/model-evidence/setup-reproduction.txt",
    "sha256": "209bc94a47b1b905a2a7b1fea229c759e6250becbd353fe4eadc7bc49be7742c",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex",
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-adaptation-delta.diff",
    "sha256": "fdf88cabfe40ce962d2bd5eda22eb5b3cbbf8a936a81b896e98698bf472cd0e4",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex",
      "reference/model-evidence/source-adaptation-delta.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-adaptation-delta.txt",
    "sha256": "3c1483d48286a82484eba249a5434936e1a33a08f4e99ec0e3a03ce9bb0ecd9b",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.out",
    "sha256": "01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.rs",
    "sha256": "b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice.txt",
    "sha256": "eb501317621baa00236f9773885466bd38ec1a45cb56457d555b9e9139dc780a",
    "cited_by": [
      "shared extraction boundary: Tablet/Preamble.tex"
    ]
  }
]

Platform and environment premises (1)

Dec2Flt.configured_x86_64_numBits

Definition

For the configured x86_64-unknown-linux-gnu extraction environment, the Aeneas platform parameter satisfies \mathtt{System.Platform.numBits}=64.

Preservation argument

Claim

The axiom binds the Aeneas pointer-width parameter to the already-selected x86_64-unknown-linux-gnu source environment. Consequently the Aeneas Usize and Isize widths are both 64, exactly matching the configured Rust usize and isize widths. This binding does not remove any configured source value or introduce a smaller slice or string bound.

Proof

The accepted extraction scope fixes nightly-2026-06-01 and target x86_64-unknown-linux-gnu; the setup record fixes the same target and the extraction command actually passes it to cargo rustc. The pinned compiler's raw --print cfg result for that invocation contains target_arch="x86_64" and target_pointer_width="64". A separately retained program compiled for that target reports usize::BITS = 64 and isize::MAX = 9223372036854775807. The compiler identity, commands, hashes, and raw results are recorded in reference/model-evidence/platform-width.txt and reference/model-evidence/source-valid-byte-slice.txt.
The pinned Aeneas scalar source defines UScalarTy.Usize.numBits and IScalarTy.Isize.numBits to be System.Platform.numBits, and defines Usize and Isize using exactly those two scalar kinds. The source excerpt and its hash are also recorded in reference/model-evidence/platform-width.txt. Substituting the configured compiler fact therefore gives both Aeneas widths as 64. The usual Aeneas definition Usize.max = 2^{\mathtt{Usize.numBits}}-1 then gives Usize.max = 2^{64}-1, so in particular 2^{63}-1\leq\mathtt{Usize.max}. Thus every Rust byte slice allowed by the configured isize::MAX byte-size rule remains representable by the Aeneas slice carrier. The axiom supplies only the omitted target parameter: it neither assumes parser behavior nor changes any goal proposition, and the same environment binding applies whether a goal is proved or disproved.

Requirement: assembly correspondence

This goal uses fixed-width u64, u32, and binary64 values; fixing the pointer width changes none of its inputs or observations.

Requirement: classification determinism

This finite-byte-string classification statement has no pointer-sized scalar or Aeneas slice carrier, so the environment binding is noninterfering.

Requirement: classification significand digit

This grammar consequence concerns finite byte strings and digit positions; it is independent of the platform-width parameter.

Requirement: classification totality

The mathematical finite-byte-string domain is unchanged; the width equation only instantiates the extracted model's pointer-sized environment parameter.

Requirement: dispatch abstract composition

The abstract dispatch statement keeps its existing source-valid string and byte-slice domains. The binding makes their 64-bit bounds representable and does not alter the statement in either its positive or refutation direction.

Requirement: dispatch component compliance

Every configured dispatcher slice/string value retains the same bytes and source bound. The binding only aligns Aeneas pointer-sized widths with the selected target, independently of the currently selected disproof direction.

Requirement: exponent value agreement

This decimal-value comparison is purely mathematical and contains no pointer-sized model carrier, so the binding is noninterfering.

Requirement: integer correct or defer

The helper's arithmetic inputs are fixed-width integers; assigning the configured pointer width changes neither its execution nor observations.

Requirement: native correct or defer

The native helper consumes the fixed-field decimal record and fixed-width binary64 operations, so this environment equality is noninterfering.

Requirement: number helper acceptance

The goal quantifies over the full configured source-valid byte-slice domain. The equality supplies the 64-bit Aeneas carrier capacity for that same domain, including its largest Rust-valid length, without imposing a smaller bound.

Requirement: number helper accumulated value

The same source-valid slices and returned record fields remain in scope; the binding only makes their configured pointer-sized indices and lengths 64-bit.

Requirement: number helper record bounds

The source-valid slice predicate and record conclusion are unchanged. The environment equality aligns their pointer-sized bounds with the selected target rather than strengthening either one.

Requirement: number helper rejection

Every source-valid invalid byte slice keeps the same bytes and Rust length bound, so the rejection proposition is unchanged by the environment binding.

Requirement: parser accumulated rounding

All configured strings and their byte bodies remain representable with the same contents; no rounding observation or parser premise is added.

Requirement: parser equal target rounding

The equality preserves the full string/body domain and changes no decimal or binary64 value used by the equal-target statement.

Requirement: parser exact rounding

The configured parser domain is unchanged. This target binding applies also to the selected exact-negation direction and assumes no rounding result.

Requirement: parser infinity

All source-valid spellings and sign bytes retain their contents and lengths; the infinity observation uses no additional platform-dependent fact.

Requirement: parser invalid rejection

Every configured invalid Rust string remains in the model domain with the same bytes, so neither its classification nor rejection proposition changes.

Requirement: parser nan acceptance

The binding preserves all NaN spellings and the fixed-width binary64 classification observation without adding an acceptance premise.

Requirement: parser non nan results

The full configured string domain and fixed-width classification result are unchanged; only the model's target parameter is instantiated.

Requirement: parser numeric acceptance

All source-valid numeric strings and byte bodies remain representable under their original 64-bit Rust bounds, with no smaller length condition added.

Requirement: parser numeric sign

Lexical sign bytes and returned binary64 sign observations are unchanged by the pointer-width equality.

Requirement: parser selected exponent

The binding preserves every input byte and only fixes pointer-sized indices; selected fixed-width exponent observations are unchanged.

Requirement: parser selected magnitude sign

The same strings, unsigned raw pairs, and assembled binary64 words remain in scope, so the selected magnitude/sign observation is unchanged.

Requirement: parser signed zero

The full configured input domain, lexical sign, and binary64 zero word are unchanged by fixing the model's pointer width.

Requirement: parser totality

Every configured Rust string remains represented with its original 64-bit length bound. The equality does not assume termination or successful return.

Requirement: rounding determinism

This nonnegative-real rounding statement has no platform-sized carrier, so the environment binding is noninterfering.

Requirement: rounding totality

This nonnegative-real existence statement has no platform-sized carrier, so the environment binding is noninterfering.

Requirement: slow accumulated rounding

The source-valid slice domain is preserved in full, including the configured 64-bit bound; the binding assumes no slow-parser result and applies equally to the selected refutation direction.

Requirement: special helper infinity

All source-valid byte slices and separate sign arguments remain unchanged; the result is a fixed-width binary64 observation.

Requirement: special helper nan

All source-valid NaN byte slices and their fixed-width classification observations remain unchanged.

Requirement: special helper rejection

Every source-valid non-special byte slice retains the same bytes and 64-bit Rust bound, with no additional rejection assumption.
Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

axiom Dec2Flt.configured_x86_64_numBits : System.Platform.numBits = 64

Why this model is faithful

The accepted scope and setup select x86_64-unknown-linux-gnu. The pinned extraction command compiles for exactly that target, and its raw rustc cfg output reports target_pointer_width=64; the retained configured-target probe independently reports usize::BITS=64 and isize::MAX=2^63-1. The hash-pinned Aeneas scalar source defines the Usize and Isize scalar-kind widths to be System.Platform.numBits. Therefore setting that model environment parameter to 64 is precisely the missing binding to the already-selected Rust target, and it derives both Aeneas pointer-sized widths without narrowing the Rust-valid slice/string domain or assuming any program behavior.

Evidence and probes

These programs and outputs were produced during modeling to examine specific behavior and support the modeling arguments.

extraction-evidence/COMMAND.json

Open file

{"declaration_reader_sha256":"76f60cf0b867fad9727d2256d32b306c8cba3725216a4225d0f83add77fd6158","extraction_provenance":{"extraction_toolchain":{"aeneas":"fa699427","aeneas_revision":"fa699427cdfa8f604b891fb0223ef42883dd7dc4","cargo_features":[{"features":["default"],"name":"dec2flt-model","source":"workspace:Cargo.toml","version":"0.1.0"}],"cargo_lock_sha256":"bc644c624ded89197356bbd65d995054b7fb08e5bdfbaa38c6e7c7a53772cecf","cfg":["debug_assertions","emscripten_wasm_eh","feature=\"default\"","fmt_debug=\"full\"","overflow_checks","panic=\"unwind\"","relocation_model=\"pic\"","target_abi=\"\"","target_arch=\"x86_64\"","target_endian=\"little\"","target_env=\"gnu\"","target_family=\"unix\"","target_feature=\"fxsr\"","target_feature=\"sse\"","target_feature=\"sse2\"","target_feature=\"x87\"","target_has_atomic","target_has_atomic=\"16\"","target_has_atomic=\"32\"","target_has_atomic=\"64\"","target_has_atomic=\"8\"","target_has_atomic=\"ptr\"","target_has_atomic_load_store","target_has_atomic_load_store=\"16\"","target_has_atomic_load_store=\"32\"","target_has_atomic_load_store=\"64\"","target_has_atomic_load_store=\"8\"","target_has_atomic_load_store=\"ptr\"","target_has_atomic_primitive_alignment=\"16\"","target_has_atomic_primitive_alignment=\"32\"","target_has_atomic_primitive_alignment=\"64\"","target_has_atomic_primitive_alignment=\"8\"","target_has_atomic_primitive_alignment=\"ptr\"","target_has_reliable_f128","target_has_reliable_f16","target_has_reliable_f16_math","target_object_format=\"elf\"","target_os=\"linux\"","target_pointer_width=\"64\"","target_thread_local","target_vendor=\"unknown\"","ub_checks","unix"],"charon":"0.1.216","charon_revision":"6f058254eb741c12e9b388df07adaf7cc8aac8ed","extraction_profile":"dev","lean":"4.30.0-rc2","overflow_checks":true,"panic_strategy":"unwind","rustc_vv":"rustc 1.98.0-nightly (14210df0e 2026-05-31)\nbinary: rustc\ncommit-hash: 14210df0e27ccd7d9e6a05b8085cbd438e4bbc65\ncommit-date: 2026-05-31\nhost: x86_64-unknown-linux-gnu\nrelease: 1.98.0-nightly\nLLVM version: 22.1.6\n","target_pointer_width":64,"target_triple":"x86_64-unknown-linux-gnu"},"extractor_stack":["charon@0.1.216","aeneas@fa699427"],"extractor_toolchain_sha256":"18657da0659dee7889ed8a937b136c9abbc3a35e9050241cd8201c94fd232323","not_recorded":[],"source_digests":[{"source_file":"lib.rs","source_sha256":"63c7f58df6caff552519c92155d902daf8a1015797adcd3f357f8b8cf1652b00"}]},"extractor_script_path":"/home/leanagent/pv_runs/trellis-native-implementation-v91/scripts/extract_pv_model.py","extractor_script_sha256":"cc1fdd50a78185c7bb564b715c554cb35d9fc09ed566b6c3d4f482f2d27ef67d","kernel_gate_checkers":[],"log_concatenation_order":"runs_then_steps_in_array_order","runs":[{"run_role":"primary","steps":[{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","-vV"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"rustc-version","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/pv_spike/tools/charon/bin/charon","cargo","--preset=aeneas","--dest-file","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc","--","--offline","--profile","dev","--target","x86_64-unknown-linux-gnu"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"charon","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/cargo","metadata","--format-version=1","--locked","--offline","--filter-platform","x86_64-unknown-linux-gnu"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"cargo-metadata","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/cargo","rustc","--lib","--locked","--offline","--profile","dev","--target","x86_64-unknown-linux-gnu","--","--print","cfg"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"cargo-rustc-cfg","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"},{"argv":["/home/leanagent/pv_spike/tools/aeneas/bin/aeneas","-backend","lean","-dest","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen","-emit-json","/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc"],"effective_environment":{"CAML_LD_LIBRARY_PATH":"/home/leanagent/.opam/5.3.0/lib/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml/stublibs:/home/leanagent/.opam/5.3.0/lib/ocaml","CARGO_BUILD_TARGET":"x86_64-unknown-linux-gnu","CARGO_HOME":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/cargo-home","CARGO_NET_OFFLINE":"true","CARGO_TARGET_DIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","CHARON_TOOLCHAIN_IS_IN_PATH":"1","HOME":"/home/leanagent","LANG":"C.UTF-8","LC_ALL":"C.UTF-8","LD_LIBRARY_PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib","LEAN_PATH":"/home/leanagent/pv_spike/tools/aeneas/backends/lean/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/batteries/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/mathlib/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/plausible/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/aesop/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/LeanSearchClient/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/Qq/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/proofwidgets/.lake/build/lib/lean:/home/leanagent/pv_genesis/dec2flt-trust-v1-20260729T150751Z/.lake/packages/importGraph/.lake/build/lib/lean","LOGNAME":"leanagent","MANPATH":":/home/leanagent/.opam/5.3.0/man","OCAMLTOP_INCLUDE_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OCAML_TOPLEVEL_PATH":"/home/leanagent/.opam/5.3.0/lib/toplevel","OPAMSWITCH":"5.3.0","OPAM_LAST_ENV":"/home/leanagent/.opam/.last-env/env-b63c98443275b747a73beff03ead5f21-0","OPAM_SWITCH_PREFIX":"/home/leanagent/.opam/5.3.0","PATH":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/pv_spike/tools/aeneas/bin:/home/leanagent/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/bin:/home/leanagent/pv_spike/tools/charon/bin:/home/leanagent/.opam/5.3.0/bin:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.codex/packages/standalone/releases/0.153.4-x86_64-unknown-linux-musl/codex-path:/home/leanagent/.codex/tmp/arg0/codex-arg0wieG7X:/home/leanagent/.elan/bin:/home/leanagent/.local/bin:/home/leanagent/.cargo/bin:/home/leanagent/.nvm/versions/node/v22.23.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","RUSTC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc","RUSTDOC":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustdoc","RUSTUP_TOOLCHAIN":"/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu","SHELL":"/bin/bash","TEMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMP":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","TMPDIR":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/execution/tmp","USER":"leanagent"},"tool":"aeneas","working_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate"}]}],"schema":"trellis-extraction-command/v1","tool_source_checkouts":[]}
extraction-evidence/STDOUT.bin

Open file

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
{"packages":[{"name":"dec2flt-model","version":"0.1.0","id":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0","license":null,"license_file":null,"description":null,"source":null,"dependencies":[],"targets":[{"kind":["lib"],"crate_types":["lib"],"name":"dec2flt_model","src_path":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate/lib.rs","edition":"2024","doc":true,"doctest":true,"test":true}],"features":{"default":[],"optimize_for_size":[]},"manifest_path":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate/Cargo.toml","metadata":null,"publish":[],"authors":[],"categories":[],"keywords":[],"readme":null,"repository":null,"homepage":null,"documentation":null,"edition":"2024","links":null,"default_run":null,"rust_version":null}],"workspace_members":["path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"],"workspace_default_members":["path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"],"resolve":{"nodes":[{"id":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0","dependencies":[],"deps":[],"features":["default"]}],"root":"path+file:///home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate#dec2flt-model@0.1.0"},"target_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","build_directory":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/cargo-target/extract","version":1,"workspace_root":"/home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/crate","metadata":null}
debug_assertions
emscripten_wasm_eh
feature="default"
fmt_debug="full"
overflow_checks
panic="unwind"
relocation_model="pic"
target_abi=""
target_arch="x86_64"
target_endian="little"
target_env="gnu"
target_family="unix"
target_feature="fxsr"
target_feature="sse"
target_feature="sse2"
target_feature="x87"
target_has_atomic
target_has_atomic="16"
target_has_atomic="32"
target_has_atomic="64"
target_has_atomic="8"
target_has_atomic="ptr"
target_has_atomic_load_store
target_has_atomic_load_store="16"
target_has_atomic_load_store="32"
target_has_atomic_load_store="64"
target_has_atomic_load_store="8"
target_has_atomic_load_store="ptr"
target_has_atomic_primitive_alignment="16"
target_has_atomic_primitive_alignment="32"
target_has_atomic_primitive_alignment="64"
target_has_atomic_primitive_alignment="8"
target_has_atomic_primitive_alignment="ptr"
target_has_reliable_f128
target_has_reliable_f16
target_has_reliable_f16_math
target_object_format="elf"
target_os="linux"
target_pointer_width="64"
target_thread_local
target_vendor="unknown"
ub_checks
unix
[Info ] Imported: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/m.llbc
[Info ] Generated: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/M.lean
[Info ] Generated: /home/leanagent/math/.trellis-viewer/create-jobs/dec2flt/native/generations/0002/dec2flt-r0002-preparation/.trellis/modeling/exports/dec2flt-r0002-be17e1b377fc/extraction/extract.7dnfyhve/gen/translation.json
[Warn ] The crate contains extracted external, unknown definitions: we advise using the option -split-files to allow manually providing these definitions in separate files.
[Info ] Total execution time: 7.337683 seconds
reference/model-evidence/platform-width.txt

Open file

Configured x86_64 platform-width binding
========================================

Selected environment and extraction provenance
-----------------------------------------------

The accepted scope in modeling-input/manifest.json, line 215, selects
nightly-2026-06-01 and x86_64-unknown-linux-gnu.  The setup record repeats
that target at modeling-input/SETUP.md, lines 17-23.  The byte-pinned
extraction command record has these SHA-256 identities:

  5f26225136b8c7c4d7f95615e3e8ff8b357e523eeada4bc649e50f9c76cb9bda  extraction-evidence/COMMAND.json
  8e0aed62f6941e7c81b09d5c5b63ea7602756e69e4bcce9944258b229a9a0ba3  extraction-evidence/STDOUT.bin

COMMAND.json records target_triple "x86_64-unknown-linux-gnu",
target_pointer_width 64, and invokes cargo rustc with both
"--target", "x86_64-unknown-linux-gnu" and "--print", "cfg".  The
corresponding raw compiler output in STDOUT.bin, lines 17 and 47, is:

  target_arch="x86_64"
  target_pointer_width="64"

The pinned compiler identity and a separately reproducible invocation are in
reference/model-evidence/source-valid-byte-slice.txt, lines 7-34.  The retained
probe source and output are identified there at lines 36-68; the raw output is:

  arch=x86_64
  usize_bits=64
  isize_max=9223372036854775807
  u8_size=1

Aeneas model correspondence
----------------------------

The exact Aeneas scalar source used by the selected extractor is:

  /home/leanagent/pv_spike/tools/aeneas/backends/lean/Aeneas/Std/Scalar/Core.lean

Its SHA-256 is:

  a1c26c125a59bba635a2b2c170186ce07168c43308bcf386d508ebd77f01520e

The reproducing command was:

  nl -ba /home/leanagent/pv_spike/tools/aeneas/backends/lean/Aeneas/Std/Scalar/Core.lean \
    | sed -n '27,63p;650,662p'

The relevant raw definitions are:

  inductive UScalarTy where
  | Usize
  ...
  inductive IScalarTy where
  | Isize
  ...
  def UScalarTy.numBits (ty : UScalarTy) : Nat :=
    match ty with
    | Usize => System.Platform.numBits
    ...
  def IScalarTy.numBits (ty : IScalarTy) : Nat :=
    match ty with
    | Isize => System.Platform.numBits
    ...
  abbrev Usize := UScalar .Usize
  ...
  abbrev Isize := IScalar .Isize

Thus System.Platform.numBits is precisely the Aeneas environment parameter
for both Rust pointer-sized integer widths.  Binding it to 64 represents the
already-selected target; it does not narrow the configured Rust slice or
string domain.  By the displayed definitions, Usize.numBits and Isize.numBits
then both reduce to 64.  In particular Usize.max reduces to 2^64 - 1, so the
Rust slice byte limit 2^63 - 1 is within the Aeneas Slice carrier bound.
reference/model-evidence/source-valid-byte-slice-probe.out

Open file

arch=x86_64
usize_bits=64
isize_max=9223372036854775807
u8_size=1
reference/model-evidence/source-valid-byte-slice-probe.rs

Open file

fn main() {
    println!("arch={}", std::env::consts::ARCH);
    println!("usize_bits={}", usize::BITS);
    println!("isize_max={}", isize::MAX);
    println!("u8_size={}", std::mem::size_of::<u8>());
}
reference/model-evidence/source-valid-byte-slice.txt

Open file

Source-valid byte-slice and string domain evidence
==================================================

Scope and pinned identities
---------------------------

All commands below were run from the repository root.  The configured compiler
is:

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

Its SHA-256 is:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b

The exact identity commands were:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  sha256sum "$R"
  "$R" --version --verbose
  "$R" --target x86_64-unknown-linux-gnu --print cfg | LC_ALL=C sort | \
    rg 'target_(arch|pointer_width)'

Their relevant raw output was:

  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
  target_arch="x86_64"
  target_pointer_width="64"

Retained configured-target probe
--------------------------------

The retained probe source is
reference/model-evidence/source-valid-byte-slice-probe.rs.  It was compiled
for the configured target and executed with this exact command, which depends
only on the retained source and the pinned compiler:

  R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  P=reference/model-evidence/source-valid-byte-slice-probe.rs
  B=/tmp/dec2flt-source-valid-byte-slice-probe
  O=reference/model-evidence/source-valid-byte-slice-probe.out
  "$R" --edition 2024 --target x86_64-unknown-linux-gnu -C opt-level=0 \
    -C debuginfo=0 -C overflow-checks=on -C debug-assertions=on \
    --crate-name source_valid_byte_slice_probe "$P" -o "$B"
  sha256sum "$R" "$P" "$B"
  "$B" > "$O"
  sha256sum "$O"
  cat "$O"

The actual hashes were:

  162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b  /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc
  b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd  reference/model-evidence/source-valid-byte-slice-probe.rs
  87dc3b9b7a46506d2205503d8aa007b451c452968af48d1ba5961a821934ee55  /tmp/dec2flt-source-valid-byte-slice-probe
  01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4  reference/model-evidence/source-valid-byte-slice-probe.out

The retained raw output file contains exactly:

  arch=x86_64
  usize_bits=64
  isize_max=9223372036854775807
  u8_size=1

Pinned core-library source
--------------------------

Let:

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

The exact commands used to identify and inspect the relevant core sources were:

  sha256sum "$S/slice/mod.rs" "$S/num/int_macros.rs" "$S/str/mod.rs"
  sed -n '798,808p' "$S/slice/mod.rs"
  sed -n '43,51p' "$S/num/int_macros.rs"
  sed -n '495,510p' "$S/str/mod.rs"

The file identities are:

  354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840  core/src/slice/mod.rs
  3896304e7cb14628e293134ac41fd18be2b5369bedc02d1c6a7408bd8c755a31  core/src/num/int_macros.rs
  284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78  core/src/str/mod.rs

The relevant exact excerpt of slice/mod.rs, line 801, is:

  //   - The size of the slice is never larger than `isize::MAX` bytes, as

The relevant exact declaration in num/int_macros.rs, line 47, is:

  pub const MAX: Self = (<$UnsignedT>::MAX >> 1) as Self;

The relevant exact excerpts of str/mod.rs are its same-layout byte-slice
conversion at lines 498-500:

  pub const fn as_bytes(&self) -> &[u8] {
      // SAFETY: const sound because we transmute two types with the same layout
      unsafe { mem::transmute(self) }
  }

and its UTF-8 invariant at lines 507-510:

  /// The caller must ensure that the content of the slice is valid UTF-8
  /// before the borrow ends and the underlying `str` is used.
  ///
  /// Use of a `str` whose contents are not valid UTF-8 is undefined behavior.

Conclusion
----------

The configured target has 64-bit usize/isize and one-byte u8 elements.
The pinned signed-MAX definition therefore gives
isize::MAX = 2^63 - 1 = 9223372036854775807, and the pinned slice rule bounds a
slice by that many bytes.  For &[u8], this is exactly an element-count bound;
the rule adds no UTF-8 condition or other restriction on the byte contents.
The pinned str source exposes the identical-layout &[u8] bytes and separately
requires them to be valid UTF-8.  Consequently the exact configured domains
are arbitrary &[u8] bytes of length at most isize::MAX, and Rust str bytes of
length at most isize::MAX that are valid UTF-8.  No smaller convenience bound
is introduced.
Assumptions / kernel axioms
  • Dec2Flt.configured_x86_64_numBits

Explicit premise record

Record details
Record sourcetcb_manifest.json
Kindenvironment premise
Exact source record
{
  "adversarial_hunt_result": "Environment consistency checks corroborate the premise. The accepted scope and setup pin nightly-2026-06-01 with target x86_64-unknown-linux-gnu. The byte-pinned extraction record actually passes that target to Charon and to cargo rustc --print cfg, whose retained raw output reports target_arch=\"x86_64\" and target_pointer_width=\"64\". The separately retained, hash-matching configured-target probe reports usize::BITS=64 and isize::MAX=9223372036854775807. All cited COMMAND, STDOUT, probe, compiler, and Aeneas-source hashes reproduce. At the exact Aeneas revision recorded by extraction, UScalarTy.Usize.numBits and IScalarTy.Isize.numBits are System.Platform.numBits, with Usize and Isize defined from those scalar kinds; Usize.max is 2^Usize.numBits-1. The equality therefore selects the 64-bit branch already allowed by Lean's System.Platform.numBits_eq theorem, yields Aeneas Usize.max=2^64-1, and covers rather than narrows the complete Rust slice/string byte bound 2^63-1. No competing Tablet width premise exists. The axiom binds only the omitted target parameter and encodes no parser, arithmetic, termination, return-value, or GOAL conclusion; it is the minimum adequate addition for the frozen environment and its preservation argument has current Sound approval. Limits: this evidence justifies only the pinned target/toolchain/extractor configuration, not other Rust targets, and the executable probe is corroboration rather than the sole basis; the accepted scope, recorded extraction invocation and raw cfg output, pinned Rust facts, and pinned Aeneas definitions supply the primary justification. Human ratification remains required.",
  "citation_locator": "modeling-input/manifest.json:215; modeling-input/SETUP.md:17-23,81-87; extraction-evidence/COMMAND.json fields target_triple=x86_64-unknown-linux-gnu and target_pointer_width=64 plus the cargo rustc --target x86_64-unknown-linux-gnu --print cfg step; extraction-evidence/STDOUT.bin:17,47; reference/model-evidence/platform-width.txt; reference/model-evidence/source-valid-byte-slice.txt:7-34,56-68,113-125; Aeneas/Std/Scalar/Core.lean:45-63,650-662 as hash-pinned in reference/model-evidence/platform-width.txt",
  "claim_class": "environment",
  "classification": "rust-undermodel-assumption",
  "id": "configured-x86_64-platform-width",
  "lean_statement": "axiom Dec2Flt.configured_x86_64_numBits : System.Platform.numBits = 64",
  "name": "Dec2Flt.configured_x86_64_numBits",
  "needed_by": [],
  "nl_statement": "\\begin{definition}\nFor the configured \\texttt{x86\\_64-unknown-linux-gnu} extraction environment,\nthe Aeneas platform parameter satisfies\n$\\mathtt{System.Platform.numBits}=64$.\n\\end{definition}\n\n\\begin{preservation}\n\\begin{claim}\nThe axiom binds the Aeneas pointer-width parameter to the already-selected\n\\texttt{x86\\_64-unknown-linux-gnu} source environment.  Consequently the\nAeneas \\texttt{Usize} and \\texttt{Isize} widths are both 64, exactly matching\nthe configured Rust \\texttt{usize} and \\texttt{isize} widths.  This binding\ndoes not remove any configured source value or introduce a smaller slice or\nstring bound.\n\\end{claim}\n\\begin{proof}\nThe accepted extraction scope fixes nightly-2026-06-01 and target\n\\texttt{x86\\_64-unknown-linux-gnu}; the setup record fixes the same target and\nthe extraction command actually passes it to \\texttt{cargo rustc}.  The pinned\ncompiler's raw \\texttt{--print cfg} result for that invocation contains\n\\texttt{target\\_arch=\"x86\\_64\"} and\n\\texttt{target\\_pointer\\_width=\"64\"}.  A separately retained program compiled\nfor that target reports \\texttt{usize::BITS = 64} and\n\\texttt{isize::MAX = 9223372036854775807}.  The compiler identity, commands,\nhashes, and raw results are recorded in\n\\evidenceref{reference/model-evidence/platform-width.txt} and\n\\evidenceref{reference/model-evidence/source-valid-byte-slice.txt}.\n\nThe pinned Aeneas scalar source defines\n\\texttt{UScalarTy.Usize.numBits} and\n\\texttt{IScalarTy.Isize.numBits} to be\n\\texttt{System.Platform.numBits}, and defines \\texttt{Usize} and\n\\texttt{Isize} using exactly those two scalar kinds.  The source excerpt and\nits hash are also recorded in\n\\evidenceref{reference/model-evidence/platform-width.txt}.  Substituting the\nconfigured compiler fact therefore gives both Aeneas widths as 64.  The usual\nAeneas definition \\texttt{Usize.max = $2^{\\mathtt{Usize.numBits}}-1$} then\ngives \\texttt{Usize.max = $2^{64}-1$}, so in particular\n$2^{63}-1\\leq\\mathtt{Usize.max}$.  Thus every Rust byte slice allowed by the\nconfigured \\texttt{isize::MAX} byte-size rule remains representable by the\nAeneas slice carrier.  The axiom supplies only the omitted target parameter:\nit neither assumes parser behavior nor changes any goal proposition, and the\nsame environment binding applies whether a goal is proved or disproved.\n\\end{proof}\n\\begin{goalproof}{assembly_correspondence}\nThis goal uses fixed-width \\texttt{u64}, \\texttt{u32}, and binary64 values;\nfixing the pointer width changes none of its inputs or observations.\n\\end{goalproof}\n\\begin{goalproof}{classification_determinism}\nThis finite-byte-string classification statement has no pointer-sized scalar\nor Aeneas slice carrier, so the environment binding is noninterfering.\n\\end{goalproof}\n\\begin{goalproof}{classification_significand_digit}\nThis grammar consequence concerns finite byte strings and digit positions;\nit is independent of the platform-width parameter.\n\\end{goalproof}\n\\begin{goalproof}{classification_totality}\nThe mathematical finite-byte-string domain is unchanged; the width equation\nonly instantiates the extracted model's pointer-sized environment parameter.\n\\end{goalproof}\n\\begin{goalproof}{dispatch_abstract_composition}\nThe abstract dispatch statement keeps its existing source-valid string and\nbyte-slice domains.  The binding makes their 64-bit bounds representable and\ndoes not alter the statement in either its positive or refutation direction.\n\\end{goalproof}\n\\begin{goalproof}{dispatch_component_compliance}\nEvery configured dispatcher slice/string value retains the same bytes and\nsource bound.  The binding only aligns Aeneas pointer-sized widths with the\nselected target, independently of the currently selected disproof direction.\n\\end{goalproof}\n\\begin{goalproof}{exponent_value_agreement}\nThis decimal-value comparison is purely mathematical and contains no\npointer-sized model carrier, so the binding is noninterfering.\n\\end{goalproof}\n\\begin{goalproof}{integer_correct_or_defer}\nThe helper's arithmetic inputs are fixed-width integers; assigning the\nconfigured pointer width changes neither its execution nor observations.\n\\end{goalproof}\n\\begin{goalproof}{native_correct_or_defer}\nThe native helper consumes the fixed-field decimal record and fixed-width\nbinary64 operations, so this environment equality is noninterfering.\n\\end{goalproof}\n\\begin{goalproof}{number_helper_acceptance}\nThe goal quantifies over the full configured source-valid byte-slice domain.\nThe equality supplies the 64-bit Aeneas carrier capacity for that same domain,\nincluding its largest Rust-valid length, without imposing a smaller bound.\n\\end{goalproof}\n\\begin{goalproof}{number_helper_accumulated_value}\nThe same source-valid slices and returned record fields remain in scope; the\nbinding only makes their configured pointer-sized indices and lengths 64-bit.\n\\end{goalproof}\n\\begin{goalproof}{number_helper_record_bounds}\nThe source-valid slice predicate and record conclusion are unchanged.  The\nenvironment equality aligns their pointer-sized bounds with the selected\ntarget rather than strengthening either one.\n\\end{goalproof}\n\\begin{goalproof}{number_helper_rejection}\nEvery source-valid invalid byte slice keeps the same bytes and Rust length\nbound, so the rejection proposition is unchanged by the environment binding.\n\\end{goalproof}\n\\begin{goalproof}{parser_accumulated_rounding}\nAll configured strings and their byte bodies remain representable with the\nsame contents; no rounding observation or parser premise is added.\n\\end{goalproof}\n\\begin{goalproof}{parser_equal_target_rounding}\nThe equality preserves the full string/body domain and changes no decimal or\nbinary64 value used by the equal-target statement.\n\\end{goalproof}\n\\begin{goalproof}{parser_exact_rounding}\nThe configured parser domain is unchanged.  This target binding applies also\nto the selected exact-negation direction and assumes no rounding result.\n\\end{goalproof}\n\\begin{goalproof}{parser_infinity}\nAll source-valid spellings and sign bytes retain their contents and lengths;\nthe infinity observation uses no additional platform-dependent fact.\n\\end{goalproof}\n\\begin{goalproof}{parser_invalid_rejection}\nEvery configured invalid Rust string remains in the model domain with the\nsame bytes, so neither its classification nor rejection proposition changes.\n\\end{goalproof}\n\\begin{goalproof}{parser_nan_acceptance}\nThe binding preserves all NaN spellings and the fixed-width binary64\nclassification observation without adding an acceptance premise.\n\\end{goalproof}\n\\begin{goalproof}{parser_non_nan_results}\nThe full configured string domain and fixed-width classification result are\nunchanged; only the model's target parameter is instantiated.\n\\end{goalproof}\n\\begin{goalproof}{parser_numeric_acceptance}\nAll source-valid numeric strings and byte bodies remain representable under\ntheir original 64-bit Rust bounds, with no smaller length condition added.\n\\end{goalproof}\n\\begin{goalproof}{parser_numeric_sign}\nLexical sign bytes and returned binary64 sign observations are unchanged by\nthe pointer-width equality.\n\\end{goalproof}\n\\begin{goalproof}{parser_selected_exponent}\nThe binding preserves every input byte and only fixes pointer-sized indices;\nselected fixed-width exponent observations are unchanged.\n\\end{goalproof}\n\\begin{goalproof}{parser_selected_magnitude_sign}\nThe same strings, unsigned raw pairs, and assembled binary64 words remain in\nscope, so the selected magnitude/sign observation is unchanged.\n\\end{goalproof}\n\\begin{goalproof}{parser_signed_zero}\nThe full configured input domain, lexical sign, and binary64 zero word are\nunchanged by fixing the model's pointer width.\n\\end{goalproof}\n\\begin{goalproof}{parser_totality}\nEvery configured Rust string remains represented with its original 64-bit\nlength bound.  The equality does not assume termination or successful return.\n\\end{goalproof}\n\\begin{goalproof}{rounding_determinism}\nThis nonnegative-real rounding statement has no platform-sized carrier, so\nthe environment binding is noninterfering.\n\\end{goalproof}\n\\begin{goalproof}{rounding_totality}\nThis nonnegative-real existence statement has no platform-sized carrier, so\nthe environment binding is noninterfering.\n\\end{goalproof}\n\\begin{goalproof}{slow_accumulated_rounding}\nThe source-valid slice domain is preserved in full, including the configured\n64-bit bound; the binding assumes no slow-parser result and applies equally to\nthe selected refutation direction.\n\\end{goalproof}\n\\begin{goalproof}{special_helper_infinity}\nAll source-valid byte slices and separate sign arguments remain unchanged;\nthe result is a fixed-width binary64 observation.\n\\end{goalproof}\n\\begin{goalproof}{special_helper_nan}\nAll source-valid NaN byte slices and their fixed-width classification\nobservations remain unchanged.\n\\end{goalproof}\n\\begin{goalproof}{special_helper_rejection}\nEvery source-valid non-special byte slice retains the same bytes and 64-bit\nRust bound, with no additional rejection assumption.\n\\end{goalproof}\n\\end{preservation}",
  "provenance": "worker-authored, assumptions-lane gated, human-ratified (PV under-model assumptions Slice 2)",
  "relativization_probe": "",
  "rust_justification": "The accepted scope and setup select x86_64-unknown-linux-gnu. The pinned extraction command compiles for exactly that target, and its raw rustc cfg output reports target_pointer_width=64; the retained configured-target probe independently reports usize::BITS=64 and isize::MAX=2^63-1. The hash-pinned Aeneas scalar source defines the Usize and Isize scalar-kind widths to be System.Platform.numBits. Therefore setting that model environment parameter to 64 is precisely the missing binding to the already-selected Rust target, and it derives both Aeneas pointer-sized widths without narrowing the Rust-valid slice/string domain or assuming any program behavior."
}
Captured evidence identities
[
  {
    "path": "extraction-evidence/COMMAND.json",
    "sha256": "5f26225136b8c7c4d7f95615e3e8ff8b357e523eeada4bc649e50f9c76cb9bda",
    "cited_by": [
      "reference/model-evidence/platform-width.txt"
    ]
  },
  {
    "path": "extraction-evidence/STDOUT.bin",
    "sha256": "8e0aed62f6941e7c81b09d5c5b63ea7602756e69e4bcce9944258b229a9a0ba3",
    "cited_by": [
      "reference/model-evidence/platform-width.txt"
    ]
  },
  {
    "path": "reference/model-evidence/platform-width.txt",
    "sha256": "b1f954fbdc0e8add22e6a4e6770f04b577aafc8db12a9dbc1f19941f0a90bdcb",
    "cited_by": [
      "tcb_manifest.json"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.out",
    "sha256": "01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice-probe.rs",
    "sha256": "b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd",
    "cited_by": [
      "reference/model-evidence/source-valid-byte-slice.txt"
    ]
  },
  {
    "path": "reference/model-evidence/source-valid-byte-slice.txt",
    "sha256": "eb501317621baa00236f9773885466bd38ec1a45cb56457d555b9e9139dc780a",
    "cited_by": [
      "tcb_manifest.json",
      "reference/model-evidence/platform-width.txt"
    ]
  }
]