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
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | ||
| column | Yes | ||
| file_path | Yes | ||
| num_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |