Ramanujan's Notebooks (Berndt)Textbook
Motivation
The notebooks Ramanujan kept in India record identities, evaluations, transformations and general principles, usually presented without proofs. They preserve a working mathematician's collection rather than a textbook arranged around a sequence of prerequisite theorems. The Tata Institute of Fundamental Research published an unedited facsimile edition in 1957, making the manuscripts available for systematic study.
Bruce C. Berndt's Ramanujan's Notebooks, published by Springer in five parts in 1985, 1989, 1991, 1994 and 1998, supplies that study. The volumes examine the entries individually, proving them, correcting them where necessary, or explaining why they are false or lack a rigorous interpretation. Their subject matter ranges from magic squares and combinatorial identities to hypergeometric series, continued fractions, elliptic functions, modular equations, class invariants and asymptotic expansions.
This mission takes the results established in Berndt's treatment as formalization targets. The published arguments provide mathematical reference proofs. The remaining task is to express the results precisely and construct proofs checked by Lean.
Setting
An entry is a source claim identified by its chapter and local entry label in Berndt's series. The collection is organized around one Lean statement per entry that Berndt establishes. Where an entry contains separately identified parts, corollaries or examples, suffixes distinguish the corresponding statements while preserving their common source location. Intermediate steps of a printed proof do not automatically become additional targets.
The mission covers Chapters 1–39. Part I contains Chapters 1–9; Part II, Chapters 10–15; Part III, Chapters 16–21; Part IV, Chapters 22–31; and Part V, Chapters 32–39. The Part IV appendix on the first notebook and the Quarterly Reports treated in Part I also belong to the mission's scope, with their statements incorporated as they are added.
Declarations use the namespace RamanujanNotebooks and names of the form
entry_<chapter>_<entry>, such as RamanujanNotebooks.entry_16_19. Shared definitions fix the
meaning of recurring objects: q-shifted factorials, theta functions, hypergeometric series,
continued-fraction convergents and the special functions used across chapters. Their domains,
normalizations and indexing conventions are documented so that different entries refer to the
same mathematical objects.
Formalization targets
The series has no single capstone theorem. Its goal item is therefore a representative entry: Chapter 16, Entry 19, Jacobi's triple product identity in Ramanujan's notation. This is in Part III, whose chapter develops q-series and theta functions.
For complex parameters , Ramanujan's general theta function is
Both exponents are nonnegative integers. Under , the series converges absolutely, and Entry 19 identifies it with an infinite product. Writing , the target is
Equivalently, with the infinite q-Pochhammer symbol
the identity reads
The Lean statement uses ramanujanTheta and qPochInf, with the hypothesis
‖a * b‖ < 1. Proving this goal establishes the representative identity; completion of the
collection is tracked through its member statements, one per entry.
Every entry is a separate statement of this mission, named RamanujanNotebooks.entry_<chapter>_<entry>
(with suffixes for parts, corollaries and examples): 3,863 statements for Parts I–V, the Part IV appendix
on the first notebook and the Quarterly Reports; the AMS Memoir 477 statements are being added. A chapter's
statements are found by searching for its name prefix. The milestone list has one milestone per chapter,
in source order, titled like “Part III · Ch. 16 — q-series and theta-functions”; each links one
representative result and its description names the chapter's main results.
Statement conventions and source differences
The mathematical reference is what Berndt proves, with the hypotheses his argument requires. A notebook display alone is insufficient when its domain, convergence conditions or branch choices are unstated. Each target identifies its source and records the conditions under which the asserted equality, limit, transformation or asymptotic relation is established.
Corrected statements carry the explicit phrase “Differs from the printed source”. The accompanying note explains the difference and its origin: a correction supplied by Berndt, a restriction required by the proof, or a reading that resolves an ambiguity. A proposed repair supported only by numerical experiments requires further mathematical review before inclusion as a result established by the reference.
Entries that Berndt shows to be false are not stated as theorem targets. Neither are identities treated only formally, without a rigorous version. For example, Chapter 37's Entry 34 manipulates divergent series, while Entries 35–37 are shown false. Chapter 39 also contains formal claims and entries for which the book supplies no definite interpretation. Such omissions preserve the boundary between a proved result and a suggestive manuscript formula.
Numerical checks are recorded in theorem docstrings, including the tested parameters and the kind of comparison performed. They help detect indexing errors, sign errors and unsuitable domains. Agreement at sampled points is evidence about the transcription; it is not a proof of the universally quantified Lean statement.
Significance and status
The mission brings together source-linked statements of known results whose proofs otherwise remain dispersed across Berndt's commentary. Formal proofs can expose exactly which analytic hypotheses an identity needs and make the shared special-function definitions available for later developments. A proof of the triple product, for example, connects the series definition of the general theta function with its product representation, which recurs throughout the theta-function material.
The statements are proof targets. A declaration that type-checks has a meaningful Lean type; that check alone does not establish the proposition. The description makes no claim that the collection already has machine-checked proofs. Progress is measured by proofs of the individual targets with their stated hypotheses.
Difficulty
The entries vary considerably in their prerequisites. Finite algebraic and combinatorial identities can be approached with relatively little analytic infrastructure. Other chapters depend on convergence theory for continued fractions, transformations of theta and elliptic functions, modular forms, or class invariants.
Even a short equality can require substantial work before its expressions have the intended meaning. A divergent series cannot be interpreted as an ordinary sum, and a complex root or logarithm needs an appropriate branch convention. The central challenge is to preserve the object and domain of the reference result while supplying the formal infrastructure needed to prove it.
Formalization scope
Statements use real or complex variables according to the reference, with exceptional values, nonvanishing conditions and convergence ranges explicit. Infinite series are expressed with convergence assertions where necessary; continued fractions are represented through their convergents and limits. Integrals carry the hypotheses needed for their intended interpretation. Lean's total definitions of division, infinite sums and infinite products must not turn an undefined or divergent source expression into a trivial theorem.
Contributions should prove the registered statements using their shared definitions. Reusable lemmas about convergence, special functions and transformations are part of that work. Any suspected statement error should be reported with the declaration name, source location and a specific mathematical objection, so that the source relationship can be reviewed before a replacement is prepared.
Selected references
- S. Ramanujan, Notebooks, facsimile edition, Tata Institute of Fundamental Research, Bombay, 1957.
- B. C. Berndt, Ramanujan's Notebooks, Part I, Springer, 1985.
- B. C. Berndt, Ramanujan's Notebooks, Part II, Springer, 1989.
- B. C. Berndt, Ramanujan's Notebooks, Part III, Springer, 1991.
- B. C. Berndt, Ramanujan's Notebooks, Part IV, Springer, 1994.
- B. C. Berndt, Ramanujan's Notebooks, Part V, Springer, 1998.