Section recovers from
ProvedQseriesFormalization.PartIV.Ch19.section_kr_X_pow_mul_expandchan-invitation-qseriesformal-power-series
Let be a commutative ring, , and . Then
where section_kr and is PowerSeries.expand. It lets one extract the residue- part of series of this shape; Chapter 19.
Preamble
import Definitions.Def_QseriesFormalization_Chapter19_Section5 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 19 — k-sections of power series (foundation for MBI / general Ramanujan) To prove `∀ n, 5 ∣ p(5n+4)` and the other Ramanujan congruence families unconditionally, we need Hirschhorn-style algebra on (ZMod p)⟦X⟧ that extracts the coefficients in a fixed residue class. The natural tool is the **k-section operator** at residue r: section_kr φ := mk (fun n => coeff φ (k·n + r)) This file defines that operator and proves its basic algebraic properties. These are foundation lemmas for the MBI proof (Pending/Chapter16_MBI.lean) and for discharging the formal-PS vanishing hypothesis needed by Chapter 19's `ramanujan_from_pochInf_vanishes`. All theorems in this file are unconditional (no sorry, no axiom beyond the core three). -/ open QseriesFormalization open QseriesFormalization.PartIV open QseriesFormalization.PartIV.Ch19 open PowerSeries
Formal statement
theorem QseriesFormalization.PartIV.Ch19.section_kr_X_pow_mul_expand
(R : Type*) [CommRing R] (k : ℕ) (hk : k ≠ 0) (r : ℕ) (hr : r < k)
(φ : PowerSeries R) :
section_kr R k r ((PowerSeries.X (R := R)) ^ r *
PowerSeries.expand k hk φ) = φ := 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 19. Lean source: https://github.com/xiangyazi24/invitation-to-qseries-lean/blob/5df34b280b6a9c4a68ab09105b4e5d3c7bbe88d1/QseriesFormalization/Chapter19_Section5.lean#L80-L104