Chapter 12 definition: Ramanujan's special value
DefinitionQseriesFormalization_Pending_Chapter12_SpecialValuechan-invitation-qseriescontinued-fractionsrogers-ramanujan
This bundle defines the real number , the closed-form value attributed to Ramanujan (first letter to Hardy, 1913) for the Rogers--Ramanujan continued fraction at . It is only the target value; the identity this value is not part of the definition.
Definition code
-- Generated by qseries-p2m/p2m/generate.py from QseriesFormalization.Pending.Chapter12_SpecialValue: skeleton subtraction
-- keeps 1 declaration(s); proofs kept; project imports -> Definitions bundles.
import Mathlib.Analysis.SpecialFunctions.Pow.Real
import Mathlib.Data.Complex.Basic
import Mathlib
/-!
# Chapter 12 — Ramanujan's special value `R(e^{-2π})`
⚠️ **AUX-LEVEL SCAFFOLDING** for what was previously a SHADOW chapter.
Ramanujan (1913) proved the celebrated **explicit evaluation**
`R(e^{-2π}) = √((5 + √5)/2) − (1 + √5)/2`
of the Rogers-Ramanujan continued fraction at `q = e^{-2π}`. This file
defines the target value as a real number and proves the basic algebraic
properties needed to bridge it with `Chapter11`'s golden ratio
infrastructure.
The Chan §12 chapter-main is the equality
`R(e^{-2π}) = ramanujanRRCFSpecialValue`, which requires:
1. A non-degenerate definition of `R(q)` (cf.
`Pending/Chapter11_RRCF_Convergent`).
2. Convergence of the analytic RRCF at `|q| < 1`.
3. The Ramanujan special-value evaluation itself (multi-step modular
theory).
This file establishes the **target value**; closing the equality is open.
-/
namespace QseriesFormalization
namespace Pending
namespace Ch12SpecialValue
open Real
/-- **Ramanujan's special value** for the Rogers-Ramanujan continued fraction
at `q = e^{-2π}`:
`R(e^{-2π}) = √((5 + √5)/2) − (1 + √5)/2 ≈ 0.28403...`
This is the closed-form value attributed to Ramanujan in his first letter
to Hardy (1913). Defined here as the target of Chan §12's chapter-main
equality. -/
noncomputable def ramanujanRRCFSpecialValue : ℝ :=
Real.sqrt ((5 + Real.sqrt 5) / 2) - (1 + Real.sqrt 5) / 2
/-! ### Connection to Chapter11's golden ratio
The Lean `Chapter11.α`, `Chapter11.β` are roots of `x²−x−1=0`:
`α = (1+√5)/2 = φ`, `β = (1−√5)/2 = 1−φ`.
Hence `ramanujanRRCFSpecialValue = √((5+√5)/2) − α` and Chan §12's
explicit evaluation can be re-expressed entirely in golden-ratio terms.
The numerical value is `≈ 0.28403`.
-/
end Ch12SpecialValue
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 12. Lean source: https://github.com/xiangyazi24/invitation-to-qseries-lean/blob/5df34b280b6a9c4a68ab09105b4e5d3c7bbe88d1/QseriesFormalization/Pending/Chapter12_SpecialValue.lean (definitions of this module that the uploaded theorems need; ported to Lean v4.33.1 / Mathlib 0df444a).