My grandfather liked to ask a riddle over wine from the damigiana, the fat glass demijohn in a straw cage in his cellar. One unmarked jug holds eight liters of wine; two empty ones, also unmarked, hold five and three. A pour stops only when the source is empty or the target full, with no eyeballing. Split the wine four liters and four.
There are two direct ways to solve it, depending on your first pour (Figure 2). Pouring into the 5-liter jug first reaches (4, 4, 0) in seven pours; pouring into the 3-liter jug first takes eight. Already the puzzle previews the thread of this essay: two distinct histories, drawn as a graph of intermediate states, arriving at the same final state.
What stayed with me even longer is why any solution exists at all. Five and three share no common divisor larger than 1, so patient pouring can measure every whole number of liters from 0 to 8. Hand him jugs of 6 and 2 instead, and every pour moves an even amount; no cleverness reaches an odd liter. What a pouring game can reach is governed by the greatest common divisor (gcd) of the jugs: 1 for 5 and 3, and 2 for 6 and 2.
That same fact doubles as a labeling trick. Pour any amount away 5 liters at a time and record the remainder, then do the same 3 at a time. Seven liters gets the label (2, 1). The numbers 0 through 14 use each of the $5 \times 3 = 15$ possible labels once, so the pair uniquely names the amount. Jugs of 6 and 2 offer 12 pairs, yet only 6 ever turn up, because both remainders always share parity; 0 and 6 collide. Containers with no common divisor waste no labels, a rule written down in China more than fifteen centuries ago as the Chinese remainder theorem.
I am a statistical physicist by training, not a number theorist. For years my craft was computing how heat moves through crystals and disordered solids, where partition functions, harmonic vibrations, anharmonic collisions, and configurational entropy are everyday bench tools. Eventually I began hearing my grandfather's wine puzzle as a physics question about what numbers fail to share.
Follow that independence all the way to the primes, which share no common measure at all: multiply 2 by itself as often as you like and you will never land on a power of 3, 5, or any other prime. Point the tools of statistical mechanics at that spectrum, and you land one door down from Riemann's zeta function on a model whose singularities scatter across a band instead of lining up, yet still diffract like a crystal, cross into the critical strip, and obey an exact law. This is Part 1 of a two-part essay developed with multiple AI systems alongside my own calculations and code; the story starts with the famous neighbor next door.
Riemann's vertical line, and a neighbor that scatters
In 1859, Bernhard Riemann wrote down a function built from every positive integer and noticed something eerie about where it vanishes. Plot those zeros on a two-dimensional map of complex numbers, and beyond a few simple negative integers, every single zero appeared to fall on one vertical line. Proving that none of them ever drifts off that line became the Riemann hypothesis, the most famous open problem in mathematics.
The function behind that line starts from the simplest infinite series in arithmetic, one term per positive integer:
$$\zeta(s) = \frac{1}{1^s} + \frac{1}{2^s} + \frac{1}{3^s} + \cdots$$
For real $s > 1$ the series converges (at $s = 2$ it equals $\pi^2/6$). Let $s = \sigma + it$ be complex, plotted $\sigma$ units right and $t$ units up, where $i^2 = -1$: I call $\sigma = \operatorname{Re}\, s$ the real part and $t = \operatorname{Im}\, s$ the height. Drawn as arrows from the origin, complex numbers add tip to tail and multiply by multiplying lengths and adding angles; an arrow's length is written with bars, as in $|\zeta|$. The series itself converges only for $\sigma > 1$, yet the function extends uniquely across the rest of the plane (except for a pole at $s = 1$). Beyond the trivial zeros at $-2, -4, -6, \ldots$, every known zero lies on the single vertical line $\operatorname{Re}\, s = \tfrac12$, called the critical line.
For more than a century, progress meant proving ever larger fractions of nontrivial zeros lie on that line: G. H. Hardy showed infinitely many in 1914, Atle Selberg a positive share in 1942, Norman Levinson more than a third in 1974, Brian Conrey more than two fifths in 1989. By summer 2026 the published record stood at 41.7 percent.
(Updated December 2026.) In autumn 2026, two announcements changed that picture. On 10 August, Anthropic announced that a research model had raised the proven share to 67.2 percent, validated by Levent Alpöge and Ralph Furman alongside Conrey and Dan Goldston and formally checked in Lean. On 20 November, Levent Alpöge released a formal Lean 4 proof of the full Riemann hypothesis (and the generalized Riemann hypothesis for Dirichlet $L$-functions), developed with AI assistance and spanning roughly 17.4 million lines. One day later, the Lean FRO and Mathlib Initiative confirmed that the codebase compiles cleanly under Lean's kernel and independent checkers against Mathlib's exact statement using standard axioms; by 25 November, Luke Sernau had compressed it to around 300,000 lines in grh-lean. What still does not exist is a human-readable narrative proof, full mathematical understanding of the argument, or traditional peer-reviewed publication (the Clay prize still requires publication and two years of community scrutiny). As a human-understood theorem, the line remains open territory.
Nothing below depends on how that unfolds. My own lens is strictly equilibrium statistical mechanics: partition functions, configurational entropy, limiting temperatures, and complex-temperature singularities. Throughout this project I used multiple AI systems for drafting, symbolic exploration, numerical experiments, and checks; every theorem and number below was verified directly and reproduces from public code.
The relative of zeta at the center of this post keeps only the prime terms:
$$P(s) = \sum_p \frac{1}{p^s} = \frac{1}{2^s} + \frac{1}{3^s} + \frac{1}{5^s} + \cdots$$
This is the prime zeta function. Instead of asking where $P(s)$ vanishes, I ask where it equals one quarter, $P(s) = \tfrac14$. Those solutions are the zeros of $P(s) - \tfrac14$, and the next section shows why the quarter is forced by physics: it is the exact critical threshold of an interacting statistical-mechanics model of multiplication. Figure 4 shows my census: all 595 solutions inside the certified box $\operatorname{Re}\, s \in [1.26, 2.72]$ and height $t \in [0.3, 5000]$.
When I first plotted those 595 points, my stomach sank. Every one was pinned to fifteen digits, and their real parts wandered from 1.2615 to 2.5679 with no line anywhere in sight. It took me days to stop mourning the missing line and notice what was hiding inside the scatter: a nearly steady vertical rhythm, roughly one point every 9.06 units of height, plus an exact density formula that predicts 594 points where the census finds 595. Even better, once you compute the diffraction pattern of those 595 heights, the integers themselves light up like a quasicrystal.
Crystals, glasses, and multiplication before evaluation
The quarter falls out of counting assembly histories, and those start with a simple pause: leave $2 \cdot 3 \cdot 5$ unevaluated and remember how 30 was built. Multiplication joins two factors at a time, so building 30 from its prime leaves requires two independent choices: the left-to-right order of 2, 3, and 5 (six orders) and the planar tree shape, $(2 \cdot 3) \cdot 5$ or $2 \cdot (3 \cdot 5)$ (two shapes). That gives twelve planar multiplication trees, all evaluating to the same integer, 30.
Anyone who has studied heat in solids recognizes this split immediately: it is the difference between a crystal and a glass. In a harmonic crystal, vibrations live in clean, independent normal modes with zero residual configurational entropy. In a glass, the same atoms pack into exponentially many microscopic arrangements behind a single macroscopic reading. Here 30 is the macrostate, and its twelve assembly trees are its microstates. Coarse-grain along two independent axes and four levels appear: forget parenthesization (impose associativity) and the twelve trees collapse to six ordered factorizations; forget left-to-right order at every fork instead (impose commutativity while keeping grouping) and they collapse to three unordered binary trees (pair 2 with 3, 2 with 5, or 3 with 5 first); forget both and only the bare integer 30 survives. From statistical mechanics, the Fundamental Theorem of Arithmetic says that this fully coarse-grained harmonic level has zero residual configurational entropy.
Ludwig Boltzmann gave the measure of hidden arrangements in 1877: $S = k \log W$, with $W$ the microstate count. The formula is carved above his bust in Vienna's Central Cemetery (Figure 6), placed there in 1933 after experiments finally vindicated the atomic picture he spent his last years defending.
Measured in bits (base-2 logarithms), twelve histories hide $\log_2 12 \approx 3.6$ bits: 2.6 bits with prime order alone kept, 1.6 bits with unordered binary trees alone kept, and 0 bits as a bare integer. Here is how rapidly configurational entropy grows across small integers:
| number | built from | histories | entropy |
|---|---|---|---|
| 7 | a prime | 1 | 0 bits |
| 6 | $2 \cdot 3$ | 2 | 1.0 |
| 12 | $2^2 \cdot 3$ | 6 | 2.6 |
| 30 | $2 \cdot 3 \cdot 5$ | 12 | 3.6 |
| 64 | $2^6$ | 42 | 5.4 |
| 210 | $2 \cdot 3 \cdot 5 \cdot 7$ | 120 | 6.9 |
| 144 | $2^4 \cdot 3^2$ | 630 | 9.3 |
| 1024 | $2^{10}$ | 4862 | 12.2 |
Primes carry zero bits: seeing 7 leaves nothing hidden. The 42 histories of $64 = 2^6$ come purely from tree shape (the fifth Catalan number). Notice 144 in that table as well; its unordered tree count is where this project caught an error in a reference encyclopedia. Figure 7 plots the entropy of every integer up to 2048.
If branching trees still feel abstract, lay the same idea flat on a table as wooden tiles. Draw a product $r \times c = n$ as a rectangular block $(r, c)_n$ of $r$ rows and $c$ columns, and allow just two workshop moves: a horizontal join $+$ gluing two equal-height blocks side by side, and a quarter-turn transpose $T$ swapping rows and columns, $(r, c)_n^T = (c, r)_n$. You never even need a separate vertical join: turn both blocks on their side, glue them horizontally, and turn the result back as $(A^T + B^T)^T$.
Watch four unequal tiles build a $5 \times 6$ rectangle of area 30: $(2, 3)_6$, $(3, 4)_{12}$, $(2, 1)_2$, and $(2, 5)_{10}$. Flip the $2 \times 3$ tile so its height matches $3 \times 4$, forming a top strip of width $2 + 4 = 6$; glue the bottom pair of height 2 into a matching width $1 + 5 = 6$; then stack the two strips even though their inner vertical seams never line up (Figure 8).
In chip floorplanning these nested drawings are called slicing trees (introduced by Ralph Otten in 1982). Stipulate that two consecutive flips cancel, $(A^T)^T = A$, and every area $n$ has a finite count of distinct assembly histories $g_{\mathrm{slice}}^{\mathrm{unit}}(n)$ built from unit squares (beginning $1, 2, 4, 12, 28, 100, \ldots$). That tiling count isolates the primes by pure geometry: for every $n \ge 2$, $g_{\mathrm{slice}}^{\mathrm{unit}}(n) \ge 2 C_{n-1}$, with equality if and only if $n$ is prime. A prime area can never build anything wider than a one-dimensional strip ($1 \times p$ or $p \times 1$), whereas every composite opens genuine two-dimensional rooms. Part 2 picks up what those seams remember; here, we first need a way to weigh all integers at once.
Four gases from one prime sum
To weigh all integers simultaneously, statistical mechanics assigns each state an energy that adds when subsystems combine. For numbers, the quantity that adds under multiplication is the logarithm, $\log(2 \cdot 3) = \log 2 + \log 3$, which is why slide rules multiply by laying lengths end to end (Figure 9).
From here on, $\log$ denotes the natural logarithm ($e^{\log n} = n$). Give integer $n$ energy $E = \log n$. At inverse temperature $\beta = (kT)^{-1}$ (setting Boltzmann's constant $k = 1$ so $\beta = 1/T$), each microstate carries Boltzmann weight $e^{-\beta E}$. Putting our complex variable $s$ in the role of $\beta$, every history of $n$ receives weight $e^{-s \log n} = n^{-s}$, giving the canonical partition function
$$Z(s) = \sum_n \frac{g(n)}{n^s} = \sum_n e^{S(n) - s \log n},$$
where $g(n)$ counts the microstates over $n$ and $S(n) = \log g(n)$ is its configurational entropy. Energy favors small integers, entropy favors composites with many histories, and $s$ sets the exchange rate between them.
At the harmonic bottom level (prime multisets, forgetting both order and nesting), unique factorization gives $g(n) = 1$, so $Z(s)$ is Riemann's zeta function. Including the vacuum state $n = 1$, Euler's product factors the sum into one channel per prime:
$$\zeta(s) = \prod_p \frac{1}{1 - p^{-s}}$$
Expanding each factor as $1 + p^{-s} + p^{-2s} + \cdots$ and multiplying out hits every positive integer once. A condensed-matter physicist recognizes this on sight: it is word for word the partition function of a non-interacting harmonic Bose gas whose normal modes are the primes, with mode energies $\varepsilon_p = \log p$. The exponent of $p$ is the occupation number of mode $p$, and its thermal average is $1/(p^s - 1) = 1/(e^{\beta \varepsilon_p} - 1)$, Planck's formula for photons and harmonic crystal phonons. Bernard Julia named this the free Riemann gas in 1990 (alongside Donald Spector and Bakas and Bowick). Having spent years computing phonon heat transport in crystals, where this exact product appears with $\hbar\omega$ in place of $\log p$, I knew the formula long before meeting it in number theory.
Euler's product works because harmonic modes do not interact and Bose statistics sorts them: $2 \cdot 2 \cdot 3$, $2 \cdot 3 \cdot 2$, and $3 \cdot 2 \cdot 2$ collapse into the single cell for 12.
Now stop sorting, so $2 \cdot 3$ and $3 \cdot 2$ count as distinct states (distinguishable Boltzmann statistics). A history is an ordered queue of primes of any length: length-1 queues sum to $P(s) = \sum_p p^{-s}$, length-2 to $P(s)^2$, and all lengths together (including the empty state $n = 1$ for direct comparison with $\zeta$; omitting $n = 1$ gives $P/(1 - P)$) sum to $1/(1 - P)$. Set it beside Euler's product:
$$\prod_p \frac{1}{1 - p^{-s}} \qquad \text{and} \qquad \frac{1}{1 - \sum_p p^{-s}}$$
The ingredients are identical; only the place of the sum has moved. On the left, each prime runs in an independent harmonic channel; on the right, all modes queue together. Expanded over integers, the right side begins $1 + 2^{-s} + 3^{-s} + 4^{-s} + 5^{-s} + 2 \cdot 6^{-s} + \cdots$, with 6 counted twice. It can never factor back into a product over primes: an Euler product demands counts that multiply across coprime integers, whereas 2 and 3 have count 1 while $6 = 2 \cdot 3$ has count 2. Mixing prime factors breaks multiplicativity and destroys the Euler product.
At the top level are the full planar histories, the tree gas. In a real crystal, thermal conductivity is finite only because anharmonic three-phonon cubic vertices couple modes together, merging two modes into one while conserving energy ($\varepsilon_1 + \varepsilon_2 = \varepsilon_3$). Switching on that exact energy-conserving binary merge on the prime spectrum turns each composite into either a bare single-particle mode or an ordered cubic-vertex merge of two smaller trees. Because alternatives add weights and merging trees adds energies (multiplying Boltzmann weights, $30^{-s} = 6^{-s} \times 5^{-s}$), the tree gas obeys a single tree-level Dyson-Schwinger (or statistical-bootstrap) self-consistency equation:
$$Z_T(s) = P(s) + Z_T(s)^2$$
Picking the physical branch that vanishes at low temperature ($s \to \infty$) gives
$$Z_T(s) = \frac{1 - \sqrt{1 - 4P(s)}}{2}.$$
That square root hits a singularity where $1 - 4P(s) = 0$, or $P(s) = \tfrac14$. That is where the quarter comes from. On the real axis, $P(\sigma)$ falls strictly from $\infty$ at $\sigma = 1$ to $0$ as $\sigma \to \infty$, crossing $\tfrac14$ once at $\sigma^* = 2.5973851271346716\ldots$, where the partition function converges to the exact finite value $Z_T(\sigma^*) = \tfrac12$.
All four corners of the coarse-graining square are exact functionals of $P$:
| what is kept | partition function | critical inverse temperature |
|---|---|---|
| bare integers (harmonic Bose) | $\zeta(s) = \exp\bigl(P(s) + \tfrac12 P(2s) + \tfrac13 P(3s) + \cdots\bigr)$ | $s = 1$ (simple pole) |
| prime order (Boltzmann words) | $P(s)/(1 - P(s))$ | $P = 1$, at $s = 1.3994$ (simple pole) |
| unordered cubic trees | $Z_B = 1 - \sqrt{1 - 2P(s) - Z_B(2s)}$ | $s = 1.9885$ (branch point, $Z_B = 1$) |
| full planar trees | $\tfrac12\bigl(1 - \sqrt{1 - 4P(s)}\bigr)$ | $P = \tfrac14$, at $s = 2.5974$ (branch point, $Z_T = \tfrac12$) |
Notice how differently the four corners behave as you heat them toward their boiling point. The two history-forgetting gases hit simple poles: their partition functions diverge, with internal energy blowing up as $U(\beta) \sim (\beta - \beta_H)^{-1}$ and heat capacity as $C(\beta) \sim (\beta - \beta_H)^{-2}$. The two cubic-tree gases behave differently: their partition sums stay finite right up to the wall ($Z_B = 1$, $Z_T = \tfrac12$), while their internal energy and heat capacity spike with softer branched-polymer cusp exponents, $U(\beta) \sim (\beta - \beta_H)^{-1/2}$ and $C(\beta) \sim (\beta - \beta_H)^{-3/2}$.
That square-root cusp is an old friend in theoretical physics: it is the exact universality class of planar diagrams in the Gaussian matrix model and of Rolf Hagedorn's 1965 limiting temperature of hadrons. Every layer of remembered configurational entropy lowers the temperature $T_H = 1/\beta_H$ at which entropy overwhelms energy: from $1$ for bare integers down to $0.715$, $0.503$, and finally $0.385$ for full planar trees.
The math, for those who want it
Let $\Omega(n)$ be the total number of prime factors of $n$ counted with multiplicity, and $a_1, a_2, \ldots$ their exponents. There are $\Omega!/(a_1!\, a_2! \cdots)$ prime orderings and $C_{\Omega - 1} = \tfrac{1}{\Omega}\binom{2\Omega - 2}{\Omega - 1}$ planar binary tree shapes (Catalan numbers). Their product gives $g_T(n)$: for $12 = 2^2 \cdot 3$, $3 \times 2 = 6$. Expanding the square root recovers $Z_T(s) = \sum_{k \ge 1} C_{k-1} P(s)^k$.
Draw a microstate at random with Gibbs probability $n^{-s}/Z(s)$. Its Shannon entropy $H$ satisfies $\log Z(s) = H - s\,\langle \log n \rangle$: log-partition function equals entropy minus inverse temperature times average energy.
Dividing $Z_T = P + Z_T^2$ by $Z_T$ gives $1 = P/Z_T + Z_T$: a Gibbs-sampled tree is a Galton-Watson branching process in which each node independently terminates as a prime leaf (probability $P/Z_T$) or splits into two subtrees (probability $Z_T$). At $P(\sigma^*) = \tfrac14$, both probabilities reach $\tfrac12$, each fork produces one expected child fork, and the mean tree size blows up while $Z_T(\sigma^*) = \tfrac12$ stays finite. By Delange's Tauberian theorem, that square-root cusp yields the exact cumulative state count $\sum_{n \le x} g_T(n) \sim c_T\, x^{\sigma^*} (\log x)^{-3/2}$ with $c_T = \sqrt{|P'(\sigma^*)|}/(2\sqrt{\pi}\,\sigma^*) \approx 0.05209$ (and $c_B \approx 0.1518$ for unordered trees at $\sigma_B \approx 1.9885$).
In the complex temperature plane right of $\operatorname{Re}\, s = 1$, $Z_T(s) = \tfrac12(1 - \sqrt{1 - 4P(s)})$ remains analytic everywhere except at square-root branch points where $P(s) = \tfrac14$ (zeros of the discriminant $1 - 4P$, analogous to Fisher and Yang-Lee edge singularities). Searching the literature turned up vast work on $\zeta$'s zeros and a small literature on the zeros of $P(s)$ itself (including a 2025 paper by Belovas, Čepaitytė, and Sabaliauskas), yet no study of the level set $P(s) = \tfrac14$.
The band and the clocks
The right wall of the cloud in Figure 4 is exact. On the real axis every arrow $p^{-\sigma}$ points right, so $P(\sigma)$ is the maximum size $|P(\sigma + it)|$ can reach along that vertical line. Right of $\sigma^* = 2.5974\ldots$ even perfect alignment falls short of $\tfrac14$, and even on $\operatorname{Re}\, s = \sigma^*$ itself, three primes ($2, 3, 5$) can never align simultaneously for $t \ne 0$. The rightmost branch point in the census falls at $\operatorname{Re}\, s = 2.5679$, just inside the wall.
To the left there is no wall. Combining Kronecker's theorem with Rouché's theorem proves that the real parts of solutions to $P(s) = \tfrac14$ are dense across the entire interval $[1, \sigma^*]$, accumulating at every point down to $\operatorname{Re}\, s = 1$. Why does $\zeta(s)$ have no zeros right of 1 while $Z_T$ is peppered with branch points there? Because Euler's product writes $\zeta(s)$ as an exponential $\exp(\sum P(ks)/k)$, which never vanishes; removing the Euler product replaces the exponential with a square root whose discriminant $1 - 4P(s)$ has no mirror symmetry like $\zeta$'s functional equation. No vertical line inside $(1, \sigma^*)$ is special. To see the hidden law inside that scatter, listen to the clocks.
Fix an inverse temperature $\sigma > 1$ and climb vertically in height $t$. Each prime contributes $p^{-\sigma - it} = p^{-\sigma} e^{-it \log p}$: a clock hand of fixed length $p^{-\sigma}$ turning clockwise at angular frequency $\varepsilon_p = \log p$ radians per unit of time $t$. Under this Wick rotation ($s = \sigma + it$), $P(\sigma + it)/P(\sigma)$ is the single-particle thermal survival amplitude (or Loschmidt amplitude) of the prime spectrum: $\sigma$ sets the Boltzmann weights and $t$ evolves the quantum phases in real time. Chain the prime hands tip to tail from the anchor $-\tfrac14$; the tip lies at $P(\sigma + it) - \tfrac14$, and a branch point occurs whenever the tip hits the origin.
The 2-hand is both longest and slowest, making one full revolution every $2\pi / \log 2 \approx 9.065$ units of height (Figure 12, left). Larger primes are shorter and faster. Unlike a periodic crystal whose commensurable frequencies generate exact temporal revivals, this assembly never repeats (closer to an incommensurate quasicrystal). If the 2-hand and 3-hand ever returned together, positive integers $a, b$ would satisfy $a \log 3 = b \log 2$, or $3^a = 2^b$, impossible because powers of 2 are even and powers of 3 are odd. Unique factorization extends this to every prime at once: no nontrivial integer relation links $\log 2, \log 3, \log 5, \ldots$, so no arrangement ever repeats.
Yet non-repetition obeys exact ergodic statistics. Strobe the 3-hand once every turn of the 2-hand, every 9.065 units of height (Figure 12, right). Each flash finds the 3-hand $\log 3 / \log 2 \approx 1.585$ turns further on. The twelfth flash nearly closes the loop ($3^{12} = 531{,}441 \approx 524{,}288 = 2^{19}$, the musician's Pythagorean comma), landing 2 percent past the start. None ever lands exactly on it, and by Hermann Weyl's equidistribution theorem, hands with rationally independent speeds cover their multi-dimensional torus uniformly, so long-run time averages equal probabilistic averages over independent random angles.
Weyl's theorem brought me back to my grandfather's cellar. Five and three sharing no common divisor let a 3-step walk visit every slot on a 5-mark dial without collision. The primes' speeds share no common measure at all, producing rhythms that never repeat and yet carry exact statistics. At his own table he poured by eye, breaking his riddle's rules; no two pours matched, and none was careless.
The thermal reading: softmax and attention
Before using those clocks to count branch points, pause on a simpler reading of the exact same exponential sum that now fills my workday. After leaving crystal thermal transport, I moved to leading an AI team, and the core formula inside every transformer is softmax. When a transformer scores earlier tokens against the current query, it computes a match score for each candidate, exponentiates every score, and divides by the sum of those exponentials to form attention weights. That is the Boltzmann distribution directly: scores are sign-flipped energies, the normalizing denominator is a partition function, and the standard $1/\sqrt{d}$ scaling factor (with head dimension $d$) plays the inverse temperature $\beta = 1/\sqrt{d}$.
Hand softmax the primes 2, 3, 5, and 7 with their energies $\log p$ and inverse temperature $\sigma$, the clock shop's own dial. The unnormalized weights are $p^{-\sigma}$, and the denominator is the four-prime truncation $P_4(\sigma)$. At $\sigma = 1.30$ the weights are 47.8, 28.2, 14.5, and 9.4 percent: warm attention where every prime gets heard. Cool the dial to $\sigma = 2.8$ and the prime 2 claims 70 percent; cool further and it absorbs nearly everything. Call a candidate dominant when its weight beats all rivals combined.
The same match, for rates of change
In statistical mechanics, the free energy $F = -\tfrac{1}{\beta} \log Z$ generates every mode's mean occupation by differentiating with respect to that mode's energy. For the harmonic Riemann gas ($\beta = s$, $F = -\tfrac{1}{s}\log \zeta$), differentiating with respect to $\varepsilon_p = \log p$ returns Planck's occupation $1/(p^s - 1)$. In a transformer, the corresponding potential is $\tfrac{1}{\beta}\operatorname{logsumexp}(\beta s_i)$ (a sign-flipped free energy of the scaled match scores $\beta s_i$); differentiating with respect to $s_i$ returns the exact softmax attention weight for token $i$. Softmax distributes one unit of probability across candidates while a Bose gas permits arbitrary occupation per mode, and a transformer re-tunes its spectrum on every query whereas arithmetic's spectrum is quenched at $\log p$.
A second structural parallel concerns superposition. Transformers pack more features than vector dimensions by assigning each feature a quasi-orthogonal direction vector, summing them into one vector, and decoding by projection. That decoding is noisy: when I packed 200 integer counts (each 0, 1, or 2) into 64 dimensions with random unit vectors, recovered values missed by roughly 2 on average (and up to 6), and after rounding to $\{0, 1, 2\}$, fewer than one in five (16.3 percent) came back exact because directions interfere.
The integers run the analogous superposition inside one scalar with zero interference: $\log n = \sum a_p \log p$ packs the exponents $a_p$ along the basis $\log 2, \log 3, \log 5, \ldots$, and unique factorization guarantees lossless decoding (the encoding Gödel used to pack formulas into numbers, at the steep practical price of exponential bit growth: $(1, 2, 4, 6)$ already becomes $2^1 \cdot 3^2 \cdot 5^4 \cdot 7^6 = 1{,}323{,}551{,}250$). Nothing inside a transformer knows a prime; this is a parallel of form, and the idea of one dominant term taking over an exponential sum is the exact bridge to counting our branch points.
The statistical reading: an exact formula for disorder
Stand on the vertical line $\operatorname{Re}\, s = \sigma$ (with $\sigma > 1$) and watch the tip of $P(\sigma + it) - \tfrac14$ as $t$ climbs from 0 to $T$. By the argument principle of complex analysis, comparing your line with a far-right line past $\sigma^*$ (where the hands are too short to circle the origin) implies that every net clockwise lap the tip makes around the origin books one solution of $P(s) = \tfrac14$ to the right of your line. Over a long climb, the horizontal caps at $0$ and $T$ fade away, so asymptotic branch-point density equals the tip's average winding rate in laps per unit height.
Move any prime hand $p$ to the end of the chain. Whenever the $p$-hand is strictly longer than the anchor $-\tfrac14$ plus the coherent vector sum of all other hands,
$$\left|P(\sigma + it) - p^{-\sigma - it} - \tfrac14\right| < p^{-\sigma},$$
the remaining chain cannot pull the tip back across the origin, so the $p$-hand drags the tip around at its own speed $\log p / 2\pi$ laps per unit height. That is softmax dominance upgraded to complex arrows: rival hands partly cancel one another, occasionally two hands dominate at once, and sometimes none does.
By Weyl's equidistribution theorem, generalized to infinitely many frequencies by Børge Jessen and Hans Tornehave in 1945 (building on Harald Bohr and Hermann Weyl's mean-motion theory), the long-run share of time during which the $p$-hand dominates equals a static probability $q_p(\sigma)$: pick every prime's phase angle independently and uniformly on the circle and measure how often the $p$-hand outreaches the anchored sum of the rest. Differentiating the Jensen function gives the exact density of branch points right of $\operatorname{Re}\, s = \sigma$:
$$D(\sigma) = \frac{1}{2\pi} \sum_p (\log p)\, q_p(\sigma).$$
Every prime contributes its rotation rate in laps per unit height, $\log p / 2\pi$, weighted by its dominance share $q_p(\sigma)$. Nothing else survives the averaging.
At $\sigma = 1.30$, the dominance shares come out $q_2 = 0.623$, $q_3 = 0.148$, $q_5 = 0.042$, $q_7 = 0.017$: the 2-hand rules five eighths of the time, while faster primes steal turns whenever the rest cancels near the origin. Giving the 2-hand permanent control predicts $\log 2 / 2\pi \approx 0.1103$ branch points per unit height (one every 9.065 units). The true density at $\sigma = 1.30$ is $D(1.30) = 0.1162$, five percent higher because every stolen turn by a faster prime winds in extra laps. Sliding left brings more modes into play: $D(1.26) = 0.1188$, $D(1.10) = 0.1314$, $D(1.05) = 0.1372$, reaching the finite total density $D(1) = 0.1436$ at the boundary (pinned across four independent Monte Carlo runs of 1.5 million samples each to standard deviation 0.0001), roughly one branch point every seven units of height across $\operatorname{Re}\, s > 1$.
Now test the theorem against the census. Inside the certified box $\operatorname{Re}\, s \in [1.26, 2.72]$ up to height $T = 5000$, the formula predicts $5000 \times D(1.26) = 594.2$ branch points, where the census locates 595 (0.14 percent difference; for $\operatorname{Re}\, s \ge 1.30$, 583 observed against 581.2 predicted). Figure 16 plots the running census along the predicted slope, with mean gap 8.39 units of height against the 2-hand's 9.065 beat. Unlike Riemann's zeros, which grow logarithmically denser as $\log(T/2\pi)/(2\pi)$, the tree branch points hold a constant asymptotic density.
One fact does both jobs. Unique factorization eliminates every integer relation among $\log 2, \log 3, \log 5, \ldots$. That absence scatters the branch points off every line, because the clocks never lock into a period; and that exact same absence forces them to equidistribute, writing the exact density law for the scatter.
Quasicrystal diffraction, the critical strip, and 144
A condensed-matter physicist handed 595 positions along a line reaches for two lab instruments immediately: a ruler for nearest-neighbor gaps, and a diffraction beam.
Start with the gaps (Figure 17, bottom). In statistical physics, level spacings usually land near one of two poles: uncorrelated Poisson dust (integrable systems, where 39.3 percent of gaps fall below half the mean and the coefficient of variation is 1) or the Gaussian Unitary Ensemble (GUE, the quantum-chaos law conjectured for Riemann's zeros since Hugh Montgomery's 1973 theorem, where nearby levels repel one another, leaving 11.2 percent below half the mean and coefficient of variation 0.422). Our 595 branch points belong to neither camp. At short range they are far more regular than both: coefficient of variation 0.259, only 8.1 percent of gaps below half the mean, and nearly nine gaps in ten clustered within 20 percent of the 2-hand's 9.065 beat. Over wider windows, the number variance $\Sigma^2(L)$ stays tighter than GUE at $L = 1, 2$ ($0.20, 0.27$ against $0.34, 0.42$) before drifting mildly above GUE at $L = 5, 10, 20$ ($0.57, 0.70, 1.06$ against $0.51, 0.58, 0.65$), largely because points meandering across our left box cutoff $\operatorname{Re}\, s = 1.26$ add slow edge fluctuations.
Then I aimed the diffraction beam, computing the one-dimensional static structure factor $S(k) = \frac{1}{N}\bigl|\sum_{j=1}^N e^{i k t_j}\bigr|^2$, and the result surprised me immediately (Figure 17, top).
An uncorrelated gas gives a flat floor ($S = 1$); quantum chaos gives a smooth linear ramp. Our 595 heights produced sharp Bragg spikes scaling linearly with sample size (doubling the window from $T < 2500$ to $T < 5000$ doubles every peak height within 2 percent) above a deeply quiet small-$k$ floor (mean 0.082 on $k \in [0.02, 0.25]$). In materials physics, that is the unmistakable X-ray fingerprint of a one-dimensional quasicrystal.
Even stranger is which wavenumbers light up. By Riemann's explicit formula, the diffraction pattern of Riemann's zeros rings exclusively at prime powers $\log(p^m)$, leaving composite integers like $\log 6$, $\log 12$, and $\log 24$ dark, because Euler's product never mixes distinct primes. In our tree gas, the brightest spikes after $\log 2$ ($S = 474$) are composites: $\log 12$ ($S = 326$), $\log 24$ ($S = 299$), $\log 4$ ($S = 248$), $\log 6$ ($S = 232$), and $\log 48$ ($S = 218$), more than four times brighter than the fundamental $\log 3$ ($S = 77$). Any lattice-dynamics physicist smiles at that spectrum: just as anharmonic three-phonon vertices in a real crystal mix fundamental frequencies $\omega_2$ and $\omega_3$ into combination overtones $a\omega_2 + b\omega_3$, the nonlinear condition $P(s) = \tfrac14$ mixes prime frequencies into bright composite Bragg lines $\log(2^a 3^b)$.
One obvious boundary remained: the convergence wall $\operatorname{Re}\, s = 1$. Everything above lived to its right, where the prime sum converges. What if we step across that wall? Left of $\operatorname{Re}\, s = 1$, $P(s)$ continues smoothly through Möbius inversion of $\log \zeta$:
$$P(s) = \sum_{k \ge 1} \frac{\mu(k)}{k} \log \zeta(ks).$$
That continuation plants a logarithmic branch point at $\rho/m$ for every nontrivial Riemann zero $\rho$ and every squarefree $m \ge 1$ (including $\rho$ itself at $m = 1$), piling up into an impassable natural boundary along $\operatorname{Re}\, s = 0$. Yet because every Riemann zero below height 100 lies on $\operatorname{Re}\, s = \tfrac12$, $P(s)$ remains single-valued and analytic across the entire open strip $\tfrac12 < \operatorname{Re}\, s < \infty$ up to height 100.
I ran the argument principle directly around $[0.55, 1.26] \times [0.3, 100]$ in four 25-unit bands, curious to see whether the cloud simply dried up at the border. The contour integrals came back exact integers: 2, 1, 3, and 4, certifying ten roots in all. Polishing every one to 15 digits revealed three roots in $(1, 1.26)$ and seven branch points strictly inside the critical strip $\tfrac12 < \operatorname{Re}\, s < 1$ (Figure 18). The first lies at $0.7539 + 7.7667i$, lower than the first Riemann zero (14.135) and lower than the first root in our original box (10.012). The line $\operatorname{Re}\, s = 1$ is no wall at all: the branch points cross into Riemann's own territory.
"If it disagrees with experiment, it is wrong."
Richard Feynman, The Character of Physical Law, 1965
Testing every theoretical formula against brute-force computation also left one unexpected mark on the reference literature. While tabulating unordered cubic trees $g_B(n)$, I compared my numbers against Online Encyclopedia of Integer Sequences entry A375120. At $n = 144$, the published formula printed 42 where my script printed 41. An encyclopedia is checked by thousands of eyes and my script only by mine, so I spent an afternoon hunting for my bug, tracing factorizations of 144 by hand until the discrepancy snapped into focus. The trouble was the square split $144 = 12 \times 12$. The number 12 has two distinct unordered trees, $A = \{\{2, 2\}, 3\}$ and $B = \{\{2, 3\}, 2\}$. When 144 splits into $12 \times 12$, the unordered pair $\{A, B\}$ is one tree, not two; the published formula treated the diagonal split $(12, 12)$ as ordered pairs, counting $(A, B)$ and $(B, A)$ separately and overshooting by exactly one. I sent the editors the proof and ten thousand computed terms; within a day they confirmed the error, and the corrected entry went live in July 2026.
Looking back at the whole sequence, nothing here leaves the craft I trained in. Treat the primes as a harmonic spectrum and $\zeta$ is a crystal with zero residual entropy. Switch on cubic-vertex assembly histories and glassy configurational entropy triggers a Hagedorn transition at $P = \tfrac14$. Rotate into complex temperature and the survival amplitude produces a cloud of branch points that scatters off every vertical line, obeys an exact dominance density, diffracts like a nonlinear quasicrystal at composite integers, and crosses $\operatorname{Re}\, s = 1$ toward Riemann's critical line. I went looking for a line and came home with a quasicrystal and a law that counts it.
That completes Part 1: the prime gas, its quasicrystal diffraction, and its branch points across $\operatorname{Re}\, s = 1$. In Part 2: Breaking RSA and Synchronizing Transformers with the Same Clocks, we stay in the same shop of turning arrows and break its two rules one at a time: first letting clocks share a finite rhythm (Shor's quantum factoring algorithm, ending on the same gcd as my grandfather's wine riddle), then letting clocks pull on one another (coupled attention flows in deep transformers), before closing on what two-dimensional slicing history remembers.
The paper: Prime-Leaf Tree Theory. Code and data (v0.3.0): github.com/gbarbalinardo/primeleaf. The corrected entry: OEIS A375120.