The lambda-context calculus (extended version)

被引:8
作者
Gabbay, Murdoch J. [1 ]
Lengrand, Stephane [2 ,3 ]
机构
[1] Heriot Watt Univ, Edinburgh EH14 4AS, Midlothian, Scotland
[2] CNRS, Paris, France
[3] Ecole Polytech, F-75230 Paris, France
关键词
Lambda-calculus; Calculi of contexts; Functional programming; Binders; Nominal techniques; Explicit substitutions; Capturing substitution;
D O I
10.1016/j.ic.2009.06.004
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We present the Lambda Context Calculus. This simple lambda-calculus features variables arranged in a hierarchy of strengths such that Substitution of a strong variable does not avoid capture with respect to abstraction by a weaker variable. This allows the calculus to express both capture-avoiding and capturing substitution (instantiation). The reduction rules extend the 'vanilla' lambda-calculus in a simple and modular way and preserve the look and feel of a standard lambda-calculus with explicit substitutions. Good properties of the lambda-calculus are preserved. The LamCC is confluent, and a natural injection into the LamCC of the untyped lambda-calculus exists and preserves strong normalisation. We discuss the calculus and its design with full proofs. In the presence of the hierarchy of variables, functional binding splits into a functional abstraction lambda (lambda) and a name-binder tf (sic)(new). We investigate how the components of this calculus interact with each other and with the reduction rules, with examples. In two more extended case studies we demonstrate how global state can be expressed, and how contexts and contextual equivalence can be naturally internalised using function application. (C) 2009 Elsevier Inc. All rights reserved.
引用
收藏
页码:1369 / 1400
页数:32
相关论文
共 46 条
  • [1] A fully abstract game semantics for general references
    Abramsky, S
    Honda, K
    McCusker, G
    [J]. THIRTEENTH ANNUAL IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE, PROCEEDINGS, 1998, : 334 - 344
  • [2] [Anonymous], 1997, LOG J IGPL
  • [3] [Anonymous], 1998, Term rewriting and all thatM
  • [4] Barendregt H. P., 1984, LAMBDA CALCULUS ITS
  • [5] BARO FMS, 2003, QNU QNUK CALCULI NAM
  • [6] Barwise Jon., 1977, Handbook of Mathematical Logic, P5
  • [7] BLOO R, 1995, CSN 95 COMPUTER SCI
  • [8] Bognar Mirna, 2002, THESIS VRIJE U AMSTE
  • [9] Cheney James, 2005, SIMPLER PROOF THEORY, P379
  • [10] Nominal Equational Logic
    Clouston, Ranald A.
    Pitts, Andrew M.
    [J]. ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2007, 172 : 223 - 257