<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://invarians.org/index.php?action=history&amp;feed=atom&amp;title=Lean_theorem_prover%2FHistory%2FMathlib_and_its_community</id>
	<title>Lean theorem prover/History/Mathlib and its community - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://invarians.org/index.php?action=history&amp;feed=atom&amp;title=Lean_theorem_prover%2FHistory%2FMathlib_and_its_community"/>
	<link rel="alternate" type="text/html" href="https://invarians.org/index.php?title=Lean_theorem_prover/History/Mathlib_and_its_community&amp;action=history"/>
	<updated>2026-10-21T06:37:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://invarians.org/index.php?title=Lean_theorem_prover/History/Mathlib_and_its_community&amp;diff=6804&amp;oldid=prev</id>
		<title>PMA Publisher: Published from the Principia Machina source</title>
		<link rel="alternate" type="text/html" href="https://invarians.org/index.php?title=Lean_theorem_prover/History/Mathlib_and_its_community&amp;diff=6804&amp;oldid=prev"/>
		<updated>2026-10-15T19:35:31Z</updated>

		<summary type="html">&lt;p&gt;Published from the Principia Machina source&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:35, 15 October 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{DISPLAYTITLE:Mathlib and its community}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{DISPLAYTITLE:Mathlib and its community}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Lean theorem prover map}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Mathlib is the main library of formalised mathematics for Lean. It began in 2017 as mathlib, a library for Lean 3, and was carried over to Lean 4 in 2023, where it is written with a capital letter. It is maintained by its users, not by Lean&amp;#039;s developers. This page covers how it started, how changes to it are reviewed, where its community talks, and how large it is, with each figure dated.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Mathlib is the main library of formalised mathematics for Lean. It began in 2017 as mathlib, a library for Lean 3, and was carried over to Lean 4 in 2023, where it is written with a capital letter. It is maintained by its users, not by Lean&amp;#039;s developers. This page covers how it started, how changes to it are reviewed, where its community talks, and how large it is, with each figure dated.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>PMA Publisher</name></author>
	</entry>
	<entry>
		<id>https://invarians.org/index.php?title=Lean_theorem_prover/History/Mathlib_and_its_community&amp;diff=6597&amp;oldid=prev</id>
		<title>PMA Publisher: Published from the Principia Machina source</title>
		<link rel="alternate" type="text/html" href="https://invarians.org/index.php?title=Lean_theorem_prover/History/Mathlib_and_its_community&amp;diff=6597&amp;oldid=prev"/>
		<updated>2026-10-14T18:01:14Z</updated>

		<summary type="html">&lt;p&gt;Published from the Principia Machina source&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:Mathlib and its community}}&lt;br /&gt;
Mathlib is the main library of formalised mathematics for Lean. It began in 2017 as mathlib, a library for Lean 3, and was carried over to Lean 4 in 2023, where it is written with a capital letter. It is maintained by its users, not by Lean&amp;#039;s developers. This page covers how it started, how changes to it are reviewed, where its community talks, and how large it is, with each figure dated.&lt;br /&gt;
&lt;br /&gt;
== From the core library to mathlib ==&lt;br /&gt;
&lt;br /&gt;
The library&amp;#039;s own account of its origins is the paper &amp;quot;The Lean Mathematical Library&amp;quot;, presented at the Conference on Certified Programs and Proofs (CPP) in New Orleans in January 2020. It was published under the collective name &amp;quot;The mathlib Community&amp;quot;, standing for the 73 contributors listed in its acknowledgements.&amp;lt;ref name=&amp;quot;cpp2020&amp;quot;&amp;gt;The mathlib Community, &amp;quot;The Lean Mathematical Library&amp;quot;, in &amp;#039;&amp;#039;Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and Proofs (CPP 2020)&amp;#039;&amp;#039;, ACM, 2020, pp. 367–381. doi:10.1145/3372885.3373824. Preprint: https://arxiv.org/abs/1910.09336&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
According to the paper, in the summer of 2017 much of the core library that came with Lean 3 was moved out of the system&amp;#039;s own code, and this became the base of mathlib. The project was led at first by Mario Carneiro and Johannes Hölzl at Carnegie Mellon University. It drew users through Lean&amp;#039;s documentation, its emphasis on classical mathematics, and its real-time chat. In the two years after the split it grew from 15,000 to 140,000 lines of code, not counting blank lines and comments.&amp;lt;ref name=&amp;quot;cpp2020&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The paper names the features that set mathlib apart: dependently typed foundations, a focus on classical mathematics, an extensive hierarchy of structures, automation at both large and small scale, and a distributed organisation. It notes that, unlike most such libraries, many of its contributors have a background in pure mathematics, and that this shaped its contents. It treats the writing of tactics as part of library design, not of system development, a division of labour it credits to Lean 3&amp;#039;s metaprogramming.&amp;lt;ref name=&amp;quot;cpp2020&amp;quot; /&amp;gt; How the hierarchy of structures is organised is described at [[Lean theorem prover/Explainers/A library of mathematics|A library of mathematics]] and [[Lean theorem prover/System/Type classes and instance resolution|Type classes and instance resolution]].&lt;br /&gt;
&lt;br /&gt;
== Review and maintainers ==&lt;br /&gt;
&lt;br /&gt;
Mathlib has no central organisation directing its content; design decisions and directions are discussed in public.&amp;lt;ref name=&amp;quot;cpp2020&amp;quot; /&amp;gt; Changes are proposed openly and reviewed before they are accepted. In 2020 eleven community members had been designated maintainers, responsible for approving changes in their areas, and reviews were welcomed from anyone.&amp;lt;ref name=&amp;quot;cpp2020&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The community&amp;#039;s own description of the maintainers, as read in October 2026, is that they have the power to give final approval to proposed changes and must keep the library&amp;#039;s design cohesive and its implementation of high quality. They usually have research-level knowledge of some field of mathematics or computer science. They join at the invitation of the current maintainers, and serve renewable two-year terms. The page then listed 28 maintainers.&amp;lt;ref name=&amp;quot;maintainers&amp;quot;&amp;gt;Lean community, &amp;quot;Mathlib maintainers&amp;quot; (read 14 October 2026). https://leanprover-community.github.io/teams/maintainers.html&amp;lt;/ref&amp;gt; A separate team of reviewers does much of the daily reviewing and passes changes it judges ready to the maintainers for a final decision. Other teams handle moderation, the code of conduct and the community&amp;#039;s infrastructure.&amp;lt;ref name=&amp;quot;teams&amp;quot;&amp;gt;Lean community, &amp;quot;Community teams&amp;quot; and &amp;quot;Mathlib reviewers&amp;quot; (read 14 October 2026). https://leanprover-community.github.io/teams.html&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The contribution guide asks contributors to consider whether material belongs in the library at all. It suggests asking whether the material is taught or studied in a mathematics department, and whether it lies within the maintainers&amp;#039; mathematical interests, since material outside them may be hard for them to maintain. It states plainly that the library&amp;#039;s remit is not all of mathematics, and that a review need not come from a maintainer.&amp;lt;ref name=&amp;quot;contribute&amp;quot;&amp;gt;Lean community, &amp;quot;Contributing to mathlib&amp;quot; (read 14 October 2026). https://leanprover-community.github.io/contribute/index.html&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== The Zulip forum ==&lt;br /&gt;
&lt;br /&gt;
Much of the discussion takes place on the Lean Zulip, a chat forum organised into channels. The 2020 paper describes a channel for new members that welcomes elementary questions, and another for formalising advanced mathematics; it reports that several people cited the forum&amp;#039;s accessibility as their reason for choosing Lean.&amp;lt;ref name=&amp;quot;cpp2020&amp;quot; /&amp;gt; Projects built on the library range from published research to weekend collaborations coordinated there.&amp;lt;ref name=&amp;quot;cpp2020&amp;quot; /&amp;gt; One of them is described at [[Lean theorem prover/History/The Liquid Tensor Experiment|The Liquid Tensor Experiment]].&lt;br /&gt;
&lt;br /&gt;
== From mathlib to Mathlib ==&lt;br /&gt;
&lt;br /&gt;
The move to Lean 4 is described at [[Lean theorem prover/History/Lean 4|Lean 4]]. The Lean 4 library describes itself as &amp;quot;a user maintained library for the Lean theorem prover&amp;quot;, containing programming infrastructure, mathematics, and the tactics that serve both.&amp;lt;ref name=&amp;quot;mathlib4readme&amp;quot;&amp;gt;Mathlib, README of the Lean 4 library. https://github.com/leanprover-community/mathlib4&amp;lt;/ref&amp;gt; The Lean 3 library is now marked as no longer actively maintained.&amp;lt;ref name=&amp;quot;mathlib3readme&amp;quot;&amp;gt;Lean 3 mathlib, README. https://github.com/leanprover-community/mathlib&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Size ==&lt;br /&gt;
&lt;br /&gt;
Dozens of changes are approved every week, so each figure here carries the date of its source.&amp;lt;ref name=&amp;quot;maintainers&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* At the end of Lean 3 mathlib had over one million lines; the Lean reference manual, in the edition for version 4.34.0, says Mathlib has since grown to over 1.5 million.&amp;lt;ref name=&amp;quot;refhist&amp;quot;&amp;gt;&amp;#039;&amp;#039;The Lean Language Reference&amp;#039;&amp;#039;, section 1.1 &amp;quot;History&amp;quot;, for version 4.34.0 of Lean. https://lean-lang.org/doc/reference/4.34.0/Introduction/&amp;lt;/ref&amp;gt;&lt;br /&gt;
* In October 2025 Renaissance Philanthropy described the library as nearly two million lines of computer-verified mathematics.&amp;lt;ref name=&amp;quot;rpinterview&amp;quot;&amp;gt;Renaissance Philanthropy, &amp;quot;Kevin Buzzard and Alex Kontorovich on the Future of Formal Mathematics: A Mathlib Initiative Interview&amp;quot;, 3 October 2025. https://www.renaissancephilanthropy.org/insights/kevin-buzzard-and-alex-kontorovich-on-the-future-of-formal-mathematics-a-mathlib-initiative-interview&amp;lt;/ref&amp;gt;&lt;br /&gt;
* As of October 2026 the community&amp;#039;s statistics page counted 137,993 definitions, 290,354 theorems and 772 contributors.&amp;lt;ref name=&amp;quot;stats&amp;quot;&amp;gt;Lean community, &amp;quot;Mathlib statistics&amp;quot; (read 14 October 2026). https://leanprover-community.github.io/mathlib_stats.html&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Review has not kept pace with contributions. In the same 2025 interview, Oliver Nash reported that August 2025 was the library&amp;#039;s busiest month, with over 1,100 contributions reviewed and added, and that about 2,000 more were waiting for review.&amp;lt;ref name=&amp;quot;rpinterview&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== The Mathlib Initiative ==&lt;br /&gt;
&lt;br /&gt;
In July 2025 Alex Gerko, founder of XTX Markets, announced a gift of $5 million to Mathlib, alongside $5 million to the Lean Focused Research Organization. With the gift for Mathlib, a new Mathlib Initiative was to be set up within Renaissance Philanthropy.&amp;lt;ref name=&amp;quot;rpgift&amp;quot;&amp;gt;Renaissance Philanthropy, &amp;quot;Lean FRO and Mathlib receive $10M from XTX Markets Founder Alex Gerko to further advance the use of AI for mathematical research&amp;quot;, 24 July 2025. https://www.renaissancephilanthropy.org/insights/lean-fro-and-mathlib-receive-10m-from-xtx-markets-founder-alex-gerko-to-further-advance-the-use-of-ai-for-mathematical-research&amp;lt;/ref&amp;gt; Its stated purpose is to give the library professional support while keeping it open and collaborative. It is led by Johan Commelin, Oliver Nash and Adam Topaz, and a major aim is to increase the capacity for review.&amp;lt;ref name=&amp;quot;rpinterview&amp;quot; /&amp;gt; Several maintainers now describe themselves, on the maintainers&amp;#039; page, as working for it.&amp;lt;ref name=&amp;quot;maintainers&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
Provenance: the 2020 CPP paper, the community&amp;#039;s team, contribution and statistics pages (read on 14 October 2026), the README files, the Lean reference manual and the two Renaissance Philanthropy pages were read. The one quotation is the Lean 4 library&amp;#039;s description of itself. Figures from different sources measure different things (lines, definitions, theorems) and are not comparable with each other.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Next ==&lt;br /&gt;
&lt;br /&gt;
[[Lean theorem prover/History/The Liquid Tensor Experiment|The Liquid Tensor Experiment]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>PMA Publisher</name></author>
	</entry>
</feed>