lean_hammer_premise
Suggest relevant lemmas and premises for automation tactics at a specified line and column in a Lean file.
Instructions
Limit: 6req/30s. Get premise suggestions for automation tactics at a goal position.
Returns lemma names to try with `simp only [...]`, `aesop`, or as hints.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>",
"line": "<line>",
"column": "<column>"
},
"name": "lean_hammer_premise"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Line number (1-indexed) | |
| column | Yes | Column number (1-indexed) | |
| file_path | Yes | Absolute or project-root-relative path to Lean file | |
| num_results | No | Max results |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | List of premise results |