Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Cipollina, Matteo, Karatarakis, Michail, Wiedijk, Freek
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2512.07766
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866914187926568960
author Cipollina, Matteo
Karatarakis, Michail
Wiedijk, Freek
author_facet Cipollina, Matteo
Karatarakis, Michail
Wiedijk, Freek
contents Neural networks are widely used, yet their analysis and verification remain challenging. In this work, we present a Lean 4 formalization of neural networks, covering both deterministic and stochastic models. We first formalize Hopfield networks, recurrent networks that store patterns as stable states. We prove convergence and the correctness of Hebbian learning, a training rule that updates network parameters to encode patterns, here limited to the case of pairwise-orthogonal patterns. We then consider stochastic networks, where updates are probabilistic and convergence is to a stationary distribution. As a canonical example, we formalize the dynamics of Boltzmann machines and prove their ergodicity, showing convergence to a unique stationary distribution using a new formalization of the Perron-Frobenius theorem.
format Preprint
id arxiv_https___arxiv_org_abs_2512_07766
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Formalized Hopfield Networks and Boltzmann Machines
Cipollina, Matteo
Karatarakis, Michail
Wiedijk, Freek
Machine Learning
Logic in Computer Science
Neural networks are widely used, yet their analysis and verification remain challenging. In this work, we present a Lean 4 formalization of neural networks, covering both deterministic and stochastic models. We first formalize Hopfield networks, recurrent networks that store patterns as stable states. We prove convergence and the correctness of Hebbian learning, a training rule that updates network parameters to encode patterns, here limited to the case of pairwise-orthogonal patterns. We then consider stochastic networks, where updates are probabilistic and convergence is to a stationary distribution. As a canonical example, we formalize the dynamics of Boltzmann machines and prove their ergodicity, showing convergence to a unique stationary distribution using a new formalization of the Perron-Frobenius theorem.
title Formalized Hopfield Networks and Boltzmann Machines
topic Machine Learning
Logic in Computer Science
url https://arxiv.org/abs/2512.07766