返回顶部
o

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
安全检测
已通过
187
下载量
0
收藏
概述
安装方式
版本历史

openmath-lean-theorem

# 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](https://github.com/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 <workspace>` (see [references/preflight.md](references/preflight.md)). - [ ] **Prove**: Use `lean-proof` / `mathlib-build` skills to complete the proof. See [references/proof_playbook.md](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 | Script | Command | Use when | |--------|---------|----------| | Preflight check | `python3 scripts/check_theorem_env.py <workspace>` | After download, before proving; validates toolchain, required skills, and initial build. | | Preflight (auto) | `python3 scripts/check_theorem_env.py <workspace> --auto-install-skills --install-dir <path>` | 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): - **[references/preflight.md](references/preflight.md)** — Lean preflight command, skill checks, and initial build loop. - **[references/proof_playbook.md](references/proof_playbook.md)** — Step-by-step workflow for proving a downloaded Lean theorem locally. - **[references/languages.md](references/languages.md)** — Lean version and standard library.

标签

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

下载 Zip 包

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