arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1106.1234cs.LOcs.PL
收藏

双态递归的类型推断

Type Inference for Bimorphic Recursion

Makoto Tatsuta, Ferruccio Damiani

摘要:

本文提出了双态递归,这是一种受限制的多态递归,使得函数定义体中的每个递归调用具有相同的类型。双态递归允许我们为递归定义的函数分配两种不同的类型:一种是递归调用,另一种是定义之外的调用。本文中的双态递归是可以嵌套的。本文证明了双态递归具有主类型和可判定的类型推断。因此,双态递归给我们提供了灵活的递归类型和可判定的类型推断。本文还表明,它的类型成为不可判定的,因为嵌套的递归时,从双态递归删除的实例化属性。

英文摘要:

This paper proposes bimorphic recursion, which is restricted polymorphic recursion such that every recursive call in the body of a function definition has the same type. Bimorphic recursion allows us to assign two different types to a recursively defined function: one is for its recursive calls and the other is for its calls outside its definition. Bimorphic recursion in this paper can be nested. This paper shows bimorphic recursion has principal types and decidable type inference. Hence bimorphic recursion gives us flexible typing for recursion with decidable type inference. This paper also shows that its typability becomes undecidable because of nesting of recursions when one removes the instantiation property from the bimorphic recursion.

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

↑