An Invitation to -Series: Ramanujan's Partition IdentityTextbook
Partitions and generating functions
A partition of a nonnegative integer is a way to express it as a sum of positive integers, with the order of the summands ignored. For example, the partitions of 4 are 4, 3+1, 2+2, 2+1+1, and 1+1+1+1. If denotes their number, then and , with the empty partition counted once. Although this definition is elementary, the values of obey identities and divisibility laws that are difficult to see from lists of partitions.
A generating function records a sequence as coefficients of a power series. For partitions it is . Product and series identities give different descriptions of the same coefficients, connecting counting problems with algebra and complex analysis. Hei-Chi Chan's An Invitation to q-Series develops these connections through Jacobi's product identity, the Rogers–Ramanujan identities, and Ramanujan's partition congruences. This collection imports the proved statements in the accompanying Lean development, with Ramanujan's partition identity as its main result.
Formal series and convergent products
A formal power series over a ring is a sequence of coefficients written as ; equality means equality of every coefficient. Multiplication uses the finite sum . The symbol is an indeterminate, so a formal identity requires no choice of a numerical value for and no analytic convergence assumption.
Write . This formal product is well defined because, for a fixed degree , factors with do not change its coefficient. Euler's partition identity states that . Substituting for multiplies every exponent by the positive integer ; in particular, .
The analytic results use a complex number in place of the formal variable. Their finite product notation is , and denotes the corresponding infinite product when it converges. Conditions such as , , and the nonvanishing of other parameters are part of the individual statements. The formal and analytic settings remain distinct throughout the collection.
The main identity and accompanying results
The main theorem identifies the generating function for partition numbers whose indices are 4 modulo 5. In , it asserts the unconditional identity
Since , this is the usual expression . The inverse exists because has constant coefficient 1. The displayed equality concerns the whole infinite series, rather than a fixed number of initial coefficients.
The associated milestones include Euler's pentagonal identity, Jacobi's triple product, the two Rogers–Ramanujan identities, and the partition congruences
for every natural number . Additional milestones record formal identities involving the Rogers–Ramanujan quotient and the parity of Ramanujan's tau coefficients. Each reference retains its own hypotheses and coefficient ring; the collection does not treat identities over different rings as interchangeable.
What the collection provides
The partition identity gives an exact generating function for an infinite arithmetic progression of partition numbers. The three congruences likewise apply to all indices in their stated progressions. Their scope is therefore different from the numerical partition and tau values that also appear in the library. Both kinds of result are included, with their ranges stated explicitly.
The source development supplies Lean proofs of these known mathematical results. The imported collection makes their definitions, statements, and supporting lemmas available in one compatible environment for subsequent work on partition identities and Ramanujan notebook formulas. Its reusable components include finite product algebra, coefficient extraction, substitutions in formal series, and the links between analytic products and formal coefficient identities.
Why the representation matters
Agreement of many initial coefficients cannot establish equality of two arbitrary infinite series. A formalization must account for every coefficient and justify any infinite product or sum used to define it. In an analytic statement, moving between a limit and a sum or product also requires convergence under the stated parameter conditions. These obligations remain present even when the final displayed identity is short.
Division presents a separate issue. A quotient of formal series needs an invertible denominator, while analytic quotients need the relevant complex values to be nonzero. Residue-class extraction introduces another distinction: retaining terms of degree and replacing their exponents by is different from leaving those exponents unchanged. The imported definitions specify the convention used by each theorem.
Formalization scope
The main result uses rational formal power series and the ordinary partition-counting function. Supporting statements use integers, commutative coefficient rings, finite residue fields, or complex analysis as required by their types. The environment is Lean 4.33.1 with Mathlib revision 0df444a360eaa60ab8c11dca51a86af692955474. The mathematical source is pinned to revision 5df34b280b6a9c4a68ab09105b4e5d3c7bbe88d1; compatibility adaptations are recorded with the imported items.
This is a collection of the source's proved results, including auxiliary and conditional lemmas. It does not assert that every statement discussed in the book has been formalized. In particular, the continued-fraction convergence discussion, the closed-form special value at , the general core-partition characterization, and the full modularity and multiplicativity theory of the tau function must not be inferred from the narrower entries provided here. A definition of a proposed value is kept distinct from a theorem evaluating a function at that value.
The referenced theorem statements are fixed to the audited import. Further work can reuse these results to formalize additional identities or supply separate, stronger theorems. Conditional reductions remain conditional in their titles and statements, and finite computations retain their explicit bounds.
Selected references
Hei-Chi Chan, An Invitation to q-Series: From Jacobi's Triple Product Identity to Ramanujan's Most Beautiful Identity, World Scientific, 2011. DOI: 10.1142/8129.
Xiang Huang, Lean formalization of An Invitation to q-Series, source revision 5df34b280b6a9c4a68ab09105b4e5d3c7bbe88d1. Pinned source repository.