Formalizing Piecewise Affine Activation Functions of Neural Networks in Coq
Not on the map. Why?
Abstract (arXiv)
Verification of neural networks relies on activation functions being piecewise affine (pwa) -- enabling an encoding of the verification problem for theorem provers. In this paper, we present the first formalization of pwa activation functions for an interactive theorem prover tailored to verifying neural networks within Coq using the library Coquelicot for real analysis. As a proof-of-concept, we construct the popular pwa activation function ReLU. We integrate our formalization into a Coq model of neural networks, and devise a verified transformation from a neural network N to a pwa function representing N by composing pwa functions that we construct for each layer. This representation enables encodings for proof automation, e.g. Coq's tactic lra -- a decision procedure for linear real arithmetic. Further, our formalization paves the way for integrating Coq in frameworks of neural network verification as a fallback prover when automated proving fails.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 7 of its 35 references that are in the map. First posted on arXiv 30 Jan 2023.
Builds on
7 of 35 references.
References · 7
- 2014On the Number of Linear Regions of Deep Neural Networkscited by 378
- 2017Formal Verification of Piece-Wise Linear Feed-Forward Neural Networkscited by 241
- 2019Algorithms for Verifying Deep Neural Networkscited by 221
- 2017Universal Function Approximation by Deep Neural Nets with Bounded Width and ReLU Activationscited by 104
- 2020Verification of Deep Convolutional Neural Networks Using ImageStarscited by 75
- 2020Reachable Polyhedral Marching (RPM): A Safety Verification Algorithm for Robotic Systems with Deep Neural Network Componentscited by 36
- 2017Developing Bug-Free Machine Learning Systems With Formal Mathematicscited by 13
Built on by
Citing papers per year: 2025: 2; 2026: 2.
4 papers.
- 2025Neural Network Verification is a Programming Language Challengecited by 12
- 2026TorchLean: Formalizing Neural Networks in Leancited by 4
- 2025Formalized Hopfield Networks and Boltzmann Machinescited by 2
- 2026Benign Loss Landscapes Can Coexist with Worst-Case Hardnesscited by 0
- 2026Benign Loss Landscapes Can Coexist with Worst-Case Hardness11 Sep 2026
- 2026TorchLean: Formalizing Neural Networks in Lean26 Feb 2026
- 2025Formalized Hopfield Networks and Boltzmann Machines8 Dec 2025
- 2025Neural Network Verification is a Programming Language Challenge10 Jan 2025