Formalized Hopfield Networks and Boltzmann Machines
Not on the map. Why?
Abstract (arXiv)
Neural networks are widely used, yet their analysis and verification remain challenging. We present a Lean~4 formalization covering both deterministic and stochastic models. We first formalize Hopfield networks -- recurrent networks that store patterns as stable states -- and prove their convergence, and the correctness of Hebbian learning, the rule that updates parameters to encode patterns. We then turn to stochastic networks, whose probabilistic updates converge to a stationary distribution: we formalize the dynamics and learning of Boltzmann machines and prove their ergodicity -- convergence to a unique stationary distribution -- via a new formalization of the Perron--Frobenius theorem.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 22 of its 71 references that are in the map. First posted on arXiv 8 Dec 2025.
Builds on
22 of 71 references.
References · 22
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2020Hopfield Networks is All You Needcited by 475
- 2017Formal Verification of Piece-Wise Linear Feed-Forward Neural Networkscited by 242
- 2019Algorithms for Verifying Deep Neural Networkscited by 221
- 2013Ising formulations of many NP problemscited by 207
- 2019The Lean mathematical librarycited by 134
- 2020Verification of Deep Convolutional Neural Networks Using ImageStarscited by 75
- 2023Training Deep Boltzmann Networks with Sparse Ising Machinescited by 24
- 2017Developing Bug-Free Machine Learning Systems With Formal Mathematicscited by 14
- 2024HepLean: Digitalising high energy physicscited by 10
- 2020CertRL: Formalizing Convergence Proofs for Value and Policy Iteration in Coqcited by 9
- 2022Formalizing Chemical Physics using the Lean Theorem Provercited by 9
10 more
- 2024A Certified Proof Checker for Deep Neural Network Verification in Imandracited by 7
- 2025A Formalization of the Generalized Quantum Stein's Lemma in Leancited by 7
- 2014A formally verified proof of the Central Limit Theoremcited by 5
- 2022Formalization of a Stochastic Approximation Theoremcited by 5
- 2023Formalizing Piecewise Affine Activation Functions of Neural Networks in Coqcited by 4
- 2018A Separation Logic for Concurrent Randomized Programscited by 3
- 2020Verification of ML Systems via Reparameterizationcited by 2
- 2022A Formalization of Doob's Martingale Convergence Theorems in mathlibcited by 2
- 2021Towards Formalising Schutz' Axioms for Minkowski Spacetime in Isabelle/HOLcited by 1
- 2025Digitalizing Wick's theoremcited by 1
Built on by
Citing papers per year: 2026: 2.
2 papers.
- 2026TorchLean: Formalizing Neural Networks in Leancited by 4
- 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