Modeling Abstract Types in Modules with Open Existential Types

被引:9
作者
Montagu, Benoit
Remy, Didier
机构
关键词
Design; Languages; Theory; Lambda-Calculus; Modules; Type systems; Abstract types; Generativity; Existential Types; Linear type systems; Modularity;
D O I
10.1145/1594834.1480926
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We propose F-(sic), a calculus of open existential types that is an extension of System F obtained by decomposing the introduction and elimination of existential types into more atomic constructs. Open existential types model modular type abstraction as done in module systems. The static semantics of F-(sic) adapts standard techniques to deal with linearity of typing contexts, its dynamic semantics is a small-step reduction semantics that performs extrusion of type abstraction as needed during reduction, and the two are related by subject reduction and progress lemmas. Applying the Curry-Howard isomorphism, F-(sic) can be also read back as a logic with the same expressive power as second-order logic but with more modular ways of assembling partial proofs. We also extend the core calculus to handle the double vision problem as well as type-level and term-level recursion. The resulting language turns out to be a new formalization of (a minor variant of) Dreyer's internal language for recursive and mixin modules.
引用
收藏
页码:354 / 365
页数:12
相关论文
共 23 条
  • [1] [Anonymous], MOSCOW ML OWNERS MAN
  • [2] [Anonymous], 2005, ADV TOPICS TYPES PRO
  • [3] [Anonymous], POPL 94
  • [4] CARDELLI L, 1990, PROGRAMMING CONCEPTS AND METHODS, P479
  • [5] DREYER D, 2007, P ACM SIGPLAN INT C, P289
  • [6] DREYER D, 2003, P 30 ACM SIGPLAN SIG, P236
  • [7] Recursive type generativity
    Dreyer, Derek
    [J]. JOURNAL OF FUNCTIONAL PROGRAMMING, 2007, 17 : 433 - 471
  • [8] Flatt Matthew., 1998, P ACM SIGPLAN 1998 C, P236
  • [9] HARPER R, 1990, CONFERENCE RECORD OF THE SEVENTEENTH ANNUAL ACM SYMPOSIUM ON PRINCIPLES OF PROGRAMMING LANGUAGES, P341, DOI 10.1145/96709.96744
  • [10] Towards a mechanized metatheory of Standard ML
    Lee, Daniel K.
    Crary, Karl
    Harper, Robert
    [J]. ACM SIGPLAN NOTICES, 2007, 42 (01) : 173 - 184