Affiliation:
1. Boston University, USA
Abstract
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.
Funder
National Science Foundation
Publisher
Association for Computing Machinery (ACM)
Subject
Safety, Risk, Reliability and Quality,Software
Reference31 articles.
1. NetKAT
2. Axiomatizability of positive algebras of binary relations
3. Allegra Angus and Dexter Kozen. 2001. Kleene Algebra with Tests and Program Schematology. July https://ecommons.cornell.edu/handle/1813/5831 Accepted: 2007-04-09T19:56:22Z Publisher: Cornell University. Allegra Angus and Dexter Kozen. 2001. Kleene Algebra with Tests and Program Schematology. July https://ecommons.cornell.edu/handle/1813/5831 Accepted: 2007-04-09T19:56:22Z Publisher: Cornell University.
4. Kleene Algebra with Converse
5. Ernie Cohen Dexter Kozen and Frederick Smith. 1999. The Complexity of Kleene Algebra with Tests. July. Ernie Cohen Dexter Kozen and Frederick Smith. 1999. The Complexity of Kleene Algebra with Tests. July.
Cited by
9 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献