Recursion for partial sums of :
ProvedQseriesFormalization.Pending.Ch10MockThetaPS.ramanujanMockFPartialPS_succchan-invitation-qseriesformal-power-seriesmock-theta
For every , in ,
where is the partial sum of the mock theta series . This is the definitional recursion of the partial sum (Chapter 10).
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.Ch10Formal statement
theorem QseriesFormalization.Pending.Ch10MockThetaPS.ramanujanMockFPartialPS_succ (N : ℕ) :
ramanujanMockFPartialPS (N + 1) =
ramanujanMockFPartialPS N + ramanujanMockSummandPS (N + 1) := by sorrySource
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#L85-L90