Subtyping and Intersection Types Revisited

被引:0
|
作者
Pfenning, Frank [1 ]
机构
[1] Carnegie Mellon Univ, Dept Comp Sci, Pittsburgh, PA 15213 USA
关键词
Languages; Theory; Verification;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Church's system of simple types has proven to be remarkably robust: call-by-name, call-by-need, and call-by-value languages, with or without effects, and even logical frameworks can be based on the same typing rules. When type systems become more expressive, this unity fractures. An early example is the value restriction for parametric polymorphism which is necessary for ML but not Haskell; a later manifestation is the lack of distributivity of function types over intersections in call-by-value languages with effects. In this talk we reexamine the logical justification for systems of subtyping and intersection types and then explore the consequences in two different settings: logical frameworks and functional programming. In logical frameworks functions are pure and their definitions observable, but complications could arise from the presence of dependent types. We show that this is not the case, and that we can obtain soundness and completeness theorems for a certain axiomatization of subtyping. We also sketch a connection to the type-theoretic notion of proof irrelevance. In functional programming we investigate how the encapsulation of effects in monads interacts with subtyping and intersection types, providing an updated analysis of the value restriction and related phenomena (Davies and Pfenning 2000). While at present this study is far from complete, we believe that its origin in purely logical notions will give rise to a uniform theory that can easily be adapted to specific languages and their operational interpretations.
引用
收藏
页码:219 / 219
页数:1
相关论文
共 50 条
  • [1] Subtyping and intersection types revisited
    Pfenning, Frank
    [J]. ACM SIGPLAN NOTICES, 2007, 42 (09) : 219 - 219
  • [2] Judgmental subtyping systems with intersection types and modal types
    Jeongbong Seo
    Sungwoo Park
    [J]. Acta Informatica, 2013, 50 : 359 - 380
  • [3] Judgmental subtyping systems with intersection types and modal types
    Seo, Jeongbong
    Park, Sungwoo
    [J]. ACTA INFORMATICA, 2013, 50 (7-8) : 359 - 380
  • [4] A Decidable Subtyping Logic for Intersection and Union Types
    Liquori, Luigi
    Stolze, Claude
    [J]. TOPICS IN THEORETICAL COMPUTER SCIENCE, TTCS 2017, 2017, 10608 : 74 - 90
  • [5] Empowering Union and Intersection Types with Integrated Subtyping
    Muehlboeck, Fabian
    Tate, Ross
    [J]. PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2018, 2
  • [6] Intersection Types with Subtyping by Means of Cut Elimination
    Laurent, Olivier
    [J]. FUNDAMENTA INFORMATICAE, 2012, 121 (1-4) : 203 - 226
  • [7] Empowering Union and Intersection Types with Integrated Subtyping
    Muehlboeck, Fabian
    Tate, Ross
    [J]. PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2018, 2
  • [8] Decidability of higher-order subtyping with intersection types
    Compagnoni, AB
    [J]. COMPUTER SCIENCE LOGIC, 1995, 933 : 46 - 60
  • [9] A model for impredicative type systems, universes, intersection types and subtyping
    Miquel, A
    [J]. 15TH ANNUAL IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE, PROCEEDINGS, 2000, : 18 - 29
  • [10] Intersection Subtyping with Constructors
    Laurent, Olivier
    [J]. ELECTRONIC PROCEEDINGS IN THEORETICAL COMPUTER SCIENCE, 2019, (293): : 73 - 84