Chapter 11 definitions: the golden ratio and its conjugate
DefinitionQseriesFormalization_Chapter11chan-invitation-qseriescontinued-fractionsrogers-ramanujan
This bundle defines the two real constants (the golden ratio) and , its conjugate, used in the Rogers--Ramanujan continued fraction chapter.
Definition code
-- Generated by qseries-p2m/p2m/generate.py from QseriesFormalization.Chapter11: skeleton subtraction
-- keeps 2 declaration(s); proofs kept; project imports -> Definitions bundles.
import Mathlib.Analysis.SpecialFunctions.Pow.Real
import Mathlib.Data.Complex.Basic
import Mathlib
/-!
# Chapter 11 — Part III: Rogers-Ramanujan continued fraction
(Hei-Chi Chan, *An Invitation to q-Series*, Ch 11, pp. 97-104.)
⚠️ **AUX CHAPTER — chapter-main result OPEN**.
Per `PLAYBOOK_AUDIT.md` (2026-05-22): this file is large (~60k lines) but
the bulk is two kinds of content:
1. **Real:** golden-ratio algebra over ℝ — `α`, `β`, sum/product/inverse
identities, recurrences, and the Fibonacci-style closed forms for
`α^k` and `β^k` (k up to ~20). These are all genuine ℝ-level proofs.
2. **Auxiliary:** finite truncations `G_trunc q N`, `H_trunc q N`,
`R_trunc q N` of the Rogers-Ramanujan numerator/denominator/quotient,
plus their `_eq_N` closed-form unfoldings for N up to several thousand.
These are mechanical and serve only as scaffolding.
**Chan's Ch 11 main result — convergence and closed-form evaluation of the
Rogers-Ramanujan continued fraction `R(q) := lim_{N→∞} R_trunc q N` at
special values such as `q = e^{-2π}` — is NOT formalized here.** Tracked
as Tier 5 #17 in `TODO_THEOREMS.md`. Until that is closed, this chapter
is auxiliary (the truncation closed-forms do not by themselves prove
anything about `R(q)`).
-/
namespace QseriesFormalization
namespace PartIII
namespace Ch11
/-- The Golden Ratio `(1 + √5) / 2`. -/
noncomputable def α : ℝ := (1 + Real.sqrt 5) / 2
/-- The negative reciprocal `(1 - √5) / 2`. -/
noncomputable def β : ℝ := (1 - Real.sqrt 5) / 2
end Ch11
end PartIII
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 11. Lean source: https://github.com/xiangyazi24/invitation-to-qseries-lean/blob/5df34b280b6a9c4a68ab09105b4e5d3c7bbe88d1/QseriesFormalization/Chapter11.lean (definitions of this module that the uploaded theorems need; ported to Lean v4.33.1 / Mathlib 0df444a).