Outcome Logic: A Unifying Foundation for Correctness and Incorrectness Reasoning

03/06/2023
by   Noam Zilberstein, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/08/2023

Outcome Separation Logic: Local Reasoning for Correctness and Incorrectness with Computational Effects

Separation logic's compositionality and local reasoning properties have ...
research
05/10/2021

Incorrectness Logic for Graph Programs

Program logics typically reason about an over-approximation of program b...
research
11/13/2014

Handling owl:sameAs via Rewriting

Rewriting is widely used to optimise owl:sameAs reasoning in materialisa...
research
12/12/2017

Computational Logic: Its Origins and Applications

Computational Logic is the use of computers to establish facts in a logi...
research
10/30/2018

Proofs of life: molecular-biology reasoning simulates cell behaviors from first principles

Science relies on external correctness: statistical analysis and reprodu...
research
04/09/2019

Reasoning about Block-based Cloud Storage Systems

Owing to the massive growth in the storage demands of big data, Cloud St...
research
05/02/2023

Bilingual analogical proportions

Analogical proportions are expressions of the form “a is to b what c is ...

Please sign up or login with your details

Forgot password? Click here to reset