The Sokoban Random Walk: A Trapping Perspective

This paper investigates caging phenomena in Sokoban-type models where a random walker can push obstacles, revealing that survival probabilities exhibit distinct intermediate-time exponential decay and long-time stretched-exponential relaxation (with exponents of 1/3 in one dimension and 1/2 in two dimensions) consistent with classical trapping theories, alongside a nonmonotonic dependence of mean trap size on obstacle density.

Original authors: Prashant Singh, Eli Barkai, David A Kessler

Published 2026-02-24
📖 5 min read🧠 Deep dive

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 you are walking through a dense, foggy forest filled with giant boulders. In a classic physics experiment, you are a tiny ant. If you bump into a boulder, you stop immediately. You are "trapped." This is the classic "Ant in a Labyrinth" problem: the forest is static, and your fate is sealed the moment you hit a wall.

But in this new paper, the authors introduce a character named Sokoban.

Sokoban isn't just a tiny ant; Sokoban is a strong, determined hiker who can push the boulders out of the way. However, Sokoban has a limit: they can only push a few boulders before they get tired, or perhaps the boulders are too heavy to move further.

The paper asks a simple but profound question: If you can push the obstacles, does that mean you can escape forever? Or will you eventually trap yourself?

Here is the story of their findings, broken down into everyday concepts.

1. The Two Ways to Get Trapped

The researchers discovered that Sokoban gets trapped in two very different ways, depending on how crowded the forest is.

  • The "Pre-Existing Cage" (High Density): Imagine a forest so packed with boulders that there are almost no gaps. Here, the forest is already a maze. Even if you push a boulder, you just create a tiny hole, only to find another boulder right behind it. You are trapped because the environment was already a cage before you started walking.
  • The "Self-Made Cage" (Low Density): Now imagine a forest with plenty of space. You can walk freely for a long time. But here's the twist: You trap yourself. As you push boulders around to clear your path, you accidentally arrange them into a circle around yourself. You pushed the boulders into a perfect ring, sealing your own fate. You created your own prison.

2. The "Goldilocks" Density

The most surprising discovery is what happens when you change the density of the forest (how many boulders are there).

If you plot the size of the trap (how much space you are stuck in) against the number of boulders, you get a hump shape:

  • Too many boulders: You get trapped instantly in a tiny spot. (Small trap).
  • Too few boulders: You have so much space that you rarely arrange them into a cage. You wander for a long time, and when you finally get trapped, the cage is small because you didn't push many rocks. (Small trap).
  • Just right (The Sweet Spot): There is a specific density (about 55% full for the standard Sokoban) where the traps are massive. You have enough space to wander and push rocks around, but just enough rocks to eventually build a giant, complex cage around yourself.

It's like trying to build a fort with sand. If the beach is empty, you can't build anything. If it's a solid rock, you can't dig. But if the sand is just right, you can build a massive, intricate castle that eventually traps you inside.

3. The "Long Walk" vs. The "Short Walk"

The paper also looks at how long it takes to get trapped. They found two distinct "eras" of survival:

  • The Early Days (Intermediate Time): At the beginning, your chance of survival drops slowly. It's like walking through a room with a few chairs. You might trip, but you can push them aside. The math here is different from the classic "Ant" problem because you are actively changing the room.
  • The Long Haul (Late Time): If you survive for a very long time, the rules change. The paper proves that eventually, your survival probability drops in a very specific, predictable way (called a "stretched exponential").

The Big Surprise: Even though Sokoban can push rocks, and the Ant cannot, they both eventually get trapped at the same mathematical rate. It's as if, no matter how much you push, the universe eventually forces you into a cage in the exact same way. The ability to push changes how you get trapped, but not the ultimate speed at which you are doomed.

4. One Dimension vs. Two Dimensions

  • In a Line (1D): Imagine walking down a narrow hallway with boulders on the left and right. The math here is very clean. The researchers proved that no matter how many boulders you can push (1, 10, or 100), the long-term trap rate is always the same.
  • In a Field (2D): Imagine walking in a square field. This is much harder to calculate. The researchers used massive computer simulations to show that the same "hump" in trap size exists here too, and the long-term survival rate follows the same universal rules as the 1D case.

The Takeaway

This paper is about control vs. chaos.

We often think that if we can change our environment (push the rocks), we can avoid getting trapped. The Sokoban model shows that while we can delay the inevitable and change the shape of our prison, we cannot escape the fundamental laws of disorder.

In fact, our attempts to control our environment can sometimes backfire, leading us to build our own cages. Whether you are a robot pushing obstacles, a molecule moving through a cell, or a person navigating a crowded city, the math suggests that eventually, the chaos of the world will catch up with you, regardless of how hard you push.

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 →