Statistical mechanics

A shifted toppling count on the sandpile ring

The Omega Institute’s trureturing project previously published a Lean proof of this corrected identity. This note reproduces its mathematical conclusion for the Left to Solve catalogue. Prior proof and attribution

For a ring of length n≥1n\ge1 with the sink at zero, the number of legal topplings until stabilization is T(n,1)=∑j=1⌊n/2⌋j(n−j). T(n,1)=\sum_{j=1}^{\lfloor n/2\rfloor}j(n-j). For n≥2n\ge2 this is A023855 at n−1n-1. For n=1n=1 the sum is empty. In particular, the equality printed in A293452 fails even if we omit the singleton ring: a two-site ring topples once, while A023855(2) is two.

Proof. Cut the ring at the sink, giving endpoints 0,n0,n with firing count zero. Each interior site starts with four grains. The vertical self-loops return two grains to the firing site. If viv_i is its firing count, its current height is 4−(Lv)i4-(Lv)_i, where (Lv)i=2vi−vi−1−vi+1(Lv)_i=2v_i-v_{i-1}-v_{i+1}. This counts both horizontal edges also for n=2n=2.

Set ui=12(i(n−i)+𝟏2∣nmin⁡(i,n−i)). u_i=\tfrac12\bigl(i(n-i)+\mathbf1_{2\mid n}\min(i,n-i)\bigr). These are nonnegative integers with zero boundary values. For odd nn, i(n−i)i(n-i) is even. For even nn, i(n−i)i(n-i) and min⁡(i,n−i)\min(i,n-i) have the same parity. A second difference gives (Lu)i=1(Lu)_i=1 at every interior site, except for the midpoint of an even ring where it is two. Thus hi*=4−(Lu)ih_i^*=4-(Lu)_i is stable.

Every legal firing sequence has v≤uv\le u. At the first firing that would exceed uiu_i, its two neighbors have counts at most their prescribed values and the site itself has count uiu_i, so its height is at most hi*<4h_i^*<4. In particular every maximal legal play terminates. At its end put w=u−v≥0w=u-v\ge0, with w0=wn=0w_0=w_n=0. If its maximum is positive, select a maximal consecutive plateau attaining that maximum. Either an endpoint is a site with hi*=3h_i^*=3, where (Lw)i≥1(Lw)_i\ge1, or the plateau consists only of the exceptional midpoint, where (Lw)i≥2(Lw)_i\ge2. In either case the actual height hi*+(Lw)ih_i^*+(Lw)_i is at least four, contradicting termination. Therefore v=uv=u in every play.

Finally pair ii with n−in-i when summing uiu_i. For odd nn this directly gives the displayed sum. For even n=2mn=2m, the quadratic part gives ∑i=1m−1i(n−i)+m2/2\sum_{i=1}^{m-1}i(n-i)+m^2/2; the extra half-sum of min⁡(i,n−i)\min(i,n-i) contributes another m2/2m^2/2. This proves the identity.

Sandpile table and conjecture · Toppling rules · Rectangle sums and offset

The Omega Institute previously formalized the same corrected identity for every size. This note records our independent replay of the catalogue entry. Earlier Lean result

Evidence

Lean counterexample · prior solution

Statement PR #1071 Checker passed · maintainer review