Download PDFOpen PDF in browserFormalized Hopfield Networks and Boltzmann Machines21 pages•Published: October 23, 2026AbstractNeural 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.Keyphrases: boltzmann machines, formal mathematics, hopfield networks, lean 4, mathlib, neural networks, physlib, type theory In: Erika Ábrahám, Nikolaj Bjørner and Michael Rawson (editors). Proceedings of the 26th Conference on Logic for Programming, Artificial Intelligence, and Reasoning, vol 112, pages 250-270.
|

