Rocq Run At
rocq_run_atRuns Rocq commands at a specified file position and returns their output, enabling queries such as Search, Check, About, and Locate plus proof-state inspection for debugging.
Instructions
Run Rocq commands at a file position and return their output.
Use this for running Rocq commands, such as:
Search Nat.add.
Search insert delete "_eq".
Check (3 + 4).
About Nat.add.
Locate "+".
Show. (to show the proof state at a position) The tool is also useful for one-off debugging tasks.
Prefer calling this tool right after imports or between lemmas/definitions. Only use within proofs when necessary.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file": "<file>",
"commands": "<commands>",
"line": "<line>"
},
"name": "rocq_run_at"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to a .v file. | |
| line | Yes | 1-based line number in the file at which the commands string is ran. | |
| commands | Yes | One string containing one or more complete Rocq commands to run at the same file position, e.g. 'Require Import List. Check list.' | |
| character | No | 1-based column offset. Defaults to 1 (start of line). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||