Use and Abuse of Instance Parameters in the Lean Mathematical Library

Anne Baanen*

*Corresponding author for this work

Research output: Chapter in Book / Report / Conference proceedingConference contributionAcademicpeer-review

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 languageEnglish
Title of host publication13th International Conference on Interactive Theorem Proving (ITP 2022)
EditorsJune Andronick, Leonardo de Moura
PublisherSchloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing
Pages1-20
Number of pages20
ISBN (Electronic)9783959772525
DOIs
Publication statusPublished - 2022
Event13th International Conference on Interactive Theorem Proving, ITP 2022 - Haifa, Israel
Duration: 7 Aug 202210 Aug 2022

Publication series

NameLeibniz International Proceedings in Informatics, LIPIcs
Volume237
ISSN (Print)1868-8969

Conference

Conference13th International Conference on Interactive Theorem Proving, ITP 2022
Country/TerritoryIsrael
CityHaifa
Period7/08/2210/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

Fingerprint

Dive into the research topics of 'Use and Abuse of Instance Parameters in the Lean Mathematical Library'. Together they form a unique fingerprint.

Cite this