咨询与建议

看过本文的还看了

相关文献

该作者的其他文献

文献详情 >Rank 2 intersection for recurs... 收藏

Rank 2 intersection for recursive definitions

作     者:Damiani, Ferruccio 

作者机构:Univ Turin Dipartimento Informat I-10149 Turin Italy 

出 版 物:《FUNDAMENTA INFORMATICAE》 (Fundam Inf)

年 卷 期:2007年第77卷第4期

页      面:451-488页

核心收录:

学科分类:08[工学] 0835[工学-软件工程] 0701[理学-数学] 0812[工学-计算机科学与技术(可授工学、理学学位)] 

主  题:type inference principal typings polymorphic recursion 

摘      要:Let proves be an intersection type system. We say that a term is proves-simple (or just simple when the system proves is clear from the context) if system proves can prove that it has a simple type. In this paper we propose new typing rules and algorithms that are able to type (with rank 2 intersection types) recursive definitions that are not simple. Typing rules for assigning intersection types to (non-simple) recursive definitions have been already proposed in the literature. However, at the best of our knowledge, previous algorithms for typing recursive definitions in the presence of intersection types allow only simple recursive definitions to be typed. The rules and algorithms proposed in this paper are also able to type interesting examples of polymorphic recursion (i.e., recursive definitions rec {x = e} where different occurrences of x in e are used with different types). Moreover, the underlying techniques do not depend on particulars of rank 2 intersection, so they can be applied to other type systems.

读者评论 与其他读者分享你的观点

用户名:未登录
我的评分