Branch verification, from main, pushed to origin, with no PR on purpose (the owner, 2026-11-02). It isn’t a web-wallet/… branch because the work lives in seedelf-verification/, not in the wallet.
Archived 2026-11-07. What it did is Where it ended. What it left open, the proofs off our forks and onto IOG’s own tools, is chunk 46. Below is the plan as it stood. Where it says the policy’s success directions are parked, they were proved since, over Slice/’s alias.
Status on 2026-11-03: ✅ the wallet’s core property is proved, on our forks. Chunk 41 fixed the three gaps this file waited on, and a fourth that only showed once they were fixed: the BLS12-381 builtins’ operand order. It fixed them in forks of IOG’s tools, which lakefile.lean pins, and WalletRegister is ✅ Valid in the script’s own order. What stays here: the policy’s success directions, which wait on BitVec (Lean-blaster #153), and, as each upstream PR lands, re-running against upstream with this file’s How to tell each is fixed. Before chunk 41 this file read ⛔, in the owner’s words: “I would want these upstream bugs fixed then work everything out before we continue on.”
What the owner asked (2026-11-02): “a verification folder and branch that we can work on further because it would be interesting to do this for lovejoin as well.” On the wallet’s property: “proving the wallet part of things is verified is huge.”
94bca9c0…, policy 84967d91…, always_false 6777ba4d…. They’re proved with IOG’s Blaster, which is Lean 4 and Z3 5.3.1 over PlutusCoreBlaster’s model of UPLC.
vkh signed, over our forks../check.sh upstream runs a minimal case of each, beside controls that pass. ./check.sh upstream-main runs the Except case against Lean-blaster main.83ae8c2c (the proofs, check.sh, extract.sh, the root CLAUDE.md line), 70e798a9 (the reproductions and the drafts), 47f8e21f (the #68 comment’s pointer).beta-lambda-cache-optimization branch at 46c8479, through CardanoLedgerApiBlaster 9938562.genIndParams in Blaster/Smt/Translate/Quantifier.lean telescopes (← hashcons indVal.type). So a datatype takes the parameter names of an earlier alpha-equivalent type.Except and Prod fails, in either order (“unknown sort ‘@ε’”). PlutusCoreBlaster’s goals translate Data × Data before a BLS12-381 builtin’s Except String _.a16614e telescopes indVal.type and passes the same file.main pins Blaster bc03bb4, which has the line, and its #68 moves the pin to 8816f72, which has it too. Lean-blaster #155 (beta → main, under review on 2026-11-02) would bring it to main.bafdd4f (2025-12-04, the hash-consing squash). Draft #335 would fix it as a side effect, but has no test for it and was idle from 2026-10-18.BitVec through Char.
ByteString is a String, which is a List Char, and a Char is a UInt32, which is a BitVec 32.byteStringToInteger folds Char.toNat, and sliceByteString is take/drop on the chars. Over a symbolic bytestring, either fails with “Inductive datatype with instance parameters not supported: BitVec”.opaque alias for serialiseData. It was still open on 2026-11-02.feat/indexed-types (RSoulatIOHK, last touched 2026-06-21, never a PR), which leaves out Char and toNat, the two things byteStringToInteger needs.Fin in a BLS12-381 coordinate. Fq1.t : Fin fieldPrime (Cryptograph/BLS12_381/Basic.lean), and Fin n is an indexed type: the same throw, waiting behind 1 and 2 for anything holding a symbolic G1 point. Confirmed by a run on 2026-11-02: Upstream/Fq1Fin’s point cases fail with “Inductive datatype with instance parameters not supported: Fin", its control passes. PlutusCoreBlaster draft [#29](https://github.com/input-output-hk/PlutusCoreBlaster/pull/29) (BLS axiomatization, idle since 2026-09-21) changes it to Nat` and adds BLS12-381 axioms and an ownership-verification example: read it before WalletRegister.What they block:
| Property | Needs |
|---|---|
A Register UTxO moves iff the Schnorr check holds and vkh signed (WalletRegister, left out of check.sh’s list): the wallet’s core property |
1, 2 and 3 |
Burns of 5eed0e1f tokens succeed (burn_at_0, burn_at_255 in PolicyBurn). A mint passes for exactly the name generate gives (mint_at_0_iff, mint_at_255_iff in PolicyMint), then for any input |
2 |
Until then, the wallet’s Schnorr path rests on the Aiken tests, seedelf-crypto’s proptests and seedelf-core’s recorded-transaction evaluations.
The owner’s runs gave these results. Compare against them after a bump.
./check.sh:
ok: Scripts, Scenario, Steps, AlwaysFalse, WalletPurpose, WalletNoLock, PolicyAmount and PolicyForeign.FAILED: PolicyBurn, where burn_at_0 and burn_at_255 fail on BitVec and its two other theorems are ✅. PolicyMint, where both theorems fail on BitVec../check.sh upstream:
FAILED Upstream.ExceptParams, with five ❌ and every control ✅. The five: eps_alpha_after_alpha_beta and except_after_prod (unknown sort '@ε'), prod_after_except ('@β'), and both BetaAlpha checks after AlphaBeta (unknown constant @isInt (@PUnit)).FAILED Upstream.ByteStrings, with four ❌ on BitVec: the byteStringToInteger case, slice_known_prefix, the ≠ "abc" slice and slice_length. Its controls are ✅: append_right_empty, cons_front and both expected Falsifieds.ok: SlicePrograms and the five Slice modules, at 271–290 MB each../check.sh upstream-main: ok BlasterMain.ExceptParams, every case ✅. Its first build, which compiles Blaster, took 107 s and 1,042 MB.On 2026-11-02 every pin was its upstream’s head: Lean-blaster beta 46c8479 and main a16614e, PlutusCoreBlaster main 1c23de8, CardanoLedgerApiBlaster main 9938562.
CardanoLedgerApiBlaster requires Blaster and PlutusCore by branch (beta-lambda-cache-optimization and main). So only our lake-manifest.json pins those two, and a fix on either branch reaches us through lake update alone.
Any session can run these reads. None of them builds anything:
# any machine, read-only
gh api repos/input-output-hk/Lean-blaster/branches/beta-lambda-cache-optimization --jq .commit.sha
gh api 'repos/input-output-hk/Lean-blaster/commits?sha=beta-lambda-cache-optimization&path=Blaster/Smt/Translate/Quantifier.lean&per_page=5' --jq '.[] | .sha[:7] + " " + (.commit.message | split("\n")[0])'
gh api 'repos/input-output-hk/CardanoLedgerApiBlaster/commits?per_page=3' --jq '.[] | .sha[:7] + " " + (.commit.message | split("\n")[0])'
gh api repos/input-output-hk/CardanoLedgerApiBlaster/contents/lakefile.lean --jq .content | base64 -d | grep require
gh issue view 153 -R input-output-hk/Lean-blaster --comments
gh pr view 68 -R input-output-hk/PlutusCoreBlaster
gh pr view 27 -R input-output-hk/PlutusCoreBlaster
genIndParams on our pinned branch stops telescoping (← hashcons indVal.type). It can take main’s form or take the names from the recursor rule. CardanoLedgerApiBlaster moving to a Blaster without the bug counts too.
./check.sh upstream says ok Upstream.ExceptParams: the five ❌ turn ✅, as they already are on main.Fq1.t is no longer a Fin in PlutusCoreBlaster (#29 or similar), or Lean-blaster translates Fin. There’s no repro yet: add one to Upstream/ beside the others (a symbolic Fq1, or bls12_381_G1_uncompress of a symbolic bytestring, once bug 1 is out of the way).BitVec support in Lean-blaster (#153): ok Upstream.ByteStrings. Its four ❌ turn ✅, and the two #blaster cases show as Expected Falsified. This unblocks everything in the table above.opaque aliases in PlutusCoreBlaster (the stopgap): the BitVec errors go away, but less gets unblocked, and the reproduction may not show it.
scalarOf (Wallet.lean) calls the same alias the builtin runs.nameWith and seedelfName call the slice alias.5eed0e1f ‖ rest”. Only BitVec support gives that, or a slice defined on SMT str.substr (point 2 of the PlutusCoreBlaster draft).
slice_known_prefix and slice_length come back Falsified instead of failing on BitVec. That’s expected, not a regression.ByteStrings.lean calls PlutusCore.Bitwise.byteStringToInteger and sliceByteString directly. If the alias sits only on the builtin’s path, the reproduction stays as it is, and WalletRegister is the test.The owner runs every build and pastes the output back (Practicalities). The steps, in order:
lake update in seedelf-verification/. It moves Blaster and PlutusCore to their branches’ heads in lake-manifest.json.require of our own in lakefile.lean, at that commit. Lake prefers the root package’s own requirement to an inherited one.lean-toolchain must equal CardanoLedgerApiBlaster’s at its new commit (4.24.0 today).z3 --version.~/tools, linked from ~/.local/bin/z3../extract.sh: three oks, so the hex still hashes to the on-chain scripts../check.sh upstream../check.sh upstream-main: it’s pinned to a16614e, so it shouldn’t change../check.sh: all 29 theorems must still be ✅ before anything is un-parked. If a bump breaks them, that’s a regression to report, from a minimal case in Upstream/, as these were../check.sh <module> run under the cap.
Steps.lean, with a real proof from schnorr.ak’s or seedelf-crypto’s test vectors. Set the step limit above it (2500 now). That run is also the passing run rule 3 pairs the property with.KILLED, split it: one direction per module, or the signer fixed to vkh.check.sh’s default list and update the README’s tables.burn_at_0, burn_at_255, mint_at_0_iff and mint_at_255_iff should turn ✅ as they stand.BitVec, but that came from the slicing, not from consByteString’s byte (refuted). So retry PolicyBurn with the index symbolic: burns should succeed for every index from 0 to 255 and fail for every index from 256.Lovejoin/ beside Seedelf/, with its own Scripts.lean and an extract.sh step that checks its hashes.
8131b1d, Aiken v1.1.24). The classic pool’s scripts are bundled whole in references.rs: LOVEJOIN_*_MIX_BOX and LOVEJOIN_*_MIX_LOGIC, which Protocol::of reads.uplc evaluator (eval.rs): random keys and registers, where valid proofs pass and tampered ones fail.
Why did the policy take 8 GB with wholly symbolic token names? On 2026-11-02, with wholly symbolic names, each of the policy’s modules was killed at the 8 GB cap in about 36 s.
Upstream/Slice* takes 271–290 MB at 1, 4, 16 and 32 bytes, the same as with no slice.BitVec first, before memory matters. So the cause isn’t isolated.BitVec passes, rebuild toward the policy. Grow the Slice programs step by step (two slices, both of xor’s blocks, the equality on the name) under check.sh, and watch the peak.#prep_uplc scaling on large validators) and #233 (symbolic list tails). Neither is shown to be the cause.lake build, its check.sh, and its download of Z3. The owner ran each one and pasted the output.set -e.CAP=) and 10 minutes (LIMIT=), and its summary gives each module’s peak memory.unknown tactic recfun-finder, while the goals Blaster’s optimizer closes still pass, so it looks half-working. PlutusCoreBlaster’s README still says 4.15.2, which is wrong for this Blaster.extract.sh re-derives the script hex from 5b82530 and checks it against the on-chain hashes.hashes/ are a later revision that was never deployed: never verify them as if they were.isUnsuccessful, never ¬ isSuccessful.consByteString’s byte isn’t a blocker. cons_front proves on its own, and the BitVec a symbolic index hit came from the slicing.A burn fails when the transaction’s first input is output #256 or later.
xor(burn, mint) evaluates both blocks. So a burn also builds the mint’s token name, and consByteString refuses an index past a byte.burn_at_256_fails and concrete/policy_burns.sh.seedelf_token_name) but not for Remove’s burn.
seedelf-verification/ keeps room for a Lovejoin/.verification goes into main, and when, is still the owner’s call.The 2026-11-02 investigation found it within reach, about 3-5 days: bug 1 is one line plus a test; 3 is #29’s Fq1 change; 2 takes an opaque stopgap for byteStringToInteger (real BitVec/Char support is upstream’s design work, weeks to months). The plan for doing it is chunk 41.
verification is wholly in main. Chunk 42’s lovejoin-verification was cut from it and merged as #362 (c15603d5, 2026-11-05), carrying this chunk’s commits (83ae8c2c, 70e798a9, 47f8e21f) and chunk 41’s. verification itself never had a PR.Slice/’s opaque slice alias (#362). Over PlutusCoreBlaster’s own slice, PolicyBurn and PolicyMint still fail on BitVec: the README’s one Not proved row, and chunk 46’s.#prep_uplc (README, Found along the way).