lean_declaration_file
Retrieve file contents containing the declaration of a given Lean symbol. Provide the file path and symbol to locate the source defining that lemma, class, or structure.
Instructions
Get the file contents where a symbol/lemma/class/structure is declared.
Note:
Symbol must be present in the file! Add if necessary!
Lean files can be large, use `lean_hover_info` before this tool.
Args:
file_path (str): Abs path to Lean file
symbol (str): Symbol to look up the declaration for. Case sensitive!
Returns:
str: File contents or error msg
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |