lean_verify
Verify a Lean theorem's axioms and optionally scan its source file for suspicious patterns; scans only the specified file, not imports.
Instructions
Check theorem axioms + optional source scan. Only scans the given file, not imports.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>",
"theorem_name": "<theorem_name>"
},
"name": "lean_verify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to Lean file | |
| scan_source | No | Scan source file for suspicious patterns | |
| theorem_name | Yes | Fully qualified name (e.g. `Namespace.theorem`) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trust | No | Worst case in `axioms`. 'standard' is the ordinary Mathlib basis; 'incomplete' means sorryAx, so it is not a proof; 'native' means native_decide, trusting the compiler rather than the kernel; 'custom' means other axioms are in play. | standard |
| axioms | No | Axioms used. Standard 3: propext, Classical.choice, Quot.sound | |
| warnings | No | Suspicious source patterns (if enabled) | |
| non_standard_axioms | No | Axioms outside the standard 3 — the reason for `trust` |