RiemannA guide by Principia Superintelligence

Part II, chapter 13

Size, periods, and the count of forms

The size side of (M). The squared norm of a lift has logarithm a(log⁡a−1−log⁡ΩE)+⋯a(\log a - 1 - \log\Omega_E) + \cdots with the linear term known exactly: a Gaussian integral, a period fixed by Kronecker's limit formula (the Chowla–Selberg form), and a count of forms by Siegel's mass formula and Weyl's dimension formula. After an exact cancellation the linear term is the main term MM of the prime sum. That the two sides produce the same linear term is the reason the method can work at all.

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

The model for the size of a derivative

Let FF be an entire function with ∣F(z)∣≤S e∣z∣2/2|F(z)| \le S\,e^{|z|^2/2} for all zz. Cauchy’s formula on the circle ∣z∣=n|z| = \sqrt n gives ∣F(n)(0)∣≤n! S en/2 n−n/2|F^{(n)}(0)| \le n!\,S\,e^{n/2}\,n^{-n/2}, so by Stirling, if F(n)(0)≠0F^{(n)}(0) \ne 0,

log⁡∣F(n)(0)∣2  ≤  2log⁡S+nlog⁡n−n+O(log⁡(n+1)).\log|F^{(n)}(0)|^2 \;\le\; 2\log S + n\log n - n + O(\log(n+1)) .

One factorial for the square, as in chapter 9. Compare a function with a pole at finite distance, such as 1/(1−z)1/(1 - z), whose nn-th derivative at 00 is n!n!: the logarithm of the square is 2log⁡n!2\log n!. That was the lemniscate sine of chapter 8. If the coordinate is changed by a factor, z=λwz = \lambda w with ∣λ∣2=1/Ω|\lambda|^2 = 1/\Omega, the nn-th derivative with respect to ww is λn\lambda^n times that with respect to zz, and the bound becomes nlog⁡n−n−nlog⁡Ω+2log⁡S+O(log⁡(n+1))n\log n - n - n\log\Omega + 2\log S + O(\log(n+1)). This is the shape a(log⁡a−1−log⁡Ω)a(\log a - 1 - \log\Omega) of the size estimate, with its sign. The archive writes the function ylog⁡y−yy\log y - y as ph:

Formalism.RankGapBounds.WeightedMeanData.phdefRankGapBounds/MeanBoundSecondForm.lean:9ph(y)=ylog⁡y−y\mathrm{ph}(y) = y\log y - y: Stirling's leading terms, the shape of log⁡a!\log a!.
def ph (y : ℝ) : ℝ

ph(y)=ylog⁡y−y\mathrm{ph}(y) = y\log y - y: Stirling's leading terms, the shape of log⁡a!\log a!.

The paragraphs of the exposition's Part III, §III.4 carry the model over to the setting of the proof: several complex variables, a polynomial with values in linear maps in place of a single derivative, several blocks of variables (one per place), and sums over classes of lattices. The one-block, one-map and chain estimates are proved there in an abstract setting; four passages (the reference mean square, the eigenvalues of a lift, the row-by-row comparison with the hook product, the pairing at the end of the chain) are conditional on inputs from the archive.

Two columns: the main term of the prime sum and the size of the lift per derivative. Kronecker's limit formula for the period makes log⁡π\log\pi and log⁡v\log v cancel against the count of forms, and what remains is exactly MM.

The period

The constants Ω\Omega and ΩE\Omega_E are periods: Ω\Omega belongs to an elliptic curve with complex multiplication by Q(−d)\mathbb Q(\sqrt{-d}), and ΩE\Omega_E to the field EE. A derivative with respect to the algebraic invariant differential and one with respect to the analytic variable differ by a constant factor, the period; an aa-th derivative acquires its aa-th power, and Ω\Omega is the square of that factor. Its value is

log⁡Ω  =  γ+log⁡2πd−L′L(1,χd).\log\Omega \;=\; \gamma + \log\frac{2\pi}{\sqrt d} - \frac{L'}{L}(1, \chi_d) .

In this form the identity is Kronecker's limit formula; Ω\Omega is then a geometric mean, over the ideal classes of Q(−d)\mathbb Q(\sqrt{-d}), of squared periods of the corresponding elliptic curves. Expressing it through values of the Gamma function is the formula of Lerch and of Chowla and Selberg, whose name the archive uses. For Q(i)\mathbb Q(i), with dd replaced by 44 and χd\chi_d by the character modulo 44, exponentiating gives Ω=2π(ϖ/π)2=Γ(14)4/(4π2)\Omega = 2\pi(\varpi/\pi)^2 = \Gamma(\tfrac14)^4/(4\pi^2) exactly: 2π2\pi times the square of the factor ϖ/π\varpi/\pi met in chapter 9.

quantityvalue
Γ(1/4)4 / (4π2)4.376879230
2π (ϖ/π)2, with ϖ the lemniscate constant4.376879230
exp(γ + log(2π/√4) − L′/L(1, χ4))4.376879230
L′/L(1, χ4)0.245609585
log Ω for d = 23: γ + log(2π/√23) − L′/L(1, χ23)1.269466571

The three expressions for ℚ(i) agree to every digit computed; the L-values come from the Laurent expansion of the Hurwitz zeta function at s = 1 (digamma and the first Stieltjes constant), the same routine that produced the constants of chapter 11.

The archive does not construct the period from a specific curve: it states that a curve and a normalisation exist for which the formula holds, in the setting of a CM field EE and a host carrying the prime dd.

GlobalTheory.T.chowla_selberg_periodtheoremGeometryProofs/ChowlaSelbergPeriodStatement.lean:9For a CM field EE, a host HH with its prime dd, the Kronecker character χ\chi modulo dd and a square root ρ\rho of −d-d: there is a curve datum ZZ with z≠0z \ne 0 whose curve has the real period x=γ+log⁡(2π/d)−L′(1,χ)/L(1,χ)x = \gamma + \log(2\pi/\sqrt d) - L'(1,\chi)/L(1,\chi). The LL-function is Mathlib's `DirichletCharacter.LFunction`.
theorem _root_.GlobalTheory.T.chowla_selberg_period : ∀ (E : Type) [Field E] [NumberField E] [IsCMField E] (H : Host E) [NeZero H.d] (χ : DirichletCharacter ℂ H.d), IsKroneckerChar χ → ∀ ρ : ℂ, ρ ^ 2 = -(H.d : ℂ) → ∃ (Z : Curve0 H ρ) (x : ℝ), Z.z ≠ 0 ∧ Z.C.HasPeriod x ∧ (x : ℂ) = (Real.eulerMascheroniConstant + Real.log (2 * Real.pi / √H.d) : ℝ) - deriv χ.LFunction 1 / χ.LFunction 1

For a CM field EE, a host HH with its prime dd, the Kronecker character χ\chi modulo dd and a square root ρ\rho of −d-d: there is a curve datum ZZ with z≠0z \ne 0 whose curve has the real period x=γ+log⁡(2π/d)−L′(1,χ)/L(1,χ)x = \gamma + \log(2\pi/\sqrt d) - L'(1,\chi)/L(1,\chi). The LL-function is Mathlib's `DirichletCharacter.LFunction`.

Full declaration with proof
theorem _root_.GlobalTheory.T.chowla_selberg_period : ∀ (E : Type) [Field E] [NumberField E] [IsCMField E] (H : Host E) [NeZero H.d] (χ : DirichletCharacter ℂ H.d), IsKroneckerChar χ → ∀ ρ : ℂ, ρ ^ 2 = -(H.d : ℂ) → ∃ (Z : Curve0 H ρ) (x : ℝ), Z.z ≠ 0 ∧ Z.C.HasPeriod x ∧ (x : ℂ) = (Real.eulerMascheroniConstant + Real.log (2 * Real.pi / √H.d) : ℝ) - deriv χ.LFunction 1 / χ.LFunction 1 := by
  first | exact @GlobalTheory.CompanionTheory.Ar.Fl.exists_curve0_hasPeriod | exact GlobalTheory.CompanionTheory.Ar.Fl.exists_curve0_hasPeriod | (intros; apply GlobalTheory.CompanionTheory.Ar.Fl.exists_curve0_hasPeriod <;> assumption)
GlobalTheory.CompanionTheory.Ar.Fl.Curve0structureGlobalGeometry/IsCMFrame.lean:15The curve datum: a number field MM, an elliptic curve over its integers with the CM parameter ω\omega (2ω−1=ρ2\omega - 1 = \rho), its base change to C\mathbb C, a holomorphic uniformisation whose lattice is quadratic of discriminant dd up to the scalar cc, and the differential.
structure Curve0 (H : Host E) (ρ : ℂ) : Type 1

The curve datum: a number field MM, an elliptic curve over its integers with the CM parameter ω\omega (2ω−1=ρ2\omega - 1 = \rho), its base change to C\mathbb C, a holomorphic uniformisation whose lattice is quadratic of discriminant dd up to the scalar cc, and the differential.

Full declaration with proof
structure Curve0 (H : Host E) (ρ : ℂ) : Type 1 where
  M : IntermediateField ℚ ℂ
  [nf : NumberField M]
  ω : 𝓞 M
  C : Ell H (𝓞 M) ω
  hω : 2 * ((ω : M) : ℂ) - 1 = ρ
  C' : Ell H ℂ ((ω : M) : ℂ)
  π : C'.P.A.left ⟶ C.P.A.left
  map : EllMap C' C ((algebraMap M ℂ).comp (algebraMap (𝓞 M) M)) π
  u : HolUnif C'.P.A C'.P.L C'.P.g
  theta : PureType.IsThetaUnif u
  c : ℂ
  c_ne : c ≠ 0
  lat : PureType.IsQuadLattice u.Λ H.d c
  z : ℂ
  diff : u.IsDiff (fun _ => c * z) C'.v

attribute [instance] Curve0.nf

variable {D : Datum H} {l : Level H} {Xo : Moduli D l} {g : ℕ} {ty : Fin g → (E →+* ℂ)}
GlobalTheory.IsKroneckerChardefHomogeneousIdeals/ExistsIsKroneckerCharOfDiscr.lean:388The character χd\chi_d: the Kronecker symbol as a Dirichlet character modulo dd.
def IsKroneckerChar {d : ℕ} (χ : DirichletCharacter ℂ d) : Prop

The character χd\chi_d: the Kronecker symbol as a Dirichlet character modulo dd.

Full declaration with proof
def IsKroneckerChar {d : ℕ} (χ : DirichletCharacter ℂ d) : Prop :=
  ∀ n : ℕ, Odd n → χ n = (J(-(d : ℤ) | n) : ℤ)

The constant that enters the size bound for the field EE is ΩE\Omega_E, with log⁡ΩE=log⁡Ω−log⁡(rdE/d)=γ+log⁡(2π/rdE)−L′/L(1,χd)\log\Omega_E = \log\Omega - \log(\mathrm{rd}_E/\sqrt d) = \gamma + \log(2\pi/\mathrm{rd}_E) - L'/L(1,\chi_d), where rdE=∣disc E∣1/[E:Q]\mathrm{rd}_E = |\mathrm{disc}\,E|^{1/[E:\mathbb Q]} is the root discriminant. With v=rdE/2v = \mathrm{rd}_E/2 this is the form the archive uses in its comparison record:

Formalism.RankGapBounds.WeightedMeanData.Data.logOmdefRankGapBounds/MeanBoundSecondForm.lean:88log⁡ΩE=γ+log⁡(π/v)−L′/L(1,χd)\log\Omega_E = \gamma + \log(\pi/v) - L'/L(1,\chi_d), from the fields `gam`, `v`, `LpL` of the record of chapter 11.
def logOm : ℝ

log⁡ΩE=γ+log⁡(π/v)−L′/L(1,χd)\log\Omega_E = \gamma + \log(\pi/v) - L'/L(1,\chi_d), from the fields `gam`, `v`, `LpL` of the record of chapter 11.

The count of forms

The other source of linear terms is a count. The mass of a definite genus is the sum of 1/∣Aut⁡Li∣1/|\operatorname{Aut}L_i| over its lattice classes, as in chapter 9. The dimension of a representation of GLr\mathrm{GL}_r with strictly decreasing shifted weights z1,…,zrz_1, \ldots, z_r is Dr(z)=Vr(z)/∏j<rj!D_r(z) = V_r(z)/\prod_{j<r}j! with Vr(z)=∏i<j(zi−zj)V_r(z) = \prod_{i<j}(z_i - z_j) (Weyl's formula). Siegel's mass formula gives the ratio of masses between consecutive ranks; writing f=2nf = 2n for the number of weight places and κr>0\kappa_r > 0 for the extra local factors,

MrMr−1  =  (r−1)! (vπ)rf(2v)−f/2 κr.\frac{M_r}{M_{r-1}} \;=\; (r-1)!\,\Big(\frac v\pi\Big)^{rf}(2v)^{-f/2}\,\kappa_r .

For two ranks r0<r1r_0 < r_1 with weight lists uρ,wρu_\rho, w_\rho at the ff places, multiplying the mass ratios and the ff dimension ratios gives precisely

Mr1∏ρDr1(wρ)Mr0∏ρDr0(uρ)  =  ∏ρVr1(wρ)Vr0(uρ)⋅(vπ)f∑r0<r≤r1r(2v)−(r1−r0)f/2∏r0<r≤r1κr,\frac{M_{r_1}\prod_\rho D_{r_1}(w_\rho)}{M_{r_0}\prod_\rho D_{r_0}(u_\rho)} \;=\; \prod_\rho\frac{V_{r_1}(w_\rho)}{V_{r_0}(u_\rho)}\cdot\Big(\frac v\pi\Big)^{f\sum_{r_0 < r \le r_1} r}(2v)^{-(r_1 - r_0)f/2}\prod_{r_0 < r \le r_1}\kappa_r ,

because the extra (r−1)!(r-1)! in the mass cancels the extra (r−1)!(r-1)! in each dimension denominator. For a numerical check take one place, r0=2r_0 = 2, r1=3r_1 = 3, u=(3,1)u = (3,1), w=(5,3,0)w = (5,3,0): the dimensions are 22 and 1515, the ratio is 15/215/2, the factorial from the mass is 22, leaving 15=V3(w)/V2(u)=30/215 = V_3(w)/V_2(u) = 30/2. The archive states the mass recurrence, with vv computed from the discriminant, and proves it for unimodular definite lattices in a separate theorem.

Formalism.HermitianLatticesTheory.SiegelMassRatiodefHermitianLattices/StatementMass.lean:67For a CM field KK unramified in the relevant sense, M≥3M \ge 3, and orthonormal Hermitian lattices L,L′L, L' of ranks MM and M−1M - 1: mass(L)/mass(L′)=\mathrm{mass}(L)/\mathrm{mass}(L') = the right side below.
def SiegelMassRatio : Prop

For a CM field KK unramified in the relevant sense, M≥3M \ge 3, and orthonormal Hermitian lattices L,L′L, L' of ranks MM and M−1M - 1: mass(L)/mass(L′)=\mathrm{mass}(L)/\mathrm{mass}(L') = the right side below.

Full declaration with proof
def SiegelMassRatio : Prop :=
  ∀ (K : Type) [Field K] [NumberField K] [StarRing K], IsCMUnram K →
    ∀ (M : ℕ), 3 ≤ M →
    ∀ (V V' : Type) [AddCommGroup V] [Module K V] [Module (RingOfIntegers K) V]
      [IsScalarTower (RingOfIntegers K) K V] [AddCommGroup V'] [Module K V']
      [Module (RingOfIntegers K) V'] [IsScalarTower (RingOfIntegers K) K V']
      (h : V →ₗ⋆[K] V →ₗ[K] K) (h' : V' →ₗ⋆[K] V' →ₗ[K] K)
      (L : Submodule (RingOfIntegers K) V) (L' : Submodule (RingOfIntegers K) V'),
      h.IsSymm → h'.IsSymm → IsOrthoLattice h L M → IsOrthoLattice h' L' (M - 1) →
      mass h L / mass h' L' = massRatioRightSide K M
Formalism.HermitianLatticesTheory.massRatioRightSidedefHermitianLattices/StatementMass.lean:40((M−1)! (v/π)M)f/(2v)f⋅∏P(Euler factor)\big((M-1)!\,(v/\pi)^M\big)^f / \sqrt{(2v)^f}\cdot\prod_{\mathfrak P}(\text{Euler factor}), with ff the number of infinite places and vv = `vInv`.
def massRatioRightSide (K : Type*) [Field K] [NumberField K] [StarRing K] (M : ℕ) : ℝ

((M−1)! (v/π)M)f/(2v)f⋅∏P(Euler factor)\big((M-1)!\,(v/\pi)^M\big)^f / \sqrt{(2v)^f}\cdot\prod_{\mathfrak P}(\text{Euler factor}), with ff the number of infinite places and vv = `vInv`.

Full declaration with proof
def massRatioRightSide (K : Type*) [Field K] [NumberField K] [StarRing K] (M : ℕ) : ℝ :=
  (((Nat.factorial (M - 1) : ℕ) : ℝ) * (vInv K / Real.pi) ^ M) ^ fDeg K /
    Real.sqrt ((2 * vInv K) ^ fDeg K) * lValEta K M
Formalism.HermitianLatticesTheory.vInvdefHermitianLattices/StatementMass.lean:27v=∣disc K∣1/(2f)/2=rdK/2v = |\mathrm{disc}\,K|^{1/(2f)}/2 = \mathrm{rd}_K/2.
def vInv (K : Type*) [Field K] [NumberField K] : ℝ

v=∣disc K∣1/(2f)/2=rdK/2v = |\mathrm{disc}\,K|^{1/(2f)}/2 = \mathrm{rd}_K/2.

Full declaration with proof
def vInv (K : Type*) [Field K] [NumberField K] : ℝ :=
  |(discr K : ℝ)| ^ ((1 : ℝ) / (2 * fDeg K)) / 2
Formalism.HermitianLatticesTheory.eulerFacdefHermitianLattices/StatementMass.lean:30The local factor κ\kappa at a prime ideal: (1−(−1)MN(P)−M/2)−1(1 - (-1)^M N(\mathfrak P)^{-M/2})^{-1} at a conjugation-stable prime, (1−N(P)−M)−1/2(1 - N(\mathfrak P)^{-M})^{-1/2} otherwise.
def eulerFac (K : Type*) [Field K] [NumberField K] [StarRing K] (M : ℕ)
    (P : Ideal (RingOfIntegers K)) : ℝ

The local factor κ\kappa at a prime ideal: (1−(−1)MN(P)−M/2)−1(1 - (-1)^M N(\mathfrak P)^{-M/2})^{-1} at a conjugation-stable prime, (1−N(P)−M)−1/2(1 - N(\mathfrak P)^{-M})^{-1/2} otherwise.

Full declaration with proof
def eulerFac (K : Type*) [Field K] [NumberField K] [StarRing K] (M : ℕ)
    (P : Ideal (RingOfIntegers K)) : ℝ :=
  if conjIdeal (K := K) P = P then
    (1 - (-1 : ℝ) ^ M * (Real.sqrt (Ideal.absNorm P : ℝ)) ^ (-(M : ℤ)))⁻¹
  else
    (1 - (Ideal.absNorm P : ℝ) ^ (-(M : ℤ))) ^ (-(1 : ℝ) / 2)
Formalism.HermitianLatticesTheory.massdefHermitianLattices/StatementMass.lean:11The mass: ∑M1/∣Aut⁡M∣\sum_M 1/|\operatorname{Aut}M| over a set of class representatives.
def mass {K V : Type*} [Field K] [NumberField K] [StarRing K] [AddCommGroup V] [Module K V]
    [Module (RingOfIntegers K) V] [IsScalarTower (RingOfIntegers K) K V] (h : V →ₗ⋆[K] V →ₗ[K] K) (L : Submodule (RingOfIntegers K) V) :
    ℝ

The mass: ∑M1/∣Aut⁡M∣\sum_M 1/|\operatorname{Aut}M| over a set of class representatives.

Full declaration with proof
def mass {K V : Type*} [Field K] [NumberField K] [StarRing K] [AddCommGroup V] [Module K V]
    [Module (RingOfIntegers K) V] [IsScalarTower (RingOfIntegers K) K V] (h : V →ₗ⋆[K] V →ₗ[K] K) (L : Submodule (RingOfIntegers K) V) :
    ℝ := by
  classical
  exact if hs : ∃ s, Formalism.ThetaLiftIndependence.IsClassReps h L s then
    ∑ M ∈ hs.choose, ((Nat.card (Formalism.ThetaLiftIndependence.autL h M) : ℕ) : ℝ)⁻¹ else 0
Formalism.HermitianLatticesTheory.IsOrthoLatticedefHermitianLattices/StatementMass.lean:18A lattice spanned by an orthonormal basis of the Hermitian form.
def IsOrthoLattice {K V : Type*} [Field K] [NumberField K] [StarRing K] [AddCommGroup V]
    [Module K V] [Module (RingOfIntegers K) V] (h : V →ₗ⋆[K] V →ₗ[K] K)
    (L : Submodule (RingOfIntegers K) V) (n : ℕ) : Prop

A lattice spanned by an orthonormal basis of the Hermitian form.

Full declaration with proof
def IsOrthoLattice {K V : Type*} [Field K] [NumberField K] [StarRing K] [AddCommGroup V]
    [Module K V] [Module (RingOfIntegers K) V] (h : V →ₗ⋆[K] V →ₗ[K] K)
    (L : Submodule (RingOfIntegers K) V) (n : ℕ) : Prop :=
  ∃ e : Fin n → V, LinearIndependent K e ∧ Submodule.span K (Set.range e) = ⊤ ∧
    L = Submodule.span (RingOfIntegers K) (Set.range e) ∧
    ∀ i j, h (e i) (e j) = if i = j then 1 else 0
Formalism.HermitianLatticesTheory.MassBasicdefHermitianLattices/StatementMass.lean:56Class representatives exist, the mass is their weighted count and it is positive.
def MassBasic : Prop

Class representatives exist, the mass is their weighted count and it is positive.

Full declaration with proof
def MassBasic : Prop :=
  ∀ (K V : Type) [Field K] [NumberField K] [StarRing K] [AddCommGroup V] [Module K V]
    [FiniteDimensional K V] [Module (RingOfIntegers K) V] [IsScalarTower (RingOfIntegers K) K V]
    (h : V →ₗ⋆[K] V →ₗ[K] K), h.IsSymm →
    (∀ x : V, x ≠ 0 → 0 < Algebra.trace ℚ K (h x x)) →
    ∀ L : Submodule (RingOfIntegers K) V, Submodule.IsLattice K L →
      (∃ s, Formalism.ThetaLiftIndependence.IsClassReps h L s) ∧
      (∀ s, Formalism.ThetaLiftIndependence.IsClassReps h L s →
        mass h L = ∑ M ∈ s, ((Nat.card (Formalism.ThetaLiftIndependence.autL h M) : ℕ) : ℝ)⁻¹) ∧
      0 < mass h L
Formalism.HermitianLatticesTheory.massBasictheoremHermitianLatticesProofs/MassBasic.lean:41Its proof.
theorem massBasic : MassBasic

Its proof.

Full declaration with proof
theorem massBasic : MassBasic := by
  intro K V _ _ _ _ _ _ _ _ h hh hpos L hL
  obtain ⟨hex, hwt, -⟩ := Formalism.ThetaLiftIndependence.classRepsDefinite K V h hh hpos L hL
  refine ⟨hex, fun s hs => ?_, ?_⟩
  · rw [massBasic_mass_eq h L hex]
    have e := Formalism.ThetaLiftIndependence.latLiftIndep K V h L (fun _ => 1) (fun _ => 1)
      (fun _ _ _ => rfl) (fun _ _ _ => rfl) _ _ hex.choose_spec hs
    rw [← massBasic_sum_cast, ← massBasic_sum_cast] at e
    exact_mod_cast e
  · rw [massBasic_mass_eq h L hex]
    obtain ⟨hmem, huniq⟩ := hex.choose_spec
    obtain ⟨N, ⟨hN, -⟩, -⟩ := huniq L (massBasic_self_mem_genus h L hL)
    apply Finset.sum_pos
    · intro M hM
      obtain ⟨n, hn, hnw⟩ := hwt M (hmem M hM)
      have hc : Nat.card (Formalism.ThetaLiftIndependence.autL h M) = n := by
        simp only [Formalism.ThetaLiftIndependence.latWt] at hnw
        exact_mod_cast inv_inj.mp hnw
      rw [hc]
      exact inv_pos.mpr (by exact_mod_cast hn)
    · exact ⟨N, hN⟩
Formalism.HermitianLattices.Ext.L3.siegelMassRatiotheoremUnimodularClassRepresentatives/SiegelMassRatioOfLI.lean:59The mass ratio, proved.
theorem siegelMassRatio : Formalism.HermitianLatticesTheory.SiegelMassRatio

The mass ratio, proved.

GlobalTheory.T.siegel_massRatio_unimodular_definitetheoremFlagMeasures/SiegelMassRatioUnimodularDefiniteStatement.lean:6The mass ratio for unimodular definite lattices, in the automorphic part of the archive.
theorem _root_.GlobalTheory.T.siegel_massRatio_unimodular_definite : Formalism.HermitianLatticesTheory.SiegelMassRatio

The mass ratio for unimodular definite lattices, in the automorphic part of the archive.

Full declaration with proof
theorem _root_.GlobalTheory.T.siegel_massRatio_unimodular_definite : Formalism.HermitianLatticesTheory.SiegelMassRatio := by
  first | exact @GlobalTheory.Mass.siegelMassRatio_holds | exact GlobalTheory.Mass.siegelMassRatio_holds | (intros; apply GlobalTheory.Mass.siegelMassRatio_holds <;> assumption)
Formalism.CountingSumsFrames.weylDimdefPolynomialDimension/WeylDim.lean:9Weyl's dimension formula for GLn\mathrm{GL}_n, as a rational number.
def weylDim (n : ℕ) (lam : Fin n → ℤ) : ℚ

Weyl's dimension formula for GLn\mathrm{GL}_n, as a rational number.

Full declaration with proof
def weylDim (n : ℕ) (lam : Fin n → ℤ) : ℚ :=
  ∏ i : Fin n, ∏ j : Fin n,
    if i < j then (((lam i - lam j : ℤ) : ℚ) + ((j : ℕ) : ℚ) - ((i : ℕ) : ℚ)) / (((j : ℕ) : ℚ) - ((i : ℕ) : ℚ))
    else 1

Why the linear term has precisely the required sign

Write TT for the positive auxiliary level attached to one choice of lattice data and ℓg\ell_g for the logarithm of the product of the two level primes. The size and count bounds have the form, at a fixed translate,

hB  ≤  ∑t∈T∑j=1mat(log⁡at−1−log⁡ΩE)−∑tatlog⁡T+Esize,log⁡T  ≥  ∑j=1m(⟨log⁡wu,j⟩+log⁡v−log⁡π)+mℓg−Ecnt,h_B \;\le\; \sum_{t \in T}\sum_{j=1}^m a_t\big(\log a_t - 1 - \log\Omega_E\big) - \sum_t a_t\log T + E_{\mathrm{size}}, \qquad \log T \;\ge\; \sum_{j=1}^m\big(\langle\log w_{u,j}\rangle + \log v - \log\pi\big) + m\ell_g - E_{\mathrm{cnt}} ,

where hB=μCC+h−F0h_B = \mu_{CC} + h - F_0 combines the height hh of the pairing map (the average over the archimedean places of the logarithm of the squared operator norm), the mean slope μCC\mu_{CC} of the common lattice in which all the pairing maps take their values, and the part F0F_0 of the local divisibility that comes from the places other than those of the top weights. Neither offset survives: F0F_0 appears with the opposite sign in the slope of the source lattice after gluing (chapter 14), and μCC\mu_{CC} is the slope of the target in the inequality of chapter 15, where it appears on both sides. Insert the lower bound for log⁡T\log T in the first line. The terms mℓg∑tatm\ell_g\sum_t a_t cancel against the level correction of the divisibility side, and the coefficient of ata_t at step jj is

log⁡at−1−log⁡ΩE−⟨log⁡wu,j⟩−log⁡v+log⁡π  =  log⁡at−1−γ+L′L(1,χd)−⟨log⁡wu,j⟩.\log a_t - 1 - \log\Omega_E - \langle\log w_{u,j}\rangle - \log v + \log\pi \;=\; \log a_t - 1 - \gamma + \frac{L'}{L}(1,\chi_d) - \langle\log w_{u,j}\rangle .

The equality is the period formula. Thus the sum of the surviving terms is exactly ∑t,jMu,t,j\sum_{t,j}M_{u,t,j}: the main term MM needs all three of Stirling (log⁡a−1\log a - 1), the period (−γ+L′/L-\gamma + L'/L) and the count (−⟨log⁡w⟩-\langle\log w\rangle). An uncancelled constant per derivative would survive multiplication by at≈bxa_t \approx bx, and division by BB would leave an error of order xx, against a target of x1/2+εx^{1/2+\varepsilon}. In the finite table of chapter 11 one can check the cancellation even though no level or lattice has been constructed: with a=104a = 10^4 and the elliptic normalisation v=23/2v = \sqrt{23}/2, the combination −log⁡Ω−log⁡v+log⁡π-\log\Omega - \log v + \log\pi equals −γ−0.422120948…-\gamma - 0.422120948\ldots, and the remaining entries log⁡104−1\log 10^4 - 1 and −(log⁡10+7log⁡0.05)/8-(\log 10 + 7\log 0.05)/8 give the 95444.463695444.4636 computed by prime summation.

Formalism.RankGapBounds.WeightedMeanData.Data.DIVdefRankGapBounds/MeanBoundSecondForm.lean:118The size inequality in the archive's record, exactly the first line above: μCC+h−F0≤∑t(m(ph(at)−atlog⁡ΩE)−atlog⁡T)\mu_{CC} + h - F_0 \le \sum_t\big(m(\mathrm{ph}(a_t) - a_t\log\Omega_E) - a_t\log T\big).
def DIV : Prop

The size inequality in the archive's record, exactly the first line above: μCC+h−F0≤∑t(m(ph(at)−atlog⁡ΩE)−atlog⁡T)\mu_{CC} + h - F_0 \le \sum_t\big(m(\mathrm{ph}(a_t) - a_t\log\Omega_E) - a_t\log T\big).

Full declaration with proof
def DIV : Prop :=
  ∀ u0 (u : W u0), D.muCC u0 + D.h u0 u - D.Fo u0 ≤
    (∑ t, ((m : ℝ) * (ph (D.aT t) - D.aT t * D.logOm) - D.aT t * Real.log (D.T u0 u)))
      + C.cDiv * D.nT * D.a * D.La + C.cDiv * (m : ℝ) * (D.B0 + D.Nc) * D.x ^ (C.eDiv * D.ε)
Formalism.MainNotions.flipTwoThree.NumsdefGlobalSchurBounds/FlipTwoThree.lean:45The numerical regime of the size estimate: log⁡(xb v)≤L\log(xb\,v) \le L, log⁡T≤CmL\log T \le C m L, the level primes below eCLe^{CL}, b′≤bb' \le b, the scale Sc\mathrm{Sc}, and Nm2(L+log⁡T)≤Nmb′N_m^2(L + \log T) \le N_m b', among others.
def Nums (D : D7) (T g1 g2 : ℕ) (Cn x b L b' Sc eta : ℝ) : Prop

The numerical regime of the size estimate: log⁡(xb v)≤L\log(xb\,v) \le L, log⁡T≤CmL\log T \le C m L, the level primes below eCLe^{CL}, b′≤bb' \le b, the scale Sc\mathrm{Sc}, and Nm2(L+log⁡T)≤Nmb′N_m^2(L + \log T) \le N_m b', among others.

Full declaration with proof
def Nums (D : D7) (T g1 g2 : ℕ) (Cn x b L b' Sc eta : ℝ) : Prop :=
  0 < b ∧ Real.log (x * b * D.host.v) ≤ L ∧
  Real.log T ≤ Cn * D.R.m * L ∧ Real.log g1 ≤ Cn * L ∧ Real.log g2 ≤ Cn * L ∧
  b' ≤ x * b / x ∧ 1 ≤ Sc ∧ 1 ≤ eta ∧ Sc + eta + D.R.m * D.R.t ≤ b' / x ∧
  (D.R.N D.R.m : ℝ) ^ 2 * (L + Real.log T) ≤ D.R.N D.R.m * b' ∧
  (D.R.N D.R.m : ℝ) * L + Real.log T ≤ b' ∧
  (D.R.m : ℝ) ^ 2 * (D.R.N D.R.m : ℝ) ^ 2 * (L + Real.log T + Real.log ((g1 : ℝ) * g2)) ≤ D.R.N D.R.m * b' * L ∧
  |dlogL D 1| ≤ Cn * L ∧ 2 ≤ x ∧ 1 ≤ D.host.v ∧
  (1 + 2 * (2 * Cn + 4)) * (D.R.m : ℝ) ^ 3 * D.R.N D.R.m ≤ b'
Formalism.MainNotions.flipTwoThree.WtsdefGlobalSchurBounds/FlipTwoThree.lean:55The weights of a word at every place: integers; at top places the first weight between xbxb and 2xb2xb (the order aa) and the last at least b′b'; at thick places between b−Nmb - N_m and b+η+1b + \eta + 1; elsewhere at most 2b′2b'; nondecreasing along the chain and interlacing.
def Wts (D : D7) (u : D.what₂.Word) (Cn x b b' Sc eta : ℝ) : Prop

The weights of a word at every place: integers; at top places the first weight between xbxb and 2xb2xb (the order aa) and the last at least b′b'; at thick places between b−Nmb - N_m and b+η+1b + \eta + 1; elsewhere at most 2b′2b'; nondecreasing along the chain and interlacing.

Full declaration with proof
def Wts (D : D7) (u : D.what₂.Word) (Cn x b b' Sc eta : ℝ) : Prop :=
  ∀ τ : D.what₂.Tau,
    (∀ i < D.R.k, ∃ z : ℤ, lamCol D u τ i = z) ∧
    (IsTop D τ → x * b ≤ (lamCol D u τ 0 : ℝ) ∧ (lamCol D u τ 0 : ℝ) ≤ 2 * (x * b) ∧
      b' ≤ -(lamCol D u τ (D.R.k - 1) : ℝ) ∧ -(lamCol D u τ (D.R.k - 1) : ℝ) < 2 * b' ∧
      ∀ i, 0 < i → i < D.R.k - 1 → 0 ≤ (lamCol D u τ i : ℝ) ∧ (lamCol D u τ i : ℝ) ≤ Sc) ∧
    (¬ IsTop D τ → ∀ i < D.R.k, 0 ≤ (lamCol D u τ i : ℝ) ∧ (lamCol D u τ i : ℝ) ≤ Cn * Sc) ∧
    (∀ j, j + 1 < D.R.m → wJ D u τ j ≤ wJ D u τ (j + 1)) ∧
    (¬ IsThick D τ → ∀ j < D.R.m, (wJ D u τ j : ℝ) ≤ 2 * b') ∧
    (IsThick D τ → ∀ j < D.R.m, b - D.R.N D.R.m ≤ (wJ D u τ j : ℝ) ∧ (wJ D u τ j : ℝ) ≤ b + eta + 1) ∧
    - lamCol D u τ (D.R.k - 1) ≤ wJ D u τ 0 ∧
    ((wJ D u τ (D.R.m - 1) - wJ D u τ 0 : ℚ) : ℝ) ≤ eta

our exposition What is quoted in this comparison: the period formula (proved in the archive as the theorem above), the mass formula (proved), the construction and count of the auxiliary levels, and the local level correction. The analytic norm bound is proved in part in the exposition’s §III.4; the factorial cancellation and all signs are algebraic consequences proved above. His §III.7 proves that the size inequality follows from eleven named inputs (the inner-product formula, the covolumes, the local index bounds, the period input, among them) and that an index-corrected mean of periods equals log⁡ΩE\log\Omega_E under hypotheses stated there; the eleven inputs remain quoted, so the size bound itself remains quoted.