A Calculus with Recursive Types, Record Concatenation and Subtyping

被引:0
|
作者
Zhou, Yaoda [1 ]
Oliveira, Bruno C. D. S. [1 ]
Fan, Andong [2 ]
机构
[1] Univ Hong Kong, Hong Kong, Peoples R China
[2] Zhejiang Univ, Hangzhou, Peoples R China
关键词
D O I
10.1007/978-3-031-21037-2_9
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Calculi with subtyping, a form of record concatenation and recursive types are useful to model objects with multiple inheritance. Surprisingly, almost no existing calculi supports the three features together, partly because the combination of subtyping and record concatenation is already known to be troublesome. Recently, a line of work on disjoint intersection types with a merge operator has emerged as a new approach to deal with the interaction between subtyping and record concatenation. However, the addition of recursive types has not been studied. In this paper we present a calculus that combines iso-recursive types with disjoint intersection types and a merge operator. The merge operator generalizes symmetric record concatenation, and the calculus supports subtyping as well as recursive types. We build on recent developments on the theory of iso-recursive subtyping using the so-called nominal unfolding rules to add iso-recursive types to a calculus with disjoint intersection types and a merge operator. The main challenge lies in the disjointness definition with iso-recursive subtyping. We show the type soundness of the calculus, decidability of subtyping, as well as the soundness and completeness of our disjointness definition. All the proofs are mechanized in the Coq theorem prover.
引用
收藏
页码:175 / 195
页数:21
相关论文
共 50 条
  • [1] Type inference for record concatenation and subtyping
    Palsberg, J
    Zhao, T
    [J]. INFORMATION AND COMPUTATION, 2004, 189 (01) : 54 - 86
  • [2] SUBTYPING RECURSIVE TYPES
    AMADIO, RM
    CARDELLI, L
    [J]. ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1993, 15 (04): : 575 - 631
  • [3] Efficient type inference for record concatenation and subtyping
    Palsberg, J
    Zhao, T
    [J]. 17TH ANNUAL IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE, PROCEEDINGS, 2002, : 125 - 136
  • [4] Subtyping for session types in the pi calculus
    Simon Gay
    Malcolm Hole
    [J]. Acta Informatica, 2005, 42 : 191 - 225
  • [5] A sequent calculus for subtyping polymorphic types
    Tiuryn, J
    [J]. INFORMATION AND COMPUTATION, 2001, 164 (02) : 345 - 369
  • [6] A sequent calculus for subtyping polymorphic types
    Tiuryn, J
    [J]. MATHEMATICAL FOUNDATIONS OF COMPUTER SCIENCE 1996, 1996, 1113 : 135 - 155
  • [7] Subtyping for session types in the pi calculus
    Gay, S
    Hole, M
    [J]. ACTA INFORMATICA, 2005, 42 (2-3) : 191 - 225
  • [8] CPO-MODELS FOR 2ND-ORDER LAMBDA-CALCULUS WITH RECURSIVE TYPES AND SUBTYPING
    POLL, E
    HEMERIK, C
    TENEIKELDER, HMM
    [J]. RAIRO-INFORMATIQUE THEORIQUE ET APPLICATIONS-THEORETICAL INFORMATICS AND APPLICATIONS, 1993, 27 (03): : 221 - 260
  • [9] Logical Equivalence for Subtyping Object and Recursive Types
    Steffen van Bakel
    Ugo de’Liguoro
    [J]. Theory of Computing Systems, 2008, 42 : 306 - 348
  • [10] Logical equivalence for subtyping object and recursive types
    van Bakel, Steffen
    de'Liguoro, Ugo
    [J]. THEORY OF COMPUTING SYSTEMS, 2008, 42 (03) : 306 - 348