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 条
  • [1] COMPILING THE POLYMORPHIC LAMBDA-CALCULUS
    MICHAYLOV, S
    PFENNING, F
    SIGPLAN NOTICES, 1991, 26 (09): : 285 - 296
  • [2] Rewriting with extensional polymorphic lambda-calculus
    DiCosmo, R
    Kesner, D
    COMPUTER SCIENCE LOGIC, 1996, 1092 : 215 - 232
  • [3] From Algol to polymorphic linear lambda-calculus
    O'Hearn, PW
    Reynolds, JC
    JOURNAL OF THE ACM, 2000, 47 (01) : 167 - 223
  • [4] A Polymorphic Type System for the Lambda-Calculus with Constructors
    Petit, Barbara
    TYPED LAMBDA CALCULI AND APPLICATIONS, PROCEEDINGS, 2009, 5608 : 234 - 248
  • [5] THE GENERICITY THEOREM AND PARAMETRICITY IN THE POLYMORPHIC LAMBDA-CALCULUS
    LONGO, G
    MILSTED, K
    SOLOVIEV, S
    THEORETICAL COMPUTER SCIENCE, 1993, 121 (1-2) : 323 - 349
  • [6] ON FUNCTORS EXPRESSIBLE IN THE POLYMORPHIC TYPED LAMBDA-CALCULUS
    REYNOLDS, JC
    PLOTKIN, GD
    INFORMATION AND COMPUTATION, 1993, 105 (01) : 1 - 29
  • [7] Some aspects of the categorical semantics for the polymorphic lambda-calculus
    Maietti, ME
    LOGIC AND ALGEBRA, 1996, 180 : 589 - 601
  • [8] An Infinitary Affine Lambda-Calculus Isomorphic to the Full Lambda-Calculus
    Mazza, Damiano
    2012 27TH ANNUAL ACM/IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE (LICS), 2012, : 471 - 480
  • [9] Atomic lambda-calculus: a typed lambda-calculus with explicit sharing
    Gundersen, Tom
    Heijltjes, Willem
    Parigot, Michel
    2013 28TH ANNUAL IEEE/ACM SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE (LICS), 2013, : 311 - 320
  • [10] THE SEMANTICS OF 2ND ORDER POLYMORPHIC LAMBDA-CALCULUS
    BRUCE, KB
    MEYER, AR
    LECTURE NOTES IN COMPUTER SCIENCE, 1984, 173 : 131 - 144