Skip to search boxSkip to navigationSkip to main content

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

  • Matthew L. Daggitt
    ,
  • Ekaterina Komendantskaya
    ,
  • Alistair Sirman
    ,
  • ,
  • Samuel Teuber
    ,
  • Josh Smart
Research Output:
Journal Article or Conference Article in Journal
Journal article
Research
Peer-review

Open access

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, thereby bridging the gap between the neural and symbolic proofs. 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, to put the idea of compositional neural-cyber-physical system verification to the test, 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.

Publication Information

Output type

Research Output:
Journal Article or Conference Article in Journal
Journal article
Research
Peer-review

Original language

English

Pages from-to (Number of pages)

Pages 204-235 (32 pages)

Journal (Volume, Issue Number)

Proc. ACM Program. Lang. (Volume 10, Issue ICFP)

Publication milestones

  • Published - 17/08/2026

Publication status

Published - 17/08/2026

Publication IDs

  • Scopus: 105047805559

Publication metrics