Multi-Buffer Simulations for Trace Language Inclusion

Milka Hutagalung, Norbert Hundeshagen, Dietrich Kuske, Martin Lange, Étienne Lozes

Abstract

Trace language inclusion is a fundamental but undecidable problem in the verification of concurrent systems. This paper introduces "multi-buffer simulation games" as a sound under-approximation. By modeling the reordering potential of independent actions through $k$ FIFO buffers, the authors establish a decidability frontier: while the general game is highly undecidable, restricting it to bounded buffers allows for polynomial-time verification, providing a practical tool for analyzing concurrent systems.

Introduction: The Challenge of Trace Inclusion

In formal verification, ensuring that an implementation adheres to a specification is often modeled as language inclusion ($L(A) \subseteq L(B)$). For standard finite automata, this is a decidable problem. However, real-world concurrent systems often operate under Mazurkiewicz trace semantics, where certain actions commute. In this setting, we ask if the trace closure of $L(A)$ is included in $L(B)$. This problem is notoriously undecidable because the order of independent actions (e.g., $ab$ vs $ba$) might not matter, leading to complex equivalence classes.

Figure 1: Comparison of automata where trace inclusion may hold despite structural differences in transition sequences.

The authors seek a "middle ground" by using simulation relations, which are generally easier to compute than full language inclusion, to under-approximate this relationship.

Multi-Buffer Simulation Games

The core contribution is a two-player game between Spoiler (the implementation) and Duplicator (the specification). Unlike traditional simulation games, this setup utilizes $k$ FIFO buffers to represent the "slack" or reordering potential in a concurrent system.

  1. The Setup: Each letter in the alphabet is associated with a specific subset of the $k$ buffers.
  2. The Play: Spoiler picks a transition and "pushes" the letter into the corresponding buffers. Duplicator must then produce a matching run in her automaton by "popping" letters from the buffers.
  3. The Winning Condition: Duplicator wins if she can match Spoiler’s infinite run without letting the buffers overflow (if they are bounded) and without leaving any letter in a buffer forever.

The Decidability Frontier and Complexity

The paper identifies a sharp threshold for complexity based on buffer constraints:

  • Bounded Buffers: If all buffers have a fixed maximum capacity, the game is decidable in polynomial time. This is a significant result for practical verification tools.
  • Mixed Buffers: If the system contains just one unbounded buffer and one buffer with a capacity of zero, the problem becomes highly undecidable ($\Pi^1_1$-hard).
Figure 6: Automata constructions illustrating the "slack" ($\kappa(1)+1$) required for simulation in specific buffer configurations.

Key Results

  • Soundness (Theorem 3): If Duplicator wins the multi-buffer game, then trace language inclusion holds. This confirms the game is a valid approximation.
  • Complexity (Theorem 4): For a fixed number of buffers $k$ and fixed capacities $r$, the simulation relation can be decided in time $O((k+1) \cdot (mn|\Sigma|^{r+k}(k+1))^{2.5})$.
  • Continuity as a Bridge: For purely unbounded buffers, the authors prove that a winning strategy for Duplicator is equivalent to the existence of a continuous, trace-preserving function between the sets of infinite runs of the two automata.

Conclusion

Multi-buffer simulation games provide a powerful framework for approximating trace language inclusion. By parameterizing the "slack" via buffer capacities, the authors offer a scalable approach to verifying concurrent systems that balances expressivity with computational feasibility. While the game is sound, it is not complete; future work remains to bridge the completeness gap and explore how varying independence relations affect the hierarchy of simulation power.

Summary updated

BibTeX
@inproceedings{hutagalung2016multi,
  author = {Milka Hutagalung and Norbert Hundeshagen and Dietrich Kuske and Martin Lange and Étienne Lozes},
  title = {{Multi-Buffer Simulations for Trace Language Inclusion}},
  booktitle = {GandALF},
  year = {2016},
  url = {https://openreview.net/forum?id=QYjRVVDR6V},
}
Figure