Statistical mechanics
Corner-to-corner paths through the middle
A self-avoiding walk on a rectangular grid is a nearest-neighbor path that visits each vertex at most once. There are two different counting problems here. We prove the proposed recurrence and generating function in each case. The strip widths are fixed.
| Problem | Paths counted | Initial counts | Recurrence order |
|---|---|---|---|
| A333686, Seiichi Manyama | Opposite corners of a three-row, -column grid, through its center | starting at | 6 |
| A216211, Toby Gottfried; formulas proposed by Colin Barker | NW to SW corner of an -row, four-column grid | starting at | 12 |
Encoding a path
Rotate the four-column problem so that layers are traversed from left to right. Append a temporary edge entering the start and another leaving the destination. All used grid vertices now have degree two. When the endpoints coincide, these two edges can meet at the same vertex, giving the unique empty walk.
Cut between two consecutive layers. The part of a completed path to the left of this cut consists of disjoint paths. One starts at the external source and has one tip at the cut. Every other path joins a pair of tips. Store the occupied rows, the tip belonging to the source and the pairing of the others. At the initial cut there is just the source tip. At the final cut we require just that tip in the destination row.
To add a layer, enumerate its vertical-edge subsets. At each vertex, add the number of chosen vertical edges to the number of incoming edges. Degree one forces an outgoing edge, degree two forbids it, degree zero leaves the vertex unused, and degree greater than two is rejected. At a required center vertex degree zero is rejected as well. Joining the old pairs to the chosen edges produces the pairing at the new cut. Discard a component unless it has one outgoing tip when attached to the source, or two otherwise. A detached completed cycle can never rejoin a simple path.
These rules are reversible on an accepted configuration. Its vertical-edge subsets and the initial state determine every horizontal edge uniquely. Conversely, an accepting history is connected through the unique source component at the final cut. Its used vertices all have degree two after adding the artificial end edges, and detached cycles have been excluded throughout. Removing the artificial ends gives the desired simple path. This establishes the counting interpretation independently of the proposed formulas.
Why finitely many exact calculations prove statements for all lengths
Let be the ordinary layer transition and the central layer transition that requires the middle vertex. Write for the incoming source state and for selection of the single outgoing destination tip. All matrices have integer entries.
For A216211 the count is . Closing ordinary transitions from the initial state yields exactly 12 states. Its proposed recurrence for has lag coefficients
The residual (left side minus right side) is itself an output of powers of the same 12-dimensional matrix, with an adjusted initial vector. Cayley–Hamilton therefore gives a monic recurrence of order 12 for the residual. Its first 12 terms, from through , are exactly zero, as the replay computes. Every later residual is zero.
For A333686 the count is . There are five reachable states and the marked-layer choices form a subset of ordinary choices. On the 25-dimensional space of five-by-five matrices, increasing acts linearly by . Start with . The residual of the proposed order-six recurrence has the same fixed 25-dimensional description. Its lag coefficients are
All 25 residuals from through are zero by exact arithmetic, so Cayley–Hamilton gives zero at every later index. For each problem, multiplying the generating series by the reciprocal recurrence polynomial now leaves a numerator determined by the initial values. The replay checks both that numerator and the complete factored denominator against the respective source, coefficient by coefficient. A separate check directly walks small grids, with no transfer states.
Scope and attribution
This is an application of transfer matrices to two finite-width lattice models. Beckmann already used related calculations for the distinct four-row problem A214931. Its endpoint placement differs and its recurrence has order five. Historical priority for the two applications above has not been established. Related calculation · Executable proof
Evidence
Integer transfer certificate
Statement PR #1299 Checker passed · maintainer review