Chapter 19 definitions: pentagonal index and cube convolution of the pentagonal sign
DefinitionQseriesFormalization_Chapter19_JacobiTripleSignCharchan-invitation-qseriesformal-power-seriespentagonal-numberstheta-functions
This bundle defines the pentagonal index function from to naturals, and a complex-weighted convolution of the pentagonal sign . It also defines the integer-valued cube convolution indexed by natural numbers , the coefficient of computed from the pentagonal signs, used to characterize the Jacobi triple sign.
Definition code
-- Generated by qseries-p2m/p2m/generate.py from QseriesFormalization.Chapter19_JacobiTripleSignChar: skeleton subtraction
-- keeps 3 declaration(s); proofs kept; project imports -> Definitions bundles.
import Definitions.Def_QseriesFormalization_Chapter05_Franklin
import Definitions.Def_QseriesFormalization_DefCoreQSeries
import Mathlib.Analysis.SpecificLimits.Normed
import Mathlib.Analysis.Normed.Ring.InfiniteSum
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.SpecialFunctions.Log.Summable
import Mathlib.Analysis.Normed.Group.Tannery
/-!
# Characterisation of `jacobiTripleSign`
Two clean closed forms for `jacobiTripleSign` (defined in `Chapter19.lean`
via `List.find?` on triangular indices):
* `jacobiTripleSign_triangular`: `jacobiTripleSign (k*(k+1)/2) = (-1)^k * (2k+1)`.
* `jacobiTripleSign_of_not_triangular`: `jacobiTripleSign n = 0` when no
`k ≤ n` satisfies `n = k*(k+1)/2`.
These will be needed by both attack routes on the cube convolution
identity (Sylvester combinatorial proof in `Pending/Sylvester_TripleSum`
and the analytic-formal Taylor bridge in `Pending/JacobiCubeAnalyticToFormal`).
Stating them in the main build (rather than inside a Pending file)
keeps the headline target portable.
-/
namespace QseriesFormalization
namespace PartIV
namespace Ch19
/-! ### Analogous lemmas for `pentagonalSign` (parallels jacobiTripleSign).
For the analytic→formal bridge on the LHS of the cube identity, we also
need bounds and summability for `(pentagonalSign n : ℂ) * q^n`. -/
open QseriesFormalization.PartI.Ch04Franklin (pentagonalSign)
/-! ### Pentagonal index function and its injectivity.
For the analytic Euler pentagonal identity in `ℕ`-indexed form, we use
the map `j ↦ j*(3j+1)/2 : ℤ → ℕ` which sends integers to pentagonal
numbers (both `+` and `-` branches). The map is injective.
This is the bridge from Ch04's bilateral `ℤ`-indexed analytic identity
to the `ℕ`-indexed formal-Taylor form needed for the cube argument. -/
/-- The pentagonal index function `ℤ → ℕ`: `j ↦ j*(3j+1)/2` (as Nat). -/
noncomputable def pentagonalIndex (j : ℤ) : ℕ := (j * (3 * j + 1) / 2).toNat
/-! ### Cube identity via tsum_mul_tsum (analytic side). -/
open QseriesFormalization.PartI.Ch04 (eulerPentagonalInfiniteProduct)
/-- The convolution sequence `n ↦ ∑_{a+b=n} σ(a) q^a · σ(b) q^b`. -/
noncomputable def sigmaQConv (q : ℂ) (n : ℕ) : ℂ :=
∑ ab ∈ Finset.HasAntidiagonal.antidiagonal n,
((QseriesFormalization.PartI.Ch04Franklin.pentagonalSign ab.1 : ℤ) : ℂ) * q^ab.1 *
(((QseriesFormalization.PartI.Ch04Franklin.pentagonalSign ab.2 : ℤ) : ℂ) * q^ab.2)
/-- The Nat-level cube convolution: `∑_{(p,q'):p+q'=n} (∑_{(a,b):a+b=p} σ(a)·σ(b)) · σ(q')`.
Mirror of `Pending/Sylvester_TripleSum.cubeConvolution`. -/
noncomputable def cubeConvolution (n : ℕ) : ℤ :=
∑ pq ∈ Finset.HasAntidiagonal.antidiagonal n,
(∑ ab ∈ Finset.HasAntidiagonal.antidiagonal pq.1,
(QseriesFormalization.PartI.Ch04Franklin.pentagonalSign ab.1 : ℤ) *
(QseriesFormalization.PartI.Ch04Franklin.pentagonalSign ab.2 : ℤ)) *
(QseriesFormalization.PartI.Ch04Franklin.pentagonalSign pq.2 : ℤ)
end Ch19
end PartIV
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 19. Lean source: https://github.com/xiangyazi24/invitation-to-qseries-lean/blob/5df34b280b6a9c4a68ab09105b4e5d3c7bbe88d1/QseriesFormalization/Chapter19_JacobiTripleSignChar.lean (definitions of this module that the uploaded theorems need; ported to Lean v4.33.1 / Mathlib 0df444a).