openmath-lean-theorem
Installation
SKILL.md
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,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, 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. - 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.