From Algol to polymorphic linear lambda-calculus

被引:37
|
作者
O'Hearn, PW
Reynolds, JC
机构
[1] Queen Mary Univ London, Dept Comp Sci, London E1 4NS, England
[2] Carnegie Mellon Univ, Sch Comp Sci, Pittsburgh, PA 15213 USA
关键词
linear logic; local state; logical relations; parametric polymorphism;
D O I
10.1145/331605.331611
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
In a linearly-typed functional language, one can define functions that consume their arguments in the process of computing their results. This is reminiscent of state transformations in imperative languages, where execution of an assignment statement alters the contents of the store. We explore this connection by translating two variations on Algol 60 into a purely functional language with polymorphic linear types. On the one hand, the translations lead to a semantic analysis of Algol-like programs, in terms of a model of the linear language. On the other hand, they demonstrate that a linearly-typed functional language can be at least as expressive as Algol.
引用
收藏
页码:167 / 223
页数:57
相关论文
共 50 条