google-deepmind/formal-papers
Learning ResourcesA Lean 4 library and index of AI-generated, machine-checked formalizations of research papers for mathematicians and formalization researchers.
What it is
Formal Papers is an open collection of formalized mathematics and computer science papers written in Lean 4 and checked by the Lean kernel. The formalized papers themselves live in period-sharded repositories such as formal-papers-2024; this repository defines PaperLib, a shared Lean 4 library of reusable definitions, structures, and theorems so each paper's formalization does not have to rebuild the same background theory.
PaperLib builds on Mathlib, TauCeti, cslib, and cslib-frontier. When a paper needs a well-known result whose full proof would require substantial missing theory, PaperLib records it as a megatheorem: a tagged declaration backed by a private Lean axiom. Dependencies are tracked by Lean's #print axioms and lake exe axioms, and are recorded in each work's formalization.yaml.
The intended users are Lean users and researchers who want to inspect or extend existing formalizations, and authors formalizing new papers on top of PaperLib.
Quick start
Check one formalized paper
You need git >= 2.25, curl, and elan, the Lean toolchain manager. Install elan, then sparse-checkout a single paper from its period repository. For example, to work on arXiv:2407.14091:
git clone --filter=blob:none --sparse https://github.com/google-deepmind/formal-papers-2024
cd formal-papers-2024
git sparse-checkout set arxiv/2407.14091
cd arxiv/2407.14091
lake exe cache get
lake build
The lakefile.toml enables warn.sorry = true and warningAsError = true, so a clean build means the kernel accepted the proofs. Prebuilt Mathlib, TauCeti, and PaperLib caches are downloaded by lake exe cache get.
To audit axioms or run linters, the README gives optional commands such as lake exe axioms --module Papers.arxiv_2407_14091.MainTheorem and lake exe runLinter --no-build ... documented here.
Search PaperLib
Cloning this repository is only necessary if you want to search PaperLib or build a library module. Python 3.10 or newer is required for the search script:
git clone --filter=blob:none https://github.com/google-deepmind/formal-papers
cd formal-papers && bash scripts/bootstrap.sh
python3 scripts/search_paper_lib.py --carriers LeibnizAlgebra
python3 scripts/search_paper_lib.py --topics Analysis
lake build --no-ansi -q PaperLib.Analysis.SpecialFunctions.AbelIteration.Basic
For contributing a formalization, see CONTRIBUTING.md.
Constraints and caveats
The project is explicitly experimental. The README states that the Lean formalizations, documentation, and per-paper notes were generated autonomously by AI systems and that mistakes are expected. Proof checking guarantees the kernel accepts proofs without sorry, but it does not guarantee that definitions and theorem statements match the intended informal mathematics. Unproved megatheorem statements are a particular risk: a misformulated megatheorem is not caught by proof checking and can affect downstream results that depend on it. Per-paper README notes record translation discrepancies and should not be read as claims of errors in the source papers.
Only permissively licensed works (for example CC BY, CC0, MIT, Apache-2.0, or public domain) are formalized, and the original works are not redistributed. Code and documentation are Apache-2.0 licensed. The repository is not an officially supported Google product.
HotRepo's take
The only recorded HotRepo activity is a new-project snapshot on 2026-12-05, where the repository appeared with 150 stars and 12 forks, gaining 40 stars and 1 fork over a one-hour window; no GitHub daily rank was recorded. That single short snapshot is not enough to describe a trend. The more useful signal for readers is structural: this is the shared-library hub of a multi-repository project, so anyone evaluating the formalizations should look at the relevant formal-papers-<period> repository for the paper in question rather than judging this repository's scope alone.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.
Hacker News
You might also like
- anthropics/formal-mathMachine-checked Lean 4 formalizations of major math and complexity-theory results, for mathematicians and proof engineers who want to build and verify them.
- lsernau/grh-leanA machine-checked Lean 4 formalization of RH and GRH for Dirichlet L-functions, aimed at proof assistants and number theorists.
- tristanbuckmaster/navier-stokesA paper and Lean 4 formalization of finite-time blow-up for the Navier–Stokes equations, aimed at mathematicians and proof engineers.
- leanprover-community/riemann-hypothesisA Comparator-based verification setup for a claimed Lean formalization of the Riemann Hypothesis, aimed at proof-checking researchers.
- CocoSgt/riemann-hypothesis-leanA browsable mirror of Levent Alpöge's claimed Lean 4 formalization of the Riemann Hypothesis and GRH, for people who want to build and check it.