Skills 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
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-len-theorem" ~/.claude/skills/openclaw-skills-openmath-lean-theorem-b0f823 && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/bennyzhe/openmath-len-theorem" ~/.openclaw/skills/openclaw-skills-openmath-lean-theorem-b0f823 && rm -rf "$T"
manifest:
skills/bennyzhe/openmath-len-theorem/SKILL.mdsource content
OpenMath 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.
Workflow checklist
- Environment: Verify
,lean
, andlake
are installed and match the workspaceelan
.lean-toolchain - External skills: Install required Lean proof skills from leanprover/skills. Preferred manual install:
If you use preflight auto-install, pass an explicit target such asnpx leanprover-skills install lean-proof npx leanprover-skills install mathlib-build
or--install-dir .codex/skills
so the write location is deliberate.--install-dir .claude/skills - Preflight: Run
(see references/preflight.md).python3 scripts/check_theorem_env.py <workspace> - Prove: Use
/lean-proof
skills to complete the proof. See references/proof_playbook.md for the OpenMath-specific proving loop.mathlib-build - Verify: Confirm
passes and nolake build -q --log-level=info
remains.sorry - Submit: Use the
skill to hash and submit the proof.openmath-submit-theorem
Scripts
| Script | Command | Use when |
|---|---|---|
| Preflight check | | After download, before proving; validates toolchain, required skills, and initial build. |
| Preflight (auto) | | Auto-install missing Lean skills during preflight into an explicit skills dir. |
Notes
- Lean version: Scaffolds pin
andleanprover/lean4:v4.28.0
(set bymathlib4 v4.28.0
'sopenmath-open-theorem
).download_theorem.py - External skills: Not bundled. Required:
,lean-proof
. Optional:mathlib-build
,lean-mwe
,lean-bisect
,nightly-testing
,mathlib-review
. Manuallean-setup
is preferred; preflight auto-install clones the upstream repo and copies the missing directories into the selected skills dir.npx leanprover-skills install ... - Benchmarking: For agent evaluation, prompt comparison, or regression testing on the bundled Lean benchmark corpus, use the separate
skill.openmath-lean-benchmark
References
Load when needed (one level from this file):
- references/preflight.md — Preflight command and Lean/Rocq checks.
- references/proof_playbook.md — Step-by-step workflow for proving a downloaded Lean theorem locally.
- references/languages.md — Lean version and standard library.