Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Every partial sum of f(q)f(q)f(q) has constant coefficient 111

Proved
QseriesFormalization.Pending.Ch10MockThetaPS.coeff_zero_ramanujanMockFPartialPS

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

chan-invitation-qseriesformal-power-seriesmock-theta

For every N∈NN\in\mathbb{N}N∈N, the partial sum f≤N=∑n=0NXn2((−X;X)n−1)2∈Q[[X]]f_{\le N}=\sum_{n=0}^{N}X^{n^2}\big((-X;X)_n^{-1}\big)^2\in\mathbb{Q}[[X]]f≤N​=∑n=0N​Xn2((−X;X)n−1​)2∈Q[[X]] of the mock theta function f(q)f(q)f(q) satisfies

[X0] f≤N=1.[X^0]\,f_{\le N}=1.[X0]f≤N​=1.

Only the n=0n=0n=0 summand contributes to the constant term. Chapter 10 bookkeeping.

Preamble
import Definitions.Def_QseriesFormalization_Pending_Chapter10_MockTheta_PS
import Mathlib.Combinatorics.Enumerative.Partition.GenFun
import Mathlib.RingTheory.PowerSeries.Basic
import Mathlib.RingTheory.PowerSeries.Expand
import Mathlib.RingTheory.PowerSeries.Inverse
import Mathlib
import Mathlib.Combinatorics.Enumerative.Partition.Basic
import Mathlib.Tactic.Linarith

namespace QseriesFormalization.PartII.Ch10 end QseriesFormalization.PartII.Ch10

/-!
# Chapter 10 / mock theta `f(q)` — formal power series foundation

⚠️  **AUX-LEVEL SCAFFOLDING** for what is currently a SHADOW chapter.

Ramanujan's third-order mock theta function (Lost Notebook):
  `f(q) := ∑_{n≥0} q^{n²} / (-q;q)_n²`.

The existing `Chapter10.ramanujanMockF_trunc` is the finite truncation;
this file defines `f(q)` as a *formal power series* `ramanujanMockFPS R`
(noncomputable, but well-defined coefficient-wise) and proves the basic
algebraic facts.  Chan §10's chapter-main result (Watson's identity, or
the mock-modular property) is not closed; this file lays the formal-PS
foundation toward such a closure.

## What this file contributes

- `ramanujanMockFPS R : PowerSeries R` over any commutative ring `R`,
  defined coefficient-wise via the truncations.
- `coeff_zero_ramanujanMockFPS = 1`: the `n = 0` term contributes `1`,
  higher-`n` terms contribute `0` to the constant coefficient.
- `ramanujanMockFPS_eq_coeff_trunc`: at the formal-PS level, each
  coefficient of `f(q)` equals the same coefficient of the finite
  truncation `ramanujanMockF_trunc q N` for any sufficiently-large `N`
  (the q-adic stabilisation argument).

## Approach to Chan §10 closure (open)

The chapter-main target is one of:
1. Watson's identity (1936): a closed form for `f(q)` in terms of theta
   series (the half-integral-weight cusp form / Eichler integral form).
2. The mock-modular property: `f(q)` has weight-1/2 mock-modular completion
   `\hat f(τ) = f(e^{2πiτ}) + (correction)` transforming as a modular form
   under `SL₂(ℤ)` (full proof needs Zwegers's holomorphic projection).
3. Andrews–Gordon–McIntosh order-3 mock theta identities.

All three are research-level (not in Hirschhorn either, per the
2026-05-24 subagent confirmation in `AUDIT_CLEANUP_PLAN.md`).
-/

open QseriesFormalization
open QseriesFormalization.Pending
open QseriesFormalization.Pending.Ch10MockThetaPS

open PowerSeries
open QseriesFormalization.PartII.Ch10
Formal statement
theorem QseriesFormalization.Pending.Ch10MockThetaPS.coeff_zero_ramanujanMockFPartialPS (N : ℕ) :
    (ramanujanMockFPartialPS N).coeff 0 = 1 := 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 10. Lean source: https://github.com/xiangyazi24/invitation-to-qseries-lean/blob/5df34b280b6a9c4a68ab09105b4e5d3c7bbe88d1/QseriesFormalization/Pending/Chapter10_MockTheta_PS.lean#L92-L109

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