RiemannA guide by Principia Superintelligence

Part II, chapter 8

A number with smooth exponents

Derivatives of the lemniscate sine are integers whose exponents at half of all primes are a smooth function n p/(p2−1)n\,p/(p^2-1), with no floor. The reason is a formal group with complex multiplication. Three defects remain, and each drives a part of the real proof.

draft, under review18 minfirst published in v0.1.0, 2026-11-22

An example to compute with

The lemniscate sine sl⁡(z)\operatorname{sl}(z) is the inverse function of t↦∫0tdu/1−u4t \mapsto \int_0^t du/\sqrt{1-u^4}, the arc length of the lemniscate. It satisfies sl⁡′′=−2sl⁡3\operatorname{sl}'' = -2\operatorname{sl}^3, and from that its Taylor coefficients can be computed exactly. Let An=sl⁡(n)(0)A_n = \operatorname{sl}^{(n)}(0) be the nn-th derivative at the origin. These are integers, studied by Hurwitz in 1899; An=0A_n = 0 unless n≡1 mod 4n \equiv 1 \bmod 4:

A1=1,A5=−12,A9=3024,A13=−4390848,A17=21224560896=28⋅36⋅72⋅11⋅211.A_1 = 1,\quad A_5 = -12,\quad A_9 = 3024,\quad A_{13} = -4390848,\quad A_{17} = 21224560896 = 2^8\cdot 3^6\cdot 7^2\cdot 11\cdot 211 .

The curve y2=1−x4y^2 = 1 - x^4 has an extra symmetry x↦ixx \mapsto ix. One says it has complex multiplication by Z[i]\mathbb Z[i]. A prime p≡3 mod 4p \equiv 3 \bmod 4 remains prime in Z[i]\mathbb Z[i] (it is inert); a prime p≡1 mod 4p \equiv 1 \bmod 4 factors (it splits). Look at the exponents of the first few primes in AnA_n, next to the number n p/(p2−1)n\,p/(p^2 - 1):

ninert p = 3inert p = 7inert p = 11split p = 5split p = 13
exponent3n/8exponent7n/48exponent11n/120exponentexponent
1766.422.511.600
491918.477.144.500
1013737.91414.799.300
2017575.42929.31818.400

Over all n ≤ 201 with n ≡ 1 mod 4 and the inert primes 3, 7, 11, 19, 23, 31, the exponent exceeds n p/(p² − 1) by at most 1.65 and falls short of it by at most 0.99. At n = 101 the inert primes up to n account for 167.7 of log |A101| = 306.8; at n = 121, for 203.6 of 388.7.

For every inert prime tested and every n≤201n \le 201 with n≡1 mod 4n \equiv 1 \bmod 4, the exponent of pp in AnA_n is at least n p/(p2−1)−1n\,p/(p^2-1) - 1, where

pp2−1  =  1p+1p3+1p5+⋯ .\frac{p}{p^2-1} \;=\; \frac1p + \frac1{p^3} + \frac1{p^5} + \cdots .

The split primes 5, 13, 17, 29 divide none of these AnA_n. Nothing forces them to divide; nothing forbids it either, and 157 does divide A101A_{101} (we checked). The point is that at inert primes the exponent is a smooth function of nn with no floor in sight. This is wish (W1) of chapter 7, up to a small amount of rounding.

The curve y2=1−x4y^2 = 1 - x^4, the series of sl⁡\operatorname{sl}, the factorisation of A17A_{17} with its inert primes, and the exponent of 3 in AnA_n against the line 3n/83n/8 for all n≤201n \le 201.

Why: a formal group and its logarithm

Near the origin, the addition law of an elliptic curve is a formal group: a power series X⊕YX \oplus Y in two variables. Its logarithm l(X)l(X) is the power series with l(X⊕Y)=l(X)+l(Y)l(X \oplus Y) = l(X) + l(Y); here l(t)=∫0tdu/1−u4l(t) = \int_0^t du/\sqrt{1-u^4} and sl⁡=l−1\operatorname{sl} = l^{-1}. The archive defines this notion in a small library on formal group laws:

Formalism.G.IsLogdefFormalGroupLog/Statement.lean:23A power series ff is a logarithm of the formal group FF when f(0)=0f(0) = 0, f′(0)=1f'(0) = 1 and f(F(X,Y))=f(X)+f(Y)f(F(X, Y)) = f(X) + f(Y). The substitution f(F(X,Y))f(F(X,Y)) is written with Mathlib's `PowerSeries.subst`.
def IsLog (F : FormalGroup R) (f : PowerSeries R) : Prop

A power series ff is a logarithm of the formal group FF when f(0)=0f(0) = 0, f′(0)=1f'(0) = 1 and f(F(X,Y))=f(X)+f(Y)f(F(X, Y)) = f(X) + f(Y). The substitution f(F(X,Y))f(F(X,Y)) is written with Mathlib's `PowerSeries.subst`.

Full declaration with proof
def IsLog (F : FormalGroup R) (f : PowerSeries R) : Prop :=
  constantCoeff f = 0 ∧ coeff 1 f = 1 ∧ f.subst F.toPowerSeries = atX f + atY f

For a curve with complex multiplication and an inert prime pp, multiplication by pp on the formal group looks like X↦Xp2X \mapsto X^{p^2} modulo pp (the formal group has height two), and the logarithm behaves like the model series

l(X)  =  X+Xp2p+Xp4p2+⋯ .l(X) \;=\; X + \frac{X^{p^2}}{p} + \frac{X^{p^4}}{p^2} + \cdots .

At a split prime the formal group has height one, and the model is instead X+Xp/p+Xp2/p2+⋯X + X^p/p + X^{p^2}/p^2 + \cdots. That is exactly the series the archive writes down as its worked example of a Lubin–Tate logarithm:

Formalism.G.ltLogdefFormalGroupLog/Statement.lean:126The series ∑kXpk/pk\sum_k X^{p^k}/p^k over Qp\mathbb Q_p: the coefficient of XnX^n is 1/n1/n when nn is a power of pp and 00 otherwise. This is the height-one shape, the one a split prime sees.
def ltLog (p : ℕ) [Fact p.Prime] : PowerSeries ℚ_[p]

The series ∑kXpk/pk\sum_k X^{p^k}/p^k over Qp\mathbb Q_p: the coefficient of XnX^n is 1/n1/n when nn is a power of pp and 00 otherwise. This is the height-one shape, the one a split prime sees.

Full declaration with proof
def ltLog (p : ℕ) [Fact p.Prime] : PowerSeries ℚ_[p] :=
  PowerSeries.mk fun n => by
    classical exact if ∃ k : ℕ, p ^ k = n then ((n : ℚ_[p]))⁻¹ else 0
Formalism.G.LubinTateExampledefFormalGroupLog/Statement.lean:130There is a formal group over Zp\mathbb Z_p whose logarithm is `ltLog`, with an endomorphism ee that has e′(0)=pe'(0) = p and e≡Xpe \equiv X^p modulo pp.
def LubinTateExample : Prop

There is a formal group over Zp\mathbb Z_p whose logarithm is `ltLog`, with an endomorphism ee that has e′(0)=pe'(0) = p and e≡Xpe \equiv X^p modulo pp.

Full declaration with proof
def LubinTateExample : Prop :=
  ∀ (p : ℕ) [Fact p.Prime],
    ∃ F : FormalGroup ℤ_[p], IsLog (F.map PadicInt.Coe.ringHom) (ltLog p) ∧
      ∃ e : PowerSeries ℤ_[p], IsHom F F e ∧ coeff 1 e = (p : ℤ_[p]) ∧
        ∀ n : ℕ, (p : ℤ_[p]) ∣ coeff n (e - PowerSeries.X ^ p)

This is the shape of a Lubin–Tate formal group of height one (background).

That a curve with complex multiplication has height two at inert primes and height one at split primes is a theorem of Deuring (1941); the shape of the logarithm is due to Honda and to Lubin and Tate. the exposition (Part II, §2) gives the elementary computation that follows, and we reproduce it because it is the whole mechanism in miniature.

The computation

Write L=p2−1L = p^2 - 1 and let U(z)=z+⋯U(z) = z + \cdots be the inverse of the model series under substitution, so that U=z−∑j≥1Up2j/pjU = z - \sum_{j \ge 1} U^{p^{2j}}/p^j. Claim: the coefficient of zaz^a in UU has pp-adic valuation at least −(a−1)/L-(a-1)/L.

This holds for a=1a = 1. In a product of r=p2jr = p^{2j} copies of UU, the degrees i1,…,iri_1, \ldots, i_r contributing to zaz^a are positive and sum to aa, and each is less than aa. By induction their coefficients have product of valuation at least −(a−r)/L-(a-r)/L. Division by pjp^j costs jj, and j≤(r−1)/Lj \le (r-1)/L because p2j−1=(p2−1)(1+p2+⋯+p2j−2)≥jLp^{2j} - 1 = (p^2-1)(1 + p^2 + \cdots + p^{2j-2}) \ge jL. So the total is at least −(a−r)/L−(r−1)/L=−(a−1)/L-(a-r)/L - (r-1)/L = -(a-1)/L, proving the claim.

For a series ff with integer coefficients the same product calculation gives the bound −(a−1)/L-(a-1)/L for the coefficient of zaz^a in f(U(z))f(U(z)). Its aa-th derivative at 00 is a!a! times this coefficient, and by Legendre's formula, vp(a!)=a/(p−1)−O(1+log⁡pa)v_p(a!) = a/(p-1) - O(1 + \log_p a). The derivative therefore has valuation at least

a(1p−1−1p2−1)−O(1+log⁡pa)  =  a(1p+1p3+1p5+⋯)−O(1+log⁡pa).a\Big(\frac{1}{p-1} - \frac{1}{p^2-1}\Big) - O(1 + \log_p a) \;=\; a\Big(\frac1p + \frac1{p^3} + \frac1{p^5} + \cdots\Big) - O(1 + \log_p a) .

Only odd powers of pp appear. That is the signature of an inert prime. At a split prime the height-one logarithm has the denominator pjp^j already at degree pjp^j; the inverse series then loses about a/(p−1)a/(p-1), which cancels the whole valuation of a!a!. There is no gain.

Formalism.GrowthSums.GammaIdentitydefGrowthSums/StatementA.lean:67The identity ∑n≥0p−(2n+1)=p/(p2−1)=1/(p−1)−1/(p2−1)\sum_{n \ge 0} p^{-(2n+1)} = p/(p^2-1) = 1/(p-1) - 1/(p^2-1), in the archive with γp\gamma_p = `gamP` and ρp\rho_p = `rhoP`.
def GammaIdentity : Prop

The identity ∑n≥0p−(2n+1)=p/(p2−1)=1/(p−1)−1/(p2−1)\sum_{n \ge 0} p^{-(2n+1)} = p/(p^2-1) = 1/(p-1) - 1/(p^2-1), in the archive with γp\gamma_p = `gamP` and ρp\rho_p = `rhoP`.

Full declaration with proof
def GammaIdentity : Prop :=
  ∀ p : ℝ, 1 < p →
    HasSum (fun n : ℕ => (p ^ (2 * n + 1))⁻¹) (gamP p) ∧ gamP p = 1 / (p - 1) - rhoP p
Formalism.InvariantFactorPaths.G7.FactorialLgdefUniformThetaSubstitution/StatementAB.lean:97The factorial half of the computation: vp(a!)≥a/(p−1)−λp(a)v_p(a!) \ge a/(p-1) - \lambda_p(a) (chapter 7).
def FactorialLg : Prop

The factorial half of the computation: vp(a!)≥a/(p−1)−λp(a)v_p(a!) \ge a/(p-1) - \lambda_p(a) (chapter 7).

Full declaration with proof
def FactorialLg : Prop :=
  ∀ (p m : ℕ), p.Prime → (m : ℝ) / ((p : ℝ) - 1) - lgN p m ≤ (padicValNat p m.factorial : ℝ)

our exposition The archive does not prove the claim for this one-variable model; it proves a weighted version in several variables for its own theta kernels (chapter 10), in the coordinates of the height-two logarithm. The exposition’s Part III, §III.5 writes that estimate out in classical language, conditionally on the integrality of the theta kernels in those coordinates (his hypothesis (B)), which he takes from the Lean development. Whether the three declarations quoted above lie on the dependency cone of the final theorem is something our file-level data cannot say; the declaration-level graph arrives with the full build.

What this achieves, and what it does not

We have integers whose exponents are smooth in pp. Three defects remain, and each drives a part of the real proof.

  • (D1) Rounding. An error of size about 11 in each exponent costs ∑p≤nlog⁡p≈n\sum_{p \le n} \log p \approx n in the inequality of chapter 7: again as large as the linear term. This is the floor-function problem in another guise. Chapter 10 removes it by making the order of differentiation enormous.
  • (D2) Only half the primes. Only inert primes appear, weighted by 1−χ(p)1 - \chi(p), which is 22 for inert pp and 00 for split pp, where χ\chi is the quadratic character of the field. Chapters 11 and 12 turn this into a feature, with a second character to select the right half.
  • (D3) Size. ∣An∣|A_n| is about n!/Rnn!/R^n with R=1.854…R = 1.854\ldots, so log⁡∣An∣≈nlog⁡n\log|A_n| \approx n \log n. But the inert primes up to nn account only for ∑p≡3(4), p≤nnplog⁡p=12nlog⁡n+O(n)\sum_{p \equiv 3 (4),\, p \le n} \frac{n}{p}\log p = \tfrac12 n\log n + O(n). At n=101n = 101 they contribute 167.7167.7 of log⁡∣A101∣=306.8\log|A_{101}| = 306.8. The inequality is true and useless: off by a factor 22 in the leading term. Chapter 9 repairs this with a different function to differentiate, whose derivatives have the size of a square root of a factorial.
Hurwitz's recursion, and how the numbers were computed

Differentiating (sl⁡′)2=1−sl⁡4(\operatorname{sl}')^2 = 1 - \operatorname{sl}^4 gives sl⁡′′=−2sl⁡3\operatorname{sl}'' = -2\operatorname{sl}^3, and the product rule turns this into an integer recursion with A0=0A_0 = 0, A1=1A_1 = 1:

Aj+2  =  −2∑a+b+c=jj!a! b! c! AaAbAc.A_{j+2} \;=\; -2 \sum_{a+b+c=j} \frac{j!}{a!\,b!\,c!}\, A_a A_b A_c .

For j=3j = 3 only (1,1,1)(1,1,1) contributes, giving A5=−12A_5 = -12. For j=7j = 7 there are three permutations of (5,1,1)(5,1,1), giving A9=−2⋅3⋅42⋅(−12)=3024A_9 = -2\cdot 3\cdot 42\cdot(-12) = 3024. Uniqueness of the series solution gives sl⁡(iz)=isl⁡(z)\operatorname{sl}(iz) = i\operatorname{sl}(z), so only indices j≡1 mod 4j \equiv 1 \bmod 4 occur. Our heart module runs this recursion in exact rational arithmetic to n=201n = 201 and records the valuations at the inert primes 3,7,11,19,23,31,43,47,59,67,71,79,833, 7, 11, 19, 23, 31, 43, 47, 59, 67, 71, 79, 83 and the split primes up to 9797; the table above and the animation read from data/numerics/lemniscate.json. Over the range tested the exponent exceeds n p/(p2−1)n\,p/(p^2-1) by at most 1.651.65; the exposition notes that this ceiling does not persist (for p=3p = 3 the excess is 4.6254.625 at n=1945n = 1945), which is one more reason the real proof cannot use these numbers as they stand.