arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2111.01485cs.LO
收藏

一个强按需调用演算

A strong call-by-need calculus

Thibaut Balabonski, Antoine Lanco, Guillaume Melquiond

AI总结:

提出一个支持强归约且保证参数按需至多求值一次的按需调用λ-演算,证明其强规范化并给出具有菱形性质的最短归约限制,优于现有策略。

摘要:

我们提出一个按需调用$λ$-演算,它支持强归约(即在抽象体内部进行归约),并保证参数仅在需要时被求值且至多一次。该演算使用显式替换,并包含现有的强按需调用策略,但允许更多的归约序列,且往往更短,同时保持需要性。该演算被证明在强意义上是规范化的:每当一个$λ$-项t在$λ$-演算中具有一个规范形式n时,从t出发在该演算中的任何归约序列最终都会到达规范形式n的一个代表。我们还展示了该演算的一个限制,它具有菱形性质,并且只执行最短长度的归约序列,这使得它系统地优于现有策略。我们使用Abella证明助手形式化了该演算的一部分,并讨论了这一实验如何影响其设计。特别是,它促使我们基于归纳规则推导出按需调用归约的一个新描述。

英文摘要:

We present a call-by-need $λ$-calculus that enables strong reduction (that is, reduction inside the body of abstractions) and guarantees that arguments are only evaluated if needed and at most once. This calculus uses explicit substitutions and subsumes the existing strong-call-by-need strategy, but allows for more reduction sequences, and often shorter ones, while preserving the neededness. The calculus is shown to be normalizing in a strong sense: Whenever a $λ$-term t admits a normal form n in the $λ$-calculus, then any reduction sequence from t in the calculus eventually reaches a representative of the normal form n. We also exhibit a restriction of this calculus that has the diamond property and that only performs reduction sequences of minimal length, which makes it systematically better than the existing strategy. We have used the Abella proof assistant to formalize part of this calculus, and discuss how this experiment affected its design. In particular, it led us to derive a new description of call-by-need reduction based on inductive rules.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑