Realisability semantics of parametric polymorphism, general references and recursive types

被引:14
作者
Birkedal, Lars [1 ]
Stovring, Kristian [1 ]
Thamsborg, Jacob [1 ]
机构
[1] IT Univ Copenhagen, DK-2300 Copenhagen S, Denmark
关键词
LOGICAL RELATIONS; CATEGORY; MODEL;
D O I
10.1017/S0960129510000162
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We present a realisability model for a call-by-value, higher-order programming language with parametric polymorphism, general first-class references, and recursive types. The main novelty is a relational interpretation of open types that include general reference types. The interpretation uses a new approach to modelling references. The universe of semantic types consists of world-indexed families of logical relations over a universal predomain. In order to model general reference types, worlds are finite maps from locations to semantic types: this introduces a circularity between semantic types and worlds that precludes a direct definition of either. Our solution is to solve a recursive equation in an appropriate category of metric spaces. In effect, types are interpreted using a Kripke logical relation over a recursively defined set of worlds. We illustrate how the model can be used to prove simple equivalences between different implementations of imperative abstract data types.
引用
收藏
页码:655 / 703
页数:49
相关论文
共 34 条
[1]  
Abadi M., 1990, Proceedings. Fifth Annual IEEE Symposium on Logic in Computer Science (90CH2897-7), P355, DOI 10.1109/LICS.1990.113761
[2]  
Abadi M., 2000, Mathematical Structures in Computer Science, V10, P313, DOI 10.1017/S0960129500003054
[3]   A game semantics for generic polymorphism [J].
Abramsky, S ;
Jagadeesan, R .
ANNALS OF PURE AND APPLIED LOGIC, 2005, 133 (1-3) :3-37
[4]   A fully abstract game semantics for general references [J].
Abramsky, S ;
Honda, K ;
McCusker, G .
THIRTEENTH ANNUAL IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE, PROCEEDINGS, 1998, :334-344
[5]   State-Dependent Representation Independence [J].
Ahmed, Amal ;
Dreyer, Derek ;
Rossberg, Andreas .
ACM SIGPLAN NOTICES, 2009, 44 (01) :340-353
[6]  
Ahmed Amal J., 2004, Ph. D. Dissertation
[7]   RECURSION OVER REALIZABILITY STRUCTURES [J].
AMADIO, RM .
INFORMATION AND COMPUTATION, 1991, 91 (01) :55-85
[8]   SOLVING REFLEXIVE DOMAIN EQUATIONS IN A CATEGORY OF COMPLETE METRIC-SPACES [J].
AMERICA, P ;
RUTTEN, J .
JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1989, 39 (03) :343-375
[9]  
[Anonymous], 1998, Domains and lambda-calculi
[10]  
Baier C., 1997, Formal Aspects of Computing, V9, P425, DOI 10.1007/BF01211300