ATLAS: 大规模自动形式化教科书库

Hacker News Top 工具

摘要

ATLAS是一个大规模的Lean 4教科书数学库,由LLM自动形式化,涵盖26本书籍,超过46,000个声明。它为人机形式化提供了可重用的形式化构建块。

<a href="https:&#x2F;&#x2F;twitter.com&#x2F;arnal_charles&#x2F;status&#x2F;2060009395107377282" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;arnal_charles&#x2F;status&#x2F;2060009395107377282</a>, <a href="https:&#x2F;&#x2F;xcancel.com&#x2F;arnal_charles&#x2F;status&#x2F;2060009395107377282" rel="nofollow">https:&#x2F;&#x2F;xcancel.com&#x2F;arnal_charles&#x2F;status&#x2F;2060009395107377282</a><p>论文: <i>Formalizing Mathematics at Scale</i> - <a href="https:&#x2F;&#x2F;arxiv.org&#x2F;abs&#x2F;2605.29955" rel="nofollow">https:&#x2F;&#x2F;arxiv.org&#x2F;abs&#x2F;2605.29955</a></p>
查看原文
查看缓存全文

缓存时间: 2026/05/29 19:21

facebookresearch/atlas-lean

来源:https://github.com/facebookresearch/atlas-lean

ATLAS - 大规模自动形式化教材库

ATLAS 是一个 Lean 4 教材数学库,由大语言模型自动形式化生成:将非正式陈述和证明翻译为 Lean 代码。它取材于本科和研究生阶段的教科书,涵盖分析、代数、几何、拓扑、组合数学、概率论、统计学、偏微分方程、数论和理论计算机科学。ATLAS 的目标是为未来人类和机器驱动的 Lean 形式化提供可重用的形式化构建块。

这项工作仍在积极推进中:我们继续扩展到更多来源,整理生成的材料,提升覆盖率和可维护性,并努力使该库更接近 Mathlib 的惯例。ATLAS 使用 AutoformBot(https://github.com/facebookresearch/autoform-bot)自动形式化管道生成。

链接

  • 配套论文:大规模形式化数学(https://arxiv.org/abs/2605.29955)
  • 形式化工具:
  • 早期相关工作:代数组合学的形式化(https://github.com/faabian/algebraic-combinatorics)

库数据

Atlas/ 下每个图书目录包含:

  • 生成的 Lean 源文件(定义、陈述和证明)。
  • targets.yaml,列出选中用于形式化的教材陈述。
  • report.json,包含匹配的 Lean 声明的自动评估结果,包括忠实度、证明完整性和代码质量得分。

可视化工具

可视化工具位于 https://rammalahmad.github.io/atlas/。用户可浏览 ATLAS,比较非正式陈述与其 Lean 形式化结果,查看结果之间的逻辑依赖关系图,并提取用于陈述选定定理所需的 Lean 代码。

ATLAS 可视化工具

状态与贡献

ATLAS 是一个持续进行的机器生成扩展项目,而非最终成品。我们正在积极扩展语料库、整理生成的代码、形式化剩余的陈述,并改进对 Mathlib 的习惯用法重用。欢迎外部贡献!

要使用固定的 Lean 和 Mathlib 版本构建完整库,请运行:

lake build

统计数据(2026年5月)

26 本书 · 630,999 行代码 · 483,917 行 Lean 代码(不含注释/空行) · 46,203 个声明 · 42,837 个已证明(92.7%) · 2,855 / 4,007 个陈述已形式化(71.3%) · 183,157M 个 token

图书目标陈述数已形式化形式化百分比代码行数Lean 代码行数声明数已证明证明百分比Token 数(M)
AlgebraNotes (https://ocw.mit.edu/courses/res-18-011-algebra-i-student-notes-fall-2021/)17615185.8%5,0374,40927426195.3%1,962.99
AlgebraicCombinatorics (https://ocw.mit.edu/courses/18-318-topics-in-algebraic-combinatorics-spring-2006/)393794.9%10,6959,34373773499.6%1,440.73
AlgebraicGeometryI (https://ocw.mit.edu/courses/18-725-algebraic-geometry-fall-2015/)18611260.2%40,67827,3934,4994,21093.6%7,629.26
AlgebraicTopologyI (https://ocw.mit.edu/courses/18-905-algebraic-topology-i-fall-2016/)17111064.3%29,15420,1422,4162,06385.4%10,323.27
AnAlgorithmistsToolkit (https://ocw.mit.edu/courses/18-409-topics-in-theoretical-computer-science-an-algorithmists-toolkit-fall-2009/)15813182.9%9,6568,23471266893.8%2,004.00
ArithmeticGeometry (https://ocw.mit.edu/courses/18-782-introduction-to-arithmetic-geometry-fall-2013/)33526679.4%39,25729,5733,0472,86193.9%11,100.62
BooleanFunctions (https://ocw.mit.edu/courses/18-218-topics-in-combinatorics-analysis-of-boolean-functions-spring-2021/)1084440.7%9,5167,94966761492.1%2,327.49
Buildings (https://www-users.cse.umn.edu/~garrett/m/buildings/book.pdf)744459.5%64,38348,8094,3454,24797.7%20,442.93
CombinatorialOptimization (https://ocw.mit.edu/courses/18-433-combinatorial-optimization-fall-2003/)362261.1%8,9087,93442841496.7%2,475.65
ComplexVariables (https://ocw.mit.edu/courses/18-112-functions-of-a-complex-variable-fall-2008/)383797.4%7,2316,22528528098.2%1,250.91
DifferentialAnalysis (https://ocw.mit.edu/courses/18-155-differential-analysis-fall-2004/)1138877.9%31,30223,7131,6341,50692.2%11,743.27
DifferentialGeometry (https://ocw.mit.edu/courses/18-950-differential-geometry-fall-2008/)14711276.2%10,5928,94288878188.0%1,933.97
EllipticCurves (https://ocw.mit.edu/courses/18-783-elliptic-curves-spring-2021/)36021258.9%32,81922,3163,4832,98185.6%11,058.00
FourierAnalysis (https://ocw.mit.edu/courses/18-103-fourier-analysis-fall-2013/)383489.5%7,9436,67137335996.2%1,185.90
GeometryOfManifolds (https://ocw.mit.edu/courses/18-966-geometry-of-manifolds-spring-2007/)724055.6%22,68616,4083,2513,09895.3%6,864.93
HighDimensionalStatistics (https://ocw.mit.edu/courses/18-s997-high-dimensional-statistics-spring-2015/)736589.0%39,65631,7151,5641,51897.1%975.36
IntroductionToFunctionalAnalysis (https://ocw.mit.edu/courses/18-102-introduction-to-functional-analysis-spring-2021/)726894.4%2,7092,00611310996.5%553.64
IntroductionToPartialDifferentialEquations (https://ocw.mit.edu/courses/18-152-introduction-to-partial-differential-equations-fall-2011/)1058681.9%27,66620,7401,5851,41489.2%2,972.23
LieGroups (https://ocw.mit.edu/courses/18-757-representations-of-lie-groups-fall-2023/)1857440.0%60,28550,5944,2193,81490.4%45,384.33
NumberTheoryI (https://ocw.mit.edu/courses/18-785-number-theory-i-fall-2021/)57646079.9%64,95854,7603,7643,59195.4%15,424.36
ProbabilisticMethodsInCombinatorics (https://ocw.mit.edu/courses/18-226-probabilistic-methods-in-combinatorics-fall-2022/)21010951.9%20,55515,6041,2721,08985.6%2,720.15
ProjectionTheory (https://ocw.mit.edu/courses/18-156-projection-theory-spring-2025/)1117365.8%13,3579,67297987189.0%2,678.00
RealAnalysis (https://ocw.mit.edu/courses/18-100a-real-analysis-fall-2020/)17717598.9%2,8862,22414914798.7%585.64
TensorCategories (https://ocw.mit.edu/courses/18-769-topics-in-lie-theory-tensor-categories-spring-2009/)22913759.8%42,81229,7293,3733,17694.2%11,338.45
TheoryOfComputation (https://ocw.mit.edu/courses/18-404j-theory-of-computation-fall-2020/)1188471.2%15,09410,5811,5531,48295.4%3,580.36
TheoryOfProbability (https://ocw.mit.edu/courses/18-175-theory-of-probability-spring-2014/)1008484.0%11,1648,23159354992.6%3,200.61
总计4,0072,85571.3%630,999483,91746,20342,83792.7%183,157

贡献者

最初的 ATLAS 工作由 Ahmad Rammal、Niket Patel、Fabian Gloeckle、Amaury Hayat、Julia Kempe、Remi Munos、Charles Arnal 和 Vivien Cabannes 主导。

引用

如果您觉得这项工作有用,请引用我们的论文:

@misc{rammal2026formalizingmathematicsscale,
  title={Formalizing Mathematics at Scale},
  author={Ahmad Rammal and Niket Patel and Fabian Gloeckle and Amaury Hayat and Julia Kempe and Remi Munos and Charles Arnal and Vivien Cabannes},
  year={2026},
  eprint={2605.29955},
  archivePrefix={arXiv},
  primaryClass={cs.AI},
  url={https://arxiv.org/abs/2605.29955},
}

相似文章

MathAtlas:野外自动形式化基准测试

arXiv cs.AI

MathAtlas 是一个针对研究生级别数学的自动形式化的大规模基准测试,包含从103本教科书中提取的约5.2万个定理和定义,并附带一个包含约17.8万条关系的数学依赖图。实验表明,最先进的模型正确率最高仅为9.8%,凸显了其难度。

计算机科学逻辑的理论级自动形式化

arXiv cs.LG

引入LCS-Bench,这是一个基于计算机科学逻辑的理论级自动形式化基准,覆盖327个教科书条目、4,076个Lean声明。对14个模型的评估表明该基准具有挑战性,最先进模型在自动形式化任务上仅达到20.1%。

理论级别的自动形式化:从孤立陈述到统一形式知识库

arXiv cs.AI

这篇立场论文主张理论级别的自动形式化,即将包括公理、定义和引理在内的整个理论形式化为一致的库,而不是孤立的陈述。它讨论了这种转变的重要性、不同观点、开放挑战,并为形式化研究中的这一转变提出了前进方向。