Ramanujan's Lost Notebook Part I, shared: qPoch
DefinitionRamanujanLostNotebook_PartI_shared_qPochnumber-theoryramanujan-lost-notebook
Finite q-Pochhammer symbol (a; q)_n = (1 - a)(1 - a q) ⋯ (1 - a q^{n-1}), with
(a; q)_0 = 1 ((1.1.3), p. 9; restated with (3.1.3), p. 86). The book shortens it to
(a)_n when the base is q; here the base is always written, so (a; q^2)_n is
qPoch a (q ^ 2) n.
Domain: all complex a, q and every n : ℕ. It is a polynomial in a and q, so there
is no convergence condition and no junk value. This shared definition covers only n ≥ 0;
a negative index cannot be expressed with this definition.
Boundary: qPoch a q 0 = 1 (empty product) and qPoch a q 1 = 1 - a.
Reference: (q; q)_3 = 1 - q - q^2 + q^4 + q^5 - q^6; qPoch (1/2) (1/5) 3 = 441/1000.
Definition code
import Mathlib
noncomputable section
namespace RamanujanLostNotebook.PartI
/-- Finite q-Pochhammer symbol `(a; q)_n = (1 - a)(1 - a q) ⋯ (1 - a q^{n-1})`, with
`(a; q)_0 = 1` ((1.1.3), p. 9; restated with (3.1.3), p. 86). The book shortens it to
`(a)_n` when the base is `q`; here the base is always written, so `(a; q^2)_n` is
`qPoch a (q ^ 2) n`.
Domain: all complex `a`, `q` and every `n : ℕ`. It is a polynomial in `a` and `q`, so there
is no convergence condition and no junk value. This shared definition covers only `n ≥ 0`;
a negative index cannot be expressed with this definition.
Boundary: `qPoch a q 0 = 1` (empty product) and `qPoch a q 1 = 1 - a`.
Reference: `(q; q)_3 = 1 - q - q^2 + q^4 + q^5 - q^6`; `qPoch (1/2) (1/5) 3 = 441/1000`. -/
def qPoch (a q : ℂ) (n : ℕ) : ℂ :=
∏ k ∈ Finset.range n, (1 - a * q ^ k)
end RamanujanLostNotebook.PartI
end
Source
G. E. Andrews and B. C. Berndt, Ramanujan's Lost Notebook, Part I, Springer 2005.