Applied Combinatorics IV: Newton's Binomial Theorem and the Central Binomial ConvolutionTextbook
Motivation
Generating functions are the standard device of enumerative combinatorics for turning a counting sequence into a single algebraic or analytic object: a sequence is recorded as the power series , and operations on series (products, powers, derivatives) become operations on the counts. Chapter 8 of Keller and Trotter's Applied Combinatorics (appliedcombinatorics.org), an open textbook used in undergraduate combinatorics courses, develops the method up to one of its classical applications: extending the binomial theorem to real exponents, as Newton did, and reading off an identity about central binomial coefficients that is awkward to prove by direct counting.
The identity in question,
appears in standard collections of binomial identities such as Graham, Knuth and Patashnik's Concrete Mathematics (1994).
Setting
For a real number and a nonnegative integer , the book defines a number by the recursion
so that with no requirement . The generalized binomial coefficient is
For integers this is the usual binomial coefficient; for integers it is ; for other real it is in general nonzero for every . In the Lean development is AppliedComb.GenFun.fallingP p k and is AppliedComb.GenFun.binomReal p k.
The generating function of a real sequence is the formal power series , in Lean PowerSeries.mk a : PowerSeries ℝ. When a closed-form function such as or is called the generating function of a sequence, the statements below read this as convergence of to the function's value on an explicit real interval around .
The central binomial coefficients are :
Formalization targets
Goal: Corollary 8.14
For every integer ,
stated as an identity of natural numbers.
Milestones
- Lemma 8.11. For every real and integer , .
- Lemma 8.12. For every integer , .
- Theorem 8.10 (Newton's Binomial Theorem). For real and real ,
- Theorem 8.13. For real ,
- Proposition 8.3. For real sequences , , the product of their generating functions is the generating function of .
- Theorem 8.16 (already on the platform). For each , the number of partitions of into distinct parts equals the number of partitions of into odd parts.
The first five follow the chapter's own chain toward the goal; Theorem 8.16 is the chapter's other main result and is included as a reference.
Significance
Corollary 8.14 says that the sequence of central binomial coefficients convolved with itself is the sequence ; equivalently, the generating function of is a square root of . Central binomial coefficients count lattice paths with up-steps and down-steps, and the identity says that the pairs consisting of a balanced path of length and one of length , summed over , are equinumerous with all strings over a four-letter alphabet. The same generating function reappears in the book's Section 9.7, and Newton's theorem with exponent or is the standard route to closed forms for Catalan-type sequences.
On the formalization side, Mathlib has the central binomial coefficient (Nat.centralBinom), formal power series, and Newton's series in the complex-analytic form Complex.one_add_cpow_hasFPowerSeriesOnBall_zero, which is also published on the platform as FamousTheorems.newton_binomial_series_6b and included in this mission as a reference. It does not contain the convolution identity of Corollary 8.14, and it does not contain the book's recursive or the closed form of . The mission produces a machine-checked version of the chapter's chain from the book's own definitions to the identity.
Difficulty
The identity is not a special case of the Vandermonde convolution : both factors depend on the summation index in their upper argument as well as their lower one. Induction on does not close directly, since the sum for is not a simple combination of the sum for . A counting proof is possible but not obvious, which is why the chapter's route goes through a generating function with a non-integer exponent. That route passes from formal power series to real analysis: is a real function, and the passage from an identity of functions on an interval to an identity of coefficients requires the uniqueness of power series coefficients on an open interval and the product of two convergent series. The book asserts Newton's theorem without proof.
Formalization scope
- Numbers. and are real-valued, defined by the book's recursion (Definition 8.8) and quotient (Definition 8.9) in the definition item
AppliedComb.GenFun.binomReal. Mathlib'sdescPochhammerandRing.choosecompute the same values; they are not used in the statements so that Lemma 8.11 is a statement about the book's recursion rather than a definitional unfolding. - Pinned readings. The book treats generating functions as formal power series and states Theorems 8.10 and 8.13 without a domain for . Here both are stated analytically: Theorem 8.10 for real and real with , Theorem 8.13 for real with , with the real power
Real.rpowof a positive base on the left andHasSum(unconditional convergence of the series) on the right. The book's hypothesis is kept. No other explicit constants replace informal ones: the chapter's statements contain no , "" or "sufficiently large". - Proposition 8.3 is stated for formal power series
PowerSeries ℝwith the sum written as overFinset.range (n + 1). - Goal. Corollary 8.14 is an identity in
ℕwithNat.choose; the subtractions and occur only for and are exact. A statement asserting only that the square of the formal power series equals , or a purely formal version of Theorem 8.13, would hide the identity in a coefficient comparison and is not the book's statement; the goal is the explicit sum identity. - Theorem 8.16 is referenced as
FamousTheorems.card_odds_eq_card_distincts, stated for all with Mathlib'sNat.Partition, whose partitions are multisets of positive integers, as in the book (p. 168); the case it adds is immediate.
A complete development needs real power series on an interval (Cauchy products, identity theorem for coefficients), the real power function, and elementary manipulation of binomial coefficients; the identification of binomReal with Ring.choose is reusable for any later statement using the generalized binomial coefficient. Proofs of any milestone are welcome independently, and so is a direct proof of Corollary 8.14 that bypasses the analytic chain.
Selected references
- M. T. Keller and W. T. Trotter, Applied Combinatorics, 2017 Edition, CC BY-SA 4.0. Chapter 8. https://www.appliedcombinatorics.org/
- R. L. Graham, D. E. Knuth and O. Patashnik, Concrete Mathematics, 2nd ed., Addison-Wesley, 1994. ISBN 978-0-201-55802-9.
- Mathlib,
Complex.one_add_cpow_hasFPowerSeriesOnBall_zero(Newton's binomial series). https://github.com/leanprover-community/mathlib4