| ||||
| ||||
![]() Title:Use and Abuse of Instance Parameters in Mathlib Authors:Anne Baanen Conference:ITP 2022 Tags:algebraic hierarchy, dependent type theory, formalization of mathematics, Lean prover and type classes 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. Use and Abuse of Instance Parameters in Mathlib ![]() Use and Abuse of Instance Parameters in Mathlib | ||||
Copyright © 2002 – 2025 EasyChair |