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

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

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

arXiv:1810.12619 (cs)
[提交于 2018年10月30日]

标题:Dynamic Type Inference for Gradual Hindley--Milner Typing

作者:Yusuke Miyazaki, Taro Sekiyama, Atsushi Igarashi
查看论文《Dynamic Type Inference for Gradual Hindley--Milner Typing》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Garcia and Cimini study a type inference problem for the ITGL, an implicitly and gradually typed language with let-polymorphism, and develop a sound and complete inference algorithm for it. Soundness and completeness mean that, if the algorithm succeeds, the input term can be translated to a well-typed term of an explicitly typed blame calculus by cast insertion and vice versa. However, in general, there are many possible translations depending on how type variables that were left undecided by static type inference are instantiated with concrete static types. Worse, the translated terms may behave differently---some evaluate to values but others raise blame. In this paper, we propose and formalize a new blame calculus $\lambda^{\textsf{DTI}}_{\textsf{B}}$ that avoids such divergence as an intermediate language for the ITGL. A main idea is to allow a term to contain type variables (that have not been instantiated during static type inference) and defer instantiation of these type variables to run time. We introduce dynamic type inference (DTI) into the semantics of $\lambda^{\textsf{DTI}}_{\textsf{B}}$ so that type variables are instantiated along reduction. The DTI-based semantics not only avoids the divergence described above but also is sound and complete with respect to the semantics of fully instantiated terms in the following sense: if the evaluation of a term succeeds (i.e., terminates with a value) in the DTI-based semantics, then there is a fully instantiated version of the term that also succeeds in the explicitly typed blame calculus and vice versa. Finally, we prove the gradual guarantee, which is an important correctness criterion of a gradually typed language, for the ITGL.
评论: Some typos are corrected in v2
主题: 程序设计语言 (cs.PL); 计算机科学中的逻辑 (cs.LO)
引用方式: arXiv:1810.12619 [cs.PL]
  (或者 arXiv:1810.12619v1 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.1810.12619
期刊参考: PACMPL 3(POPL): 18:1-18:29 (2019)
相关 DOI: https://doi.org/10.1145/3290331

提交历史

来自:Atsushi Igarashi
[v1] 2018年10月30日 星期二 10:06:46 UTC
全文链接:

访问论文:

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

当前浏览上下文:

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

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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