Chapter 13 definition: truncated left side of Chan's deep identity
DefinitionQseriesFormalization_Chapter13chan-invitation-qseriesq-pochhammerq-series
This bundle defines, over a field, the partial sum , the truncated left side of the identity of Chapter 13 (the series with squared -Pochhammer denominators). It is a finite truncation only, built with the project's finite summation helper.
Division uses Lean’s totalized field convention . The statement or definition does not impose nonvanishing of its displayed denominators.
Definition code
-- Generated by qseries-p2m/p2m/generate.py from QseriesFormalization.Chapter13: skeleton subtraction
-- keeps 1 declaration(s); proofs kept; project imports -> Definitions bundles.
import Definitions.Def_QseriesFormalization_DefCoreQSeries
import Mathlib
/-!
# Chapter 13 — Chan's deep identity
⚠️ **SHADOW CHAPTER**.
Per `PLAYBOOK_AUDIT.md` (2026-05-22): this file currently contains only the
finite truncation `deepIdentityLHSTrunc q N := ∑_{k=0}^N q^{k²}/(q;q)_k²`
and closed-form unfoldings `deepIdentityLHSTrunc_zero..twenty`. Chan's
Ch 13 main identity (the closed product form of `∑ q^{k²}/(q;q)_k²`,
related to the Andrews-Gordon family or Slater list) is **not**
formalized here — neither the LHS-RHS identity statement nor its proof.
Until a real chapter-main theorem is added, this file is auxiliary
scaffolding only.
-/
namespace QseriesFormalization
namespace PartIII
namespace Ch13
section Field
variable {R : Type*} [Field R]
/-- Truncated LHS of Chan Ch 13 identity: `sum_{k=0}^N q^{k^2} / (q;q)_k^2`. -/
noncomputable def deepIdentityLHSTrunc (q : R) (N : Nat) : R :=
natSum (fun k => q ^ (k * k) / (qPochhammer q k) ^ 2) N
end Field
end Ch13
end PartIII
end QseriesFormalization
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 13. Lean source: https://github.com/xiangyazi24/invitation-to-qseries-lean/blob/5df34b280b6a9c4a68ab09105b4e5d3c7bbe88d1/QseriesFormalization/Chapter13.lean (definitions of this module that the uploaded theorems need; ported to Lean v4.33.1 / Mathlib 0df444a).