assura_ir_verify
Verify Implementation IR against an Assura contract with SMT solvers, returning per-clause results, counterexamples, and progress to drive the AI verification loop.
Instructions
Verify an Implementation IR against an Assura contract using SMT solvers (Z3/CVC5). Returns per-clause verification results with counterexamples and progress tracking. The core tool for the AI verification loop: generate IR, submit for verification, and read feedback. Stop when there is no Counterexample. Unknown is acceptable because some features are not encoded in SMT; do not keep rewriting the IR because a clause is Unknown. Provide contract via source/file and IR via ir/ir_file. When the file has more than one contract, pass decl (same names as assura_ir_prompt) so IR is not checked against the first contract only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "assura_ir_verify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ir | No | Implementation IR source text (inline). Provide either `ir` or `ir_file`. | |
| decl | No | Contract name when the file has more than one `contract` (same as `assura_ir_prompt`). | |
| file | No | Path to an .assura contract file. Provide either `source` or `file`. | |
| source | No | Assura contract source (inline). Provide either `source` or `file`. | |
| ir_file | No | Path to an .ir file. Provide either `ir` or `ir_file`. |