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

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

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

arXiv:2004.07761 (cs)
[提交于 2020年4月16日 (v1),最后修订于 2020年4月22日 (此版本, v2)]

标题:Deep Generation of Coq Lemma Names Using Elaborated Terms

作者:Pengyu Nie, Karl Palmskog, Junyi Jessy Li, Milos Gligoric
查看论文《Deep Generation of Coq Lemma Names Using Elaborated Terms》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Coding conventions for naming, spacing, and other essentially stylistic properties are necessary for developers to effectively understand, review, and modify source code in large software projects. Consistent conventions in verification projects based on proof assistants, such as Coq, increase in importance as projects grow in size and scope. While conventions can be documented and enforced manually at high cost, emerging approaches automatically learn and suggest idiomatic names in Java-like languages by applying statistical language models on large code corpora. However, due to its powerful language extension facilities and fusion of type checking and computation, Coq is a challenging target for automated learning techniques. We present novel generation models for learning and suggesting lemma names for Coq projects. Our models, based on multi-input neural networks, are the first to leverage syntactic and semantic information from Coq's lexer (tokens in lemma statements), parser (syntax trees), and kernel (elaborated terms) for naming; the key insight is that learning from elaborated terms can substantially boost model performance. We implemented our models in a toolchain, dubbed Roosterize, and applied it on a large corpus of code derived from the Mathematical Components family of projects, known for its stringent coding conventions. Our results show that Roosterize substantially outperforms baselines for suggesting lemma names, highlighting the importance of using multi-input models and elaborated terms.
评论: Accepted in International Joint Conference on Automated Reasoning (IJCAR 2020). With Appendix
主题: 程序设计语言 (cs.PL); 计算与语言 (cs.CL); 软件工程 (cs.SE)
引用方式: arXiv:2004.07761 [cs.PL]
  (或者 arXiv:2004.07761v2 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.2004.07761

提交历史

来自:Pengyu Nie
[v1] 2020年4月16日 星期四 16:54:21 UTC
[v2] 2020年4月22日 星期三 16:50:17 UTC
全文链接:

访问论文:

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

当前浏览上下文:

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

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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