Pillar 1: Derivatives of Theta Functions

Lean v4.37.0-rc1 · Pinned commit 83e14ab4 · 663 traced declarations (1,435 interactive steps across 8 full + 15 headers-only modules) · zero sorry · 3 standard axioms (propext, Classical.choice, Quot.sound)

Role in the proof: Feeds p-adic divisibility gains into Upper Bound (Theorem A) and One Lift (Theorem C). Jump to target theorem → · Back to Hub

How derivatives of CM theta functions encode prime-counting sums through Frobenius congruences, integral vacua, and sharp p-adic jet bounds.

Across all 23 Lean 4 files in src/New/Derivatives of leanprover-community/riemann-hypothesis (commit 83e14ab4), Lean 4.37.0-rc1 mechanically checks both sides of the p-adic divisibility theory for CM theta jets using only propext, Classical.choice, and Quot.sound: derivatives of standard theta data along minor products and Schur matrix entries acquire at least the predicted p-adic valuation at every non-split prime, and twelve copies of indicator data attain that valuation bound up to a controlled global factor across all primes.

This Pillar 1 walkthrough traces all 23 files of src/New/Derivatives feeding Theorems A and C. In the proof of GRH, the prime-counting sum s_fin enters the main inequality through the p-adic divisibility of high-order derivatives of theta functions attached to a cyclotomic CM field E = K(ζ). At every prime p that does not split in K = ℚ(√-d), a Frobenius congruence on the formal group of the CM elliptic curve puts every theta product along a resolution of the identity into a universal normal form governed by cross-place couplings Γₑ pairing each infinite place τ with its partner -p^e τ. Changing directions by integral matrices forces those couplings to be divisible by πₚ and yields the upper bound on jet norms used in Theorem A, while a matching twelve-copy construction proves the bound is sharp for the Hecke L-value height estimates in OneLift and Theorem C.

Why cross-place couplings turn theta derivatives into prime sums

Let p be an inert prime in K = ℚ(√-d) and let θ be the normalized theta function of the CM elliptic curve ℂ / Ω₀ 𝓞_K. Because p is supersingular, the Frobenius congruence θ(p z) = θ(z)^(p²) (1 + p H) in 𝒪[[y]] forces the logarithm g = -log θ to satisfy p² g(z) - g(p z) ∈ p 𝒪[[y]]. Rescaling by ϖ of p-adic valuation ρ_p = 1/(p² - 1) splits θ(ϖ z) into an integral factor W times exp((ϖ^(p+1)/p) Ξ), where Ξ is congruent modulo p to a sum of Frobenius powers of (z^(p^e) z) over odd exponents e.

When we form a product of theta functions along a resolution of the identity ∑ m_j u_j u_j† = 1 over the cyclotomic CM field E = K(ζ), the Frobenius action at p sends the p^e-th power at an infinite place τ to complex conjugation at its partner place τ' = -p^e τ modulo p. Summing over the resolution turns each one-variable term into the cross-place coupling Γₑ = ∑ z_(τ,c)^(p^e) z_(τ',c), placing the multivariable theta series in normal form.

To bound the p-adic norm of a derivative along a product of minors of shape κ (with a_τ columns of height 1 at place τ), NullFrames chooses integral direction-change matrices whose determinant valuations cost at most v(πₚ) times the deduction term min(a_τ / p^e, a_τ' + a'_τ') + ... at each partner pair. Once every relevant coupling is divisible by πₚ, the rescaled series is integral up to degree B, Legendre's bound gives v(B!) ≥ B/(p - 1) - O(log B), and subtracting B ρ_p plus the direction-change deduction leaves the predicted divisibility ∑ (a_τ / p^e - a_τ' - a'_τ')₊. Conversely, on twelve copies of a tight frame of length M = p₀ p₁, coupling near pairs of b-places at rate γₚ = p/(p² - 1) produces a Taylor coefficient whose valuation is at most Sₚ + v(t), showing the divisibility law is sharp.

Derivatives that count primes

NullFrames, NormalForm, and Count develop the abstract p-adic valuation engine for multivariable power series in normal form. Starting from couplings Γₑ pairing each place τ with its partner pr e τ, exists_newDirection_dvd constructs integral direction changes that make non-exempt couplings divisible by π at determinant cost bounded by the local deduction term. Applying Legendre's factorial bound (norm_jet_le_of_isHomogeneous) after the chain rule proves the general jet divisibility theorems along minor products (with and without row charges) and transfers the bound to entries of Schur matrices.

  • Cross-place coupling series Γₑ
  • Normal form of a multivariable power series
  • Integral direction changes annihilating non-exempt couplings mod π

    Given π ∣ p and integral direction vectors y, produces square integral matrices g τ h such that every non-exempt pairing ∑ β_a^(p^e) β'_a at partner places is divisible by π, while the product of |det(g τ h)|^(κ τ h) is at least ‖π‖^(∑ deductionTerm).

    theorem New.exists_newDirection_dvd {p : ℕ} [Fact (Nat.Prime p)] {Φ : Type} {n : Type} [Fintype Φ] [DecidableEq Φ] [Fintype n] {π : ↥(New.valRingCp p)} (hπ : π ∣ ↑p) (pr : ℕ → Φ → Φ) (S : Finset ℕ) (N : ℕ) (κ : Φ → ℕ → ℕ) (marked : Finset Φ) (y : Φ → n → ℕ → ↥(New.valRingCp p)) :
      ∃ g,
      (∀ e ∈ S,
          ∀ (τ : Φ) (h : ℕ) (k : Fin h) (h' : ℕ) (k' : Fin h'),
            ¬New.IsExemptPair marked τ (pr e τ) h h' →
              π ∣ ∑ a, New.newDirection g y τ h k a ^ p ^ e * New.newDirection g y (pr e τ) h' k' a) ∧
        ‖↑π‖ ^ ∑ e ∈ S, ∑ τ, New.deductionTerm p κ N marked τ (pr e τ) e ≤ ∏ τ, ∏ h, ‖↑(g τ ↑h).det‖ ^ κ τ ↑h
  • Legendre's bound for jets of an integral series

    If a power series G over ℂₚ has integral coefficients in degree l and Q is a homogeneous integral polynomial of degree l in |σ| variables, then ‖Q(∂)G(0)‖ ≤ p^(|σ| (⌊logₚ l⌋ + 1) - l / (p - 1)).

  • Product of matrix minors along a diagram filling
  • Chain rule for linear direction substitutions on minor products
  • Row-charge condition covering exempt marked-place pairs
  • Predicted p-adic divisibility of a diagram shape κ
  • Identity relating total deductions to γₚ B minus predicted divisibility
  • Jet divisibility count with charges cut off at ⌊logₚ B⌋

    For non-split p, ‖ϖ‖ = p^(-ρ_p), a series F in normal form, and valid charge exponents w covering marked places, bounds ‖jetPairing (minorProd i' y) F‖ by p^(fillingCharge w i' - (γₚ B - v(πₚ) ∑_(e ≤ ⌊logₚ B⌋) deductionTerm - f N³ (⌊logₚ B⌋ + 1))).

  • Jet divisibility with erased marked height-1 columns and row charges

    Replaces the truncated deduction sum in the charge-exponent count with the predicted divisibility on the erased diagram plus γₚ for each removed height-1 box, losing at most f N³ (1 + logₚ max(B, 1)).

  • Divisibility count: jets of normal-form series along minor products

    Specializes the charged divisibility count to no marked places and zero charges: for any series F in normal form at a non-split prime p, the jet of F along minorProd i' y has p-adic norm at most p^(-(predicted divisibility - f N³ (1 + logₚ max(B, 1)))).

    theorem New.Parameters.norm_jet_minorProd_le_of_hasNormalForm (P : Parameters) (s : ℕ) {p : ℕ} [Fact (Nat.Prime p)] [PadicPlace p] {n : Type} {n' : Type} [Fintype n] [Fintype n'] {κ : P.Φ s → ℕ → ℕ} {ϖ : ℂ_[p]} {l : ℕ → ℕ → ↥(valRingCp p)} {F : MvPowerSeries (P.Φ s × n' × n) ℂ_[p]} [DecidableEq n'] (hp : (chiK P.d) ↑p ≠ 1) (hϖ : ‖ϖ‖ = ↑p ^ (-varpiValuation P.d p)) (hF : HasNormalForm (partnerExponents P.d p) (P.partner s p) ϖ l F) (i' : WeylIndex n' κ) (y : P.Φ s → n → ℕ → ↥(valRingCp p)) :
      have N := Fintype.card n';
    ‖(jetPairing (minorProd i' fun τ a k ↦ ↑(y τ a k))) F‖ ≤
      ↑p ^
        (-(predictedDivisibility P.d p (P.partner s p) κ N -
            ↑(Fintype.card (P.Φ s)) * ↑N ^ 3 * (1 + Real.logb ↑p ↑(max (boxes κ N) 1))))
  • Bounding any Schur matrix jet by a minor-product jet

    When κ fits ranks |n| ≤ |n'|, uses linear independence of the nablaBasis times detPow polynomials over the algebraically closed residue field of ℂₚ to find integral matrices y_τ with ‖schurJet κ F i' i‖ ≤ ‖jetPairing (minorProd i' y) F‖.

The CM field, chosen places, and characters

PrimeDecomposition, WeilData, and ChosenPlaces construct the arithmetic scaffolding of the cyclotomic CM field E = K(ζ). PrimeDecomposition builds a purely imaginary generator δ_E of the different of E and the Frobenius element pair at primes p ∤ q₁ d. WeilData constructs the finite idele α and the normalizing vacuum root s₀ with |σ s₀|² = rd(E) / √d. ChosenPlaces defines the chosen places dividing π_M above p₀ and p₁, local residue characters of order q₂, automorphic weight characters, the finite set of critical pairs, and the [x¹⁰, x¹²] bounds on the different and root discriminant.

  • Purely imaginary generator of the different of E
  • Frobenius element pair at a prime p ∤ q₁ d
  • Galois conjugates of the vacuum root have squared norm rd(E) / √d

    For the principal f-th normalizing root s₀ (in Lean, vacuumRoot P s) of (chiFin α)⁻¹ and every automorphism σ of ℂ over K, proves ‖σ s₀‖² = rootDiscr(E) / √d.

  • Chosen finite places of E above p₀ and p₁
  • Every chosen place lies above p₀ or p₁
  • Local residue character of order q₂ at chosen places
  • Existence of automorphic U(1) characters of prescribed weight and tame part

    For all natural numbers a and n, constructs an automorphic character μ of U(1)(𝔸_E) trivial on Eˣ of infinite weight -a · D.liftWeight 0 and tame part D.chiMLocal^n, verifying consistency on integral roots of unity ζ^k.

  • Base automorphic character of weight -w₀ and trivial tame part
  • Critical pair (character ν and integer z) for L-value ratios
  • Finiteness of the set of critical pairs

    Proves that D.CriticalPair is finite because the bounded integer weights c, the integer z ∈ [1, t], the tame characters on the finitely many chosen places, and the characters of each fixed weight and tame part are all finite.

    instance New.Data.finite_criticalPair {P : Parameters} {D : Data P} :
      Finite D.CriticalPair
  • Root discriminant of E lies in [x¹⁰, x¹²]

    Using |δ_E|_v = A · towerDeg s · √d with |log A| ≤ P.constantBound and scale arithmetic, pins every infinite valuation of the different generator and hence their geometric mean D.rootDisc inside [D.x¹⁰, D.x¹²].

Formal group, Frobenius congruence, and theta products

FrobeniusCongruence, Exponent, Resolution, and ThetaProducts derive the normal form of CM theta products at every prime p not splitting in K = ℚ(√-d). On one elliptic curve, FrobeniusCongruence proves θ(πₚ z) = θ(z)^qₚ (1 + πₚ H), its logarithm qₚ g(z) - g(πₚ z) ∈ πₚ 𝒪[[y]], and that the zᵖ⁻¹ coefficient of x is a p-adic unit when p is inert. Exponent solves the resulting functional equation to write θ(ϖ z) = W exp(c_ϖ Ξ) with unit leading coefficients. ThetaProducts then lifts this to E = K(ζ): modulo πₚ, the p^e-th power at place τ equals complex conjugation at partner -p^e τ, putting every theta product along an integral resolution of the identity into normal form.

  • Isogeny factorization of the rescaled theta function θ(πₚ z)
  • Frobenius congruence for the CM theta function

    For prime d ≡ 7 (mod 8) and any prime p not splitting in ℚ(√-d), proves θ(πₚ z) = θ(z)^qₚ (1 + πₚ H) in ℂₚ[[z]] for an integral series H ∈ 𝒪[[y]].

  • Logarithmic Frobenius congruence qₚ g(z) - g(πₚ z) ∈ πₚ 𝒪[[y]]

    Takes the logarithm of the theta Frobenius congruence to show that g = -log θ satisfies qₚ g(z) - g(πₚ z) = πₚ H for some H ∈ 𝒪[[y]].

  • The zᵖ⁻¹ coefficient of x is a unit at inert primes

    When p = 2m + 1 is inert in ℚ(√-d), uses the three-term differential recursion for [z^(p-1)] x^n and [z^(2m)] x^m = 1 to prove ‖coeff (p - 1) (taylorVia ι_p C.translatedX)‖ = 1.

  • One-curve exponential normal form for θ(ϖ z)

    At any non-split prime p, constructs ϖ of valuation ρ_p and integral series W, Ξ (with Ξ(0) = 0) such that θ(ϖ z) = W exp((ϖ^(p+1)/p) Ξ) and Ξ ≡ ∑_(e ∈ I_p°, j) λ_(e,j) (z^(p^e) z)^(p^j) (mod πₚ), with every λ_(e,0) a unit for odd e when p is inert.

  • Resolution of the identity over Eⁿ
  • Frobenius partner place of τ in Gal(E/K)
  • Frobenius power at τ matches conjugation at its partner mod πₚ

    For every e ∈ I_p° = partnerExponents P.d p, infinite place τ, and algebraic integer α ∈ 𝓞_E, proves ‖ι_p(Φ_τ α)^(p^e) - ι_p(conj(Φ_(-p^e τ) α))‖ ≤ ‖ι_p(πₚ)‖.

  • Resolution sums of Frobenius linear forms equal Γₑ mod πₚ

    For any resolution of the identity (u, m) integral above a non-split prime p and any e ∈ I_p°, proves πₚ ∣ ∑ m_j (u_j† z)^(p^e) (u_j† z) - coupling (P.partner s p) e.

  • Normal form for theta products along integral resolutions

    For any non-split prime p, produces ϖ (valuation ρ_p) and integral λ_(e,j) (units at j = 0, odd e when p is inert) such that every product ∏ θ(u_j† z)^(m_j) · H along an integral resolution (u, m) and integral H in the multivariable series ring has normal form.

The integral vacuum and divisibility of standard data

TightFrames, IntegralVacuum, JetIntegrality, Scale, ShortVectors, StandardDataProducts, and Vacuum.Divisibility connect the formal-group normal form to adelic Weil-representation data on definite hermitian spaces. TightFrames fixes the theta jet scale, ShortVectors builds tight frames of length M = p₀ p₁ with large multiplicities and a p-adic unit form at every prime, and IntegralVacuum scales the vacuum to θ° so its finite values are everywhere integral with conjugates bounded by exp(C q₁²)ⁿ while tracking Galois actions on jets. StandardDataProducts expresses standard data as theta products along resolutions, and Vacuum.Divisibility proves universal jet integrality at all primes and the full normal-form divisibility theorem for minor products and Schur matrix entries with charges.

  • Canonical scale of theta Taylor series
  • Tight frame of length M = p₀ p₁ with large multiplicities and unit forms

    Constructs a tight frame v in 𝔞₀ of length D.M = p₀ p₁ with every multiplicity c_i ≥ 6 f b such that, for every prime p and embedding ι_p, at least one member v_i has a p-adic unit linear form at every infinite place.

  • Vector realizing a theta product along the powers of ζ
  • Existence of a rank-one integral, conjugate-bounded vacuum multiple

    Finds a constant C independent of s and, for each tower level s, a nonzero scalar c such that c · vacElem on stdSpace (P.E s) Unit has values of p-adic norm ≤ 1 at every prime and K-conjugates bounded by exp(C q₁²).

  • The integral vacuum θ° on a hermitian space of rank n
  • Module of standard theta data of level δ at prime p
  • Finite values of the integral vacuum are integral at every prime
  • Galois action on jets of translates of a generating vector

    Produces finite adeles B σ for each σ ∈ Gal(ℂ/K) and, on every standard space V, a generating vector F with θ F = 1 such that σ maps jets of translates of F at the theta jet scale to jets of translates of a conjugate vector F' by B σ at a scale t with ‖t‖² = (P.bigOmega s)⁻¹.

  • Standard data expand as theta products along integral resolutions
  • Universal p-adic integrality of derivatives of standard data

    For any prime p, δ ≠ 0 in 𝓞_K, standard theta datum f of level δ, scalar c ∈ ℂ, and homogeneous p-integral polynomial Q of degree l, proves ‖ι_p(Q(∂)(jetSeries (c · jetScale) f)(0))‖ ≤ ‖ι_p(c / (δ̄ d))‖^l.

  • Standard data of level 1 have the normal form at non-split primes

    For any non-split prime p, standard theta datum f of level 1, and p-integral scalar c, shows that the mapped Taylor series (V.jetSeries (c · jetScale) f).map ι_p satisfies normal form with ‖ϖ‖ = p^(-ρ_p).

  • Divisibility of standard-data jets along products of minors

    For standard data f of level 1 on Hom(stdSpace n, stdSpace n') and non-split p, proves that the jet along minorProd i' y has p-adic norm at most p^(-(predicted divisibility - f N³ (1 + logₚ max(B, 1)))).

  • Divisibility of Schur matrix jets of standard data with charges

    For standard data f of level 1 on Hom(stdSpace n, stdSpace n'), non-split p, diagram κ fitting ranks, erased marked places, and valid charge exponents, bounds ‖ι_p(schurJet κ F i' i)‖ by p^(fillingCharge - (predicted divisibility(κ°) + γₚ (B - B°) - f N³ (1 + logₚ max(B, 1)))).

    theorem New.Parameters.norm_schurJet_jetSeries_le_of_charges {P : Parameters} {s : ℕ} {n : Type} {p : ℕ} [Fact (Nat.Prime p)] [Fintype n] [DecidableEq n] [PadicPlace p] {n' : Type} [Fintype n'] [DecidableEq n'] {κ : P.Φ s → ℕ → ℕ} {f : 𝒮 ((stdSpace (P.E s) n).hom (stdSpace (P.E s) n'))} {c : ℂ} (hp_nonsplit : (chiK P.d) ↑p ≠ 1) (hκ : FitsRanks (fun x ↦ n) (fun x ↦ n') κ) (hf : f ∈ standardData ((stdSpace (P.E s) n).hom (stdSpace (P.E s) n')) 1) (hc : ‖ιₚ c‖ ≤ 1) (erasedPlaces : Finset (P.Φ s)) (chargeExp : P.Φ s → ℕ → n' → ℕ) (h_charge : ∀ e ∈ partnerExponents P.d p, IsChargeExponent (P.partner s p e) erasedPlaces chargeExp) (i' : WeylIndex n' κ) (i : WeylIndex n κ) :
      have N := Fintype.card n';
    have B := boxes κ N;
    ‖ιₚ ((schurJet κ) ((((stdSpace (P.E s) n).hom (stdSpace (P.E s) n')).jetSeries (c * P.jetScale s)) f) i' i)‖ ≤
      ↑p ^
        (↑(fillingCharge chargeExp i') -
          (predictedDivisibility P.d p (P.partner s p) (eraseHeightOne κ erasedPlaces) N +
              gammaPrime P.d p * (↑B - ↑(boxes (eraseHeightOne κ erasedPlaces) N)) -
            ↑(Fintype.card (P.Φ s)) * ↑N ^ 3 * (1 + Real.logb ↑p ↑(max B 1))))

Sharpness: attaining the valuation bound

OneCurve, LeastValuation, Couplings, NearPairs, Cases, and BoundAttained prove that the predicted p-adic divisibility S_p cannot be improved globally. OneCurve proves Katz's rate limit γ_p on a single CM curve, LeastValuation introduces the n-copy valuation predicate LeastValLE, and Couplings bounds val₆ along a coupling family at inert primes. NearPairs classifies near pairs of b-places and absorbs non-near-pair errors into the loss product B_τ. Cases combines split primes, inert primes p > k, and non-split primes p ≤ k to prove v(l!) + val₁₂(l) ≤ S_p + 2 ∑ v(B_τ) for all primes, and BoundAttained lifts this via Fourier inversion to a single conjugate-bounded denominator t attaining S_p on twelve-copy indicator data.

  • One-curve Katz divisibility limit at rate γₚ

    For every prime p and every degree n, constructs a series f ∈ 𝒪[[y]] on the CM elliptic curve whose n-th derivative satisfies p^(-n γₚ) ≤ ‖n! · coeff n f‖, showing no uniform divisibility rate above γₚ holds.

  • Multi-copy least valuation bound valₙ(ν) ≤ r
  • Six-copy valuation bound along a coupling family at inert primes

    At an inert prime p > 2 for a normal-form theta product with unit leading coefficients and a coupling family (Φ₀, e), proves both val₆(ν) ≤ -|j| and v(ν'! ν''!) + val₆(ν) ≤ γₚ |ν| - |j| for ν = ν' + ν'' = powerDegree + partnerDegree.

  • Near pair (τ, e) of b-places at a non-split prime
  • Degree l near the place weights κ
  • Normal form with unit leading coefficients along a tight frame
  • Twelve-copy sharpness bound at split primes
  • Twelve-copy sharpness bound at inert primes p > k
  • Twelve-copy sharpness bound at non-split primes p ≤ k
  • Unified twelve-copy valuation bound across all primes

    Combines the split, large inert (p > k), and small non-split (p ≤ k) cases to prove v(l!) + val₁₂(l) ≤ Sₚ + 2 ∑ v(B_τ) for every prime p and every degree l near the weights.

  • Reducing twelve-copy curve valuations to indicator theta data

    Lifts a twelve-copy valuation witness to an adelic resolution product on Hom(E, E¹²) and applies Fourier inversion modulo 𝔪 = (π_M) to find an exponent γ of total degree l and residue class y₀ whose indicator theta datum (indicatorDatum) Taylor coefficient times the twelfth power of the vacuum scaling factor has valuation at most r + v(M^(12 f) c₀).

  • Sharpness: attaining Sₚ across all primes with one global factor t

    For any degree l with κ ≤ l ≤ κ + x^42, produces a single nonzero complex number t with all Galois conjugates ‖σ t‖ ≤ exp(f m b / k) such that at every prime p and embedding ι_p, some degree-l Taylor coefficient of the indicator theta datum at (𝔪, y₀) (times the twelfth power of the vacuum scaling factor · ∏ l! / t) has p-adic norm at least p^(-Sₚ).

    theorem New.Data.exists_rpow_neg_localPrimeSumTotal_le_norm_coeff {P : Parameters} (D : Data P) (l : D.Φ → ℕ) (hl : ∀ (τ : D.Φ), ↑(D.weight τ) ≤ ↑(l τ) ∧ ↑(l τ) ≤ ↑(D.weight τ) + D.x ^ 42) :
      ∃ t,
      t ≠ 0 ∧
        (∀ (σ : ℂ ≃+* ℂ), ‖σ t‖ ≤ rexp (↑D.f * ↑D.m / ↑D.k * D.b)) ∧
          ∀ (𝔪 : Modulus D.E),
            𝔪.ideal = Ideal.span {D.piM} →
              ∀ (p : ℕ) [inst : Fact (Nat.Prime p)] [inst_1 : PadicPlace p],
                ∃ γ y₀,
                  (∀ (τ : D.Φ), ∑ b, γ (τ, b, ()) = l τ) ∧
                    ↑p ^ (-D.localPrimeSumTotal p) ≤
                      ‖ιₚ
                          (P.vacuumScale D.towerExp ^ 12 / t * ↑(∏ τ, (l τ)!) *
                            (coeff γ) (D.twelveTaylor (D.indicatorDatum 𝔪 y₀)))‖