--- 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)
