Skip to main content
Glama

lean_goal

Retrieve proof goals at specific positions in Lean files to track how tactics transform the state and verify proof completion.

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

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesAbsolute path to Lean file
lineYesLine number (1-indexed)
columnNoColumn (1-indexed). Omit for before/after

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/oOo0oOo/lean-lsp-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server