Seedelf-Wallet

The audit of the proofs

A review of this folder’s proofs as they stood on 2026-11-03. The proofs are about Seedelf, a stealth wallet on Cardano, and Lovejoin, the mixer the Seedelf Wallet uses. The review asked whether each proved result (each ✅, as the Lean 4 builds print it) is real, and what the proofs and their docs leave out. It’s the project’s own review, done with AI review agents, not an independent audit.

It covers the scenario proofs, each of which fixes the fields its script never reads. The every-transaction proofs, kernel and Blaster alike, came after it, so it doesn’t cover them, and that includes the kernel theorems the claim in CLAIMS.md rests on.

What was reviewed

Each critical and high finding was checked by two more reviewers, who tried to refute it (one on its evidence, one on its impact), and each medium by one. Lows and infos weren’t checked. Severities (critical, high, medium, low, info) are as they stood after those checks. Where a finding needed it, the review added theorems, mutant scripts and checks: the suites in this folder (What’s here, below).

The record is review/findings.md, with the full evidence in review/findings.json beside it.

What it found

55 findings: 1 critical, 8 high, 13 medium, 24 low, 8 info and 1 refuted. None is a bug in a contract, and no proved result was false. They’re what the proofs and their docs left out: a claim worded wider than its theorem, a check no theorem varied, a scenario that couldn’t pass, a tool trusted without a check. The critical one: the theorems on the Seedelf policy’s amount rule said nothing about mints, only about burns.

How each was resolved

findings.md gives each finding’s resolution:

What’s here

Running it

It needs what the README’s Running it lists, Z3 included, and up to 16 GB of memory a module. From seedelf-verification/, bash Audit/run-all.sh runs everything, family by family and cheapest first, with logs in Audit/logs/. It takes hours: run it overnight. It resumes where it stopped, and bash Audit/run-all.sh audit-v2 runs a single family.

  1. audit-refresh rebuilds the proof modules whose builds are older than their inputs, before the audit imports them.
  2. audit-quick: definitions, #guards and #evals.
  3. audit-seedelf, audit-v2, audit-template, audit-classic, then audit-gaps, each at 16G and 60 minutes a module.
  4. audit-last and the diagnostic, after everything else.
  5. Last, count.py, whose output goes to Audit/logs/count.txt, with the families whose run failed, a diag scan that flagged a row among them; run-all.sh then exits nonzero, as a full run also does when count.py finds a module not ok.

Reading a result