Game Semantics for a Polymorphic Programming Language

被引:8
作者
Laird, J. [1 ]
机构
[1] Univ Bath, Dept Comp Sci, Bath BA2 7AY, Avon, England
基金
英国工程与自然科学研究理事会;
关键词
Languages; Theory; Polymorphism; System F; references; game semantics; genericity; full abstraction; FULL ABSTRACTION;
D O I
10.1145/2505986
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
This article presents a game semantics for higher-rank polymorphism, leading to a new model of the calculus System F, and a programming language which extends it with mutable variables. In contrast to previous game models of polymorphism, it is quite concrete, extending existing categories of games by a simple development of the notion of question/answer labelling and the associated bracketing condition to represent "copycat links" between positive and negative occurrences of type variables. Some well-known System F encodings of type constructors correspond in our model to simple constructions on games, such as the lifted sum. We characterize the generic types of our model (those for which instantiation reflects denotational equivalence), and show how to construct an interpretation in which all types are generic. We show how mutable variables (a la Scheme) may be interpreted in our model, allowing the definition of polymorphic objects with local state. By proving definability of finitary elements in this model using a decomposition argument, we establish a full abstraction result.
引用
收藏
页数:27
相关论文
共 24 条
[1]   A game semantics for generic polymorphism [J].
Abramsky, S ;
Jagadeesan, R .
ANNALS OF PURE AND APPLIED LOGIC, 2005, 133 (1-3) :3-37
[2]  
Abramsky S, 2000, INFORM COMPUT, V163, P409, DOI [10.1006/inco.2000.2930, 10.1006/inco2000.2930]
[3]   GAMES AND FULL COMPLETENESS FOR MULTIPLICATIVE LINEAR LOGIC [J].
ABRAMSKY, S ;
JAGADEESAN, R .
JOURNAL OF SYMBOLIC LOGIC, 1994, 59 (02) :543-574
[4]  
ABRAMSKY S., 1998, P 13 ANN S LOG COMP
[5]   AN EXTENSION OF SYSTEM-F WITH SUBTYPING [J].
CARDELLI, L ;
MARTINI, S ;
MITCHELL, JC ;
SCEDROV, A .
INFORMATION AND COMPUTATION, 1994, 109 (1-2) :4-56
[6]  
Clairambault P., 2009, LECT NOTES COMPUTER, V5504
[7]  
de Lataillade J., 2009, P 24 ANN S LOG COMP
[8]   The regular-language semantics of second-order idealized ALGOL [J].
Ghica, DR ;
McCusker, G .
THEORETICAL COMPUTER SCIENCE, 2003, 309 (1-3) :469-502
[9]  
Girard Jean-Yves, 1972, Ph. D. Dissertation
[10]  
Hughes D., 1997, P 12 INT S LOG COMP