Alternating forward differences and the discrete Leibniz rule #
For functions from an additive commutative monoid to an additive commutative group, multiplying
the n-th forward difference by the integer (-1) ^ n gives the alternating difference. These
identities describe its successor step and its alternating binomial expansion, using Mathlib's
forward-difference operator and integer scalar multiplication. For ring-valued functions, the same
identities are stated using multiplication by the coefficients in the ring.
The discrete Leibniz rule computes differences of a scalar product from finitely many differences of its factors. Its shifted form evaluates the second factor along the arithmetic progression starting at the input point. Its unshifted form uses only differences at that point, of orders at most the output order, so it also computes products in finite-difference coordinates.
The k-th forward difference of t ↦ t ^ m at 0 is k! S(m, k), where S is the Stirling
number of the second kind. Expanding (x + i h) ^ m binomially then writes the k-th forward
difference of y ↦ y ^ m with any step h at any point x as k! times an integral
combination of the monomials x ^ (m - l) h ^ l, k ≤ l ≤ m. This explicit divisibility by k!
is what bounds forward differences of power series over ultrametric rings.
Main declarations #
TauCeti.neg_one_pow_smul_fwdDiff_iter_succ: a negative forward difference advances the alternating iterate by one step.TauCeti.neg_one_pow_smul_fwdDiff_iter_eq_alternating_sum: the alternating iterate as a binomial sum of translates.TauCeti.neg_one_pow_mul_fwdDiff_iter_succandTauCeti.neg_one_pow_mul_fwdDiff_iter_eq_alternating_sum: the ring-valued forms.TauCeti.sum_neg_one_pow_mul_choose_succ: the successor step for alternating binomial sums.TauCeti.fwdDiff_iter_smul: the discrete Leibniz rule, with the second factor shifted by the order of the difference on the first factor.TauCeti.fwdDiff_iter_pow_apply_zero:Δᵏ (t ↦ t ^ m) (0) = k! S(m, k).TauCeti.fwdDiff_iter_pow_eq_sum: thek-th difference ofy ↦ y ^ mwith stephatxas∑ₗ C(m, l) x ^ (m - l) h ^ l k! S(l, k).
Differencing once advances the alternating iterated forward difference by one step.
The alternating iterated forward difference as an explicit alternating binomial sum.
Differencing once advances the alternating iterated forward difference of a ring-valued function by one step.
The alternating iterated forward difference of a ring-valued function as an explicit alternating binomial sum.
An alternating binomial sum of successor order is the alternating binomial sum of the negative forward differences of consecutive values.
Discrete Leibniz rule. The n-th difference of a scalar product is a binomial sum
of products of differences. In the term with orders i and j, the second factor is evaluated
at x + i • h, where i + j = n. No commutativity of the scalar ring is required.
Range-indexed discrete Leibniz rule for a scalar product.
Unshifted discrete Leibniz rule. Expanding the shifted differences in the discrete
Leibniz rule by the Gregory–Newton formula expresses the result using differences at x only.
In particular, only orders at most n of each input occur.
Forward differences of powers at zero. The k-th forward difference of t ↦ t ^ m at
0 is k! times the Stirling number of the second kind S(m, k). In particular it vanishes for
m < k and equals k! for m = k (fwdDiff_iter_eq_factorial).
Forward differences of powers with any step. The k-th forward difference of
y ↦ y ^ m with step h at x is ∑ₗ C(m, l) x ^ (m - l) h ^ l k! S(l, k), where S is the
Stirling number of the second kind. Only the terms with k ≤ l are nonzero, and every term is
divisible by k!.