The Mathlib Project
The community-maintained mathematical library for the Lean theorem prover.
MathlibMathlib is a large, unified collection of formalized mathematics and supporting automation infrastructure developed for the Lean theorem prover. Managed under the Lean Community umbrella, the project is developed openly on GitHub and has transitioned from Lean 3 to the currently active Lean 4 version.
Development is distributed and public, with contributions made via pull requests and reviewed by volunteer maintainers under an Apache 2.0 open-source license. The project's design and governance are detailed in the peer-reviewed paper "The Lean mathematical library" (CPP 2020).
As one of the largest consolidated bodies of formalized mathematics in any proof assistant, Mathlib underpins significant formalization efforts, such as the Liquid Tensor Experiment and the formalization of the Polynomial Freeman–Ruzsa (PFR) conjecture proof. It is widely utilized in academic research and industry applications of formal verification.