Skip to main navigation Skip to search Skip to main content

Growing Mathlib: maintenance of a large scale mathematical library

  • Anne Baanen
  • , Matthew Robert Ballard
  • , Johan Commelin
  • , Bryan Gin–ge Chen
  • , Michael Rothgang*
  • , Damiano Testa
  • *Corresponding author for this work
  • Lean FRO
  • University of South Carolina
  • University of Bonn
  • University of Warwick

Research output: Chapter in Book/Report/Conference proceeding › Conference contribution › Academic › peer-review

Abstract

The Lean mathematical library Mathlib is one of the fastest-growing libraries of formalised mathematics. We describe various strategies to manage this growth, while allowing for change and avoiding maintainer overload. This includes dealing with breaking changes via a deprecation system, using code quality analysis tools (linters) to provide direct user feedback about common pitfalls, speeding up compilation times through conscious library (re-)design, dealing with technical debt as well as writing custom tooling to help with the review and triage of new contributions.

Original languageEnglish
Title of host publicationIntelligent Computer Mathematics - 18th International Conference, CICM 2025, Proceedings
EditorsValeria de Paiva, Peter Koepke
PublisherSpringer Science and Business Media Deutschland GmbH
Pages51-70
Number of pages20
ISBN (Print)9783032070203
DOIs
Publication statusPublished - 2026
Event18th International Conference on Intelligent Computer Mathematics, CICM 2025 - Brasilia, Brazil
Duration: 6 Oct 2025 → 10 Oct 2025

Publication series

NameLecture Notes in Computer Science
Volume16136 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference18th International Conference on Intelligent Computer Mathematics, CICM 2025
Country/TerritoryBrazil
CityBrasilia
Period6/10/25 → 10/10/25

Bibliographical note

Publisher Copyright:
© The Author(s), under exclusive license to Springer Nature Switzerland AG 2026.

Funding

We would like to thank the anonymous referees for their helpful comments and suggestions. Michael Rothgang was funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under Germany’s Excellence Strategy – EXC-2047/1 – 390685813. This material is based upon work supported by the U.S. National Science Foundation Award No. DMS-2302263.

FundersFunder number
Deutsche ForschungsgemeinschaftEXC-2047/1 – 390685813
National Science FoundationDMS-2302263

    Keywords

    • Formal mathematics
    • Library development
    • Linting

    Fingerprint

    Dive into the research topics of 'Growing Mathlib: maintenance of a large scale mathematical library'. Together they form a unique fingerprint.

    Cite this