diagnostics
Retrieve HOL4 diagnostics and proof states for an SML script file, waiting until compilation and proof checking finish or returning INCOMPLETE with elapsed time on timeout.
Instructions
textDocument/publishDiagnostics + $/proofStates: a one-line verdict,
the proof tally and the diagnostics. Returns once the compile has
finished and no proof is still checking, or after wait seconds with
INCOMPLETE and how long each unfinished proof has been checking.
Nothing is cancelled: call again to keep waiting. (Clients may move
calls longer than about two minutes to the background.)
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>"
},
"name": "diagnostics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| wait | No |