Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Continued fraction for a quotient of four Gamma functions with arguments (x ± n + 1)/4 and (x ± n + 3)/4

Open
RamanujanNotebooks.entry_12_25

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

number-theoryramanujan-notebooks

Let x,nx,nx,n be complex with Re⁡x>0\operatorname{Re}x>0Rex>0 and none of x±n+14,x±n+34\frac{x\pm n+1}4,\frac{x\pm n+3}44x±n+1​,4x±n+3​ equal to 000 or a negative integer. Then

Γ(x+n+14)Γ(x−n+14)Γ(x+n+34)Γ(x−n+34)=4x−n2−122x−n2−322x−n2−522x−⋯ .\frac{\Gamma\bigl(\frac{x+n+1}4\bigr)\Gamma\bigl(\frac{x-n+1}4\bigr)}{\Gamma\bigl(\frac{x+n+3}4\bigr)\Gamma\bigl(\frac{x-n+3}4\bigr)}=\dfrac{4}{x}{\genfrac{}{}{0pt}{}{}{-}}\dfrac{n^2-1^2}{2x}{\genfrac{}{}{0pt}{}{}{-}}\dfrac{n^2-3^2}{2x}{\genfrac{}{}{0pt}{}{}{-}}\dfrac{n^2-5^2}{2x}{\genfrac{}{}{0pt}{}{}{-}}\cdots.Γ(4x+n+3​)Γ(4x−n+3​)Γ(4x+n+1​)Γ(4x−n+1​)​=x4​−​2xn2−12​−​2xn2−32​−​2xn2−52​−​⋯.

Differs from the printed source: We retain the branch Re⁡x>0\operatorname{Re}x>0Rex>0 and require all four Gamma arguments to avoid {0,−1,−2,…}\{0,-1,-2,\ldots\}{0,−1,−2,…}. This excludes poles of the individual factors. The source also permits odd integer nnn with arbitrary complex xxx; that terminating branch is omitted here.

Preamble
import Mathlib
import Definitions.Def_RamanujanNotebooks_shared_cfDen
import Definitions.Def_RamanujanNotebooks_shared_cfNum
Formal statement
namespace RamanujanNotebooks
theorem entry_12_25 (x n : ℂ) (hx : 0 < x.re)
    (hΓ : ∀ j : ℕ, (x + n + 1) / 4 ≠ -(j : ℂ) ∧ (x - n + 1) / 4 ≠ -(j : ℂ) ∧ (x + n + 3) / 4 ≠ -(j : ℂ) ∧ (x - n + 3) / 4 ≠ -(j : ℂ)) :
    (∀ᶠ N : ℕ in Filter.atTop, cfDen (fun k : ℕ => if k = 0 then 4 else -(n ^ 2 - (2 * (k : ℂ) - 1) ^ 2)) (fun k : ℕ => if k = 0 then 0 else if k = 1 then x else 2 * x) N ≠ 0) ∧
    Filter.Tendsto (fun N : ℕ => cfNum (fun k : ℕ => if k = 0 then 4 else -(n ^ 2 - (2 * (k : ℂ) - 1) ^ 2)) (fun k : ℕ => if k = 0 then 0 else if k = 1 then x else 2 * x) N /
        cfDen (fun k : ℕ => if k = 0 then 4 else -(n ^ 2 - (2 * (k : ℂ) - 1) ^ 2)) (fun k : ℕ => if k = 0 then 0 else if k = 1 then x else 2 * x) N) Filter.atTop
      (nhds (Complex.Gamma ((x + n + 1) / 4) * Complex.Gamma ((x - n + 1) / 4) / (Complex.Gamma ((x + n + 3) / 4) * Complex.Gamma ((x - n + 3) / 4)))) := by sorry
end RamanujanNotebooks
Source
Bruce C. Berndt, Ramanujan's Notebooks, Part II (Springer, 1989), Chapter 12, Entry 25, p. 140, eq. (25.1).
Human review
  • Endorsed by Shuze Chen · Oct 15, 2026

    Confirmed by the moderator at approval.

  • Endorsed by FormallyCorrect · Oct 15, 2026

    Confirmed by the mission captain (proposal self-audit).

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