ON THE SEMANTIC EXPRESSIVENESS OF ISO- AND EQUI-RECURSIVE TYPES

被引:0
|
作者
Devriese, Dominique [1 ]
Martin, Eric m. [2 ]
Patrignani, Marco [3 ]
机构
[1] Katholieke Univ Leuven, DistriNet, Leuven, Belgium
[2] Jane St Capital, New York, NY USA
[3] Univ Trento, Trento, Italy
关键词
Fully abstract compilation; cross-language logical relation; modular compilation;
D O I
10.46298/LMCS-20(4:14)2024
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
. Recursive types extend the simply-typed lambda calculus (STLC) with the additional expressive power to enable diverging computation and to encode recursive data-types (e.g., lists). Two formulations of recursive types exist: iso-recursive and equirecursive. The relative advantages of iso- and equi-recursion are well-studied when it comes to their impact on type-inference. However, the relative semantic expressiveness of the two formulations remains unclear so far. This paper studies the semantic expressiveness of STLC with iso- and equi-recursive types, proving that these formulations are equally expressive. In fact, we prove that they are both as expressive as STLC with only term-level recursion. We phrase these equiexpressiveness results in terms of full abstraction of three canonical compilers between these three languages (STLC with iso-, with equi-recursive types and with term-level recursion). Our choice of languages allows us to study expressiveness when interacting over both a simply-typed and a recursively-typed interface. The three proofs all rely on a typed version of a proof technique called approximate backtranslation. Together, our results show that there is no difference in semantic expressiveness between STLCs with iso- and equi-recursive types. In this paper, we focus on a simply-typed setting but we believe our results scale to more powerful type systems like System F.
引用
收藏
页码:1 / 45
页数:45
相关论文
共 4 条
  • [1] On the Semantic Expressiveness of Recursive Types
    Patrignani, Marco
    Martin, Eric Mark
    Devriese, Dominique
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2021, 5 (POPL):
  • [2] Type Reconstruction for the Linear π-Calculus with Composite and Equi-Recursive Types
    Padovani, Luca
    FOUNDATIONS OF SOFTWARE SCIENCE AND COMPUTATION STRUCTURES, 2014, 8412 : 88 - 102
  • [3] Full Iso-Recursive Types
    Zhou, Litao
    Wan, Qianyong
    Oliveira, Bruno C. D. S.
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2024, 8 (OOPSLA):
  • [4] On Subtyping-Relation Completeness, with an Application to Iso-Recursive Types
    Ligatti, Jay
    Blackburn, Jeremy
    Nachtigal, Michael
    ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 2017, 39 (01):