Skip to main content
QUICK REVIEW

[Paper Review] Kleene Algebra with Observations

Tobias Kappé, Paul Brunet|arXiv (Cornell University)|Nov 16, 2018
Formal Methods in VerificationComputer Science2 citations
TL;DR

This paper introduces Kleene Algebra with Observations (KAO), an algebraic framework that distinguishes between sequential composition of tests and their conjunction, resolving a fundamental flaw in Kleene Algebra with Tests (KAT) when extended to concurrency. The authors establish a sound and complete equational theory for KAO using a language model based on automata and provide a decision procedure for equivalence via bisimulation up to congruence on non-deterministic finite automata.

ABSTRACT

Kleene algebra with tests (KAT) is an algebraic framework for reasoning about the control flow of sequential programs. Generalising KAT to reason about concurrent programs is not straightforward, because axioms native to KAT in conjunction with expected axioms for concurrency lead to an anomalous equation. In this paper, we propose Kleene algebra with observations (KAO), a variant of KAT, as an alternative foundation for extending KAT to a concurrent setting. We characterise the free model of KAO, and establish a decision procedure w.r.t. its equational theory.

Motivation & Objective

  • . The paper addresses the incompatibility of Kleene Algebra with Tests (KAT) with concurrent program reasoning due to an anomalous equation: p·e·p ≡ 0.
  • It identifies that KAT's identification of test conjunction with sequential composition leads to incorrect behavior in concurrent settings where interleaving can alter test outcomes.
  • The objective is to propose KAO as a foundational algebraic framework that separates observational testing from sequential composition, enabling a consistent extension to concurrency.
  • The goal is to establish a complete equational theory for KAO and a decision procedure for equality of KAO expressions.

Proposed method

  • . The paper defines KAO as an extension of Kleene algebra with a new operation for observations, where tests are interpreted as sets of observable states.
  • It introduces a language model for KAO based on non-deterministic finite automata (NFA), where expressions denote languages of words over actions and atoms.
  • The equational theory of KAO is proven sound and complete with respect to this language model using a derivative-based approach and bisimulation up to congruence.
  • A decision procedure for KAO equivalence is established by reducing it to language equivalence of NFAs, leveraging standard algorithms for NFA equivalence checking.
  • The proof strategy separates concerns: core KAO axioms are handled via derivatives and automata, while standard Kleene algebra results complete the argument.
  • The use of bisimulation up to congruence allows for efficient equivalence checking, with early termination possible due to transitivity properties in the derivative construction.

Experimental results

Research questions

  • RQ1. Can a variant of Kleene algebra be constructed that avoids the anomalous equation p·e·p ≡ 0 in concurrent settings, which arises in KAT?
  • RQ2Is there a sound and complete equational theory for such a variant that supports both conditional branching and concurrency?
  • RQ3Can the equivalence of KAO expressions be decided algorithmically, and if so, what is the computational basis for such a decision procedure?
  • RQ4How does the new framework of KAO differ from KAT in modeling the interaction between tests and program execution in concurrent programs?
  • RQ5Can the decision procedure for KAO be efficiently implemented using automata-theoretic techniques?

Key findings

  • . The paper proves that the equational theory of KAO is sound and complete with respect to its language model based on non-deterministic finite automata.
  • It establishes that KAO equivalence is decidable by reducing it to language equivalence of NFAs, which is known to be decidable.
  • The decision procedure is implemented via bisimulation up to congruence on NFAs, with a proof that such a bisimulation can be constructed to verify equivalence.
  • The framework successfully avoids the anomalous equation p·e·p ≡ 0 that plagues KAT in concurrent settings by distinguishing observational conjunction from sequential composition.
  • The method demonstrates a clean separation of concerns: KAO-specific axioms are handled via derivatives and automata, while standard Kleene algebra results are reused.
  • The approach is extensible, providing a foundation for future work on concurrent Kleene algebra with observations (CKAO), which is conjectured to be characterized by languages of sp-pomsets.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.