• Code and development

Formal Math

by Anthropicanthropics/formal-math

Helps experts use a computer to check that complex mathematical proofs are correct.

A collection of machine-checked formal mathematical proofs using the Lean 4 language.

Released on 6 August 2026 · Trending for 1 day · first spotted here on 5 December 2026

At a glance

Use
Code and development
Level
For developers
Access
Source code
Commercial use
Commercial use allowedLicence: Apache 2.0
Type
Repository

Why it's getting attention

It includes formalizations by Anthropic covering topics like the Riemann zeta function and the Exponential Time Hypothesis.

What it can do

  • Writes code

Who it's for

This tool is for mathematicians, theoretical computer science researchers, and developers specializing in formal verification. You must be proficient in Lean 4 and know how to use the Lake project manager. A development environment configured with the specific versions of Lean and Mathlib mentioned in the repository is required to compile and verify proofs locally.

What you can do with it

  • Study the Riemann zeta function by consulting the formalization regarding the simplicity of its zeros on the critical line.
  • Analyze algorithmic complexity through proofs concerning the 3SUM problem and (min,+) product for RAM machines.
  • Consult the proof that refutes the Exponential Time Hypothesis via the deterministic Turing machine that counts satisfying assignments.
  • Examine lattice problems and lattice-based cryptography using quasi-polynomial quantum algorithms.

How to try it

  1. Browse .lean files and attached PDF documents directly on the GitHub repository to read the statements.
  2. Clone the repository and enter a specific subdirectory to use the dedicated Lake project.
  3. Run the lake build command inside the chosen folder with the matching toolchain.
  4. Execute the comparator-check.sh script to validate the solution according to Palomar registry criteria.

Strengths

  • Machine-verified proofs with no 'sorry' used outside comparator files.
  • Organized structure into autonomous Lake projects.
  • Integration with the Palomar submission registry.
  • Coverage of complex fields like quantum cryptography and number theory.

Limits and requirements

  • Requires advanced technical skills in Lean 4.
  • Strict dependencies on specific Mathlib versions.
  • Some projects, such as the one on lattices, are not yet submitted to Palomar.
  • Apache-2.0 license allows use but requires adherence to legal notices.

Who it is worth it for

This set of resources is valuable for formal proof experts seeking rigorous work. For a user unfamiliar with the Lean language, the tool remains inaccessible as it is a library of mathematical code rather than interactive software. It is a technical milestone for research, not a daily productivity tool.

Alternatives already on the site

  • FlashProveFlashProve verifies if a specific AI model produced a response, while formal-math verifies the logical validity of mathematical theorems.

Seen in

Card written by an AI from the publisher's official page, checked by code (numbers, names, copied wording), then read by a second model. The site has not tested the tool: everything described is what the publisher states. Page updated on 5 December 2026.

All tools to watch