闲社服务运行正常AI智能体自动化平台
o

配置Lean环境

技能标识:openmath-lean-theorem

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
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

配置Lean环境

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
返回顶部