Coefficient of at a triangular index is
ProvedQseriesFormalization.Pending.Ch06Macdonald.coeff_macdonald_A1_triangularchan-invitation-qseriesjacobi-triple-productq-pochhammer
For every commutative ring and , the coefficient of , , in (with qPochInfPS ) equals the integer cast into . This exhibits the Weyl factor and the sign of the Macdonald sum; Chapter 6.
Preamble
import Definitions.Def_QseriesFormalization_DefCoreQSeries
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
import Mathlib.Analysis.SpecificLimits.Normed
import Mathlib.Analysis.Normed.Ring.InfiniteSum
import Mathlib.Analysis.SpecialFunctions.Log.Summable
import Mathlib.Analysis.Normed.Group.Tannery
/-!
# Chapter 6 — Macdonald's identity, the affine `A₁` (`t = 2`) case
Chan §6 Theorem 6.1 is Macdonald's identity for `η(q)^{t²-1}`, the
Weyl–Macdonald–Kac denominator formula for the affine root system
`A_{t-1}^{(1)}`. For general `t` this requires affine Lie theory and is **not**
formalized in this repository.
This file formalizes the **foundational `t = 2` case** (affine `A₁`,
i.e. `ŝl(2,ℂ)`), which is exactly **Jacobi's identity**
`(q;q)_∞³ = ∑_{k ≥ 0} (-1)^k (2k+1) q^{k(k+1)/2}`.
This is the prototype Macdonald's identity (`η^{2²-1} = η³`), the one Chan
derives in detail. We prove it **unconditionally** as a corollary of the
formal-power-series Jacobi cube identity B2
(`qPochInfPS_pow_three_eq_jacobiThetaPS`).
**Dictionary to the Macdonald denominator sum** (`A₁`, `t = 2`): summing over
`v = (v₀, v₁) ∈ ℤ²` with `v₀ ≡ 0, v₁ ≡ 1 (mod 2)` and `v₀ + v₁ = 0`, write
`v₁ = 2k+1`, `v₀ = -(2k+1)`. Then the Weyl factor `∏_{i<j}(vᵢ - vⱼ) = v₀ - v₁
= -2(2k+1)` and the exponent `(v₀² + v₁²)/(2·2) = (2k+1)²/8 = k(k+1)/2 + 1/8`.
Dividing out the universal `q^{1/8}` (= `q^{3/24}`) prefactor of `η³` and
folding the `±k` symmetry into `k ≥ 0` (factor of 2 absorbed) yields exactly
`∑_{k ≥ 0} (-1)^k (2k+1) q^{k(k+1)/2}`, i.e. `jacobiThetaPS`.
-/
open QseriesFormalization
open PowerSeries
open QseriesFormalization.PartIV.Ch19Formal statement
theorem QseriesFormalization.Pending.Ch06Macdonald.coeff_macdonald_A1_triangular (R : Type*) [CommRing R] (k : ℕ) :
((qPochInfPS R)^3).coeff (k * (k + 1) / 2) =
((((-1 : ℤ) ^ k * (2 * k + 1) : ℤ)) : R) := 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 6. Lean source: https://github.com/xiangyazi24/invitation-to-qseries-lean/blob/5df34b280b6a9c4a68ab09105b4e5d3c7bbe88d1/QseriesFormalization/Pending/Chapter06_Macdonald_A1.lean#L54-L59