Chapter 10 bridge: the summation box for the coefficient of (10.15)
DefinitionQseriesFormalization_Pending_Chapter10_Bridgechan-invitation-qseriesidentitiesmock-theta
This bundle defines the finite four-fold index box over used by the coefficient formula chan1015LHSCoeff for Chan's Eq. (10.15): the -coordinates range over a square-root window and the -coordinates over , packaged as a single finite set.
Definition code
-- Generated by qseries-p2m/p2m/generate.py from QseriesFormalization.Pending.Chapter10_Bridge: skeleton subtraction
-- keeps 1 declaration(s); proofs kept; project imports -> Definitions bundles.
import Definitions.Def_QseriesFormalization_Pending_Chapter10_TenthOrder
import Mathlib
import Mathlib.Combinatorics.Enumerative.Partition.GenFun
import Mathlib.RingTheory.PowerSeries.Basic
import Mathlib.RingTheory.PowerSeries.Expand
import Mathlib.RingTheory.PowerSeries.Inverse
import Mathlib.Analysis.SpecificLimits.Normed
import Mathlib.Analysis.Normed.Ring.InfiniteSum
import Mathlib.Topology.Algebra.InfiniteSum.NatInt
import Mathlib.RingTheory.LaurentSeries
import Mathlib.RingTheory.PowerSeries.Order
import Mathlib.RingTheory.PowerSeries.Derivative
import Mathlib.Combinatorics.Enumerative.Partition.Basic
import Mathlib.Tactic.Linarith
import Mathlib.Analysis.Normed.Group.Tannery
import Mathlib.Analysis.SpecialFunctions.Log.Summable
namespace QseriesFormalization.Ch10TwoVar end QseriesFormalization.Ch10TwoVar
open scoped Classical
open QseriesFormalization
open QseriesFormalization.Ch10TwoVar
open QseriesFormalization.Pending.Ch10TenthOrder
open QseriesFormalization.Pending.JTPFormalPSPentagonal
namespace QseriesFormalization.Pending.Ch10Bridge
/-! ## Sign helper: `negOnePowInt R k = (-1)^k` as a `zpow` -/
/-! ## `squareWindow` capture: `m² ≤ N ⟹ m ≤ squareWindow N` -/
/-! ## B-RHS (pentagonal): `ofPSK chan1015PentagonalPS = kP10` -/
/-! ## B-LHS: `ofPSK (chan1015LHSPS ℚ) = ChanQuadSum` -/
/-- The four-fold box used by `chan1015LHSCoeff`, as one `Finset` over `(ℤ×ℤ)×(ℤ×ℤ)`. -/
noncomputable def chan1015Box (N : ℕ) : Finset ((ℤ × ℤ) × (ℤ × ℤ)) :=
(Finset.Icc (-(squareWindow N : ℤ)) (squareWindow N) ×ˢ
Finset.Icc (-(squareWindow N : ℤ)) (squareWindow N)) ×ˢ
(Finset.Icc (-((N : ℤ) + 2)) ((N : ℤ) + 2) ×ˢ
Finset.Icc (-((N : ℤ) + 2)) ((N : ℤ) + 2))
/-! ## Final assembly -/
end QseriesFormalization.Pending.Ch10Bridge
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 10. Lean source: https://github.com/xiangyazi24/invitation-to-qseries-lean/blob/5df34b280b6a9c4a68ab09105b4e5d3c7bbe88d1/QseriesFormalization/Pending/Chapter10_Bridge.lean (definitions of this module that the uploaded theorems need; ported to Lean v4.33.1 / Mathlib 0df444a).