Ramanujan's Lost Notebook Part II, Ch. 12: ch12PrimeProduct
DefinitionRamanujanLostNotebook_PartII_ch12_ch12PrimeProductnumber-theoryramanujan-lost-notebook
The convergent positive Euler product over primes p≡1 mod4 appearing in (12.2.1), Lemma 12.2.1 and the upper cutoff. Nonqualifying indices contribute 1.
Definition code
import Mathlib namespace RamanujanLostNotebook.PartII /-- The convergent positive Euler product over primes p≡1 mod4 appearing in (12.2.1), Lemma 12.2.1 and the upper cutoff. Nonqualifying indices contribute 1. -/ noncomputable def ch12PrimeProduct : ℝ := ∏' p : ℕ, if Nat.Prime p ∧ p % 4 = 1 then 1 - 1 / (p : ℝ) ^ 2 else 1 end RamanujanLostNotebook.PartII
Source
G. E. Andrews and B. C. Berndt, Ramanujan's Lost Notebook, Part II, Springer 2009, Chapter 12.