Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Ramanujan's Notebooks, shared: shiftedFactorial

Definition
RamanujanNotebooks_shared_shiftedFactorial

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

number-theoryramanujan-notebooks

Shifted factorial (rising factorial) (a)_k = a (a + 1) ⋯ (a + k - 1), (a)_0 = 1 (Part I, (I7), p. 13; Part III, (0.1), p. 87). The product is the definition for every complex a. When a is not a nonpositive integer, it also equals Γ(a+k)/Γ(a); at nonpositive integers the finite product supplies the value without interpreting a quotient of Gamma poles. A polynomial in a: no domain restriction, no junk; (a)_k = 0 exactly when a is one of 0, -1, …, -(k - 1). (Not the q-Pochhammer symbol (a)_k = (a; q)_k, which is qPoch.) Reference: (1)_k = k!, (1/2)_2 = 3/4, (-3)_5 = 0.

Definition code
import Mathlib

noncomputable section

namespace RamanujanNotebooks

/-- Shifted factorial (rising factorial) `(a)_k = a (a + 1) ⋯ (a + k - 1)`, `(a)_0 = 1`
(Part I, (I7), p. 13; Part III, (0.1), p. 87).
The product is the definition for every complex `a`. When `a` is not a nonpositive integer,
it also equals `Γ(a+k)/Γ(a)`; at nonpositive integers the finite product supplies the value
without interpreting a quotient of Gamma poles.
A polynomial in `a`: no domain restriction, no junk; `(a)_k = 0` exactly when `a` is one of
`0, -1, …, -(k - 1)`.  (Not the q-Pochhammer symbol `(a)_k = (a; q)_k`, which is `qPoch`.)
Reference: `(1)_k = k!`, `(1/2)_2 = 3/4`, `(-3)_5 = 0`. -/
def shiftedFactorial (a : ℂ) (k : ℕ) : ℂ :=
  ∏ j ∈ Finset.range k, (a + (j : ℂ))

end RamanujanNotebooks

end
Source
Bruce C. Berndt, Ramanujan's Notebooks.

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