Rank-2 intersection and polymorphic recursion

被引:0
作者
Damiani, F [1 ]
机构
[1] Univ Turin, Dipartimento Informat, I-10149 Turin, Italy
来源
TYPED LAMBDA CALCULI AND APPLICATIONS, PROCEEDINGS | 2005年 / 3461卷
关键词
D O I
暂无
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Let proves be a rank-2 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 recursive definitions that are not simple. At the best of our knowledge, previous algorithms for typing recursive definitions in the presence of rank-2 intersection types allow only simple recursive definitions to be typed. The proposed rules 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.
引用
收藏
页码:146 / 161
页数:16
相关论文
共 23 条
  • [1] A FILTER LAMBDA-MODEL AND THE COMPLETENESS OF TYPE ASSIGNMENT
    BARENDREGT, H
    COPPO, M
    DEZANI-CIANCAGLINI, M
    [J]. JOURNAL OF SYMBOLIC LOGIC, 1983, 48 (04) : 931 - 940
  • [2] Carlier S, 2004, LECT NOTES COMPUT SC, V2986, P294
  • [3] Coppo M., 1980, Notre Dame Journal of Formal Logic, V21, P685, DOI 10.1305/ndjfl/1093883253
  • [4] Cousot P., 1997, POPL 97, P316
  • [5] Damas Luis, 1982, Proceedings of the 9th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages. POPL'82, P207, DOI [10.1145/582153.582176, DOI 10.1145/582153.582176]
  • [6] Rank 2 intersection types for local definitions and conditional expressions
    Damiani, F
    [J]. ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 2003, 25 (04): : 401 - 451
  • [7] Girard J.-Y., 1972, Interpretation fonctionnelle et elimination des coupures de l'artihmetique d'ordre superieur
  • [8] Gori R, 2003, LECT NOTES COMPUT SC, V2575, P132
  • [9] HALLETT JJ, IN PRESS ITRS 04
  • [10] TYPE INFERENCE WITH POLYMORPHIC RECURSION
    HENGLEIN, F
    [J]. ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1993, 15 (02): : 253 - 289