Symmetry Reductions in Model Checking

Edmund M. Clarke, E. Allen Emerson, Somesh Jha, A. Prasad SistlaCAV 1998

Introduction

Model checking is a rigorous formal verification technique used to ensure the correctness of hardware and software designs. By exhaustively exploring the state space of a system, model checkers can prove the absence of bugs or provide counterexamples. However, this approach is fundamentally limited by the state explosion problem, where the number of possible system states grows exponentially with the number of components and variables.

Symmetry reduction offers a powerful strategy to mitigate this explosion. In many systems, components are identical or interchangeable—such as multiple processors in a multi-core system or identical processes in a distributed protocol. These symmetries imply that many states are functionally equivalent (permutations of each other). By collapsing these symmetric states into a single representative, the size of the state space can be drastically reduced without losing the ability to verify properties.

The Orbit Problem and Computational Complexity

The core challenge in symmetry reduction is the Orbit Problem: given two states, $s$ and $s'$, do they belong to the same orbit under a group of symmetries? If they do, they are considered equivalent and can be treated as a single entity during verification.

This paper provides a rigorous theoretical mapping of the Orbit Problem, proving it is equivalent to the Set Stabilizer in a Coset (SSC) problem. This classification places the problem in a specific complexity class: it is harder than the graph isomorphism problem but is not known to be NP-complete. This theoretical insight explains why finding a unique "canonical" representative for every orbit is computationally expensive (NP-hard) and justifies the need for alternative strategies.

Methodology: Practical Symmetry Reduction

To make symmetry reduction viable for real-world verification, the authors propose three key innovations:

1. Structural Derivation of Symmetry

Instead of requiring users to manually specify symmetries, the authors propose an automated method using colored hypergraphs. By representing the system's topology—how processes share variables—as a hypergraph, the automorphisms of this graph can be mapped directly to symmetries in the underlying state model. This allows for the automatic extraction of symmetry from the system's high-level description.

2. The Multiple Representatives Approach

Recognizing that finding a single canonical representative is NP-hard, the authors introduce the Multiple Representatives approach. Instead of forcing every state in an orbit to map to exactly one representative, the system allows for a small set of representatives. This compromise significantly reduces the computational overhead of the Orbit Problem while still providing substantial state-space compression. This approach is particularly effective in symbolic model checking using Binary Decision Diagrams (BDDs).

3. The SYMM Tool

The authors implemented these techniques in SYMM, a symbolic model checker. SYMM leverages BDDs to represent state sets and transition relations, integrating symmetry reduction directly into the symbolic reachability analysis.

Experimental Evaluation: IEEE Futurebus+

The effectiveness of these methods was evaluated using the IEEE Futurebus+ arbiter protocol, a complex real-world benchmark used for bus contention management. The researchers tested configurations with varying numbers of modules (10 to 24) and different priority levels.

The results demonstrate significant gains in both memory efficiency and execution time:

  • Memory Efficiency: For a 10-module arbiter, the BDD size was reduced from 369,705 nodes to just 27,671 nodes—a reduction of over 90%.
  • Performance: Verification time for the 10-module configuration dropped from 163 seconds to 37 seconds.
  • Scalability: In the most complex test case (12m12m, involving 24 modules), standard symbolic model checking failed to complete the task. However, SYMM successfully verified the model in 198 seconds.

Conclusion and Future Directions

This research demonstrates that symmetry reduction, when guided by rigorous complexity analysis and practical compromises like the Multiple Representatives approach, can effectively combat the state explosion problem. The authors also identify "Easy Groups"—such as rotation groups or simple transpositions—where the Orbit Problem can be solved in polynomial time, providing a roadmap for which system symmetries are easiest to exploit.

While the current work focuses on static analysis of shared-variable models, future efforts aim to automate symmetry derivation for standard Hardware Description Languages (HDLs) like Verilog and VHDL. By bridging the gap between group theory and formal verification, this work paves the way for verifying increasingly complex industrial-scale designs.

Summary updated

BibTeX
@inproceedings{clarke1998symmetry,
  author = {Edmund M. Clarke and E. Allen Emerson and Somesh Jha and A. Prasad Sistla},
  title = {{Symmetry Reductions in Model Checking}},
  booktitle = {CAV},
  year = {1998},
  doi = {10.1007/bfb0028741},
}
Figure