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.
翻译:Scalar行动在数学方面无处不在,因此,在正规化时能够简洁地写出来是很有价值的。 在本文中,我们探索了数学里比3的类别如何被数学里比用来用例子来表达动作,举例说明了使用它们时产生的一些问题,例如行动的兼容性和非定义平等的钻石,并指出了如何解决这些问题。我们概述了数学里比特在这方面需要做哪些更多的工作。