fix(symbolic-spl): decompose multisig signer pubkeys to avoid SMT timeout#1000
Merged
Stevengre merged 1 commit intofeature/p-tokenfrom Mar 24, 2026
Merged
Conversation
2f7603c to
510e5e4
Compare
…eout Replace opaque symbolic List variables (?SplSigner0:List etc.) in the cheatcode-is-spl-multisig rule with concrete Lists of 32 individual symbolic Int byte variables via #mkSplPubkey helper. Previously, pubkey comparisons via Processor::cmp_pubkeys produced KEY1 ==K KEY2 where one side was a fully symbolic List. The Haskell backend sent this to Z3 as opaque List equality, which timed out when path constraints accumulated to ~600+. With decomposed byte variables, ==K on two structurally-concrete Lists automatically reduces to element-wise integer equalities (e.g. ?SplSi0B0 ==Int ARG_UINT196 andBool ...), which Z3 solves instantly. Verified: test_process_burn_multisig proof changes from SMT timeout crash (377 nodes) to PASSED (495 nodes, 0 errors). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
510e5e4 to
26e9ca6
Compare
dkcumming
approved these changes
Mar 24, 2026
Collaborator
dkcumming
left a comment
There was a problem hiding this comment.
Nice, glad to see the it is speeding things up. Not sure if this catches all Pubkey instances but we can keep an eye out and see if the proofs are handing on any, and at one point we will do a general clean up I think and see if anything is missed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
?SplSigner0:Listetc.) incheatcode-is-spl-multisiginto concrete Lists of 32 individual symbolic Int byte variables via new#mkSplPubkey/#pubkeyByteBoundshelpersKEY1 ==K KEY2) with a fully symbolic List side were sent to Z3 as opaque List equality, causing SMT timeout when path constraints accumulated to ~600+==Kautomatically reduces to element-wise integer equalities (e.g.?SplSi0B0 ==Int ARG_UINT196 andBool ...), which Z3 solves instantlyVerification
test_process_burn_multisig