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

Outcome Logic:分支效应程序逻辑元理论的统一方法

Outcome Logic: A Unified Approach to the Metatheory of Program Logics with Branching Effects

Noam Zilberstein

AI总结:

本文扩展Outcome Logic,以选择的代数表示统一刻画非确定性、概率性等分支效应,并给出支持通用循环、可跨规范复用证明片段的较完整证明系统及其元理论。

摘要:

自50多年前Hoare Logic问世以来,人们已经设计出众多程序逻辑,用于推理现实世界中遇到的多样化程序。这包括对计算效应的推理,尤其是那些导致程序执行分支为多条路径的效应,例如由非确定性或概率性选择引起的分支。最近提出的Outcome Logic以分支为核心重新构想Hoare Logic,使用选择的代数表示来刻画会分支为多种结果的程序。在本文中,我们扩展了此前关于Outcome Logic的论文,以便对其元理论给出更具权威性和更全面的阐述。这包括一个相对完整的Outcome Logic证明系统,具备推理通用循环的能力。我们还表明,该证明系统适用于具有各种分支类型的程序,并且有助于在不同类型的规范之间复用证明片段。

英文摘要:

Starting with Hoare Logic over 50 years ago, numerous program logics have been devised to reason about the diverse programs encountered in the real world. This includes reasoning about computational effects, particularly those effects that cause the program execution to branch into multiple paths due to, e.g., nondeterministic or probabilistic choice. The recently introduced Outcome Logic reimagines Hoare Logic with branching at its core, using an algebraic representation of choice to capture programs that branch into many outcomes. In this article, we expand on prior Outcome Logic papers in order to give a more authoritative and comprehensive account of the metatheory. This includes a relatively complete proof system for Outcome Logic with the ability to reason about general purpose looping. We also show that this proof system applies to programs with various types of branching and that it facilitates the reuse of proof fragments across different kinds of specifications.

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

↑