agda_infer_in_goal
Infer the type of an expression within a goal's local context, using locally-bound variables, to type-check Agda code during proof development.
Instructions
Infer the type of an expression in the context of a specific goal.
Unlike agda_infer which works at top level, this infers within a goal's local context (with access to locally-bound variables).
Args: file_path: Absolute path to the .agda file goal_id: The goal/hole number (from agda_load output) expr: The expression to type-check
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expr | Yes | ||
| goal_id | Yes | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |