proofs.rs

Report #37 — Selected fxhash 0.2.1 integer-write and byte-write guarantees

Aeneas be86ab0f1989d04944292b345b24c435be3ad10a

24 verified claims · 0 findings

Recorded by the author; proofs.rs has not re-run it. How to read a report

MasWag · 2026-11-10 09:59 UTC

Revision v1

Overview

This partial verification covers selected operations on the adapted fxhash 0.2.1 implementation. Default initializes FxHasher32, FxHasher64 and the native-width FxHasher to zero; finish returns the current state as a u64 without changing it.

For every initial state and unsigned input, the FxHasher32, FxHasher64 and native-width FxHasher write_u8, write_u16, write_u32, write_u64 and write_usize methods succeed with the specified state. A mixing round rotates the state left five bits, XORs the input word, then multiplies modulo the state width by 0x27220a95 for 32 bits or 0x517cc1b727220a95 for 64 bits. FxHasher64 uses one round; FxHasher32 uses one round for inputs up to 32 bits and, for a 64-bit u64 or usize input, two rounds with the low 32 bits first. On the checked 64-bit target, FxHasher uses the 64-bit one-round rule and usize has 64 bits.

For every modeled initial state and byte slice, including an empty slice, Hasher::write succeeds and produces the state specified by the byte algorithm for all three hasher types. FxHasher32 mixes consecutive little-endian 4-byte blocks and then each remaining byte. FxHasher64 and, on the checked target, FxHasher mix consecutive little-endian 8-byte blocks, an optional 4-byte block, and then each remaining byte. Each block or byte uses the mixing round described above; an empty slice leaves the state unchanged.

Findings

Fix collection constructors in the 0.2.1 release README

Description

The fxhash 0.2.1 README examples call FxHashMap::new() and FxHashSet::new(), but these aliases use FxBuildHasher and the examples do not compile with those constructors.

Steps to Reproduce

With fxhash = "=0.2.1" as a dependency, compile:

use fxhash::FxHashMap;

fn main() {
    let mut hashmap = FxHashMap::new();
    hashmap.insert("black", 0);
    hashmap.insert("white", 255);
}

The README's FxHashSet::new() example is affected in the same way.

Expected Behavior

Both README examples compile and create collections using the Fx hasher.

Actual Behavior

Compilation fails with E0599: no associated function named new is found for the collection with BuildHasherDefault<FxHasher>.

Environment

  • fxhash 0.2.1; Rust 1.94.1, aarch64-apple-darwin

Screenshots/Logs

The compiler reports E0599 at the ::new() call.

Additional Context

FxHashMap::default() and FxHashSet::default() compile and run in the tested control. The current upstream README already uses default(). Related: #1 and #18.

Findings (0)

No findings reported.

APIs (24)

Trait implementations

impl core::default::Default for …

fn default3 implementations

impl core::hash::Hasher for …

fn finish3 implementations
fn write3 implementations
fn write_u163 implementations
fn write_u323 implementations
fn write_u643 implementations
fn write_u83 implementations
fn write_usize3 implementations

Evidence

https://github.com/MasWag/crate-proofs/tree/61fb46c2ecdd9d404b9bd5b924a8d095dd8b89ce

Reproduce

Toolchain source metadata: not recorded.

Run locally

git clone -- https://github.com/MasWag/crate-proofs report-37-source-1
git -C report-37-source-1 checkout --detach 61fb46c2ecdd9d404b9bd5b924a8d095dd8b89ce
git -C report-37-source-1 submodule update --init --recursive --checkout
cd report-37-source-1/fxhash/0.2.1/.work/build/default/aarch64-apple-darwin/proofs

lake build +Contracts +WriteContracts

printf '%s' 'import Aeneas
import Contracts
import WriteContracts
set_option pp.all true
set_option pp.universes true
set_option pp.explicit true
set_option pp.fullNames true
set_option pp.notation false
set_option pp.proofs true
set_option pp.deepTerms true
set_option pp.maxSteps 10000000
-- proofs.rs adapter for Lean 4.35.0 / Aeneas be86ab0f.
-- Uses Lean'\''s environment, Meta telescope and pretty-printer, never source parsing.
open Lean Meta Elab Command
namespace ProofsProbe
meta def moduleOf (env : Environment) (n : Name) : String :=
  match env.getModuleIdxFor? n with
  | some idx => env.header.moduleNames[idx.toNat]!.toString
  | none => ""
meta def pretty (e : Expr) : MetaM String := do
  let s := (← ppExpr e).pretty
  if s.contains '\''⋯'\'' then
    throwError "Lean display contains an omission marker (or literal ⋯); refusing an incomplete proposition"
  if s.utf8ByteSize > 1000000 then throwError "Proposition exceeds 1,000,000-byte recording limit"
  return s
-- The full statement stays explicit; the inspection view uses Lean notation.
meta def readable (e : Expr) : MetaM String :=
  withOptions (fun o =>
    let o := o.setBool `pp.all false
    let o := o.setBool `pp.explicit false
    let o := o.setBool `pp.universes false
    o.setBool `pp.notation true) (pretty e)
-- Only a constant'\''s own tag grants a link; names in plain text are never guessed.
partial def segments (code : Widget.CodeWithInfos) (ref : Option Name := none) : Array Json :=
  match code with
  | .text text => #[Json.mkObj (([("text", toJson text)]) ++
      (ref.toList.map fun n => ("ref", toJson n.toString)))]
  | .append parts => parts.foldl (fun acc part => acc ++ segments part ref) #[]
  | .tag info part =>
    let ref := match info.info.val.info with
      | .ofTermInfo ti => ti.expr.constName?
      | _ => none
    segments part ref
meta def readableFields (key : String) (e : Expr) : MetaM (List (String × Json)) := do
  let text ← readable e
  let base := [(key, toJson text)]
  try
    let code ← withOptions (fun o =>
      let o := o.setBool `pp.all false
      let o := o.setBool `pp.explicit false
      let o := o.setBool `pp.universes false
      let o := o.setBool `pp.notation true
      o.setBool `pp.tagAppFns true) (Widget.ppExprTagged e)
    let parts := segments code
    let joined := String.join (parts.toList.map fun j =>
      (j.getObjValAs? String "text").toOption.getD "")
    if joined != text || parts.size > 10000 || joined.utf8ByteSize > 1000000 then
      return base
    return base ++ [(key ++ "_segments", toJson parts)]
  catch _ => return base
meta def inspect (n : Name) (ty : Expr) (manual : Bool) : MetaM (Option Json) := do
  let env ← getEnv
  forallTelescope ty fun xs conclusion => do
    let programExpr ← try
      let normalized ← Aeneas.Utils.normalizeLetBindings conclusion
      let (expr, _) ← Aeneas.Step.getStepSpecFunArgsExpr normalized
      pure (some expr)
    catch _ => pure none
    if programExpr.isNone && !manual then return none
    let full ← pretty ty
    let program ← match programExpr with
      | some expr => pure (toJson (← readable expr))
      | none => pure Json.null
    let head := toJson (programExpr.bind (·.getAppFn.constName?) |>.map Name.toString)
    let mut binders := #[]
    for x in xs do
      let d ← x.fvarId!.getDecl
      let prop ← isProp d.type
      binders := binders.push (Json.mkObj ((← readableFields "type" d.type) ++ [
        ("name", toJson d.userName.toString),
        ("kind", toJson (if d.binderInfo.isInstImplicit then "instance" else if prop then "hypothesis" else "variable")),
        ("binder", toJson (if d.binderInfo.isInstImplicit then "instance" else if d.binderInfo.isExplicit then "explicit" else "implicit"))]))
    if binders.size > 1000 then throwError "More than 1000 binders"
    let some ranges ← findDeclarationRanges? n | throwError "Missing theorem source range: {n}"
    let axioms ← Lean.collectAxioms n
    let constants := ty.getUsedConstants
    let mut definitions := #[]
    for nm in constants.extract 0 100 do
      let ranges ← findDeclarationRanges? nm
      definitions := definitions.push (Json.mkObj [
        ("name", toJson nm.toString), ("module", toJson (moduleOf env nm)),
        ("source", match ranges with
          | some r => Json.mkObj [("first_line", toJson r.range.pos.line), ("last_line", toJson r.range.endPos.line)]
          | none => Json.null)])
    return some (Json.mkObj ((← readableFields "conclusion" conclusion) ++ [
      ("version", toJson (1 : Nat)), ("theorem", toJson n.toString),
      ("module", toJson (moduleOf env n)), ("statement", toJson full),
      ("binders", toJson binders),
      ("program", program), ("program_head", head),
      ("axioms", toJson (axioms.map Name.toString)),
      ("first_line", toJson ranges.range.pos.line), ("last_line", toJson ranges.range.endPos.line),
      ("definitions", toJson definitions), ("definitions_truncated", toJson (decide (constants.size > 100))),
      ("translation_rerun", toJson false)]))
end ProofsProbe

run_cmd do
  let manual : Array Name := #[`FxHashContracts.fxHasher32_default, `FxHashContracts.fxHasher64_default, `FxHashContracts.fxHasher_default, `FxHashContracts.fxHasher32_finish, `FxHashContracts.fxHasher64_finish, `FxHashContracts.fxHasher_finish, `FxHashContracts.fxHasher32_write_u32, `FxHashContracts.fxHasher64_write_u64, `FxHashContracts.fxHasher32_write_u8, `FxHashContracts.fxHasher32_write_u16, `FxHashContracts.fxHasher64_write_u8, `FxHashContracts.fxHasher64_write_u16, `FxHashContracts.fxHasher64_write_u32, `FxHashContracts.fxHasher64_write_usize, `FxHashContracts.fxHasher32_write_u64, `FxHashContracts.fxHasher32_write_usize, `FxHashContracts.fxHasher_write_u8, `FxHashContracts.fxHasher_write_u16, `FxHashContracts.fxHasher_write_u32, `FxHashContracts.fxHasher_write_u64, `FxHashContracts.fxHasher_write_usize, `FxHashWriteContracts.fxHasher32_write_exact, `FxHashWriteContracts.fxHasher64_write_exact, `FxHashWriteContracts.fxHasher_write_exact]
  let localModules : Array String := #[]
  let roots : Array Name := #[]
  let env ← getEnv
  let mut closure : Array Name := #[]
  let mut pending := roots.toList
  while !pending.isEmpty do
    let m := pending.head!
    pending := pending.tail!
    if !closure.contains m then
      closure := closure.push m
      if let some idx := env.header.moduleNames.findIdx? (· == m) then
        pending := (env.header.moduleData[idx]!.imports.toList.map (·.module)) ++ pending
  let scope := closure.filter (fun m => localModules.contains m.toString)
  for n in manual do
    match env.find? n with
    | some (.thmInfo _) => pure ()
    | _ => throwError "Expected a theorem: {n}"
  for (n, ci) in env.constants.toList do
    let explicit := manual.contains n
    if explicit || scope.contains (ProofsProbe.moduleOf env n).toName then
      if let .thmInfo th := ci then
        let result ← liftTermElabM <| ProofsProbe.inspect n th.type explicit
        if let some value := result then
          liftIO <| IO.println ("proofs.rs:formal:" ++ value.compress)

run_cmd do
  let theorem_name := `FxHashContracts.fxHasher_default
  match (← getEnv).find? theorem_name with
  | some (.thmInfo _) => pure ()
  | _ => throwError "Expected a theorem: FxHashContracts.fxHasher_default"
  let axioms ← Lean.collectAxioms theorem_name
  for ax in axioms do
    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do
      throwError "Unapproved axiom in FxHashContracts.fxHasher_default: {ax}"
  liftIO <| IO.println "proofs.rs:checked:FxHashContracts.fxHasher_default"

run_cmd do
  let theorem_name := `FxHashContracts.fxHasher_finish
  match (← getEnv).find? theorem_name with
  | some (.thmInfo _) => pure ()
  | _ => throwError "Expected a theorem: FxHashContracts.fxHasher_finish"
  let axioms ← Lean.collectAxioms theorem_name
  for ax in axioms do
    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do
      throwError "Unapproved axiom in FxHashContracts.fxHasher_finish: {ax}"
  liftIO <| IO.println "proofs.rs:checked:FxHashContracts.fxHasher_finish"

run_cmd do
  let theorem_name := `FxHashWriteContracts.fxHasher_write_exact
  match (← getEnv).find? theorem_name with
  | some (.thmInfo _) => pure ()
  | _ => throwError "Expected a theorem: FxHashWriteContracts.fxHasher_write_exact"
  let axioms ← Lean.collectAxioms theorem_name
  for ax in axioms do
    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do
      throwError "Unapproved axiom in FxHashWriteContracts.fxHasher_write_exact: {ax}"
  liftIO <| IO.println "proofs.rs:checked:FxHashWriteContracts.fxHasher_write_exact"

run_cmd do
  let theorem_name := `FxHashContracts.fxHasher_write_u16
  match (← getEnv).find? theorem_name with
  | some (.thmInfo _) => pure ()
  | _ => throwError "Expected a theorem: FxHashContracts.fxHasher_write_u16"
  let axioms ← Lean.collectAxioms theorem_name
  for ax in axioms do
    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do
      throwError "Unapproved axiom in FxHashContracts.fxHasher_write_u16: {ax}"
  liftIO <| IO.println "proofs.rs:checked:FxHashContracts.fxHasher_write_u16"

run_cmd do
  let theorem_name := `FxHashContracts.fxHasher_write_u32
  match (← getEnv).find? theorem_name with
  | some (.thmInfo _) => pure ()
  | _ => throwError "Expected a theorem: FxHashContracts.fxHasher_write_u32"
  let axioms ← Lean.collectAxioms theorem_name
  for ax in axioms do
    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do
      throwError "Unapproved axiom in FxHashContracts.fxHasher_write_u32: {ax}"
  liftIO <| IO.println "proofs.rs:checked:FxHashContracts.fxHasher_write_u32"

run_cmd do
  let theorem_name := `FxHashContracts.fxHasher_write_u64
  match (← getEnv).find? theorem_name with
  | some (.thmInfo _) => pure ()
  | _ => throwError "Expected a theorem: FxHashContracts.fxHasher_write_u64"
  let axioms ← Lean.collectAxioms theorem_name
  for ax in axioms do
    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do
      throwError "Unapproved axiom in FxHashContracts.fxHasher_write_u64: {ax}"
  liftIO <| IO.println "proofs.rs:checked:FxHashContracts.fxHasher_write_u64"

run_cmd do
  let theorem_name := `FxHashContracts.fxHasher_write_u8
  match (← getEnv).find? theorem_name with
  | some (.thmInfo _) => pure ()
  | _ => throwError "Expected a theorem: FxHashContracts.fxHasher_write_u8"
  let axioms ← Lean.collectAxioms theorem_name
  for ax in axioms do
    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do
      throwError "Unapproved axiom in FxHashContracts.fxHasher_write_u8: {ax}"
  liftIO <| IO.println "proofs.rs:checked:FxHashContracts.fxHasher_write_u8"

run_cmd do
  let theorem_name := `FxHashContracts.fxHasher_write_usize
  match (← getEnv).find? theorem_name with
  | some (.thmInfo _) => pure ()
  | _ => throwError "Expected a theorem: FxHashContracts.fxHasher_write_usize"
  let axioms ← Lean.collectAxioms theorem_name
  for ax in axioms do
    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do
      throwError "Unapproved axiom in FxHashContracts.fxHasher_write_usize: {ax}"
  liftIO <| IO.println "proofs.rs:checked:FxHashContracts.fxHasher_write_usize"

run_cmd do
  let theorem_name := `FxHashContracts.fxHasher32_default
  match (← getEnv).find? theorem_name with
  | some (.thmInfo _) => pure ()
  | _ => throwError "Expected a theorem: FxHashContracts.fxHasher32_default"
  let axioms ← Lean.collectAxioms theorem_name
  for ax in axioms do
    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do
      throwError "Unapproved axiom in FxHashContracts.fxHasher32_default: {ax}"
  liftIO <| IO.println "proofs.rs:checked:FxHashContracts.fxHasher32_default"

run_cmd do
  let theorem_name := `FxHashContracts.fxHasher32_finish
  match (← getEnv).find? theorem_name with
  | some (.thmInfo _) => pure ()
  | _ => throwError "Expected a theorem: FxHashContracts.fxHasher32_finish"
  let axioms ← Lean.collectAxioms theorem_name
  for ax in axioms do
    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do
      throwError "Unapproved axiom in FxHashContracts.fxHasher32_finish: {ax}"
  liftIO <| IO.println "proofs.rs:checked:FxHashContracts.fxHasher32_finish"

run_cmd do
  let theorem_name := `FxHashWriteContracts.fxHasher32_write_exact
  match (← getEnv).find? theorem_name with
  | some (.thmInfo _) => pure ()
  | _ => throwError "Expected a theorem: FxHashWriteContracts.fxHasher32_write_exact"
  let axioms ← Lean.collectAxioms theorem_name
  for ax in axioms do
    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do
      throwError "Unapproved axiom in FxHashWriteContracts.fxHasher32_write_exact: {ax}"
  liftIO <| IO.println "proofs.rs:checked:FxHashWriteContracts.fxHasher32_write_exact"

run_cmd do
  let theorem_name := `FxHashContracts.fxHasher32_write_u16
  match (← getEnv).find? theorem_name with
  | some (.thmInfo _) => pure ()
  | _ => throwError "Expected a theorem: FxHashContracts.fxHasher32_write_u16"
  let axioms ← Lean.collectAxioms theorem_name
  for ax in axioms do
    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do
      throwError "Unapproved axiom in FxHashContracts.fxHasher32_write_u16: {ax}"
  liftIO <| IO.println "proofs.rs:checked:FxHashContracts.fxHasher32_write_u16"

run_cmd do
  let theorem_name := `FxHashContracts.fxHasher32_write_u32
  match (← getEnv).find? theorem_name with
  | some (.thmInfo _) => pure ()
  | _ => throwError "Expected a theorem: FxHashContracts.fxHasher32_write_u32"
  let axioms ← Lean.collectAxioms theorem_name
  for ax in axioms do
    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do
      throwError "Unapproved axiom in FxHashContracts.fxHasher32_write_u32: {ax}"
  liftIO <| IO.println "proofs.rs:checked:FxHashContracts.fxHasher32_write_u32"

run_cmd do
  let theorem_name := `FxHashContracts.fxHasher32_write_u64
  match (← getEnv).find? theorem_name with
  | some (.thmInfo _) => pure ()
  | _ => throwError "Expected a theorem: FxHashContracts.fxHasher32_write_u64"
  let axioms ← Lean.collectAxioms theorem_name
  for ax in axioms do
    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do
      throwError "Unapproved axiom in FxHashContracts.fxHasher32_write_u64: {ax}"
  liftIO <| IO.println "proofs.rs:checked:FxHashContracts.fxHasher32_write_u64"

run_cmd do
  let theorem_name := `FxHashContracts.fxHasher32_write_u8
  match (← getEnv).find? theorem_name with
  | some (.thmInfo _) => pure ()
  | _ => throwError "Expected a theorem: FxHashContracts.fxHasher32_write_u8"
  let axioms ← Lean.collectAxioms theorem_name
  for ax in axioms do
    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do
      throwError "Unapproved axiom in FxHashContracts.fxHasher32_write_u8: {ax}"
  liftIO <| IO.println "proofs.rs:checked:FxHashContracts.fxHasher32_write_u8"

run_cmd do
  let theorem_name := `FxHashContracts.fxHasher32_write_usize
  match (← getEnv).find? theorem_name with
  | some (.thmInfo _) => pure ()
  | _ => throwError "Expected a theorem: FxHashContracts.fxHasher32_write_usize"
  let axioms ← Lean.collectAxioms theorem_name
  for ax in axioms do
    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do
      throwError "Unapproved axiom in FxHashContracts.fxHasher32_write_usize: {ax}"
  liftIO <| IO.println "proofs.rs:checked:FxHashContracts.fxHasher32_write_usize"

run_cmd do
  let theorem_name := `FxHashContracts.fxHasher64_default
  match (← getEnv).find? theorem_name with
  | some (.thmInfo _) => pure ()
  | _ => throwError "Expected a theorem: FxHashContracts.fxHasher64_default"
  let axioms ← Lean.collectAxioms theorem_name
  for ax in axioms do
    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do
      throwError "Unapproved axiom in FxHashContracts.fxHasher64_default: {ax}"
  liftIO <| IO.println "proofs.rs:checked:FxHashContracts.fxHasher64_default"

run_cmd do
  let theorem_name := `FxHashContracts.fxHasher64_finish
  match (← getEnv).find? theorem_name with
  | some (.thmInfo _) => pure ()
  | _ => throwError "Expected a theorem: FxHashContracts.fxHasher64_finish"
  let axioms ← Lean.collectAxioms theorem_name
  for ax in axioms do
    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do
      throwError "Unapproved axiom in FxHashContracts.fxHasher64_finish: {ax}"
  liftIO <| IO.println "proofs.rs:checked:FxHashContracts.fxHasher64_finish"

run_cmd do
  let theorem_name := `FxHashWriteContracts.fxHasher64_write_exact
  match (← getEnv).find? theorem_name with
  | some (.thmInfo _) => pure ()
  | _ => throwError "Expected a theorem: FxHashWriteContracts.fxHasher64_write_exact"
  let axioms ← Lean.collectAxioms theorem_name
  for ax in axioms do
    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do
      throwError "Unapproved axiom in FxHashWriteContracts.fxHasher64_write_exact: {ax}"
  liftIO <| IO.println "proofs.rs:checked:FxHashWriteContracts.fxHasher64_write_exact"

run_cmd do
  let theorem_name := `FxHashContracts.fxHasher64_write_u16
  match (← getEnv).find? theorem_name with
  | some (.thmInfo _) => pure ()
  | _ => throwError "Expected a theorem: FxHashContracts.fxHasher64_write_u16"
  let axioms ← Lean.collectAxioms theorem_name
  for ax in axioms do
    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do
      throwError "Unapproved axiom in FxHashContracts.fxHasher64_write_u16: {ax}"
  liftIO <| IO.println "proofs.rs:checked:FxHashContracts.fxHasher64_write_u16"

run_cmd do
  let theorem_name := `FxHashContracts.fxHasher64_write_u32
  match (← getEnv).find? theorem_name with
  | some (.thmInfo _) => pure ()
  | _ => throwError "Expected a theorem: FxHashContracts.fxHasher64_write_u32"
  let axioms ← Lean.collectAxioms theorem_name
  for ax in axioms do
    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do
      throwError "Unapproved axiom in FxHashContracts.fxHasher64_write_u32: {ax}"
  liftIO <| IO.println "proofs.rs:checked:FxHashContracts.fxHasher64_write_u32"

run_cmd do
  let theorem_name := `FxHashContracts.fxHasher64_write_u64
  match (← getEnv).find? theorem_name with
  | some (.thmInfo _) => pure ()
  | _ => throwError "Expected a theorem: FxHashContracts.fxHasher64_write_u64"
  let axioms ← Lean.collectAxioms theorem_name
  for ax in axioms do
    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do
      throwError "Unapproved axiom in FxHashContracts.fxHasher64_write_u64: {ax}"
  liftIO <| IO.println "proofs.rs:checked:FxHashContracts.fxHasher64_write_u64"

run_cmd do
  let theorem_name := `FxHashContracts.fxHasher64_write_u8
  match (← getEnv).find? theorem_name with
  | some (.thmInfo _) => pure ()
  | _ => throwError "Expected a theorem: FxHashContracts.fxHasher64_write_u8"
  let axioms ← Lean.collectAxioms theorem_name
  for ax in axioms do
    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do
      throwError "Unapproved axiom in FxHashContracts.fxHasher64_write_u8: {ax}"
  liftIO <| IO.println "proofs.rs:checked:FxHashContracts.fxHasher64_write_u8"

run_cmd do
  let theorem_name := `FxHashContracts.fxHasher64_write_usize
  match (← getEnv).find? theorem_name with
  | some (.thmInfo _) => pure ()
  | _ => throwError "Expected a theorem: FxHashContracts.fxHasher64_write_usize"
  let axioms ← Lean.collectAxioms theorem_name
  for ax in axioms do
    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do
      throwError "Unapproved axiom in FxHashContracts.fxHasher64_write_usize: {ax}"
  liftIO <| IO.println "proofs.rs:checked:FxHashContracts.fxHasher64_write_usize"
' | lake env lean --stdin

Checks out the recorded source commit from GitHub. Install the report’s tool version before running.

Source on GitHub · SARIF with logs (.json)

Recorded run

Completed · 24 checks passed · 0 failed

2026-11-10T09:56:44.768672+00:00 · 42.2 seconds · Exit code 0

Recorded on the author’s machine.

CheckResultClaim
Lean checked theorem FxHashContracts.fxHasher_default; axioms limited to propext, Classical.choice, Quot.sound
FxHashContracts.fxHasher_default
PassedClaim #1
Lean checked theorem FxHashContracts.fxHasher_finish; axioms limited to propext, Classical.choice, Quot.sound
FxHashContracts.fxHasher_finish
PassedClaim #2
Lean checked theorem FxHashWriteContracts.fxHasher_write_exact; axioms limited to propext, Classical.choice, Quot.sound
FxHashWriteContracts.fxHasher_write_exact
PassedClaim #3
Lean checked theorem FxHashContracts.fxHasher_write_u16; axioms limited to propext, Classical.choice, Quot.sound
FxHashContracts.fxHasher_write_u16
PassedClaim #4
Lean checked theorem FxHashContracts.fxHasher_write_u32; axioms limited to propext, Classical.choice, Quot.sound
FxHashContracts.fxHasher_write_u32
PassedClaim #5
Lean checked theorem FxHashContracts.fxHasher_write_u64; axioms limited to propext, Classical.choice, Quot.sound
FxHashContracts.fxHasher_write_u64
PassedClaim #6
Lean checked theorem FxHashContracts.fxHasher_write_u8; axioms limited to propext, Classical.choice, Quot.sound
FxHashContracts.fxHasher_write_u8
PassedClaim #7
Lean checked theorem FxHashContracts.fxHasher_write_usize; axioms limited to propext, Classical.choice, Quot.sound
FxHashContracts.fxHasher_write_usize
PassedClaim #8
Lean checked theorem FxHashContracts.fxHasher32_default; axioms limited to propext, Classical.choice, Quot.sound
FxHashContracts.fxHasher32_default
PassedClaim #9
Lean checked theorem FxHashContracts.fxHasher32_finish; axioms limited to propext, Classical.choice, Quot.sound
FxHashContracts.fxHasher32_finish
PassedClaim #10
Lean checked theorem FxHashWriteContracts.fxHasher32_write_exact; axioms limited to propext, Classical.choice, Quot.sound
FxHashWriteContracts.fxHasher32_write_exact
PassedClaim #11
Lean checked theorem FxHashContracts.fxHasher32_write_u16; axioms limited to propext, Classical.choice, Quot.sound
FxHashContracts.fxHasher32_write_u16
PassedClaim #12
Lean checked theorem FxHashContracts.fxHasher32_write_u32; axioms limited to propext, Classical.choice, Quot.sound
FxHashContracts.fxHasher32_write_u32
PassedClaim #13
Lean checked theorem FxHashContracts.fxHasher32_write_u64; axioms limited to propext, Classical.choice, Quot.sound
FxHashContracts.fxHasher32_write_u64
PassedClaim #14
Lean checked theorem FxHashContracts.fxHasher32_write_u8; axioms limited to propext, Classical.choice, Quot.sound
FxHashContracts.fxHasher32_write_u8
PassedClaim #15
Lean checked theorem FxHashContracts.fxHasher32_write_usize; axioms limited to propext, Classical.choice, Quot.sound
FxHashContracts.fxHasher32_write_usize
PassedClaim #16
Lean checked theorem FxHashContracts.fxHasher64_default; axioms limited to propext, Classical.choice, Quot.sound
FxHashContracts.fxHasher64_default
PassedClaim #17
Lean checked theorem FxHashContracts.fxHasher64_finish; axioms limited to propext, Classical.choice, Quot.sound
FxHashContracts.fxHasher64_finish
PassedClaim #18
Lean checked theorem FxHashWriteContracts.fxHasher64_write_exact; axioms limited to propext, Classical.choice, Quot.sound
FxHashWriteContracts.fxHasher64_write_exact
PassedClaim #19
Lean checked theorem FxHashContracts.fxHasher64_write_u16; axioms limited to propext, Classical.choice, Quot.sound
FxHashContracts.fxHasher64_write_u16
PassedClaim #20
Lean checked theorem FxHashContracts.fxHasher64_write_u32; axioms limited to propext, Classical.choice, Quot.sound
FxHashContracts.fxHasher64_write_u32
PassedClaim #21
Lean checked theorem FxHashContracts.fxHasher64_write_u64; axioms limited to propext, Classical.choice, Quot.sound
FxHashContracts.fxHasher64_write_u64
PassedClaim #22
Lean checked theorem FxHashContracts.fxHasher64_write_u8; axioms limited to propext, Classical.choice, Quot.sound
FxHashContracts.fxHasher64_write_u8
PassedClaim #23
Lean checked theorem FxHashContracts.fxHasher64_write_usize; axioms limited to propext, Classical.choice, Quot.sound
FxHashContracts.fxHasher64_write_usize
PassedClaim #24
Execution details
Started
2026-11-10T09:56:44.768672+00:00
Finished
2026-11-10T09:57:27.006806+00:00
Platform
macos aarch64
Rust compiler
rustc 1.99.1 (58cf8f9c3 2026-10-13) (Homebrew) binary: rustc commit-hash: 58cf8f9c35b355199727627d07ae34a4e2846d67 commit-date: 2026-10-13 host: aarch64-apple-darwin release: 1.99.1 LLVM version: 23.1.3
Working directory
fxhash/0.2.1/.work/build/default/aarch64-apple-darwin/proofs
Environment overrides
None recorded
Git repository
https://github.com/MasWag/crate-proofs
Git commit
61fb46c2ecdd9d404b9bd5b924a8d095dd8b89ce
Diagnostics & logs
=== stdout ===
✔ [1796/1803] Built Specs (1.3s)
✔ [1797/1803] Built SpecRecurrence (457ms)
✔ [1798/1803] Built FxhashAdapted (5.1s)
✔ [1799/1803] Built Contracts (5.9s)
✔ [1800/1803] Built ByteProofs (2.2s)
✔ [1801/1803] Built ByteDecode (8.4s)
✔ [1802/1803] Built ByteFunctional (2.5s)
✔ [1803/1803] Built WriteContracts (2.1s)
Build completed successfully (1803 jobs).

$ lake env lean --stdin (proofs.rs formal extraction and axiom audit)
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"self","type":"fxhash_adapted.FxHasher64","type_segments":[{"ref":"fxhash_adapted.FxHasher64","text":"fxhash_adapted.FxHasher64"}]},{"binder":"explicit","kind":"variable","name":"i","type":"Aeneas.Std.U64","type_segments":[{"ref":"Aeneas.Std.U64","text":"Aeneas.Std.U64"}]}],"conclusion":"∃ out,\n  fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write_u64 self i = Aeneas.Std.Result.ok out ∧\n    out.hash.bv = FxHash.Spec.mix64 self.hash.bv i.bv","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write_u64","text":"fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write_u64"},{"text":" "},{"text":"self"},{"text":" "},{"text":"i"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"text":"out"},{"text":"."},{"ref":"fxhash_adapted.FxHasher64.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.U64.bv","text":"bv"},{"ref":"Eq","text":" = "},{"ref":"FxHash.Spec.mix64","text":"FxHash.Spec.mix64"},{"text":" "},{"text":"self"},{"text":"."},{"ref":"fxhash_adapted.FxHasher64.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.U64.bv","text":"bv"},{"text":" "},{"text":"i"},{"text":"."},{"ref":"Aeneas.Std.U64.bv","text":"bv"}],"definitions":[{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher64","source":{"first_line":300,"last_line":304}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U64","source":{"first_line":672,"last_line":672}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write_u64","source":{"first_line":347,"last_line":353}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"BitVec","source":{"first_line":2496,"last_line":2508}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U64.bv","source":{"first_line":1110,"last_line":1110}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher64.hash","source":{"first_line":304,"last_line":304}},{"module":"Specs","name":"FxHash.Spec.mix64","source":{"first_line":24,"last_line":24}}],"definitions_truncated":false,"first_line":75,"last_line":81,"module":"Contracts","program":null,"program_head":null,"statement":"∀ (self : fxhash_adapted.FxHasher64) (i : Aeneas.Std.U64),\n  @Exists.{1} fxhash_adapted.FxHasher64 fun (out : fxhash_adapted.FxHasher64) =>\n    And\n      (@Eq.{1} (Aeneas.Std.Result.{0} fxhash_adapted.FxHasher64)\n        (fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write_u64 self i)\n        (@Aeneas.Std.Result.ok.{0} fxhash_adapted.FxHasher64 out))\n      (@Eq.{1} (BitVec (@OfNat.ofNat.{0} Nat (nat_lit 64) (instOfNatNat (nat_lit 64))))\n        (Aeneas.Std.U64.bv (fxhash_adapted.FxHasher64.hash out))\n        (FxHash.Spec.mix64 (Aeneas.Std.U64.bv (fxhash_adapted.FxHasher64.hash self)) (Aeneas.Std.U64.bv i)))","theorem":"FxHashContracts.fxHasher64_write_u64","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"self","type":"fxhash_adapted.FxHasher32","type_segments":[{"ref":"fxhash_adapted.FxHasher32","text":"fxhash_adapted.FxHasher32"}]},{"binder":"explicit","kind":"variable","name":"i","type":"Aeneas.Std.U16","type_segments":[{"ref":"Aeneas.Std.U16","text":"Aeneas.Std.U16"}]}],"conclusion":"∃ out,\n  fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write_u16 self i = Aeneas.Std.Result.ok out ∧\n    out.hash.bv = FxHash.Spec.mix32 self.hash.bv (BitVec.setWidth 32 i.bv)","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write_u16","text":"fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write_u16"},{"text":" "},{"text":"self"},{"text":" "},{"text":"i"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"text":"out"},{"text":"."},{"ref":"fxhash_adapted.FxHasher32.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.U32.bv","text":"bv"},{"ref":"Eq","text":" = "},{"ref":"FxHash.Spec.mix32","text":"FxHash.Spec.mix32"},{"text":" "},{"text":"self"},{"text":"."},{"ref":"fxhash_adapted.FxHasher32.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.U32.bv","text":"bv"},{"text":" "},{"text":"("},{"ref":"BitVec.setWidth","text":"BitVec.setWidth"},{"text":" "},{"text":"32"},{"text":" "},{"text":"i"},{"text":"."},{"ref":"Aeneas.Std.U16.bv","text":"bv"},{"text":")"}],"definitions":[{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher32","source":{"first_line":371,"last_line":375}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U16","source":{"first_line":670,"last_line":670}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write_u16","source":{"first_line":400,"last_line":407}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"BitVec","source":{"first_line":2496,"last_line":2508}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32.bv","source":{"first_line":1109,"last_line":1109}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher32.hash","source":{"first_line":375,"last_line":375}},{"module":"Specs","name":"FxHash.Spec.mix32","source":{"first_line":23,"last_line":23}},{"module":"Init.Data.BitVec.Basic","name":"BitVec.setWidth","source":{"first_line":479,"last_line":498}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U16.bv","source":{"first_line":1108,"last_line":1108}}],"definitions_truncated":false,"first_line":93,"last_line":101,"module":"Contracts","program":null,"program_head":null,"statement":"∀ (self : fxhash_adapted.FxHasher32) (i : Aeneas.Std.U16),\n  @Exists.{1} fxhash_adapted.FxHasher32 fun (out : fxhash_adapted.FxHasher32) =>\n    And\n      (@Eq.{1} (Aeneas.Std.Result.{0} fxhash_adapted.FxHasher32)\n        (fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write_u16 self i)\n        (@Aeneas.Std.Result.ok.{0} fxhash_adapted.FxHasher32 out))\n      (@Eq.{1} (BitVec (@OfNat.ofNat.{0} Nat (nat_lit 32) (instOfNatNat (nat_lit 32))))\n        (Aeneas.Std.U32.bv (fxhash_adapted.FxHasher32.hash out))\n        (FxHash.Spec.mix32 (Aeneas.Std.U32.bv (fxhash_adapted.FxHasher32.hash self))\n          (@BitVec.setWidth (@OfNat.ofNat.{0} Nat (nat_lit 16) (instOfNatNat (nat_lit 16)))\n            (@OfNat.ofNat.{0} Nat (nat_lit 32) (instOfNatNat (nat_lit 32))) (Aeneas.Std.U16.bv i))))","theorem":"FxHashContracts.fxHasher32_write_u16","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"self","type":"fxhash_adapted.FxHasher64","type_segments":[{"ref":"fxhash_adapted.FxHasher64","text":"fxhash_adapted.FxHasher64"}]},{"binder":"explicit","kind":"variable","name":"i","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]}],"conclusion":"∃ out,\n  fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write_usize self i = Aeneas.Std.Result.ok out ∧\n    out.hash.bv = FxHash.Spec.mix64 self.hash.bv (BitVec.setWidth 64 i.bv)","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write_usize","text":"fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write_usize"},{"text":" "},{"text":"self"},{"text":" "},{"text":"i"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"text":"out"},{"text":"."},{"ref":"fxhash_adapted.FxHasher64.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.U64.bv","text":"bv"},{"ref":"Eq","text":" = "},{"ref":"FxHash.Spec.mix64","text":"FxHash.Spec.mix64"},{"text":" "},{"text":"self"},{"text":"."},{"ref":"fxhash_adapted.FxHasher64.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.U64.bv","text":"bv"},{"text":" "},{"text":"("},{"ref":"BitVec.setWidth","text":"BitVec.setWidth"},{"text":" "},{"text":"64"},{"text":" "},{"text":"i"},{"text":"."},{"ref":"Aeneas.Std.Usize.bv","text":"bv"},{"text":")"}],"definitions":[{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher64","source":{"first_line":300,"last_line":304}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write_usize","source":{"first_line":355,"last_line":362}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"BitVec","source":{"first_line":2496,"last_line":2508}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U64.bv","source":{"first_line":1110,"last_line":1110}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher64.hash","source":{"first_line":304,"last_line":304}},{"module":"Specs","name":"FxHash.Spec.mix64","source":{"first_line":24,"last_line":24}},{"module":"Init.Data.BitVec.Basic","name":"BitVec.setWidth","source":{"first_line":479,"last_line":498}},{"module":"Init.Prelude","name":"System.Platform.numBits","source":{"first_line":2429,"last_line":2433}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize.bv","source":{"first_line":1112,"last_line":1112}}],"definitions_truncated":false,"first_line":133,"last_line":141,"module":"Contracts","program":null,"program_head":null,"statement":"∀ (self : fxhash_adapted.FxHasher64) (i : Aeneas.Std.Usize),\n  @Exists.{1} fxhash_adapted.FxHasher64 fun (out : fxhash_adapted.FxHasher64) =>\n    And\n      (@Eq.{1} (Aeneas.Std.Result.{0} fxhash_adapted.FxHasher64)\n        (fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write_usize self i)\n        (@Aeneas.Std.Result.ok.{0} fxhash_adapted.FxHasher64 out))\n      (@Eq.{1} (BitVec (@OfNat.ofNat.{0} Nat (nat_lit 64) (instOfNatNat (nat_lit 64))))\n        (Aeneas.Std.U64.bv (fxhash_adapted.FxHasher64.hash out))\n        (FxHash.Spec.mix64 (Aeneas.Std.U64.bv (fxhash_adapted.FxHasher64.hash self))\n          (@BitVec.setWidth System.Platform.numBits (@OfNat.ofNat.{0} Nat (nat_lit 64) (instOfNatNat (nat_lit 64)))\n            (Aeneas.Std.Usize.bv i))))","theorem":"FxHashContracts.fxHasher64_write_usize","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"self","type":"fxhash_adapted.FxHasher32","type_segments":[{"ref":"fxhash_adapted.FxHasher32","text":"fxhash_adapted.FxHasher32"}]},{"binder":"explicit","kind":"variable","name":"i","type":"Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]}],"conclusion":"∃ out,\n  fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write_u8 self i = Aeneas.Std.Result.ok out ∧\n    out.hash.bv = FxHash.Spec.mix32 self.hash.bv (BitVec.setWidth 32 i.bv)","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write_u8","text":"fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write_u8"},{"text":" "},{"text":"self"},{"text":" "},{"text":"i"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"text":"out"},{"text":"."},{"ref":"fxhash_adapted.FxHasher32.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.U32.bv","text":"bv"},{"ref":"Eq","text":" = "},{"ref":"FxHash.Spec.mix32","text":"FxHash.Spec.mix32"},{"text":" "},{"text":"self"},{"text":"."},{"ref":"fxhash_adapted.FxHasher32.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.U32.bv","text":"bv"},{"text":" "},{"text":"("},{"ref":"BitVec.setWidth","text":"BitVec.setWidth"},{"text":" "},{"text":"32"},{"text":" "},{"text":"i"},{"text":"."},{"ref":"Aeneas.Std.U8.bv","text":"bv"},{"text":")"}],"definitions":[{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher32","source":{"first_line":371,"last_line":375}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write_u8","source":{"first_line":391,"last_line":398}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"BitVec","source":{"first_line":2496,"last_line":2508}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32.bv","source":{"first_line":1109,"last_line":1109}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher32.hash","source":{"first_line":375,"last_line":375}},{"module":"Specs","name":"FxHash.Spec.mix32","source":{"first_line":23,"last_line":23}},{"module":"Init.Data.BitVec.Basic","name":"BitVec.setWidth","source":{"first_line":479,"last_line":498}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8.bv","source":{"first_line":1107,"last_line":1107}}],"definitions_truncated":false,"first_line":83,"last_line":91,"module":"Contracts","program":null,"program_head":null,"statement":"∀ (self : fxhash_adapted.FxHasher32) (i : Aeneas.Std.U8),\n  @Exists.{1} fxhash_adapted.FxHasher32 fun (out : fxhash_adapted.FxHasher32) =>\n    And\n      (@Eq.{1} (Aeneas.Std.Result.{0} fxhash_adapted.FxHasher32)\n        (fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write_u8 self i)\n        (@Aeneas.Std.Result.ok.{0} fxhash_adapted.FxHasher32 out))\n      (@Eq.{1} (BitVec (@OfNat.ofNat.{0} Nat (nat_lit 32) (instOfNatNat (nat_lit 32))))\n        (Aeneas.Std.U32.bv (fxhash_adapted.FxHasher32.hash out))\n        (FxHash.Spec.mix32 (Aeneas.Std.U32.bv (fxhash_adapted.FxHasher32.hash self))\n          (@BitVec.setWidth (@OfNat.ofNat.{0} Nat (nat_lit 8) (instOfNatNat (nat_lit 8)))\n            (@OfNat.ofNat.{0} Nat (nat_lit 32) (instOfNatNat (nat_lit 32))) (Aeneas.Std.U8.bv i))))","theorem":"FxHashContracts.fxHasher32_write_u8","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"self","type":"fxhash_adapted.FxHasher64","type_segments":[{"ref":"fxhash_adapted.FxHasher64","text":"fxhash_adapted.FxHasher64"}]}],"conclusion":"fxhash_adapted.FxHasher64.Insts.CoreHashHasher.finish self = Aeneas.Std.Result.ok self.hash","conclusion_segments":[{"ref":"fxhash_adapted.FxHasher64.Insts.CoreHashHasher.finish","text":"fxhash_adapted.FxHasher64.Insts.CoreHashHasher.finish"},{"text":" "},{"text":"self"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"self"},{"text":"."},{"ref":"fxhash_adapted.FxHasher64.hash","text":"hash"}],"definitions":[{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher64","source":{"first_line":300,"last_line":304}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U64","source":{"first_line":672,"last_line":672}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher64.Insts.CoreHashHasher.finish","source":{"first_line":364,"last_line":369}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher64.hash","source":{"first_line":304,"last_line":304}}],"definitions_truncated":false,"first_line":59,"last_line":61,"module":"Contracts","program":null,"program_head":null,"statement":"∀ (self : fxhash_adapted.FxHasher64),\n  @Eq.{1} (Aeneas.Std.Result.{0} Aeneas.Std.U64) (fxhash_adapted.FxHasher64.Insts.CoreHashHasher.finish self)\n    (@Aeneas.Std.Result.ok.{0} Aeneas.Std.U64 (fxhash_adapted.FxHasher64.hash self))","theorem":"FxHashContracts.fxHasher64_finish","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"self","type":"fxhash_adapted.FxHasher32","type_segments":[{"ref":"fxhash_adapted.FxHasher32","text":"fxhash_adapted.FxHasher32"}]},{"binder":"explicit","kind":"variable","name":"i","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]}],"conclusion":"∃ out,\n  fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write_u32 self i = Aeneas.Std.Result.ok out ∧\n    out.hash.bv = FxHash.Spec.mix32 self.hash.bv i.bv","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write_u32","text":"fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write_u32"},{"text":" "},{"text":"self"},{"text":" "},{"text":"i"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"text":"out"},{"text":"."},{"ref":"fxhash_adapted.FxHasher32.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.U32.bv","text":"bv"},{"ref":"Eq","text":" = "},{"ref":"FxHash.Spec.mix32","text":"FxHash.Spec.mix32"},{"text":" "},{"text":"self"},{"text":"."},{"ref":"fxhash_adapted.FxHasher32.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.U32.bv","text":"bv"},{"text":" "},{"text":"i"},{"text":"."},{"ref":"Aeneas.Std.U32.bv","text":"bv"}],"definitions":[{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher32","source":{"first_line":371,"last_line":375}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write_u32","source":{"first_line":409,"last_line":415}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"BitVec","source":{"first_line":2496,"last_line":2508}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32.bv","source":{"first_line":1109,"last_line":1109}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher32.hash","source":{"first_line":375,"last_line":375}},{"module":"Specs","name":"FxHash.Spec.mix32","source":{"first_line":23,"last_line":23}}],"definitions_truncated":false,"first_line":67,"last_line":73,"module":"Contracts","program":null,"program_head":null,"statement":"∀ (self : fxhash_adapted.FxHasher32) (i : Aeneas.Std.U32),\n  @Exists.{1} fxhash_adapted.FxHasher32 fun (out : fxhash_adapted.FxHasher32) =>\n    And\n      (@Eq.{1} (Aeneas.Std.Result.{0} fxhash_adapted.FxHasher32)\n        (fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write_u32 self i)\n        (@Aeneas.Std.Result.ok.{0} fxhash_adapted.FxHasher32 out))\n      (@Eq.{1} (BitVec (@OfNat.ofNat.{0} Nat (nat_lit 32) (instOfNatNat (nat_lit 32))))\n        (Aeneas.Std.U32.bv (fxhash_adapted.FxHasher32.hash out))\n        (FxHash.Spec.mix32 (Aeneas.Std.U32.bv (fxhash_adapted.FxHasher32.hash self)) (Aeneas.Std.U32.bv i)))","theorem":"FxHashContracts.fxHasher32_write_u32","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"self","type":"fxhash_adapted.FxHasher","type_segments":[{"ref":"fxhash_adapted.FxHasher","text":"fxhash_adapted.FxHasher"}]},{"binder":"explicit","kind":"variable","name":"bytes","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]}],"conclusion":"∃ out,\n  fxhash_adapted.FxHasher.Insts.CoreHashHasher.write self bytes = Aeneas.Std.Result.ok out ∧\n    out.hash.bv =\n      BitVec.setWidth System.Platform.numBits\n        (FxHash.Spec.write64 FxHash.Spec.Endian.little (BitVec.setWidth 64 self.hash.bv)\n          (List.map Aeneas.Std.UScalar.val ↑bytes))","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"fxhash_adapted.FxHasher.Insts.CoreHashHasher.write","text":"fxhash_adapted.FxHasher.Insts.CoreHashHasher.write"},{"text":" "},{"text":"self"},{"text":" "},{"text":"bytes"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"text":"out"},{"text":"."},{"ref":"fxhash_adapted.FxHasher.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.Usize.bv","text":"bv"},{"ref":"Eq","text":" =\n      "},{"ref":"BitVec.setWidth","text":"BitVec.setWidth"},{"text":" "},{"ref":"System.Platform.numBits","text":"System.Platform.numBits"},{"text":"\n        "},{"text":"("},{"ref":"FxHash.Spec.write64","text":"FxHash.Spec.write64"},{"text":" "},{"ref":"FxHash.Spec.Endian.little","text":"FxHash.Spec.Endian.little"},{"text":" "},{"text":"("},{"ref":"BitVec.setWidth","text":"BitVec.setWidth"},{"text":" "},{"text":"64"},{"text":" "},{"text":"self"},{"text":"."},{"ref":"fxhash_adapted.FxHasher.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.Usize.bv","text":"bv"},{"text":")"},{"text":"\n          "},{"text":"("},{"ref":"List.map","text":"List.map"},{"text":" "},{"ref":"Aeneas.Std.UScalar.val","text":"Aeneas.Std.UScalar.val"},{"text":" "},{"text":"↑"},{"text":"bytes"},{"text":")"},{"text":")"}],"definitions":[{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher","source":{"first_line":229,"last_line":233}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher.Insts.CoreHashHasher.write","source":{"first_line":241,"last_line":247}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"BitVec","source":{"first_line":2496,"last_line":2508}},{"module":"Init.Prelude","name":"System.Platform.numBits","source":{"first_line":2429,"last_line":2433}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize.bv","source":{"first_line":1112,"last_line":1112}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher.hash","source":{"first_line":233,"last_line":233}},{"module":"Init.Data.BitVec.Basic","name":"BitVec.setWidth","source":{"first_line":479,"last_line":498}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Specs","name":"FxHash.Spec.write64","source":{"first_line":57,"last_line":58}},{"module":"Specs","name":"FxHash.Spec.Endian.little","source":{"first_line":11,"last_line":11}},{"module":"Init.Prelude","name":"List.map","source":{"first_line":3301,"last_line":3314}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar","source":{"first_line":70,"last_line":74}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U8","source":{"first_line":33,"last_line":33}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice.val","source":{"first_line":21,"last_line":22}}],"definitions_truncated":false,"first_line":49,"last_line":64,"module":"WriteContracts","program":null,"program_head":null,"statement":"∀ (self : fxhash_adapted.FxHasher) (bytes : Aeneas.Std.Slice.{0} Aeneas.Std.U8),\n  @Exists.{1} fxhash_adapted.FxHasher fun (out : fxhash_adapted.FxHasher) =>\n    And\n      (@Eq.{1} (Aeneas.Std.Result.{0} fxhash_adapted.FxHasher)\n        (fxhash_adapted.FxHasher.Insts.CoreHashHasher.write self bytes)\n        (@Aeneas.Std.Result.ok.{0} fxhash_adapted.FxHasher out))\n      (@Eq.{1} (BitVec System.Platform.numBits) (Aeneas.Std.Usize.bv (fxhash_adapted.FxHasher.hash out))\n        (@BitVec.setWidth (@OfNat.ofNat.{0} Nat (nat_lit 64) (instOfNatNat (nat_lit 64))) System.Platform.numBits\n          (FxHash.Spec.write64 FxHash.Spec.Endian.little\n            (@BitVec.setWidth System.Platform.numBits (@OfNat.ofNat.{0} Nat (nat_lit 64) (instOfNatNat (nat_lit 64)))\n              (Aeneas.Std.Usize.bv (fxhash_adapted.FxHasher.hash self)))\n            (@List.map.{0, 0} (Aeneas.Std.UScalar Aeneas.Std.UScalarTy.U8) Nat\n              (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U8) (@Aeneas.Std.Slice.val.{0} Aeneas.Std.U8 bytes)))))","theorem":"FxHashWriteContracts.fxHasher_write_exact","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"self","type":"fxhash_adapted.FxHasher32","type_segments":[{"ref":"fxhash_adapted.FxHasher32","text":"fxhash_adapted.FxHasher32"}]},{"binder":"explicit","kind":"variable","name":"i","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]}],"conclusion":"∃ out,\n  fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write_usize self i = Aeneas.Std.Result.ok out ∧\n    out.hash.bv = FxHash.Spec.writeU64To32 self.hash.bv (BitVec.setWidth 64 i.bv)","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write_usize","text":"fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write_usize"},{"text":" "},{"text":"self"},{"text":" "},{"text":"i"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"text":"out"},{"text":"."},{"ref":"fxhash_adapted.FxHasher32.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.U32.bv","text":"bv"},{"ref":"Eq","text":" = "},{"ref":"FxHash.Spec.writeU64To32","text":"FxHash.Spec.writeU64To32"},{"text":" "},{"text":"self"},{"text":"."},{"ref":"fxhash_adapted.FxHasher32.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.U32.bv","text":"bv"},{"text":" "},{"text":"("},{"ref":"BitVec.setWidth","text":"BitVec.setWidth"},{"text":" "},{"text":"64"},{"text":" "},{"text":"i"},{"text":"."},{"ref":"Aeneas.Std.Usize.bv","text":"bv"},{"text":")"}],"definitions":[{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher32","source":{"first_line":371,"last_line":375}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write_usize","source":{"first_line":429,"last_line":435}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"BitVec","source":{"first_line":2496,"last_line":2508}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32.bv","source":{"first_line":1109,"last_line":1109}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher32.hash","source":{"first_line":375,"last_line":375}},{"module":"Specs","name":"FxHash.Spec.writeU64To32","source":{"first_line":60,"last_line":63}},{"module":"Init.Data.BitVec.Basic","name":"BitVec.setWidth","source":{"first_line":479,"last_line":498}},{"module":"Init.Prelude","name":"System.Platform.numBits","source":{"first_line":2429,"last_line":2433}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize.bv","source":{"first_line":1112,"last_line":1112}}],"definitions_truncated":false,"first_line":161,"last_line":168,"module":"Contracts","program":null,"program_head":null,"statement":"∀ (self : fxhash_adapted.FxHasher32) (i : Aeneas.Std.Usize),\n  @Exists.{1} fxhash_adapted.FxHasher32 fun (out : fxhash_adapted.FxHasher32) =>\n    And\n      (@Eq.{1} (Aeneas.Std.Result.{0} fxhash_adapted.FxHasher32)\n        (fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write_usize self i)\n        (@Aeneas.Std.Result.ok.{0} fxhash_adapted.FxHasher32 out))\n      (@Eq.{1} (BitVec (@OfNat.ofNat.{0} Nat (nat_lit 32) (instOfNatNat (nat_lit 32))))\n        (Aeneas.Std.U32.bv (fxhash_adapted.FxHasher32.hash out))\n        (FxHash.Spec.writeU64To32 (Aeneas.Std.U32.bv (fxhash_adapted.FxHasher32.hash self))\n          (@BitVec.setWidth System.Platform.numBits (@OfNat.ofNat.{0} Nat (nat_lit 64) (instOfNatNat (nat_lit 64)))\n            (Aeneas.Std.Usize.bv i))))","theorem":"FxHashContracts.fxHasher32_write_usize","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"self","type":"fxhash_adapted.FxHasher32","type_segments":[{"ref":"fxhash_adapted.FxHasher32","text":"fxhash_adapted.FxHasher32"}]},{"binder":"explicit","kind":"variable","name":"bytes","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]}],"conclusion":"∃ out,\n  fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write self bytes = Aeneas.Std.Result.ok out ∧\n    out.hash.bv = FxHash.Spec.write32 FxHash.Spec.Endian.little self.hash.bv (List.map Aeneas.Std.UScalar.val ↑bytes)","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write","text":"fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write"},{"text":" "},{"text":"self"},{"text":" "},{"text":"bytes"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"text":"out"},{"text":"."},{"ref":"fxhash_adapted.FxHasher32.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.U32.bv","text":"bv"},{"ref":"Eq","text":" = "},{"ref":"FxHash.Spec.write32","text":"FxHash.Spec.write32"},{"text":" "},{"ref":"FxHash.Spec.Endian.little","text":"FxHash.Spec.Endian.little"},{"text":" "},{"text":"self"},{"text":"."},{"ref":"fxhash_adapted.FxHasher32.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.U32.bv","text":"bv"},{"text":" "},{"text":"("},{"ref":"List.map","text":"List.map"},{"text":" "},{"ref":"Aeneas.Std.UScalar.val","text":"Aeneas.Std.UScalar.val"},{"text":" "},{"text":"↑"},{"text":"bytes"},{"text":")"}],"definitions":[{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher32","source":{"first_line":371,"last_line":375}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write","source":{"first_line":383,"last_line":389}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"BitVec","source":{"first_line":2496,"last_line":2508}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32.bv","source":{"first_line":1109,"last_line":1109}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher32.hash","source":{"first_line":375,"last_line":375}},{"module":"Specs","name":"FxHash.Spec.write32","source":{"first_line":54,"last_line":55}},{"module":"Specs","name":"FxHash.Spec.Endian.little","source":{"first_line":11,"last_line":11}},{"module":"Init.Prelude","name":"List.map","source":{"first_line":3301,"last_line":3314}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar","source":{"first_line":70,"last_line":74}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U8","source":{"first_line":33,"last_line":33}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice.val","source":{"first_line":21,"last_line":22}}],"definitions_truncated":false,"first_line":29,"last_line":37,"module":"WriteContracts","program":null,"program_head":null,"statement":"∀ (self : fxhash_adapted.FxHasher32) (bytes : Aeneas.Std.Slice.{0} Aeneas.Std.U8),\n  @Exists.{1} fxhash_adapted.FxHasher32 fun (out : fxhash_adapted.FxHasher32) =>\n    And\n      (@Eq.{1} (Aeneas.Std.Result.{0} fxhash_adapted.FxHasher32)\n        (fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write self bytes)\n        (@Aeneas.Std.Result.ok.{0} fxhash_adapted.FxHasher32 out))\n      (@Eq.{1} (BitVec (@OfNat.ofNat.{0} Nat (nat_lit 32) (instOfNatNat (nat_lit 32))))\n        (Aeneas.Std.U32.bv (fxhash_adapted.FxHasher32.hash out))\n        (FxHash.Spec.write32 FxHash.Spec.Endian.little (Aeneas.Std.U32.bv (fxhash_adapted.FxHasher32.hash self))\n          (@List.map.{0, 0} (Aeneas.Std.UScalar Aeneas.Std.UScalarTy.U8) Nat\n            (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U8) (@Aeneas.Std.Slice.val.{0} Aeneas.Std.U8 bytes))))","theorem":"FxHashWriteContracts.fxHasher32_write_exact","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"self","type":"fxhash_adapted.FxHasher64","type_segments":[{"ref":"fxhash_adapted.FxHasher64","text":"fxhash_adapted.FxHasher64"}]},{"binder":"explicit","kind":"variable","name":"i","type":"Aeneas.Std.U16","type_segments":[{"ref":"Aeneas.Std.U16","text":"Aeneas.Std.U16"}]}],"conclusion":"∃ out,\n  fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write_u16 self i = Aeneas.Std.Result.ok out ∧\n    out.hash.bv = FxHash.Spec.mix64 self.hash.bv (BitVec.setWidth 64 i.bv)","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write_u16","text":"fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write_u16"},{"text":" "},{"text":"self"},{"text":" "},{"text":"i"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"text":"out"},{"text":"."},{"ref":"fxhash_adapted.FxHasher64.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.U64.bv","text":"bv"},{"ref":"Eq","text":" = "},{"ref":"FxHash.Spec.mix64","text":"FxHash.Spec.mix64"},{"text":" "},{"text":"self"},{"text":"."},{"ref":"fxhash_adapted.FxHasher64.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.U64.bv","text":"bv"},{"text":" "},{"text":"("},{"ref":"BitVec.setWidth","text":"BitVec.setWidth"},{"text":" "},{"text":"64"},{"text":" "},{"text":"i"},{"text":"."},{"ref":"Aeneas.Std.U16.bv","text":"bv"},{"text":")"}],"definitions":[{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher64","source":{"first_line":300,"last_line":304}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U16","source":{"first_line":670,"last_line":670}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write_u16","source":{"first_line":329,"last_line":336}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"BitVec","source":{"first_line":2496,"last_line":2508}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U64.bv","source":{"first_line":1110,"last_line":1110}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher64.hash","source":{"first_line":304,"last_line":304}},{"module":"Specs","name":"FxHash.Spec.mix64","source":{"first_line":24,"last_line":24}},{"module":"Init.Data.BitVec.Basic","name":"BitVec.setWidth","source":{"first_line":479,"last_line":498}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U16.bv","source":{"first_line":1108,"last_line":1108}}],"definitions_truncated":false,"first_line":113,"last_line":121,"module":"Contracts","program":null,"program_head":null,"statement":"∀ (self : fxhash_adapted.FxHasher64) (i : Aeneas.Std.U16),\n  @Exists.{1} fxhash_adapted.FxHasher64 fun (out : fxhash_adapted.FxHasher64) =>\n    And\n      (@Eq.{1} (Aeneas.Std.Result.{0} fxhash_adapted.FxHasher64)\n        (fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write_u16 self i)\n        (@Aeneas.Std.Result.ok.{0} fxhash_adapted.FxHasher64 out))\n      (@Eq.{1} (BitVec (@OfNat.ofNat.{0} Nat (nat_lit 64) (instOfNatNat (nat_lit 64))))\n        (Aeneas.Std.U64.bv (fxhash_adapted.FxHasher64.hash out))\n        (FxHash.Spec.mix64 (Aeneas.Std.U64.bv (fxhash_adapted.FxHasher64.hash self))\n          (@BitVec.setWidth (@OfNat.ofNat.{0} Nat (nat_lit 16) (instOfNatNat (nat_lit 16)))\n            (@OfNat.ofNat.{0} Nat (nat_lit 64) (instOfNatNat (nat_lit 64))) (Aeneas.Std.U16.bv i))))","theorem":"FxHashContracts.fxHasher64_write_u16","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"self","type":"fxhash_adapted.FxHasher64","type_segments":[{"ref":"fxhash_adapted.FxHasher64","text":"fxhash_adapted.FxHasher64"}]},{"binder":"explicit","kind":"variable","name":"i","type":"Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]}],"conclusion":"∃ out,\n  fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write_u8 self i = Aeneas.Std.Result.ok out ∧\n    out.hash.bv = FxHash.Spec.mix64 self.hash.bv (BitVec.setWidth 64 i.bv)","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write_u8","text":"fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write_u8"},{"text":" "},{"text":"self"},{"text":" "},{"text":"i"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"text":"out"},{"text":"."},{"ref":"fxhash_adapted.FxHasher64.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.U64.bv","text":"bv"},{"ref":"Eq","text":" = "},{"ref":"FxHash.Spec.mix64","text":"FxHash.Spec.mix64"},{"text":" "},{"text":"self"},{"text":"."},{"ref":"fxhash_adapted.FxHasher64.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.U64.bv","text":"bv"},{"text":" "},{"text":"("},{"ref":"BitVec.setWidth","text":"BitVec.setWidth"},{"text":" "},{"text":"64"},{"text":" "},{"text":"i"},{"text":"."},{"ref":"Aeneas.Std.U8.bv","text":"bv"},{"text":")"}],"definitions":[{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher64","source":{"first_line":300,"last_line":304}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write_u8","source":{"first_line":320,"last_line":327}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"BitVec","source":{"first_line":2496,"last_line":2508}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U64.bv","source":{"first_line":1110,"last_line":1110}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher64.hash","source":{"first_line":304,"last_line":304}},{"module":"Specs","name":"FxHash.Spec.mix64","source":{"first_line":24,"last_line":24}},{"module":"Init.Data.BitVec.Basic","name":"BitVec.setWidth","source":{"first_line":479,"last_line":498}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8.bv","source":{"first_line":1107,"last_line":1107}}],"definitions_truncated":false,"first_line":103,"last_line":111,"module":"Contracts","program":null,"program_head":null,"statement":"∀ (self : fxhash_adapted.FxHasher64) (i : Aeneas.Std.U8),\n  @Exists.{1} fxhash_adapted.FxHasher64 fun (out : fxhash_adapted.FxHasher64) =>\n    And\n      (@Eq.{1} (Aeneas.Std.Result.{0} fxhash_adapted.FxHasher64)\n        (fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write_u8 self i)\n        (@Aeneas.Std.Result.ok.{0} fxhash_adapted.FxHasher64 out))\n      (@Eq.{1} (BitVec (@OfNat.ofNat.{0} Nat (nat_lit 64) (instOfNatNat (nat_lit 64))))\n        (Aeneas.Std.U64.bv (fxhash_adapted.FxHasher64.hash out))\n        (FxHash.Spec.mix64 (Aeneas.Std.U64.bv (fxhash_adapted.FxHasher64.hash self))\n          (@BitVec.setWidth (@OfNat.ofNat.{0} Nat (nat_lit 8) (instOfNatNat (nat_lit 8)))\n            (@OfNat.ofNat.{0} Nat (nat_lit 64) (instOfNatNat (nat_lit 64))) (Aeneas.Std.U8.bv i))))","theorem":"FxHashContracts.fxHasher64_write_u8","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"self","type":"fxhash_adapted.FxHasher32","type_segments":[{"ref":"fxhash_adapted.FxHasher32","text":"fxhash_adapted.FxHasher32"}]},{"binder":"explicit","kind":"variable","name":"i","type":"Aeneas.Std.U64","type_segments":[{"ref":"Aeneas.Std.U64","text":"Aeneas.Std.U64"}]}],"conclusion":"∃ out,\n  fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write_u64 self i = Aeneas.Std.Result.ok out ∧\n    out.hash.bv = FxHash.Spec.writeU64To32 self.hash.bv i.bv","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write_u64","text":"fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write_u64"},{"text":" "},{"text":"self"},{"text":" "},{"text":"i"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"text":"out"},{"text":"."},{"ref":"fxhash_adapted.FxHasher32.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.U32.bv","text":"bv"},{"ref":"Eq","text":" = "},{"ref":"FxHash.Spec.writeU64To32","text":"FxHash.Spec.writeU64To32"},{"text":" "},{"text":"self"},{"text":"."},{"ref":"fxhash_adapted.FxHasher32.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.U32.bv","text":"bv"},{"text":" "},{"text":"i"},{"text":"."},{"ref":"Aeneas.Std.U64.bv","text":"bv"}],"definitions":[{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher32","source":{"first_line":371,"last_line":375}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U64","source":{"first_line":672,"last_line":672}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write_u64","source":{"first_line":417,"last_line":427}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"BitVec","source":{"first_line":2496,"last_line":2508}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32.bv","source":{"first_line":1109,"last_line":1109}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher32.hash","source":{"first_line":375,"last_line":375}},{"module":"Specs","name":"FxHash.Spec.writeU64To32","source":{"first_line":60,"last_line":63}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U64.bv","source":{"first_line":1110,"last_line":1110}}],"definitions_truncated":false,"first_line":148,"last_line":159,"module":"Contracts","program":null,"program_head":null,"statement":"∀ (self : fxhash_adapted.FxHasher32) (i : Aeneas.Std.U64),\n  @Exists.{1} fxhash_adapted.FxHasher32 fun (out : fxhash_adapted.FxHasher32) =>\n    And\n      (@Eq.{1} (Aeneas.Std.Result.{0} fxhash_adapted.FxHasher32)\n        (fxhash_adapted.FxHasher32.Insts.CoreHashHasher.write_u64 self i)\n        (@Aeneas.Std.Result.ok.{0} fxhash_adapted.FxHasher32 out))\n      (@Eq.{1} (BitVec (@OfNat.ofNat.{0} Nat (nat_lit 32) (instOfNatNat (nat_lit 32))))\n        (Aeneas.Std.U32.bv (fxhash_adapted.FxHasher32.hash out))\n        (FxHash.Spec.writeU64To32 (Aeneas.Std.U32.bv (fxhash_adapted.FxHasher32.hash self)) (Aeneas.Std.U64.bv i)))","theorem":"FxHashContracts.fxHasher32_write_u64","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[],"conclusion":"fxhash_adapted.FxHasher64.Insts.CoreDefaultDefault.default = Aeneas.Std.Result.ok { hash := 0#u64 }","conclusion_segments":[{"ref":"fxhash_adapted.FxHasher64.Insts.CoreDefaultDefault.default","text":"fxhash_adapted.FxHasher64.Insts.CoreDefaultDefault.default"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"ref":"fxhash_adapted.FxHasher64.mk","text":"{ "},{"text":"hash"},{"ref":"fxhash_adapted.FxHasher64.mk","text":" := "},{"text":"0"},{"ref":"Aeneas.Std.U64.ofNat","text":"#u64"},{"ref":"fxhash_adapted.FxHasher64.mk","text":" }"}],"definitions":[{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher64","source":{"first_line":300,"last_line":304}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher64.Insts.CoreDefaultDefault.default","source":{"first_line":306,"last_line":310}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher64.mk","source":{"first_line":303,"last_line":303}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U64.ofNat","source":{"first_line":707,"last_line":707}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Init.Prelude","name":"of_decide_eq_true","source":{"first_line":1224,"last_line":1227}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.cMax","source":{"first_line":378,"last_line":381}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U64","source":{"first_line":36,"last_line":36}},{"module":"Init.Prelude","name":"Nat.decLe","source":{"first_line":2196,"last_line":2212}},{"module":"Init.Prelude","name":"id","source":{"first_line":119,"last_line":131}},{"module":"Init.Prelude","name":"Bool","source":{"first_line":99,"last_line":111}},{"module":"Init.Prelude","name":"Decidable.decide","source":{"first_line":1158,"last_line":1158}},{"module":"Init.Prelude","name":"Bool.true","source":{"first_line":110,"last_line":111}},{"module":"Init.Prelude","name":"Eq.refl","source":{"first_line":74,"last_line":76}}],"definitions_truncated":false,"first_line":47,"last_line":49,"module":"Contracts","program":null,"program_head":null,"statement":"@Eq.{1} (Aeneas.Std.Result.{0} fxhash_adapted.FxHasher64) fxhash_adapted.FxHasher64.Insts.CoreDefaultDefault.default\n  (@Aeneas.Std.Result.ok.{0} fxhash_adapted.FxHasher64\n    (fxhash_adapted.FxHasher64.mk\n      (Aeneas.Std.U64.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n        (@of_decide_eq_true\n          (@LE.le.{0} Nat instLENat (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n            (Aeneas.Std.UScalar.cMax Aeneas.Std.UScalarTy.U64))\n          (Nat.decLe (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n            (Aeneas.Std.UScalar.cMax Aeneas.Std.UScalarTy.U64))\n          (@id.{0}\n            (@Eq.{1} Bool\n              (@Decidable.decide\n                (@LE.le.{0} Nat instLENat (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n                  (Aeneas.Std.UScalar.cMax Aeneas.Std.UScalarTy.U64))\n                (Nat.decLe (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n                  (Aeneas.Std.UScalar.cMax Aeneas.Std.UScalarTy.U64)))\n              Bool.true)\n            (@Eq.refl.{1} Bool Bool.true))))))","theorem":"FxHashContracts.fxHasher64_default","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"self","type":"fxhash_adapted.FxHasher32","type_segments":[{"ref":"fxhash_adapted.FxHasher32","text":"fxhash_adapted.FxHasher32"}]}],"conclusion":"fxhash_adapted.FxHasher32.Insts.CoreHashHasher.finish self =\n  Aeneas.Std.Result.ok (Aeneas.Std.UScalar.cast Aeneas.Std.UScalarTy.U64 self.hash)","conclusion_segments":[{"ref":"fxhash_adapted.FxHasher32.Insts.CoreHashHasher.finish","text":"fxhash_adapted.FxHasher32.Insts.CoreHashHasher.finish"},{"text":" "},{"text":"self"},{"ref":"Eq","text":" =\n  "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"("},{"ref":"Aeneas.Std.UScalar.cast","text":"Aeneas.Std.UScalar.cast"},{"text":" "},{"ref":"Aeneas.Std.UScalarTy.U64","text":"Aeneas.Std.UScalarTy.U64"},{"text":" "},{"text":"self"},{"text":"."},{"ref":"fxhash_adapted.FxHasher32.hash","text":"hash"},{"text":")"}],"definitions":[{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher32","source":{"first_line":371,"last_line":375}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U64","source":{"first_line":672,"last_line":672}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher32.Insts.CoreHashHasher.finish","source":{"first_line":437,"last_line":442}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Aeneas.Std.Scalar.Casts","name":"Aeneas.Std.UScalar.cast","source":{"first_line":18,"last_line":22}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U64","source":{"first_line":36,"last_line":36}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher32.hash","source":{"first_line":375,"last_line":375}}],"definitions_truncated":false,"first_line":55,"last_line":57,"module":"Contracts","program":null,"program_head":null,"statement":"∀ (self : fxhash_adapted.FxHasher32),\n  @Eq.{1} (Aeneas.Std.Result.{0} Aeneas.Std.U64) (fxhash_adapted.FxHasher32.Insts.CoreHashHasher.finish self)\n    (@Aeneas.Std.Result.ok.{0} Aeneas.Std.U64\n      (@Aeneas.Std.UScalar.cast Aeneas.Std.UScalarTy.U32 Aeneas.Std.UScalarTy.U64\n        (fxhash_adapted.FxHasher32.hash self)))","theorem":"FxHashContracts.fxHasher32_finish","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"self","type":"fxhash_adapted.FxHasher","type_segments":[{"ref":"fxhash_adapted.FxHasher","text":"fxhash_adapted.FxHasher"}]},{"binder":"explicit","kind":"variable","name":"i","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]}],"conclusion":"∃ out,\n  fxhash_adapted.FxHasher.Insts.CoreHashHasher.write_u32 self i = Aeneas.Std.Result.ok out ∧\n    out.hash.bv = FxHash.Spec.mixNative self.hash.bv (BitVec.setWidth System.Platform.numBits i.bv)","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"fxhash_adapted.FxHasher.Insts.CoreHashHasher.write_u32","text":"fxhash_adapted.FxHasher.Insts.CoreHashHasher.write_u32"},{"text":" "},{"text":"self"},{"text":" "},{"text":"i"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"text":"out"},{"text":"."},{"ref":"fxhash_adapted.FxHasher.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.Usize.bv","text":"bv"},{"ref":"Eq","text":" = "},{"ref":"FxHash.Spec.mixNative","text":"FxHash.Spec.mixNative"},{"text":" "},{"text":"self"},{"text":"."},{"ref":"fxhash_adapted.FxHasher.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.Usize.bv","text":"bv"},{"text":" "},{"text":"("},{"ref":"BitVec.setWidth","text":"BitVec.setWidth"},{"text":" "},{"ref":"System.Platform.numBits","text":"System.Platform.numBits"},{"text":" "},{"text":"i"},{"text":"."},{"ref":"Aeneas.Std.U32.bv","text":"bv"},{"text":")"}],"definitions":[{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher","source":{"first_line":229,"last_line":233}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher.Insts.CoreHashHasher.write_u32","source":{"first_line":267,"last_line":274}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"BitVec","source":{"first_line":2496,"last_line":2508}},{"module":"Init.Prelude","name":"System.Platform.numBits","source":{"first_line":2429,"last_line":2433}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize.bv","source":{"first_line":1112,"last_line":1112}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher.hash","source":{"first_line":233,"last_line":233}},{"module":"Specs","name":"FxHash.Spec.mixNative","source":{"first_line":72,"last_line":79}},{"module":"Init.Data.BitVec.Basic","name":"BitVec.setWidth","source":{"first_line":479,"last_line":498}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32.bv","source":{"first_line":1109,"last_line":1109}}],"definitions_truncated":false,"first_line":192,"last_line":201,"module":"Contracts","program":null,"program_head":null,"statement":"∀ (self : fxhash_adapted.FxHasher) (i : Aeneas.Std.U32),\n  @Exists.{1} fxhash_adapted.FxHasher fun (out : fxhash_adapted.FxHasher) =>\n    And\n      (@Eq.{1} (Aeneas.Std.Result.{0} fxhash_adapted.FxHasher)\n        (fxhash_adapted.FxHasher.Insts.CoreHashHasher.write_u32 self i)\n        (@Aeneas.Std.Result.ok.{0} fxhash_adapted.FxHasher out))\n      (@Eq.{1} (BitVec System.Platform.numBits) (Aeneas.Std.Usize.bv (fxhash_adapted.FxHasher.hash out))\n        (FxHash.Spec.mixNative (Aeneas.Std.Usize.bv (fxhash_adapted.FxHasher.hash self))\n          (@BitVec.setWidth (@OfNat.ofNat.{0} Nat (nat_lit 32) (instOfNatNat (nat_lit 32))) System.Platform.numBits\n            (Aeneas.Std.U32.bv i))))","theorem":"FxHashContracts.fxHasher_write_u32","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[],"conclusion":"fxhash_adapted.FxHasher32.Insts.CoreDefaultDefault.default = Aeneas.Std.Result.ok { hash := 0#u32 }","conclusion_segments":[{"ref":"fxhash_adapted.FxHasher32.Insts.CoreDefaultDefault.default","text":"fxhash_adapted.FxHasher32.Insts.CoreDefaultDefault.default"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"ref":"fxhash_adapted.FxHasher32.mk","text":"{ "},{"text":"hash"},{"ref":"fxhash_adapted.FxHasher32.mk","text":" := "},{"text":"0"},{"ref":"Aeneas.Std.U32.ofNat","text":"#u32"},{"ref":"fxhash_adapted.FxHasher32.mk","text":" }"}],"definitions":[{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher32","source":{"first_line":371,"last_line":375}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher32.Insts.CoreDefaultDefault.default","source":{"first_line":377,"last_line":381}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher32.mk","source":{"first_line":374,"last_line":374}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32.ofNat","source":{"first_line":706,"last_line":706}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Init.Prelude","name":"of_decide_eq_true","source":{"first_line":1224,"last_line":1227}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.cMax","source":{"first_line":378,"last_line":381}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Init.Prelude","name":"Nat.decLe","source":{"first_line":2196,"last_line":2212}},{"module":"Init.Prelude","name":"id","source":{"first_line":119,"last_line":131}},{"module":"Init.Prelude","name":"Bool","source":{"first_line":99,"last_line":111}},{"module":"Init.Prelude","name":"Decidable.decide","source":{"first_line":1158,"last_line":1158}},{"module":"Init.Prelude","name":"Bool.true","source":{"first_line":110,"last_line":111}},{"module":"Init.Prelude","name":"Eq.refl","source":{"first_line":74,"last_line":76}}],"definitions_truncated":false,"first_line":43,"last_line":45,"module":"Contracts","program":null,"program_head":null,"statement":"@Eq.{1} (Aeneas.Std.Result.{0} fxhash_adapted.FxHasher32) fxhash_adapted.FxHasher32.Insts.CoreDefaultDefault.default\n  (@Aeneas.Std.Result.ok.{0} fxhash_adapted.FxHasher32\n    (fxhash_adapted.FxHasher32.mk\n      (Aeneas.Std.U32.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n        (@of_decide_eq_true\n          (@LE.le.{0} Nat instLENat (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n            (Aeneas.Std.UScalar.cMax Aeneas.Std.UScalarTy.U32))\n          (Nat.decLe (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n            (Aeneas.Std.UScalar.cMax Aeneas.Std.UScalarTy.U32))\n          (@id.{0}\n            (@Eq.{1} Bool\n              (@Decidable.decide\n                (@LE.le.{0} Nat instLENat (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n                  (Aeneas.Std.UScalar.cMax Aeneas.Std.UScalarTy.U32))\n                (Nat.decLe (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n                  (Aeneas.Std.UScalar.cMax Aeneas.Std.UScalarTy.U32)))\n              Bool.true)\n            (@Eq.refl.{1} Bool Bool.true))))))","theorem":"FxHashContracts.fxHasher32_default","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"self","type":"fxhash_adapted.FxHasher","type_segments":[{"ref":"fxhash_adapted.FxHasher","text":"fxhash_adapted.FxHasher"}]},{"binder":"explicit","kind":"variable","name":"i","type":"Aeneas.Std.U64","type_segments":[{"ref":"Aeneas.Std.U64","text":"Aeneas.Std.U64"}]}],"conclusion":"∃ out,\n  fxhash_adapted.FxHasher.Insts.CoreHashHasher.write_u64 self i = Aeneas.Std.Result.ok out ∧\n    out.hash.bv = FxHash.Spec.mixNative self.hash.bv (BitVec.setWidth System.Platform.numBits i.bv)","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"fxhash_adapted.FxHasher.Insts.CoreHashHasher.write_u64","text":"fxhash_adapted.FxHasher.Insts.CoreHashHasher.write_u64"},{"text":" "},{"text":"self"},{"text":" "},{"text":"i"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"text":"out"},{"text":"."},{"ref":"fxhash_adapted.FxHasher.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.Usize.bv","text":"bv"},{"ref":"Eq","text":" = "},{"ref":"FxHash.Spec.mixNative","text":"FxHash.Spec.mixNative"},{"text":" "},{"text":"self"},{"text":"."},{"ref":"fxhash_adapted.FxHasher.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.Usize.bv","text":"bv"},{"text":" "},{"text":"("},{"ref":"BitVec.setWidth","text":"BitVec.setWidth"},{"text":" "},{"ref":"System.Platform.numBits","text":"System.Platform.numBits"},{"text":" "},{"text":"i"},{"text":"."},{"ref":"Aeneas.Std.U64.bv","text":"bv"},{"text":")"}],"definitions":[{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher","source":{"first_line":229,"last_line":233}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U64","source":{"first_line":672,"last_line":672}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher.Insts.CoreHashHasher.write_u64","source":{"first_line":276,"last_line":283}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"BitVec","source":{"first_line":2496,"last_line":2508}},{"module":"Init.Prelude","name":"System.Platform.numBits","source":{"first_line":2429,"last_line":2433}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize.bv","source":{"first_line":1112,"last_line":1112}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher.hash","source":{"first_line":233,"last_line":233}},{"module":"Specs","name":"FxHash.Spec.mixNative","source":{"first_line":72,"last_line":79}},{"module":"Init.Data.BitVec.Basic","name":"BitVec.setWidth","source":{"first_line":479,"last_line":498}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U64.bv","source":{"first_line":1110,"last_line":1110}}],"definitions_truncated":false,"first_line":203,"last_line":212,"module":"Contracts","program":null,"program_head":null,"statement":"∀ (self : fxhash_adapted.FxHasher) (i : Aeneas.Std.U64),\n  @Exists.{1} fxhash_adapted.FxHasher fun (out : fxhash_adapted.FxHasher) =>\n    And\n      (@Eq.{1} (Aeneas.Std.Result.{0} fxhash_adapted.FxHasher)\n        (fxhash_adapted.FxHasher.Insts.CoreHashHasher.write_u64 self i)\n        (@Aeneas.Std.Result.ok.{0} fxhash_adapted.FxHasher out))\n      (@Eq.{1} (BitVec System.Platform.numBits) (Aeneas.Std.Usize.bv (fxhash_adapted.FxHasher.hash out))\n        (FxHash.Spec.mixNative (Aeneas.Std.Usize.bv (fxhash_adapted.FxHasher.hash self))\n          (@BitVec.setWidth (@OfNat.ofNat.{0} Nat (nat_lit 64) (instOfNatNat (nat_lit 64))) System.Platform.numBits\n            (Aeneas.Std.U64.bv i))))","theorem":"FxHashContracts.fxHasher_write_u64","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"self","type":"fxhash_adapted.FxHasher","type_segments":[{"ref":"fxhash_adapted.FxHasher","text":"fxhash_adapted.FxHasher"}]}],"conclusion":"fxhash_adapted.FxHasher.Insts.CoreHashHasher.finish self =\n  Aeneas.Std.Result.ok (Aeneas.Std.UScalar.cast Aeneas.Std.UScalarTy.U64 self.hash)","conclusion_segments":[{"ref":"fxhash_adapted.FxHasher.Insts.CoreHashHasher.finish","text":"fxhash_adapted.FxHasher.Insts.CoreHashHasher.finish"},{"text":" "},{"text":"self"},{"ref":"Eq","text":" =\n  "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"("},{"ref":"Aeneas.Std.UScalar.cast","text":"Aeneas.Std.UScalar.cast"},{"text":" "},{"ref":"Aeneas.Std.UScalarTy.U64","text":"Aeneas.Std.UScalarTy.U64"},{"text":" "},{"text":"self"},{"text":"."},{"ref":"fxhash_adapted.FxHasher.hash","text":"hash"},{"text":")"}],"definitions":[{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher","source":{"first_line":229,"last_line":233}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U64","source":{"first_line":672,"last_line":672}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher.Insts.CoreHashHasher.finish","source":{"first_line":293,"last_line":298}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Aeneas.Std.Scalar.Casts","name":"Aeneas.Std.UScalar.cast","source":{"first_line":18,"last_line":22}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U64","source":{"first_line":36,"last_line":36}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher.hash","source":{"first_line":233,"last_line":233}}],"definitions_truncated":false,"first_line":63,"last_line":65,"module":"Contracts","program":null,"program_head":null,"statement":"∀ (self : fxhash_adapted.FxHasher),\n  @Eq.{1} (Aeneas.Std.Result.{0} Aeneas.Std.U64) (fxhash_adapted.FxHasher.Insts.CoreHashHasher.finish self)\n    (@Aeneas.Std.Result.ok.{0} Aeneas.Std.U64\n      (@Aeneas.Std.UScalar.cast Aeneas.Std.UScalarTy.Usize Aeneas.Std.UScalarTy.U64\n        (fxhash_adapted.FxHasher.hash self)))","theorem":"FxHashContracts.fxHasher_finish","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"self","type":"fxhash_adapted.FxHasher64","type_segments":[{"ref":"fxhash_adapted.FxHasher64","text":"fxhash_adapted.FxHasher64"}]},{"binder":"explicit","kind":"variable","name":"bytes","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]}],"conclusion":"∃ out,\n  fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write self bytes = Aeneas.Std.Result.ok out ∧\n    out.hash.bv = FxHash.Spec.write64 FxHash.Spec.Endian.little self.hash.bv (List.map Aeneas.Std.UScalar.val ↑bytes)","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write","text":"fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write"},{"text":" "},{"text":"self"},{"text":" "},{"text":"bytes"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"text":"out"},{"text":"."},{"ref":"fxhash_adapted.FxHasher64.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.U64.bv","text":"bv"},{"ref":"Eq","text":" = "},{"ref":"FxHash.Spec.write64","text":"FxHash.Spec.write64"},{"text":" "},{"ref":"FxHash.Spec.Endian.little","text":"FxHash.Spec.Endian.little"},{"text":" "},{"text":"self"},{"text":"."},{"ref":"fxhash_adapted.FxHasher64.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.U64.bv","text":"bv"},{"text":" "},{"text":"("},{"ref":"List.map","text":"List.map"},{"text":" "},{"ref":"Aeneas.Std.UScalar.val","text":"Aeneas.Std.UScalar.val"},{"text":" "},{"text":"↑"},{"text":"bytes"},{"text":")"}],"definitions":[{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher64","source":{"first_line":300,"last_line":304}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write","source":{"first_line":312,"last_line":318}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"BitVec","source":{"first_line":2496,"last_line":2508}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U64.bv","source":{"first_line":1110,"last_line":1110}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher64.hash","source":{"first_line":304,"last_line":304}},{"module":"Specs","name":"FxHash.Spec.write64","source":{"first_line":57,"last_line":58}},{"module":"Specs","name":"FxHash.Spec.Endian.little","source":{"first_line":11,"last_line":11}},{"module":"Init.Prelude","name":"List.map","source":{"first_line":3301,"last_line":3314}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar","source":{"first_line":70,"last_line":74}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U8","source":{"first_line":33,"last_line":33}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice.val","source":{"first_line":21,"last_line":22}}],"definitions_truncated":false,"first_line":39,"last_line":47,"module":"WriteContracts","program":null,"program_head":null,"statement":"∀ (self : fxhash_adapted.FxHasher64) (bytes : Aeneas.Std.Slice.{0} Aeneas.Std.U8),\n  @Exists.{1} fxhash_adapted.FxHasher64 fun (out : fxhash_adapted.FxHasher64) =>\n    And\n      (@Eq.{1} (Aeneas.Std.Result.{0} fxhash_adapted.FxHasher64)\n        (fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write self bytes)\n        (@Aeneas.Std.Result.ok.{0} fxhash_adapted.FxHasher64 out))\n      (@Eq.{1} (BitVec (@OfNat.ofNat.{0} Nat (nat_lit 64) (instOfNatNat (nat_lit 64))))\n        (Aeneas.Std.U64.bv (fxhash_adapted.FxHasher64.hash out))\n        (FxHash.Spec.write64 FxHash.Spec.Endian.little (Aeneas.Std.U64.bv (fxhash_adapted.FxHasher64.hash self))\n          (@List.map.{0, 0} (Aeneas.Std.UScalar Aeneas.Std.UScalarTy.U8) Nat\n            (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U8) (@Aeneas.Std.Slice.val.{0} Aeneas.Std.U8 bytes))))","theorem":"FxHashWriteContracts.fxHasher64_write_exact","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"self","type":"fxhash_adapted.FxHasher","type_segments":[{"ref":"fxhash_adapted.FxHasher","text":"fxhash_adapted.FxHasher"}]},{"binder":"explicit","kind":"variable","name":"i","type":"Aeneas.Std.U16","type_segments":[{"ref":"Aeneas.Std.U16","text":"Aeneas.Std.U16"}]}],"conclusion":"∃ out,\n  fxhash_adapted.FxHasher.Insts.CoreHashHasher.write_u16 self i = Aeneas.Std.Result.ok out ∧\n    out.hash.bv = FxHash.Spec.mixNative self.hash.bv (BitVec.setWidth System.Platform.numBits i.bv)","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"fxhash_adapted.FxHasher.Insts.CoreHashHasher.write_u16","text":"fxhash_adapted.FxHasher.Insts.CoreHashHasher.write_u16"},{"text":" "},{"text":"self"},{"text":" "},{"text":"i"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"text":"out"},{"text":"."},{"ref":"fxhash_adapted.FxHasher.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.Usize.bv","text":"bv"},{"ref":"Eq","text":" = "},{"ref":"FxHash.Spec.mixNative","text":"FxHash.Spec.mixNative"},{"text":" "},{"text":"self"},{"text":"."},{"ref":"fxhash_adapted.FxHasher.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.Usize.bv","text":"bv"},{"text":" "},{"text":"("},{"ref":"BitVec.setWidth","text":"BitVec.setWidth"},{"text":" "},{"ref":"System.Platform.numBits","text":"System.Platform.numBits"},{"text":" "},{"text":"i"},{"text":"."},{"ref":"Aeneas.Std.U16.bv","text":"bv"},{"text":")"}],"definitions":[{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher","source":{"first_line":229,"last_line":233}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U16","source":{"first_line":670,"last_line":670}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher.Insts.CoreHashHasher.write_u16","source":{"first_line":258,"last_line":265}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"BitVec","source":{"first_line":2496,"last_line":2508}},{"module":"Init.Prelude","name":"System.Platform.numBits","source":{"first_line":2429,"last_line":2433}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize.bv","source":{"first_line":1112,"last_line":1112}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher.hash","source":{"first_line":233,"last_line":233}},{"module":"Specs","name":"FxHash.Spec.mixNative","source":{"first_line":72,"last_line":79}},{"module":"Init.Data.BitVec.Basic","name":"BitVec.setWidth","source":{"first_line":479,"last_line":498}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U16.bv","source":{"first_line":1108,"last_line":1108}}],"definitions_truncated":false,"first_line":181,"last_line":190,"module":"Contracts","program":null,"program_head":null,"statement":"∀ (self : fxhash_adapted.FxHasher) (i : Aeneas.Std.U16),\n  @Exists.{1} fxhash_adapted.FxHasher fun (out : fxhash_adapted.FxHasher) =>\n    And\n      (@Eq.{1} (Aeneas.Std.Result.{0} fxhash_adapted.FxHasher)\n        (fxhash_adapted.FxHasher.Insts.CoreHashHasher.write_u16 self i)\n        (@Aeneas.Std.Result.ok.{0} fxhash_adapted.FxHasher out))\n      (@Eq.{1} (BitVec System.Platform.numBits) (Aeneas.Std.Usize.bv (fxhash_adapted.FxHasher.hash out))\n        (FxHash.Spec.mixNative (Aeneas.Std.Usize.bv (fxhash_adapted.FxHasher.hash self))\n          (@BitVec.setWidth (@OfNat.ofNat.{0} Nat (nat_lit 16) (instOfNatNat (nat_lit 16))) System.Platform.numBits\n            (Aeneas.Std.U16.bv i))))","theorem":"FxHashContracts.fxHasher_write_u16","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"self","type":"fxhash_adapted.FxHasher64","type_segments":[{"ref":"fxhash_adapted.FxHasher64","text":"fxhash_adapted.FxHasher64"}]},{"binder":"explicit","kind":"variable","name":"i","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]}],"conclusion":"∃ out,\n  fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write_u32 self i = Aeneas.Std.Result.ok out ∧\n    out.hash.bv = FxHash.Spec.mix64 self.hash.bv (BitVec.setWidth 64 i.bv)","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write_u32","text":"fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write_u32"},{"text":" "},{"text":"self"},{"text":" "},{"text":"i"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"text":"out"},{"text":"."},{"ref":"fxhash_adapted.FxHasher64.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.U64.bv","text":"bv"},{"ref":"Eq","text":" = "},{"ref":"FxHash.Spec.mix64","text":"FxHash.Spec.mix64"},{"text":" "},{"text":"self"},{"text":"."},{"ref":"fxhash_adapted.FxHasher64.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.U64.bv","text":"bv"},{"text":" "},{"text":"("},{"ref":"BitVec.setWidth","text":"BitVec.setWidth"},{"text":" "},{"text":"64"},{"text":" "},{"text":"i"},{"text":"."},{"ref":"Aeneas.Std.U32.bv","text":"bv"},{"text":")"}],"definitions":[{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher64","source":{"first_line":300,"last_line":304}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write_u32","source":{"first_line":338,"last_line":345}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"BitVec","source":{"first_line":2496,"last_line":2508}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U64.bv","source":{"first_line":1110,"last_line":1110}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher64.hash","source":{"first_line":304,"last_line":304}},{"module":"Specs","name":"FxHash.Spec.mix64","source":{"first_line":24,"last_line":24}},{"module":"Init.Data.BitVec.Basic","name":"BitVec.setWidth","source":{"first_line":479,"last_line":498}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32.bv","source":{"first_line":1109,"last_line":1109}}],"definitions_truncated":false,"first_line":123,"last_line":131,"module":"Contracts","program":null,"program_head":null,"statement":"∀ (self : fxhash_adapted.FxHasher64) (i : Aeneas.Std.U32),\n  @Exists.{1} fxhash_adapted.FxHasher64 fun (out : fxhash_adapted.FxHasher64) =>\n    And\n      (@Eq.{1} (Aeneas.Std.Result.{0} fxhash_adapted.FxHasher64)\n        (fxhash_adapted.FxHasher64.Insts.CoreHashHasher.write_u32 self i)\n        (@Aeneas.Std.Result.ok.{0} fxhash_adapted.FxHasher64 out))\n      (@Eq.{1} (BitVec (@OfNat.ofNat.{0} Nat (nat_lit 64) (instOfNatNat (nat_lit 64))))\n        (Aeneas.Std.U64.bv (fxhash_adapted.FxHasher64.hash out))\n        (FxHash.Spec.mix64 (Aeneas.Std.U64.bv (fxhash_adapted.FxHasher64.hash self))\n          (@BitVec.setWidth (@OfNat.ofNat.{0} Nat (nat_lit 32) (instOfNatNat (nat_lit 32)))\n            (@OfNat.ofNat.{0} Nat (nat_lit 64) (instOfNatNat (nat_lit 64))) (Aeneas.Std.U32.bv i))))","theorem":"FxHashContracts.fxHasher64_write_u32","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[],"conclusion":"fxhash_adapted.FxHasher.Insts.CoreDefaultDefault.default = Aeneas.Std.Result.ok { hash := 0#usize }","conclusion_segments":[{"ref":"fxhash_adapted.FxHasher.Insts.CoreDefaultDefault.default","text":"fxhash_adapted.FxHasher.Insts.CoreDefaultDefault.default"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"ref":"fxhash_adapted.FxHasher.mk","text":"{ "},{"text":"hash"},{"ref":"fxhash_adapted.FxHasher.mk","text":" := "},{"text":"0"},{"ref":"Aeneas.Std.Usize.ofNat","text":"#usize"},{"ref":"fxhash_adapted.FxHasher.mk","text":" }"}],"definitions":[{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher","source":{"first_line":229,"last_line":233}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher.Insts.CoreDefaultDefault.default","source":{"first_line":235,"last_line":239}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher.mk","source":{"first_line":232,"last_line":232}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize.ofNat","source":{"first_line":703,"last_line":703}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Init.Prelude","name":"of_decide_eq_true","source":{"first_line":1224,"last_line":1227}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.cMax","source":{"first_line":378,"last_line":381}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}},{"module":"Init.Prelude","name":"Nat.decLe","source":{"first_line":2196,"last_line":2212}},{"module":"Init.Prelude","name":"id","source":{"first_line":119,"last_line":131}},{"module":"Init.Prelude","name":"Bool","source":{"first_line":99,"last_line":111}},{"module":"Init.Prelude","name":"Decidable.decide","source":{"first_line":1158,"last_line":1158}},{"module":"Init.Prelude","name":"Bool.true","source":{"first_line":110,"last_line":111}},{"module":"Init.Prelude","name":"Eq.refl","source":{"first_line":74,"last_line":76}}],"definitions_truncated":false,"first_line":51,"last_line":53,"module":"Contracts","program":null,"program_head":null,"statement":"@Eq.{1} (Aeneas.Std.Result.{0} fxhash_adapted.FxHasher) fxhash_adapted.FxHasher.Insts.CoreDefaultDefault.default\n  (@Aeneas.Std.Result.ok.{0} fxhash_adapted.FxHasher\n    (fxhash_adapted.FxHasher.mk\n      (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n        (@of_decide_eq_true\n          (@LE.le.{0} Nat instLENat (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n            (Aeneas.Std.UScalar.cMax Aeneas.Std.UScalarTy.Usize))\n          (Nat.decLe (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n            (Aeneas.Std.UScalar.cMax Aeneas.Std.UScalarTy.Usize))\n          (@id.{0}\n            (@Eq.{1} Bool\n              (@Decidable.decide\n                (@LE.le.{0} Nat instLENat (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n                  (Aeneas.Std.UScalar.cMax Aeneas.Std.UScalarTy.Usize))\n                (Nat.decLe (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n                  (Aeneas.Std.UScalar.cMax Aeneas.Std.UScalarTy.Usize)))\n              Bool.true)\n            (@Eq.refl.{1} Bool Bool.true))))))","theorem":"FxHashContracts.fxHasher_default","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"self","type":"fxhash_adapted.FxHasher","type_segments":[{"ref":"fxhash_adapted.FxHasher","text":"fxhash_adapted.FxHasher"}]},{"binder":"explicit","kind":"variable","name":"i","type":"Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]}],"conclusion":"∃ out,\n  fxhash_adapted.FxHasher.Insts.CoreHashHasher.write_u8 self i = Aeneas.Std.Result.ok out ∧\n    out.hash.bv = FxHash.Spec.mixNative self.hash.bv (BitVec.setWidth System.Platform.numBits i.bv)","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"fxhash_adapted.FxHasher.Insts.CoreHashHasher.write_u8","text":"fxhash_adapted.FxHasher.Insts.CoreHashHasher.write_u8"},{"text":" "},{"text":"self"},{"text":" "},{"text":"i"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"text":"out"},{"text":"."},{"ref":"fxhash_adapted.FxHasher.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.Usize.bv","text":"bv"},{"ref":"Eq","text":" = "},{"ref":"FxHash.Spec.mixNative","text":"FxHash.Spec.mixNative"},{"text":" "},{"text":"self"},{"text":"."},{"ref":"fxhash_adapted.FxHasher.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.Usize.bv","text":"bv"},{"text":" "},{"text":"("},{"ref":"BitVec.setWidth","text":"BitVec.setWidth"},{"text":" "},{"ref":"System.Platform.numBits","text":"System.Platform.numBits"},{"text":" "},{"text":"i"},{"text":"."},{"ref":"Aeneas.Std.U8.bv","text":"bv"},{"text":")"}],"definitions":[{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher","source":{"first_line":229,"last_line":233}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher.Insts.CoreHashHasher.write_u8","source":{"first_line":249,"last_line":256}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"BitVec","source":{"first_line":2496,"last_line":2508}},{"module":"Init.Prelude","name":"System.Platform.numBits","source":{"first_line":2429,"last_line":2433}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize.bv","source":{"first_line":1112,"last_line":1112}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher.hash","source":{"first_line":233,"last_line":233}},{"module":"Specs","name":"FxHash.Spec.mixNative","source":{"first_line":72,"last_line":79}},{"module":"Init.Data.BitVec.Basic","name":"BitVec.setWidth","source":{"first_line":479,"last_line":498}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8.bv","source":{"first_line":1107,"last_line":1107}}],"definitions_truncated":false,"first_line":170,"last_line":179,"module":"Contracts","program":null,"program_head":null,"statement":"∀ (self : fxhash_adapted.FxHasher) (i : Aeneas.Std.U8),\n  @Exists.{1} fxhash_adapted.FxHasher fun (out : fxhash_adapted.FxHasher) =>\n    And\n      (@Eq.{1} (Aeneas.Std.Result.{0} fxhash_adapted.FxHasher)\n        (fxhash_adapted.FxHasher.Insts.CoreHashHasher.write_u8 self i)\n        (@Aeneas.Std.Result.ok.{0} fxhash_adapted.FxHasher out))\n      (@Eq.{1} (BitVec System.Platform.numBits) (Aeneas.Std.Usize.bv (fxhash_adapted.FxHasher.hash out))\n        (FxHash.Spec.mixNative (Aeneas.Std.Usize.bv (fxhash_adapted.FxHasher.hash self))\n          (@BitVec.setWidth (@OfNat.ofNat.{0} Nat (nat_lit 8) (instOfNatNat (nat_lit 8))) System.Platform.numBits\n            (Aeneas.Std.U8.bv i))))","theorem":"FxHashContracts.fxHasher_write_u8","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"self","type":"fxhash_adapted.FxHasher","type_segments":[{"ref":"fxhash_adapted.FxHasher","text":"fxhash_adapted.FxHasher"}]},{"binder":"explicit","kind":"variable","name":"i","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]}],"conclusion":"∃ out,\n  fxhash_adapted.FxHasher.Insts.CoreHashHasher.write_usize self i = Aeneas.Std.Result.ok out ∧\n    out.hash.bv = FxHash.Spec.mixNative self.hash.bv i.bv","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"fxhash_adapted.FxHasher.Insts.CoreHashHasher.write_usize","text":"fxhash_adapted.FxHasher.Insts.CoreHashHasher.write_usize"},{"text":" "},{"text":"self"},{"text":" "},{"text":"i"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"text":"out"},{"text":"."},{"ref":"fxhash_adapted.FxHasher.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.Usize.bv","text":"bv"},{"ref":"Eq","text":" = "},{"ref":"FxHash.Spec.mixNative","text":"FxHash.Spec.mixNative"},{"text":" "},{"text":"self"},{"text":"."},{"ref":"fxhash_adapted.FxHasher.hash","text":"hash"},{"text":"."},{"ref":"Aeneas.Std.Usize.bv","text":"bv"},{"text":" "},{"text":"i"},{"text":"."},{"ref":"Aeneas.Std.Usize.bv","text":"bv"}],"definitions":[{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher","source":{"first_line":229,"last_line":233}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher.Insts.CoreHashHasher.write_usize","source":{"first_line":285,"last_line":291}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"BitVec","source":{"first_line":2496,"last_line":2508}},{"module":"Init.Prelude","name":"System.Platform.numBits","source":{"first_line":2429,"last_line":2433}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize.bv","source":{"first_line":1112,"last_line":1112}},{"module":"FxhashAdapted","name":"fxhash_adapted.FxHasher.hash","source":{"first_line":233,"last_line":233}},{"module":"Specs","name":"FxHash.Spec.mixNative","source":{"first_line":72,"last_line":79}}],"definitions_truncated":false,"first_line":214,"last_line":220,"module":"Contracts","program":null,"program_head":null,"statement":"∀ (self : fxhash_adapted.FxHasher) (i : Aeneas.Std.Usize),\n  @Exists.{1} fxhash_adapted.FxHasher fun (out : fxhash_adapted.FxHasher) =>\n    And\n      (@Eq.{1} (Aeneas.Std.Result.{0} fxhash_adapted.FxHasher)\n        (fxhash_adapted.FxHasher.Insts.CoreHashHasher.write_usize self i)\n        (@Aeneas.Std.Result.ok.{0} fxhash_adapted.FxHasher out))\n      (@Eq.{1} (BitVec System.Platform.numBits) (Aeneas.Std.Usize.bv (fxhash_adapted.FxHasher.hash out))\n        (FxHash.Spec.mixNative (Aeneas.Std.Usize.bv (fxhash_adapted.FxHasher.hash self)) (Aeneas.Std.Usize.bv i)))","theorem":"FxHashContracts.fxHasher_write_usize","translation_rerun":false,"version":1}

=== stderr ===
Environment

Pinned fxhash 0.2.1 release source and unmodified Aeneas/Charon, with Lean 4.35.0 on macOS arm64. The derived source and tool pins are recorded in the version-local verification evidence. Native differential tests are separate from the formal results; the release's own native test suite contains no tests. The original local run inherited an ancestor Cargo configuration whose Creusot patch was unused by the Aeneas run. The isolated publication workspace has no such ancestor patch.

What is trusted

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

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.

Updated 2026-10-16 00:00 UTC

Aeneas be86ab0f1989d04944292b345b24c435be3ad10a — version details

Dependencies (3)

CrateReports
fnv ^1.0.5 · devReport #2 · v2 (1.0.7)
seahash ^3.0.5 · dev—

Comments (0)

No comments.

Sign in to comment.