The mixed-memory hierarchy is not complete
Abstract
An asymmetric five-pattern mixed memory for quadratic activation lies outside the composition hierarchy. Exact correlations on the five-dimensional cube and the strong law yield its limiting overlaps.
Definition 1.1 (Allowable compositions).
Formalization. D5/S3/StatisticalMechanics/Hopfield/GayrardMixedMemoryRefutation.allowable (✓ std3).
Citation. Véronique Gayrard (2025). Mixed memories in Hopfield networks. URL: https://arxiv.org/abs/2504.04879v2.
Commentary.
Printed p. 5: “We call an -composition (,…,) allowable if is even for all and is odd.” Mathlib Composition(n) is a list of strictly positive natural blocks summing to n. dropLast removes the last block; getLastD selects it, using zero only for an empty list. Nonemptiness excludes the empty composition. Indices are zero-based.
Definition 1.2 (Products along a composition).
Formalization. D5/S3/StatisticalMechanics/Hopfield/GayrardMixedMemoryRefutation.gamma (✓ std3).
Citation. Véronique Gayrard (2025). Mixed memories in Hopfield networks. URL: https://arxiv.org/abs/2504.04879v2.
Commentary.
For every positive block size a, PrecessionSpinOneSeparableBound.c(a) is the source’s α^(a) = 2^(-a+1) binom(a-1,floor((a-1)/2)), reused from D5.S3.Quantum.Entanglement.PrecessionSpinOneSeparableBound; the source’s (1.2.1.5), printed (1.10), p. 5, defines gamma(k) as the product of these factors in the first k blocks. Fin indices begin at zero, so gamma(c,k) takes k.val+1 blocks.
Definition 1.3 (The strict hierarchy inequalities).
Formalization. D5/S3/StatisticalMechanics/Hopfield/GayrardMixedMemoryRefutation.hierarchySystem (✓ std3).
Citation. Véronique Gayrard (2025). Mixed memories in Hopfield networks. URL: https://arxiv.org/abs/2504.04879v2.
Commentary.
The source’s system S, (1.2.1.12bis), printed (1.13), p. 5: for each nonfinal block, twice the derivative at its gamma value exceeds the sum of all later block lengths times the derivatives at their gamma values. The last block imposes no inequality.
Definition 1.4 (The padded block vector).
Formalization. D5/S3/StatisticalMechanics/Hopfield/GayrardMixedMemoryRefutation.blockVector (✓ std3).
Citation. Véronique Gayrard (2025). Mixed memories in Hopfield networks. URL: https://arxiv.org/abs/2504.04879v2.
Commentary.
Printed p. 5: “Given , let be the vector whose components are constant and equal to on consecutive blocks of length , , and are beyond,” as displayed in (1.2.1.8), printed (1.14). Composition.index selects the unique block containing the zero-based coordinate mu; the dependent Fin constructor contains its bound proof h.
Definition 1.5 (The literal coefficient set).
Formalization. D5/S3/StatisticalMechanics/Hopfield/GayrardMixedMemoryRefutation.coefficientSet (✓ std3).
Citation. Véronique Gayrard (2025). Mixed memories in Hopfield networks. URL: https://arxiv.org/abs/2504.04879v2.
Commentary.
The source’s (1.2.1.15), printed (1.15), p. 6, takes all allowable compositions satisfying S, all permutations of the M coordinates, and all coordinate signs. The sign exponent is 1 if the derivative is odd and 2 otherwise. Here coefficientSet(n,F,M) is a Set of functions Fin(M) → R.
Definition 1.6 (The mixed configuration).
Formalization. D5/S3/StatisticalMechanics/Hopfield/GayrardMixedMemoryRefutation.memorySpin (✓ std3).
Citation. Véronique Gayrard (2025). Mixed memories in Hopfield networks. URL: https://arxiv.org/abs/2504.04879v2.
Commentary.
Definition 1.1, p. 4, defines xi_i(m) = sign(sum_mu xi_i^mu F’(m_mu) 1_{m_mu ≠ 0}). The pattern and site indices are shifted by one: Lean mu and i correspond to source mu+1 and i+1. The source’s sign convention (2.2.2), printed (2.25), p. 15, is +1 above zero, -1 below zero, and 0 at zero; Real.sign has precisely this convention. M(N) permits the number of patterns to vary with N.
Definition 1.7 (Mixed memories of type F).
Formalization. D5/S3/StatisticalMechanics/Hopfield/GayrardMixedMemoryRefutation.mixedMemory (✓ std3).
Citation. Véronique Gayrard (2025). Mixed memories in Hopfield networks. URL: https://arxiv.org/abs/2504.04879v2.
Commentary.
Definition 1.1, p. 4: “Let be a smooth function whose derivative satisfies , for all . Given independent of , -mixed memories of type are configurations in denoted by and defined as” the displayed spin formula. “(i) has exactly non-zero components, i.e. there exists a subset ⊂{1,…,M} of cardinality such that if and only if .” “Let {μ₁,…,μₙ} be an enumeration of the elements of and, for each , set . Then, for each , the normalised overlap of with the pattern converges to as diverges,” and “and it converges to zero else,” with probability one in (1.2.1.2) and (1.2.1.3). The formula records that configurations are binary almost surely. Each occupied coordinate converges to its coefficient; every coordinate appearing at some size and outside V converges to zero. The support V is independent of N. The hypotheses on F, n, M and the coordinate bounds are bound in claim.
Definition 1.8 (Gayrard’s Conjecture 1.4).
Formalization. D5/S3/StatisticalMechanics/Hopfield/GayrardMixedMemoryRefutation.claim (✓ std3).
Citation. Véronique Gayrard (2025). Mixed memories in Hopfield networks. URL: https://arxiv.org/abs/2504.04879v2.
Commentary.
Conjecture 1.4, printed p. 6: “Given any odd, is an -mixed memory of type if and only if .” The standing sentence on p. 4 is: “Throughout the paper, is chosen to be independent of and is chosen to be a non-decreasing function of .” An infinite deterministic sequence m represents coherent restrictions to the first M(N) coordinates. Membership is checked on each restriction. The probability space and jointly independent measurable family xi are arbitrary; both signs have mass 1/2. F is smooth with positive derivative on the positive half-line, n is odd, M is monotone, and every coefficient lies in [-1,1]. The two bracketed Lean instance arguments are anonymous.
Theorem 1.9 (An asymmetric five-pattern counterexample).
Proof. Machine-checked in Lean as D5/S3/StatisticalMechanics/Hopfield/GayrardMixedMemoryRefutation.result (✓ std3). ∎
Resolves. Problems/gayrard-2025-mixed-memory-converse-refutation (refuted) by D5/S3/StatisticalMechanics/Hopfield/GayrardMixedMemoryRefutation.result.
Source. Repository-derived.
Acknowledgement. Véronique Gayrard (2025). Mixed memories in Hopfield networks. URL: https://arxiv.org/abs/2504.04879v2.
Commentary.
For F(x)=x²/2 and M(N)=5, take m=(5/8,3/8,3/8,1/8,1/8), padded by zeros. The integer fields 5x₁+3x₂+3x₃+x₄+x₅ never vanish. Summing each coordinate times their sign over all 32 cube points gives (20,12,12,4,4). An infinite product of fair Boolean coordinates supplies the independent patterns; the strong law yields the five normalized overlap limits. There are no unused coordinates among the first five. The allowable compositions of five are (5), (2,3), (4,1), (2,2,1), and every padded block coordinate has absolute value at most 1/2. Permutations and the prescribed sign powers preserve this bound, while m₁=5/8. Theorem 1.2’s sufficient direction is compatible with this failure of necessity. No local-minimum assertion is made.
References
- Truth anchor:
D5/S3/StatisticalMechanics/Hopfield/GayrardMixedMemoryRefutation.allowable - Truth anchor:
D5/S3/StatisticalMechanics/Hopfield/GayrardMixedMemoryRefutation.blockVector - Truth anchor:
D5/S3/StatisticalMechanics/Hopfield/GayrardMixedMemoryRefutation.claim - Truth anchor:
D5/S3/StatisticalMechanics/Hopfield/GayrardMixedMemoryRefutation.coefficientSet - Truth anchor:
D5/S3/StatisticalMechanics/Hopfield/GayrardMixedMemoryRefutation.gamma - Truth anchor:
D5/S3/StatisticalMechanics/Hopfield/GayrardMixedMemoryRefutation.hierarchySystem - Truth anchor:
D5/S3/StatisticalMechanics/Hopfield/GayrardMixedMemoryRefutation.memorySpin - Truth anchor:
D5/S3/StatisticalMechanics/Hopfield/GayrardMixedMemoryRefutation.mixedMemory - Truth anchor:
D5/S3/StatisticalMechanics/Hopfield/GayrardMixedMemoryRefutation.result - Dependency: D5/S3/Combinatorics/IsingUniquenessSets
- Dependency: D5/S3/Quantum/Entanglement/PrecessionSpinOneSeparableBound