Verification of Autonomous Neural Car Control with KeYmaera X

10. Jun 2025·
Enguerrand Prebet
Samuel Teuber
Samuel Teuber
,
André Platzer
· 0 min read
The ABZ'25 Case Study Challenge featured a neural network controlled car. Our contribution solves this case study based on the rigorous foundations of differential dynamic logic in combination with neural network verification as described in our recent NeurIPS'24 paper: We prove safety for the abstract model and derive specifications for the neural network.
Abstract
This article presents a formal model and formal safety proofs for the ABZ'25 case study in differential dynamic logic (dL). The case study considers an autonomous car driving on a highway avoiding collisions with neighbouring cars. Using KeYmaera X’s dL implementation, we prove absence of collision on an infinite time horizon which ensures that safety is preserved independently of trip length. The safety guarantees hold for time-varying reaction time and brake force. Our dL model considers the single lane scenario with cars ahead or behind. We demonstrate that dL with its tools is a rigorous foundation for runtime monitoring, shielding, and neural network verification. Doing so sheds light on inconsistencies between the provided specification and simulation environment highway-env of the ABZ'25 study. We attempt to fix these inconsistencies and uncover numerous counterexamples which also indicate issues in the provided reinforcement learning environment.
Type
Publication
11th International Conference on Rigorous State Based Methods