Coefficient of in when
ProvedQseriesFormalization.PartIV.Ch20.coeff_three_pow_of_constantCoeff_onechan-invitation-qseriesformal-power-seriesramanujan-tau
Let be a commutative ring, with , , and . Then
A helper for the computations of Chapter 20.
Preamble
import Mathlib
import Mathlib.Combinatorics.Enumerative.Partition.GenFun
import Mathlib.RingTheory.PowerSeries.Basic
import Mathlib.RingTheory.PowerSeries.Expand
import Mathlib.RingTheory.PowerSeries.Inverse
import Mathlib.RingTheory.PowerSeries.Derivative
import Mathlib.Analysis.SpecialFunctions.Log.Summable
import Mathlib.Analysis.Normed.Group.Tannery
import Mathlib.Combinatorics.Enumerative.Partition.Basic
import Mathlib.Tactic.Linarith
import Mathlib.Analysis.SpecificLimits.Normed
import Mathlib.Analysis.Normed.Ring.InfiniteSum
namespace QseriesFormalization.PartIV.Ch19 end QseriesFormalization.PartIV.Ch19
namespace QseriesFormalization.Pending.Ch15FormalDeriv end QseriesFormalization.Pending.Ch15FormalDeriv
/-!
# Chapter 20 — Modular discriminant Δ and the Ramanujan τ-function
⚠️ **AUX CHAPTER — full modularity of Δ(τ) OPEN**.
Per `PLAYBOOK_AUDIT.md` (2026-05-22): this file is the formal-PS landing
strip for the Ramanujan τ-function and the discriminant. Genuine
results proved here:
• Values: `ramanujanTau_zero .. ramanujanTau_fifty` matching OEIS A000594
• Multiplicativity checks at coprime factor pairs up to 50
• Prime-power Hecke recursion checks for p ∈ {2, 3, 5, 7} up to 50
• Log-derivative recurrence for all `n ≥ 2`
• Parity theorem: `τ(n)` is odd iff `n` is an odd square
• Mod-691 congruence `τ(n) ≡ σ₁₁(n)` verified through `n ≤ 50`
• Mod-p congruences: `ramanujanTau_p_mod_p` for `p ∈ {2,3,5,7}`
• n = 0 unconditional Ramanujan trio:
`ramanujan_partition_four_mod_five`, `_five_mod_seven`,
`_six_mod_eleven`
• Frobenius: `discriminantPS_pow_eq_expand`
• Algebraic structure: `etaPS_isUnit`, `discriminantPS_not_isUnit`,
`discriminantPS_eq_X_mul_etaPS_pow_24`,
`discriminantPS_eq_X_mul_tprod_pow_24`
**Chan's Ch 20 main result — the modular invariance of Δ(τ) under
SL₂(ℤ) and the resulting full multiplicativity of `τ(n)` — is NOT
formalized here**, because the formal-PS approach does not see the
complex-analytic modularity directly; that requires Mathlib's
`ModularForm` infrastructure which is incomplete for the η-quotient
case. Tracked as Tier 5 #18 in `TODO_THEOREMS.md`.
-/
variable {R : Type*} [Field R]
open Filter Topology
/-! ### Formal power series eta and discriminant
We lift Chan's η and Δ to formal power series over a commutative ring, using
the partition generating function infrastructure from Chapter 19. -/
open PowerSeries QseriesFormalization.PartIV.Ch19
open QseriesFormalization.Pending.Ch15FormalDeriv
variable (R : Type*) [CommRing R]Formal statement
theorem QseriesFormalization.PartIV.Ch20.coeff_three_pow_of_constantCoeff_one
(f : R⟦X⟧) (hf : f.coeff 0 = 1) (k : Nat) :
(f ^ k).coeff 3 = (k : R) * f.coeff 3
+ 2 * (k.choose 2 : R) * f.coeff 2 * f.coeff 1
+ (k.choose 3 : R) * (f.coeff 1) ^ 3 := 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 20. Lean source: https://github.com/xiangyazi24/invitation-to-qseries-lean/blob/5df34b280b6a9c4a68ab09105b4e5d3c7bbe88d1/QseriesFormalization/Chapter20.lean#L1642 (header match only; ported to Lean v4.33.1 / Mathlib 0df444a; proof adapted for this upload)