Type soundness proofs with definitional interpreters

被引:0
|
作者
Amin N. [1 ]
Rompf T. [2 ]
机构
[1] Amin, Nada
[2] Rompf, Tiark
来源
| 2017年 / Association for Computing Machinery卷 / 52期
基金
美国国家科学基金会;
关键词
Definitional interpreters; dependent object types; DOT; Scala; type soundness;
D O I
10.1145/3009837.3009866
中图分类号
学科分类号
摘要
While type soundness proofs are taught in every graduate PL class, the gap between realistic languages and what is accessible to formal proofs is large. In the case of Scala, it has been shown that its formal model, the Dependent Object Types (DOT) calculus, cannot simultaneously support key metatheoretic properties such as environment narrowing and subtyping transitivity, which are usually required for a type soundness proof. Moreover, Scala and many other realistic languages lack a general substitution property. The first contribution of this paper is to demonstrate how type soundness proofs for advanced, polymorphic, type systems can be carried out with an operational semantics based on high-level, definitional interpreters, implemented in Coq. We present the first mechanized soundness proofs in this style for System F and several extensions, including mutable references. Our proofs use only straightforward induction, which is significant, as the combination of big-step semantics, mutable references, and polymorphism is commonly believed to require coinductive proof techniques. The second main contribution of this paper is to show how DOT-like calculi emerge from straightforward generalizations of the operational aspects of F, exposing a rich design space of calculi with path-dependent types inbetween System F and DOT, which we dub the System D Square. By working directly on the target language, definitional interpreters can focus the design space and expose the invariants that actually matter at runtime. Looking at such runtime invariants is an exciting new avenue for type system design. © 2017 ACM.
引用
收藏
页码:666 / 679
页数:13
相关论文
共 50 条
  • [1] Type Soundness Proofs with Definitional Interpreters
    Amin, Nada
    Rompf, Tiark
    ACM SIGPLAN NOTICES, 2017, 52 (01) : 666 - 679
  • [2] Compositional Soundness Proofs of Abstract Interpreters
    Keidel, Sven
    Poulsen, Casper Bach
    Erdweg, Sebastian
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES, 2018,
  • [3] Compositional Soundness Proofs of Abstract Interpreters
    Keidel, Sven
    Poulsen, Casper Bach
    Erdweg, Sebastian
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2018, 2
  • [4] REMARKS ON SOUNDNESS OF PROOFS
    BURMESTER, MVD
    DESMEDT, YG
    ELECTRONICS LETTERS, 1989, 25 (22) : 1509 - 1511
  • [5] Automating Soundness Proofs
    van Weerdenburg, Muck
    ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2009, 229 (04) : 107 - 118
  • [6] Abstracting definitional interpreters (Functional pearl)
    Darais D.
    Labich N.
    Nguyn P.C.
    Van Horn D.
    1600, Association for Computing Machinery (01):
  • [7] Automating type soundness proofs via decision procedures and guided reductions
    Syme, D
    Gordon, AD
    LOGIC FOR PROGRAMMING, ARTIFICIAL INTELLIGENCE, AND REASONING, 2002, 2514 : 418 - 434
  • [8] On Soundness Notions for Interactive Oracle Proofs
    Block, Alexander R.
    Garreta, Albert
    Tiwari, Pratyush Ranjan
    Zajac, Michal
    JOURNAL OF CRYPTOLOGY, 2025, 38 (01)
  • [9] Soundness and Completeness Proofs by Coinductive Methods
    Blanchette, Jasmin Christian
    Popescu, Andrei
    Traytel, Dmitriy
    JOURNAL OF AUTOMATED REASONING, 2017, 58 (01) : 149 - 179
  • [10] Soundness and Completeness Proofs by Coinductive Methods
    Jasmin Christian Blanchette
    Andrei Popescu
    Dmitriy Traytel
    Journal of Automated Reasoning, 2017, 58 : 149 - 179