Per-term vanishing mod 5: when
ProvedQseriesFormalization.PartIV.Ch17.jacobiPentagonal_per_term_zero_mod_5chan-invitation-qseriespartition-congruencespentagonal-numbers
Let = jacobiTripleSign ( if , else ) and = pentagonalSign (the sign of in Euler's pentagonal series , and if is not pentagonal). For all natural numbers with ,
(in ). Every term of the convolution for the coefficient of vanishes mod 5, which is the per-term core of Chapter 17's proof of .
Preamble
import Definitions.Def_QseriesFormalization_Chapter05_Franklin 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 import Mathlib.Combinatorics.Enumerative.Partition.Basic import Mathlib.Tactic.Linarith /-! # Chapter 17 — Per-term mod-5 residue obstruction (helpers) Helpers for closing the Finset.sum convolution sorry in `Pending/Chapter17_Ramanujan5Conditional.lean`. Strategy: when `jacobiTripleSign n ≠ 0`, the `List.find?` in its definition returned `some k`, giving us `k ≤ n` with `n = k(k+1)/2`. Similarly for `pentagonalSign`. These extraction lemmas are the bridge from the existential structure of `jacobiTripleSign` / `pentagonalSign` (defined via `find?`) to explicit triangular / pentagonal indices, which the residue analysis of `Chapter17_Mod5ResidueAnalysis` can then dispatch. -/ open QseriesFormalization open QseriesFormalization.PartIV open QseriesFormalization.PartIV.Ch19 open QseriesFormalization.PartI.Ch04Franklin /-! ## Cast-to-ZMod-5 helpers for triangular and pentagonal residues -/
Formal statement
theorem QseriesFormalization.PartIV.Ch17.jacobiPentagonal_per_term_zero_mod_5
(i j m : Nat) (h_sum : i + j = 5 * m + 4) :
((jacobiTripleSign i : ℤ) : ZMod 5) *
((QseriesFormalization.PartI.Ch04Franklin.pentagonalSign j : ℤ) : ZMod 5) = 0 := 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 17. Lean source: https://github.com/xiangyazi24/invitation-to-qseries-lean/blob/5df34b280b6a9c4a68ab09105b4e5d3c7bbe88d1/QseriesFormalization/Chapter17_PerTermAnalysis.lean#L187-L261