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
相关论文
共 50 条
  • [41] Lightweight parametric polymorphism for Oberon
    Roe, P
    Szyperski, C
    MODULAR PROGRAMMING LANGUAGES, 1997, 1204 : 140 - 154
  • [42] Typed parametric polymorphism for aspects
    Jagadeesan, Radha
    Jeffrey, Alan
    Riely, James
    SCIENCE OF COMPUTER PROGRAMMING, 2006, 63 (03) : 267 - 296
  • [43] Parametric Polymorphism and Operational Improvement
    Hackett, Jennifer
    Hutton, Graham
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2018, 2
  • [44] Parametric Polymorphism and Operational Improvement
    Hackett, Jennifer
    Hutton, Graham
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES, 2018,
  • [45] A logic for parametric polymorphism with effects
    Mogelberg, Rasmus Ejlers
    Simpson, Alex
    TYPES FOR PROOFS AND PROGRAMS, 2008, 4941 : 142 - 156
  • [46] Parametric polymorphism and orthogonal persistence
    Alagic, S
    Nguyen, T
    OBJECTS AND DATABASES, 2001, 1944 : 32 - 46
  • [47] A logical aspect of parametric polymorphism
    Hasegawa, R
    COMPUTER SCIENCE LOGIC, 1996, 1092 : 291 - 307
  • [48] Static slicing and parametric polymorphism
    Byers, D
    Kamkar, M
    FIRST IEEE INTERNATIONAL WORKSHOP ON SOURCE CODE ANALYSIS AND MANIPULATION, PROCEEDINGS, 2001, : 179 - 184
  • [49] Type Polymorphism, Natural Language Semantics, and TIL
    Pezlar, Ivo
    JOURNAL OF LOGIC LANGUAGE AND INFORMATION, 2023, 32 (02) : 275 - 295
  • [50] Game Semantics for Call-by-Value Polymorphism
    Laird, James
    AUTOMATA, LANGUAGES AND PROGRAMMING, PT II, 2010, 6199 : 187 - 198