Mathlib
Mathlib is a large open-source mathematical formalization library based on the Lean theorem prover, covering formal proofs and definitions across multiple mathematical branches including algebra, topology, number theory, and analysis. The project is collaboratively maintained by the mathematics and computer science community, providing unified mathematical infrastructure that enables users to construct and verify rigorous mathematical proofs within the Lean environment. It includes a standardized code style guide to ensure consistency and maintainability.
Core Facts
Lean 4 has an active community and a continuously expanding mathematics library, Mathlib, and has been used by mathematicians to formalize modern mathematical theorems.
Mathlib is a core mathematics library maintained by the Lean community; it currently contains approximately 2.5 million lines of code and includes a large number of formalized definitions and theorems spanning group theory, topology, and measure theory.
Lean's mathematics library Mathlib has accumulated more than one million lines of machine-verified mathematical theorems.
Timeline (last 90 days)
Lean has an active mathematics library, Mathlib, which covers a large number of modern branches of mathematics and has been used in major formalization projects such as the Liquid Tensor Experiment.
The Lean and Mathlib communities isolated the Riemann statement in a separate file that imports only Mathlib, then used tools such as Comparator and ConLetch to compare it with the theorem in Alpoji's library, and the community reports that the two match exactly.
Sutherland's measurements found that a shorter equivalent statement of the inequality, after full unfolding, has a meaning that depends only on 1,801 definitions and theorem statements in the Lean core and Mathlib.
On November 21, 2025, the Lean and Mathlib communities issued a joint statement confirming that Alpoge's proof of the Riemann hypothesis is correct.
Four external checkers each ran their checks independently, and all passed; the fastest one ran the entire proof in just over three minutes on 64 threads.
The proof uses only Lean's three standard axioms, the same as those used in everyday mathematics in Mathlib, and adds no new axioms.
Lean's public mathematics library Mathlib already contains a statement of the Riemann Hypothesis (just two lines of code), and the final conclusion of Alborg's proof uses that ready-made statement.
Nelson published a long-form PDF pointing out that a certain AI-assisted proof (involving Lean and Mathlib) has problems such as empty definitions and unsatisfiable premises, and declared that the proof is invalid.
According to information cited by Yu Ziyi, the official Lean community as well as multiple independent teams such as Mathlib have verified that the proof has no major problems.
Lean and its mathematics library MathLib are currently the most active formal proof community projects.
40 more timeline events
All Facts (20)
Lean 4 has an active community and a continuously expanding mathematics library, Mathlib, and has been used by mathematicians to formalize modern mathematical theorems.
80%VerifiedMathlib is a core mathematics library maintained by the Lean community; it currently contains approximately 2.5 million lines of code and includes a large number of formalized definitions and theorems spanning group theory, topology, and measure theory.
80%VerifiedLean's mathematics library Mathlib has accumulated more than one million lines of machine-verified mathematical theorems.
80%VerifiedThe Lean theorem prover is an interactive formal proof assistant based on dependent type theory, and its mathematics library Mathlib already covers a large amount of modern mathematics.
75%VerifiedLean is both a programming language and an interactive theorem prover, in which users write mathematical propositions in a formal language and have them verified step by step by the machine.
75%UnverifiedMathlib's design philosophy is Bourbaki-style — defining concepts at the maximum level of generality and then specializing to common use cases.
90%UnverifiedLean 4 and its accompanying mathematics library Mathlib have become the de facto standard for formalized mathematics, and benchmarks such as arXivLean and PutnamBench are built on top of them.
70%UnverifiedLeanGraphSearch is a graph retrieval method for Lean 4 formal theorem proving that, by constructing a graph from Mathlib's forward dependencies, first performs semantic matching to locate anchor points, then uses a graph ranking algorithm to propagate relevance along dependency edges, and finally re-ranks the candidate set.
70%UnverifiedLean拥有名为Mathlib的庞大数学库,涵盖数论、代数、拓扑等众多分支
70%UnverifiedAround 2022, the Mathlib project promoted by mathematicians including Kevin Buzzard incorporated a large number of modern mathematical theorems into Lean's formalization library.
60%UnverifiedAs of 2024, Lean's Mathlib library has formalized more than 170,000 mathematical theorems.
60%Partially VerifiedOn November 20, Anthropic's mathematician Levent Alpogi claimed to have found a proof of the Riemann Hypothesis together with the Claude AI system, and published it in the form of Lean code.
65%Partially VerifiedThe Lean and Mathlib communities issued a joint statement formally certifying Levent Alpogue and Claude's proof of the Riemann Hypothesis, stating full confidence in the correctness of the proof.
65%UnverifiedLean has an active mathematics library, Mathlib, which covers a large number of modern branches of mathematics and has been used in major formalization projects such as the Liquid Tensor Experiment.
50%UnverifiedThe Lean and Mathlib communities isolated the Riemann statement in a separate file that imports only Mathlib, then used tools such as Comparator and ConLetch to compare it with the theorem in Alpoji's library, and the community reports that the two match exactly.
50%UnverifiedFour external checkers each ran their checks independently, and all passed; the fastest one ran the entire proof in just over three minutes on 64 threads.
50%UnverifiedThe proof uses only Lean's three standard axioms, the same as those used in everyday mathematics in Mathlib, and adds no new axioms.
50%UnverifiedSutherland's measurements found that a shorter equivalent statement of the inequality, after full unfolding, has a meaning that depends only on 1,801 definitions and theorem statements in the Lean core and Mathlib.
50%UnverifiedLean's public mathematics library Mathlib already contains a statement of the Riemann Hypothesis (just two lines of code), and the final conclusion of Alborg's proof uses that ready-made statement.
50%UnverifiedAccording to information cited by Yu Ziyi, the official Lean community as well as multiple independent teams such as Mathlib have verified that the proof has no major problems.
50%