← 返回
未分类 中文

openmath-lean-theorem

Configures Lean environments, installs external proof skills, runs preflight checks, and guides the workflow for proving downloaded OpenMath Lean theorems lo...
配置 Lean 环境,安装外部证明插件,执行预检检查,并引导证明已下载 OpenMath Lean 定理的工作流...
bennyzhe
未分类 clawhub v1.0.3 1 版本 100000 Key: 无需
★ 0
Stars
📥 481
下载
💾 1
安装
1
版本
#latest

概述

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.

This skill does not run benchmark providers, prompt-based agent comparisons, or trace persistence workflows. Those belong to the separate openmath-lean-benchmark skill.

Workflow checklist

  • [ ] Environment: Verify lean, lake, and elan are installed and match the workspace lean-toolchain.
  • [ ] External skills: Install required Lean proof skills from leanprover/skills. Preferred manual install:

```bash

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.

  • [ ] Preflight: Run python3 scripts/check_theorem_env.py (see references/preflight.md).
  • [ ] Prove: Use lean-proof / mathlib-build skills to complete the proof. See references/proof_playbook.md for the OpenMath-specific proving loop.
  • [ ] Verify: Confirm lake build -q --log-level=info passes and no sorry remains.
  • [ ] Submit: Use the openmath-submit-theorem skill to hash and submit the proof.

Scripts

ScriptCommandUse when
---------------------------
Preflight checkpython3 scripts/check_theorem_env.py After download, before proving; validates toolchain, required skills, and initial build.
Preflight (auto)python3 scripts/check_theorem_env.py --auto-install-skills --install-dir 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 additionally requires git, explicit user approval, and an explicit install 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):

版本历史

共 1 个版本

  • v1.0.3 当前
    2026-03-30 12:34 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

openmath-claim-reward

bennyzhe
认领 OpenMath 平台赚取的奖励。用于用户查询可领取的导入/证明奖励,或在...后提取已验证的 Shentu 奖励。
★ 0 📥 456

openmath-open-theorem

bennyzhe
从OpenMath平台查询开放形式验证定理。当用户请求开放定理列表或需要Lean或Rocq特定的定理时使用。
★ 0 📥 548

openmath-rocq-theorem

bennyzhe
配置 Rocq 环境,执行预检,并引导 OpenMath Rocq 定理的证明工作流。适用于用户需要设置 Rocq 工具链、运行环境检查或完成定理证明任务的场景。
★ 0 📥 385