Compositional Neural-Cyber-Physical System Verification in the Interactive Theorem Prover of Your Choice

📅 2026-05-04
📈 Citations: 0
Influential: 0
📄 PDF

career value

211K/year
🤖 AI Summary
This work addresses key challenges in the formal verification of neuro-symbolic cyber-physical systems—such as drones and medical devices—including the co-design of neural components with safety specifications, modeling of hybrid discrete-continuous dynamics, and integration of heterogeneous verification results. The authors propose a compositional verification methodology that leverages the Vehicle domain-specific language, together with its bidirectional type checker and intermediate representation, to seamlessly integrate specification, training, and verification of neural components into mainstream interactive theorem provers such as Coq, Isabelle/HOL, Agda, and Imandra. For the first time, they achieve infinite-horizon safety proofs for continuous systems with neural controllers within general-purpose theorem provers, demonstrating their approach by formally verifying a neurally controlled medical device in Coq using the Mathematical Components library, while supporting cross-prover compositional reasoning.
📝 Abstract
Formal verification of neuro-symbolic cyber-physical systems, such as drones, medical devices and robots, is complicated. Neural components must be trained to be optimal with respect to the available data as well as the safety specifications, and then verified using specialised solvers. Symbolic models of the "cyber" and "physical" behaviour of the system must be constructed and verified in interactive theorem provers (ITPs), often requiring mature mathematical libraries to reason about the interplay of discrete and continuous dynamics, preferably obtaining infinite time-horizon guarantees. Finally, the results of the two already challenging verification tasks need to be integrated into a single proof in a coherent and consistent way, whilst preserving deployability of the resulting model. In this paper we present a compositional methodology for constructing such proofs. The Vehicle framework provides a functional, domain-specific language for specifying, training, and verifying neural components. We extend Vehicle to allow integration with any ITP with minimal effort. First, we describe how Vehicle's standard bidirectional type checker can be reused to transpile neural specifications into an intermediate representation targeting multiple theorem provers. Second, we integrate Vehicle with Rocq, Isabelle/HOL, Agda and the industrial prover Imandra; and showcase a generic infinite time-horizon safety proof of a discrete cyber-physical system with a neural network controller in each ITP. Finally, we use the Mathematical Components libraries in Rocq to verify infinite time-horizon safety of a medical device, modelled as a continuous cyber-physical system with a neural controller. To our knowledge, this is the first result of this kind in a general purpose ITP; and a result that was only feasible thanks to the compositionality provided by Vehicle's functional interface.
Problem

Research questions and friction points this paper is trying to address.

Neural-Cyber-Physical Systems
Formal Verification
Interactive Theorem Proving
Compositional Verification
Safety Guarantees
Innovation

Methods, ideas, or system contributions that make the work stand out.

compositional verification
neural-cyber-physical systems
interactive theorem proving
Vehicle framework
infinite time-horizon safety