openmath-lean-theorem
Configures Lean environments, installs external proof skills, runs preflight checks, and guides the workflow for proving downloaded OpenMath Lean theorems locally.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/bennyzhe/openmath-lean-theoremOpenMath Lean Theorem
Instructions
Set up the Lean proving environment, validate toolchains, and prove downloaded OpenMath theorems locally. Assumes the theorem workspace was already created by the openmath-open-theorem skill.
This skill does not run benchmark providers, prompt-based agent comparisons, or trace persistence workflows. Those belong to the separate openmath-lean-benchmark skill.
Workflow checklist
- Environment: Verify
lean,lake, andelanare installed and match the workspacelean-toolchain. - External skills: Install required Lean proof skills from leanprover/skills. Preferred manual install:
If you use preflight auto-install, first review the upstream repo and then pass an explicit target such asnpx leanprover-skills install lean-proof npx leanprover-skills install mathlib-build--install-dir .codex/skillsor--install-dir .claude/skillsso the write location is deliberate. Do not run auto-install without an explicit install dir. - Preflight: Run
python3 scripts/check_theorem_env.py <workspace>(see references/preflight.md). - Prove: Use
lean-proof/mathlib-buildskills to complete the proof. See references/proof_playbook.md for the OpenMath-specific proving loop. - Verify: Confirm
lake build -q --log-level=infopasses and nosorryremains. - Submit: Use the
openmath-submit-theoremskill to hash and submit the proof.
Scripts
| Script | Command | Use when |
|---|---|---|
| Preflight check | python3 scripts/check_theorem_env.py <workspace> | After download, before proving; validates toolchain, required skills, and initial build. |
| Preflight (auto) | python3 scripts/check_theorem_env.py <workspace> --auto-install-skills --install-dir <path> | Auto-install missing Lean skills during preflight into an explicit skills dir. |
Notes
- Lean version: Scaffolds pin
leanprover/lean4:v4.28.0andmathlib4 v4.28.0(set byopenmath-open-theorem'sdownload_theorem.py). - External skills: Not bundled. Required:
lean-proof,mathlib-build. Optional:lean-mwe,lean-bisect,nightly-testing,mathlib-review,lean-setup. Manualnpx leanprover-skills install ...is preferred; preflight auto-install additionally requiresgit, explicit user approval, and an explicit install dir. - Benchmarking: For agent evaluation, prompt comparison, or regression testing on the bundled Lean benchmark corpus, use the separate
openmath-lean-benchmarkskill.
References
Load when needed (one level from this file):
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-lean-theorem": {
"enabled": true,
"auto_update": true
}
}
}Related 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.
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.