Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)
Add a star history chart too →

anthropics/formal-math

Learning Resources

Machine-checked Lean 4 formalizations of major math and complexity-theory results, for mathematicians and proof engineers who want to build and verify them.

Best position on GitHub Trending (weekly): #1. Click to get this badge for your README
1,912
248
Lean
Apache-2.0
4 months old

What this is

A collection of machine-checked Lean 4 formalizations published by Anthropic. Each top-level subdirectory is an independent Lake project with its own toolchain pin and build instructions, and most follow the Palomar submission template (Challenge.lean / Solution.lean / comparator.json / formalization.yaml at the project root). The repository is a research artifact rather than a reusable library: the value is in the checked proofs and the papers that accompany them.

Current projects include formalizations of results on simple zeros of the Riemann zeta function, 3SUM and APSP word-RAM bounds, a refutation of the Exponential Time Hypothesis, VP ≠ VNP over every field, lattice and lattice-based cryptography results, and a counterexample to the invariant subspace problem on separable complex Hilbert space. Each row in the README table lists the statement and the exact Lean/Mathlib versions used.

Running a project

Every subdirectory is self-contained, so build from inside it rather than from the repository root.

  1. Install elan so the pinned lean-toolchain can be fetched automatically.
  2. Enter the project and fetch dependencies:
cd vp-vnp
lake exe cache get
lake build
  1. To check a project against the same registry acceptance criteria used in CI, run the comparator script from inside the project directory:
cd vp-vnp
bash ../.github/scripts/comparator-check.sh

A passing project builds with no sorry outside the trusted Challenge statement files and prints Your solution is okay! from the comparator, which uses lean4export, the independent nanoda kernel and the landrun sandbox.

Constraints and known limits

Expect long build times and high disk usage from Mathlib. The projects pin different toolchains and Mathlib revisions (from v4.33.0-rc2 through v4.34.1), so they cannot be built with a single shared environment. lattices/ has no formalization.yaml, is not yet submitted to Palomar, and is only verified in manual CI runs using its own pins file. CI otherwise builds only the project folders whose files changed, plus a manual full run. The repository is Apache-2.0, and individual projects may carry additional NOTICE files.

HotRepo's take

The weekly all-language snapshot from 2026-12-04 records 1,845 stars and 238 forks, with 757 stars gained and a best position of 1 on that weekly list — a strong single-week signal for what is otherwise a specialist proof-engineering repo. The surrounding Hacker News threads track the individual results rather than the code: "VP ≠ VNP over Every Field" drew 369 points and 341 comments, and the invariant-subspace counterexample was discussed as settling a long-standing open problem in functional analysis (discussion). Several commenters treat the Lean artifact as a way to bank partial results and avoid re-deriving them later (comment). The repository's own CI design — per-project toolchain pins, comparator checks, explicit MANUAL_ONLY handling — is what makes those claims reproducible by outsiders, which is the part worth evaluating before adopting any of it.

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

VP ≠ VNP over Every Field
▲ 369 · 341 comments · November 23, 2026
Galactic quasi-polynomial quantum algorithms for integral and module lattices [pdf]
▲ 313 · 163 comments · November 30, 2026
A counterexample to the invariant subspace problem [pdf]
▲ 31 · 6 comments · December 2, 2026

You might also like

  1. openmathmodel/open-math-harnessA Rust runtime for math-research agents with capability confinement, Lean-checked proofs and per-project memory, tied to one hosted platform.Rust171
  2. lsernau/grh-leanA machine-checked Lean 4 formalization of RH and GRH for Dirichlet L-functions, aimed at proof assistants and number theorists.Lean116
  3. tristanbuckmaster/navier-stokesA paper and Lean 4 formalization of finite-time blow-up for the Navier–Stokes equations, aimed at mathematicians and proof engineers.Lean103
  4. ChatAndBuild/conjecturesA Lean 4 formalisation superproject collecting 17 machine-checked number-theory results derived from RH or GRH.TeX201
  5. leanprover-community/riemann-hypothesisA Comparator-based verification setup for a claimed Lean formalization of the Riemann Hypothesis, aimed at proof-checking researchers.Lean181