LiveLeanTriathlon
收藏资源简介:
LiveLeanTriathlon是一个用于Lean 4中自动定理证明和自动形式化的基准套件,包含用Lean 4形式化的数学定理集合、证明中使用的支持引理的形式化,以及以LaTeX蓝图形式提供的这些定理、引理及其证明的非正式描述。这些定理来自多个来源,覆盖多个数学领域。
LiveLeanTriathlon is a benchmark suite for automated theorem proving and automated formalization in Lean 4. It contains a collection of mathematical theorems formalized in Lean 4, formalizations of supporting lemmas used in their proofs, as well as informal descriptions of these theorems, lemmas and their proofs provided in the form of LaTeX blueprints. These theorems originate from multiple sources and cover a wide range of mathematical fields.
数据集概述
数据集名称:LiveLeanTriathlon
数据集地址:https://github.com/project-numina/LeanTriathlon
数据集描述:LiveLeanTriathlon 是一个基准测试集,专为在 Lean 4 中的自动化定理证明和自动形式化而设计。它包含一系列在 Lean 4 中形式化的数学定理,以及这些定理证明中使用的支持引理的形式化,并附带这些定理、引理及其证明的非形式化描述(以 LaTeX 蓝本形式提供)。这些定理来源于多种资料,包括 1000+ 定理项目、个人贡献者的扩展项目以及其他数学文献,覆盖了多个数学领域。
数据集目标
- 评估自动化定理证明系统在 Lean 4 中处理多样化定理集的能力,该集比以往侧重于竞赛数学的基准测试更多样,更接近研究级数学。
- 为自动形式化系统提供测试平台,使其能够将定理和引理的非形式化描述转换为 Lean 4 中的形式化陈述。
- 探索利用人机协作来协助更大规模形式化项目的方法。
数据构成
- 定理来源:包括 1000+ 定理项目、个人贡献者的扩展项目以及其他数学文献。
- 覆盖领域:涵盖多个不同的数学领域。
- 数据集内容:
- 每个定理的目录包含:
All.lean:包含主要定理陈述(已用sorry占位)。- 其他相关文件(如
MainTheorem.lean、BackgroundLemmas.lean)已从公开版本中移除,以防止数据泄漏。
LiveLeanTriathlonSorry/Mathlib/:包含所需的但未在 mathlib 中出现的引理。
- 每个定理的目录包含:
- 数据统计:
theorem_stats.json文件包含关于定理的统计信息,如按 AMS 分类的计数、哪些定理拥有完整形式化证明、非形式化证明或背景引理陈述等。
数据变体与基准 JSONL
数据集提供了两种目录变体和三种 JSONL 文件,用于评估:
- 目录变体(通过
scripts/create_sorries/create_sorries.py生成):LiveLeanTriathlonSorry/:将每个theorem/lemma的证明替换为:= by sorry。LiveLeanTriathlonSorryNoLemmas/:仅将@[AMS]标记的主定理保留:= by sorry,辅助引理被降级为axiom,使每个非 Mathlib 文件夹只暴露一个开放目标。
- JSONL 文件(通过
scripts/create_sorries/create_statement_jsonl.py生成):statement.jsonl:每行对应一个theorem/lemma,包含其代码(项目中前序证明已替换为sorry)。statements_hard.jsonl:每行对应一个@[AMS]定理,包含其代码,同一文件中的其他@[AMS]定理作为axiom,目标用sorry。statements_autoformalization.jsonl:每行对应一个@[AMS]定理,包含其代码(仅目标用sorry),并额外包含title、informal_statement和informal_proof字段,这些信息从对应的 LaTeX 蓝本文件中提取。
JSONL 基本模式: json {"project_name": "...", "name": "...", "type": "theorem"|"lemma", "code": "..."}
- 对于
statement.jsonl中包含项目本地导入的行,会额外添加imported_file字段,包含传递性的兄弟文件内容(证明已替换为sorry,文件间用-- File: <module>标记分隔)。 statements_autoformalization.jsonl额外包含title、informal_statement和informal_proof字段。
许可证
- 软件:基于 Apache License, Version 2.0 (Apache-2.0) 许可。
- 内容:可能包含第三方内容,其许可协议如下:
- 来自维基百科和 MathOverflow 的材料:Creative Commons Attribution-Share-Alike License 4.0。
- 来自 Stacks Project 的材料:GNU Free Documentation License。
- 来自 arXiv 的材料:根据相关论文的许可协议。




