METACIRCULARITY IN THE POLYMORPHIC LAMBDA-CALCULUS

被引:17
|
作者
PFENNING, F
LEE, P
机构
[1] Department of Computer Science, Carnegie Mellon University, Pittsburgh
关键词
D O I
10.1016/0304-3975(90)90109-U
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We consider the question of whether a useful notion of metacircularity exists for the polymorphic lambda-calculus. Even though complete metacircularity seems to be impossible, we obtain a close approximation to a metacircular interpreter. We begin by presenting an encoding for the Girard-Reynolds second-order polymorphic lambda-calculus in the third-order polymorphic lambda-calculus. The encoding makes use of representations in which abstractions are represented by abstractions, thus eliminating the need for the explicit representation of environments. We then extend this construction to encompass all of the omega-order polymorphic lambda-calculus (F-omega). The representation has the property that evaluation is definable, and furthermore that only well-typed terms can be represented and thus type inference does not have to be explicitly defined. Unfortunately, this metacircularity result seems to fall short of providing a useful framework for typed metaprogramming. We speculate on the reasons for this failure and the prospects for overcoming it in the future. In addition, we briefly describe our efforts in designing a practical programming language based on F-omega.
引用
收藏
页码:137 / 159
页数:23
相关论文
共 50 条