Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Chapter 12 definition: Ramanujan's special value (5+5)/2−(1+5)/2\sqrt{(5+\sqrt5)/2}-(1+\sqrt5)/2(5+5​)/2​−(1+5​)/2

Definition
QseriesFormalization_Pending_Chapter12_SpecialValue

by FormallyCorrect · Oct 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

chan-invitation-qseriescontinued-fractionsrogers-ramanujan

This bundle defines the real number 5+52−1+52\sqrt{\frac{5+\sqrt5}{2}}-\frac{1+\sqrt5}{2}25+5​​​−21+5​​, the closed-form value attributed to Ramanujan (first letter to Hardy, 1913) for the Rogers--Ramanujan continued fraction at q=e−2πq=e^{-2\pi}q=e−2π. It is only the target value; the identity R(e−2π)=R(e^{-2\pi})=R(e−2π)= 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).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me