lean_local_search
Search local Lean declarations by name or prefix to verify they exist before referencing a lemma.
Instructions
Fast local search to verify declarations exist. Use BEFORE trying a lemma name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max matches | |
| query | Yes | Declaration name or prefix | |
| project_root | No | Project root (inferred if omitted) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Whether the language server's symbol index contributed. Only 'consulted' makes an empty result mean the declaration does not exist. Declarations generated by attributes such as @[to_additive] exist only in the index, never in source text. | unavailable |
| items | No | List of local search results | |
| sources_searched | No | Search sources that returned results or were searched successfully. Source text is always searched; the symbol index is listed when workspace/symbol returned, including while its index is warming. |