The integer central-binomial transform
Abstract
An integer binomial-square transform and its first moment determine two coefficient residue laws.
Definition 1.1 (The finite binomial-square polynomial).
Formalization. D5/S1/Recurrence/Invariants/HannaLegendreCentralBinomialTransform.Q (✓ std3).
Source. Repository-derived.
Commentary.
This polynomial has coefficient choose(n,k) squared times a to the k.
Definition 1.2 (A parameterized summand).
Formalization. D5/S1/Recurrence/Invariants/HannaLegendreCentralBinomialTransform.summand (✓ std3).
Source. Repository-derived.
Commentary.
The initial power of X makes the n-th summand vanish below degree n.
Definition 1.3 (The coefficientwise weighted series).
Formalization. D5/S1/Recurrence/Invariants/HannaLegendreCentralBinomialTransform.weighted (✓ std3).
Source. Repository-derived.
Commentary.
Each coefficient is a finite sum, weighted by the value w(n).
Theorem 1.4 (Every polynomial coefficient).
Proof. Machine-checked in Lean as D5/S1/Recurrence/Invariants/HannaLegendreCentralBinomialTransform.Q_coeff (✓ std3). ∎
Source. Repository-derived.
Commentary.
The formula also covers k greater than n, where the binomial coefficient is zero.
Theorem 1.5 (The zero parameter).
Proof. Machine-checked in Lean as D5/S1/Recurrence/Invariants/HannaLegendreCentralBinomialTransform.Q_zero (✓ std3). ∎
Source. Repository-derived.
Commentary.
At parameter zero the binomial-square polynomial is one.
Theorem 1.6 (The lower coefficients vanish).
Proof. Machine-checked in Lean as D5/S1/Recurrence/Invariants/HannaLegendreCentralBinomialTransform.term_low (✓ std3). ∎
Source. Repository-derived.
Commentary.
Only indices up to the desired coefficient can contribute.
Theorem 1.7 (Changing the coefficient ring).
Proof. Machine-checked in Lean as D5/S1/Recurrence/Invariants/HannaLegendreCentralBinomialTransform.map_series (✓ std3). ∎
Source. Repository-derived.
Commentary.
Here hom is a ring homomorphism R to S. Mapping the finite polynomials and the constant-one inverse commutes with every coefficient sum.
Theorem 1.8 (Changing a weighted coefficient ring).
Proof. Machine-checked in Lean as D5/S1/Recurrence/Invariants/HannaLegendreCentralBinomialTransform.map_weighted (✓ std3). ∎
Source. Repository-derived.
Commentary.
Here hom is a ring homomorphism R to S. The weights are mapped along with the series coefficients.
Theorem 1.9 (The rational inverse).
Proof. Machine-checked in Lean as D5/S1/Recurrence/Invariants/HannaLegendreCentralBinomialTransform.rational_den (✓ std3). ∎
Source. Repository-derived.
Commentary.
Over the rationals the constant-one unit inverse equals the ordinary power-series inverse.
Theorem 1.10 (The binomial-square transform).
Proof. Machine-checked in Lean as D5/S1/Recurrence/Invariants/HannaLegendreCentralBinomialTransform.square_binomial_sum (✓ std3). ∎
Source. Repository-derived.
Commentary.
A denominator-free telescoping certificate gives a recurrence in t. The initial finite sum is one; induction and the choose recurrence give the squared binomial coefficient. Natural subtraction truncates at zero.
Theorem 1.11 (The exact alternating transform).
Proof. Machine-checked in Lean as D5/S1/Recurrence/Invariants/HannaLegendreCentralBinomialTransform.R_coeff (✓ std3). ∎
Source. Repository-derived.
Commentary.
Even coefficients are signed central binomial coefficients and odd coefficients vanish. Nat.div denotes natural integer division.
Theorem 1.12 (The first moment modulo two).
Proof. Machine-checked in Lean as D5/S1/Recurrence/Invariants/HannaLegendreCentralBinomialTransform.T_mod_two (✓ std3). ∎
Source. Repository-derived.
Commentary.
The derivative of the alternating convolution computes the first moment. Its reduction modulo two is exactly X.
References
- Truth anchor:
D5/S1/Recurrence/Invariants/HannaLegendreCentralBinomialTransform.Q - Truth anchor:
D5/S1/Recurrence/Invariants/HannaLegendreCentralBinomialTransform.Q_coeff - Truth anchor:
D5/S1/Recurrence/Invariants/HannaLegendreCentralBinomialTransform.Q_zero - Truth anchor:
D5/S1/Recurrence/Invariants/HannaLegendreCentralBinomialTransform.R_coeff - Truth anchor:
D5/S1/Recurrence/Invariants/HannaLegendreCentralBinomialTransform.T_mod_two - Truth anchor:
D5/S1/Recurrence/Invariants/HannaLegendreCentralBinomialTransform.map_series - Truth anchor:
D5/S1/Recurrence/Invariants/HannaLegendreCentralBinomialTransform.map_weighted - Truth anchor:
D5/S1/Recurrence/Invariants/HannaLegendreCentralBinomialTransform.rational_den - Truth anchor:
D5/S1/Recurrence/Invariants/HannaLegendreCentralBinomialTransform.square_binomial_sum - Truth anchor:
D5/S1/Recurrence/Invariants/HannaLegendreCentralBinomialTransform.summand - Truth anchor:
D5/S1/Recurrence/Invariants/HannaLegendreCentralBinomialTransform.term_low - Truth anchor:
D5/S1/Recurrence/Invariants/HannaLegendreCentralBinomialTransform.weighted - Dependency: D5/S1/Recurrence/Residue/ContinuedFractionOddSquare