Done (2026-11-06): mix_logic and one_shot_mint in every transaction, kernel-checked, stated in the Aiken source’s terms. The claim is in seedelf-verification/CLAIMS.md (the owner’s call), and the chunk landed as one PR to main, #368 (What its PR did, at the end). What still holds is in seedelf-verification/Lovejoin/Every/README.md: how to build and change the proofs, the method, the pitfalls, the tools and every module’s theorems. Read it before changing a proof.
seedelf-verification/Lovejoin/Every/ (25 modules: 20 CEK, 5 Readable*), its tools/*.py and its README, built by ./check.sh lovejoin-every. Lovejoin/AnyTx/README.md says what they state, and CLAIMS.md what we claim.../Seedelf-Wallet-chunk45, branch web-wallet/lovejoin-every-tx, cut from origin/main 9103df62 (#367 merged), with .lake copied from the main checkout, so nothing rebuilt the dependencies../check.sh lovejoin-every on that .lake, with everything the family imports already built: 20 ok, about 11 minutes, no sorry; the heaviest module Collect at 12.8 GB. Then the five Readable* modules, built on it: seconds each, under 400 MB, no warnings. After the review’s wording fixes, the family again: 25 ok, with Typed, MintTyped and the Mint modules rebuilt (MintCheck peaks at 8.4 GB).The owner, 2026-11-06, with the old pools empty and the 5 ₳ v2 pool live:
The bar (memory formal-verification-bar): every action’s rule, both directions, in every transaction. The scope is variant 1’s Seedelf scripts (done, PR #362) and Lovejoin v2’s contracts, with fee_contract out (unused). Before this chunk, Lovejoin/AnyTx/README.md had these kernel-checked for every V3 context:
That left two:
The classifier stopped this work three times on 2026-11-05. This session it stopped nothing (one transient “no verdict” error, retried fine).
In seedelf-verification/Lovejoin/Every/README.md since 1.8.1’s release review, where they stay true as the proofs change: The method (the spec as the compiled code read back, one theorem per region, ev_go), Pitfalls already paid for (the CEK regions’, the launch’s and the readable layer’s), The tools (pseudo.py, scope.py, lpath.py, pp.py, fillpaths.py) and The modules, every module’s theorems.
So both scripts that lacked it are proved in every transaction: mix_logic (every purpose, both withdrawals, the redeemer’s checks, the root) and one_shot_mint (the launch, every other purpose), first over raw Data, then in the Aiken source’s terms. With mix_box and reference_holder from before, that is all of Lovejoin v2 in scope (fee_contract out).
Already read from the bytes (regenerate pseudo.txt, Mix starts at let i_128). ρZ slots: 0 i_107, 1 i_106, 2 i_105 (boxes), 3 i_81 (rd), 4 i_80, 6 i_78, 10 i_74, 11 i_73, 12 i_72, 17 i_20 (red), 18 i_19 (info), then the builtins.
unListData(head(fields red)).λ name qty. [(B name, I qty)].foldl(list, init, f), its loop i_124 calling f(head, acc) (APPLY i_124 (i_124, list, init)).n = i_107(boxes).output_at_script(out, msh): the payment credential head(fields(head(fields out))) has tag 1 and its hash is msh, then equalsData(Constr 1 [], nth1(fields address)) (no stake part), then equalsData(Constr 1 [], nth3(fields out)) (no reference script). Anything else is False.lessThanEqualsInteger(2, n), then equalsInteger(len proofs, n); otherwise an error.[] if bl == 0, else [(B "", Map(i_129("", bl)))], with bl = unI(head(fields rd)).equalsByteString("", unB(nth1 rd)), the value is i_188.pol = unB(nth1), nm = unB(nth2), tq = unI(nth3) of rd’s fields. If tq == 0 it’s i_188. Otherwise it’s the ordered insert loop i_193 over i_188: compare lessThanEqualsByteString(pol, key), and on an equal key do the inner merge i_200 (drop the entry when the sum is zero, then a Map [] check). Paths are in pseudo lines ~545–600.pol ≠ "" in the typed step, not here.walk_outputs: CALL (λ i_169 msh i_170 bvBytes. CALL (λ i_171 i_172. APPLY i_171 (i_171, i_172, n, [], "", "")) walkClosure outputs) (unB(nth5(fields rd))) (serialiseData(mapData i_134)), with outputs unListData(nth2(fields info)). The walk is λ self outs k stmts datums values:
k == 0 (i_18) → [listData stmts, bData datums, bData values], else ERROR.lessThanInteger(0, k), case it): i_133(out) holds, equalsData(nth1(fields out), mapData boxValue), the datum nth2(fields out) has tag 2, and x = head(fields datum). Then the strict decode of x:
unB(field1) evaluated before unB(field0);len a == 48, len b == 48, a ≠ b;k − 1 (addInteger(-1, k)), consing Constr 0 [f0, f1, B(compress(uncompress a)), B(compress(uncompress b))] and appending serialiseData x and bvBytes.0 < k false): !(i_133 out) → recurse with 0, else ERROR.tail i_135. Then CALL (λ i_137 ctx i_138 stmts. …) (blake2b_256(unB(head i_136) ‖ unB(head(tail i_136)) ‖ msh)) (reverse i_165 of unListData(head i_135)).
lessThanEqualsInteger(n, 255), then i_139 = PREFIX03 ‖ integerToByteString(True, 1, n), then APPLY i_78 (boxes, proofs, mixPred); else ERROR.000100000000000000000001000000010100001010000000000010000020100000000010001000000000000010101.integerToByteString on a symbolic n: keep it as the builtin’s own term (tryCatchSome …) and case on its result; it never needs evaluating.(box, proof): CALL (λ a b. body) (unB(head(fields box))) (unB(nth1(fields box))). The body is chooseList(tailList stmts, delay ERROR, delay(…)), so at least two statements:
if equalsByteString(blake2b_256(foldl(branches, foldl(stmts, i_139 ‖ a ‖ b, f1), f2) ‖ ctx), foldl(branches, zero32, fx)), with branches unListData(head(fields proof));CALL (λ A B. parallel_all i_153 (stmts, branches)) (uncompress a) (uncompress b);f1(s, acc) = acc ‖ unB(s.f0) ‖ unB(s.f1) and f2(br, acc) = acc ‖ unB(br.f0) ‖ unB(br.f1).fx(br, acc): c = unB(nth2(fields br)) first, then eq32(len acc), then eq32(len c), then xorByteString(False, acc, c); else ERROR. This is xor32’s fix; the xor is the fork’s opaque alias.00010000000000000000000100000001010000101000000000001000002010000000001000100000000000001000020000000020000101.(self, stmts, branches): the same list-pair shape as i_63 (pairs). Per pair:
z = i_106(unB(nth3(fields br))) and c = i_80(unB(nth2(fields br)));G1_equal(scalarMul(z, A), add(uncompress(unB(br.f0)), scalarMul(c, uncompress(unB(nth2(fields stmt)))))) && the same with B, br.f1 and nth3(fields stmt);[ap, bp, ap_pt, bp_pt].foldl lemma, with f given by behaviour ∀ x acc, Ev fBody (acc :: x :: σf) (F x acc), used for f1, f2 and fx. Then walk_loop, reverse_loop, box_value, mix_pred, parallel_loop (as pairs_loop), then mix_branch. Then main_mix beside main_owner (red = Constr 1 fs), and one main_body theorem for any red.Withdraw.lean, Typed.lean)λ P N CTX, then LET10 (the forced builtins, unBData P, unBData N; theorems use toTerm P, toTerm nftName), then force(ite(MAIN, delay unit, delay ERROR)).head(tail i_14)), i_16 = tag si, i_19 = info, i_20 = red.tag si:
head(fields si) (strict), i_27 = eq1, i_28 = the foldr-with-continuation combinator, i_29 = tag red (red must be a Constr), i_30 = delay mainBody. Then:
fields red has exactly one field. Step over the proof list: an empty list forces i_30. Otherwise each proof has tag 0 (else ERROR), at least 2 fields, unB(f1) then unB(f0) evaluated, exactly 2, and the step continues on the tail.unI(head(fields si)) strict, then tag(head(tail(fields si))) == 0. The owner’s LogicPublishKernel.publish_iff_registration covers it.PurposesKernel).[CTX, N, P]. main_owner is generic in them.Typed.lean, MintTyped.lean, Readable*.lean)every_context_iff (mix_logic, Typed.lean) and mint_every_context_iff (one_shot_mint, MintTyped.lean), both iffs over every typed ScriptContext. Their conditions are the raw specs: withdrawResult and launchResult, functions over Data.Readable.mix_logic_accepts_iff and one_shot_mint_accepts_iff, built in this order. An independent read of the definitions against the Aiken source (29573c5’s, byte-identical to lovejoin-v2 5cc3631 but for sigma_or.ak’s test formatting) found every handler accepting exactly what the source does. Its notes were all wording, fixed: the name parameter is lovejoin; “at the script” means output_at_script’s whole test; find? skips a holder output that fails the test; xor32’s lengths; the theorems say “returns () iff”, not “errors otherwise”; and the _valid forms’ narrowness, above. Pure Lean about the spec functions, no CEK step. One thing the restatement shows that the source hides: the compiled code stores a Mix statement’s points compressed, so branchHolds reads them back as uncompress(compress(·)).IsData.toData contexts. Don’t touch the CEK proofs: this is pure Lean about the spec functions, so it’s cheap to build. Put it in new modules (Readable*.lean), and add them to lovejoin-every. In order of what a reader most needs:
withdrawResult at tag 0 holds iff there is at least one box, there are as many proofs as boxes, and each proof [t, z] passes Classic’s schnorrVerifies for its box (a, b) against ctx (ownerPred once the program’s prefix01 is fsHash’s constant).ScriptCredential msh with an inline MixDatum of two different 48-byte points;(P, nftName).LogicSortedValue and LogicValueOf: on a sorted value, the ordered searches (policyEntry, nameEntry) are valueOf.boxValue is [("", [("", bl)]), (pol, [(nm, tq)])] for pol ≠ "" and tq ≠ 0 (an ADA-only box when pol = "" or tq = 0, and no ADA entry when bl = 0). insertPolicy on a one-entry list with pol ≠ "" is a two-case lemma.n outputs pay exactly the box value to msh with no stake part and no reference script, each with an inline MixDatum, and the rest aren’t at msh;ctx = blake2b_256(datums ‖ values ‖ msh);compress (uncompress a)), as the program has it: no crypto fact is assumed.launchResult holds iff the mint under P is exactly {lovejoin: 1}, an output to rh holds exactly one of it with an inline reference datum in range (launchDatumOk read as plain inequalities), and the seed is among the inputs.LogicLedgerUniqueness does. The crypto stays opaque.Mint*.lean)Decode Lovejoin/Template/Scripts/one_shot_mint.hex with the same tools and use the same method. The owner’s LaunchSeedSearch and LaunchOutputSearch are loop lemmas in the old style: reuse their facts or rewrite them in this style. A whole-launch Blaster attempt passed 16 GB; this method has no such cost.
#guard_msgs axiom checks on the top theorems (Typed.lean, MintTyped.lean, Readable.lean); the lovejoin-every family in check.sh (defaults to 16 GB, 30 min); seedelf-verification/README.md (What’s proved, Next) and Lovejoin/AnyTx/README.md (the results in the source’s terms, what the restatement shows, the limits); chunk 42’s status line.seedelf-verification/CLAIMS.md, linked from its README; then commit, push and a PR to main. Nothing outside seedelf-verification/ claims verification yet.The claim, drafted (true as written; the caveats stay in the docs):
Two phrases carry weight. Every transaction: Seedelf’s wallet is proved for up to 128 signatories, where the size limit allows 125; everything else has no bound. The Lovejoin v2 contracts it uses: mix_box, mix_logic, reference_holder and one_shot_mint; fee_contract (unused) and the older pools’ scripts are out, so “Lovejoin’s contracts” alone would overclaim.
The original list, all done:
#print axioms guards on the top theorems, and a lovejoin-every family in check.sh.seedelf-verification/README.md (What’s proved, What a ✅ is worth), Lovejoin/AnyTx/README.md, and chunk 42’s status.marketing-hype-docs-honest). The docs keep the caveats:
serialise_data, bytestring_to_integer and xor through our fork’s aliases;The upstream checks of 2026-11-06 (PlutusCoreBlaster’s #71 and #72 merged, #73 and #27 open, the aliases never offered, Lean-blaster #455 conflicting, and what was offered to the owner) are in chunk 41’s plan, Where upstream stands. The decisions are still the owner’s.
#368 (web-wallet/lovejoin-every-tx, into main, merged as d190f717):
32f80205): the 25 Lovejoin/Every/ modules, mix_logic’s withdrawals and one_shot_mint’s launch over raw Data, then over every typed V3 context, then in the Aiken source’s terms (Readable*), with their axiom guards; the path tools; the lovejoin-every family in check.sh.e6897cde): seedelf-verification/CLAIMS.md, the two READMEs citing the readable theorems and saying the _valid forms are narrower, this plan as its record, and chunk 42’s step 10.1.8.1’s release review then fixed the docs (CLAIMS.md’s Where it stops, the READMEs) and check.sh (an Every module named alone gets the family’s caps, and the family builds the 51 modules it imports from elsewhere first), guarded the two cited theorems’ axioms by name, moved what still holds into Lovejoin/Every/README.md and the upstream checks into chunk 41’s plan, and archived this file.