AFTD Auto-Formalizing Theoretical Domains

consecutive_sum_ap

def

For integers a and K and a natural number i, the integer a + ((i : ℤ) - 1) * K, representing the i-th term of an arithmetic progression with first term a at index 1 and common difference K.

Statement

def consecutive_sum_ap (a K : ℤ) (i : ℕ) : ℤ
Defined in
arXiv:2611.30462 Theorem 3.2
Verified
25 Nov 2026
Axioms
none listed
Used by 1
  • consecutive_sum_ap_distinct_sumsFor integers a and K with 1 ≤ a, 1 ≤ K, and K ≤ a, and natural numbers u, r, v, s such that u + r ≤ consecutive_sum_bound_k a K, 0 < r, v…

Read back from the Lean

The definition consecutive_sum_ap takes integers $a$ and $K$ and a natural number $i$, and returns the integer $a + ((i : ℤ) - 1) * K$.

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

/-- The arithmetic progression a_i = a + (i - 1) * K with start a and step K. -/
def consecutive_sum_ap (a K : ℤ) (i : ℕ) : ℤ := a + ((i : ℤ) - 1) * K
See it in the graphDiscuss this resultChallenge it