Skip to content

Stage 02 — Derivatives of Theta Functions ​

Stage 02 is the arithmetic engine that makes prime numbers visible inside geometry. Where Stage 01 showed that a one-sided ceiling on the weighted prime-counting remainder Rq0(y) implies both GRH and RH, Stage 02 explains where the prime-counting weight Λ(n)(1−χK(n)) actually comes from: derivatives of elliptic theta functions on a CM elliptic curve over K=Q(−d) automatically accumulate p-adic divisibility at every non-split prime p with the exact slope γp matching that weight, and Stage 02 proves both the lower bound on this divisibility, the existence of a globally integral theta vacuum, and the sharpness of the divisibility law.

Level 1 · First-Principles

Level 1 — First-Principles ​

Why would taking repeated derivatives of a smooth periodic wave know anything about whole numbers greater than 1 with no smaller positive divisorsprime number? Ordinarily, taking n derivatives of a power series ∑ckzk at z=0 multiplies cn by n!. Because n! is divisible by roughly pn/(p−1) for every prime p, ordinary calculus gives every prime the same baseline rate of divisibility, 1/(p−1) per derivative, with no way to distinguish one arithmetic family of primes from another.

Stage 02 breaks that symmetry by working on an elliptic curve with extra algebraic symmetries coming from the integer ring of an imaginary quadratic fieldcomplex multiplication K=Q(−d) (with prime d≡7(mod8)). The basic building block on this CM curve E=C/Ω0OK is its quasi-periodic entire function on the lattice quotient whose Taylor coefficients encode the geometry of the curveelliptic theta function. When you measure the divisibility of its derivatives by powers of a prime p — its prime-by-prime divisibility exponent tracked alongside ordinary sizearithmetic height (its $p$-adic valuation) — the local geometry of the curve near 0 behaves like a power-series addition rule near the origin whose p-th-power behavior reflects how p factors in Kformal group law:

  • Split primes (χK(p)=1): The curve behaves ordinarily modulo p. The scaling radius of the local coordinate cancels the full factorial rate 1/(p−1), leaving extra slope γp=0.
  • Inert primes (χK(p)=−1): The curve becomes supersingular modulo p, so multiplication by p behaves like a p2-th power rather than a p-th power. Rescaling the variable only costs ρp=1p2−1 per derivative, leaving a sharp extra slopeγp=1p−1−1p2−1=pp2−1=1p+1p3+1p5+⋯
  • The ramified prime (p=d, χK(d)=0): Multiplication by πd=−d has half a prime's divisibility (v(πd)=1/2) and degree d, costing ρd=12(d−1) and leaving extra slopeγd=1d−1−12(d−1)=12(d−1)=12(1d+1d2+1d3+⋯).

Multiply each slope by 2log⁡p and the hidden prime sum snaps into focus: for every prime p, the extra divisibility per derivative is identically

2γplog⁡p=∑e≥1Λ(pe)(1−χK(pe))pe,

combining the logarithmic step weight Λ(n) equal to log⁡p on powers of a prime p and 0 elsewherevon Mangoldt function with the sign-flipping quadratic-residue weight χK(n) separating split, inert, and ramified primesquadratic twist. That single identity is the central arithmetic mechanism of the proof: the exact prime-counting weight that Stage 01 feeds into the positivity test forbidding zeros to the right of Re(s)=1/2Landau's lemma is literally the p-adic slope of derivatives on a CM curve.

Pipeline from the one-curve congruence modulo p through Galois-shifted places and spanning vector families to the factored normal form and derivative divisibility count

To turn this one-variable mechanism into an engine for the multi-variable automorphic theta lifts of Stages 03–07 over the cyclotomic tower E=K(ζq1), Stage 02 assembles five landmarks into three tightly interlocked pieces:

  1. Normal form and prime-counting divisibility (theta_products, count): Over the cyclotomic CM field E, taking a product of copies of the one-variable elliptic theta function along a redundant spanning family of vectors reconstructing every vector from weighted projectionstight frame collapses its exponential factor into a canonical factorization pairing each infinite place with its shifted Galois partner through homogeneous couplingstheta normal form. A clever linear change of directions then forces those Frobenius couplings to vanish modulo πp, making the rescaled series integral so Legendre's factorial bound yields explicit divisibility lower bounds on every derivative of a theta Taylor series along matrix minors and Schur polynomialsSchur jet.
  2. Tight frames and the globally integral vacuum (tight_frames, integral_vacuum): The multi-variable automorphic theta function of a Hermitian space starts from a Gaussian "vacuum" vector whose arithmetic values have unknown denominators. Using the powers of ζq1 as an explicit tight frame, Stage 02 expresses a multiple of the vacuum as a finite sum of translates of an integral theta product, producing a single rescaled vector θ∘ — the integral vacuum — whose finite-point values are integral at every prime while all their conjugates remain bounded by exp⁡(Cq12n).
  3. Sharpness of the divisibility bound (bound_attained): Knowing that derivatives are at least as divisible as the predicted prime sum feeds Theorem A (Stage 03), while Theorem C (Stages 05–06) needs the reverse direction — that no hidden extra divisibility inflates the arithmetic floor. Using a 12-copy construction built from a tight frame of length M and Fourier inversion back to indicator data, Stage 02 proves that the predicted prime-sum divisibility is actually attained up to a tiny controlled factor.

Bridge from cyclotomic spanning families and monomial-section products to the globally integral vacuum and standard data

Explore Stage 02 across its three landmark essays, return to Stage 01 — The Theorem and Its Reduction, or zoom out to the Full Proof Journey & Alpöge's 20-Step Map:

Where this analogy breaks ​

Thinking of Stage 02 as a one-variable derivative slope γp multiplied across independent coordinates hides the main multi-variable obstruction. On the cyclotomic field E=K(ζq1), the Frobenius couplings Γe do not stay diagonal at a single infinite place τ; they couple τ to its shifted partner place τ′=−peτ. As a result, a derivative of order aτ at τ cannot earn the full baseline γpaτ: whenever the partner place τ′ also carries derivatives, killing the cross-coupling modulo πp costs a determinant deduction, reducing the net predicted divisibility to positive differences like (aτ/pe−aτ′−aτ′′)+. It is precisely this partner-place cancellation that later encodes the cutoff shift n↦−nτ in Stage 01's prime sums.

Level 2 · Undergrad Bridge

Level 2 — Undergrad Bridge ​

Stage 02 spans 23 upstream Lean files under src/New/Derivatives/, organized into five subdirectories — Divisibility/ (3), Field/ (3), FormalGroup/ (4), Vacuum/ (7), and Sharpness/ (6) — and condensed into 5 landmark nodes in dag/dag.json. Their mathematical flow forms three pipelines anchored on the CM curve E=C/Ω0OK (P.cmCurve, with period Ω0=P.cmPeriod and d≡7(mod8)):

  1. From formal groups to the theta normal form (FormalGroup/FrobeniusCongruence, Exponent, Resolution, ThetaProducts, Divisibility/NormalForm): At any non-split prime p (χK(p)≠1; since d≡7(mod8), p is odd, and for admissible data with 18480∣q0, every non-split prime satisfies p≥13), the formal group of E has Frobenius norm qp=p2 (inert) or qp=d (ramified), uniformizer πp=p or −d of valuation v(πp)∈{1,1/2}, and scaling valuation

    ρp=v(πp)qp−1={1p2−1if χK(p)=−1,12(d−1)if p=d,γp=1p−1−ρp={pp2−1if χK(p)=−1,12(d−1)if p=d.

    The Frobenius congruence θ(πpz)/θ(z)qp≡1(modπp) in O[[y]] forces θ(ϖz)=Wexp⁡(cϖΞ1) with v(ϖ)=ρp, cϖ=ϖp+1/p, and v(cϖπp)=1p−1. Over the cyclotomic CM field E=K(ζq1) with infinite places Φs≅Gal(E/K)≅(Z/q1Z)×, the partner map τ′=−peτ (P.partner s p e τ) satisfies τ(α)pe≡τ′(α)―(modπp) for e∈Ip∘ (norm_pow_sub_conj_partner_le). For any p-integral resolution of the identity z=∑jmj(uj†z)uj, summing the exponents yields New.Parameters.exists_hasNormalForm:

    (∏jθ(uj†z)mj⋅H)(ϖz)=Wtot(z)exp(cϖ∑e∈Ip∘∑j≥0λe,jΓepj),Γe=∑(τ,c)z(τ,c)pez(−peτ,c).
  2. From normal forms to Schur-jet divisibility (Divisibility/NullFrames, Count, Vacuum/Divisibility): Given Young diagrams κτ of columns of height h<N=|n′|, a standard filling i′, and integral matrices yτ, New.minorProd i' y builds the product of minors Py(z) of total degree B=boxes(κ,N). Applying a linear change of directions directionSubst (NullFrames.lean::exists_newDirection_dvd) forces πp∣Γe(z(s)) for all e∈Ip∘ with e≤⌊logp⁡B⌋ (using row charges pw(τ,h,b) on exempt pairs at marked places marked), making F(ϖz(s)) integral in degree B. Legendre's factorial bound (norm_jet_le_of_isHomogeneous) minus the chain-rule determinant cost yields norm_jet_minorProd_le_of_charges and its unmarked form norm_jet_minorProd_le_of_hasNormalForm:

    vp(Py(∂)F(0))≥predictedDivisibilityp(κ)−fN3(1+logp⁡max(B,1)).

    Finally, exists_norm_schurJet_le_norm_jet_minorProd bounds every entry of the Schur-matrix jet schurJet κ F i' i by some integral minor product Py, and Vacuum/Divisibility.lean::norm_schurJet_jetSeries_le_of_charges applies this directly to standard data of level one for Stage 03.

  3. From tight frames to the integral vacuum and sharpness (Vacuum/TightFrames, IntegralVacuum, Sharpness/BoundAttained):

    • TightFrames.lean fixes the Chowla–Selberg scaling jetScale = periodFactor * √(2π/√d) / Ω₀, proves that the powers ζq1k form a tight frame (isTightFrame_zeta_pow), and builds adelic Schwartz vectors F∈S(V) whose entire theta functions factor as resolution products of monomial sections (exists_isResolutionProduct_of_isTightFrame) with globally integral finite-point values.
    • IntegralVacuum.lean uses Fourier inversion over the lattice q1a0n (exists_smul_vacElem_eq_sum) to write a nonzero multiple of the vacuum as a sum of (q12)fn Heisenberg translates of a level-one theta product, yielding vacuumScale and the integral vacuum θ∘=vacuumScalen⋅vacElem (intVacuum) satisfying norm_intVacuum_le_one, norm_ringEquiv_intVacuum_le (∥σ(θ∘(finVec x))∥≤exp⁡(Cq12)n), and Galois jet conjugation (exists_isJetConjugate_translates). It also defines standardData, the p-integral module consumed throughout Stages 03–07.
    • BoundAttained.lean runs the same tight-frame machine on 12 copies (twelveSpace = Hom(E, E^{12})) with frame length M=D.M and level m=(πM) to reduce Taylor-coefficient valuation bounds on indicator data to LeastValLE on the curve (exists_le_norm_coeff_indicatorDatum), proving New.Data.exists_rpow_neg_localPrimeSumTotal_le_norm_coeff: for every degree vector l with κ≤l≤κ+x42, a single nonzero t with ∥σt∥≤exp⁡(fmb/k) witnesses attainment of D.localPrimeSumTotal p at every prime p.

Cross-pillar DAG edge on bound_attained: Notice that 02_derivatives/bound_attained sits in the 02_derivatives/ narrative folder because it proves sharpness of the Stage 02 theta-derivative bound, yet in dag/dag.json it directly imports 03_upper_bound/short_columns (for the definition and properties of D.localPrimeSumTotal) and is consumed downstream by 06_one_lift/twisted_value_heights (where sharpness bounds the heights of twisted Hecke L-values). As upstream GUIDE.md explains, folders track the conceptual narrative order of the argument rather than strict layer numbers, while the condensed dependency graph dag/dag.json remains globally acyclic.

Level 3 · Formal Lean Contract

Level 3 — Formal Lean Contract ​

Stage 02 covers 23 upstream files under src/New/Derivatives/, represented in the condensed 41-landmark DAG (dag/dag.json) by 5 extracted landmark skeletons derived from pinned upstream commit 41c2716658c42ba08eb0648994a2efe83082a95c (41c2716658c4, leanprover/lean4:v4.37.0-rc1, Mathlib rev 31ce06eaadf4a200c0e1407c5f10953cf606b8f8):

Skeleton FileUpstream PathDirect Landmark Dependencies (dag/dag.json)Key Declarations
02_derivatives/tight_frames.leansrc/New/Derivatives/Vacuum/TightFrames.lean(none — imports src/Lib/ and Parameters)New.Parameters.cmCurve, New.Parameters.jetScale, New.Parameters.isTightFrame_zeta_pow, New.Parameters.IsResolutionProduct, New.Parameters.exists_isResolutionProduct_of_isTightFrame
02_derivatives/integral_vacuum.leansrc/New/Derivatives/Vacuum/IntegralVacuum.lean02_derivatives/tight_framesNew.Parameters.IsThetaProduct, New.Parameters.isVacuumScale_vacuumScale, New.Parameters.intVacuum, New.Parameters.standardData, New.Parameters.norm_intVacuum_le_one, New.Parameters.norm_ringEquiv_intVacuum_le, New.Parameters.exists_isJetConjugate_translates
02_derivatives/theta_products.leansrc/New/Derivatives/FormalGroup/ThetaProducts.lean02_derivatives/tight_framesNew.Parameters.partner, New.Parameters.norm_pow_sub_conj_partner_le, New.Parameters.piPrimeInt_dvd_sum_linearSeries_sub_coupling, New.Parameters.exists_hasNormalForm
02_derivatives/count.leansrc/New/Derivatives/Divisibility/Count.lean02_derivatives/theta_productsNew.norm_jet_le_of_isHomogeneous, New.predictedDivisibility, New.mul_tsum_deductionAt, New.Parameters.norm_jet_minorProd_le_of_charges, New.Parameters.norm_jet_minorProd_le_of_hasNormalForm, New.exists_norm_schurJet_le_norm_jet_minorProd
02_derivatives/bound_attained.leansrc/New/Derivatives/Sharpness/BoundAttained.lean02_derivatives/integral_vacuum, 02_derivatives/theta_products, 03_upper_bound/short_columnsNew.Data.exists_integral_isThetaFunction_twelveTaylor_eq, New.Data.exists_le_norm_coeff_indicatorDatum, New.Data.norm_map_mul_intVacuum_le, New.Data.exists_rpow_neg_localPrimeSumTotal_le_norm_coeff

Downstream consumers across Stages 01 and 03–07 (dag/dag.json): Stage 02 is the widest foundational provider in the entire condensed proof graph, feeding 19 downstream landmark nodes across six stages:

  • Stage 01 (01_reduction): one_sided_bound ← integral_vacuum (admissible-data scale existence).
  • Stage 03 (03_upper_bound): seesaw_identity, local_divisibility, and archimedean_size ← count, integral_vacuum, theta_products; short_columns ← integral_vacuum (and in turn feeds 02_derivatives/bound_attained).
  • Stage 04 (04_spanning): spanning_theorem, equal_multiplicities, and energy_estimate ← integral_vacuum.
  • Stage 05 (05_determinant): fit_twists and norm_of_chain ← integral_vacuum; spanning_forms ← count, integral_vacuum.
  • Stage 06 (06_one_lift): gluing_maps ← integral_vacuum; three_exchanges ← count, integral_vacuum; twisted_value_heights ← bound_attained, count, integral_vacuum, theta_products.
  • Stage 07 (07_congruences): fit_twists_exist, rows_from_eigensystems, denominator_bound, and crystalline_defect ← integral_vacuum; twisting_theorem ← count, integral_vacuum, theta_products.

Verification status (audit/verification-status.json): Local Lean compilation and kernel replay remain build_status: unverified-locally at pinned commit 41c2716658c42ba08eb0648994a2efe83082a95c (41c2716658c4). Static token scanning currently has scan_scope: entry, covering only the three Stage 00 entry files (Challenge.lean, src/Main.lean, src/Statements.lean), recording 0 forbidden tokens in solution files and 5 expected sorry tokens in Challenge.lean. Stage 02 proof files under src/New/Derivatives/ have not been locally compiled, kernel-checked, or statically scanned here; every theorem statement, dependency edge, and mathematical summary above reflects direct inspection of the pinned upstream source files.

Derivatives of Theta Functions dependency mini-mapProof graph for stage 02_derivatives.Count [landmark]src/New/Derivatives/Divisibility/Count.leanThetaProducts [landmark]src/New/Derivatives/FormalGroup/ThetaProducts.leanTightFrames [landmark]src/New/Derivatives/Vacuum/TightFrames.leanIntegralVacuum [landmark]src/New/Derivatives/Vacuum/IntegralVacuum.leanBoundAttained [landmark]src/New/Derivatives/Sharpness/BoundAttained.lean
Derivatives of Theta Functions: solid blue border marks landmark theorem modules; arrows trace Lean import dependencies.
  1. Count (landmark) — src/New/Derivatives/Divisibility/Count.lean (depends on: 02_derivatives/theta_products)
  2. ThetaProducts (landmark) — src/New/Derivatives/FormalGroup/ThetaProducts.lean (depends on: 02_derivatives/tight_frames)
  3. TightFrames (landmark) — src/New/Derivatives/Vacuum/TightFrames.lean (depends on: none)
  4. IntegralVacuum (landmark) — src/New/Derivatives/Vacuum/IntegralVacuum.lean (depends on: 02_derivatives/tight_frames)
  5. BoundAttained (landmark) — src/New/Derivatives/Sharpness/BoundAttained.lean (depends on: 02_derivatives/integral_vacuum, 02_derivatives/theta_products, 03_upper_bound/short_columns)

Page Glossary ​

prime number
A whole number greater than 1 whose only positive whole-number divisors are 1 and itself; every integer above 1 factors uniquely into a product of them.
complex multiplication
Extra scaling-and-rotation symmetries of a two-dimensional lattice in ℂ preserved by the integers 𝓞_K of an imaginary quadratic field K = ℚ(√(-d)), pinning down every Galois-conjugate lattice area via the Chowla–Selberg formula.
elliptic theta function
A quasi-periodic entire function on a CM lattice normalized at the origin, whose finite products along tight-frame projections build integral multi-variable theta functions and collapse p-adically into exponential normal forms.
arithmetic height
A logarithmic measure combining ordinary archimedean size with prime-by-prime p-adic divisibility, locked together by the product formula so a nonzero algebraic quantity cannot be simultaneously small at every place.
formal group law
A power-series addition law encoding an elliptic curve's group structure near the origin, whose Lubin–Tate scaling and Frobenius congruence isolate the exact p-adic powers controlling theta-function derivatives.
von Mangoldt function
The arithmetic weight Λ(n) equal to log p when n is a prime power pᵏ (k ≥ 1) and 0 otherwise, converting multiplicative prime factorizations into additive logarithms.
quadratic twist
Multiplying a Dirichlet character χ modulo N by the Legendre symbol (·/d) of an odd prime d coprime to N, yielding a non-principal character modulo N·d whose L-function family admits zero-density control.
Landau's lemma
A complex-analytic theorem stating that the Laplace or Dirichlet transform of a nonnegative function must have a singularity on the real axis at its abscissa of convergence, turning one-sided error bounds into zero-free half-planes.
tight frame
A balanced, possibly overcomplete family of vectors with integer multiplicities whose projections reconstruct the exact standard inner product—allowing integral root-of-unity spokes to pull back one-dimensional elliptic theta sections into high-dimensional integral theta functions.
theta normal form
A p-adic factorization of rescaled multivariable theta products into an integral power series times an exponential of Frobenius-power couplings pairing each infinite place with its shifted partner place.
Schur jet
The evaluation at the origin of a symmetry-adapted Schur differential operator on a theta function's multivariate Taylor expansion, whose prime-by-prime divisibility is controlled through minor products and matched by an explicit sharpness construction.