Install
openclaw skills install openmath-lean-theoremConfigures Lean environments, installs external proof skills, runs preflight checks, and guides the workflow for proving downloaded OpenMath Lean theorems locally.
openclaw skills install openmath-lean-theoremSet 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.
lean, lake, and elan are installed and match the workspace lean-toolchain.npx leanprover-skills install lean-proof
npx leanprover-skills install mathlib-build
If you use preflight auto-install, first review the upstream repo and then pass an explicit target such as --install-dir .codex/skills or --install-dir .claude/skills so the write location is deliberate. Do not run auto-install without an explicit install dir.python3 scripts/check_theorem_env.py <workspace> (see references/preflight.md).lean-proof / mathlib-build skills to complete the proof. See references/proof_playbook.md for the OpenMath-specific proving loop.lake build -q --log-level=info passes and no sorry remains.openmath-submit-theorem skill to hash and submit the proof.| 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. |
leanprover/lean4:v4.28.0 and mathlib4 v4.28.0 (set by openmath-open-theorem's download_theorem.py).lean-proof, mathlib-build. Optional: lean-mwe, lean-bisect, nightly-testing, mathlib-review, lean-setup. Manual npx leanprover-skills install ... is preferred; preflight auto-install additionally requires git, explicit user approval, and an explicit install dir.openmath-lean-benchmark skill.Load when needed (one level from this file):