AFTD Auto-Formalizing Theoretical Domains

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

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
See it in the graphDiscuss this resultChallenge it