AFTD Auto-Formalizing Theoretical Domains

forward_diff

def

The forward difference of a function f from the natural numbers to the integers is given by (Δ f)(x) = f(x + 1) - f(x).

Statement

def forward_diff (f : ℕ → ℤ) : ℕ → ℤ
Defined in
arXiv:2611.26953, Section 1.1
Verified
23 Nov 2026
Axioms
none listed
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…
  • iter_forward_diffFor 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…

Read back from the Lean

forward_diff is defined as the operator taking a function $f : \mathbb{N} \to \mathbb{Z}$ to the function $\mathbb{N} \to \mathbb{Z}$ defined by $x \mapsto f(x + 1) - f(x)$.

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

/-- Forward difference of an integer-valued function on the natural numbers. -/
def forward_diff (f : ℕ → ℤ) : ℕ → ℤ := fun x => f (x + 1) - f x
See it in the graphDiscuss this resultChallenge it