ATLAS - Autoformalized Textbook Library At Scale
收藏资源简介:
ATLAS是一个由大型语言模型自动形式化的Lean 4数学教材库,将非正式的数学陈述和证明转化为Lean代码。它涵盖了本科和研究生教材中的分析、代数、几何、拓扑、组合数学、概率、统计、偏微分方程、数论和理论计算机科学等领域。目标是提供可重用的形式化构建块,支持未来人类和机器驱动的Lean形式化工作。
ATLAS is a Lean 4 mathematical textbook library automatically formalized by large language models (LLMs), which converts informal mathematical statements and proofs into Lean code. It covers various fields from undergraduate and graduate-level textbooks, including analysis, algebra, geometry, topology, combinatorics, probability, statistics, partial differential equations, number theory, and theoretical computer science. Its goal is to provide reusable formalized building blocks to support future human and machine-driven Lean formalization efforts.
数据集概述:ATLAS (Autoformalized Textbook Library At Scale)
ATLAS 是一个大规模的 Lean 4 形式化数学库,由大语言模型自动将教科书中的非形式化数学命题和证明翻译为 Lean 代码。其素材来源覆盖分析、代数、几何、拓扑、组合学、概率、统计、偏微分方程、数论和理论计算机科学等领域的本科及研究生教材。
该库的目标是为未来人类和机器驱动的 Lean 形式化工作提供可复用的形式化构建模块。该项目仍在持续扩展中,包括增加更多数据源、整理生成内容、提升覆盖率和可维护性,并逐步使其更接近 Mathlib 的惯例。ATLAS 是通过 AutoformBot 自动形式化流水线生成的。
数据集组成
在 Atlas/ 目录下,每本教材的子目录包含:
- Lean 源代码文件:包含生成的命题、定义和证明。
targets.yaml文件:列出选择进行形式化的教材命题。report.json文件:包含对匹配的 Lean 声明的自动化评估结果,评估指标包括忠实度、证明完整性和代码质量得分。
数据可视化工具
提供一个可视化浏览器,网址为 https://rammalahmad.github.io/atlas/,用户可在此浏览 ATLAS 库、对比非形式化命题与 Lean 形式化代码、查看结果之间的逻辑依赖关系图,以及提取选定定理所需的 Lean 代码。
数据规模(截至 2026 年 5 月)
- 教材数量:26 本
- 总代码行数:630,999 行
- Lean 代码行数(不含注释和空行):483,917 行
- 声明总数:46,203 个
- 已证明声明数:42,837 个(证明成功率 92.7%)
- 目标命题数:4,007 个
- 已形式化命题数:2,855 个(形式化覆盖率 71.3%)
- 总 Token 数:183,157M
各教材详情统计
| 教材名称 | 目标命题 | 已形式化 | 形式化覆盖率 | 总代码行数 | Lean 代码行数 | 声明数 | 已证明 | 证明成功率 | Token 数 (M) |
|---|---|---|---|---|---|---|---|---|---|
| AlgebraNotes | 176 | 151 | 85.8% | 5,037 | 4,409 | 274 | 261 | 95.3% | 1,962.99 |
| AlgebraicCombinatorics | 39 | 37 | 94.9% | 10,695 | 9,343 | 737 | 734 | 99.6% | 1,440.73 |
| AlgebraicGeometryI | 186 | 112 | 60.2% | 40,678 | 27,393 | 4,499 | 4,210 | 93.6% | 7,629.26 |
| AlgebraicTopologyI | 171 | 110 | 64.3% | 29,154 | 20,142 | 2,416 | 2,063 | 85.4% | 10,323.27 |
| AnAlgorithmistsToolkit | 158 | 131 | 82.9% | 9,656 | 8,234 | 712 | 668 | 93.8% | 2,004.00 |
| ArithmeticGeometry | 335 | 266 | 79.4% | 39,257 | 29,573 | 3,047 | 2,861 | 93.9% | 11,100.62 |
| BooleanFunctions | 108 | 44 | 40.7% | 9,516 | 7,949 | 667 | 614 | 92.1% | 2,327.49 |
| Buildings | 74 | 44 | 59.5% | 64,383 | 48,809 | 4,345 | 4,247 | 97.7% | 20,442.93 |
| CombinatorialOptimization | 36 | 22 | 61.1% | 8,908 | 7,934 | 428 | 414 | 96.7% | 2,475.65 |
| ComplexVariables | 38 | 37 | 97.4% | 7,231 | 6,225 | 285 | 280 | 98.2% | 1,250.91 |
| DifferentialAnalysis | 113 | 88 | 77.9% | 31,302 | 23,713 | 1,634 | 1,506 | 92.2% | 11,743.27 |
| DifferentialGeometry | 147 | 112 | 76.2% | 10,592 | 8,942 | 888 | 781 | 88.0% | 1,933.97 |
| EllipticCurves | 360 | 212 | 58.9% | 32,819 | 22,316 | 3,483 | 2,981 | 85.6% | 11,058.00 |
| FourierAnalysis | 38 | 34 | 89.5% | 7,943 | 6,671 | 373 | 359 | 96.2% | 1,185.90 |
| GeometryOfManifolds | 72 | 40 | 55.6% | 22,686 | 16,408 | 3,251 | 3,098 | 95.3% | 6,864.93 |
| HighDimensionalStatistics | 73 | 65 | 89.0% | 39,656 | 31,715 | 1,564 | 1,518 | 97.1% | 975.36 |
| IntroductionToFunctionalAnalysis | 72 | 68 | 94.4% | 2,709 | 2,006 | 113 | 109 | 96.5% | 553.64 |
| IntroductionToPartialDifferentialEquations | 105 | 86 | 81.9% | 27,666 | 20,740 | 1,585 | 1,414 | 89.2% | 2,972.23 |
| LieGroups | 185 | 74 | 40.0% | 60,285 | 50,594 | 4,219 | 3,814 | 90.4% | 45,384.33 |
| NumberTheoryI | 576 | 460 | 79.9% | 64,958 | 54,760 | 3,764 | 3,591 | 95.4% | 15,424.36 |
| ProbabilisticMethodsInCombinatorics | 210 | 109 | 51.9% | 20,555 | 15,604 | 1,272 | 1,089 | 85.6% | 2,720.15 |
| ProjectionTheory | 111 | 73 | 65.8% | 13,357 | 9,672 | 979 | 871 | 89.0% | 2,678.00 |
| RealAnalysis | 177 | 175 | 98.9% | 2,886 | 2,224 | 149 | 147 | 98.7% | 585.64 |
| TensorCategories | 229 | 137 | 59.8% | 42,812 | 29,729 | 3,373 | 3,176 | 94.2% | 11,338.45 |
| TheoryOfComputation | 118 | 84 | 71.2% | 15,094 | 10,581 | 1,553 | 1,482 | 95.4% | 3,580.36 |
| TheoryOfProbability | 100 | 84 | 84.0% | 11,164 | 8,231 | 593 | 549 | 92.6% | 3,200.61 |
| 总计 | 4,007 | 2,855 | 71.3% | 630,999 | 483,917 | 46,203 | 42,837 | 92.7% | 183,157 |
构建方法
使用锁定版本的 Lean 和 Mathlib 构建整个库,执行以下命令:
bash lake build
贡献者
ATLAS 的初始工作由 Ahmad Rammal、Niket Patel、Fabian Gloeckle、Amaury Hayat、Julia Kempe、Remi Munos、Charles Arnal 和 Vivien Cabannes 领导。




