agda_refine_or_intro
Refines an Agda goal with a given expression, or introduces a constructor or lambda when none is provided, choosing the best action automatically.
Instructions
Refine or introduce in a goal (auto-chooses the best action).
Combines refine and intro: tries to refine with the expression if given, otherwise introduces a constructor or lambda. Call agda_load afterwards to refresh goals.
Args: file_path: Absolute path to the .agda file goal_id: The goal/hole number (from agda_load output) expr: Expression to refine with (can be empty for intro)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expr | No | ||
| goal_id | Yes | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |