arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 0806.2448cs.LOcs.PL
收藏

高阶局部状态函数的逻辑推理

Logical Reasoning for Higher-Order Functions with Local State

Nobuko Yoshida, Kohei Honda, Martin Berger

摘要:

我们介绍了一个扩展的霍尔逻辑调用值高阶函数ML样的本地引用生成。局部引用可以动态生成并导出到其作用域之外,可以存储高阶函数,并且可以用于构造复杂的可变数据结构。这个原语是使用断言引用名称可达性的谓词从可能的高阶数据和隐藏引用上的量词逻辑地捕获的。我们探索的逻辑的描述和推理能力与非平凡的编程例子相结合的高阶程序和动态生成的本地状态。公理的可达性和局部不变发挥核心作用的推理的例子。

英文摘要:

We introduce an extension of Hoare logic for call-by-value higher-order functions with ML-like local reference generation. Local references may be generated dynamically and exported outside their scope, may store higher-order functions and may be used to construct complex mutable data structures. This primitive is captured logically using a predicate asserting reachability of a reference name from a possibly higher-order datum and quantifiers over hidden references. We explore the logic's descriptive and reasoning power with non-trivial programming examples combining higher-order procedures and dynamically generated local state. Axioms for reachability and local invariant play a central role for reasoning about the examples.

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

↑