Mod-7 formal JTP products and theta series: and ,
DefinitionQseriesFormalization_Pending_JTP_FormalPS_Mod7chan-invitation-qseriesjacobi-triple-productpartition-congruencesq-pochhammer
This bundle defines the mod-7 residue factor and several mod-7 triple products with their per- factors, the theta exponents and coefficients of the associated bilateral series, the theta series and their analytic (complex) and formal-multilinear versions. It specifically defines Hirschhorn's and together with their theta-series sides and .
For arbitrary integer , the coefficient function sums only over with . The validity predicate is ; identifications with unrestricted bilateral series use this condition. The complex sums and products are totalized, with respective defaults and when summability or multipliability fails.
Definition code
-- Generated by qseries-p2m/p2m/generate.py from QseriesFormalization.Pending.JTP_FormalPS_Mod7: skeleton subtraction
-- keeps 20 declaration(s); proofs kept; project imports -> Definitions bundles.
import Definitions.Def_QseriesFormalization_DefCoreQSeries
import Mathlib.RingTheory.PowerSeries.Expand
import Mathlib.Topology.Algebra.InfiniteSum.NatInt
import Mathlib
import Mathlib.Analysis.SpecialFunctions.Log.Summable
import Mathlib.Analysis.Normed.Group.Tannery
import Mathlib.Combinatorics.Enumerative.Partition.GenFun
import Mathlib.RingTheory.PowerSeries.Basic
import Mathlib.RingTheory.PowerSeries.Inverse
import Mathlib.Data.ZMod.Basic
import Mathlib.Analysis.SpecificLimits.Normed
import Mathlib.Analysis.Normed.Ring.InfiniteSum
import Mathlib.Combinatorics.Enumerative.Partition.Basic
import Mathlib.Tactic.Linarith
namespace QseriesFormalization.Pending.ASDEtaProducts end QseriesFormalization.Pending.ASDEtaProducts
/-!
# Formal power-series shells for the mod-7 JTP specialisations
This file mirrors the completed mod-5 path in
`Pending/JTP_FormalPS_Pentagonal.lean` and `Pending/ASD_EtaProducts.lean`.
It keeps all declarations local to this new pending file.
-/
namespace QseriesFormalization
namespace Pending
namespace JTPFormalPSMod7
open Filter
open PowerSeries
open scoped Topology PowerSeries PowerSeries.WithPiTopology
open JTPFormalPSPentagonal
open ASDEtaProducts
/-! ## Analytic mod-7 AP factors -/
/-- The analytic factor `1 - q^(r + 7n)`. -/
def rrMod7Factor (q : ℂ) (r : ℕ) (n : ℕ) : ℂ :=
1 - q ^ (r + 7 * n)
@[simp] theorem rrMod7Factor_def (q : ℂ) (r n : ℕ) :
rrMod7Factor q r n = 1 - q ^ (r + 7 * n) := rfl
/-! ## Formal AP products -/
/-- `(q^a,q^b,q^7;q^7)_∞` as a formal power series. -/
noncomputable def mod7ProductPS
(a b : ℕ) (R : Type*) [CommRing R] [TopologicalSpace R] : R⟦X⟧ :=
qPochAPPS R a 7 * qPochAPPS R b 7 * qPochAPPS R 7 7
/-- The per-`n` triple factor for `(q^a,q^b,q^7;q^7)_∞`. -/
noncomputable def mod7TripleFactorPS
(a b : ℕ) (R : Type*) [CommRing R] (n : ℕ) : R⟦X⟧ :=
apFactorPS R a 7 n * apFactorPS R b 7 n * apFactorPS R 7 7 n
/-- `(q^3,q^4,q^7;q^7)_∞`. -/
noncomputable abbrev mod7Product034PS
(R : Type*) [CommRing R] [TopologicalSpace R] : R⟦X⟧ :=
mod7ProductPS 3 4 R
/-- `(q,q^6,q^7;q^7)_∞`. -/
noncomputable abbrev mod7Product016PS
(R : Type*) [CommRing R] [TopologicalSpace R] : R⟦X⟧ :=
mod7ProductPS 1 6 R
/-! ## Formal bilateral theta coefficients -/
/-- The allowed odd `c` values in the exponents `(7k² - ck)/2`. -/
def ThetaCValid (c : ℤ) : Prop := c = 1 ∨ c = 3 ∨ c = 5
/-- The integer exponent `(7k² - ck)/2`, coerced to `Nat`. -/
def theta7Exp (c : ℤ) (k : ℤ) : ℕ :=
(k * (7 * k - c) / 2).toNat
/-- Coefficient of `X^n` in `∑ (-1)^k X^((7k²-ck)/2)`. -/
noncomputable def theta7Coeff (c : ℤ) (R : Type*) [CommRing R] (n : ℕ) : R :=
∑ k ∈ Finset.Icc (-(n + 1 : ℤ)) (n + 1 : ℤ),
if theta7Exp c k = n then negOnePowInt R k else 0
/-- Formal series `∑ (-1)^k X^((7k²-ck)/2)`. -/
noncomputable def theta7SeriesPS (c : ℤ) (R : Type*) [CommRing R] : R⟦X⟧ :=
PowerSeries.mk (theta7Coeff c R)
/-! ## Bilateral theta analytic-to-formal bridge -/
noncomputable def theta7ThetaTerm (c : ℤ) (q : ℂ) (k : ℤ) : ℂ :=
negOnePowInt ℂ k * q ^ theta7Exp c k
noncomputable def theta7ThetaNat (c : ℤ) (q : ℂ) : ℂ :=
∑' k : ℤ, theta7ThetaTerm c q k
noncomputable def theta7Analytic (c : ℤ) (q : ℂ) : ℂ :=
∑' k : ℤ, (-1 : ℂ) ^ k * q ^ (k * (7 * k - c) / 2)
noncomputable def theta7SeriesFMLS (c : ℤ) : FormalMultilinearSeries ℂ ℂ ℂ :=
FormalMultilinearSeries.ofScalars ℂ (theta7Coeff c ℂ)
/-! ## Analytic JTP specialisations for modulus 7 -/
/-- Analytic product `(q^a,q^b,q^7;q^7)_∞`, ordered as the JTP product side. -/
noncomputable def mod7ProductAnalytic (a b : ℕ) (q : ℂ) : ℂ :=
(∏' n : ℕ, rrMod7Factor q 7 n) *
(∏' n : ℕ, rrMod7Factor q b n) *
(∏' n : ℕ, rrMod7Factor q a n)
/-! ## Product coefficient Taylor bridge -/
noncomputable def mod7ProductCoeffFMLS (a b : ℕ) : FormalMultilinearSeries ℂ ℂ ℂ :=
FormalMultilinearSeries.ofScalars ℂ (fun n => (mod7ProductPS a b ℂ).coeff n)
/-! ## Rational forms -/
/-! ## Hirschhorn §3.7.2: the mod-49 H/J/K eta products -/
/-- Hirschhorn's `H(q^7) = (q^21,q^28,q^49;q^49)_∞`. -/
noncomputable def asd7HProductPS
(R : Type*) [CommRing R] [TopologicalSpace R] : R⟦X⟧ :=
qPochAPPS R 21 49 * qPochAPPS R 28 49 * qPochAPPS R 49 49
/-- Hirschhorn's `K(q^7) = (q^7,q^42,q^49;q^49)_∞`. -/
noncomputable def asd7KProductPS
(R : Type*) [CommRing R] [TopologicalSpace R] : R⟦X⟧ :=
qPochAPPS R 7 49 * qPochAPPS R 42 49 * qPochAPPS R 49 49
/-- Theta side of `H(q^7)`: `∑ (-1)^k X^((49k²-7k)/2)`. -/
noncomputable def asd7HSeriesPS (R : Type*) [CommRing R] : R⟦X⟧ :=
PowerSeries.expand 7 (by decide) (theta7SeriesPS 1 R)
/-- Theta side of `K(q^7)`: `∑ (-1)^k X^((49k²-35k)/2)`. -/
noncomputable def asd7KSeriesPS (R : Type*) [CommRing R] : R⟦X⟧ :=
PowerSeries.expand 7 (by decide) (theta7SeriesPS 5 R)
end JTPFormalPSMod7
end Pending
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). Lean source: https://github.com/xiangyazi24/invitation-to-qseries-lean/blob/5df34b280b6a9c4a68ab09105b4e5d3c7bbe88d1/QseriesFormalization/Pending/JTP_FormalPS_Mod7.lean (definitions of this module that the uploaded theorems need; ported to Lean v4.33.1 / Mathlib 0df444a).