Lune

POPL2022顶会

On incorrectness logic and Kleene algebra with top and tests

Cheng Zhang, Arthur Azevedo de Amorim, Marco Gaboardi

摘要

Kleene algebra with tests (KAT) is a foundational equational framework for reasoning about programs, which has found applications in program transformations, networking and compiler optimizations, among many other areas. In his seminal work, Kozen proved that KAT subsumes propositional Hoare logic, showing that one can reason about the (partial) correctness of while programs by means of the equational theory of KAT. In this work, we investigate the support that KAT provides for reasoning about incorrectness, instead, as embodied by O'Hearn's recently proposed incorrectness logic. We show that KAT cannot directly express incorrectness logic. The main reason for this limitation can be traced to the fact that KAT cannot express explicitly the notion of codomain, which is essential to express incorrectness triples. To address this issue, we study Kleene Algebra with Top and Tests (TopKAT), an extension of KAT with a top element. We show that TopKAT is powerful enough to express a codomain operation, to express incorrectness triples, and to prove all the rules of incorrectness logic sound. This shows that one can reason about the incorrectness of while-like programs by means of the equational theory of TopKAT.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • An Algebra of Alignment for Relational Verification 引用了 Incorrectness logic
  • A Taxonomy of Hoare-Like Logics: Towards a Holistic View using Predicate Transformers and Kleene Algebras with Top and Tests 引用了 Incorrectness logic
  • A Taxonomy of Hoare-Like Logics: Towards a Holistic View using Predicate Transformers and Kleene Algebras with Top and Tests 引用了 Calculational Design of [In]Correctness Transformational Program Logics by Abstract Interpretation
  • A Taxonomy of Hoare-Like Logics: Towards a Holistic View using Predicate Transformers and Kleene Algebras with Top and Tests 引用了 Outcome Logic: A Unifying Foundation for Correctness and Incorrectness Reasoning
  • Existential Calculi of Relations with Transitive Closure: Complexity and Edge Saturations 引用了 Incorrectness logic
  • Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic 引用了 Incorrectness logic
  • Calculational Design of [In]Correctness Transformational Program Logics by Abstract Interpretation 引用了 Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic
  • Calculational Design of [In]Correctness Transformational Program Logics by Abstract Interpretation 引用了 Outcome Logic: A Unifying Foundation for Correctness and Incorrectness Reasoning
  • Outcome Logic: A Unifying Foundation for Correctness and Incorrectness Reasoning 引用了 Incorrectness logic
  • Outcome Logic: A Unifying Foundation for Correctness and Incorrectness Reasoning 引用了 Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper5

  1. Outcome Logic: A Unifying Foundation for Correctness and Incorrectness ReasoningNoam Zilberstein, Derek Dreyer, Alexandra SilvaOOPSLA 2023 · 39 次引用
  2. An Algebra of Alignment for Relational VerificationTimos Antonopoulos, Eric Koskinen, Ton Chanh Le, Ramana Nagasamudram 等POPL 2023 · 17 次引用
  3. Calculational Design of [In]Correctness Transformational Program Logics by Abstract InterpretationPatrick CousotPOPL 2024 · 11 次引用
  4. Existential Calculi of Relations with Transitive Closure: Complexity and Edge SaturationsYoshiki NakamuraLICS 2023 · 4 次引用
  5. A Taxonomy of Hoare-Like Logics: Towards a Holistic View using Predicate Transformers and Kleene Algebras with Top and TestsLena Verscht, Benjamin Lucien KaminskiPOPL 2025 · 3 次引用

它引用的 Paper2

  1. Incorrectness logicPeter W. O'HearnPOPL 2020 · 122 次引用
  2. Local Reasoning About the Presence of Bugs: Incorrectness Separation LogicAzalea Raad, Josh Berdine, Hoang-Hai Dang, Derek Dreyer 等CAV 2020 · 70 次引用

相关 Paper

  1. Algebraic reasoning of Quantum programs via non-idempotent Kleene algebraYuxiang Peng, Mingsheng Ying, Xiaodi WuPLDI 2022 · 13 次引用
  2. Guarded Kleene algebra with tests: verification of uninterpreted programs in nearly linear timeSteffen Smolka, Nate Foster, Justin Hsu, Tobias Kappé 等POPL 2020 · 32 次引用
  3. Kleene algebra modulo theories: a framework for concrete KATsMichael Greenberg, Ryan Beckett, Eric Hayden CampbellPLDI 2022 · 7 次引用
  4. Revealing Sources of (Memory) Errors via Backward AnalysisFlavio Ascari, Roberto Bruni, Roberta Gori, Francesco LogozzoOOPSLA 2025 · 4 次引用
  5. On Extending Incorrectness Logic with Backwards ReasoningFreek Verbeek, Md Syadus Sefat, Zhoulai Fu, Binoy RavindranPOPL 2025 · 1 次引用
黄昏的海面,两侧是细线勾勒的悬崖