Introduction
Ensuring the safety of autonomous systems—ranging from robotic arms to unmanned aerial vehicles (UAVs)—requires rigorous formal guarantees. A primary challenge in this domain is verifying that a system's state will never enter a predefined "unsafe" region. Simulation-based verification has emerged as a scalable approach, where a single numerical simulation is "bloated" into a reachtube to account for a neighborhood of initial states. However, the precision of this bloating depends on a "discrepancy function," which traditionally requires manual derivation by experts. This paper introduces an automated method to compute these functions on-the-fly, significantly enhancing the scalability and accessibility of formal verification for complex nonlinear systems.
The Challenge of Discrepancy Functions
A discrepancy function bounds the rate at which two trajectories originating from different initial states drift apart over time. Historically, deriving these functions was a tedious, error-prone process. If the derived function is too conservative, the resulting reachtube becomes excessively large, leading to "false alarms" where a safe system cannot be proven safe. Conversely, manual derivation for high-dimensional or complex models is often mathematically intractable for non-experts.
Methodology: The ComputeLDF Algorithm
The authors propose the ComputeLDF (Local Discrepancy Function) algorithm to automate this process. Rather than seeking a single global Lipschitz constant—which often leads to exponential error growth—the algorithm calculates piece-wise exponential bounds across small time intervals.
Local Jacobian Analysis and Eigenvalue Bounding
The core of ComputeLDF lies in analyzing the system's Jacobian matrix ($J$) along a simulated trajectory. By applying matrix perturbation theory, the algorithm identifies an upper bound on the maximum eigenvalue of the symmetric part of the Jacobian ($J + J^T$). This eigenvalue represents the local rate of expansion or contraction within the state space. By computing these rates dynamically, the tool can construct tighter reachtubes that more accurately reflect the system's behavior.
Coordinate Transformations
Standard Euclidean coordinates can be misleading for systems involving oscillation or rotation, such as pendulums or robotic joints. In these cases, trajectories may appear to diverge when they are actually stable. The authors address this by implementing linear coordinate transformations based on real Jordan forms. This "re-centering" of the analysis allows the algorithm to recognize stability that is otherwise obscured, drastically reducing the number of simulations required for verification.
Input-to-State (IS) Extension
To handle real-world complexity, the framework is extended to accommodate non-deterministic external inputs. This Input-to-State extension is crucial for analyzing "composed" systems, where the output of one component serves as the input for another, allowing for modular verification of complex architectures.
Experimental Evaluation
The approach was evaluated against standard nonlinear benchmarks, demonstrating significant improvements over existing tools like Flow and HyCreate*.
- High-Dimensional Verification: The algorithm successfully verified a 28-dimensional helicopter model in approximately 67 seconds. This represents a major milestone, as many traditional verification tools struggle with systems exceeding 6 dimensions.
- Efficiency Gains: In a 4D Robot Arm benchmark, the coordinate transformation technique reduced the required number of simulations from 1159 to just 81.
- Precision: The tool proved safety for a UAV model with a large set of initial conditions, a scenario where other engines typically time out due to state-space explosion.
Conclusion and Future Directions
By automating the computation of discrepancy functions, this research removes a significant barrier to the adoption of formal methods in autonomous system design. While the current prototype requires symbolic Jacobians as input, future work aims to automate this via symbolic differentiation and integrate the method into hybrid system verification tools like C2E2. The transition from global to local, on-the-fly analysis marks a pivotal shift toward more practical and scalable formal safety guarantees.
Summary updated