Scalar actions in Lean's mathlib

Eric Wieser
8/10/2021
cs.LO

Official code: leanprover-community/mathlib3 (1,663 stars, Lean, Apache-2.0, last commit 2024-06-28).

Abstract

Scalar actions are ubiquitous in mathematics, and therefore it is valuable to be able to write them succinctly when formalizing. In this paper we explore how Lean 3's typeclasses are used by mathlib for scalar actions with examples, illustrate some of the problems which come up when using them such as compatibility of actions and non-definitionally-equal diamonds, and note how these problems can be solved. We outline where more work is needed in mathlib in this area.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Lean 3's obsolete mathematical components library: please use mathlib4

1,663290Lean, PythonJul 21, 20172 years agoApache-2.0
formal-mathematicsformal-methodsformal-proofsleanproof-automation+1 more

Similar Papers

Cite this paper

@article{wieser2021scalar,
  title  = {Scalar actions in Lean's mathlib},
  author = {Eric Wieser},
  year   = {2021},
  eprint = {2108.10700},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2108.10700}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2108.10700.svg)](https://codeofpaper.com/paper/2108.10700)

Discussion