Lambda项规范化中的归约策略及其对堆使用的影响
Reduction Strategies in Lambda Term Normalization and their Effects on Heap Usage
摘要:
程序、证明、公式和类型等对象的高阶表示对于许多符号计算任务已经变得重要。支持这种表示的系统通常依赖于对类型化微积分的某些变体的术语的内涵视图的实现。已经提出了各种符号来明确地将替换视为实现这种实现的基础。然而,在实际的减排战略中有几种选择。最常见的策略仅通过环境的增量使用来隐式地使用这样的符号。这一办法不允许较小的替代步骤与其他有关业务按共同条件混合在一起。然而,显式使用这种符号的幼稚策略也可能代价高昂:每次使用替换传播规则都会导致在堆上创建一个新结构,而这个新结构通常会在紧接着的步骤中被丢弃。因此,在这两种方法之间存在折衷。本文描述了这两种方法的实际实现,并在此基础上讨论了它们的折衷,最后,提出了一种融合的方法,该方法在重写规则应用中利用递归,但在必要时也暂停替换操作。
英文摘要:
Higher-order representations of objects such as programs, proofs, formulas and types have become important to many symbolic computation tasks. Systems that support such representations usually depend on the implementation of an intensional view of the terms of some variant of the typed lambda-calculus. Various notations have been proposed for lambda-terms to explicitly treat substitutions as basis for realizing such implementations. There are, however, several choices in the actual reduction strategies. The most common strategy utilizes such notations only implicitly via an incremental use of environments. This approach does not allow the smaller substitution steps to be intermingled with other operations of interest on lambda-terms. However, a naive strategy explicitly using such notations can also be costly: each use of the substitution propagation rules causes the creation of a new structure on the heap that is often discarded in the immediately following step. There is thus a tradeoff between these two approaches. This thesis describes the actual realization of the two approaches, discusses their tradeoffs based on this and, finally, offers an amalgamated approach that utilizes recursion in rewrite rule application but also suspends substitution operations where necessary.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。