TorchLean API

NN.MLTheory.Proofs.Hopfield.Convergence

Hopfield cyclic-sweep convergence (finite-state argument) #

This file uses the tie-handling progress lemma from progress.lean to prove the classical finite-state global dynamics facts for cyclic sweeps:

We keep the statement at the “sweep level” (one full pass over coordinates). Connecting this to seqStates with cyclicUseq is routine and can be layered on top.

theorem NN.MLTheory.Proofs.Hopfield.cycleUpdate_no_nontrivial_cycles {n : } (p : Spec.Hopfield.Params n) (hsym : SymmetricW p) (hdiag : DiagonalZero p) {k : } (hk : 0 < k) (s : Spec.Hopfield.State n) (hcyc : (f p)^[k] s = s) :
f p s = s
theorem NN.MLTheory.Proofs.Hopfield.cycleUpdate_exists_fixedpoint_le_pow {n : } (p : Spec.Hopfield.Params n) (hsym : SymmetricW p) (hdiag : DiagonalZero p) (s0 : Spec.Hopfield.State n) :
m2 ^ n, (f p)^[m + 1] s0 = (f p)^[m] s0