高阶、非谓词和二阶类型的类型检测算法
A Type Checking Algorithm for Higher-rank, Impredicative and Second-order Types
摘要:
我们研究了一种类型检查算法,它能够对使用高阶、非谓词和二阶类型等功能的函数式程序的非平凡子类进行类型检查。算法唯一需要类型注释的地方是在每个函数声明之前。我们证明了系统$\mathbf{F}_ω$的类型检查算法的可靠性,即如果程序是类型检查,那么类型检查器将产生一个良好类型的注释系统$\mathbf{F}_ω$术语。我们扩展了基本算法来处理模式匹配和let绑定。我们实现了一个原型类型检查器,并测试了各种功能的程序。
英文摘要:
We study a type checking algorithm that is able to type check a nontrivial subclass of functional programs that use features such as higher-rank, impredicative and second-order types. The only place the algorithm requires type annotation is before each function declaration. We prove the soundness of the type checking algorithm with respect to System $\mathbf{F}_ω$, i.e. if the program is type checked, then the type checker will produce a well-typed annotated System $\mathbf{F}_ω$ term. We extend the basic algorithm to handle pattern matching and let-bindings. We implement a prototype type checker and test it on a variety of functional programs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。