Skip to main content
Glama

lean_profile_proof

Analyze performance of Lean theorem proofs by running profiling to identify slowest lines and timing categories for optimization.

Instructions

Run lean --profile on a theorem. Returns per-line timing and categories.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesAbsolute path to Lean file
lineYesLine where theorem starts (1-indexed)
top_nNoNumber of slowest lines to return
timeoutNoMax seconds to wait

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