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

Model Checking for Rectangular Hybrid Systems: A Quantified Encoding Approach

Luan Viet Nguyen, Wesam Haddad, Taylor T. JohnsonSNR 2021

TL;DR

This paper introduces a novel "Quantified Bounded Model Checking" (QBMC) approach for verifying rectangular hybrid systems (RHAs). By encoding the model checking problem as a quantified formula, they achieve significantly reduced memory usage and competitive execution times compared to existing state-of-the-art tools, making it more scalable for complex hybrid systems.

What Problem Does This Paper Address?

Formal verification of hybrid systems, which combine continuous dynamics with discrete control, is crucial for ensuring the safety and reliability of cyber-physical systems. Bounded Model Checking (BMC) is a common technique, but it can suffer from excessive memory consumption as the complexity of the system and the bound on the number of steps increase. Traditional BMC for hybrid systems often results in large, quantifier-free formulas that SMT solvers struggle to handle efficiently. This paper addresses the challenge of improving the scalability of BMC for RHAs by exploring a quantified encoding approach.

Methods

The core contribution is a new SMT-based technique that encodes the BMC problem for RHAs into a quantified form, termed QBMC. This approach leverages the power of SMT solvers that support quantifiers, specifically by using a bit-vector to index iterations and a single copy of the transition relation, which is then simulated for different iterations based on the truth assignment of the bit-vector. This contrasts with traditional quantifier-free BMC, which typically requires multiple copies of the transition relation for each step. The authors use the LRABV (linear real arithmetic with bit-vectors) logic for encoding and the Z3 SMT solver for checking. They also describe the translation of hybrid automata models (in SpaceEx format) to this QBMC encoding using the HyST tool.

Datasets

Not discussed in the paper. The paper uses illustrative examples and standard benchmarks like the Fischer and Lynch-Shavit mutual exclusion protocols.

Key Insights and Ideas

  • Quantification for Scalability: The key insight is that by framing BMC as a quantified problem, particularly by quantifying over the number of steps, SMT solvers can potentially handle the problem more efficiently, especially in terms of memory.
  • Single Transition Relation: Encoding the BMC problem with a single copy of the transition relation, indexed by a bit-vector, significantly reduces the formula size compared to traditional methods that replicate the transition relation for each step.
  • RHA vs. Timed Automata: The proposed QBMC approach for RHAs also subsumes the case for timed automata, as RHAs are a more expressive class.
  • Trade-offs in Verification: The experimental results highlight the trade-off between execution time and memory consumption among different tools, with QBMC showing a strong advantage in memory efficiency.

Key Results

The paper presents experimental results comparing their QBMC approach with dReach and HyComp on an illustrative example and two standard mutual exclusion protocols (Fischer and Lynch-Shavit).

  • Illustrative Example (Table 1): For the illustrative example, QBMC was found to be faster than dReach but slower than HyComp. However, it required significantly less memory than both, indicating better scalability.
  • Fischer Mutual Exclusion (Table 2): QBMC outperformed dReach in solving the BMC of Fischer protocol, especially for larger numbers of processes and higher BMC bounds (k). It also demonstrated superior memory efficiency compared to HyComp, allowing it to solve problems that caused HyComp to run out of memory.
  • Lynch-Shavit Mutual Exclusion (Table 3): For the Lynch-Shavit protocol, QBMC again showed better scalability in terms of memory compared to HyComp, solving problems that HyComp could not due to memory limitations. dReach was unable to terminate for this protocol.

Limitations and Future Work

  • Limitations:
    • The current implementation focuses on rectangular hybrid automata (RHAs) with linear dynamics. More general hybrid automata with nonlinear dynamics or transcendental functions would require more advanced SMT solver support (e.g., NRABV).
  • While QBMC shows competitive execution times, it can be slower than some tools like HyComp in certain scenarios.
  • Future Work:
    • Conduct more extensive experiments on a wider range of benchmarks and compare with other tools like Uppaal and CVC4.
  • Investigate IC3-based algorithms for potential trade-offs between memory and execution time.
  • Extend the approach to more general classes of hybrid automata with linear or polynomial differential equations.
  • Further improvements in SMT solver quantifier handling are expected to enhance the effectiveness of QBMC.

Summary updated

BibTeX
@inproceedings{nguyen2021model,
  author = {Luan Viet Nguyen and Wesam Haddad and Taylor T. Johnson},
  title = {{Model Checking for Rectangular Hybrid Systems: A Quantified Encoding Approach}},
  booktitle = {SNR},
  year = {2021},
  url = {https://openreview.net/forum?id=OPR55LlfqRE},
}
Figure