openmath-rocq-theorem
Configures Rocq environments, runs preflight checks, and guides the proving workflow for OpenMath Rocq theorems. Use when the user wants to set up Rocq tooling, prove a downloaded OpenMath theorem in Rocq/Coq, or verify and submit a Rocq proof.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/bennyzhe/openmath-rocq-theoremOpenMath Rocq Theorem
Instructions
Set up the Rocq proving environment, validate opam switches, and prove downloaded OpenMath theorems. Assumes the theorem workspace was already created by the openmath-open-theorem skill.
This skill package is self-contained: it consists of this SKILL.md plus the local references/ files in this directory. It does not bundle or install sibling rocq-* companion skills.
Workflow checklist
-
Environment: Verify
rocq(orcoqc),dune, andopamare installed and the active opam switch matches the project's.opam-switchoropamfile. See therocq-setupskill for installation and switch management. -
Companion skills: If companion Rocq skills such as
rocq-proof,rocq-ssreflect,rocq-setup, orrocq-duneare already installed in the active agent, use them. See references/companions.md for when each one is useful. This isolated package does not include their code and does not install them for you. -
Preflight: Confirm the environment is healthy before proving:
rocq --version rocq -e 'From Stdlib Require Import Arith. Check Nat.add_comm.' dune --version opam list rocq-prover -
Prove: Follow the minimal Rocq proving loop in references/proof_playbook.md. If
rocq-prooforrocq-ssreflectis already installed, use them as companion guidance; otherwise continue with the local workflow in this skill. -
Verify: Confirm
dune build(orrocq compile <file>.v) passes and noadmitorAdmitted.remains:dune build grep -rn 'admit\|Admitted\.' *.v -
Submit: Use the
openmath-submit-theoremskill to hash and submit the proof.
Scripts
| Action | Command | Use when |
|---|---|---|
| Check Rocq version | rocq --version | Verify the active opam switch has the expected Rocq release. |
| Verify stdlib loads | rocq -e 'From Stdlib Require Import Arith. Check Nat.add_comm.' | Confirm the standard library is reachable before proving. |
| Build project | dune build | After each proof attempt; must exit 0 with no errors. |
| Compile single file | rocq compile <file>.v | Quick check on a single .v file without a full dune build. |
| Check for admits | grep -rn 'admit|Admitted\.' *.v | Before submitting; must return no matches. |
| Install opam deps | opam install . --deps-only | After cloning or changing the project opam file. |
Notes
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-bennyzhe-openmath-rocq-theorem": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
openmath-lean-theorem
Configures Lean environments, installs external proof skills, runs preflight checks, and guides the workflow for proving downloaded OpenMath Lean theorems locally.
openmath-lean-theorem
Configures Lean environments, installs external proof skills, runs preflight checks, and guides the workflow for proving downloaded OpenMath Lean theorems locally.
openmath-submit-theorem
Submits proofs to the OpenMath platform using a two-stage commit-reveal flow. Use when the user wants to commit a proof hash or reveal a Lean/Rocq proof on the Shentu network.
openmath-claim-reward
Claims earned rewards from the OpenMath platform. Use when the user wants to query claimable imported/proof rewards or withdraw verified Shentu rewards after a proof has passed verification.
openmath-open-theorem
Queries open formal verification theorems from the OpenMath platform. Use when the user asks for a list of open theorems, wants Lean or Rocq-specific theorems, needs full detail for a theorem ID, or wants to download a theorem and scaffold a local proof workspace.