Totality

The statement differs between program versions. Each verdict below belongs to the statement shown on its page.

Totality

Disproved
dec2flt
Totality. For every Rust string, the function terminates normally with a result or parsing error, without panicking.

View counterexample proof

Later revision · decision
ParserTotality__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 requirements

Conditional abstract composition

dec2flt
Conditional 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 compliance

dec2flt
Conditional 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 proofs
Inspect related source (201)
More program dependencies (159)
Standard-library dependencies (39)

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

Lean statement and supporting proof

Proposition checked for this verdict

theorem ParserTotality__Refutation : ¬ (∀ s : Str, DecimalGoalVocabularyDefault.sourceString s ->
      ∃ r, num.imp.dec2flt.dec2flt
        F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64
        F64.Insts.CoreOpsArithDivF64F64 F64.Insts.CoreOpsArithMulF64F64
        F64.Insts.CoreOpsArithNegF64 s = ok r) := by

The negation is proved, disproving the requirement.

Alternate registered target · outside this verdict
theorem ParserTotality :
    ∀ s : Str, DecimalGoalVocabularyDefault.sourceString s ->
      ∃ r, num.imp.dec2flt.dec2flt
        F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64
        F64.Insts.CoreOpsArithDivF64F64 F64.Insts.CoreOpsArithMulF64F64
        F64.Insts.CoreOpsArithNegF64 s = ok r := by
Statement registration
Live polaritydisprove
Authorityrecorded audit polarity
Registered targetauthored:ParserTotality__refutation
Closure nodes
  • ParserTotality__Refutation
Counterexample argument as recorded · ParserTotality__Refutation

Theorem

The following result is false: For every source-valid Rust string, the extracted f64 specialization of dec2flt returns normally (its returned Rust result may be either success or a parsing error), and does not panic or diverge.

Proof

By ParserNumericPublicOverflowWitness, choose the concrete source-valid string s whose bytes are 0., eleven zeroes, 1000000000000000080, and 2147483618 final zeroes. The cited statement gives both sourceString s and
\texttt{dec2flt}(s)=\texttt{fail integerOverflow}. \tag{1}
Suppose the universal totality statement were true. Specializing it to this s and its cited source-validity proof would give some public Rust result r with
\texttt{dec2flt}(s)=\texttt{ok $r$}. \tag{2}
Equations (1) and (2) are impossible because Result.fail and Result.ok are distinct constructors. Hence the universal statement is false, which is its exact negation as stated.
ParserTotality Refutation
Recorded replacement requirements

parser_totality

dec2flt
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. This requirement includes executions with integer overflow checks enabled and applies to numeric, special, invalid, empty and sign-only inputs.
Compare requirement statements

Revised program

dec2flt
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. This requirement includes executions with integer overflow checks enabled and applies to numeric, special, invalid, empty and sign-only inputs.

Read this version’s verdict and proof

Models and assumptions

Program assumptions and trust

These modeling choices occur in the declared dependencies of this requirement’s proofs.

All 31 entries