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 条
  • [21] NEGATION AS FAILURE - PROOFS, INFERENCE RULES AND META-INTERPRETERS
    BRUFFAERTS, A
    HENIN, E
    META-PROGRAMMING IN LOGIC PROGRAMMING, 1989, : 169 - 190
  • [22] Automated soundness proofs for dataflow analyses and transformations via local rules
    Lerner, S
    Millstein, T
    Rice, E
    Chambers, C
    ACM SIGPLAN NOTICES, 2005, 40 (01) : 364 - 377
  • [23] Native diagrammatic soundness and completeness proofs for Peirce’s Existential Graphs (Alpha)
    Gianluca Caterina
    Rocco Gangle
    Fernando Tohmé
    Synthese, 200
  • [24] Computational soundness of symbolic zero-knowledge proofs against active attackers
    Backes, Michael
    Unruh, Dominique
    CSF 2008: 21ST IEEE COMPUTER SECURITY FOUNDATIONS SYMPOSIUM, PROCEEDINGS, 2008, : 255 - 269
  • [25] Native diagrammatic soundness and completeness proofs for Peirce's Existential Graphs (Alpha)
    Caterina, Gianluca
    Gangle, Rocco
    Tohme, Fernando
    SYNTHESE, 2022, 200 (06)
  • [26] A Spectrum of Type Soundness and Performance
    Greenman, Ben
    Felleisen, Matthias
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES, 2018,
  • [27] Type Soundness for Path Polymorphism
    Viso, Andres
    Bonelli, Eduardo
    Ayala-Rincon, Mauricio
    ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2016, 323 : 235 - 251
  • [28] A Spectrum of Type Soundness and Performance
    Greenman, Ben
    Felleisen, Matthias
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2018, 2
  • [29] A SYNTACTIC APPROACH TO TYPE SOUNDNESS
    WRIGHT, AK
    FELLEISEN, M
    INFORMATION AND COMPUTATION, 1994, 115 (01) : 38 - 94
  • [30] Game Semantics for Type Soundness
    Disney, Tim
    Flanagan, Cormac
    2015 30TH ANNUAL ACM/IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE (LICS), 2015, : 104 - 114