Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Pentagonal-type theta series ∑(−1)jqj(5j+3)/2\sum(-1)^jq^{j(5j+3)/2}∑(−1)jqj(5j+3)/2 as a Jacobi series

Proved
QseriesFormalization.PartI.Ch04.theta_sum_2_eq_jacobiSeries

by FormallyCorrect · Oct 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

chan-invitation-qseriesrogers-ramanujantheta-functions

Let q,Y∈Cq,Y\in\mathbb{C}q,Y∈C with Y≠0Y\ne0Y=0 and Y2=qY^2=qY2=q. Then the bilateral Jacobi series at the parameters (Y5,−Y3)(Y^5,-Y^3)(Y5,−Y3) equals

∑j∈Z(−Y3)jY5j2=∑j∈Z(−1)jqj(5j+3)/2.\sum_{j\in\mathbb{Z}}(-Y^3)^jY^{5j^2}=\sum_{j\in\mathbb{Z}}(-1)^jq^{j(5j+3)/2}.j∈Z∑​(−Y3)jY5j2=j∈Z∑​(−1)jqj(5j+3)/2.

This is the second of the two mod-5 theta series used in Chapter 4 for the Rogers-Ramanujan-type product identities.

These are Lean totalized sums: a nonsummable complex family has tsum 000. No convergence is asserted without further hypotheses; under ∣q∣<1|q|<1∣q∣<1 the bilateral series converge.

Preamble
import Definitions.Def_QseriesFormalization_DefCoreQSeries
import Mathlib
import Mathlib.Analysis.SpecialFunctions.Log.Summable
import Mathlib.Analysis.Normed.Group.Tannery

/-!
# Chapter 4 — Part I: Some applications of Jacobi's triple product

(Hei-Chi Chan, *An Invitation to q-Series*, Ch 4, pp. 21–30.)

This chapter spins off four named identities from the Jacobi triple
product (Theorem 4.1, Euler's pentagonal theorem, Theorem 4.3, the
quintuple product identity).  The Jacobi triple product is now available;
the remaining infinite applications need the specialization and rewriting
layers connecting those products and bilateral sums to Chan's displayed forms.
-/

open QseriesFormalization
open QseriesFormalization.PartI

open QseriesFormalization.PartI.Ch02 (jacobiInfiniteProduct jacobiInfiniteSeries)
open QseriesFormalization.PartI.Ch03 (finiteJTPRHS)
open Filter

open scoped Topology

variable {R : Type*} [Field R]

/- The infinite Theorem 4.1 equality is now reduced to specializing JTP and
rewriting the resulting product and bilateral series into Chan's displayed form. -/

/-! ## Mod-5 residue factors for Rogers-Ramanujan (Ch7 dependency)

The classical R-R proof needs:
`(q;q)_∞ = ∏_{k=1..5} (q^k;q^5)_∞`.

Each factor `(q^k;q^5)_∞` = `∏'_n (1 - q^(k + 5n))` for `n ≥ 0`. -/

/-! ### Rogers-Ramanujan theta series via JTP at q^5

S₁(q) := ∑'_{j : ℤ} (-1)^j · q^(j(5j+1)/2) — JTP series at Q := Y^5, z := -Y (Y² = q).
S₂(q) := ∑'_{j : ℤ} (-1)^j · q^(j(5j+3)/2) — JTP series at Q := Y^5, z := -Y^3 (Y² = q).
-/
Formal statement
theorem QseriesFormalization.PartI.Ch04.theta_sum_2_eq_jacobiSeries (q Y : ℂ) (hYne : Y ≠ 0) (hYq : Y ^ 2 = q) :
    (Ch02.jacobiInfiniteSeries (Y ^ 5) (-Y ^ 3) : ℂ) =
      ∑' j : ℤ, (-1 : ℂ) ^ j * q ^ (j * (5 * j + 3) / 2) := by sorry
Source
Lean formalization (Xiang Huang) of Hei-Chi Chan, An Invitation to q-Series: From Jacobi's Triple Product Identity to Ramanujan's "Most Beautiful Identity" (World Scientific, 2011), Chapter 4. Lean source: https://github.com/xiangyazi24/invitation-to-qseries-lean/blob/5df34b280b6a9c4a68ab09105b4e5d3c7bbe88d1/QseriesFormalization/Chapter04.lean#L520-L541

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me