Per-term vanishing mod 7: when
ProvedQseriesFormalization.PartIV.Ch17.jacobiTripleSign_squared_per_term_zero_mod_7chan-invitation-qseriesidentitiespartition-congruences
With jacobiTripleSign as above ( for , else ), for all natural numbers with ,
This shows each term of the convolution giving the coefficient of in vanishes mod 7, a step in Chapter 17.
Preamble
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
/-!
# Chapter 17 — Mod-7 per-term residue analysis for Ramanujan's 2nd congruence
For `i + j = 7n + 5`, `(jts i : ZMod 7) * (jts j : ZMod 7) = 0`.
Proof structure (analog of `Chapter17_PerTermAnalysis` for mod 5):
- Triangular numbers mod 7 are in {0, 1, 3, 6}.
- For `(jts i : ZMod 7) ≠ 0`: i is triangular AND its index is ≢ 3 mod 7,
forcing `(i : ZMod 7) ∈ {0, 1, 3}`.
- For pairs in `{0,1,3} × {0,1,3}`, the sum mod 7 ∈ {0,1,2,3,4,6} — never 5.
- Hence convolution at 7n+5 is identically zero in ZMod 7.
This is the building block for `∀ n, 7 ∣ p(7n + 5)` via:
`(qPochInfPS ZMod 7)^6 = (jacobiThetaPS ZMod 7)^2` (B2 squared) +
`((jacobiThetaPS ZMod 7)^2).coeff (7n+5) = 0` (this analysis) +
`ramanujan_from_pochInf_vanishes 7`.
-/
open QseriesFormalization
open QseriesFormalization.PartIV
open QseriesFormalization.PartIV.Ch19Formal statement
theorem QseriesFormalization.PartIV.Ch17.jacobiTripleSign_squared_per_term_zero_mod_7 (i j n : ℕ)
(h_sum : i + j = 7 * n + 5) :
((jacobiTripleSign i : ℤ) : ZMod 7) *
((jacobiTripleSign j : ℤ) : ZMod 7) = 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_Mod7PerTermAnalysis.lean#L118-L147