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

自调整计算的一致语义

A Consistent Semantics of Self-Adjusting Computation

Umut A. Acar, Matthias Blume, Jacob Donham

摘要:

本文提出了一种自调整计算的语义,并证明了该语义的正确性和一致性。该语义将变化传播与记忆化的经典思想相结合,以实现在变异到记忆下的计算重用。在评估期间,经由记忆化的计算的重用触发改变传播,该改变传播调整重用的计算以反映突变的记忆。由于语义集成了记忆化和变化传播,它涉及非确定性(由于记忆化)和突变(由于变化传播)。我们的一致性定理指出,非确定性是无害的:任何两个评估相同的程序开始于相同的状态产生相同的结果。我们的正确性定理表明,突变是无害的:自调整程序与纯函数式编程是一致的。我们在LF逻辑框架中形式化了语义及其元理论,并使用Twelf对我们的证明进行机器检查。

英文摘要:

This paper presents a semantics of self-adjusting computation and proves that the semantics are correct and consistent. The semantics integrate change propagation with the classic idea of memoization to enable reuse of computations under mutation to memory. During evaluation, reuse of a computation via memoization triggers a change propagation that adjusts the reused computation to reflect the mutated memory. Since the semantics integrate memoization and change-propagation, it involves both non-determinism (due to memoization) and mutation (due to change propagation). Our consistency theorem states that the non-determinism is not harmful: any two evaluations of the same program starting at the same state yield the same result. Our correctness theorem states that mutation is not harmful: self-adjusting programs are consistent with purely functional programming. We formalize the semantics and their meta-theory in the LF logical framework and machine check our proofs using Twelf.

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

↑