NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

opaal: A Lattice Model Checker

Andreas Engelbredt Dalsgaard, René Rydhof Hansen, Kenneth Yrke Jørgensen, Kim Guldstrand Larsen, Mads Chr. Olesen, Petur Olsen, Jirí SrbaNASA Formal Methods 2011

TL;DR

This paper introduces opaal, an open-source model checker that uses "lattice automata" to enable more efficient verification of complex systems. By allowing users to define abstractions of system behavior using lattices, opaal can significantly reduce the state space explored during verification, leading to faster and more scalable analysis.

What Problem Does This Paper Address?

Model checking is a powerful technique for automatically verifying the correctness of systems. However, it often struggles with systems that have a very large or even infinite number of possible states. To overcome this, model checkers typically rely on abstraction, where a simplified model of the system is created. The challenge lies in finding abstractions that are precise enough to yield correct verification results while being simple enough to allow the model checker to finish in a reasonable time. Existing methods often require manual effort to refine these abstractions, or they can lead to "inconclusive" results where the simplified model cannot definitively prove or disprove a property.

Methods

The core innovation of opaal is its use of lattice automata. These are an extension of timed automata that allow variables to have types defined by lattices. A lattice is a mathematical structure where elements are ordered, and importantly, have a "join" operation (least upper bound). This structure allows opaal to represent abstractions of system states.

The key ideas are:

  • Lattice Abstraction: Instead of tracking exact values, opaal can track abstract values within a lattice. For example, instead of knowing a variable's exact integer value, it might only know if it's "positive" or "negative" (represented by lattice elements).
  • Monotonicity Property: Lattice automata exploit the ordering of the lattice. If a property holds for a more abstract state (a "larger" element in the lattice), it also holds for any more concrete state that it abstracts. This allows opaal to avoid re-exploring states whose behavior is already covered by a more abstract, already explored state.
  • Join Strategies: The "join" operation in lattices allows opaal to combine states, potentially over-approximating behavior to reduce the state space. Users can define "joining strategies" to control how and when states are joined, allowing for a trade-off between abstraction level and precision.
  • CEGAR Integration: opaal integrates a form of Counter-Example Guided Abstraction Refinement (CEGAR). If an abstraction leads to a spurious error (a "false positive"), opaal can use the counter-example to refine the joining strategy, making the abstraction more precise and potentially leading to a conclusive result.

The tool itself is implemented in Python, which allows for easy integration of new lattice types and joining strategies.

Datasets

Not discussed in the paper. The paper focuses on demonstrating the tool's applicability with examples from various domains.

Key Insights and Ideas

  • Abstraction as a First-Class Citizen: opaal makes abstraction a core part of the modeling language itself, rather than an external process. This offers more direct control to the user.
  • Lattices as a Powerful Abstraction Tool: The mathematical properties of lattices (ordering and join) provide a principled way to manage and refine abstractions, enabling both efficiency and precision.
  • CEGAR for Refinement: The integration of CEGAR principles allows opaal to automatically refine its abstractions when faced with inconclusive results, bridging the gap between approximate and exact verification.
  • Open-Source Flexibility: The Python implementation and open-source nature of opaal make it highly extensible and adaptable for researchers and developers.

Key Results

The paper demonstrates opaal's effectiveness on several examples:

  • Database Programs: For a property "no two users work at the same time," explicit exploration took up to 48 seconds and explored over 192,000 states. With opaal's cover check (using monotonicity), this was reduced to 9 seconds and 8,960 states. Using a joining strategy further reduced this to less than 1 second and 51 states.
  • Database Fullness Property: For the property "database cannot become full," explicit exploration was inconclusive and took minutes to hours. With a refined joining strategy, opaal achieved conclusive results in under a second, exploring only 51-105 states.
  • Leader Election Protocol: For a property that only the highest ID agent becomes leader, explicit exploration explored up to 45,360 states and took over 10 hours. Cover check reduced this to 86 states in 1 second. A joining strategy further reduced it to 30 states in less than a second.

These results highlight significant speedups and state space reductions, often while maintaining or achieving conclusive verification.

Limitations and Future Work

  • Performance of Interpreted Language: While opaal is found to be sufficiently fast, the authors acknowledge that core parts might benefit from rewriting in a compiled language for further performance improvements.
  • Timed Automata Integration: The integration of zone-lattices for timed automata is still under development and has not yet yielded meaningful experimental results.
  • Future Work: The authors plan to extend opaal to other formalisms like Petri nets, improve performance, and investigate additional lattices and application areas. They also aim to further develop the timed automata capabilities.

Summary updated

BibTeX
@inproceedings{dalsgaard2011opaal,
  author = {Andreas Engelbredt Dalsgaard and René Rydhof Hansen and Kenneth Yrke Jørgensen and Kim Guldstrand Larsen and Mads Chr. Olesen and Petur Olsen and Jirí Srba},
  title = {{opaal: A Lattice Model Checker}},
  booktitle = {NASA Formal Methods},
  year = {2011},
  doi = {10.1007/978-3-642-20398-5\_37},
}
Figure