arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1609.09709cs.PL
收藏

通过统一进行类型检查

Type checking through unification

Francesco Mazzoli, Andreas Abel

摘要:

在本文中,我们描述了如何利用高阶统一的类型检查依赖类型的语言与元变量。文献通常将统一算法作为一个独立的组件,然而,需要检查定义的平等的条款,而类型检查引起了类型检查和统一之间的紧密相互作用。这种相互作用是现有依赖类型化程序设计语言的类型检查算法复杂性的主要来源。我们提出了一种算法,编码的类型检查问题完全统一的形式的约束,降低了类型检查代码的复杂性,利用高阶统一,这已经是许多依赖类型的语言的实现的一部分。

英文摘要:

In this paper we describe how to leverage higher-order unification to type check a dependently typed language with meta-variables. The literature usually presents the unification algorithm as a standalone component, however the need to check definitional equality of terms while type checking gives rise to a tight interplay between type checking and unification. This interplay is a major source of complexity in the type-checking algorithm for existing dependently typed programming languages. We propose an algorithm that encodes a type-checking problem entirely in the form of unification constraints, reducing the complexity of the type-checking code by taking advantage of higher order unification, which is already part of the implementation of many dependently typed languages.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑