Lambda-calculus with director strings

被引:7
|
作者
Fernández, M
Mackie, I
Sinot, FR
机构
[1] Kings Coll London, Dept Comp Sci, London WC2R 2LS, England
[2] Ecole Polytech, F-91128 Palaiseau, France
关键词
lambda-calculus; explicit substitutions; director strings; strategies;
D O I
10.1007/s00200-005-0169-9
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
We present a name free lambda-calculus with explicit substitutions, based on a generalised notion of director strings. Terms are annotated with information - directors - that indicate how substitutions should be propagated. We first present a calculus where we can simulate arbitrary beta-reduction steps, and then simplify the rules to model the evaluation of functional programs (reduction to weak head normal form). We also show that we can define the closed reduction strategy. This is a weak strategy which, in contrast with standard weak strategies, allows certain reductions to take place inside lambda-abstractions thus offering more sharing. Our experimental results confirm that, for large combinator-based terms, our weak evaluation strategies out-perform standard evaluators. Moreover, we derive two abstract machines for strong reduction which inherit the efficiency of the weak evaluators.
引用
收藏
页码:393 / 437
页数:45
相关论文
共 50 条