Chapter 14 crank generating function: fixed- crank series and the crank identity statement
DefinitionQseriesFormalization_Chapter14_CrankGenFunchan-invitation-qseriescranksformal-power-seriesq-pochhammer
This bundle defines, over a field and , the formal power series built from the crank. It also defines the scaled infinite product for a scalar , and the proposition stating the fixed- Andrews--Garvan crank identity with denominators multiplied out: the crank series times equals . The definition of the identity is a statement, not a proof.
The scalar inverse and integer powers use . The displayed identity is a proposition only; with the raw crank-counting series its general- form has a degree-one exception. The imported proof establishes the specialization.
Definition code
-- Generated by qseries-p2m/p2m/generate.py from QseriesFormalization.Chapter14_CrankGenFun: skeleton subtraction
-- keeps 3 declaration(s); proofs kept; project imports -> Definitions bundles.
import Definitions.Def_QseriesFormalization_DefCoreQSeries
import Definitions.Def_QseriesFormalization_Chapter14
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
/-!
# Chapter 14 - Crank generating function
This companion file gives a bounded formal-power-series layer for the
Andrews-Garvan crank identity.
Closed here:
* `crankCount m n`, the formal `M(m,n)` fiber count from the existing
`crank : Nat.Partition n -> Int`.
* `crankGenFunEval R z`, the one-variable q-series obtained by evaluating the
bilateral z-variable at a fixed field element `z`.
* the coefficient formula
`coeff_n = sum_m M(m,n) z^m`, grouped over the finite crank support.
* the `z = 1` specialization: the crank series is the ordinary partition
generating function, hence satisfies the product/inverse identity already
proved in Chapter 19.
The full bilateral Laurent-series identity for arbitrary `z` is stated as a
Prop (`andrewsGarvanCrankIdentityStatement`) but is not proved here.
-/
open scoped BigOperators
open scoped PowerSeries.WithPiTopology
namespace QseriesFormalization
namespace PartIII
namespace Ch14
open PowerSeries
noncomputable section
/-! ## The coefficient side `M(m,n)` -/
/-! ## Fixed-`z` crank q-series -/
/--
The crank q-series after evaluating the Laurent variable at a field element `z`:
`sum_n (sum_{lambda partition of n} z^(crank lambda)) X^n`.
This is the univariate formal-power-series avatar of
`sum_{n,m} M(m,n) z^m q^n`.
-/
def crankGenFunEval (R : Type*) [Field R] (z : R) : R⟦X⟧ :=
PowerSeries.mk fun n => ∑ lam : Nat.Partition n, z ^ crank lam
/-! ## The closed `z = 1` specialization -/
/-! ## Product-side statement for arbitrary fixed `z` -/
/-- Formal `(a q; q)_inf = prod_{i >= 0} (1 - a X^(i+1))`. -/
def qPochInfScaled (R : Type*) [CommRing R] [TopologicalSpace R] (a : R) : R⟦X⟧ :=
∏' i : Nat, ((1 : R⟦X⟧) - PowerSeries.C a * PowerSeries.X ^ (i + 1))
/--
The fixed-`z` Andrews-Garvan crank identity, with denominators multiplied out:
`C(z,q) (zq;q)_inf (z^{-1}q;q)_inf = (q;q)_inf`.
This file proves this statement only at `z = 1`.
-/
def andrewsGarvanCrankIdentityStatement
(R : Type*) [Field R] [TopologicalSpace R] (z : R) : Prop :=
crankGenFunEval R z * (qPochInfScaled R z * qPochInfScaled R z⁻¹) =
QseriesFormalization.PartIV.Ch19.qPochInfPS R
/-! ## Finite scalar truncation at `z = 1` -/
variable {R : Type*} [Field R]
end
end Ch14
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 14. Lean source: https://github.com/xiangyazi24/invitation-to-qseries-lean/blob/5df34b280b6a9c4a68ab09105b4e5d3c7bbe88d1/QseriesFormalization/Chapter14_CrankGenFun.lean (definitions of this module that the uploaded theorems need; ported to Lean v4.33.1 / Mathlib 0df444a).