lean_check
Compile Lean 4 snippets to verify proofs. Returns the compiler verdict, exposing real errors for repair, and reports unavailable when no Lean toolchain is installed.
Instructions
Compile a Lean 4 snippet and return the compiler's verdict. On failure the real error is returned so the agent can repair its own proof. If no Lean toolchain is installed the result is unavailable — never a pass.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Lean 4 source | |
| timeout | No |