Beta Reduction is Invariant,Indeed(英语:Beta Reduction is Invariant,Indeed)
Beta Reduction is Invariant, Indeed (Long Version)
摘要:
Slot和van Emde Boas的弱不变性论文指出,合理的机器可以在时间上的多项式开销内相互模拟。$λ$ -演算是合理的机器吗?有没有一种方法可以测量$λ$ -项的计算复杂性?本文首次对这一长期存在的问题给出了完全肯定的答案。此外,我们的答案是完全独立于机器的,并基于$λ$ -演算理论中的标准概念:范式的最左最外派生的长度是不变的成本模型。这样一个定理不能通过直接将$λ$ -演算与图灵机或随机存取机联系起来来证明,因为规模爆炸问题:有些项在线性数量的步骤中产生指数长的输出。解决方案的第一步是转换到一个评估的概念,即输出的长度和大小是线性相关的。这是通过采用线性替换演算(LSC)来实现的,线性替换演算是一种在线性逻辑和证明网之后建模的显式替换演算,并允许具有所需属性的最左最外推导的分解。因此,LSC相对于随机存取机是不变的。第二步是证明LSC相对于$λ$ -演算是不变的。规模爆炸问题似乎意味着这是不可能的:具有相同的范式概念,LSC中的求值比$λ$ -演算中的求值要长。我们通过引入一种新形式的共享范式和共享约简来解决这样的僵局。有用的评估避免了那些仅不共享输出而不对$β$ -赎回有贡献的步骤,即,导致爆炸的步骤。
英文摘要:
Slot and van Emde Boas' weak invariance thesis states that reasonable machines can simulate each other within a polynomially overhead in time. Is $λ$-calculus a reasonable machine? Is there a way to measure the computational complexity of a $λ$-term? This paper presents the first complete positive answer to this long-standing problem. Moreover, our answer is completely machine-independent and based over a standard notion in the theory of $λ$-calculus: the length of a leftmost-outermost derivation to normal form is an invariant cost model. Such a theorem cannot be proved by directly relating $λ$-calculus with Turing machines or random access machines, because of the size explosion problem: there are terms that in a linear number of steps produce an exponentially long output. The first step towards the solution is to shift to a notion of evaluation for which the length and the size of the output are linearly related. This is done by adopting the linear substitution calculus (LSC), a calculus of explicit substitutions modelled after linear logic and proof-nets and admitting a decomposition of leftmost-outermost derivations with the desired property. Thus, the LSC is invariant with respect to, say, random access machines. The second step is to show that LSC is invariant with respect to the $λ$-calculus. The size explosion problem seems to imply that this is not possible: having the same notions of normal form, evaluation in the LSC is exponentially longer than in the $λ$-calculus. We solve such an impasse by introducing a new form of shared normal form and shared reduction, deemed useful. Useful evaluation avoids those steps that only unshare the output without contributing to $β$-redexes, i.e., the steps that cause the blow-up in size.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。