Non-Uniform and Weighted Crossing Gates in Two-Dimensional Sandpiles


Abstract

Determining whether predicting two-dimensional sandpiles lies in \({\fontfamily{cmss}\selectfont NC}\) or is P-complete has been open for decades. Moore and Nilsson proved P-completeness for the three dimensional case by encoding Boolean circuits into sandpiles, but this method fails in two dimension due to the impossibility of crossing gates.

In this work, we study the existence of crossing gates on non-uniform and weighted grids. We establish an equivalence between uniform weighted crossing gates and a class of simple non-uniform crossing gates, which we call primal. We also exhibit a crossing gate that inherently requires more than one crossing, rather than a single crossing as in standard constructions. Finally, we show that the equivalence between uniform weighted and primal crossings breaks down in more general settings.

1 Introduction↩︎

The concept of self-organized criticality was introduced in [1] with the sandpile model as its paradigmatic example. Beyond its physical relevance, sandpiles have been extensively studied under the lens of complexity theory as a type of cellular automaton [2][4]. A central question in this context is how hard it is to compute the future global states of the model. This is captured by the prediction problem: given a distribution of sand grains and a target cell, does the target cell eventually topple? Early results by Moore and Nilsson [2] show a dichotomy: in one-dimensional sandpiles, the problem can be decided efficiently in parallel (it belongs to \(\text{{\fontfamily{cmss}\selectfont NC}}^3\)); while for three or more dimensions, it becomes a P-complete problem, leaving the two-dimensional case open and remains open to this day. The main issue is that P-completeness proofs (in this context) rely on embedding non-planar monotone Boolean circuits on the sandpile grid, therefore two dimensions is intuitively not enough. This was formalized by Gajardo and Goles [5] by proving that no crossing gate is possible on two-dimensional sandpile (with the von Neumann or Moore neighborhoods). Crossing gates simulate two signals crossing, enabling connections between other circuit components. Crossing gates are therefore crucial when proving P-completeness in the context of two-dimensional cellular automata [6][9] and are typically the hardest component to construct. The latter motivated a line of research focusing on embedding arbitrary Boolean circuits into two-dimensional sandpiles under different settings [8], [10][13]. This work is intended to contribute to this line of research with a particular focus on crossing gates.

1.0.0.1 Contribution.

Our contribution consists in three main results. First, we define the notions of primal and weighted grids. In a \(\mathcal{P}\)-primal grid, each cell has at most one out-neighbor from \(\mathcal{P}\). In a weighted \(\mathcal{P}\)-grid, the neighborhood is defined as a multiset over \(\mathcal{P}\), therefore the distribution of grains to the neighbors can differ from the uniform distribution, but is identical across all cells. We prove that a \(\mathcal{P}\)-primal grid admits a crossing gate if and only if there exists a weighted \(\mathcal{P}\)-grid that allows a crossing gate. This result tackles one of the research directions proposed by Concha-Vega et al. [8] related to non-uniform sandpiles.

Secondly, we ask whether all crossing gates have exactly two edges (of their toppling graphs) that cross, motivated by observation of the known crossing gates in the literature. We give a negative answer by showing a neighborhood that always needs more crossings edges.

Finally, we show that the equivalence fails for general decompositions (in non-primal and non-uniform grids), by giving counter-examples for both implications.

1.0.0.2 Outline

This article is organized as follows. In Section 2, we give an overview of the necessary concepts and previous results relevant to our work. Our results are then presented in Sections 34, and, 5 respectively. Finally, we conclude in Section 6.

2 Preliminaries↩︎

2.1 Sandpile automaton↩︎

A two dimensional sandpile is a cellular automaton defined on a \(\ell \times \ell'\) grid, where each cell contains a nonnegative number of sand grains. We denote the set of cells by \(V := \llbracket 1, \ell \rrbracket \times \llbracket 1, \ell' \rrbracket\). A configuration is a function \(c: V \rightarrow \mathbb{N}\) that assign to each cell the number of grains it contains. When a cell has too many grains, it topples and sends some of its grains to neighboring cells; this defines the dynamics of the system. Each cell \(u \in V\) is associated with a neighborhood \(\mathcal{N}_u \subseteq \mathbb{Z}^2 \backslash \{(0, 0)\}\). A cell is stable if it contains less than \(|\mathcal{N}_u|\) grains; otherwise, it is unstable and topples, sending one grain to each of its neighbors \(v = u + \delta\) where \(\delta \in \mathcal{N}_u\). We extend the notion of stability to configurations by saying that a configuration is stable if all its cells are stable. Formally, applying one parallel step of this rule to a configuration defines the following update function \(T\):

\[T(c)(u) = c(u) - |\mathcal{N}_u| H(c(u) - |\mathcal{N}_u|) + \sum_{v \in V} \mathcal{N}_v (u - v) H(c(v) - |\mathcal{N}_{v}|)\]

Figure 1: The von Neumann neighborhood (left) and the Moore neighborhood (right).
Figure 2: An example of stabilization in 3 steps with the von Neumann neighborhood.

Where \(H(x) := 1\) if \(x \geq 0\) and \(0\) if \(x<0\), is the Heaviside step function. Most works consider that all cells have the same neighborhood; we call such grids uniform. This neighborhood is typically assumed to span \(\mathbb{Z}^2\). We allow \(\mathcal{N}_u\) to be a multiset i.e., a toppling cell may send multiple grains to the same neighbor. Grids with multiset neighborhoods are called weighted (see Figure 5 left).

To simplify the study of uniform sandpiles, we introduce a sink vertex denoted \(s\), which never topples. Whenever a cell has neighbors outside of the grid boundaries, it sends the corresponding grains to \(s\). Likewise, any neighbors that would have sent grains from outside the grid are redirected to \(s\). Under this convention, each cell has as many out-neighbors as in-neighbors, so uniform grids can be assumed to be Eulerian.

Two uniform grids have been greatly studied in the literature [2], [5], [14]: the uniform grid with the von Neumann neighborhood, the four cardinal adjacent cells, and with the Moore neighborhood, the eight adjacent cells (Figure 1).

Dhar has shown that configurations on uniform grids with von Neumann or Moore neighborhoods can always be stabilized by applying \(T\) a polynomial number of times, and that a non-deterministic sequential application of topplings (one-by-one) does not impact the resulting stable configuration [14]. This result can be extended to any uniform grid: a configuration on a uniform grid can always be stabilized in a polynomial number of topplings (\(\#\text{grains} \cdot \ell^4\)). Figure 2 presents an example of stabilization.

2.2 Toppling prediction and crossings↩︎

We focus on the decision problem of predicting whether a given cell will topple during the stabilization of a configuration as formalized below. As non-uniform grid are not always stabilizable, and stabilization may not occur in polynomial time, we restrict this problem to uniform grids.

2.2.0.1 Input:

A configuration \(c\) on the uniform grid generated by \(\mathcal{N}\), and a target cell \(y \in V\).


2.2.0.2 Output:

Decide whether \(y\) topples during the stabilization of \(c\).

Moore and Nilsson [2] proved that PRED is P-complete for 3-dimensional sandpiles with the von Neumann or Moore neighborhoods. In contrast, for 1-dimensional sandpiles, the prediction problem is in NC(polylogarithmic time with a polynomial number of processors) for the von Neumann neighborhood.

To prove the P-completeness of 3-dimensional PRED, they use a reduction from the Monotone Circuit Value Problem. The circuit is embedded in a sandpile configuration using gadgets that implement, the OR and AND operations. These gadgets are connected by wires, which consist of sequences of stable cells holding a maximal number of grains. A true signal is represented as the chain reaction of toppling along a wire: when a cell topples, it destabilizes the next cell, thereby propagating the signal.

2.2.0.3 Input:

A Boolean circuit composed of input nodes, an output node, AND gates, and OR gates. A valuation \(v\) of the input gates.


2.2.0.4 Output:

Decide whether the circuit outputs true when evaluated under \(v\).

However, their construction does not apply for 2-dimensional sandpiles because the non-planarity of the circuits is required for P-completeness [15]. Moreover, Gajardo and Goles [5] showed that 2-dimensional uniform grids with von Neumann or Moore neighborhoods cannot implement signal crossings using toppling chains (and no other encoding of circuit is currently known). Formally, they proved that no crossing gate exists in 2-dimensional Moore or von Neumann grids. Intuitively, a crossing gate is a gadget that allows toppling wires to cross without interfering with each other.

Definition 1 (Crossing gate [5]). A crossing gate* can be from any direction, but, by symmetry and rotation, it suffices to consider the case where one wire runs from North to South and the other from West to East. For clarity, we will use theses directions for this definition.*

A crossing gate* is a stable configuration \(c\) with the following property. If a grain is added to a designated cell on the North edge (excluding the corners), a designated cell on the South edge topples, but no cell on the East edge topples. In this case, we say that \(c\) transports from North to South independently of the East. Similarly, \(c\) must transport from West to East independently of the South.*

A more precise definition can be found in [8]. When studying crossing gates, it is useful to consider the toppling graphs of the crossing gate, which represent the order in which topplings occur justifying that this parallel definition will also capture sequential dynamics. Figure 3 presents an example of a simple crossing gate with its two toppling graphs.

Definition 2 (Toppling graph [5]). The North-toppling graph* (resp. West-toppling graph) of a crossing gate \(c\) is the directed graph whose vertex set consists of all the cells that topple when a grain is added to the designated North (resp. West) side cell. There is a directed edge from \(u\) to \(v\) if and only of \(v\) is a neighbor of \(u\) (\(v - u \in \mathcal{N}_u\)) and \(v\) topples after \(u\).*

Figure 3: A neighborhood (left), a crossing gate (center) and its toppling graphs (right).

One important fact that justifies the previous definition is that, when a single grain is added to each cell along an edge, no cell topples more that once. Gajardo and Goles proved this fact for von Neumann and Moore neighborhoods, but the result holds for all Eulerian grid. To see why, consider the first cell to topple twice. It cannot be an interior cell, because initially it is stable and can receive at most \(|\mathcal{N}_u|\) grains if all its incoming neighbors have toppled. The designated cell initially receive one additional grain, but since it has an incoming edge from the sink \(s\), which never topples, it cannot topple twice either.

Gajardo and Goles [5] proved that intersections between the toppling graphs are useless and that crossing gates can always be constructed such that the North-toppling and West-toppling graphs have disjoint vertex sets. This result was later extended to Eulerian grids by Nguyen and Perrot [11].

In the next sections, we will present our contribution about the link between non-uniform and weighted crossing gates.

3 Trading primal non-uniformity for weighted uniformity↩︎

In this section, we present our main result: a primal non-uniform grid admits a crossing gate if and only if there exists a weighting of these neighborhoods that admits a crossing gate on a uniform grid.

Definition 3 (\(\mathcal{P}\)-primal non-uniform grid). Let \(\mathcal{P}\subseteq \mathbb{Z}^2\) be a finite set. A \(\mathcal{P}\)-primal non-uniform grid* is a grid in which, for every cell \(v\), the neighborhood \(\mathcal{N}_v\) satisfies \(|\mathcal{N}_v| = 1\) and \(\mathcal{N}_v \subseteq \mathcal{P}\). In other words, each cell has exactly one out-neighbor from \(\mathcal{P}\). The uniform grid with neighborhood \(\mathcal{P}\) is called \(\mathcal{P}\)-grid.*

3.0.0.1 Remark.

If \(|\mathcal{P}| = 1\), then the grid is uniform and the model is trivial. Hence, we are mainly interested in the case \(|\mathcal{P}| > 1\), which we simply call \(\mathcal{P}\)-primal grids.

The existence of a crossing gate on a \(\mathcal{P}\)-primal grid is closely related to the planarity of the \(\mathcal{P}\)-grid. Indeed, if there is a \(\mathcal{P}\)-primal grid that admits a crossing gate, as it transports grains from the North to the South, and from the West to the East distinctly, then the \(\mathcal{P}\)-grid is necessarily non-planar. Conversely, if a \(\mathcal{P}\)-grid is non-planar, we can use the directions that cross to create a crossing gate on a \(\mathcal{P}\)-primal grid. The fact that each cell has only one neighbor will ensure that the configuration transports grains independently. The last notion we need in order to state our theorem is that of a weighted neighborhood.

Definition 4 (Weighted \(\mathcal{P}\)-grid). We define a weighted \(\mathcal{P}\)-grid* as a uniform grid with neighborhood \(\mathcal{N}\), where \(\mathcal{N}\) is a multiset over \(\mathcal{P}\) (that is, elements of \(\mathcal{P}\) may appear multiple times), and every element of \(\mathcal{P}\) appears at least once in \(\mathcal{N}\), i.e., \(\mathcal{P}\subseteq \mathcal{N}\).*

Figure 4: A generic non-uniform crossing (left). The crossing after repeating the crossing directions (right).

Theorem 1. Let \(\mathcal{P}\subseteq \mathbb{Z}^2\) be a finite set. The following statements are equivalent:

  1. A \(\mathcal{P}\)-primal grid admits a crossing gate.

  2. There exists a weighted \(\mathcal{P}\)-grid that admits a crossing gate.

Proof. We first prove that (2)\(\implies\)(1) and then that (1)\(\implies\)(2).

3.0.0.2 (2)\(\implies\)(1)

We assume that there is a crossing gate \(c\) on a weighted \(\mathcal{P}\)-grid. Therefore, there exists a path in the North-toppling graph that transport grains from the North to the South, and analogously, there is a path from West to East in the West-graph. As uniform grids are Eulerian graphs, we can assume that these paths are disjoint [11]. Therefore, we can construct a crossing gate for a \(\mathcal{P}\)-primal grid by taking the directions given by the path, and taking an arbitrary out-neighbor from \(\mathcal{P}\) for all the other cells (they remain stable).

3.0.0.3 (1)\(\implies\)(2)

We assume that there is a crossing gate \(c\) on a \(\mathcal{P}\)-primal grid. If we make a naive conversion from the \(\mathcal{P}\)-primal grid to a \(\mathcal{P}\)-grid, we may trigger undesired topplings. However, we will show that by weighting well-chosen directions, we can construct a crossing gate.

As \(c\) is a crossing gate, we can consider a toppling path \(C_1\) from the North to the South and a path \(C_2\) from the West to the East. We can assume them disjoints. We know that these two paths must cross at some point. We consider \(U,V \in \mathcal{P}\) the directions that cross (Figure 4 left).

We proceed as follows. First, we want to remove the possible interactions between \(a, b\) and \(c, d\). We can repeat \(U\) and \(V\) to move \(a,b\) and \(c,d\) away such that no in/out-neighbor of both \(a\) and \(b\) is in \(c\) or \(d\) (Figure 4 right). If this created self-crossings of wires because the initial layout was spiraling, we trivially remove any extra loop.

Then, we will use the fact that at the crossing, the paths are “regular”. We remark that, edges from the repeated path \(U\) to the repeated path \(V\) (and conversly) cannot be done by the direction \(U\) nor \(B\). Therefore, by putting a big enough weight on directions \(U\) and \(V\), we can ensure that the toppling of the North path will not trigger the West path, and vice-versa. Only the directions \(U\) and \(V\) may interact and topple cells which guarantee the independence of the new crossing gate on the weighted \(\mathcal{P}\)-grid.

Finally, if one of the crossing direction is going in the “wrong direction”, e.g. an upward edge for the North to South wire, then we need to change \(c\) and \(d\) (or \(a,b\)) to glue it back to the sides (because of our definition of crossing). Because the repetition may move away \(c\) from the North side, we may need to change the direction of the crossing (e.g from South to North) to create the crossing gate. 0◻ ◻

Example 1. As the von Neumann neighborhood is planar, none of its weightings admit a crossing gate. However, the Moore neighborhood is non-planar and some of its weightings do admit a crossing gate, as shown in Figure 5.

Figure 5: A weighted Moore neighborhood (left) and a crossing gate (center) with its toppling graphs (right).

We see that the proof only considers crossing gates with a unique edge-crossing. This is because, as we can choose the weighting, we can increase the weights of the two crossing directions in order to make them independent of the other neighbors (as used in the proof). We will see in the next section that gates with more complicated crossing exist.

4 Intertwined crossing gates↩︎

Consider the neighborhood \(\mathcal{N}_i = \{(1,1), (-1,-1), (0,-1), (1,-1), (0,-2)\}\) (Figure 6). It admits a crossing gate (Figure 7). However, contrary to the previous section, the two wires cross with multiple steps. We argue that for every possible crossing gate on a uniform grid with neighborhood \(\mathcal{N}_i\), there will always be a cell in the middle of the crossing. Formally, we say that two edges cross if, by drawing segments between the cell center, the segments (including the center endpoints) intersect. We consider the end-extremity to be part of the seggment but not the start-extremity (to avoid counting the vertical edge twice).

For the proof of the next result, we use the following notation. Let \(a,b \in V\) be two cells, \(\mathcal{N}\) a neighborhood, \(d \in \mathcal{N}\) a direction, and \(c\) a crossing gate for the \(\mathcal{N}\)-grid with toppling graphs \(G_n\) and \(G_w\). We write \(a \stackrel{d}{\to} b\) to indicate that \(a + d = b\) and that \((a,b)\) is an edge of \(G_n\) or \(G_w\), depending on the context.

Lemma 1. For every crossing gate on a \(\mathcal{N}_i\)-grid, there is a path in the toppling graph from the North to the South that crosses the toppling graph from West to East at least twice.

Figure 6: Neighborhood \mathcal{N}_i with surrounding cells and direction names.
Figure 7: Neighborhood \mathcal{N}_i with an intertwined crossing gate.

Proof. We name the directions and cells as in Figure 6. We proceed by contradiction. Let us assume that there exists a crossing gate with exactly one pair of crossing edges. We assume that all cells in the North-toppling graph \(G_n\) contribute to the crossing (co-accessible from the South and accessible from the North). We also assume that \(G_n\) and \(G_w\) have disjoint vertex sets [11]. Let us consider a minimal \(h\) (for the distance from the North side) from the vertex set of \(G_n\) which has at least one incoming edge crossing \(G_w\), i.e., all the predecessors of \(h\) have no incoming crossing edge.

Claim. \(e\) belongs to the vertex set of \(G_w\).

As \(h\) topples, we do a case analysis on the incoming arc that crosses \(G_w\).

  • If \(j \stackrel{u}{\to} h\), the only crossing directions are \(e \stackrel{dd}{\to} k\), and \(g \stackrel{r}{\to} k\). Due the shape of \(\mathcal{N}_i\), cells will always topple to the South-East i.e., \(q(v) := v_x + v_y\) is non-decreasing (if the origin \((0, 0)\) is the North-West corner).

    Given that \(g\) is accessible from the West, there must exists a path of cells \(p_i\), from the West to \(g\). We have \(q(p_i) \leq q(g) < q(j)\). As \(j\) is accessible from the North, there is a path in \(G_n\) which must intersect \(p_i\) at some point, which contradicts the assumption on \(h\).

  • If \(e \stackrel{d}{\to} h\), there is no valid edge that could cross it.

  • If \(b \stackrel{dd}{\to} h\), all crossing directions pass through \(e\).

  • If \(d \stackrel{r}{\to} h\), the crossings directions are \(e \stackrel{dd}{\to} k\), \(g \stackrel{u}{\to} e\), and \(e \stackrel{l}{\to} g\), in all cases the claim on \(e\) holds.

  • If \(f \stackrel{l}{\to} h\), the crossings directions are \(e \stackrel{dd}{\to} k\) and \(e \stackrel{r}{\to} i\), in both cases the claim on \(e\) holds.

We conclude that the claim always holds. Because the two toppling graphs are disjoint, \(h\) must have two incoming arcs in \(G_n\) because it can receive one grain from \(e\). We now perform a case analysis on the incoming arcs of \(h\).

  • Directions \(j \stackrel{u}{\to} h\), \(e \stackrel{d}{\to} h\) are still not possible for the same reasons (minimality of \(h\) and no valid crossing).

  • If \(b \stackrel{dd}{\to} h\), then \(e\) must have two incoming edges because \(b \stackrel{d}{\to} e\). Therefore, there are two incoming edges that intersect \(b \stackrel{dd}{\to} h\).

  • Otherwise, \(d \stackrel{r}{\to} h\) and \(f \stackrel{l}{\to} h\), therefore, by arguments similar to the \(j \stackrel{u}{\to} h\) case, and because \(e\) is accessible and contributes to the crossing, it must cross \(G_n\) twice: \(d \stackrel{r}{\to} h\), then \(f \stackrel{l}{\to} h\) (by hypothesis, it cannot cross predecessors on \(h\)).

0◻ ◻

5 Counter-examples to general decomposition↩︎

As shown in Section 3, non-uniformity and weighting can be traded. However, as demonstrated in Section 4, this equivalence only captures simple crossings. We attempted to generalize the notion of primal-grid into a broader decomposition. This exploration led to the identification of counter-examples demonstrating that crossing gates are not easily composable. In this section we exhibit those counter-examples.

To generalize the previous definition of primal grids, we consider decompositions of arbitrary shape rather than restricting to primal directions. Let \(S\) be a set of (possibly weighted) neighborhoods, we are interested in the relation between non-uniform grid composed of neighborhoods of \(S\), and uniform grids whose neighborhoods are multisets on \(S\). Our results indicate that the existence of crossing gates in one setting does not imply their existence in the other, revealing fundamental differences between these grid constructions

Our techniques are applicable only to grids satisfying the following property: adding one on one edge, each cell topples at most once during stabilization. This property does not hold in general for non-uniform grids. To circumvent this limitation, in this section we consider a variant of the sandpile dynamics in which each cell is allowed to topple at most once.

Figure 8: Examples of neighborhoods admitting a non-uniform crossing gate but whose weighted grids does not

Example 2 (Figure 8). Consider \(S = \{\mathcal{N}_{a1}, \mathcal{N}_{a2}\}\). There is a crossing gate on a non-uniform grid composed of \(\mathcal{N}_{a1}\) and \(\mathcal{N}_{a2}\): one can use \(\mathcal{N}_{a1}\) to offset the y-coordinate parity, and then use \(\mathcal{N}_{a2}\) to cross without interference.

However, a \(\{\mathcal{N}_{a1}, \mathcal{N}_{a2}\}\) uniform grid (a grid whoose neighborhood is a linear combination of \(\mathcal{N}_{a1}\) and \(\mathcal{N}_{a2}\)) does not admit a crossing gate [8]. A uniform grid with weighted neighborhood \(\{\mathcal{N}_{a1}, \mathcal{N}_{a2}, \mathcal{N}_{a2}\}\) does admit a crossing gate, but it is not the case in general.

Example 3 (Figure 8). Consider \(S = \{\mathcal{N}_{b1}, \mathcal{N}_{b2}\}\), a non-uniform \(S\) grid admits a crossing, by a path of \(\mathcal{N}_{b1}\) crossing a path of \(\mathcal{N}_{b2}\). However, any uniform grid with neighborhood \(\mathcal{N}_{b1}^p \mathcal{N}_{b2}^q\) (\(p\) copies of \(\mathcal{N}_{b1}\) and \(q\) copies of \(\mathcal{N}_{b2}\)) does not admit a crossing gate.

Arguing by contradiction, suppose that such a crossing gate exists. As observed previously, the corresponding toppling graphs must cross at some point, and only the diagonal directions can cross. If \(p \neq q\), then independence of the toppling graphs is not verified because the toppling process on the heavier side necessarily triggers the toppling of the lighter one. On the other hand, Concha-Vega et al. [8] proved that the case \(p = q\) does not admit a crossing gate.

Figure 9: Examples of neighborhoods admitting a weighted crossing gate but whose non-uniform grids does not

Example 4 (Figure 9). The uniform grid with neighborhood \(\{\mathcal{N}_{c1}, \mathcal{N}_{c2}\}\) admits a crossing gate (for example a diagonal cross). On the other hand, any \(\{\mathcal{N}_{c1}, \mathcal{N}_{c2}\}\) non-uniform grid does not admit a crossing gate.

Arguing by contradiction, suppose that such a crossing gate exists. We assume again that the two topplings are disjoint. The only possible crossings are between the diagonal direction \(\mathcal{N}_{c2}\) and the 2-weighted direction in \(\mathcal{N}_{c1}\). Let us call \(j\) the out-neighbor according to diagonal direction \(\mathcal{N}_{c2}\) in this crossing. Then the direction \(\mathcal{N}_{c2}\) sends one grain to cell \(j\): this is an arc in one of the two topping graphs, and \(j\) has no other in-neighbor. However, cell \(j\) also receives one grain from the cell above, and this cell is in the other toppling graph, therefore contradicting disjointness because it topples \(j\).

6 Conclusion and perspectives↩︎

To conclude, in section 3, we established a characterization of weighted uniform crossing gates in terms of a simpler class of structures, which we call primal crossings. However, this characterization does not capture more complex crossings, like the intertwined crossings of section 4. Finally, in Section 5, we show that the above equivalence does not extend to more general settings, where the decomposition into simpler but not primal structures fails. We emphasize that Theorem 1 facilitates \({\fontfamily{cmss}\selectfont P}\)-completeness proofs, as the construction of the remaining components for reductions from CVP is typically straightforward.

While crossing gates are a central ingredient in proving P-completeness for cellular automata, their absence does not rule out P-completeness, since there may exist other ways of encoding signals than just creating chains of topplings or reductions may exist beyond chain-like toppling structures.

Moreover, even when the equivalence preserves the existence of crossing gate, it does not preserves the computational complexity: on primal grids, grain movement is highly restricted allowing efficient NC algorithms for the prediction problem. In contrast, weighted grids appear to support significantly richer dynamics and are natural candidates for P-completeness.

We leave open what we consider our Holy Grail: the complexity of prediction in 2-dimensional uniform sandpiles with von Neumann or Moore neighborhoods. More broadly, this work raises structural questions about crossing gates: in particular, it is unclear whether there exist families of grids requiring arbitrarily large numbers of crossing edges, or whether deciding the existence of a crossing gate is even decidable in general.

6.0.1 ↩︎

The authors thank projects ANR-24-CE48-7504 ALARICE and HORIZON-MSCA-2022-SE-01 101131549 ACANCOS.

6.0.2 ↩︎

The authors have no competing interests to declare.

References↩︎

[1]
P. Bak, C. Tang, and K. Wiesenfeld, “Self-organized criticality: An explanation of the 1/f noise,” Physical review letters, vol. 59, no. 4, p. 381, 1987.
[2]
C. Moore and M. Nilsson, “The computational complexity of sandpiles,” Journal of Statistical Physics, vol. 96, no. 1, pp. 205–224, 1999.
[3]
C. Mejia and J. Andres Montoya, Cellular Automata and Discrete Complex Systems“On the complexity of sandpile critical avalanches,” Theoretical Computer Science, vol. 412, no. 30, pp. 3964–3974, 2011.
[4]
P. B. Miltersen, “The computational complexity of one-dimensional sandpiles,” Theory of computing systems, vol. 41, no. 1, pp. 119–125, 2007.
[5]
A. Gajardo and E. Goles, “Crossing information in two-dimensional sandpiles,” Theoretical Computer Science, vol. 369, no. 1, pp. 463–469, 2006.
[6]
E. R. Banks, “Information processing and transmission in cellular automata,” 1971.
[7]
E. Goles, P. Montealegre, K. Perrot, and G. Theyssier, “On the complexity of two-dimensional signed majority cellular automata,” Journal of Computer and System Sciences, vol. 91, pp. 1–32, 2018.
[8]
P. Concha-Vega, E. Goles, P. Montealegre, and K. Perrot, “Sandpiles prediction and crossover on \(\mathbb{Z}^2\) within moore neighborhood,” Natural Computing, vol. 24, no. 1, pp. 29–66, 2025.
[9]
P. Concha-Vega, E. Goles, P. Montealegre, and M. Rı́os-Wilson, “On the complexity of stable and biased majority,” Mathematics, vol. 10, no. 18, p. 3408, 2022.
[10]
E. Formenti, E. Goles, and B. Martin, “Computational complexity of avalanches in the kadanoff sandpile model,” Fundamenta Informaticae, vol. 115, no. 1, pp. 107–124, 2012.
[11]
V.-H. Nguyen and K. Perrot, “Any Shape Can Ultimately Cross Information on Two-Dimensional Abelian Sandpile Models,” in Cellular Automata and Discrete Complex Systems, 2018, pp. 127–142.
[12]
A. Modanese and T. Worsch, “Embedding arbitrary boolean circuits into fungal automata,” Algorithmica, vol. 86, no. 7, pp. 2069–2091, 2024.
[13]
P. Concha-Vega and K. Perrot, “Timed prediction problem for sandpile models,” in International workshop on cellular automata and discrete complex systems, 2025, pp. 205–220.
[14]
D. Dhar, “Self-organized critical state of sandpile automaton models,” Physical Review Letters, vol. 64, no. 14, pp. 1613–1616, 1990.
[15]
V. Ramachandran and H. Yang, “An efficient parallel algorithm for the general planar monotone circuit value problem,” SIAM Journal on Computing, vol. 25, no. 2, pp. 312–339, 1996.