openmath-rocq-theorem

v1.0.3

Configures Rocq environments, runs preflight checks, and guides the proving workflow for OpenMath Rocq theorems. Use when the user wants to set up Rocq tooli...

0· 147·1 current·1 all-time
byshentu-org@bennyzhe·duplicate of @bennyzhe/openmath-lean-theorem (1.0.2)

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for bennyzhe/openmath-rocq-theorem.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "openmath-rocq-theorem" (bennyzhe/openmath-rocq-theorem) from ClawHub.
Skill page: https://clawhub.ai/bennyzhe/openmath-rocq-theorem
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install openmath-rocq-theorem

ClawHub CLI

Package manager switcher

npx clawhub@latest install openmath-rocq-theorem
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description match the requested actions: the skill guides Rocq/Coq proving, checks for rocq/coqc, dune, and opam, and references companion skills. No unrelated binaries, credentials, or config paths are asked for.
Instruction Scope
SKILL.md instructs only local workspace commands (rocq, dune, opam, grep, etc.), preflight checks, and a proof loop. It does not instruct reading unrelated system files, exfiltrating data, or calling external endpoints. It does assume a previously created theorem workspace and references only local project files.
Install Mechanism
No install spec and no bundled code — instruction-only. Nothing is downloaded or written to disk by the skill itself, minimizing install-time risk.
Credentials
The skill requires no environment variables, credentials, or config paths. The declared runtime commands (rocq, dune, opam) are appropriate for the stated purpose.
Persistence & Privilege
always is false and the skill is user-invocable. It does not request persistent presence or modify other skills/configs. Autonomous invocation remains allowed by platform default but is not a special privilege here.
Assessment
This package is coherent for helping with Rocq/Coq proofs. Before running its suggested commands, run them in a project-local or isolated environment (container/VM) for untrusted code. Be cautious when running opam install on unreviewed projects (build/install hooks can execute code). If you rely on companion skills, install them only after reviewing their source or installing them into a deliberate local skills directory.

Like a lobster shell, security has layers — review code before you run it.

latestvk97ay02e2kqnb3m3c0j13ed3b983j8ne
147downloads
0stars
3versions
Updated 1mo ago
v1.0.3
MIT-0

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

  • Rocq version: OpenMath Rocq workspaces target Rocq 9.1.0 (current stable, September 2025) with Platform 2025.08.2.
  • Companion skills: rocq-proof (proving methodology, tactic reference, Ltac2), rocq-ssreflect (SSReflect / MathComp style), rocq-setup (opam, toolchain, editor), and rocq-dune (build system, _CoqProject, dune stanzas) are useful companions when already installed. Optional companions: rocq-mwe, rocq-bisect, rocq-extraction, rocq-mathcomp-build.
  • Install boundary: This isolated skill should not instruct copying unseen rocq-* directories into ~/.agents/skills 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 .codex/skills or .claude/skills.
  • Stdlib prefix: Use From Stdlib Require Import for Rocq 9.x. The legacy From Coq Require Import still works with a deprecation warning; prefer From Stdlib for all new proofs.
  • Verification status: A proof is complete only when dune build exits 0, no admit or Admitted. remains, and the LSP panel shows no errors or warnings.

References

Load when needed (one level from this file):

Comments

Loading comments...