D1 · Exact finite primal–dual alternative

D1. For a fixed finite family of spin patterns, what exactly certifies that no symmetric network stores them?

Q3 · Dual certificates · Primal–dual introduction

Definitions
Definition 1. Strict storage

For integers \(n\ge2,m\ge1\), fix \(s^1,\ldots,s^m\in\{-1,1\}^n\). They are jointly storable if there exist \(J=J^\top\in\mathbb R^{n\times n}\), \(J_{ii}=0\), and \(h\in\mathbb R^n\) such that

$$s_i^\mu\left(\sum_{j\ne i}J_{ij}s_j^\mu+h_i\right)>0\qquad(1\le i\le n,\ 1\le\mu\le m).$$
Definition 2. Constraint vectors

Put \(d=n+\binom n2=n(n+1)/2\), \(N=nm\), and \(\theta=(h,(J_{ij})_{i<j})\in\mathbb R^d\). The vector \(a_i^\mu\in\mathbb R^d\) has coefficient \(s_i^\mu\) on field \(h_i\), coefficient \(s_i^\mu s_j^\mu\) on each incident unordered edge \(\{i,j\}\), and zero elsewhere. Let \(A\in\mathbb R^{N\times d}\) have rows \((a_i^\mu)^\top\).

$$a_i^\mu\cdot\theta=s_i^\mu\left(\sum_{j\ne i}J_{ij}s_j^\mu+h_i\right).$$

Statement

Attempt 1 · Exact finite alternative

Exact finite alternative. For integers \(n\ge2,m\ge1\), let \(s^1,\ldots,s^m\in\{-1,1\}^n\). These spin patterns are not jointly storable if and only if there are real multipliers

$$\lambda_i^\mu\ge0,\qquad\sum_{i=1}^n\sum_{\mu=1}^m\lambda_i^\mu=1,$$

such that

$$\sum_{\mu=1}^m\lambda_i^\mu s_i^\mu=0\quad(1\le i\le n),$$

$$\sum_{\mu=1}^m(\lambda_i^\mu+\lambda_j^\mu)s_i^\mu s_j^\mu=0\quad(1\le i<j\le n).$$

When such a witness exists, one exists with at most \(n(n+1)/2+1\) positive entries. The allowed networks have symmetric real weights, zero diagonal, and free fields.

Proof

  1. Step 1. Encode the storage inequalities

    With the constraint vectors of Definition 2, strict storage is precisely

    $$\exists\theta\in\mathbb R^d:\quad A\theta>0.$$
    Proof

    Expand each dot product using Definition 2. Its field term is \(s_i^\mu h_i\), and its incident-edge terms sum to \(\sum_{j\ne i}s_i^\mu J_{ij}s_j^\mu\). These are exactly the signed local fields defining storage. Every unordered edge is represented by one variable, so symmetry is built into the parameter space.

  2. Step 2. Separate zero from the coefficient hull

    Let \(K=\operatorname{conv}\{a_i^\mu:1\le i\le n,1\le\mu\le m\}\subset\mathbb R^d\). Then

    $$\exists\theta:\ A\theta>0\quad\Longleftrightarrow\quad0\notin K.$$
    Proof

    If zero were a convex combination of the rows, its dot product with a strict solution would be a weighted average of positive numbers, a contradiction.

    Conversely, \(K\) is nonempty and compact. If \(0\notin K\), choose \(v\in K\) minimizing Euclidean norm; then \(\|v\|>0\). For every \(a\in K\), the segment \(v+t(a-v)\), \(0\le t\le1\), stays in \(K\), so

    $$0\le\left.\frac{d}{dt}\|v+t(a-v)\|^2\right|_{t=0^+}=2v\cdot(a-v).$$ $$v\cdot a\ge\|v\|^2>0.$$

    Taking \(\theta=v\) makes every row margin positive.

    Sources

    The nearest-point argument above proves the alternative directly. For the standard formulation, see Border, Alternative Linear Inequalities, Theorem 41 and Corollary 43, p. 19. His nonzero nonnegative row vector \(p\) is our \(\lambda^\top\); our matrix is real and our primal vector is unrestricted, as required.

  3. Step 3. Expand the dual in the shared network coordinates

    Zero lies in \(K\) exactly when there are \(\lambda_i^\mu\ge0\) of total mass one satisfying

    $$\sum_{\mu=1}^m\lambda_i^\mu s_i^\mu=0\quad(1\le i\le n),$$ $$\sum_{\mu=1}^m(\lambda_i^\mu+\lambda_j^\mu)s_i^\mu s_j^\mu=0\quad(1\le i<j\le n).$$
    Proof

    By the definition of convex hull, \(0\in K\) means \(\sum_{i,\mu}\lambda_i^\mu a_i^\mu=0\), with nonnegative coefficients summing to one. The coordinate of \(h_i\) gives the first equation. Each shared variable \(J_{ij}\) appears in both neuron \(i\) and neuron \(j\) margins, producing the two summands in the second equation. These exhaust all coordinates, so the implication reverses as well.

  4. Step 4. Reduce to at most d + 1 positive multipliers

    If a certificate exists, one exists with at most

    $$d+1=\frac{n(n+1)}2+1$$

    positive entries.

    Proof

    Start with any normalized certificate. If its positive support \(I\) has more than \(d+1\) indices, the vectors \((a_i^\mu,1)\in\mathbb R^{d+1}\) with \((i,\mu)\in I\) are linearly dependent. Thus there are real \(c_i^\mu\), not all zero, supported in \(I\), with

    $$\sum_{i,\mu}c_i^\mu a_i^\mu=0,\qquad\sum_{i,\mu}c_i^\mu=0.$$

    The coefficients \(c\) have both signs. Set

    $$t=\min_{c_i^\mu>0}\frac{\lambda_i^\mu}{c_i^\mu},\qquad\lambda'=\lambda-tc.$$

    Then \(\lambda'\ge0\), its total mass is one, and its weighted vector sum is zero. At least one positive entry disappears and none appears outside \(I\). Repeat finitely many times to reach the asserted bound.