Constant coefficient of is
ProvedQseriesFormalization.Pending.Ch13RRCF.coeff_zero_rrcf_rchan-invitation-qseriescontinued-fractionsrogers-ramanujan
Let be the Rogers--Ramanujan continued-fraction series, the quotient of the formal pentagonal series by (inverse taken in ). Then . Chapter 13.
Preamble
import Definitions.Def_QseriesFormalization_Pending_Chapter13_RRCF_RForm
import Mathlib.Topology.Algebra.InfiniteSum.NatInt
import Mathlib.Analysis.SpecificLimits.Normed
import Mathlib.Analysis.Normed.Ring.InfiniteSum
import Mathlib
import Mathlib.Analysis.SpecialFunctions.Log.Summable
import Mathlib.Analysis.Normed.Group.Tannery
import Mathlib.Combinatorics.Enumerative.Partition.GenFun
import Mathlib.RingTheory.PowerSeries.Basic
import Mathlib.RingTheory.PowerSeries.Expand
import Mathlib.RingTheory.PowerSeries.Inverse
import Mathlib.Combinatorics.Enumerative.Partition.Basic
import Mathlib.Tactic.Linarith
namespace QseriesFormalization.Pending.Ch16MBIProof end QseriesFormalization.Pending.Ch16MBIProof
/-!
# Chapter 13 / §11.5 — the Rogers–Ramanujan continued fraction in fractional-power-free form
Chan's "difficult and deep" identity (Theorem 11.5) relates `u = R(q)` and `v = R(q⁵)`:
`u⁵ = v · (1 − 2v + 4v² − 3v³ + v⁴) / (1 + 3v + 4v² + 2v³ + v⁴)`.
The repo's `Chapter11.R_trunc` is a DEGENERATE truncation (its recurrence
`R_{n+1} = 1/(1+q^{n+1}R_n)` has `q^{n+1}→0`, so it converges trivially to `1`, NOT to the RRCF).
This file builds the CORRECT, fractional-power-free object.
**Key device.** `R(q) = q^{1/5}·r(q)` where
`r(q) = (q;q⁵)∞(q⁴;q⁵)∞ / ((q²;q⁵)∞(q³;q⁵)∞)` has NO fractional power — it is a genuine formal
power series. Moreover `r(q) = H(q)/G(q)` where `G,H` are the two Rogers–Ramanujan products; in the
repo's keystone variables `r = pentagonal014SeriesPS / pentagonal023SeriesPS` (numerically confirmed:
`pentagonal014 = (q,q⁴,q⁵;q⁵)`, `pentagonal023 = (q²,q³,q⁵;q⁵)`, and the `(q⁵;q⁵)` factors cancel in the
ratio, leaving exactly `r`).
With `u = q^{1/5} r(q)`, `v = q·r(q⁵)` (note `(q⁵)^{1/5} = q`, so `v` is fractional-power-free too),
Theorem 11.5 becomes the FORMAL POWER SERIES identity (verified numerically to degree 60, residual 0):
```
r(q)⁵ · (1 + 3v + 4v² + 2v³ + v⁴) = r(q⁵) · (1 − 2v + 4v² − 3v³ + v⁴), v := X · r(q⁵).
```
`r(q⁵) = PowerSeries.expand 5 r`.
**Proof strategy (next steps, deep — Hardy: "difficult and deep").** This `u⁵ = v·N(v)/D(v)` form is
NOT the same as the R(q)-only quintic already proved in `RamanujanQuinticJTP` (`core·E(q⁵)=E(q)¹¹`); it
ADDITIONALLY relates `R(q)` to `R(q⁵)`, and the standard route is the **Gugg telescoping** (Chan §13.1 /
Hirschhorn §9.2): a product `Q = ∏ₖ tₖ` of single-mode factors telescopes to `R(q)⁵/R(q⁵)`, while a
second evaluation gives the rational function in `R(q⁵)`. Formalizing that telescoping is the substantial
remaining work. This file lays the fractional-power-free foundation only.
-/
open QseriesFormalization
open QseriesFormalization.Pending
open QseriesFormalization.Pending.Ch13RRCF
open QseriesFormalization.Pending.JTPFormalPSPentagonal
/-! ## Well-definedness of `rrcf_r`
Section 13.1 of Chan (and §9.2 of Hirschhorn) treats `r(q)` as if it were a
genuine power series; that is justified here because the denominator
`pentagonal023SeriesPS ℚ` has constant term `1`, hence is a unit in `ℚ⟦X⟧`,
hence has the standard formal-PS inverse and `rrcf_r · pentagonal023 =
pentagonal014` as a formal equality. None of this is the deep Chan §13
identity (that requires Gugg telescoping); these are the bookkeeping facts
that need to be in place before any closure attempt can begin.
-/
open QseriesFormalization.Pending.JTPFormalPSPentagonal
open QseriesFormalization.Pending.Ch16MBIProof
/-! ### Algebraic relations for `rrcf_v` (image of `r(q⁵)` under `X·expand 5`)
`rrcf_v` is intentionally chosen so that `rrcf_v.coeff 0 = 0` (no constant
term), which makes any polynomial `1 + c₁·rrcf_v + c₂·rrcf_v² + ⋯` a unit
in `ℚ⟦X⟧` (constant term `1`). This is the technical reason Chan's
Theorem 11.5 can be stated as a clean formal-PS identity.
-/
/-! ### Constant-coefficient verification of Chan Theorem 11.5
A first step toward Chan's Theorem 11.5 (`Pending/Chapter13_DeepIdentity`):
both sides of the conjectured formal-PS identity have the same constant
coefficient (=1), so the *difference* of the two sides has constant
coefficient 0. This is the simplest nontrivial verification.
Verifying the full identity coefficient-by-coefficient up to all orders is
the open work (Gugg telescoping); this constant-coefficient match is the
first of infinitely many such matches.
-/Formal statement
theorem QseriesFormalization.Pending.Ch13RRCF.coeff_zero_rrcf_r :
rrcf_r.coeff 0 = 1 := 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 13. Lean source: https://github.com/xiangyazi24/invitation-to-qseries-lean/blob/5df34b280b6a9c4a68ab09105b4e5d3c7bbe88d1/QseriesFormalization/Pending/Chapter13_RRCF_RForm.lean#L187 (header match only; ported to Lean v4.33.1 / Mathlib 0df444a; proof adapted for this upload)