Claim #9 — Verification of <fxhash::FxHasher32 as Default>::default (with Aeneas be86ab0f1989d04944292b345b24c435be3ad10a)
<fxhash::FxHasher32 as Default>::default
impl Default for FxHasher32
pub fn default() -> FxHasher32Tool: Aeneas be86ab0f1989d04944292b345b24c435be3ad10a
Preconditions
true
Formal statement
FxHashContracts.fxHasher32_default
Complete Lean proposition
@Eq.{1} (Aeneas.Std.Result.{0} fxhash_adapted.FxHasher32) fxhash_adapted.FxHasher32.Insts.CoreDefaultDefault.default
(@Aeneas.Std.Result.ok.{0} fxhash_adapted.FxHasher32
(fxhash_adapted.FxHasher32.mk
(Aeneas.Std.U32.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))
(@of_decide_eq_true
(@LE.le.{0} Nat instLENat (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))
(Aeneas.Std.UScalar.cMax Aeneas.Std.UScalarTy.U32))
(Nat.decLe (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))
(Aeneas.Std.UScalar.cMax Aeneas.Std.UScalarTy.U32))
(@id.{0}
(@Eq.{1} Bool
(@Decidable.decide
(@LE.le.{0} Nat instLENat (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))
(Aeneas.Std.UScalar.cMax Aeneas.Std.UScalarTy.U32))
(Nat.decLe (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))
(Aeneas.Std.UScalar.cMax Aeneas.Std.UScalarTy.U32)))
Bool.true)
(@Eq.refl.{1} Bool Bool.true))))))Theorem source at recorded commit · Recorded check
Referenced definitions (up to 100 direct references)
Eq· Init.PreludeAeneas.Std.Result· Aeneas.Std.Primitivesfxhash_adapted.FxHasher32fxhash_adapted.FxHasher32.Insts.CoreDefaultDefault.defaultAeneas.Std.Result.ok· Aeneas.Std.Primitivesfxhash_adapted.FxHasher32.mkAeneas.Std.U32.ofNat· Aeneas.Std.Scalar.CoreOfNat.ofNat· Init.PreludeNat· Init.PreludeinstOfNatNat· Init.Preludeof_decide_eq_true· Init.PreludeLE.le· Init.PreludeinstLENat· Init.PreludeAeneas.Std.UScalar.cMax· Aeneas.Std.Scalar.CoreAeneas.Std.UScalarTy.U32· Aeneas.Std.Scalar.CoreNat.decLe· Init.Preludeid· Init.PreludeBool· Init.PreludeDecidable.decide· Init.PreludeBool.true· Init.PreludeEq.refl· Init.Prelude
Evidence
What is trusted
From the report
These results rely on the Aeneas translation from Rust to Lean, its models of fixed-width arithmetic, slices, arrays, iteration and loop execution, and Lean's checking of the stated theorems. The Lean Usize model width must match the 64-bit Rust extraction target for the native-width claims. Source correspondence is supported by the adaptation check and finite native comparisons described below; it is not itself a formal equivalence theorem.
Technical limitations
From the report
This is partial coverage. Generic Hash composition, collection aliases, inherited Hasher methods, and standard collection behavior are not established by these claims. Hash distribution, collision resistance and cryptographic security are outside scope. The checked target is macOS arm64; other targets and byte orders are not covered by this run.
The model is extracted from derived Rust. The integer .bitxor(word) expression is replaced by ^ word, a private write helper and its call are renamed to avoid a generated-name collision, and guarded native-endian 32- and 64-bit reads are replaced by fixed indexed byte arrays and from_le_bytes. The adapted source rejects non-little-endian targets. A source checker checks these changes. Source review supports equivalence: the XOR uses the same integer operation, the rename preserves the call, and the original length guards make the indexed reads valid and select the same bytes in the same order on the supported little-endian target. Finite differential tests against the release passed in debug and release; neither source review nor testing is a formal equivalence proof.
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