Pentagonal numbers are modulo 5
ProvedQseriesFormalization.Pending.Ch16MBIProof.pentagonal_kind_one_mod_5chan-invitation-qseriespartition-congruencespentagonal-numbers
For every natural number , the pentagonal number (with natural-number subtraction) is congruent to , or modulo : its residue in is never or . This is a mod-5 fact about generalized pentagonal numbers, used in Chapter 16 (pending proof) to show that has nonzero coefficients only in three residue classes mod 5.
Preamble
import Definitions.Def_QseriesFormalization_Chapter05_Franklin import Mathlib.Analysis.SpecificLimits.Normed import Mathlib.Analysis.Normed.Ring.InfiniteSum import Mathlib.Topology.Algebra.InfiniteSum.NatInt 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 namespace QseriesFormalization.PartIV.Ch19 end QseriesFormalization.PartIV.Ch19 namespace QseriesFormalization.Pending.JTPFormalPSPentagonal end QseriesFormalization.Pending.JTPFormalPSPentagonal /-! # Pending proof work for Chan §16 / Hirschhorn §5 This file is intentionally standalone: it does not edit or import the existing `Pending/Chapter16_MBI.lean` stub. It develops the mod-5 section bookkeeping needed for Ramanujan's most beautiful identity. -/ open QseriesFormalization open Filter open PowerSeries open scoped Topology PowerSeries PowerSeries.WithPiTopology open QseriesFormalization.PartIV.Ch19 open QseriesFormalization.PartI.Ch04Franklin (pentagonalSign) open QseriesFormalization.Pending.JTPFormalPSPentagonal
Formal statement
theorem QseriesFormalization.Pending.Ch16MBIProof.pentagonal_kind_one_mod_5 (k : ℕ) :
(((k * (3 * k - 1) / 2 : ℕ) : ZMod 5) = 0) ∨
(((k * (3 * k - 1) / 2 : ℕ) : ZMod 5) = 1) ∨
(((k * (3 * k - 1) / 2 : ℕ) : ZMod 5) = 2) := 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 16. Lean source: https://github.com/xiangyazi24/invitation-to-qseries-lean/blob/5df34b280b6a9c4a68ab09105b4e5d3c7bbe88d1/QseriesFormalization/Pending/Chapter16_MBI_Proof.lean#L179-L228