Interval-based Verification of Neural Networks: Formally Verified!
Neural networks have demonstrated success in solving a wide range of problems, such as outperforming traditional image recognition approaches, thereby creating demand for their use in safety-critical systems. However, deployment in such systems requires formal verification to provide certification guarantees. As a consequence, we have seen a rise in formal verification techniques for neural networks; yet, these verification tools themselves typically lack formal correctness guarantees. In safety-critical applications, properties can often be expressed as interval constraints on network outputs, motivating interval-based verification approaches. One such approach has been successfully applied to the ACAS Xu aircraft collision avoidance benchmark. However, the correctness of this approach relies on informal mathematical arguments and a manually written, heavily optimised C implementation that has not been formally verified. In this paper, we present a mechanised verification methodology for neural networks in Isabelle/HOL. We prove that interval-based verification is sound by establishing three correctness properties: interval extension, inclusion isotonicity, and Lipschitz continuity. From our formal specification, we generate a trustworthy implementation in Haskell and demonstrate the verified methodology on ACAS Xu, producing machine-checked correctness proofs for safety properties.