rocq-piler
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@rocq-pilerprove that forall n, n + 0 = n"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🤖 rocq-piler

Let rocq-piler do the heavy lifting for your proofs.
Overview
rocq-piler is an MCP server for interactive Coq/Rocq proof development via coq-lsp. It provides a tool suite that lets AI agents explore, write, verify, and refine proofs with immediate feedback.
Related MCP server: lean-lsp-mcp
Tools
Tool | Description |
| Find relevant lemmas in the Coq environment by name or pattern |
| Write or modify |
| Full file verification with modes: |
| Case-split a proof and auto-close easy cases; returns hash-addressable admits for survivors |
| Batch-close surviving admits with a portfolio of tactics (supports multi-line with bullets) |
| Wipe a proof body and start fresh |
| Inspect proof state: goals, bullet stack, admit hashes, proof script |
Workflow Discipline
The most effective approach for AI proof assistants:
edit_filefirst — write proofs and helper lemmas directly. Instant error + goal feedback per edit. No need forbash+coqc.check_filefor status — usemode: "errors"(compact) for quick verification,mode: "first"for tight feedback loops.stratifyto escalate — when a proof has too many cases to write by hand, split it with stratify. Returns hash-addressable admits for survivors.close_admitsto finish — batch-close survivors by hash. Tactics support multi-line scripts with bullets.reset_proofwhen stuck — wipe and restart cleanly. Auto-detect thrashing after 5 consecutive same-error edits.
Benchmarks
Problem | Duration | Cost | Tools |
insertion_sort | 206s | $0.03 | search(10), check(5), edit(5) |
dep_vec | 565s | $0.07 | edit(14), check(6) |
mergesort | 1018s | $0.19 | — |
Stats are updated as runs complete. All benchmarks use DeepSeek V4 Pro.
Architecture
rocq-piler uses a content-addressed admit system: every open goal has a unique hash computed from its goal text. Stratify and focus_proof return hashes for survivors, and close_admits targets them by hash — close all matching admits at once across any bullet depth.
edit_file → instant feedback → check_file → stratify → close_admits → QedGetting Started
Prerequisites
opam install coq-lspInstallation
cd rocq-piler
npm install
npm run build
npm test # unit tests
npm run test:integration # integration testsUsage with OpenCode
Add to ~/.config/opencode/opencode.json:
{
"mcp": {
"rocq-piler": {
"type": "local",
"command": ["node", "/path/to/rocq-piler/dist/index.js", "--coq-lsp-path", "coq-lsp"],
"enabled": true
}
}
}Running Benchmarks
# Single run
bash benchmarks/harness/run.sh --model deepseek/deepseek-v4-pro --problem pcf_ref
# Batch sweep
bash benchmarks/harness/batch.sh --problems insertion_sort,dep_vec,pcf_ref
# Evaluate
bash benchmarks/harness/evaluate.sh benchmarks/complete/pcf_ref.vLicense
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Lean 4 MCP server: compile, prove theorems, and formalize math with Mathlib.
Official DevSpeak MCP server — translate technical text into formal specs from any AI IDE or agent
MCP server for AI dialogue using various LLM models via AceDataCloud
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server that gives small LLMs verified symbolic-math & logic tools.61Apache 2.0
- AlicenseBqualityDmaintenanceMCP server for agentic interaction with the Lean theorem prover via LSP, providing tools for understanding, analyzing, and interacting with Lean projects.2121MIT
- AlicenseNot gradedqualityAmaintenanceMCP server that gives LLMs access to formal verification via Z3 and SWI-Prolog, plus tree-sitter-based source code analysis. Translates natural language problems into formal logic using a template-based pipeline, verifies results with mathematical certainty, and analyzes call graphs for reachability, dead code, and impact analysis.100 npm212Apache 2.0
- AlicenseAqualityDmaintenanceAn MCP server that exposes the Prova reasoning verifier, enabling AI agents to verify their own reasoning and kernel-check Lean 4 proofs before outputting answers.5MIT