← Latest papers
💻 computer science

Embedding Boolean Circuits into Fungal Sandpile Automata with Arbitrary Update Sequences

This paper completes the complexity classification of fungal sandpile automata by proving that the prediction problem is \P-complete for any update scheme containing at least one horizontal and one vertical diffusion step.

Original authors: Eric Goles, Augusto Modanese, Martín Ríos, Domingo Ruiz, Thomas Worsch

Published 2026-11-18
📖 5 min read🧠 Deep dive

Original authors: Eric Goles, Augusto Modanese, Martín Ríos, Domingo Ruiz, Thomas Worsch

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine a vast, flat grid of cells, each holding a small pile of sand. This is a classic model used by scientists to understand how particles move and settle in nature. When a pile grows too high, it becomes unstable and topples, sending grains of sand to its immediate neighbors. This simple rule, repeated across millions of cells, can create complex patterns and behaviors that are surprisingly hard to predict. For decades, researchers have struggled to determine the difficulty of forecasting what happens in these two-dimensional sandpiles when everything updates at once. While we know how to solve this for one-dimensional lines or very high-dimensional grids, the two-dimensional case has remained a stubborn mystery, sitting at the edge of what computers can efficiently calculate.

Recently, scientists introduced a variation of this model inspired by the way fungi grow and communicate. In these "fungal sandpiles," the rules for how sand moves change over time. Instead of always spreading to all four neighbors, the sand might spread only horizontally for a few moments, then only vertically, following a specific repeating pattern. This shifting direction mimics the opening and closing of tiny gates inside fungal cells. Previous work showed that if the pattern of movement is complex enough, predicting the outcome is as hard as the most difficult problems a computer can solve. However, a crucial question remained: does this difficulty persist even if the pattern of movement is very simple, containing just one horizontal step and one vertical step?

A team of researchers has now answered this question definitively. They proved that no matter how simple the repeating pattern is, as long as it includes both horizontal and vertical movements, predicting the future state of the fungal sandpile is computationally intractable. In the language of computer science, this means the problem is "P-complete." This classification indicates that while a solution exists, finding it efficiently in a parallel computing environment is likely impossible; the problem essentially requires a computer to follow a long, sequential chain of steps to get the right answer. The researchers did not just guess this; they constructed a rigorous mathematical proof showing that any logical circuit, no matter how complex, can be embedded into these sandpiles.

To reach this conclusion, the team had to overcome a significant hurdle. In earlier studies, the sandpile grid was divided into small, fixed blocks that acted like building bricks. These blocks worked well when the movement pattern was complex, but they fell apart when the pattern was simple. The researchers realized they needed a new way to organize the grid that could adapt to any pattern of movement. They invented a flexible structure they call "bridges." These are not physical structures but rather specific arrangements of sand grains that form a path between different parts of the grid. These bridges act as wires, carrying signals from one section to another. By carefully designing these bridges, the team showed that they could connect any two points on the grid, regardless of the specific sequence of horizontal and vertical moves.

Once these bridges were established, the researchers built a set of logical components, or "gadgets," on top of them. These gadgets function like the parts of an electronic circuit. They created devices that could duplicate a signal, merge two signals, or cross signals of different types without them interfering with each other. They also built switches that could turn a signal on or off based on the arrival of another signal, and diodes that forced signals to move in only one direction. Crucially, all these components were designed to work using the same underlying bridge system. This meant that the same logical circuit could be built into a sandpile that moved in a complex, long pattern or a very short, simple one, without changing the fundamental design of the circuit itself.

The final step was to show that these sandpile circuits could solve the same problems as standard computer circuits. The researchers demonstrated that they could take any logical problem, such as determining the output of a complex Boolean circuit, and translate it into an initial arrangement of sand grains. They proved that if the sandpile was allowed to evolve according to its rules, a specific cell would eventually light up with sand if and only if the answer to the logical problem was "yes." Because the problem of solving such circuits is known to be extremely difficult, this translation proved that predicting the sandpile is equally difficult.

This result completes a long line of inquiry into the complexity of sandpile models. It confirms that the difficulty of prediction in these systems does not depend on having a complicated set of rules. Even the simplest variation, where the sand moves horizontally once and vertically once in a repeating cycle, is enough to create a system that is computationally universal. The researchers' work provides a clear boundary: as soon as a sandpile model allows for movement in both directions, it gains the power to perform any calculation a computer can, making its future behavior impossible to shortcut. While this does not yet solve the mystery of the original, unchanging sandpile model, it offers a powerful new perspective. It suggests that the complexity arises from the interaction of direction and time, rather than the sheer number of rules, bringing scientists one step closer to understanding the limits of prediction in the physical world.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →