跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 程序设计语言

arXiv:2001.04301 (cs)
[提交于 2020年1月13日 (v1),最后修订于 2020年1月21日 (此版本, v2)]

标题:Tabled Typeclass Resolution

作者:Daniel Selsam, Sebastian Ullrich, Leonardo de Moura
查看论文《Tabled Typeclass Resolution》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Typeclasses provide an elegant and effective way of managing ad-hoc polymorphism in both programming languages and interactive proof assistants. However, the increasingly sophisticated uses of typeclasses within proof assistants, especially within Lean's burgeoning mathematics library, mathlib, have elevated once-theoretical limitations of existing typeclass resolution procedures into major impediments to ongoing progress. The two most devastating limitations of existing procedures are exponential running times in the presence of diamonds and divergence in the presence of cycles. We present a new procedure, tabled typeclass resolution, that solves both problems by tabling, which is a generalization of memoizing originally introduced to address similar limitations of early logic programming systems. We have implemented our procedure for the upcoming version (v4) of Lean, and have confirmed empirically that our implementation is exponentially faster than existing systems in the presence of diamonds. Although tabling is notoriously difficult to implement, our procedure is notably lightweight and could easily be implemented in other systems. We hope our new procedure facilitates even more sophisticated uses of typeclasses in both software development and interactive theorem proving.
主题: 程序设计语言 (cs.PL); 计算机科学中的逻辑 (cs.LO)
引用方式: arXiv:2001.04301 [cs.PL]
  (或者 arXiv:2001.04301v2 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.2001.04301

提交历史

来自:Daniel Selsam
[v1] 2020年1月13日 星期一 14:40:59 UTC
[v2] 2020年1月21日 星期二 15:09:43 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.LO
< 上一篇   |   下一篇 >
最新 | 近期 | 2020-01
切换浏览方式为:
cs
cs.PL

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站