| name | openmath-lean-theorem |
| description | Configures Lean environments, installs external proof skills, runs preflight checks, and guides the workflow for proving downloaded OpenMath Lean theorems locally. |
| version | v1.2.0 |
| requirements | {"commands":["lean","lake","elan"]} |
| side_effects | ["May install third-party Lean skills into a selected skills directory when preflight is run with --auto-install-skills"] |
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
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.0 and mathlib4 v4.28.0 (set by openmath-open-theorem's download_theorem.py).
- External skills: Not bundled. Required:
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 clones the upstream repo and copies the missing directories into the selected skills dir.
- Benchmarking: For agent evaluation, prompt comparison, or regression testing on the bundled Lean benchmark corpus, use the separate
openmath-lean-benchmark skill.
References
Load when needed (one level from this file):