2D Torus — 20 × 20
trial step 0/2000
trials 0
met —
3D Torus — 20 × 20 × 20
trial step 0/2000
trials 0
met —
What You're Seeing
Each trial places two opinion lineages — walkers A (amber) and B (blue) — at opposite corners of their respective lattices. At each step both walk independently to a random neighbor. A meeting (same cell at the same time, flashing green) means the two lineages would coalesce: they share a common ancestor, and both cells would carry the same opinion from that point forward.
Consensus requires every pair of lineages to coalesce. On a 2D lattice, any two random walkers must eventually meet (Pólya recurrence). On an infinite 3D lattice they can wander indefinitely without meeting (transience) — so some pairs of lineages never coalesce, and consensus is not guaranteed.
The histogram tallies what fraction of trials end in a meeting within 2000 steps. Crank the speed slider to accumulate trials quickly.
% Trials Meeting Within 2000 Steps
Pólya's Theorem
Pólya (1921): Random walks on ℤd are recurrent for d ≤ 2 (meet w.p. 1) but transient for d ≥ 3 (positive escape probability).
Consensus time on a finite torus:
1D: O(N²)
2D: O(N log N)
3D: O(N)
3D converges faster on a finite lattice. But as N → ∞, 3D walkers wander indefinitely → the infinite-lattice 3D voter model does not reach consensus.
Note: even a 20×20×20 finite torus shows lower meeting rates than 2D; the gap grows with lattice size.
Connection to Consensus & Coalescing Lineages
In the voter model, tracing a cell's opinion ancestry backward in time produces a random walk through the lattice. Any two cells whose backward-time walks reach the same lattice site share a common ancestor — and carry the same opinion from that moment forward. Consensus requires all N lineages to coalesce to one ancestor, meaning every pair of lineages must eventually share a site.
This reduces "does the voter model reach consensus?" to "do any two independent random walks on this lattice eventually meet?" — exactly what Pólya's theorem answers. Walkers A and B above are two such lineages. In 2D they always meet (recurrence), so consensus is guaranteed. On the infinite 3D lattice, walkers have a nonzero probability of never meeting (transience), blocking consensus. The histogram accumulates this evidence trial by trial.
Reverse-Time Opinion Ancestry: Consensus Occurs When All Present-Day Lineages Converge to One Ancestor
Each colored line is one cell's opinion lineage traced backward in time (left = present, right = initial time 0). When two lines reach the same position they coalesce — only one path continues. The walkers A and B represent any two lineages; Pólya's theorem determines whether they always meet. By symmetry each of the N cells has probability 1/N of being the MRCA (most recent common ancestor) — the neutral drift fixation result.