Abstract
The Lean mathematical library mathlib features extensive use of the typeclass pattern for organising mathematical structures, based on Lean's mechanism of instance parameters. Related mechanisms for typeclasses are available in other provers including Agda, Coq and Isabelle with varying degrees of adoption. This paper analyses representative examples of design patterns involving instance parameters in the current Lean 3 version of mathlib, focussing on complications arising at scale and how the mathlib community deals with them.
Original language | English |
---|---|
Title of host publication | 13th International Conference on Interactive Theorem Proving (ITP 2022) |
Editors | June Andronick, Leonardo de Moura |
Publisher | Schloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing |
Pages | 1-20 |
Number of pages | 20 |
ISBN (Electronic) | 9783959772525 |
DOIs | |
Publication status | Published - 2022 |
Event | 13th International Conference on Interactive Theorem Proving, ITP 2022 - Haifa, Israel Duration: 7 Aug 2022 → 10 Aug 2022 |
Publication series
Name | Leibniz International Proceedings in Informatics, LIPIcs |
---|---|
Volume | 237 |
ISSN (Print) | 1868-8969 |
Conference
Conference | 13th International Conference on Interactive Theorem Proving, ITP 2022 |
---|---|
Country/Territory | Israel |
City | Haifa |
Period | 7/08/22 → 10/08/22 |
Bibliographical note
Funding Information:Funding NWO Vidi grant No. 016.Vidi.189.037, Lean Forward.
Publisher Copyright:
© Anne Baanen.
Keywords
- algebraic hierarchy
- dependent type theory
- formalization of mathematics
- Lean prover
- typeclasses