计算机科学 > 计算机科学中的逻辑
[提交于 2022年5月3日]
标题:Use and abuse of instance parameters in the Lean mathematical library
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Anne Baanen[v1] 2022年5月3日 星期二 00:00:00 UTC