Two flags for printing goals: -upto and -lastgoals#944
Two flags for printing goals: -upto and -lastgoals#944namasikanam wants to merge 3 commits intoEasyCrypt:mainfrom
Conversation
|
Extend and use LSP instead. |
|
Reopening (I changed my mind). I will review it. I don't think these are the exact options that we want and this will allow LLM to have a rough interface to EasyCrypt when the (to come) MCP is not in used. |
|
@namasikanam Can you explain what instructions you give to an LLM to use these options? Maybe you could document? |
|
@strub These are the instructions I gave. They simply explain the option and the tactic. I can document them. I think they are already documented in the help message. If they need better documenting, do you think where is the best place? Maybe the main readme? For an MCP of EC, I think it's better to have two modes. 1. compilation mode, which are on the top of My design of the usage of these two modes follows how human deals with EC proofs. The compilation mode is used globally to check whether a file is finished or quickly jump to the sticking point, while the interaction mode is used locally to figure out how to close a proof. |
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Move -upto and -lastgoals out of `compile` into a new `llm` command with no progress bar and no .eco output. Fix several issues: - -upto: make line-only case exclusive (consistent with line:col case) - -upto: validate input with clear error messages - -lastgoals: format goals only on failure instead of snapshotting after every successful command - Silent progress mode no longer suppresses error messages on stderr - Print "No active proof." when goals are requested outside a proof
5bd4450 to
9ecad21
Compare
Two flags for printing goals.
-uptocompiles up to a position and prints goals there-lastgoalsprints the last unproven goalsI add these two flags for MCP, so that the coding agent can see the goals as needed.