Use and abuse of instance parameters in the Lean mathematical library

02/03/2022
by   Anne Baanen, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 4

page 6

page 8

page 12

page 13

page 17

research
06/09/2011

The MathScheme Library: Some Preliminary Experiments

We present some of the experiments we have performed to best test our de...
research
10/21/2019

The Lean mathematical library

This paper describes mathlib, a community-driven effort to build a unifi...
research
10/14/2022

Designing a general library for convolutions

We will discuss our experiences and design decisions obtained from build...
research
02/03/2020

Validating Mathematical Structures

With regard to formalizing mathematics in proof assistants, the hierarch...
research
04/07/2020

Maintaining a Library of Formal Mathematics

The Lean mathematical library mathlib is developed by a community of use...
research
04/08/2021

GrASP: A Library for Extracting and Exploring Human-Interpretable Textual Patterns

Data exploration is an important step of every data science and machine ...
research
09/21/2022

An Integrated Web Platform for the Mizar Mathematical Library

This paper reports on the development of a Web platform to host the Miza...

Please sign up or login with your details

Forgot password? Click here to reset