New advertisers: 50% off your first month with code FIRSTMONTHSee slots
kylezh avatar

rocq-live

kylezh/rocq-live

Live Rocq (Coq) proof sessions: goals, tactics, and checks, with no per-project setup.

tools
14
transport
STDIO
last updated
Nov 17, 2026
View on GitHub

What it does

  • Steps through proofs with rocq_goto, rocq_run, rocq_goals, and rocq_back, and queries with rocq_query and rocq_try
  • Checks and builds with rocq_check, rocq_compile, and rocq_impact; rocq_audit reports axioms and admits as PASS or FAIL
  • Runs locally over stdio with a coqtop backend, requiring Rocq 9.x and Python 3.9 or later on macOS or Linux
  • Designed for coding agents that need proof states or fast compile feedback without recompiling the whole file each time

Tools

14 tools

Public tool metadata for what this MCP can expose to an agent.

rocq_gotostate just before LINE (default: end, checking every proof); starts a session

state just before LINE (default: end, checking every proof); starts a session

No parameter schema in public metadata yet.

rocq_runrun on the current state (or on the state before LINE); an error changes nothing

run on the current state (or on the state before LINE); an error changes nothing

No parameter schema in public metadata yet.

rocq_queryrun, print, undo (Search, Check, Print, About, …)

run, print, undo (Search, Check, Print, About, …)

No parameter schema in public metadata yet.

rocq_tryeach tactic alone on the current state: which work, goals left (best first); state unchanged

each tactic alone on the current state: which work, goals left (best first); state unchanged

No parameter schema in public metadata yet.

rocq_checkcoqc's verdict on the whole file, re-checking only what changed

coqc's verdict on the whole file, re-checking only what changed

No parameter schema in public metadata yet.

rocq_compilewrite .vo files: FILE's out-of-date dependencies in order, then FILE

write .vo files: FILE's out-of-date dependencies in order, then FILE

No parameter schema in public metadata yet.

rocq_impactwhat an edit to FILE breaks in other files: compile FILE and every file that requires it

what an edit to FILE breaks in other files: compile FILE and every file that requires it

No parameter schema in public metadata yet.

rocq_auditAdmitted/admit/axioms, and Print Assumptions of each declaration against the allowed axioms: PASS/FAIL

Admitted/admit/axioms, and Print Assumptions of each declaration against the allowed axioms: PASS/FAIL

No parameter schema in public metadata yet.

rocq_backundo the last N runs

undo the last N runs

No parameter schema in public metadata yet.

rocq_goalscurrent goals

current goals

No parameter schema in public metadata yet.

rocq_stopkill FILE's session (and forget its recipe), or every idle one (busy ones only with --force)

kill FILE's session (and forget its recipe), or every idle one (busy ones only with --force)

No parameter schema in public metadata yet.

rocq_sessionsrunning sessions: memory, idle time, limits

running sessions: memory, idle time, limits

No parameter schema in public metadata yet.

rocq_statswhat rocq-live did and saved, from its local log

what rocq-live did and saved, from its local log

No parameter schema in public metadata yet.

rocq_infodetected root, toolchain and load path

detected root, toolchain and load path

No parameter schema in public metadata yet.

Readme

rocq-live

Live Rocq (Coq) proof sessions for coding agents and humans, in any project, with no per-project setup.

Without a live session, an agent that wants the goal at line 300 recompiles lines 1–299 every time it looks. With rocq-live, each file gets one long-running coqtop, so a step costs only that step:

$ rocq-live goto theories/Foo.v:42
1 goal
  n : nat
  ============================
  double n = 2 * n
rocq-live: checked up to theories/Foo.v line 41 (asked for line 42)

$ rocq-live run theories/Foo.v 'unfold double. lia.'
No more goals.

Edit the file and call goto again: only the text from the first changed character onwards is re-checked.

The same session also stands in for coqc while you edit. rocq-live check FILE gives coqc's verdict, with the same diagnostics and exit code, but it re-runs only what an edit can affect. After an edit inside a proof, that is just the proof:

$ rocq-live check theories/Big.v          # coqc takes 11 s on this file
rocq-live: ./theories/Big.v OK [41 of 163 sentences re-run, 19 proof(s) checked before kept, 0.3 s]

View the full README on GitHub

Details

Repository
github.com/kylezh/rocq-live
Website
github.com/kylezh/rocq-live
Categories
Developer Tools, Testing & QA
Package
rocq-live
Transport
STDIO
Registry
MCP registry, active

Similar to rocq-live

More Developer Tools