返回顶部
o

openmath-lean-theorem配置Lean环境

Configures Lean environments, installs external proof skills, runs preflight checks, and guides the workflow for proving downloaded OpenMath Lean theorems locally.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.3
安全检测
已通过
194
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

openmath-lean-theorem

OpenMath Lean定理

指令

设置Lean证明环境,验证工具链,并在本地证明已下载的OpenMath定理。假设定理工作区已由openmath-open-theorem技能创建。

本技能不运行基准测试提供程序、基于提示的智能体比较或追踪持久化工作流。这些功能属于独立的openmath-lean-benchmark技能。

工作流检查清单

  • - [ ] 环境:验证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,以确保写入位置经过慎重考虑。未指定显式安装目录时,请勿运行自动安装。

  • - [ ] 预检:运行python3 scripts/checktheoremenv.py (参见references/preflight.md)。
  • [ ] 证明:使用lean-proof/mathlib-build技能完成证明。关于OpenMath特定的证明循环,请参见references/proofplaybook.md
  • [ ] 验证:确认lake build -q --log-level=info通过,且无剩余sorry。
  • [ ] 提交:使用openmath-submit-theorem技能对证明进行哈希并提交。

脚本

脚本命令使用时机
预检检查python3 scripts/checktheoremenv.py <workspace>下载后、证明前;验证工具链、所需技能和初始构建。
预检(自动)
python3 scripts/checktheoremenv.py --auto-install-skills --install-dir | 在预检期间自动安装缺失的Lean技能到显式技能目录。 |

备注

  • - 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基准测试语料库进行智能体评估、提示比较或回归测试,请使用独立的openmath-lean-benchmark技能。

参考资料

需要时加载(相对于此文件一级目录):

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 openmath-lean-theorem-1776119162 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 openmath-lean-theorem-1776119162 技能

通过命令行安装

skillhub install openmath-lean-theorem-1776119162

下载

⬇ 下载 openmath-lean-theorem v1.0.3(免费)

文件大小: 10.33 KB | 发布时间: 2026-4-17 15:39

v1.0.3 最新 2026-4-17 15:39
Require explicit install dir for Lean preflight auto-install

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部