lean_goal
Get proof goals at a line in a Lean file; omit column to view goals before and after a tactic, showing proof state transformations.
Instructions
Get proof goals at a position. MOST IMPORTANT tool - use often!
Omit column to see goals_before (line start) and goals_after (line end),
showing how the tactic transforms the state. "no goals" = proof complete.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Line number (1-indexed) | |
| column | No | Column (1-indexed). Omit for before/after | |
| file_path | Yes | Absolute or project-root-relative path to Lean file |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goals | No | Goal list at specified column position | |
| goals_after | No | Goals at line end (when column omitted) | |
| goals_before | No | Goals at line start (when column omitted) | |
| line_context | Yes | Source line where goals were queried |