Outcome Logic: A Unifying Foundation for Correctness and Incorrectness Reasoning
Noam Zilberstein, Derek Dreyer, Alexandra Silva
Abstract
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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
24 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Hypra: A Deductive Program Verifier for Hyper Hoare Logic cites Incorrectness logic
- Hypra: A Deductive Program Verifier for Hyper Hoare Logic cites A Logic for Locally Complete Abstract Interpretations
- Hypra: A Deductive Program Verifier for Hyper Hoare Logic cites Hyper Hoare Logic: (Dis-)Proving Program Hyperproperties
- Hypra: A Deductive Program Verifier for Hyper Hoare Logic cites Finding real bugs in big programs with incorrectness logic
- A Logic for Locally Complete Abstract Interpretations cites Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic
- Hyper Hoare Logic: (Dis-)Proving Program Hyperproperties cites A probabilistic separation logic
- Hyper Hoare Logic: (Dis-)Proving Program Hyperproperties cites Incorrectness logic
- Hyper Hoare Logic: (Dis-)Proving Program Hyperproperties cites A Logic for Locally Complete Abstract Interpretations
- Hyper Hoare Logic: (Dis-)Proving Program Hyperproperties cites Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic
- Hyper Hoare Logic: (Dis-)Proving Program Hyperproperties cites Finding real bugs in big programs with incorrectness logic
- Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic cites Incorrectness logic
- Outcome Separation Logic: Local Reasoning for Correctness and Incorrectness with Computational Effects cites A probabilistic separation logic
- Outcome Separation Logic: Local Reasoning for Correctness and Incorrectness with Computational Effects cites Incorrectness logic
- Outcome Separation Logic: Local Reasoning for Correctness and Incorrectness with Computational Effects cites A Logic for Locally Complete Abstract Interpretations
- Outcome Separation Logic: Local Reasoning for Correctness and Incorrectness with Computational Effects cites Hyper Hoare Logic: (Dis-)Proving Program Hyperproperties
- Outcome Separation Logic: Local Reasoning for Correctness and Incorrectness with Computational Effects cites Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic
- Outcome Separation Logic: Local Reasoning for Correctness and Incorrectness with Computational Effects cites Finding real bugs in big programs with incorrectness logic
- Finding real bugs in big programs with incorrectness logic cites Incorrectness logic
- Finding real bugs in big programs with incorrectness logic cites Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic
- Non-termination Proving at Scale cites Incorrectness logic
- Non-termination Proving at Scale cites Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic
- Non-termination Proving at Scale cites Outcome Separation Logic: Local Reasoning for Correctness and Incorrectness with Computational Effects
- Non-termination Proving at Scale cites Finding real bugs in big programs with incorrectness logic
- Calculational Design of [In]Correctness Transformational Program Logics by Abstract Interpretation cites Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic
- Calculational Design of [In]Correctness Transformational Program Logics by Abstract Interpretation cites Finding real bugs in big programs with incorrectness logic
Cited by top-tier papers24
- Hyper Hoare Logic: (Dis-)Proving Program HyperpropertiesThibault Dardinier, Peter MüllerPLDI 2024 · 28 citations
- Outcome Separation Logic: Local Reasoning for Correctness and Incorrectness with Computational EffectsNoam Zilberstein, Angelina Saliling, Alexandra SilvaOOPSLA 2024 · 16 citations
- Calculational Design of [In]Correctness Transformational Program Logics by Abstract InterpretationPatrick CousotPOPL 2024 · 11 citations
- Non-termination Proving at ScaleAzalea Raad, Julien Vanegue, Peter W. O'HearnOOPSLA 2024 · 10 citations
- Hypra: A Deductive Program Verifier for Hyper Hoare LogicThibault Dardinier, Anqi Li, Peter MüllerOOPSLA 2024 · 6 citations
Builds on9
- Incorrectness logicPeter W. O'HearnPOPL 2020 · 122 citations
- Local Reasoning About the Presence of Bugs: Incorrectness Separation LogicAzalea Raad, Josh Berdine, Hoang-Hai Dang, Derek Dreyer et al.CAV 2020 · 70 citations
- Finding real bugs in big programs with incorrectness logicQuang Loc Le, Azalea Raad, Jules Villard, Josh Berdine et al.OOPSLA 2022 · 52 citations
- A probabilistic separation logicGilles Barthe, Justin Hsu, Kevin LiaoPOPL 2020 · 35 citations
- A Logic for Locally Complete Abstract InterpretationsRoberto Bruni, Roberto Giacobazzi, Roberta Gori, Francesco RanzatoLICS 2021 · 34 citations
Related papers
- Revealing Sources of (Memory) Errors via Backward AnalysisFlavio Ascari, Roberto Bruni, Roberta Gori, Francesco LogozzoOOPSLA 2025 · 4 citations
- On incorrectness logic for Quantum programsPeng Yan, Hanru Jiang, Nengkun YuOOPSLA 2022 · 27 citations
- Concurrent incorrectness separation logicAzalea Raad, Josh Berdine, Derek Dreyer, Peter W. O'HearnPOPL 2022 · 24 citations
- U-Turn: Enhancing Incorrectness Analysis by Reversing DirectionFlavio Ascari, Roberto Bruni, Roberta Gori, Azalea RaadPOPL 2026 · 2 citations
- Probabilistic Concurrent Reasoning in Outcome Logic: Independence, Conditioning, and InvariantsNoam Zilberstein, Alexandra Silva, Joseph TassarottiPOPL 2026 · 4 citations
