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
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to Lean file | |
| line | Yes | Line where theorem starts (1-indexed) | |
| top_n | No | Number of slowest lines to return | |
| timeout | No | Max seconds to wait |