Completed verification
Results for dec2flt
f64 specialization of Rust's decimal parser and its
helper functions, including executions with integer overflow checks enabled.
Public results are the returned floats and errors.Original program
23 proved · 9 disproved
Revised program
32 proved
Browse the proofs to explore every theorem and definition, with Lean, prose explanations and links between them.
11 statements revised. Each result applies to its own statement.
The production source changed in 2 files. Inspect the production patch.
Accepted production patch · Modeling choices
64-bit target · Overflow checks enabled
Scope, assumptions and build configuration
Each verdict applies to its stated requirement and conditions, the composed model, and the listed assumptions. Read the assumptions
Requirements and conditions
These requirements concern the program version shown here and its composed model, under the selected configuration and assumptions. Their verdicts appear below.
| Selected target | x86_64-unknown-linux-gnu |
|---|---|
| Pointer width | 64 |
| Overflow checks | True |
| Debug assertions | enabled |
| Cargo features |
|
| Extraction profile | dev |
Conditional totality
dec2fltConditional exact rounding
dec2fltConfiguration and exclusions — authored setup excerpts
upstream/traits.rs plus the nine upstream/dec2flt/ files.
work/crate packages this supplied slice as one standalone no_std library,
dec2flt-model, edition 2024. lib.rs, num/mod.rs, and num/imp/mod.rs
restore the missing core::num::imp namespace through path attributes and
re-exports of actual core primitives, not replacement arithmetic. The local
ParseFloatError preserves the two payload-free error kinds and construction
paths. GOAL.md observes Ok versus Err, not error formatting; the omitted
formatting/error API is outside those observations. No external dependency or
additional executable is part of extraction.config.json and tool-identities.json select
nightly-2026-06-01, whose rustc host is x86_64-unknown-linux-gnu (64-bit
usize/isize, SSE2). rust-toolchain.toml also records that channel and target.
Cargo's default features are empty: optimize_for_size is disabled, preserving
the ordinary native shortcut. Development debug assertions are enabled;
overflow-checks = true is explicit in both dev and release profiles. Thus
checked arithmetic and assertion failure remain observable. The unchanged
fpu code selects its no-op precision-setting branch on this target.These results apply to the stated requirements, builds and platform premises. Trust and assumptions · Exact requirement collection
Reading the results: a requirement states the intended behavior; its verdict links to a Lean proof or a counterexample. Models describe the Rust operations used by those proofs. Assumptions state the premises the results rely on.
Requirements and results
32 requirements. Where a requirement changed, each verdict is paired with an excerpt of that program’s statement. Open a verdict for the full statement and its proof or counterexample.
Requirements for dec2flt appear first. Supporting specifications and helper contracts follow.
| Requirement | Original program | Revised program |
|---|---|---|
| Totality Statement revised | Disproved — Totality Totality For every Rust string, the function terminates normally with a result or parsing error, without panicking. | Proved — Conditional totality Conditional totality For every Rust string of byte length at most 3 EiB, the function terminates normally with a float result or parsing error, without panicking. … Revision decisionParserTotality__Refutation propagates the forced-fallback gigabyte panic, which the task must actually fix. Totality is then claimed explicitly through A, not inferred from absence of that one witness. Outside A no blanket normal-termination guarantee survives the unchanged lexical sums; the independently retained special, sign, bounds and conditional-success requirements are not universal totality proofs. Definitions quoted from revised requirementsConditional abstract compositiondec2fltConditional abstract composition. Let A = 3458764513820540928 bytes and B = 576460752303421440 bytes. The lexical and conversion component contracts admit implementations, with numeric lexical acceptance, rejection and record representation required for nonempty source-valid byte slices of length at most A, and preservation of the ordinary mathematical exact rounding target required for numeric inputs of length at most B. Special parsing, native correctness-or-defer, integer correctness-or-defer, unrestricted assembly, and the full-significand accumulated-exponent slow diagnostic retain their existing domains; the slow diagnostic applies to every source-valid unsigned numeric literal, without an A or B restriction. For any components satisfying these contracts, the dispatcher's normal results on Rust strings of byte length at most A satisfy classification, accumulated-exponent rounding and lexical sign requirements. On numeric strings of byte length at most B they additionally satisfy ordinary mathematical exact rounding. These conclusions include the native shortcut, integer tier, many-digit endpoint decision, fallback, sign handling and final assembly. Contract inhabitability and the existence of an abstract normal output for every Rust string of byte length at most A must be established, not inferred from an implication over an empty contract package. Conditional component compliancedec2fltConditional component compliance. Let A = 3458764513820540928 bytes and B = 576460752303421440 bytes. The actual source components satisfy the contracts used in conditional abstract composition. In particular, the numeric lexical component returns normally and satisfies acceptance, rejection and record representation on every nonempty source-valid byte slice of length at most A; it preserves the input's ordinary mathematical exact rounding target on numeric slices of length at most B. The source components for special parsing, native conversion, integer conversion and unrestricted assembly retain their existing full-domain obligations. The actual slow component satisfies the full-significand accumulated-exponent diagnostic on every source-valid unsigned numeric literal, without a length restriction. For every Rust string of byte length at most A, the concrete dispatcher agrees with the abstract component operations at its calls and establishes their helper preconditions. On numeric strings of byte length at most B, this agreement additionally preserves the exact rounding target throughout dispatch. These obligations include native shortcut, integer tier, many-digit decision, fallback, sign handling and assembly, and require a genuinely inhabited compatible component package. |
| Exact rounding Statement revised | Disproved — Exact rounding Exact rounding On acceptance of any numeric literal, the returned float is its exact value rounded to binary64. | Proved — Conditional exact rounding Conditional exact rounding On acceptance of any numeric literal whose complete Rust string has byte length at most ≈ 512 PiB, the returned float is its ordinary mathematical exact decimal value rounded to binary64 round-to-nearest, ties-to-even. … Revision decisionParserExactRounding__Refutation proves an accepted one instead of infinity on the 65545-byte literal 0., 65535 zeroes, and 1e655360. This practical defect is repaired by the larger common accumulator, not excluded. The explicit B condition excludes only the exabyte-scale cancellation that a fixed cutoff still cannot resolve exactly. … Definitions quoted from revised requirementsConditional abstract compositiondec2fltConditional abstract composition. Let A = 3458764513820540928 bytes and B = 576460752303421440 bytes. The lexical and conversion component contracts admit implementations, with numeric lexical acceptance, rejection and record representation required for nonempty source-valid byte slices of length at most A, and preservation of the ordinary mathematical exact rounding target required for numeric inputs of length at most B. Special parsing, native correctness-or-defer, integer correctness-or-defer, unrestricted assembly, and the full-significand accumulated-exponent slow diagnostic retain their existing domains; the slow diagnostic applies to every source-valid unsigned numeric literal, without an A or B restriction. For any components satisfying these contracts, the dispatcher's normal results on Rust strings of byte length at most A satisfy classification, accumulated-exponent rounding and lexical sign requirements. On numeric strings of byte length at most B they additionally satisfy ordinary mathematical exact rounding. These conclusions include the native shortcut, integer tier, many-digit endpoint decision, fallback, sign handling and final assembly. Contract inhabitability and the existence of an abstract normal output for every Rust string of byte length at most A must be established, not inferred from an implication over an empty contract package. Conditional component compliancedec2fltConditional component compliance. Let A = 3458764513820540928 bytes and B = 576460752303421440 bytes. The actual source components satisfy the contracts used in conditional abstract composition. In particular, the numeric lexical component returns normally and satisfies acceptance, rejection and record representation on every nonempty source-valid byte slice of length at most A; it preserves the input's ordinary mathematical exact rounding target on numeric slices of length at most B. The source components for special parsing, native conversion, integer conversion and unrestricted assembly retain their existing full-domain obligations. The actual slow component satisfies the full-significand accumulated-exponent diagnostic on every source-valid unsigned numeric literal, without a length restriction. For every Rust string of byte length at most A, the concrete dispatcher agrees with the abstract component operations at its calls and establishes their helper preconditions. On numeric strings of byte length at most B, this agreement additionally preserves the exact rounding target throughout dispatch. These obligations include native shortcut, integer tier, many-digit decision, fallback, sign handling and assembly, and require a genuinely inhabited compatible component package. |
| Numeric acceptance Statement revised | Disproved — Numeric acceptance Numeric acceptance Every numeric literal returns Ok. | Proved — Conditional numeric acceptance Conditional numeric acceptance Every numeric literal whose complete Rust string has byte length at most 3 EiB returns normally with Ok, without panicking, including executions with integer overflow checks enabled. … Revision decisionParserNumericAcceptance__Refutation uses a 2147483650-byte input whose numeric record succeeds and whose unequal integer endpoint pairs force a DecimalSeq i32 overflow. This witness is inside A and requires the source count repair. The A condition separately excludes the unrepaired exabyte lexical arithmetic, not the gigabyte fallback defect. Definitions quoted from revised requirementsConditional abstract compositiondec2fltConditional abstract composition. Let A = 3458764513820540928 bytes and B = 576460752303421440 bytes. The lexical and conversion component contracts admit implementations, with numeric lexical acceptance, rejection and record representation required for nonempty source-valid byte slices of length at most A, and preservation of the ordinary mathematical exact rounding target required for numeric inputs of length at most B. Special parsing, native correctness-or-defer, integer correctness-or-defer, unrestricted assembly, and the full-significand accumulated-exponent slow diagnostic retain their existing domains; the slow diagnostic applies to every source-valid unsigned numeric literal, without an A or B restriction. For any components satisfying these contracts, the dispatcher's normal results on Rust strings of byte length at most A satisfy classification, accumulated-exponent rounding and lexical sign requirements. On numeric strings of byte length at most B they additionally satisfy ordinary mathematical exact rounding. These conclusions include the native shortcut, integer tier, many-digit endpoint decision, fallback, sign handling and final assembly. Contract inhabitability and the existence of an abstract normal output for every Rust string of byte length at most A must be established, not inferred from an implication over an empty contract package. Conditional component compliancedec2fltConditional component compliance. Let A = 3458764513820540928 bytes and B = 576460752303421440 bytes. The actual source components satisfy the contracts used in conditional abstract composition. In particular, the numeric lexical component returns normally and satisfies acceptance, rejection and record representation on every nonempty source-valid byte slice of length at most A; it preserves the input's ordinary mathematical exact rounding target on numeric slices of length at most B. The source components for special parsing, native conversion, integer conversion and unrestricted assembly retain their existing full-domain obligations. The actual slow component satisfies the full-significand accumulated-exponent diagnostic on every source-valid unsigned numeric literal, without a length restriction. For every Rust string of byte length at most A, the concrete dispatcher agrees with the abstract component operations at its calls and establishes their helper preconditions. On numeric strings of byte length at most B, this agreement additionally preserves the exact rounding target throughout dispatch. These obligations include native shortcut, integer tier, many-digit decision, fallback, sign handling and assembly, and require a genuinely inhabited compatible component package. |
| Invalid rejection Statement revised | Disproved — Invalid rejection Invalid rejection Every string outside the numeric and special literal grammar returns Err. Conditional theorem proved The input string has byte length at most ≈ 8 EiB. Proved for this program alongside the unrestricted verdict above. | Proved — Conditional invalid rejection Conditional invalid rejection Every Rust string of byte length at most 3 EiB that is outside the numeric and special literal grammar returns normally with Err, without panicking, including executions with integer overflow checks enabled. … The earlier conditional theorem and this revised requirement have separate statements and proofs. Revision decisionParserInvalidRejection__Refutation propagates the exabyte helper overflow on the invalid trailing-x witness. Keep normal Err on the complete unchanged grammar through A, with no whitespace, trailing-junk, UTF-8 or special-keyword relaxation. Exabyte inputs beyond A are not newly declared invalid by the mathematical classifier and are not promised normal rejection. Definitions quoted from revised requirementsConditional abstract compositiondec2fltConditional abstract composition. Let A = 3458764513820540928 bytes and B = 576460752303421440 bytes. The lexical and conversion component contracts admit implementations, with numeric lexical acceptance, rejection and record representation required for nonempty source-valid byte slices of length at most A, and preservation of the ordinary mathematical exact rounding target required for numeric inputs of length at most B. Special parsing, native correctness-or-defer, integer correctness-or-defer, unrestricted assembly, and the full-significand accumulated-exponent slow diagnostic retain their existing domains; the slow diagnostic applies to every source-valid unsigned numeric literal, without an A or B restriction. For any components satisfying these contracts, the dispatcher's normal results on Rust strings of byte length at most A satisfy classification, accumulated-exponent rounding and lexical sign requirements. On numeric strings of byte length at most B they additionally satisfy ordinary mathematical exact rounding. These conclusions include the native shortcut, integer tier, many-digit endpoint decision, fallback, sign handling and final assembly. Contract inhabitability and the existence of an abstract normal output for every Rust string of byte length at most A must be established, not inferred from an implication over an empty contract package. Conditional component compliancedec2fltConditional component compliance. Let A = 3458764513820540928 bytes and B = 576460752303421440 bytes. The actual source components satisfy the contracts used in conditional abstract composition. In particular, the numeric lexical component returns normally and satisfies acceptance, rejection and record representation on every nonempty source-valid byte slice of length at most A; it preserves the input's ordinary mathematical exact rounding target on numeric slices of length at most B. The source components for special parsing, native conversion, integer conversion and unrestricted assembly retain their existing full-domain obligations. The actual slow component satisfies the full-significand accumulated-exponent diagnostic on every source-valid unsigned numeric literal, without a length restriction. For every Rust string of byte length at most A, the concrete dispatcher agrees with the abstract component operations at its calls and establishes their helper preconditions. On numeric strings of byte length at most B, this agreement additionally preserves the exact rounding target throughout dispatch. These obligations include native shortcut, integer tier, many-digit decision, fallback, sign handling and assembly, and require a genuinely inhabited compatible component package. |
| NaN acceptance Every NaN literal returns Ok of a float satisfying is_nan(). | Proved — NaN acceptance | Proved — NaN acceptance |
| Accumulated-value diagnostic Statement revised | Proved — Accumulated-value diagnostic Accumulated-value diagnostic Every accepted numeric literal is rounded to its accumulated-exponent value. | Proved — Conditional accumulated-value diagnostic Conditional accumulated-value diagnostic Every accepted numeric literal whose complete Rust string has byte length at most 3 EiB is rounded to its accumulated-exponent value, retaining every significand digit and interpreting the explicit exponent using the … Revision decisionAffected retained goal: the larger fold and unchanged lexical sums permit unchecked arithmetic corruption on exabyte inputs beyond A, even on normal acceptance. Retaining a universal accumulated-value diagnostic would conceal that remaining defect. Add A explicitly, and derive the new accumulated-exponent meaning from the actual common fold, not the predecessor proof. Definitions quoted from revised requirementsConditional abstract compositiondec2fltConditional abstract composition. Let A = 3458764513820540928 bytes and B = 576460752303421440 bytes. The lexical and conversion component contracts admit implementations, with numeric lexical acceptance, rejection and record representation required for nonempty source-valid byte slices of length at most A, and preservation of the ordinary mathematical exact rounding target required for numeric inputs of length at most B. Special parsing, native correctness-or-defer, integer correctness-or-defer, unrestricted assembly, and the full-significand accumulated-exponent slow diagnostic retain their existing domains; the slow diagnostic applies to every source-valid unsigned numeric literal, without an A or B restriction. For any components satisfying these contracts, the dispatcher's normal results on Rust strings of byte length at most A satisfy classification, accumulated-exponent rounding and lexical sign requirements. On numeric strings of byte length at most B they additionally satisfy ordinary mathematical exact rounding. These conclusions include the native shortcut, integer tier, many-digit endpoint decision, fallback, sign handling and final assembly. Contract inhabitability and the existence of an abstract normal output for every Rust string of byte length at most A must be established, not inferred from an implication over an empty contract package. Conditional component compliancedec2fltConditional component compliance. Let A = 3458764513820540928 bytes and B = 576460752303421440 bytes. The actual source components satisfy the contracts used in conditional abstract composition. In particular, the numeric lexical component returns normally and satisfies acceptance, rejection and record representation on every nonempty source-valid byte slice of length at most A; it preserves the input's ordinary mathematical exact rounding target on numeric slices of length at most B. The source components for special parsing, native conversion, integer conversion and unrestricted assembly retain their existing full-domain obligations. The actual slow component satisfies the full-significand accumulated-exponent diagnostic on every source-valid unsigned numeric literal, without a length restriction. For every Rust string of byte length at most A, the concrete dispatcher agrees with the abstract component operations at its calls and establishes their helper preconditions. On numeric strings of byte length at most B, this agreement additionally preserves the exact rounding target throughout dispatch. These obligations include native shortcut, integer tier, many-digit decision, fallback, sign handling and assembly, and require a genuinely inhabited compatible component package. |
| Equal-target bridge Statement revised | Proved — Equal-target bridge Equal-target bridge On acceptance of a numeric literal whose exact and accumulated-exponent values have the same rounding target, the result has that target and the literal's lexical sign. | Proved — Conditional equal-target bridge Conditional equal-target bridge On acceptance of a numeric literal whose complete Rust string has byte length at most 3 EiB and whose ordinary mathematical exact value and source-defined accumulated-exponent value have the same binary64 rounding … Revision decisionAffected retained goal: equality of exact and accumulated targets alone does not exclude a wrapped lexical exponent in unchecked exabyte executions. Add A while retaining the substantive equal-target bridge. It remains useful on the domain between B and A and must not be silently identified with the B-bounded exact requirement. Definitions quoted from revised requirementsConditional abstract compositiondec2fltConditional abstract composition. Let A = 3458764513820540928 bytes and B = 576460752303421440 bytes. The lexical and conversion component contracts admit implementations, with numeric lexical acceptance, rejection and record representation required for nonempty source-valid byte slices of length at most A, and preservation of the ordinary mathematical exact rounding target required for numeric inputs of length at most B. Special parsing, native correctness-or-defer, integer correctness-or-defer, unrestricted assembly, and the full-significand accumulated-exponent slow diagnostic retain their existing domains; the slow diagnostic applies to every source-valid unsigned numeric literal, without an A or B restriction. For any components satisfying these contracts, the dispatcher's normal results on Rust strings of byte length at most A satisfy classification, accumulated-exponent rounding and lexical sign requirements. On numeric strings of byte length at most B they additionally satisfy ordinary mathematical exact rounding. These conclusions include the native shortcut, integer tier, many-digit endpoint decision, fallback, sign handling and final assembly. Contract inhabitability and the existence of an abstract normal output for every Rust string of byte length at most A must be established, not inferred from an implication over an empty contract package. Conditional component compliancedec2fltConditional component compliance. Let A = 3458764513820540928 bytes and B = 576460752303421440 bytes. The actual source components satisfy the contracts used in conditional abstract composition. In particular, the numeric lexical component returns normally and satisfies acceptance, rejection and record representation on every nonempty source-valid byte slice of length at most A; it preserves the input's ordinary mathematical exact rounding target on numeric slices of length at most B. The source components for special parsing, native conversion, integer conversion and unrestricted assembly retain their existing full-domain obligations. The actual slow component satisfies the full-significand accumulated-exponent diagnostic on every source-valid unsigned numeric literal, without a length restriction. For every Rust string of byte length at most A, the concrete dispatcher agrees with the abstract component operations at its calls and establishes their helper preconditions. On numeric strings of byte length at most B, this agreement additionally preserves the exact rounding target throughout dispatch. These obligations include native shortcut, integer tier, many-digit decision, fallback, sign handling and assembly, and require a genuinely inhabited compatible component package. |
| Infinity Every infinity literal returns Ok of the infinity with its lexical sign. | Proved — Infinity | Proved — Infinity |
| No spurious NaNs Every successful result for an input other than a NaN literal is not NaN. | Proved — No spurious NaNs | Proved — No spurious NaNs |
| Numeric sign Every successful numeric result has the literal's lexical sign, including results that underflow to zero or overflow to infinity. | Proved — Numeric sign | Proved — Numeric sign |
| Selected exponent range On a successful numeric parse, each raw pair selected by the dispatcher for final float assembly has a biased exponent in 0..=2047. | Proved — Selected exponent range | Proved — Selected exponent range |
| Selected magnitude sign On a successful numeric parse, the assembled word of each raw pair selected for final float assembly has a clear sign bit. | Proved — Selected magnitude sign | Proved — Selected magnitude sign |
| Signed zero On acceptance, a numeric literal denoting zero returns zero with its lexical sign. | Proved — Signed zero | Proved — Signed zero |
| Abstract composition Statement revised | Disproved — Abstract composition Abstract composition The lexical and conversion component contracts admit implementations. … | Proved — Conditional abstract composition Conditional abstract composition Statement and local notationLet A = 3 EiB and B = ≈ 512 PiB. … Revision decisionIts refutation proves that the historical package is uninhabited, not a failed dispatcher execution. The minimal fixed-cutoff repair preserves exact targets only through B and normal numeric lexical behavior through A. Revise the component domains and dispatcher conclusions explicitly, retaining genuine inhabitability and all independent unbounded conversion contracts. … Definitions quoted from revised requirementsConditional abstract compositiondec2fltConditional abstract composition. Let A = 3458764513820540928 bytes and B = 576460752303421440 bytes. The lexical and conversion component contracts admit implementations, with numeric lexical acceptance, rejection and record representation required for nonempty source-valid byte slices of length at most A, and preservation of the ordinary mathematical exact rounding target required for numeric inputs of length at most B. Special parsing, native correctness-or-defer, integer correctness-or-defer, unrestricted assembly, and the full-significand accumulated-exponent slow diagnostic retain their existing domains; the slow diagnostic applies to every source-valid unsigned numeric literal, without an A or B restriction. For any components satisfying these contracts, the dispatcher's normal results on Rust strings of byte length at most A satisfy classification, accumulated-exponent rounding and lexical sign requirements. On numeric strings of byte length at most B they additionally satisfy ordinary mathematical exact rounding. These conclusions include the native shortcut, integer tier, many-digit endpoint decision, fallback, sign handling and final assembly. Contract inhabitability and the existence of an abstract normal output for every Rust string of byte length at most A must be established, not inferred from an implication over an empty contract package. Conditional component compliancedec2fltConditional component compliance. Let A = 3458764513820540928 bytes and B = 576460752303421440 bytes. The actual source components satisfy the contracts used in conditional abstract composition. In particular, the numeric lexical component returns normally and satisfies acceptance, rejection and record representation on every nonempty source-valid byte slice of length at most A; it preserves the input's ordinary mathematical exact rounding target on numeric slices of length at most B. The source components for special parsing, native conversion, integer conversion and unrestricted assembly retain their existing full-domain obligations. The actual slow component satisfies the full-significand accumulated-exponent diagnostic on every source-valid unsigned numeric literal, without a length restriction. For every Rust string of byte length at most A, the concrete dispatcher agrees with the abstract component operations at its calls and establishes their helper preconditions. On numeric strings of byte length at most B, this agreement additionally preserves the exact rounding target throughout dispatch. These obligations include native shortcut, integer tier, many-digit decision, fallback, sign handling and assembly, and require a genuinely inhabited compatible component package. |
| Component compliance Statement revised | Disproved — Component compliance Component compliance The actual source components satisfy the contracts used in abstract composition, including preservation of the input's rounding target. … | Proved — Conditional component compliance Conditional component compliance Statement and local notationLet A = 3 EiB and B = ≈ 512 PiB. … Revision decisionThe second dispatch refutation uses the same empty package. Concrete numeric normal-return and record laws must use A, exact-target preservation must use B, and the actual slow helper must still meet its full unsigned diagnostic contract. The prior full-domain compliance approval/proof inventory cannot validate these changed source meanings and requirements. Definitions quoted from revised requirementsConditional abstract compositiondec2fltConditional abstract composition. Let A = 3458764513820540928 bytes and B = 576460752303421440 bytes. The lexical and conversion component contracts admit implementations, with numeric lexical acceptance, rejection and record representation required for nonempty source-valid byte slices of length at most A, and preservation of the ordinary mathematical exact rounding target required for numeric inputs of length at most B. Special parsing, native correctness-or-defer, integer correctness-or-defer, unrestricted assembly, and the full-significand accumulated-exponent slow diagnostic retain their existing domains; the slow diagnostic applies to every source-valid unsigned numeric literal, without an A or B restriction. For any components satisfying these contracts, the dispatcher's normal results on Rust strings of byte length at most A satisfy classification, accumulated-exponent rounding and lexical sign requirements. On numeric strings of byte length at most B they additionally satisfy ordinary mathematical exact rounding. These conclusions include the native shortcut, integer tier, many-digit endpoint decision, fallback, sign handling and final assembly. Contract inhabitability and the existence of an abstract normal output for every Rust string of byte length at most A must be established, not inferred from an implication over an empty contract package. Conditional component compliancedec2fltConditional component compliance. Let A = 3458764513820540928 bytes and B = 576460752303421440 bytes. The actual source components satisfy the contracts used in conditional abstract composition. In particular, the numeric lexical component returns normally and satisfies acceptance, rejection and record representation on every nonempty source-valid byte slice of length at most A; it preserves the input's ordinary mathematical exact rounding target on numeric slices of length at most B. The source components for special parsing, native conversion, integer conversion and unrestricted assembly retain their existing full-domain obligations. The actual slow component satisfies the full-significand accumulated-exponent diagnostic on every source-valid unsigned numeric literal, without a length restriction. For every Rust string of byte length at most A, the concrete dispatcher agrees with the abstract component operations at its calls and establishes their helper preconditions. On numeric strings of byte length at most B, this agreement additionally preserves the exact rounding target throughout dispatch. These obligations include native shortcut, integer tier, many-digit decision, fallback, sign handling and assembly, and require a genuinely inhabited compatible component package. |
| Supporting specifications and helper contracts | ||
| Classification totality Mathematical specification Classification totality. … | Proved — Classification totality | Proved — Classification totality |
| Rounding totality Mathematical specification Rounding totality. … | Proved — Rounding totality | Proved — Rounding totality |
| Numeric acceptance Statement revised | Disproved — Numeric acceptance Numeric acceptance Every nonempty byte slice forming an unsigned numeric literal returns Some. Conditional theorem proved The input byte slice has length at most ≈ 8 EiB. Proved for this program alongside the unrestricted verdict above. | Proved — Conditional numeric acceptance Conditional numeric acceptance Every nonempty source-valid byte slice of length at most 3 EiB that forms an unsigned numeric literal returns normally with Some. … The earlier conditional theorem and this revised requirement have separate statements and proofs. Revision decisionNumberHelperAcceptance__Refutation uses 9223372036854120450 fractional ones followed by e-655359, whose initial sum is i64::MIN-1 before retry. Keep the original combination order for performance and exclude only exabyte-scale inputs with the explicit A bound. A+(10*T-1)=i64::MAX justifies the selected safe domain for the larger accumulator; the old sharp bound is not valid evidence for this new source. … Definitions quoted from revised requirementsConditional abstract compositiondec2fltConditional abstract composition. Let A = 3458764513820540928 bytes and B = 576460752303421440 bytes. The lexical and conversion component contracts admit implementations, with numeric lexical acceptance, rejection and record representation required for nonempty source-valid byte slices of length at most A, and preservation of the ordinary mathematical exact rounding target required for numeric inputs of length at most B. Special parsing, native correctness-or-defer, integer correctness-or-defer, unrestricted assembly, and the full-significand accumulated-exponent slow diagnostic retain their existing domains; the slow diagnostic applies to every source-valid unsigned numeric literal, without an A or B restriction. For any components satisfying these contracts, the dispatcher's normal results on Rust strings of byte length at most A satisfy classification, accumulated-exponent rounding and lexical sign requirements. On numeric strings of byte length at most B they additionally satisfy ordinary mathematical exact rounding. These conclusions include the native shortcut, integer tier, many-digit endpoint decision, fallback, sign handling and final assembly. Contract inhabitability and the existence of an abstract normal output for every Rust string of byte length at most A must be established, not inferred from an implication over an empty contract package. Conditional component compliancedec2fltConditional component compliance. Let A = 3458764513820540928 bytes and B = 576460752303421440 bytes. The actual source components satisfy the contracts used in conditional abstract composition. In particular, the numeric lexical component returns normally and satisfies acceptance, rejection and record representation on every nonempty source-valid byte slice of length at most A; it preserves the input's ordinary mathematical exact rounding target on numeric slices of length at most B. The source components for special parsing, native conversion, integer conversion and unrestricted assembly retain their existing full-domain obligations. The actual slow component satisfies the full-significand accumulated-exponent diagnostic on every source-valid unsigned numeric literal, without a length restriction. For every Rust string of byte length at most A, the concrete dispatcher agrees with the abstract component operations at its calls and establishes their helper preconditions. On numeric strings of byte length at most B, this agreement additionally preserves the exact rounding target throughout dispatch. These obligations include native shortcut, integer tier, many-digit decision, fallback, sign handling and assembly, and require a genuinely inhabited compatible component package. |
| Invalid rejection Statement revised | Disproved — Invalid rejection Invalid rejection Every nonempty byte slice that is not an unsigned numeric literal returns None. Conditional theorem proved The input byte slice has length at most ≈ 8 EiB. Proved for this program alongside the unrestricted verdict above. | Proved — Conditional invalid rejection Conditional invalid rejection Every nonempty source-valid byte slice of length at most 3 EiB that is not an unsigned numeric literal returns normally with None, including executions with integer overflow checks enabled. … The earlier conditional theorem and this revised requirement have separate statements and proofs. Revision decisionNumberHelperRejection__Refutation uses the same arithmetic failure with a trailing x; it does not exhibit a successful acceptance of invalid syntax. The A condition permits keeping the existing order. All exponent digits must still be scanned after saturation and whole-input rejection must remain effective inside the domain, including non-UTF8 helper slices. Definitions quoted from revised requirementsConditional abstract compositiondec2fltConditional abstract composition. Let A = 3458764513820540928 bytes and B = 576460752303421440 bytes. The lexical and conversion component contracts admit implementations, with numeric lexical acceptance, rejection and record representation required for nonempty source-valid byte slices of length at most A, and preservation of the ordinary mathematical exact rounding target required for numeric inputs of length at most B. Special parsing, native correctness-or-defer, integer correctness-or-defer, unrestricted assembly, and the full-significand accumulated-exponent slow diagnostic retain their existing domains; the slow diagnostic applies to every source-valid unsigned numeric literal, without an A or B restriction. For any components satisfying these contracts, the dispatcher's normal results on Rust strings of byte length at most A satisfy classification, accumulated-exponent rounding and lexical sign requirements. On numeric strings of byte length at most B they additionally satisfy ordinary mathematical exact rounding. These conclusions include the native shortcut, integer tier, many-digit endpoint decision, fallback, sign handling and final assembly. Contract inhabitability and the existence of an abstract normal output for every Rust string of byte length at most A must be established, not inferred from an implication over an empty contract package. Conditional component compliancedec2fltConditional component compliance. Let A = 3458764513820540928 bytes and B = 576460752303421440 bytes. The actual source components satisfy the contracts used in conditional abstract composition. In particular, the numeric lexical component returns normally and satisfies acceptance, rejection and record representation on every nonempty source-valid byte slice of length at most A; it preserves the input's ordinary mathematical exact rounding target on numeric slices of length at most B. The source components for special parsing, native conversion, integer conversion and unrestricted assembly retain their existing full-domain obligations. The actual slow component satisfies the full-significand accumulated-exponent diagnostic on every source-valid unsigned numeric literal, without a length restriction. For every Rust string of byte length at most A, the concrete dispatcher agrees with the abstract component operations at its calls and establishes their helper preconditions. On numeric strings of byte length at most B, this agreement additionally preserves the exact rounding target throughout dispatch. These obligations include native shortcut, integer tier, many-digit decision, fallback, sign handling and assembly, and require a genuinely inhabited compatible component package. |
| Rejection For every byte slice and either value of the separate sign argument, an input other than an unsigned inf, infinity, or nan keyword returns None. | Proved — Rejection | Proved — Rejection |
| Assembly correspondence For every BiasedFp, the function returns normally with float bits equal to the bitwise OR of its mantissa and its biased exponent cast to u64 using Rust semantics and shifted left by 52. … | Proved — Assembly correspondence | Proved — Assembly correspondence |
| Classification determinism Mathematical specification Classification determinism. … | Proved — Classification determinism | Proved — Classification determinism |
| Significand digit Mathematical specification Significand digit. … | Proved — Significand digit | Proved — Significand digit |
| Exponent agreement Mathematical specification Exponent agreement. … | Proved — Exponent agreement | Proved — Exponent agreement |
| Correctness or defer For all i64 exponents q and all u64 mantissas w, a normal result is either a pair with negative biased exponent (deferral) or a pair whose assembled word is the nonnegative binary64 rounding of the exact value w * 10^q. | Proved — Correctness or defer | Proved — Correctness or defer |
| Native correctness or defer For every Decimal record, on normal return, the result is either None or Some of the binary64 rounding of the exact mantissa * 10^exponent, with the record's sign. … | Proved — Native correctness or defer | Proved — Native correctness or defer |
| Accumulated-value diagnostic Statement revised | Proved — Accumulated-value diagnostic Accumulated-value diagnostic For every unsigned numeric literal, a returned record with many_digits = false represents its accumulated-exponent value exactly as mantissa * 10^exponent. … | Proved — Conditional accumulated-value diagnostic Conditional accumulated-value diagnostic For every source-valid unsigned numeric byte slice of length at most 3 EiB, any returned record with many_digits = false represents its accumulated-exponent value exactly as mantissa * 10^exponent. … Revision decisionAffected retained goal: outside A a normal unchecked retry exponent can wrap even though the mantissa bound survives. The diagnostic equality/interval law therefore needs the same explicit normal-arithmetic domain. Its coefficient interval, treatment of all digits, and source-defined accumulated exponent are not weakened within that domain. Definitions quoted from revised requirementsConditional abstract compositiondec2fltConditional abstract composition. Let A = 3458764513820540928 bytes and B = 576460752303421440 bytes. The lexical and conversion component contracts admit implementations, with numeric lexical acceptance, rejection and record representation required for nonempty source-valid byte slices of length at most A, and preservation of the ordinary mathematical exact rounding target required for numeric inputs of length at most B. Special parsing, native correctness-or-defer, integer correctness-or-defer, unrestricted assembly, and the full-significand accumulated-exponent slow diagnostic retain their existing domains; the slow diagnostic applies to every source-valid unsigned numeric literal, without an A or B restriction. For any components satisfying these contracts, the dispatcher's normal results on Rust strings of byte length at most A satisfy classification, accumulated-exponent rounding and lexical sign requirements. On numeric strings of byte length at most B they additionally satisfy ordinary mathematical exact rounding. These conclusions include the native shortcut, integer tier, many-digit endpoint decision, fallback, sign handling and final assembly. Contract inhabitability and the existence of an abstract normal output for every Rust string of byte length at most A must be established, not inferred from an implication over an empty contract package. Conditional component compliancedec2fltConditional component compliance. Let A = 3458764513820540928 bytes and B = 576460752303421440 bytes. The actual source components satisfy the contracts used in conditional abstract composition. In particular, the numeric lexical component returns normally and satisfies acceptance, rejection and record representation on every nonempty source-valid byte slice of length at most A; it preserves the input's ordinary mathematical exact rounding target on numeric slices of length at most B. The source components for special parsing, native conversion, integer conversion and unrestricted assembly retain their existing full-domain obligations. The actual slow component satisfies the full-significand accumulated-exponent diagnostic on every source-valid unsigned numeric literal, without a length restriction. For every Rust string of byte length at most A, the concrete dispatcher agrees with the abstract component operations at its calls and establishes their helper preconditions. On numeric strings of byte length at most B, this agreement additionally preserves the exact rounding target throughout dispatch. These obligations include native shortcut, integer tier, many-digit decision, fallback, sign handling and assembly, and require a genuinely inhabited compatible component package. |
| Record bounds For every nonempty byte slice, any returned record has negative = false and mantissa < 10^19. | Proved — Record bounds | Proved — Record bounds |
| Rounding determinism Mathematical specification Rounding determinism. … | Proved — Rounding determinism | Proved — Rounding determinism |
| Full-significand diagnostic For every unsigned numeric literal, a normal result is a pair whose assembled word is the nonnegative binary64 rounding of its accumulated-exponent value, retaining the full significand's contribution to rounding. | Disproved — Full-significand diagnostic | Proved — Full-significand diagnosticRevision decisionKeep the complete original requirement text and its full source-valid unsigned domain. SlowAccumulatedRounding__Refutation proves a normal zero for 2147483648 ones whose accumulated target is infinity, not merely a panic. Repair the final point using i64 count subtraction and final-only saturating exponent combination, while retaining the 768-digit buffer, trimming and discarded-nonzero information. … |
| Infinity For every byte slice and either value of the separate sign argument, an unsigned infinity keyword returns Some infinity with that sign. | Proved — Infinity | Proved — Infinity |
| NaN For every byte slice and either value of the separate sign argument, an unsigned NaN keyword returns Some of a NaN. | Proved — NaN | Proved — NaN |