{"uid":"cap_Wcq8l9xQCm9hdZXBnUpqm","slug":"stealthmark-zk-bitvec-formal-prover-4f210583","name":"StealthMark ZK & BitVec Formal Prover","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-zk-and-bitvec?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"expr":{"type":"string"},"mode":{"enum":["zk","bitvec"],"type":"string"},"output_var":{"type":"string"},"witness_vars":{"type":"array","items":{"type":"string"}},"public_inputs":{"type":"array","items":{"type":"string"}},"var_bitwidths":{"type":"object"},"target_bitwidth":{"type":"integer"},"constraints_exprs":{"type":"array","items":{"type":"string"}}}},"responseSchema":{"type":"json","example":{"verified":{"type":"boolean"},"check_type":{"type":"string"},"solver_mode":{"type":"string"},"counterexample":{"type":["object","null"]}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IrYnvqw6OwUJbIr2dWpvZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Formally verifies ZK circuit constraints and bit-vector expressions using the Z3 SMT solver, returning satisfiability results and counterexamples.","exampleAgentPrompt":"Formally verify this ZK circuit constraint — the expression is `sha256_out == hash(witness)`, mode is zk, with output_var `sha256_out`, witness_vars `['witness']`, and public_inputs `['sha256_out']` — and tell me if it's satisfiable or give me a counterexample.","exampleUseCases":[{"title":"ZK circuit satisfiability check","prompt":"Can you verify this zero-knowledge circuit constraint: `out == a * b + c`, using zk mode, with output_var set to `out`, witness_vars `['a','b','c']`, and public_inputs `['out']`? I need to know if it's satisfiable or see a counterexample."},{"title":"Bit-vector overflow invariant proof","prompt":"Run a formal bitvec check on the expression `x + y < 256` with target_bitwidth 8 and var_bitwidths `{x: 8, y: 8}` — I need to know if this arithmetic invariant holds for all possible 8-bit values or if Z3 can find a counterexample."},{"title":"ERC-4626 vault share invariant validation","prompt":"I need to formally prove that my ERC-4626 vault invariant holds — the constraint expression is `shares * pricePerShare == totalAssets`, output_var is `totalAssets`, in bitvec mode with 128-bit target_bitwidth. Can you run the Z3 prover and show me any counterexample if it fails?"}],"resultDescription":"A JSON object containing: `verified` (boolean indicating whether the expression/constraints are satisfiable or proven), `check_type` (what kind of check was performed), `solver_mode` (zk or bitvec), and `counterexample` (an object with variable assignments that violate the constraints, or null if verified).","failureModes":["Unsupported expression syntax causes Z3 parse error","Bit-width mismatches between var_bitwidths and target_bitwidth produce invalid results","Undeclared variables in witness_vars or public_inputs cause solver failures","Timeout on complex constraint systems with many variables","Invalid mode enum value returns a 400 error","Missing required expr field returns a validation error"],"whenToPreferThis":"Choose this endpoint when you need on-chain-paid, pay-per-call formal SMT verification without running Z3 locally — especially for ZK circuit constraint checking or bit-vector arithmetic invariants in smart contract contexts. Prefer it over local Z3 or heavyweight auditing tools when you want a lightweight, API-accessible formal prover with Base Mainnet x402 micropayment access and no infrastructure setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-16T18:32:36.257Z","isFirstParty":false,"canonicalSlug":"stealthmark-zk-bitvec-formal-prover-4f210583"}