Skills 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.
git clone https://github.com/openclaw/skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/bennyzhe/openmath-rocq-theorem" ~/.claude/skills/clawdbot-skills-openmath-rocq-theorem && rm -rf "$T"
skills/bennyzhe/openmath-rocq-theorem/SKILL.mdOpenMath 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
(orrocq
),coqc
, anddune
are installed and the active opam switch matches the project'sopam
or.opam-switch
file. See theopam
skill for installation and switch management.rocq-setup -
Companion skills: If companion Rocq skills such as
,rocq-proof
,rocq-ssreflect
, orrocq-setup
are 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.rocq-dune -
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
orrocq-proof
is already installed, use them as companion guidance; otherwise continue with the local workflow in this skill.rocq-ssreflect -
Verify: Confirm
(ordune build
) passes and norocq compile <file>.v
oradmit
remains:Admitted.dune build grep -rn 'admit\|Admitted\.' *.v -
Submit: Use the
skill to hash and submit the proof.openmath-submit-theorem
Scripts
| Action | Command | Use when |
|---|---|---|
| Check Rocq version | | Verify the active opam switch has the expected Rocq release. |
| Verify stdlib loads | | Confirm the standard library is reachable before proving. |
| Build project | | After each proof attempt; must exit 0 with no errors. |
| Compile single file | | Quick check on a single file without a full dune build. |
| Check for admits | | Before submitting; must return no matches. |
| Install opam deps | | After cloning or changing the project file. |
Notes
- Rocq version: OpenMath Rocq workspaces target Rocq 9.1.0 (current stable, September 2025) with Platform 2025.08.2.
- Companion skills:
(proving methodology, tactic reference, Ltac2),rocq-proof
(SSReflect / MathComp style),rocq-ssreflect
(opam, toolchain, editor), androcq-setup
(build system,rocq-dune
, dune stanzas) are useful companions when already installed. Optional companions:_CoqProject
,rocq-mwe
,rocq-bisect
,rocq-extraction
.rocq-mathcomp-build - Install boundary: This isolated skill should not instruct copying unseen
directories intorocq-*
or any other global skills directory. If you are installing from the full repository, review the companion skill folders there and copy them only into a deliberate project-local skills directory such as~/.agents/skills
or.codex/skills
..claude/skills - Stdlib prefix: Use
for Rocq 9.x. The legacyFrom Stdlib Require Import
still works with a deprecation warning; preferFrom Coq Require Import
for all new proofs.From Stdlib - Verification status: A proof is complete only when
exits 0, nodune build
oradmit
remains, and the LSP panel shows no errors or warnings.Admitted.
References
Load when needed (one level from this file):
- references/companions.md — When to use optional Rocq companion skills if they are already installed.
- references/languages.md — Rocq version, Stdlib prefix, libraries, and proof style.
- references/proof_playbook.md — Minimal standalone proving loop for downloaded OpenMath Rocq theorem workspaces.