Abstract: Reachability analysis aims at identifying states reachable by a system within a given time horizon. This task is known to be computationally expensive for linear hybrid systems. Reachability analysis works by iteratively applying continuous and discrete post operators to compute states reachable according to continuous and discrete dynamics, respectively. In this paper, we enhance both of these operators and make sure that most of the involved computations are performed in low-dimensional state space. In particular, we improve the continuous-post operator by performing computations in high-dimensional state space only for time intervals relevant for the subsequent application of the discrete-post operator. Furthermore, the new discrete-post operator performs low-dimensional computations by leveraging the structure of the guard and assignment of a considered transition. We illustrate the potential of our approach on a number of challenging benchmarks.
Introduction
Hybrid systems serve as the mathematical foundation for cyber-physical systems (CPS), such as autonomous vehicles and medical robotics, where continuous physical dynamics interact with discrete software logic. Ensuring the safety of these systems requires reachability analysis: the process of calculating every possible state the system could enter within a given timeframe.
The primary challenge in this field is scalability. As the number of variables (dimensions) increases, computational costs typically explode. While block decomposition—breaking a high-dimensional problem into multiple low-dimensional subspaces—has significantly improved the analysis of purely continuous systems, these gains are often lost in hybrid systems. Traditionally, whenever a system encounters a "guard" (a condition triggering a discrete transition), algorithms must re-compose the state into high-dimensional space to check for intersections, creating a massive performance bottleneck.
Methodology: Block Decomposition and Sparse Computation
This paper introduces a highly scalable reachability algorithm implemented in the JuliaReach toolbox. The approach centers on two major innovations designed to keep computations in low-dimensional space:
- Decomposed Operators: The authors developed low-dimensional versions of standard hybrid operations. Instead of reverting to high-dimensional space, intersections with guards, affine maps (assignments), inclusion checks, and convex hulls are performed directly on the blocks.
- Sparse Flowpipe Computation: Most discrete transitions depend on only a few variables (e.g., "if $x_1 > 5$"). The algorithm leverages this sparsity by only computing the flowpipe for these "constrained" dimensions. It only performs the full high-dimensional calculation if an intersection with the guard is actually detected in the relevant low-dimensional blocks.
The core continuous evolution utilizes the $Post^\square_C$ algorithm, which employs support functions and set-based discretization to propagate reachable sets. By projecting guards onto relevant blocks, the system can detect transitions without ever reconstructing the full state space. This "medium-dimensional" compromise ensures soundness through overapproximation, which is acceptable for safety verification.
Experimental Results
The algorithm was evaluated using challenging benchmarks from the ARCH-COMP competition and the HyPro model library, including a 1024-dimensional Filtered Oscillator. The results demonstrate a dramatic leap in performance:
- Massive Speedups: On the 1024D benchmark, the proposed "Deco" algorithm finished in approximately 500 seconds, while other state-of-the-art tools like SpaceEx timed out or exceeded memory limits.
- Efficiency in Sparsity: In the 1024D test, the algorithm only needed to compute full high-dimensional sets for 1,400 out of 9,661 total time steps. For the remaining 85% of the time, it only tracked the three dimensions relevant to the guards.
- Precision: Despite the decomposition, the algorithm remained precise enough to verify safety properties that coarser lazy methods failed to prove.
Conclusion and Future Work
While the block decomposition approach offers significant scalability, several areas for improvement remain. Currently, block sizes are determined by heuristics based on guard constraints. Future research will focus on automated methods for finding optimal block structures and implementing dynamic block structures that can adapt as the system switches between discrete states. Additionally, integrating this approach into a Counterexample-Guided Abstraction Refinement (CEGAR) loop could allow for automatic block merging or splitting when higher precision is required to prove safety.
Summary updated