Google DeepMind publishes formal-papers, an AI-generated Lean 4 collection with built-in warnings
DeepMind released machine-checked math and computer science formalizations on GitHub, but its own README says the AI-generated content may contain mistakes.
The short version
- PaperLib is built atop Mathlib, TauCeti, cslib, and cslib-frontier.
- Year repos run from formal-papers-2026 back through historical buckets, plus pre-1500.
- Setup needs git 2.25+, curl, and elan.
- The quickstart example is arXiv:2407.14091 in formal-papers-2024.
- Megatheorems: When a paper leans on a famous theorem whose proof needs large missing libraries, PaperLib can record it as a visible, unproved axiom.
What formal-papers is
Google DeepMind has put formal-papers on GitHub, an open Lean 4 collection of machine-checked math and computer science formalizations. Its README says the content was AI generated and tells readers to expect mistakes.
The outlet explainx.ai reports that formal-papers is built on PaperLib, which itself sits atop Mathlib, TauCeti, cslib, and cslib-frontier. Putting a research paper into Lean often calls for lemma support that Mathlib does not have yet. DeepMind collects that missing material in PaperLib. The post also describes formal-papers as the library layer that AlphaProof code verification and the Hadwiger Gemini Lean proof, which explainx.ai says it covered before, can feed. It calls this similar in spirit to Anthropic lattice Lean papers.
Finished papers are then split into formal-papers-YYYY repositories. The per-year repos run from formal-papers-2026 and formal-papers-2025 down to historical buckets, plus pre-1500. The main repo holds the PaperLib lemmas and an annotations folder of metadata that follows literature-links conventions.
Why it matters
A developer or researcher in the US who wants to reuse a lemma can check which axioms it assumes with lake exe axioms before citing it. The README's own warnings say a passing proof may still sit on a wrongly stated theorem.
How megatheorems work
Some papers lean on a famous theorem whose proof would need large libraries that are still missing. PaperLib can then declare a megatheorem. This is a tagged statement resting on a private axiom that Lean's kernel can see. Dependents of it pick up megatheorem_corollary tags.
Every paper package records what it depends on in formalization.yaml. If someone proves the megatheorem later, theorems downstream stop carrying that axiom on their own. To audit this, the README gives lake exe axioms, run with a root or a module, plus the #print axioms command.
The README's own warnings
The README lists four cautions. A proof that the kernel accepts can still belong to a wrong statement. A megatheorem written incorrectly can get past proof checking. Notes in each paper's README record translation discrepancies, and they do not accuse the original authors of anything. The formalized text may also differ from the newest arXiv version.
The README tells readers to treat these files as experimental research and not as answers for homework. The explainx.ai post describes PaperLib as broader and less curated than the upstream libraries. It also says maintainers plan to delete PaperLib modules when Mathlib absorbs them.
Running it yourself
The prerequisites are git 2.25+, curl, and elan. The README example uses arXiv:2407.14091 in formal-papers-2024. You sparse-clone the repo from https://github.com/google-deepmind/formal-papers-2024, check out arxiv/2407.14091, run lake exe cache get, then lake build.
The README lists the optional linters lake exe runLinter and lake exe module-system. To search PaperLib, a reader clones formal-papers, runs bash scripts/bootstrap.sh, and then runs python3 scripts/search_paper_lib.py --topics Analysis. The explainx.ai post advises Python 3.10+ in CI images alongside elan.
Contributing and licensing
The files CONTRIBUTING.md and .agents/skills/formalize suggest DeepMind expects agents to help with formalization, with humans reviewing the result. Contributors should choose a paper with a permissive license. If an informal statement and the Lean version disagree, they should open a discrepancy issue. Once Mathlib catches up, proving a megatheorem is preferred over adding hidden axioms.
The README says only permissively licensed works are formalized, and PDFs stay with publishers. explainx.ai notes Apache-2.0 licensing for PaperLib code, adds that theorem text is not a patent grant on the underlying math, and says to keep lawyers involved when shipping to customers.
A small detail: The README's search example browses a carrier called LeibnizAlgebra, which links Lean names to DOI and arXiv records through literature-links metadata.
explainx.ai's practical advice
The outlet suggests sparse-checking out only the arXiv ID you need, running lake exe axioms, and saving the output with your memo. It also says to read the paper's discrepancy section before citing a lemma. If axioms carry megatheorem tags, it suggests linking the formalization.yaml hash in an internal wiki.
The overview says the lake setting warn.sorry, paired with warningAsError, makes partial proofs fail in CI. For bug reports, it asks people to include the lake exe axioms output, the formalization.yaml hash when one exists, and the Lean version from lean-toolchain. GitHub issue templates keep PaperLib bugs apart from problems with a single paper. The explainx.ai writer links the axiom design to the Opus Lean CPython bugs post and AlphaProof Signal verification, which taught readers to ask what exactly was checked. The writer also compares the year split to the way Left to Solve keeps challenge lists apart from proof attempts.
Open questions to watch
The overview says year repos such as formal-papers-2026 will pick up December uploads faster than the post can be updated. For anyone formalizing current arXiv work, it advises following GitHub releases on that repo. It calls day-one stars noise and points to issue tracker velocity and Mathlib PRs that pick PaperLib lemmas as better signals. The report does not say how many papers are formalized or how many mistakes were found.
The questions people ask
What it means for you
A developer or mathematician who wants to cite formal lemmas should care. The audit commands show what a result assumes.
Who gains
Readers get open Lean 4 formalizations with axioms made visible, split by year so they can sparse-checkout one paper.
How solid is it
Mixed. The release is on GitHub, but the README itself says the content is AI generated and may hold mistakes. The report cites no independent tests.
What you can do
Pull one paper, run the axioms check, and read its discrepancy notes before relying on any lemma.
What to watch
- Will Mathlib absorb PaperLib modules, and how soon does the plan to delete them play out?
- Will someone prove a megatheorem so its axiom drops for downstream theorems?
- How many discrepancies will users report through the GitHub template?
More stories
Get The Daily
AI news, explained in 5 minutes a day. Free. The first issue is coming soon.
No password. Unsubscribe any time. Privacy
Say why
Liked it? Say why
Add a line for other readers.
No account needed. We never show your email. Comments with links, ads or abuse are held and not shown. Your comment shows after a quick check.
Sources
- First reported by
- FirstExplainX Dec 4, 2026, 7:00 PM ET
Written with AI by the SI Agent News Desk from the reporting above. Every number is checked against it.Spot a mistake or a concern? Contact us · Corrections.
Gemini
Gemini
Gemini