lean_verify
Verify a Lean theorem's axioms and optionally scan its source file for suspicious patterns. Checks only the given file, not imports.
Instructions
Check theorem axioms + optional source scan. Only scans the given file, not imports.
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` |