lean_hammer_premise
Identify relevant premises from a Lean proof state. Provide file path, line, and column to search for useful lemmas to advance your proof.
Instructions
Limit: 3req/30s. Search for premises based on proof state using the lean hammer premise search.
Args:
file_path (str): Abs path to Lean file
line (int): Line number (1-indexed)
column (int): Column number (1-indexed)
num_results (int, optional): Max results. Defaults to 32.
Returns:
List[str] | str: List of relevant premises or error message
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 | ||
| column | Yes | ||
| file_path | Yes | ||
| num_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |