iter_forward_diff
def
For a natural number $k$ and a function $f : ℕ → ℤ$, the $k$-th iterated forward difference of $f$ is defined as the $k$-th iterate of the forward difference operator applied to $f$.
Statement
def iter_forward_diff (k : ℕ) (f : ℕ → ℤ) : ℕ → ℤ- Defined in
- arXiv:2611.26953, Section 1.1
- Verified
- 23 Nov 2026
- Axioms
- none listed
- Built on 1
- forward_diffThe forward difference of a function f from the natural numbers to the integers is given by (Δ f)(x) = f(x + 1) - f(x).
- Used by 2
- weighted_catalan_counterexample_satisfies_conditionsFor every integer t, the polynomial b_t satisfies: b_t(0) is odd; 2^(k - s_2(k)) divides (Δ^k b_t)(x) for all k ≥ 2 and all natural…
- weighted_catalan_conjecture_counterexampleFor every integer t, the function weighted_catalan_poly t satisfies: weighted_catalan_poly t 0 is odd; for all natural numbers k ≥ 2 and…
Read back from the Lean
Definition: For a natural number $k$ and a function $f : ℕ → ℤ$, iter_forward_diff k f is defined as the $k$-th iterate of forward_diff applied to $f$ (that is, (forward_diff^[k]) f).
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- Iterated forward difference of an integer-valued function on the natural numbers. -/ def iter_forward_diff (k : ℕ) (f : ℕ → ℤ) : ℕ → ℤ := (forward_diff^[k]) f