Claim #12 — Verification of lexical_parse_integer::OptionsBuilder::new (with Aeneas be86ab0f1989d04944292b345b24c435be3ad10a)
lexical_parse_integer::OptionsBuilder::new
impl OptionsBuilder
pub const fn new() -> SelfTool: Aeneas be86ab0f1989d04944292b345b24c435be3ad10a
Preconditions
Every call returns normally with no_multi_digit=true.
Formal statement
LexicalParseIntegerOptionsProofs.builder_new
Complete Lean proposition
@Eq.{1} (Aeneas.Std.Result.{0} lexical_parse_integer.options.OptionsBuilder)
lexical_parse_integer.options.OptionsBuilder.new
(@Aeneas.Std.Result.ok.{0} lexical_parse_integer.options.OptionsBuilder
(lexical_parse_integer.options.OptionsBuilder.mk LexicalParseIntegerOptionsSpec.defaultState))Theorem source at recorded commit · Recorded check
Referenced definitions (up to 100 direct references)
Eq· Init.PreludeAeneas.Std.Result· Aeneas.Std.Primitiveslexical_parse_integer.options.OptionsBuilderlexical_parse_integer.options.OptionsBuilder.newAeneas.Std.Result.ok· Aeneas.Std.Primitiveslexical_parse_integer.options.OptionsBuilder.mkLexicalParseIntegerOptionsSpec.defaultState
Evidence
What is trusted
From the report
The results rely on the pinned Rust-to-Lean translation, Aeneas scalar and slice
models, and Lean kernel. Audits check the named theorems and their transitive
axioms; they do not independently establish translation or model correctness.
Technical limitations
From the report
The original generic and public parsing bodies are not proved by the adapted
front-end contracts. The adaptations replace iterator and raw cursor operations
with safe slices and cursors, outline macros, and make radix explicit. Source
checks and review compare the selected transformations to the release; native
differential tests provide separate evidence. They do not formally prove
Rust-to-Rust equivalence. Original raw-memory paths, optimized multi-digit
integration, custom format grammar and option independence remain outside these
front-end proofs. The original complete parser encounters an Aeneas extraction
blocker at a macro-expanded outer-loop break. The original strict builder's panic
branch also encounters an Aeneas internal error; a separately checked adapted
strict constructor does not establish equivalence to that original body.
The two findings below concern custom formats and are supported by native
reproductions. They do not imply that all other custom formats were examined.
Tool limitations
Lean backend only, requiring cargo-proofs 0.4.0 or later. The version identifies the official Aeneas Git revision pinned in lake-manifest.json (backends/lean); this revision uses Lean 4.35.0. The recorder checks committed Lean theorem declarations and permits only propext, Classical.choice, and Quot.sound as transitive axioms. It rejects sorryAx and custom axioms, including axiomatized external models. Charon/Aeneas extraction is not rerun. The author must review that the committed functional model matches the recorded Rust source, that the named theorem corresponds to the public API, and that the reported precondition matches the theorem. A checked theorem alone does not establish those links or the adequacy of the specification. The current adapter records the default Cargo configuration, with ordinary Lean module paths and a pinned official Git dependency. Other backends, custom Lake source directories, and local-path Aeneas dependencies are unsupported. See https://proofs.rs/book/aeneas.html and https://github.com/AeneasVerif/aeneas/tree/be86ab0f1989d04944292b345b24c435be3ad10a.
Aeneas be86ab0f1989d04944292b345b24c435be3ad10a — version details