openclaw 网盘下载
OpenClaw

技能详情(站内镜像,无评论)

首页 > 技能库 > openmath-open-theorem

Queries open formal verification theorems from the OpenMath platform. Use when the user asks for a list of open theorems, wants Lean or Rocq-specific theorem...

开发与 DevOps

作者:Benny @bennyzhe

许可证:MIT-0

MIT-0 ·免费使用、修改和重新分发。无需归因。

版本:v1.0.2

统计:⭐ 0 · 60 · 0 current installs · 0 all-time installs

0

安装量(当前) 0

🛡 VirusTotal :良性 · OpenClaw :良性

Package:bennyzhe/openmath-open-theorem

安全扫描(ClawHub)

  • VirusTotal :良性
  • OpenClaw :良性

OpenClaw 评估

The skill's code, instructions, and requirements are consistent with its stated purpose (discovering, fetching, and scaffolding OpenMath theorems); it performs only local file I/O and HTTP requests to the configured OpenMath endpoints and does not request unrelated credentials or escalate privileges.

目的

Name/description (querying OpenMath, fetching details, scaffolding Lean/Coq workspaces) match the provided scripts (fetch_open_theorems, fetch_theorem_detail, download_theorem) and supporting config helpers. No unexpected credentials, binaries, or unrelated services are requested.

说明范围

SKILL.md instructs the agent to run the included Python scripts and enforces a first-run gate that requires a local config file before contacting APIs. Scripts only read/write the declared config paths (.openmath-skills/openmath-env.json or ~/.openmath-skills/openmath-env.json), create scaffolds, and call the OpenMath API endpoints. There are no instructions to read unrelated system files or transmit data to unexpected endpoints (aside from al…

安装机制

This is an instruction-only skill (no install spec). Python scripts are bundled with the skill and executed locally; there are no external downloads or package installs specified. No high-risk installation behavior observed.

证书

No required environment variables or credentials are declared. The code respects optional overrides: OPENMATH_SITE_URL, OPENMATH_API_HOST, and OPENMATH_ENV_CONFIG — all are reasonable for endpoint/config overrides. These allow pointing to alternate API hosts, so users should avoid setting them to untrusted endpoints.

持久

The skill is user-invocable and not forced always-on. It writes only to the project or user-scoped config directories it documents and generates local scaffold directories for downloaded theorems. It does not modify other skills or global agent settings.

综合结论

This skill appears to do what it says: it runs the bundled Python scripts to call OpenMath APIs and scaffold a local Lean/Coq project. Before installing/using it: (1) review the bundled scripts yourself (they will be executed locally by Python); (2) be aware the tool will create openmath-env.json under ./.openmath-skills or ~/.openmath-skills — choose project vs user scope appropriately; (3) the skill will make HTTP requests to the default hos…

安装(复制给龙虾 AI)

将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。

请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「openmath-open-theorem」。简介:Queries open formal verification theorems from the OpenMath platform. Use when …。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/bennyzhe/openmath-open-theorem/SKILL.md
(来源:yingzhi8.cn 技能库)

SKILL.md

打开原始 SKILL.md(GitHub raw)

---
name: openmath-open-theorem
description: Queries open formal verification theorems from the OpenMath platform. Use when the user asks for a list of open theorems, wants Lean or Rocq-specific theorems, needs full detail for a theorem ID, or wants to download a theorem and scaffold a local proof workspace.
version: v1.0.0
---

# OpenMath Open Theorem

## Instructions

Query the OpenMath library to discover and scaffold open theorems. The discovery scripts use `OPENMATH_SITE_URL` and `OPENMATH_API_HOST` when set, and otherwise fall back to the default production endpoints.

### First-run gate

Before discovery on a new machine or workspace, check the shared `openmath-env.json`. Auto-discovery only checks `./.openmath-skills/openmath-env.json` and `~/.openmath-skills/openmath-env.json`.

This gate is mandatory. If `openmath-env.json` is missing, or if it exists but `preferred_language` is missing, stop. Do not query the OpenMath theorem list, theorem detail, or download APIs until setup is complete.

If no config exists, stop and ask the user where to create it, then collect at least:

- `preferred_language`: `lean` or `rocq`
- config visibility / save scope: `./.openmath-skills` or `~/.openmath-skills`
- the submit/authz fields only if the user wants end-to-end submission later

Command:

```bash
python3 scripts/check_openmath_env.py
```

### Workflow checklist

- [ ] **Env**: Run `check_openmath_env.py`. If `openmath-env.json` is missing from `./.openmath-skills` and `~/.openmath-skills`, or `preferred_language` is missing, ask the user to finish setup before continuing.
- [ ] **Explore**: Run `fetch_theorems.py [language]` only after the first-run gate passes. If no language is passed, it uses `preferred_language` from `openmath-env.json` and must not fan out to other languages automatically.
- [ ] **Detail**: Run `fetch_theorem_detail.py <id>` only after the first-run gate passes.
- [ ] **Download**: Run `download_theorem.py <id>` only after the first-run gate passes.
- [ ] **Prove**: Use the `openmath-lean-theorem` skill for environment setup, preflight checks, and proving.
- [ ] **Submit**: Use the `openmath-submit-theorem` skill to hash and submit the proof.
- [ ] **Verify**: Run `fetch_theorem_detail.py <id>` and confirm your address is the prover and status is verified.
- [ ] **Claim**: Use the `openmath-claim-reward` skill to generate the withdrawal command.

### Scripts

| Script | Command | Use when |
|--------|---------|----------|
| Shared env check | `python3 scripts/check_openmath_env.py [--config <path>]` | Mandatory first-run gate; validates shared config, preferred language, and the resolved OpenMath website/API endpoints. |
| List open theorems | `python3 scripts/fetch_theorems.py [--config <path>] [language]` | Listing or filtering open theorems after the first-run gate passes. `language`: optional `lean` or `rocq`. Without an explicit CLI language, query only the configured `preferred_language`. |
| Theorem detail | `python3 scripts/fetch_theorem_detail.py [--config <path>] <id>` | Need description, metadata, and formal definition (source) for a theorem ID; refuses to run until the first-run gate passes. |
| Download & scaffold | `python3 scripts/download_theorem.py [--config <path>] <id> [--output-dir <path>] [--force]` | Creating a local Lean or Rocq proof workspace after the first-run gate passes. |

`openmath_api.py` is the shared API client. `openmath_env_config.py` reads shared user preferences from `openmath-env.json`.

### Notes

- **Endpoints**: Default website is `https://openmath.shentu.org`; default API host is `https://openmath-be.shentu.org`. Runtime overrides: `OPENMATH_SITE_URL`, `OPENMATH_API_HOST`.
- **Language**: User-facing and API language naming is `rocq`.
- **No fallback**: If `preferred_language` is `lean`, query only Lean by default. If no theorems are found, report that result and stop; do not automatically query Rocq, and vice versa.
- **Lean scaffold**: Pins Lean and mathlib4 to `v4.28.0`. Rocq scaffold is `_CoqProject`-based.
- **After download**: Use the `openmath-lean-theorem` skill for Lean environment setup, preflight, external skill installation, and the proving workflow.

## References

Load when needed (one level from this file):

- **[references/init-setup.md](references/init-setup.md)** — Discovery-first setup flow for shared `openmath-env.json`, preferred language, and config visibility.
- **[references/reward_overview.md](references/reward_overview.md)** — How rewards are calculated and how to claim them.