Bifibrational Functorial Semantics of Parametric Polymorphism

被引:8
|
作者
Ghani, Neil [1 ]
Johann, Patricia [2 ]
Forsberg, Fredrik Nordvall [1 ]
Orsanigo, Federico [1 ]
Revell, Tim [1 ]
机构
[1] Univ Strathclyde, Glasgow G1 1XQ, Lanark, Scotland
[2] Appalachian State Univ, Boone, NC 28608 USA
基金
英国工程与自然科学研究理事会;
关键词
Parametricity; logical relations; System F; fibred category theory;
D O I
10.1016/j.entcs.2015.12.011
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Reynolds' theory of parametric polymorphism captures the invariance of polymorphically typed programs under change of data representation. Semantically, reflexive graph categories and fibrations are both known to give a categorical understanding of parametric polymorphism. This paper contributes further to this categorical perspective by showing the relevance of bifibrations. We develop a bifibrational framework for models of System F that are parametric, in that they verify the Identity Extension Lemma and Reynolds' Abstraction Theorem. We also prove that our models satisfy expected properties, such as the existence of initial algebras and final coalgebras, and that parametricity implies dinaturality.
引用
收藏
页码:165 / 181
页数:17
相关论文
共 9 条
  • [1] Realisability semantics of parametric polymorphism, general references and recursive types
    Birkedal, Lars
    Stovring, Kristian
    Thamsborg, Jacob
    MATHEMATICAL STRUCTURES IN COMPUTER SCIENCE, 2010, 20 (04) : 655 - 703
  • [2] Modules, abstraction, and parametric polymorphism
    Crary K.
    ACM SIGPLAN Notices, 2017, 52 (01): : 100 - 113
  • [3] Modules, Abstraction, and Parametric Polymorphism
    Crary, Karl
    ACM SIGPLAN NOTICES, 2017, 52 (01) : 100 - 113
  • [4] Parametric Polymorphism and Operational Improvement
    Hackett, Jennifer
    Hutton, Graham
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2018, 2
  • [5] Parametric Polymorphism and Operational Improvement
    Hackett, Jennifer
    Hutton, Graham
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES, 2018,
  • [6] Set-theoretic Foundation of Parametric Polymorphism and Subtyping
    Castagna, Giuseppe
    Xu, Zhiwu
    ICFP 11 - PROCEEDINGS OF THE 2011 ACM SIGPLAN: INTERNATIONAL CONFERENCE ON FUNCTIONAL PROGRAMMING, 2011, : 94 - 106
  • [7] Set-theoretic Foundation of Parametric Polymorphism and Subtyping
    Castagna, Giuseppe
    Xu, Zhiwu
    ACM SIGPLAN NOTICES, 2011, 46 (09) : 94 - 106
  • [8] Boxes go bananas: Encoding higher-order abstract syntax with parametric polymorphism
    Washburn, G
    Weirich, S
    ACM SIGPLAN NOTICES, 2003, 38 (09) : 249 - 262
  • [9] Transposing F to C#: expressivity of parametric polymorphism in an object-oriented language
    Kennedy, A
    Syme, D
    CONCURRENCY AND COMPUTATION-PRACTICE & EXPERIENCE, 2004, 16 (07): : 707 - 733