Generalized binomial coefficient with complex upper index
DefinitionNRLFormulary_cbinomFor a complex number and a natural number , the generalized binomial coefficient is
the falling factorial of length starting at , divided by . The product over an empty range is , so for every .
This is the coefficient appearing throughout the Rothe-Hagen identity, where the upper index is an arbitrary complex number while the lower index stays a natural number. For a natural number it agrees with the ordinary binomial coefficient, and as a function of it is a polynomial of degree ; both facts make it the standard vehicle for binomial identities with complex parameters.
Formalization Note. The denominator is the factorial of coerced into , which is never zero, so no division-by-zero convention is involved.
import Mathlib namespace NRLFormulary /-- The generalized binomial coefficient with a complex upper index: `cbinom w k = w (w - 1) ⋯ (w - k + 1) / k!`. -/ noncomputable def cbinom (w : ℂ) (k : ℕ) : ℂ := (∏ j ∈ Finset.range k, (w - (j : ℂ))) / (Nat.factorial k : ℂ) end NRLFormulary
Read-back
What the Lean code literally says, in plain math · self-authored-by-drafting-agent (non-blind)
⚠️ Non-blind read-back — not independent testimony. This read-back was written by the same agent that drafted this Lean statement, not by an independent blind auditor. Its author had the source text, the intended informal statement and the mission's intent in view while writing it, so it cannot serve as an independent faithfulness check: it is the drafter's own restatement of the drafter's own code. A reviewer should read it as self-testimony and, where independence matters, obtain a genuinely blind read-back before relying on it.
This declaration introduces a function that takes a complex number and a natural number and returns the complex number
where each index of the product, and the factorial , are natural numbers embedded into by the canonical coercion, and the bar is complex division.
Every complex and every natural is allowed; there are no hypotheses and no side conditions. The following degenerate readings are forced by the code:
- For the product ranges over the empty set and equals , and , so for every , including .
- For the product has exactly factors, running over , so the first factor is itself and the last is .
- The denominator is a nonzero complex number for every , so the value is always an ordinary quotient; Lean's convention that division by zero yields zero is never reached.
- The value may be zero, for instance when is a natural number smaller than .
The declaration is a definition, not an assertion: it states no equality and claims no property of the function.