{"uid":"cap_O8_0cR5j9T_GIWWAh3k7l","slug":"stealthmark-differential-specification-verifier-35af22ae","name":"StealthMark Differential Specification Verifier","description":"Autonomous Z3 Formal Invariant Prover (ERC-4626 Vaults, Polymarket Baskets, ZK Circuits, Differential Consensus) &amp; 100-Point Perimeter Security Gateway on Base Mainnet (x402 v2).","url":"https://gateway.stealthmark.io/x402/verify-differential-spec?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"seed":{"type":"integer","default":42},"code_a":{"type":"string"},"code_b":{"type":"string"},"arg_names":{"type":"array","items":{"type":"string"}},"fuzz_iterations":{"type":"integer","default":256}}},"responseSchema":{"type":"json","example":{"divergence":{"type":["object","null"]},"equivalent":{"type":"boolean"},"solver_mode":{"type":"string"},"checked_cases":{"type":"integer"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_J1-Xel-rrWZpNv09x34kB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Formally verifies behavioral equivalence between two code implementations using Z3 SMT solving and fuzzing, returning whether they are equivalent or diverge","exampleAgentPrompt":"Run a differential equivalence check between these two Solidity vault functions — use 512 fuzz iterations and argument names ['shares', 'assets', 'owner'] to find any cases where they diverge.","exampleUseCases":[{"title":"ERC-4626 vault refactor safety check","prompt":"I just rewrote our ERC-4626 convertToAssets function and want to make sure it's mathematically equivalent to the original — run a formal Z3 proof with 256 fuzz iterations on both versions using argument names ['shares', 'totalAssets', 'totalSupply'] and tell me if there are any diverging inputs."},{"title":"ZK circuit equivalence after optimization","prompt":"We optimized our ZK circuit arithmetic but need to prove the new version matches the old one exactly — compare these two implementations with argument names ['x', 'y', 'z'] using 1024 fuzz iterations and seed 99 to find any counterexamples."},{"title":"Polymarket basket pricing logic audit","prompt":"Can you formally verify that our refactored Polymarket basket pricing function behaves identically to the reference implementation? Use argument names ['p1', 'p2', 'weight'] with 256 fuzz iterations and default seed, and tell me if the solver finds any divergence."}],"resultDescription":"Returns a JSON object with: 'equivalent' (boolean — whether both code implementations are provably equivalent), 'divergence' (null if equivalent, or an object showing the specific input values that caused divergence), 'solver_mode' (string indicating whether Z3 formal proof or fuzzing was used), and 'checked_cases' (integer count of input cases examined).","failureModes":["Unparseable code snippets cause solver initialization failure","Argument name mismatch with actual function signatures produces incorrect results","Very high fuzz_iterations may hit timeout limits","Code with side effects or non-determinism may produce false equivalences","Undecidable theories in Z3 may result in 'unknown' solver mode without a definitive answer"],"whenToPreferThis":"Choose this endpoint when you need formal or semi-formal proof of behavioral equivalence between two code implementations, especially for security-sensitive smart contract logic (ERC-4626 vaults, ZK circuits, DeFi protocols). It combines Z3 SMT solving with fuzzing for a layered verification approach. Prefer it over manual unit testing when you need counterexample witnesses or mathematical guarantees, and over generic fuzzing tools when you need formal invariant checking in a blockchain/DeFi context.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-16T18:34:19.414Z","isFirstParty":false,"canonicalSlug":"stealthmark-differential-specification-verifier-35af22ae"}