Skip to content

Proving Termination and Correctness of the Partitioning Engine in the VeRAPAk Neural Network Verifier

Mason Davis, Yongxi Sha, Bennet DenBleyker, Wen Li, Zhen Zhang

cs.LO

Abstract

Establishing trust in neural network verifiers is paramount for certifying safety-critical systems. However, these tools are inherently complex software, often relying on dynamic languages and external libraries that make them susceptible to bugs, non-terminating loops, or mathematically invalid guarantees. This paper presents a case study on formally verifying the core partitioning engine of VeRAPAk, a modular, refutation-based neural network verifier. Because VeRAPAk relies on swappable verification and falsification sub-routines, we isolate this central engine to establish mathematical guarantees of termination and structural correctness for the overarching framework itself. To do this, we propose a two-pronged validation methodology: First, we construct a formal model of VeRAPAk's partitioning algorithm in Dafny, detailing practical optimization strategies for large-scale verification efforts, including isolating nonlinear arithmetic and utilizing explicit witnessing, to mitigate SMT resource exhaustion and formally prove the algorithm's correctness and guarantee its termination. Second, we introduce a contract-aware fuzzing test suite to close the semantic gap between the underlying Python implementation and the Dafny model. This provides a reusable framework for improving confidence in complex verifiers spanning multiple implementation languages.

Create a lesson