ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

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.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/bennyzhe/openmath-rocq-theorem
Or

OpenMath 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 (or coqc), dune, and opam are installed and the active opam switch matches the project's .opam-switch or opam file. See the rocq-setup skill for installation and switch management.

  • Companion skills: If companion Rocq skills such as rocq-proof, rocq-ssreflect, rocq-setup, or rocq-dune 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.

  • 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-proof or rocq-ssreflect is already installed, use them as companion guidance; otherwise continue with the local workflow in this skill.

  • Verify: Confirm dune build (or rocq compile <file>.v) passes and no admit or Admitted. remains:

    dune build
    grep -rn 'admit\|Admitted\.' *.v
    
  • Submit: Use the openmath-submit-theorem skill to hash and submit the proof.

Scripts

ActionCommandUse when
Check Rocq versionrocq --versionVerify the active opam switch has the expected Rocq release.
Verify stdlib loadsrocq -e 'From Stdlib Require Import Arith. Check Nat.add_comm.'Confirm the standard library is reachable before proving.
Build projectdune buildAfter each proof attempt; must exit 0 with no errors.
Compile single filerocq compile <file>.vQuick check on a single .v file without a full dune build.
Check for admitsgrep -rn 'admit|Admitted\.' *.vBefore submitting; must return no matches.
Install opam depsopam install . --deps-onlyAfter cloning or changing the project opam file.

Notes

Metadata

Author@bennyzhe
Stars4473
Views0
Updated2026-05-01
View Author Profile
AI Skill Finder

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 skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-bennyzhe-openmath-rocq-theorem": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.