Compositional Safety Logics

Jørgen H. Andersen, Kim G. LarsenBRICS 1997

Abstract

In this paper, we present a generalization of a promising compositional model-checking technique introduced for finite-state systems and extended to networks of timed automata. In our generalized setting, programs are modelled as arbitrary (possibly infinite-state) transition systems and verified with respect to properties of a basic safety logic. As the fundamental prerequisite of the compositional technique, it is shown how logical properties of a parallel program may be transformed into necessary and sufficient properties of components of the program. Finally, a set of axiomatic laws are provided, useful for simplifying formulae and complete with respect to validity and unsatisfiability.

Introduction

The "state-space explosion" is a fundamental hurdle in formal verification. When multiple parallel processes interact, the global state space grows exponentially, often making exhaustive exploration impossible for traditional model checkers. This issue is particularly acute in systems with infinite state spaces, such as those involving real-time clocks or unbounded variables.

This paper advances a compositional approach to verification. Instead of analyzing the entire system at once, we decompose the problem: if we want to check if a system $(P_1 | P_2)$ satisfies a property $\phi$, can we derive a property $\phi/P_2$ such that $P_1$ satisfies $\phi/P_2$ if and only if the original system satisfies $\phi$? This effectively shifts the complexity from the state space to the logical formula.

Methodology

Transition Systems and Safety Logic

The authors model programs as general Transition Systems. They introduce a Safety Logic ($L_S$), a modal logic tailored for "nothing bad happens" properties. To ensure the logic can handle the interleaving of parallel processes, they introduce a step-operator ($\Delta \to \phi$). This operator asserts that after any transition within the set $\Delta$, the property $\phi$ must hold, allowing the logic to account for the potential actions of a parallel component.

The Quotienting Operator

The core contribution is the Quotienting Operator. Given a formula $\phi$ and a process $P_2$, the quotient $\phi/P_2$ is a formula that is true for process $P_1$ if and only if the combined system $(P_1 | P_2)$ satisfies $\phi$. This allows for process-by-process verification.

Axiomatic Laws and Simplification

Because quotienting can lead to complex, redundant formulas, the authors provide a system of 12 axiomatic laws. These laws allow for the simplification of formulas into a "strong normal form." This algebraic approach to logic ensures that the resulting properties remain manageable for automated tools.

Key Results

Correctness and Completeness

The authors formally prove the Correctness Theorem: $s \models_{P_1 | P_2} \phi \iff s \models_{P_1} \phi/P_2$. Furthermore, they establish that their axiomatic system is sound and complete for recursion-free safety properties, meaning any tautology or contradiction in this class can be reduced to "True" or "False."

Practical Application: The Parallel Counter

To demonstrate the theory, the paper applies these rules to a Parallel Counter example. This involves a shared-variable program where two processes concurrently modify a variable $x$. The authors successfully use quotienting and simplification to prove safety properties (like divergence), showing the framework's capability to handle standard programming constructs and complex interleavings.

Discussion and Future Work

While this method avoids the state-space explosion, it introduces the challenge of formula growth. In practice, quotienting can lead to an exponential increase in the size of the logical formula. Developing efficient heuristics for simplification remains a priority.

Additionally, while the axiomatic laws are complete for recursion-free formulas, the authors conjecture their completeness for formulas involving fixed points (recursion). Proving this conjecture and implementing the framework using efficient data structures (like BDDs or polyhedra) for specific domains are the next steps for this research.

Summary updated

BibTeX
@inproceedings{andersen1997compositional,
  author = {Jørgen H. Andersen and Kim G. Larsen},
  title = {{Compositional Safety Logics}},
  booktitle = {BRICS},
  year = {1997},
  doi = {10.7146/brics.v4i13.18804},
}
Figure