lean_state_search
Find theorems applicable to the current Lean proof goal using premise-search.com, given a file path, line, and column.
Instructions
Limit: 3req/30s. Search for theorems based on proof state using premise-search.com.
Only uses first goal if multiple.
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 5.
Returns:
List | str: Search results or error msg
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_state_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | ||
| column | Yes | ||
| file_path | Yes | ||
| num_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |