Mod-5 dissection setup: residue sections and the components of
DefinitionQseriesFormalization_Pending_Chapter17_ASD_Mod5chan-invitation-qseriesformal-power-seriespartition-congruencesq-pochhammer
Let be a commutative ring, , and . This bundle defines the uncompressed section by
for every . The predicate means that whenever . Thus gives a zero section and forces a supported series to be zero. Over , it defines as this section of , where is qPochInfPS. These are the components used in the mod- partition-congruence argument.
Definition code
-- Generated by qseries-p2m/p2m/generate.py from QseriesFormalization.Pending.Chapter17_ASD_Mod5: skeleton subtraction
-- keeps 3 declaration(s); proofs kept; project imports -> Definitions bundles.
import Definitions.Def_QseriesFormalization_DefCoreQSeries
import Mathlib.Data.ZMod.Basic
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
import Mathlib.Combinatorics.Enumerative.Partition.Basic
import Mathlib.Tactic.Linarith
import Mathlib.Analysis.SpecialFunctions.Log.Summable
import Mathlib.Analysis.Normed.Group.Tannery
namespace QseriesFormalization.PartI.Ch04Franklin end QseriesFormalization.PartI.Ch04Franklin
namespace QseriesFormalization.PartIV.Ch17 end QseriesFormalization.PartIV.Ch17
/-!
# Chapter 17 — Atkin-Swinnerton-Dyer congruences mod 5
This file records the mod-5 dissection used in Hirschhorn §3.6.
In `(ZMod 5)⟦X⟧`, Jacobi's cube identity shows that `(q;q)_∞^3`
has only residue `0` and residue `1` terms modulo `5`: triangular
exponents have residues `{0,1,3}`, but the `3` residue occurs exactly
when the Jacobi coefficient `2k+1` is zero in `ZMod 5`.
-/
namespace QseriesFormalization
namespace Pending
namespace ASDMod5
open PowerSeries
open QseriesFormalization.PartIV.Ch19
open QseriesFormalization.PartIV.Ch17
open QseriesFormalization.PartI.Ch04Franklin
/-- The 5-residue section of a formal power series over `R`: keep only
coefficients at indices `≡ r (mod 5)`, set the rest to zero. -/
noncomputable def section5 (R : Type*) [CommRing R] (r : ℕ) (φ : R⟦X⟧) : R⟦X⟧ :=
PowerSeries.mk (fun n => if n % 5 = r then φ.coeff n else 0)
/-- A series is supported on one residue class modulo `5`. -/
def IsRes5 {R : Type*} [CommRing R] (r : ℕ) (φ : R⟦X⟧) : Prop :=
∀ n, n % 5 ≠ r → φ.coeff n = 0
/-- The residue-`r` component of `(qPochInfPS (ZMod 5))^3`. -/
noncomputable def A (r : ℕ) : (ZMod 5)⟦X⟧ :=
section5 (ZMod 5) r ((qPochInfPS (ZMod 5)) ^ 3)
end ASDMod5
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), Chapter 17. Lean source: https://github.com/xiangyazi24/invitation-to-qseries-lean/blob/5df34b280b6a9c4a68ab09105b4e5d3c7bbe88d1/QseriesFormalization/Pending/Chapter17_ASD_Mod5.lean (definitions of this module that the uploaded theorems need; ported to Lean v4.33.1 / Mathlib 0df444a).