返回顶部
o

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 theorems, needs full detail for a theorem ID, or wants to download a theorem and scaffold a local proof workspace.

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

openmath-open-theorem

OpenMath 开放定理

使用说明

查询OpenMath库以发现并搭建开放定理。发现脚本在设置OPENMATHSITEURL和OPENMATHAPIHOST时会使用这些环境变量,否则将回退到默认的生产环境端点。

首次运行门控

在新机器或工作空间进行发现之前,请检查共享的openmath-env.json。自动发现仅检查./.openmath-skills/openmath-env.json和~/.openmath-skills/openmath-env.json。

此门控为强制要求。如果openmath-env.json缺失,或文件存在但缺少preferred_language,则停止。在设置完成之前,不要查询OpenMath定理列表、定理详情或下载API。

如果不存在配置,请停止并询问用户在哪里创建配置,然后至少收集以下信息:

  • - preferred_language:lean或rocq
  • 配置可见性/保存范围:./.openmath-skills或~/.openmath-skills
  • 仅当用户后续需要端到端提交时才收集提交/授权字段

命令:

bash
python3 scripts/checkopenmathenv.py

工作流程检查清单

  • - [ ] 环境:运行checkopenmathenv.py。如果./.openmath-skills和~/.openmath-skills中缺少openmath-env.json,或缺少preferredlanguage,请询问用户完成设置后再继续。
  • [ ] 探索:仅在首次运行门控通过后运行fetchtheorems.py [language]。如果未传入语言,则使用openmath-env.json中的preferredlanguage,且不得自动扩展到其他语言。
  • [ ] 详情:仅在首次运行门控通过后运行fetchtheoremdetail.py
  • [ ] 下载:仅在首次运行门控通过后运行downloadtheorem.py
  • [ ] 证明:使用openmath-lean-theorem技能进行环境设置、预检检查和证明。
  • [ ] 提交:使用openmath-submit-theorem技能对证明进行哈希处理并提交。
  • [ ] 验证:运行fetchtheoremdetail.py 并确认您的地址是证明者且状态为已验证。
  • [ ] 领取:使用openmath-claim-reward技能生成提款命令。

脚本

脚本命令使用时机
共享环境检查python3 scripts/checkopenmathenv.py [--config <path>]强制性的首次运行门控;验证共享配置、首选语言以及解析后的OpenMath网站/API端点。
列出开放定理
python3 scripts/fetchtheorems.py [--config ] [language] | 在首次运行门控通过后列出或筛选开放定理。language:可选lean或rocq。如果没有显式的CLI语言参数,仅查询配置的preferredlanguage。 | | 定理详情 | python3 scripts/fetchtheoremdetail.py [--config ] | 需要定理ID的描述、元数据和形式化定义(源代码);在首次运行门控通过前拒绝运行。 | | 下载与搭建 | python3 scripts/download_theorem.py [--config ] [--output-dir ] [--force] | 在首次运行门控通过后创建本地Lean或Rocq证明工作空间。 |

openmathapi.py是共享的API客户端。openmathenv_config.py从openmath-env.json读取共享的用户偏好设置。

注意事项

  • - 端点:默认网站为https://openmath.shentu.org;默认API主机为https://openmath-be.shentu.org。运行时覆盖:OPENMATHSITEURL、OPENMATHAPIHOST。
  • 语言:面向用户和API的语言命名为rocq。
  • 无回退:如果preferredlanguage为lean,默认仅查询Lean。如果未找到定理,报告该结果并停止;不要自动查询Rocq,反之亦然。
  • Lean搭建:将Lean和mathlib4固定到v4.28.0版本。Rocq搭建基于CoqProject。
  • 下载后:使用openmath-lean-theorem技能进行Lean环境设置、预检、外部技能安装和证明工作流程。

参考资料

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

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 openmath-open-theorem-1776119522 技能

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

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

通过命令行安装

skillhub install openmath-open-theorem-1776119522

下载

⬇ 下载 openmath-open-theorem v1.0.2(免费)

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

v1.0.2 最新 2026-4-17 15:39
query open theorems on openmath

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

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

p2p_official_large
返回顶部