openmath-lean-theorem
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseOpenMath Lean Theorem
OpenMath Lean定理
Instructions
使用说明
Set up the Lean proving environment, validate toolchains, and prove downloaded OpenMath theorems locally. Assumes the theorem workspace was already created by the skill.
openmath-open-theoremThis skill does not run benchmark providers, prompt-based agent comparisons, or trace persistence workflows. Those belong to the separate skill.
openmath-lean-benchmark设置Lean证明环境,验证工具链,并在本地证明下载的OpenMath定理。假定定理工作区已由技能创建。
openmath-open-theorem本技能不运行基准测试提供程序、基于提示的Agent比较或轨迹持久化工作流。这些功能属于独立的技能。
openmath-lean-benchmarkWorkflow checklist
工作流检查清单
- Environment: Verify ,
lean, andlakeare 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, first review the upstream repo and then pass an explicit target such asbash
npx leanprover-skills install lean-proof npx leanprover-skills install mathlib-buildor--install-dir .codex/skillsso the write location is deliberate. Do not run auto-install without an explicit install dir.--install-dir .claude/skills - Preflight: Run (see references/preflight.md).
python3 scripts/check_theorem_env.py <workspace> - Prove: Use /
lean-proofskills to complete the proof. See references/proof_playbook.md for the OpenMath-specific proving loop.mathlib-build - Verify: Confirm passes and no
lake build -q --log-level=inforemains.sorry - Submit: Use the skill to hash and submit the proof.
openmath-submit-theorem
- 环境:验证、
lean和lake已安装,且与工作区的elan版本匹配。lean-toolchain - 外部技能:从leanprover/skills安装所需的Lean证明技能。推荐手动安装:
如果你使用预检自动安装功能,请先查看上游仓库,然后传入明确的目标路径,例如bash
npx leanprover-skills install lean-proof npx leanprover-skills install mathlib-build或--install-dir .codex/skills,以确保写入位置是你预期的。请勿在没有指定明确安装目录的情况下运行自动安装。--install-dir .claude/skills - 预检:运行(参考references/preflight.md)。
python3 scripts/check_theorem_env.py <workspace> - 证明:使用/
lean-proof技能完成证明。关于OpenMath专属的证明循环,请参考references/proof_playbook.md。mathlib-build - 验证:确认执行通过,且没有剩余的
lake build -q --log-level=info语句。sorry - 提交:使用技能对证明进行哈希处理并提交。
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. |
| 脚本 | 命令 | 使用场景 |
|---|---|---|
| 预检检查 | | 下载后、证明前运行;验证工具链、所需技能和初始构建状态。 |
| 自动预检 | | 预检期间自动将缺失的Lean技能安装到指定的技能目录。 |
Notes
注意事项
- Lean version: Scaffolds pin and
leanprover/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-setupis preferred; preflight auto-install additionally requiresnpx leanprover-skills install ..., explicit user approval, and an explicit install dir.git - Benchmarking: For agent evaluation, prompt comparison, or regression testing on the bundled Lean benchmark corpus, use the separate skill.
openmath-lean-benchmark
- Lean版本:脚手架固定使用和
leanprover/lean4:v4.28.0(由mathlib4 v4.28.0的openmath-open-theorem设置)。download_theorem.py - 外部技能:不随本工具打包。必备技能:、
lean-proof。可选技能:mathlib-build、lean-mwe、lean-bisect、nightly-testing、mathlib-review。推荐手动运行lean-setup安装;预检自动安装额外需要npx leanprover-skills install ...、明确的用户批准以及指定安装目录。git - 基准测试:如需对打包的Lean基准测试集进行Agent评估、提示比较或回归测试,请使用独立的技能。
openmath-lean-benchmark
References
参考文献
Load when needed (one level from this file):
- references/preflight.md — Lean preflight command, skill checks, and initial build loop.
- references/proof_playbook.md — Step-by-step workflow for proving a downloaded Lean theorem locally.
- references/languages.md — Lean version and standard library.
按需加载(与本文件同级目录):
- references/preflight.md — Lean预检命令、技能检查和初始构建循环。
- references/proof_playbook.md — 在本地证明已下载Lean定理的分步工作流。
- references/languages.md — Lean版本和标准库说明。