Skills 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.
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/bennyzhe/openmath-open-theorem" ~/.claude/skills/clawdbot-skills-openmath-open-theorem && rm -rf "$T"
manifest:
skills/bennyzhe/openmath-open-theorem/SKILL.mdsource content
OpenMath Open Theorem
Instructions
Query the OpenMath library to discover and scaffold open theorems. The discovery scripts use
OPENMATH_SITE_URL and OPENMATH_API_HOST when set, and otherwise fall back to the default production endpoints.
First-run gate
Before discovery on a new machine or workspace, check the shared
openmath-env.json. Auto-discovery only checks ./.openmath-skills/openmath-env.json and ~/.openmath-skills/openmath-env.json.
This gate is mandatory. If
openmath-env.json is missing, or if it exists but preferred_language is missing, stop. Do not query the OpenMath theorem list, theorem detail, or download APIs until setup is complete.
If no config exists, stop and ask the user where to create it, then collect at least:
:preferred_language
orleanrocq- config visibility / save scope:
or./.openmath-skills~/.openmath-skills - the submit/authz fields only if the user wants end-to-end submission later
Command:
python3 scripts/check_openmath_env.py
Workflow checklist
- Env: Run
. Ifcheck_openmath_env.py
is missing fromopenmath-env.json
and./.openmath-skills
, or~/.openmath-skills
is missing, ask the user to finish setup before continuing.preferred_language - Explore: Run
only after the first-run gate passes. If no language is passed, it usesfetch_theorems.py [language]
frompreferred_language
and must not fan out to other languages automatically.openmath-env.json - Detail: Run
only after the first-run gate passes.fetch_theorem_detail.py <id> - Download: Run
only after the first-run gate passes.download_theorem.py <id> - Prove: Use the
skill for environment setup, preflight checks, and proving.openmath-lean-theorem - Submit: Use the
skill to hash and submit the proof.openmath-submit-theorem - Verify: Run
and confirm your address is the prover and status is verified.fetch_theorem_detail.py <id> - Claim: Use the
skill to generate the withdrawal command.openmath-claim-reward
Scripts
| Script | Command | Use when |
|---|---|---|
| Shared env check | | Mandatory first-run gate; validates shared config, preferred language, and the resolved OpenMath website/API endpoints. |
| List open theorems | | Listing or filtering open theorems after the first-run gate passes. : optional or . Without an explicit CLI language, query only the configured . |
| Theorem detail | | Need description, metadata, and formal definition (source) for a theorem ID; refuses to run until the first-run gate passes. |
| Download & scaffold | | Creating a local Lean or Rocq proof workspace after the first-run gate passes. |
openmath_api.py is the shared API client. openmath_env_config.py reads shared user preferences from openmath-env.json.
Notes
- Endpoints: Default website is
; default API host ishttps://openmath.shentu.org
. Runtime overrides:https://openmath-be.shentu.org
,OPENMATH_SITE_URL
.OPENMATH_API_HOST - Language: User-facing and API language naming is
.rocq - No fallback: If
ispreferred_language
, query only Lean by default. If no theorems are found, report that result and stop; do not automatically query Rocq, and vice versa.lean - Lean scaffold: Pins Lean and mathlib4 to
. Rocq scaffold isv4.28.0
-based._CoqProject - After download: Use the
skill for Lean environment setup, preflight, external skill installation, and the proving workflow.openmath-lean-theorem
References
Load when needed (one level from this file):
- references/init-setup.md — Discovery-first setup flow for shared
, preferred language, and config visibility.openmath-env.json - references/reward_overview.md — How rewards are calculated and how to claim them.