explainx.ai350K+ learn from us
TrendingAI News TodayExplainx for Business
Pricing
explainx.ai

Upskill in AI — 16 free pathways, live workshops & bootcamps, and 50+ courses from practitioners. Plus the skills, tools, and MCP servers to practice on.

follow us

follow on google

Add explainx.ai as a preferred source

corporate training

support@explainx.ai

get started

Find your pathTake Free Evaluation

community

Join the community

learn

mind: share how you thinkpathways — start freeworkshopsbootcampscoursescompare Explainxcertificationsmock testsexplainx universitycorporate traininglearn skills & mcp

discover

skillsmcp serversexplainx mcpestacktoolsmdx readeragentsllmsdesignsdictionarypeopleagi trackerfelony benchranks

company

aboutvisionmissionteaminstructorsteach on explainxpartnershipscommunityhackathonscareers

content

daily AI newsstate of AI — live resultsblogreleasespromptsgeneratorsresource libraryfor LLMsexplainx.ai kids

solutions

all solutionsdeveloper upskillingmarketing upskillingproduct manager upskillingleadership upskilling

newsletter · weekly

Get AI news, tools, and insights in your inbox.

supportcontactprivacytermsdata rightshow we create contentsubmission guidelines

© 2026 AISOLO Technologies Pvt Ltd

explainx.ai

On this page

  • Why PaperLib exists
  • Megatheorems and axiom honesty
  • Expect mistakes: README guardrails
  • Quickstart commands
  • Relation to OpenAI's December topology drop
  • Relation to prior DeepMind formal posts
  • Repository layout and year-split packages
  • Tooling beyond lake build
  • AGENTS.md and contributor workflow
  • Risk disclosure for downstream ML papers
  • What to run before you cite a lemma
  • Example workflow for one arXiv paper
  • How PaperLib relates to Mathlib growth
  • Comparison with Opus CPython formalization
  • Licensing and what is not redistributed
  • Failure modes the README foreshadows
  • Why DeepMind open-sourced now
  • Bootstrap and Python search script
  • Formal-papers versus formal-papers-2026
  • Annotating PaperLib with literature-links
  • When to fork versus upstream
  • Deep dive on megatheorem_corollary tagging
  • githooks and CI hints
  • Reading list for new formal engineers
  • Related reading
← Back to blog

explainx / blog

Google DeepMind formal-papers: Lean 4 PaperLib and Megatheorems

Google DeepMind, Lean, Formal Methods, Open Source, Research

Part of Google Gemini and DeepMind

Google DeepMind open-sourced formal-papers and PaperLib, a Lean 4 library of AI-generated formalizations with megatheorem axioms tracked in formalization.yaml. How to sparse-checkout papers and audit axioms.

Dec 5, 2026·8 min read·Yash Thakker
add explainx.ai
go deep
Google DeepMind formal-papers: Lean 4 PaperLib and Megatheorems

Google DeepMind published formal-papers on GitHub, an open Lean 4 collection of machine-checked mathematical and computer science formalizations built on PaperLib, a shared library atop Mathlib, TauCeti, cslib, and cslib-frontier. The README says content was AI generated, warns readers to expect mistakes, and documents megatheorems: unproved but statement-visible axioms when missing theory would otherwise block formalization.

Catch up on AI

One AI story explained in plain English, plus one thing to try. Every day, free. Unsubscribe anytime.

350K+ Students Already Joined

Why PaperLib exists

Formalizing a research paper often needs lemma infrastructure absent from Mathlib. DeepMind centralizes that backlog in PaperLib, then splits finished papers into formal-papers-YYYY repositories (2026 back through historical buckets, plus pre-1500).

PaperLib is broader and less curated than upstream libraries. Maintainers plan to delete PaperLib modules when Mathlib absorbs them.

Megatheorems and axiom honesty

Formal verification seal: puzzle pieces fitting with a green checkFormal verification seal: puzzle pieces fitting with a green check

When a paper needs a famous theorem whose proof requires large missing libraries, PaperLib can declare a megatheorem: a tagged statement backed by a private axiom visible to Lean's kernel. Dependents pick up megatheorem_corollary tags.

Tools:

  • lake exe axioms --root Papers
  • lake exe axioms --module Papers.arxiv_2407_14091.MainTheorem
  • #print axioms via lake env lean --stdin

Each paper package records dependencies in formalization.yaml. When someone later proves the megatheorem, the axiom drops automatically for downstream theorems.

That design matters after Opus Lean CPython bugs post and AlphaProof Signal verification taught readers to ask what exactly was checked.

Expect mistakes: README guardrails

DeepMind repeats four cautions:

  1. Kernel-checked proofs do not stop wrong statements.
  2. Megatheorem misformulations slip past proof checking.
  3. Per-paper README notes document translation discrepancies; they are not accusations against original authors.
  4. Formalized version may not be the latest arXiv v.

Treat artifacts as experimental research, not homework answers.

Quickstart commands

Math proof chalkboard: node chain ending in a green checkMath proof chalkboard: node chain ending in a green check

Prerequisites: git 2.25+, curl, elan.

Example from README for arXiv:2407.14091 in formal-papers-2024:

  • git clone --filter=blob:none --sparse https://github.com/google-deepmind/formal-papers-2024
  • git sparse-checkout set arxiv/2407.14091
  • lake exe cache get
  • lake build

Optional linters: lake exe runLinter, lake exe module-system.

For PaperLib search, clone formal-papers, run bash scripts/bootstrap.sh, then python3 scripts/search_paper_lib.py --topics Analysis.

Relation to OpenAI's December topology drop

OpenAI's exotic four-spheres preprint ships PDF plus LaTeX. DeepMind's release ships executable Lean with axiom reports. Teams building AI-for-science pipelines should plan for both modalities in review queues.

Relation to prior DeepMind formal posts

explainx.ai already covered AlphaProof code verification and Hadwiger Gemini Lean proof. formal-papers is the library layer those efforts can feed, similar in spirit to Anthropic lattice Lean papers.

Repository layout and year-split packages

The main repo holds PaperLib/ lemmas and annotations/ metadata using literature-links conventions. Per-year repos (formal-papers-2026, formal-papers-2025, down to historical buckets) host individual Lake packages so you sparse-checkout only what you need.

That split keeps git clone sizes manageable when Mathlib cache already consumes gigabytes. It mirrors how Left to Solve ships challenge lists separate from proof attempts.

Tooling beyond lake build

README documents:

  • lake exe runLinter for style and sorry checks configured strict
  • lake exe module-system for Lean 4 module graph hygiene
  • scripts/search_paper_lib.py for topic and carrier grep

For CI, you can wire lake exe axioms into GitHub Actions and fail when unexpected axioms appear in new PRs. That pattern helped Certik TensorLean cultures adapt to kernel verification; formal math benefits similarly.

AGENTS.md and contributor workflow

CONTRIBUTING.md plus .agents/skills/formalize hint DeepMind expects agent-assisted formalization with human review. If you contribute:

  1. Pick a permissively licensed paper.
  2. Open a discrepancy issue when informal statements do not match Lean.
  3. Prefer proving megatheorems over adding invisible axioms when Mathlib catches up.

Risk disclosure for downstream ML papers

Teams citing PaperLib lemmas in NeurIPS-style proofs should attach formalization.yaml axiom lists as supplementary material, the same way CLIP benchmarks attach eval scripts.

What to run before you cite a lemma

  1. Sparse-checkout only the arXiv ID you need.
  2. Run lake exe axioms and store the output beside your internal memo.
  3. Read the paper README discrepancy section before you tweet theorem X formalized.
  4. File GitHub issues using the Report Discrepancy template if you find statement bugs.

Example workflow for one arXiv paper

Suppose you care about arXiv:2407.14091 (README quickstart example).

  1. Sparse clone formal-papers-2024 and checkout only that directory.
  2. Run lake exe cache get to pull Mathlib artifacts.
  3. lake build the package; capture warnings as errors because sorry is disallowed.
  4. lake exe axioms --module on the main theorem file; save output in your paper notes.
  5. Read paper README discrepancies before citing lemma names in slides.

If axioms include megatheorem tags, link the formalization.yaml hash in your internal wiki so teammates know which literature results were assumed.

How PaperLib relates to Mathlib growth

Mathlib maintainers merge community lemmas on schedules DeepMind does not control. PaperLib is an incubator: faster AI formalization, higher mistake rate, eventually upstreamed or deleted.

That mirrors industry data lakes beside warehouses. Teach interns the difference so they do not treat PaperLib as Mathlib quality by default.

Comparison with Opus CPython formalization

Anthropic Opus CPython Lean project found hundreds of implementation bugs because code was messy but executable. PaperLib targets published math, where mistakes are logical misstatements, not off-by-one C bugs.

Both show formal methods returning value when automation scales review bandwidth.

Licensing and what is not redistributed

README repeats: only permissively licensed works are formalized; PDFs stay with publishers. Lawyers should confirm your institution can run Lean on derivative formalizations before shipping product features that embed theorem text.

Failure modes the README foreshadows

table · 3 cols
FailureSymptomMitigation
Misstated definitionKernel proves wrong theoremRead discrepancy notes
Megatheorem driftHidden axiom in corollary chainlake exe axioms
Wrong paper versionFormalized v1 not v3 arXivCheck README version note
Overclaimed correctnessPress says provedQuote README Expect Mistakes

Teaching junior engineers to read failure tables before tweet threads is part of formal methods literacy now that labs ship math like models.

Why DeepMind open-sourced now

Top labs compete on trust as much as benchmarks. After Gemini Cohen-Lenstra and cell biology models, PaperLib signals long-horizon investment in checkable science, not one-off demos.

Stars on day one are noise; watch issue tracker velocity and Mathlib PRs cherry-picking PaperLib lemmas.

Bootstrap and Python search script

The README scripts/bootstrap.sh prepares local tooling; search_paper_lib.py --carriers helps when you forgot Mathlib module paths. Require Python 3.10+ in CI images alongside elan.

If lake exe cache get fails behind corporate proxies, mirror cache tarballs per Lean community docs before blocking formal-papers pilots on IT tickets.

Formal-papers versus formal-papers-2026

The year repos will accumulate December uploads faster than this overview post updates. Subscribe to GitHub releases on formal-papers-2026 if you formalize current arXiv work; stay on formal-papers root if you extend PaperLib itself.

Annotating PaperLib with literature-links

The annotations/PaperLib/ tree uses literature-links metadata so formalized lemmas trace to DOI and arXiv records. When you browse a carrier (for example LeibnizAlgebra in the README search example), you are navigating both Lean names and bibliographic graph edges.

Product managers building citation widgets can mirror that separation: human-readable reference, machine-checked artifact, explicit axiom debt.

When to fork versus upstream

If your company formalizes trade-secret algorithms, do not open PaperLib PRs with proprietary lemmas. Fork privately, run the same tooling, and contribute only sanitized megatheorems after legal review.

Public formal-papers is for published science, not unreleased model architectures.

Deep dive on megatheorem_corollary tagging

Dependents marked megatheorem_corollary inherit visibility into which literature results were assumed. When Mathlib eventually proves the parent megatheorem, Lean rebuilds corollaries without manual grep across hundreds of files.

That is technical debt tracking mathematicians understand as conditional results, automated the way software teams track open work items linked to issues.

githooks and CI hints

The repo ships .githooks and .github workflow stubs so contributors run axiom audits before push. If you vendor PaperLib lemmas into a product, vendor the same hooks or reimplement them in your monorepo lint stage.

Lake warn.sorry = true with warningAsError means partial proofs fail CI, aligning formal-papers with production strictness rather than notebook culture.

Reading list for new formal engineers

  1. Lean 4 theorem proving basics on leanprover community pages.
  2. Mathlib style guide for naming.
  3. This README Expect Mistakes section.
  4. explainx Opus CPython bugs for scale reference.
  5. Left to Solve for agent loops.

Apache-2.0 licensing lets you experiment commercially with PaperLib code, but theorem text is not a patent grant on underlying math. Keep lawyers in the loop when shipping formal verification features to paying customers. Document axiom debt in SOC2 packets the same way you document third-party OSS licenses. Security reviewers increasingly ask what you proved versus what you assumed when AI writes proofs.

Issue templates on GitHub separate PaperLib bugs from paper-specific discrepancies so triage stays fast. When you file, paste lake exe axioms output and the formalization.yaml hash if present. Screenshots without axiom lists slow maintainers down. Good bug reports read like compiler output, not marketing blurbs. Attach Lean version from lean-toolchain too.

Related reading

  • AlphaProof Signal verification
  • Hadwiger Lean proof
  • Opus CPython Lean bugs
  • Left to Solve Lean agents
  • OpenAI exotic four-spheres preprint
Spotted something out of date? Let us know.
Daily briefFrom Yash · 350K+ students taught

Catch up on AI

One AI story explained in plain English, plus one thing to try. Every day, free. Unsubscribe anytime.

  • ✓ Free
  • ✓ One email a day, no spam
  • ✓ Unsubscribe anytime
Yash Thakker

Written by

Yash Thakker

Yash is an AI expert with over 300K learners. Join his workshops →

View Yash Thakker in People in AI →

Share

Google DeepMind
Workshops

Learn by building

Live, hands-on workshops on Claude, agents, and AI tooling — taught by practitioners, not slides.

Explore workshops →

Related posts

Nov 30, 2026

SeeSE3: Google DeepMind Code Shows 3D Space Inside Vision Features

Google DeepMind published the SeeSE3 repository on November 30, 2026 with code for "Emergence of 3D Space in Vision Features" (NeurIPS 2026). The project asks whether frozen self-supervised vision models already carry linear subspaces that reflect real camera motion — enough to navigate in latent space without classic 3D reconstruction.

Nov 4, 2026

DeepMind Pluralistic Agents: Code and Data for Scaling Public Input on AI Policy

A new google-deepmind repo, pluralistic_agents, accompanies a 2026 paper on using LLM persona agents to gather public input on AI policy. It ships Apache 2.0 code, about 0.9 GB of generated data and a 746-person human study that stays private.

Dec 4, 2026

Meta SARA and Lenz: facebookresearch Open Code for Agentic Bayesian Optimization

Meta AI research published the facebookresearch/sara repository with Lenz, a Bayesian optimization backend built for agentic callers, and SARA, a surrogate-augmented autoresearch agent. The README labels the drop a release candidate under internal review with reproduction notes under docs/reproduction.md.