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 条
  • [1] FUNCTORIAL POLYMORPHISM
    BAINBRIDGE, ES
    FREYD, PJ
    SCEDROV, A
    SCOTT, PJ
    THEORETICAL COMPUTER SCIENCE, 1990, 70 (01) : 35 - 64
  • [3] FUNCTORIAL SEMANTICS OF TOPOLOGICAL THEORIES
    Solovyov, S. A.
    IRANIAN JOURNAL OF FUZZY SYSTEMS, 2015, 12 (05): : 1 - 43
  • [4] Functorial semantics of rewrite theories
    Meseguer, J
    FORMAL METHODS IN SOFTWARE AND SYSTEMS MODELING: ESSAYS DEDICATED TO HARTMUT EHRIG ON THE OCCASION OF HIS 60TH BIRTHDAY, 2005, 3393 : 220 - 235
  • [5] FUNCTORIAL SEMANTICS OF ELEMENTARY THEORIES
    LAWVERE, FW
    JOURNAL OF SYMBOLIC LOGIC, 1966, 31 (02) : 294 - &
  • [6] Functorial Semantics for Partial Theories
    Di Liberti, Ivan
    Loregian, Fosco
    Nester, Chad
    Sobocinski, Pawel
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2021, 5 (POPL):
  • [7] A FUNCTORIAL SEMANTICS FOR OBSERVED CONCURRENCY
    MURPHY, D
    POIGNE, A
    LECTURE NOTES IN COMPUTER SCIENCE, 1992, 629 : 401 - 411
  • [8] A Trace Semantics for System F Parametric Polymorphism
    Jaber, Guilhem
    Tzevelekos, Nikos
    FOUNDATIONS OF SOFTWARE SCIENCE AND COMPUTATION STRUCTURES, FOSSACS 2018, 2018, 10803 : 20 - 38
  • [9] Functorial semantics for multi-algebras
    Corradini, A
    Gadducci, F
    RECENT TRENDS IN ALGEBRAIC DEVELOPMENT TECHNIQUES, 1999, 1589 : 79 - 91
  • [10] FUNCTORIAL SEMANTICS AND HSP TYPE THEOREMS
    BARR, M
    ALGEBRA UNIVERSALIS, 1994, 31 (02) : 223 - 251