RiemannA guide by Principia Superintelligence

Part II, chapter 9

Theta series, and the chain of lifts

The proof keeps the idea of chapter 8, differentiate a function of arithmetic origin and look at what divides the result, but changes the function to a theta series. Its derivatives are arithmetic after a period is removed, and their size is a square root of a factorial. Arranged as matrices between finite sets of lattices they are theta lifts, and the proof composes about x\sqrt{x} of them.

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

The simplest case

Let Λ=Z[i]⊂C\Lambda = \mathbb Z[i] \subset \mathbb C be the lattice of Gaussian integers and put

Θ(z)  =  ∑λ∈Λexp⁡(−π∣λ∣2+λz)(z∈C).\Theta(z) \;=\; \sum_{\lambda \in \Lambda} \exp\big(-\pi|\lambda|^2 + \lambda z\big) \qquad (z \in \mathbb C).

The Gaussian factor makes the sum converge for every zz, so Θ\Theta is entire. Its nn-th derivative at the origin is Tn=∑λλne−π∣λ∣2T_n = \sum_\lambda \lambda^n e^{-\pi|\lambda|^2}: differentiating nn times at the origin means inserting the weight λn\lambda^n into the sum over the lattice, and for a polynomial PP, P(d/dz)Θ(0)=∑λP(λ)e−π∣λ∣2P(d/dz)\Theta(0) = \sum_\lambda P(\lambda)e^{-\pi|\lambda|^2} is a weighted count of lattice points. Because Λ\Lambda is preserved by multiplication by ii, TnT_n vanishes unless 4∣n4 \mid n. Three things are visible in this example, and all three can be checked by direct computation (the exposition §I.4.1; our numbers are in the tables below).

  1. A period. T0=1.18034…=2 ϖ/πT_0 = 1.18034\ldots = \sqrt2\,\varpi/\pi, where ϖ=2∫01dt/1−t4=2.62206…\varpi = 2\int_0^1 dt/\sqrt{1-t^4} = 2.62206\ldots is the lemniscate constant, the period of the curve y2=1−x4y^2 = 1 - x^4 of chapter 8. And T4/T0=0.12131…=14(ϖ/π)4T_4/T_0 = 0.12131\ldots = \tfrac14(\varpi/\pi)^4.
  2. Rationality. After division by T0T_0 and by (ϖ/π)n(\varpi/\pi)^n the values are rational numbers with denominator 4k4^k. The exposition identified them numerically to 250 digits and observed, to more than 400 digits, the identity Θ(z)/T0=σ(u)2℘(u)\Theta(z)/T_0 = \sigma(u)^2\wp(u) with u=ϖz/2πu = \varpi z/2\pi and σ,℘\sigma, \wp the Weierstrass functions of the lattice with g2=4g_2 = 4, g3=0g_3 = 0, whose Taylor coefficients are rational; he has not written out a proof. That lattice sums of this kind are algebraic multiples of powers of a period is a classical theorem (Damerell). So derivatives of Θ\Theta are arithmetic objects once the period is removed. Each derivative costs one factor ϖ/π\varpi/\pi; this is why a term linear in the order of differentiation, −alog⁡Ω-a\log\Omega, appears in the size estimate of chapter 13.
  3. Gaussian size. By Cauchy–Schwarz, ∣Tn∣2≤(∑λ∣λ∣2ne−π∣λ∣2) T0|T_n|^2 \le \big(\sum_\lambda |\lambda|^{2n}e^{-\pi|\lambda|^2}\big)\,T_0, and the first factor is comparable to ∫C∣z∣2ne−π∣z∣2dz=n!/πn\int_{\mathbb C}|z|^{2n}e^{-\pi|z|^2}dz = n!/\pi^n. So ∣Tn∣|T_n| is at most about n!/πn\sqrt{n!/\pi^n}: the square root of a factorial, not a factorial.
krk = T4k / (T0(ϖ/π)4k)
11/4
217/16
3-111/64
412513/256
5-146079/1024
681727857/4096

Identified to the stated precision; the denominators are 4k. At k = 30 the numerator has 80 digits and the exponent of 3 in it is 14, against 120 · 3/8 = 45 for the lemniscate numbers.

nlog |Tn|½ log(n!/πn)log n!
201.59.742.3
4019.232.3110.3
8062.791.0273.7
120119.0160.2457.8

The derivative of a Gaussian function grows like the square root of a factorial; the lemniscate numbers of chapter 8 grow like a full factorial.

The lattice Z[i]\mathbb Z[i] with its Gaussian weights; the derivatives TnT_n and the rational numbers they become after the period is removed; then the three sizes log⁡n!\log n!, 12log⁡(n!/πn)\tfrac12\log(n!/\pi^n) and log⁡∣Tn∣\log|T_n| for n≤120n \le 120.

A warning, with numbers. This simplest theta function does not have the full divisibility of chapter 8. At n=120n = 120 the exponent of 33 in r30r_{30} is 1414, whereas 120⋅38=45120\cdot\tfrac38 = 45. For the lemniscate sine it was the full amount, but the size was too large. Having both at once, full divisibility at inert primes and Gaussian size, is a theorem about the particular theta series used in the proof, written in particular coordinates. It is the deepest local statement in the argument (chapter 10 says what is proved about it).

A squared Gaussian norm: one factorial for the square

Give the polynomials in a complex variable zz the inner product with weight π−1e−∣z∣2\pi^{-1}e^{-|z|^2}. Then the monomials are orthogonal and

∥za∥2  =  ∫C∣z∣2a π−1e−∣z∣2 dz  =  ∫0∞tae−t dt  =  a!.\|z^a\|^2 \;=\; \int_{\mathbb C}|z|^{2a}\,\pi^{-1}e^{-|z|^2}\,dz \;=\; \int_0^\infty t^a e^{-t}\,dt \;=\; a! .

For several variables the norms multiply: ∥zν∥2=ν!\|z^\nu\|^2 = \nu!, the product of the factorials of the entries of the exponent vector ν\nu. Put ∥P∥2=∑ν∣Pν∣2 ν!\|P\|^2 = \sum_\nu |P_\nu|^2\,\nu!. Writing Θ(z)=∑νcνzν\Theta(z) = \sum_\nu c_\nu z^\nu, a derivative of order ν\nu at 00 is ν! cν\nu!\,c_\nu, so P(∂)Θ(0)=∑νPν ν! cνP(\partial)\Theta(0) = \sum_\nu P_\nu\,\nu!\,c_\nu, and Cauchy–Schwarz applied to the lists Pνν!P_\nu\sqrt{\nu!} and cνν!c_\nu\sqrt{\nu!} gives

∣P(∂)Θ(0)∣2  ≤  ∥P∥2⋅∑ν∈supp⁡Pν! ∣cν∣2.\big|P(\partial)\Theta(0)\big|^2 \;\le\; \|P\|^2 \cdot \sum_{\nu \in \operatorname{supp}P} \nu!\,|c_\nu|^2 .

For P=zaP = z^a the first factor is a!a!. The second factor is a Gaussian-weighted norm of the theta function; bounding it is the analytic part of the size estimate (chapter 13). So the squared size of an entry is about a!a! times lower-order factors: its logarithm is alog⁡a+O(a)a\log a + O(a), one factorial for the square. Compare (D3): there the squared size was 2nlog⁡n2n\log n against nlog⁡nn\log n from divisibility. The leading terms now agree, and the comparison becomes a statement about the terms of order aa.

The archive’s jet library pairs a polynomial with a power series in exactly this way, and proves the Leibniz-type identity that makes directional derivatives of the polynomial side appear with their factorials:

Formalism.DworkPowerSeriesWeights.jetPairdefGaussJetBounds/StatementI.lean:13The pairing of a polynomial PP with a power series Θ\Theta: the sum over exponents of the coefficients of PP against those of Θ\Theta with the factorial weight.
def jetPair {K : Type u} [Field K] {ι : Type} (P : MvPolynomial ι K) (Th : MvPowerSeries ι K) : K

The pairing of a polynomial PP with a power series Θ\Theta: the sum over exponents of the coefficients of PP against those of Θ\Theta with the factorial weight.

Full declaration with proof
def jetPair {K : Type u} [Field K] {ι : Type} (P : MvPolynomial ι K) (Th : MvPowerSeries ι K) : K :=
  ∑ κ ∈ P.support, MvPolynomial.coeff κ P * ((mfact κ : ℕ) : K) * MvPowerSeries.coeff κ Th
Formalism.InvariantFactorPaths.G7.JetPairingHasseIdentitydefUniformThetaSubstitution/StatementAB.lean:29Pairing QQ with ∏kℓkβk⋅G\prod_k \ell_k^{\beta_k}\cdot G, where the ℓk\ell_k are linear forms, equals ∏kβk!\prod_k \beta_k! times the pairing of the Hasse derivative of QQ of order β\beta in the directions ℓk\ell_k with GG. Chapter 10 uses Hasse derivatives because they carry no factorial denominators.
def JetPairingHasseIdentity : Prop

Pairing QQ with ∏kℓkβk⋅G\prod_k \ell_k^{\beta_k}\cdot G, where the ℓk\ell_k are linear forms, equals ∏kβk!\prod_k \beta_k! times the pairing of the Hasse derivative of QQ of order β\beta in the directions ℓk\ell_k with GG. Chapter 10 uses Hasse derivatives because they carry no factorial denominators.

Full declaration with proof
def JetPairingHasseIdentity : Prop :=
  ∀ (K ι κ : Type) [Field K] [Fintype ι] [Fintype κ] (b : κ → ι → K) (β : κ →₀ ℕ)
    (Q : MvPolynomial ι K) (G : MvPowerSeries ι K),
    jetPair Q ((∏ k, linS (b k) ^ β k) * G) =
      ((∏ k, (β k).factorial : ℕ) : K) * jetPair (hasseDir b β Q) G

The general case

In the proof, Λ\Lambda is replaced by a lattice of the following kind. Let EE be a number field with complex multiplication (chapter 11 specifies it), and let L,L′L, L' be lattices over its ring of integers, of ranks rr and r′r', each with a positive definite Hermitian form. The role of Λ\Lambda is played by the lattice of linear maps from LL to L′L'. The variable zz becomes a complex r×r′r \times r' matrix, one for each embedding of EE in C\mathbb C from a fixed set of 2n2n embeddings (a CM type; 4n4n is the degree of EE, and nn is the number of columns of the table of chapter 11). The theta series ΘL,L′(z)\Theta_{L,L'}(z) is a holomorphic function of all these matrix entries, and one applies a differential operator P(∂)P(\partial) with PP a polynomial in the entries. Normalised by the period, the numbers P(∂)ΘL,L′(0)=∑νPν ν! cνP(\partial)\Theta_{L,L'}(0) = \sum_\nu P_\nu\,\nu!\,c_\nu are the divisible objects of the proof.

Why differentiate at all? Three separate reasons.

  • It is forced by the construction. These numbers, for suitable PP, are exactly the entries of the matrix of a theta lift between spaces of forms of prescribed weights. The degree of PP at a given embedding is one of the parameters of these spaces; call it the order aa, reserving weight for the parameters ww of chapter 10. It can be chosen freely, and it will be chosen huge.
  • Differentiation creates divisibility. This is the mechanism of chapter 8: in a suitable algebraic coordinate the function has pp-integral Taylor coefficients, an aa-th derivative multiplies a coefficient by a!a!, and at an inert prime the net gain is a(1/p+1/p3+⋯ )a(1/p + 1/p^3 + \cdots).
  • Differentiation costs little in size. By the Gaussian computation above, an aa-th derivative has squared size about a!a!.

A theta lift in classical terms

A theta series counts representations by a quadratic form. For the form a2+b2a^2 + b^2 and s=e2πizs = e^{2\pi i z},

ΘL(z)  =  ∑λ∈Z[i]s∣λ∣2  =  1+4s+4s2+4s4+8s5+⋯ ,\Theta_L(z) \;=\; \sum_{\lambda \in \mathbb Z[i]} s^{|\lambda|^2} \;=\; 1 + 4s + 4s^2 + 4s^4 + 8s^5 + \cdots ,

the coefficient of s5s^5 being 88 because the solutions of a2+b2=5a^2 + b^2 = 5 are (±1,±2)(\pm1, \pm2) and (±2,±1)(\pm2, \pm1). A theta series has two properties at once: it is a sum over a lattice, so its coefficients are integers with arithmetic meaning; and it is Gaussian in nature, so its size is governed by Gaussian integrals. These are the two properties the proof needs.

To make this a lift, allow the lattice to vary within a finite collection of isometry classes L1,…,LcL_1, \ldots, L_c (the classes in a genus). Attach to each class a value f(i)f(i) and weight it by hi=1/∣Aut⁡Li∣h_i = 1/|\operatorname{Aut}L_i|. The theta series are now a kernel Θ(g,h)\Theta(g, h) depending on both a class and a variable, and the lifted function is Θ(f)=∑ihif(i)ΘLi\Theta(f) = \sum_i h_i f(i)\Theta_{L_i}. In the case used here both groups are definite unitary groups, for which everything is finite: a “function on the group” is a function on the finite set of classes, the integral is a finite sum weighted by 1/∣Aut⁡Li∣1/|\operatorname{Aut}L_i|, and the lift is a matrix. Its entries are derivatives, at the origin, of the theta series attached to pairs of lattices.

UpperTheory.theta_lift_lineartheoremAdelicQuotients/ThetaLiftLinear.lean:37The adelic form of the lift: (Tf)(h)=∫Θω(Φ)(g,h) f(g)‾ dg(T f)(h) = \int \Theta_\omega(\Phi)(g, h)\,\overline{f(g)}\,dg for a Schwartz function Φ\Phi and a function ff on the first group; the theorem proves it is linear in Φ\Phi and conjugate-linear in ff.
theorem UpperTheory.theta_lift_linear :
    Tools → ∀ (F E : Type) [Field F] [NumberField F] [Field E] [NumberField E] [Algebra F E] (σ : E →ₐ[F] E) (B : Base F E) (n d : ℕ) (X : Spc F E n) (W : Spc F E d) (M : Model σ X W) (χX χW : Chr F E) (om : Rep σ X W), IsPair B M χX χW om n 0 d 0 → (∀ Φ ∈ schA F (Fin n × Fin d), ∀ Φ' ∈ schA F (Fin n × Fin d), ∀ φ : UA σ X.J → ℂ, IsFn φ → lift M om (Φ + Φ') φ = lift M om Φ φ + lift M om Φ' φ) ∧ (∀ (c : ℂ), ∀ Φ ∈ schA F (Fin n × Fin d), ∀ φ : UA σ X.J → ℂ, IsFn φ → lift M om (c • Φ) φ = c • lift M om Φ φ) ∧ (∀ Φ ∈ schA F (Fin n × Fin d), ∀ φ φ' : UA σ X.J → ℂ, IsFn φ → IsFn φ' → lift M om Φ (φ + φ') = lift M om Φ φ + lift M om Φ φ') ∧ (∀ (c : ℂ), ∀ Φ ∈ schA F (Fin n × Fin d), ∀ φ : UA σ X.J → ℂ, IsFn φ → lift M om Φ (c • φ) = (starRingEnd ℂ) c • lift M om Φ φ)

The adelic form of the lift: (Tf)(h)=∫Θω(Φ)(g,h) f(g)‾ dg(T f)(h) = \int \Theta_\omega(\Phi)(g, h)\,\overline{f(g)}\,dg for a Schwartz function Φ\Phi and a function ff on the first group; the theorem proves it is linear in Φ\Phi and conjugate-linear in ff.

Full declaration with proof
theorem UpperTheory.theta_lift_linear :
    Tools → ∀ (F E : Type) [Field F] [NumberField F] [Field E] [NumberField E] [Algebra F E] (σ : E →ₐ[F] E) (B : Base F E) (n d : ℕ) (X : Spc F E n) (W : Spc F E d) (M : Model σ X W) (χX χW : Chr F E) (om : Rep σ X W), IsPair B M χX χW om n 0 d 0 → (∀ Φ ∈ schA F (Fin n × Fin d), ∀ Φ' ∈ schA F (Fin n × Fin d), ∀ φ : UA σ X.J → ℂ, IsFn φ → lift M om (Φ + Φ') φ = lift M om Φ φ + lift M om Φ' φ) ∧ (∀ (c : ℂ), ∀ Φ ∈ schA F (Fin n × Fin d), ∀ φ : UA σ X.J → ℂ, IsFn φ → lift M om (c • Φ) φ = c • lift M om Φ φ) ∧ (∀ Φ ∈ schA F (Fin n × Fin d), ∀ φ φ' : UA σ X.J → ℂ, IsFn φ → IsFn φ' → lift M om Φ (φ + φ') = lift M om Φ φ + lift M om Φ φ') ∧ (∀ (c : ℂ), ∀ Φ ∈ schA F (Fin n × Fin d), ∀ φ : UA σ X.J → ℂ, IsFn φ → lift M om Φ (c • φ) = (starRingEnd ℂ) c • lift M om Φ φ) := by
  intro T F E _ _ _ _ _ σ B n d X W M χX χW om hP
  have hpres : ∀ x, ∀ Ψ ∈ schA F (Fin n × Fin d), om x Ψ ∈ schA F (Fin n × Fin d) := hP.weil.isUSplitting.pres
  refine ⟨fun Φ hΦ Φ' hΦ' φ hφ => ?_, fun c Φ hΦ φ hφ => ?_, fun Φ hΦ φ φ' hφ hφ' => ?_, fun c Φ hΦ φ hφ => ?_⟩
  · funext h
    have e : ∀ g, theta om (Φ + Φ') g h * star (φ g) = theta om Φ g h * star (φ g) + theta om Φ' g h * star (φ g) := fun g => by
      have : theta om (Φ + Φ') g h = theta om Φ g h + theta om Φ' g h := by
        simp only [theta, map_add]
        exact thetaSum_add F (hpres _ _ hΦ) (hpres _ _ hΦ')
      rw [this, add_mul]
    simp only [lift, Pi.add_apply, e]
    exact integral_add (integrand_int T hP hΦ hφ h) (integrand_int T hP hΦ' hφ h)
  · funext h
    have e : ∀ g, theta om (c • Φ) g h * star (φ g) = c * (theta om Φ g h * star (φ g)) := fun g => by
      simp only [theta, map_smul, thetaSum_smul, mul_assoc]
    simp only [lift, Pi.smul_apply, smul_eq_mul, e, integral_const_mul]
  · funext h
    have e : ∀ g, theta om Φ g h * star ((φ + φ') g) = theta om Φ g h * star (φ g) + theta om Φ g h * star (φ' g) := fun g => by
      simp only [Pi.add_apply, star_add, mul_add]
    simp only [lift, Pi.add_apply] at e ⊢
    simp only [e]
    exact integral_add (integrand_int T hP hΦ hφ h) (integrand_int T hP hΦ hφ' h)
  · funext h
    have e : ∀ g, theta om Φ g h * star ((c • φ) g) = (starRingEnd ℂ) c * (theta om Φ g h * star (φ g)) := fun g => by
      simp only [Pi.smul_apply, smul_eq_mul, star_mul', starRingEnd_apply]
      ring
    simp only [lift, Pi.smul_apply, smul_eq_mul] at e ⊢
    simp only [e, integral_const_mul]

in the archive, off the route The exposition’s dependency check (Part III, introduction) found that this linearity statement, like the finite-chain statements below, is present in the archive but not among the 1,478,198 declarations on which riemannHypothesis depends. They are parallel formulations of what the route proves in other words; we quote them because they are the clearest statements of the shape.

Composing maps

Let IjI_j be the finite set of classes at stage jj, hj(i)h_j(i) its weights, and Kj(i,i′)K_j(i, i') the matrix of the jj-th map. In the linear convention, (Tjf)(i′)=∑i∈Ijhj(i)Kj(i,i′)f(i)(T_j f)(i') = \sum_{i \in I_j} h_j(i)K_j(i, i')f(i). Expanding two such sums gives the composite kernel ∑i′Kj(i,i′) hj+1(i′) Kj+1(i′,i′′)\sum_{i'} K_j(i, i')\,h_{j+1}(i')\,K_{j+1}(i', i''): successive maps really do use the same intermediate index. The archive’s statement library on theta-lift independence writes exactly this algebra.

Formalism.ThetaLiftIndependence.kerOpdefThetaLiftIndependence/Statement.lean:10A kernel KK with weights ww acting on ff: j↦∑iwifiKijj \mapsto \sum_i w_i f_i K_{ij}.
def kerOp {R ι κ : Type*} [CommSemiring R] [Fintype ι] (w : ι → R) (K : ι → κ → R)
    (f : ι → R) : κ → R

A kernel KK with weights ww acting on ff: j↦∑iwifiKijj \mapsto \sum_i w_i f_i K_{ij}.

Full declaration with proof
def kerOp {R ι κ : Type*} [CommSemiring R] [Fintype ι] (w : ι → R) (K : ι → κ → R)
    (f : ι → R) : κ → R :=
  fun j => ∑ i, w i * f i * K i j
Formalism.ThetaLiftIndependence.kerMuldefThetaLiftIndependence/Statement.lean:14The composite kernel ∑jK1(i,j) wj K2(j,k)\sum_j K_1(i,j)\,w_j\,K_2(j,k).
def kerMul {R ι κ μ : Type*} [CommSemiring R] [Fintype κ] (w : κ → R) (K₁ : ι → κ → R)
    (K₂ : κ → μ → R) : ι → μ → R

The composite kernel ∑jK1(i,j) wj K2(j,k)\sum_j K_1(i,j)\,w_j\,K_2(j,k).

Full declaration with proof
def kerMul {R ι κ μ : Type*} [CommSemiring R] [Fintype κ] (w : κ → R) (K₁ : ι → κ → R)
    (K₂ : κ → μ → R) : ι → μ → R :=
  fun i k => ∑ j, K₁ i j * w j * K₂ j k
Formalism.ThetaLiftIndependence.KerCompdefThetaLiftIndependence/Statement.lean:35Applying two kernels in turn equals applying their composite.
def KerComp : Prop

Applying two kernels in turn equals applying their composite.

Full declaration with proof
def KerComp : Prop :=
  ∀ (R : Type) [CommSemiring R] (ι κ μ : Type) [Fintype ι] [Fintype κ]
    (w₁ : ι → R) (w₂ : κ → R) (K₁ : ι → κ → R) (K₂ : κ → μ → R) (f : ι → R),
    kerOp w₂ K₂ (kerOp w₁ K₁ f) = kerOp w₁ (kerMul w₂ K₁ K₂) f
Formalism.ThetaLiftIndependence.KerAdjointdefThetaLiftIndependence/Statement.lean:29The adjoint kernel Kij‾\overline{K_{ij}} with respect to the weighted inner products on both sides.
def KerAdjoint : Prop

The adjoint kernel Kij‾\overline{K_{ij}} with respect to the weighted inner products on both sides.

Full declaration with proof
def KerAdjoint : Prop :=
  ∀ (R : Type) [CommSemiring R] [StarRing R] (ι κ : Type) [Fintype ι] [Fintype κ]
    (w : ι → R) (w' : κ → R) (K : ι → κ → R) (f : ι → R) (g : κ → R),
    (∀ i, star (w i) = w i) →
    wip w' (kerOp w K f) g = wip w f (kerOp w' (kerAdj K) g)
Formalism.ThetaLiftIndependence.chainOpdefThetaLiftIndependence/Statement.lean:24The chain: mm kernels applied in order, by recursion on mm.
def chainOp {R : Type*} [CommSemiring R] {ι : ℕ → Type*} [∀ j, Fintype (ι j)]
    (w : ∀ j, ι j → R) (K : ∀ j, ι j → ι (j + 1) → R) : (m : ℕ) → (ι 0 → R) → (ι m → R)
  | 0, f => f
  | m + 1, f => kerOp (w m) (K m) (chainOp w K m f)

def KerAdjoint : Prop

The chain: mm kernels applied in order, by recursion on mm.

Integrality through a chain. Let SS be a subring of a commutative ring RR. Suppose all Kj(i,i′)K_j(i, i') and the starting values lie in SS, and scalars Dj∈RD_j \in R satisfy Djhj(i)∈SD_j h_j(i) \in S for every ii. Then every final value multiplied by ∏jDj\prod_j D_j lies in SS. For one map this follows by moving D1D_1 into its finite sum; induction does the rest. On one class, with successive weights 1/2,1/31/2, 1/3, kernel entries 5,75, 7 and starting value 11, the output is 35/635/6, and clearing the two weights gives 3535. At the prime 55, two entries divisible respectively by 525^2 and 535^3 would give a cleared output divisible by 555^5: in a sum the exponent can increase through cancellation, but it is always at least the common lower bound on the summands. This is how divisibility persists along the chain; it is the analogue of a function vanishing to order mm in Stepanov’s proof. Putting significant prime powers into each kernel entry needs the local estimates of chapter 10.

Formalism.ThetaLiftIndependence.ChainIntdefThetaLiftIndependence/Statement.lean:40The integrality assertion above, exactly: with Djwj(i)∈SD_j w_j(i) \in S and all kernel entries in SS, (∏j<mDj)⋅chainOp w K m f (y)∈S\big(\prod_{j<m} D_j\big)\cdot\mathrm{chainOp}\,w\,K\,m\,f\,(y) \in S for every yy.
def ChainInt : Prop

The integrality assertion above, exactly: with Djwj(i)∈SD_j w_j(i) \in S and all kernel entries in SS, (∏j<mDj)⋅chainOp w K m f (y)∈S\big(\prod_{j<m} D_j\big)\cdot\mathrm{chainOp}\,w\,K\,m\,f\,(y) \in S for every yy.

Full declaration with proof
def ChainInt : Prop :=
  ∀ (R : Type) [CommRing R] (S : Subring R) (ι : ℕ → Type) [∀ j, Fintype (ι j)]
    (w : ∀ j, ι j → R) (K : ∀ j, ι j → ι (j + 1) → R) (D : ℕ → R),
    (∀ j i, D j * w j i ∈ S) → (∀ j a b, K j a b ∈ S) →
    ∀ f : ι 0 → R, (∀ i, f i ∈ S) → ∀ (m : ℕ) (y : ι m),
      (∏ j ∈ Finset.range m, D j) * chainOp w K m f y ∈ S

The ranks. In the archive the definite groups along the chain have ranks Nj=k+j(t+1)N_j = k + j(t + 1) for an odd integer tt (the exposition writes τ0\tau_0), and the rank record carries the numerical conditions the construction needs: mm even and at least 22, kk even and at least m+3m + 3, t≥k+m+4t \ge k + m + 4 and t>3mt > 3m. For instance m=2m = 2, k=6k = 6, t=13t = 13 gives ranks 6,20,346, 20, 34. Since mm is even and at least 22, the chain has at least two steps; in the proof m≈xm \approx \sqrt x (chapter 15).

Formalism.BasicNotions.RanksstructureLocalRingCardinality/Params.lean:6The record of ranks: the frame (which carries the order nn of the column group), kk, mm, tt, and the inequalities between them.
structure Ranks extends Formalism.HC.Frame

The record of ranks: the frame (which carries the order nn of the column group), kk, mm, tt, and the inequalities between them.

Full declaration with proof
structure Ranks extends Formalism.HC.Frame where
  k : ℕ
  m : ℕ
  t : ℕ
  k_even : Even k
  m_even : Even m
  t_odd : Odd t
  two_le_m : 2 ≤ m
  m_add_three_le_k : m + 3 ≤ k

  rank_add_five_le : k + m - 1 + 5 ≤ t
  three_m_lt_t : 3 * m < t

  m_le_f : m ≤ 2 * ord
  f_le_k : 2 * ord ≤ k

  m_sq_le_N : m ^ 2 ≤ k + m * (t + 1)
Formalism.BasicNotions.Ranks.NdefLocalRingCardinality/Params.lean:36Nj=k+j(t+1)N_j = k + j(t+1), the rank at stage jj.
def N (j : ℕ) : ℕ

Nj=k+j(t+1)N_j = k + j(t+1), the rank at stage jj.

Passing between consecutive groups is governed by interlacing of weights, and the sizes of the spaces of forms enter through Weyl's dimension formula and a hook product:

Formalism.MainNotions.flipTwoThree.InterlacedefGlobalSchurBounds/FlipTwoThree.lean:107A dominant weight λ\lambda for rank n+1n+1 interlaces σ\sigma for rank nn when λi+1≤σi≤λi\lambda_{i+1} \le \sigma_i \le \lambda_i for every ii.
def Interlace {n : ℕ} (lt : DomWeight (n + 1)) (sg : DomWeight n) : Prop

A dominant weight λ\lambda for rank n+1n+1 interlaces σ\sigma for rank nn when λi+1≤σi≤λi\lambda_{i+1} \le \sigma_i \le \lambda_i for every ii.

Full declaration with proof
def Interlace {n : ℕ} (lt : DomWeight (n + 1)) (sg : DomWeight n) : Prop :=
  ∀ i : Fin n, lt.w i.succ ≤ sg.w i ∧ sg.w i ≤ lt.w i.castSucc
Formalism.MainNotions.flipTwoThree.dimVdefGlobalSchurBounds/FlipTwoThree.lean:35Weyl's formula for GLN\mathrm{GL}_N: ∏i<j(λi−λj+j−i)/(j−i)\prod_{i<j}(\lambda_i - \lambda_j + j - i)/(j - i).
def dimV {N : ℕ} (lam : Fin N → ℤ) : ℝ

Weyl's formula for GLN\mathrm{GL}_N: ∏i<j(λi−λj+j−i)/(j−i)\prod_{i<j}(\lambda_i - \lambda_j + j - i)/(j - i).

Full declaration with proof
def dimV {N : ℕ} (lam : Fin N → ℤ) : ℝ :=
  ∏ i : Fin N, ∏ j ∈ Finset.univ.filter (fun j => i < j),
    (((lam i - lam j + (j : ℤ) - (i : ℤ) : ℤ) : ℝ) / (((j : ℤ) - (i : ℤ) : ℤ) : ℝ))
Formalism.MainNotions.flipTwoThree.hookdefGlobalSchurBounds/FlipTwoThree.lean:30The hook product of a diagram; for a single row of length aa it is a!a!, the factor that the Gaussian norm of zaz^a produces.
def hook {N : ℕ} (nu : Fin N → ℚ) : ℝ

The hook product of a diagram; for a single row of length aa it is a!a!, the factor that the Gaussian norm of zaz^a produces.

Full declaration with proof
def hook {N : ℕ} (nu : Fin N → ℚ) : ℝ :=
  (∏ i : Fin N, (((⌊nu i⌋.toNat + N - 1 - i : ℕ).factorial : ℕ) : ℝ)) /
    ∏ i : Fin N, ∏ j ∈ Finset.univ.filter (fun j => i < j),
      (((⌊nu i⌋ - ⌊nu j⌋ + (j : ℤ) - (i : ℤ) : ℤ)) : ℝ)
What is quoted, and what the reader can check

The exposition’s table (§I.4.5) separates the statements of this chapter by status. Computed, with scripts: TnT_n, the period, the rational numbers rkr_k, the size of TnT_n (we recomputed all of them; the identification of rkr_k is exact to the precision in theta-gaussian.json, with T0=2 ϖ/πT_0 = \sqrt2\,\varpi/\pi agreeing to the digits computed). Proved above: ∥za∥2=a!\|z^a\|^2 = a! and the Cauchy–Schwarz inequality; the identity (a/ph−w)+=w(x/ph−1)+(a/p^h - w)_+ = w(x/p^h - 1)_+ of chapter 10 is elementary. Proved in his Part II, §6.4: that a determinant absorbs one derivative per direction, and the factorial count. Quoted from the Lean development: that the entries of the lift are the numbers ∑νPν ν! cν\sum_\nu P_\nu\,\nu!\,c_\nu, and the exponent bound for the theta series of the proof, which his §III.5 writes up conditionally on the integrality of the theta kernels in the coordinates of the height-two logarithm.