arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2303.03111cs.LOcs.PL
收藏

Outcome Logic:正确性和不正确性推理的统一基础

Outcome Logic: A Unifying Foundation for Correctness and Incorrectness Reasoning

Noam Zilberstein, Derek Dreyer, Alexandra Silva

摘要:

用于bug查找的程序逻辑(例如最近引入的不正确逻辑)将正确性和不正确性框定为需要不同逻辑基础的双重概念。在本文中,我们认为,一个统一的理论可以用于正确性和不正确性推理。我们提出了结果逻辑(OL),霍尔逻辑的一种新的推广,既monadic(捕捉计算效果)和monoidal(原因的结果和可达性)。OL表达真正的积极错误,同时保留正确性推理能力。为了正式的适用性OL的正确性和不正确性,我们证明了任何虚假的OL规范可以反驳OL本身。我们还使用我们的框架的原因在不确定性和概率程序的新类型的不正确。鉴于这些进展,我们主张OL作为一个新的基础理论的正确性和不正确性。

英文摘要:

Program logics for bug-finding (such as the recently introduced Incorrectness Logic) have framed correctness and incorrectness as dual concepts requiring different logical foundations. In this paper, we argue that a single unified theory can be used for both correctness and incorrectness reasoning. We present Outcome Logic (OL), a novel generalization of Hoare Logic that is both monadic (to capture computational effects) and monoidal (to reason about outcomes and reachability). OL expresses true positive bugs, while retaining correctness reasoning abilities as well. To formalize the applicability of OL to both correctness and incorrectness, we prove that any false OL specification can be disproven in OL itself. We also use our framework to reason about new types of incorrectness in nondeterministic and probabilistic programs. Given these advances, we advocate for OL as a new foundational theory of correctness and incorrectness.

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

↑