Chapter 13 definitions: the polynomials and of Chan's Theorem 11.5
DefinitionQseriesFormalization_Pending_Chapter13_Watson_Algebraicchan-invitation-qseriescontinued-fractionsrogers-ramanujan
This bundle defines, over any commutative ring, the two quartic polynomials (the right-hand numerator) and (the left-hand denominator) appearing in Chan's Theorem 11.5 on the fifth power of the Rogers--Ramanujan continued fraction.
Definition code
-- Generated by qseries-p2m/p2m/generate.py from QseriesFormalization.Pending.Chapter13_Watson_Algebraic: skeleton subtraction
-- keeps 2 declaration(s); proofs kept; project imports -> Definitions bundles.
import Mathlib.Tactic.Ring
/-!
# Watson's algebraic framework for Chan Theorem 11.5
Watson's 1929 proof of Ramanujan's "deep and difficult" identity
`R(q)⁵ = R(q⁵) · A(v)/B(v)` is purely algebraic, reducing the identity to
polynomial identities in a single variable `v = R(q⁵)`.
## Key polynomials (all verified by `ring`)
* `A(v) = 1 - 2v + 4v² - 3v³ + v⁴` — RHS numerator
* `B(v) = 1 + 3v + 4v² + 2v³ + v⁴` — LHS denominator
* `A · B = v⁸ - v⁷ + 2v⁶ - 3v⁵ + 5v⁴ + 3v³ + 2v² + v + 1`
* `A - B = -5v(1 + v²)`
* `v⁴ · A(1/v) = B(-v)` (anti-palindromic cross relation)
## Role in formalization
Chan's Theorem 11.5 states `r(q)⁵ · B(v) = (expand 5 r) · A(v)` where
`v = X · (expand 5 r)`. The polynomials `A` and `B` are the numerator and
denominator of the rational function relating `R(q)⁵` to `R(q⁵)`.
This file provides the polynomial-level infrastructure: evaluation at 0,
product/sum/difference expansions, and the reciprocal relations between
A and B. These are prerequisites for any future proof of Theorem 11.5
(whether via Gugg telescoping or Watson's approach).
-/
namespace QseriesFormalization
namespace Pending
namespace WatsonAlgebraic
variable {R : Type*} [CommRing R]
/-! ## Polynomial definitions over a commutative ring -/
/-- `A(v) = 1 - 2v + 4v² - 3v³ + v⁴`, the RHS numerator of Chan Thm 11.5. -/
def A (v : R) : R := 1 - 2 * v + 4 * v ^ 2 - 3 * v ^ 3 + v ^ 4
/-- `B(v) = 1 + 3v + 4v² + 2v³ + v⁴`, the LHS denominator of Chan Thm 11.5. -/
def B (v : R) : R := 1 + 3 * v + 4 * v ^ 2 + 2 * v ^ 3 + v ^ 4
/-! ## Evaluation at 0 -/
/-! ## Product, sum, and difference -/
/-! ## Reciprocal / symmetry relations
The polynomials A and B are related by the operation `v ↦ 1/v` combined
with sign change. In cleared form (avoiding division):
* `v⁴ · A(1/v) = B(-v)` — A's reversal is B at -v
* `v⁴ · B(1/v) = A(-v)` — B's reversal is A at -v
Neither A nor B is individually palindromic: `v⁴ · A(1/v) ≠ A(v)`.
We state these in forms that avoid `v⁻¹` (which requires field structure),
using the explicit coefficient reversal. -/
/-! ## Connecting to the formal power series identity
Chan's Theorem 11.5 in formal-PS form is:
`r⁵ · B(v) = s · A(v)` where `s = expand 5 r`, `v = X · s`.
The polynomial A and B appear directly in `Chapter13_DeepIdentity.lean`:
* LHS polynomial: `1 + 3·rrcf_v + 4·rrcf_v² + 2·rrcf_v³ + rrcf_v⁴ = B(rrcf_v)`
* RHS polynomial: `1 - 2·rrcf_v + 4·rrcf_v² - 3·rrcf_v³ + rrcf_v⁴ = A(rrcf_v)`
These lemmas connect the `A`/`B` definitions here to the expanded forms
used in `chan_theorem_11_5`. -/
/-! ## Structure of A · B as preparation for Watson's approach
Watson's proof relates `R(q)⁵/R(q⁵)` to a rational function `A(v)/B(v)`.
The product `A · B` is an octic polynomial that appears in intermediate
computations. We record its structure here. -/
/-! ## Evaluations at specific values
These are useful for sanity-checking the formalization. -/
/-! ## Connection to golden ratio
The polynomials A and B have a deep connection to the golden ratio
`φ = (1+√5)/2` and its conjugate `ψ = (1-√5)/2`. The Rogers-Ramanujan
continued fraction satisfies `R(e^{-2π}) = √((5+√5)/2) - (1+√5)/2`.
The quadratic `1 - v - v² = -(v² + v - 1)` has roots at `v = ψ = (-1+√5)/2`
and `v = -φ = (-1-√5)/2`. Substituting these into A and B:
* `A(ψ) = ψ⁴ - 3ψ³ + 4ψ² - 2ψ + 1`
* `B(ψ) = ψ⁴ + 2ψ³ + 4ψ² + 3ψ + 1`
These can be simplified using `ψ² = 1 - ψ` (from the golden ratio relation).
We leave this for future work over `ℝ` or an explicit `√5` extension. -/
end WatsonAlgebraic
end Pending
end QseriesFormalization
Source
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 13. Lean source: https://github.com/xiangyazi24/invitation-to-qseries-lean/blob/5df34b280b6a9c4a68ab09105b4e5d3c7bbe88d1/QseriesFormalization/Pending/Chapter13_Watson_Algebraic.lean (definitions of this module that the uploaded theorems need; ported to Lean v4.33.1 / Mathlib 0df444a).