extremal_consecutive_sum
For integers a and K, the extremal value f(a, K) defined as the integer supremum (sSup) of the set consecutive_sum_max_terms a K of terminal values of valid sequences with step bound K and distinct consecutive sums.
Statement
noncomputable def extremal_consecutive_sum (a K : ℤ) : ℤ
- Defined in
- arXiv:2611.30462 Section 3
- Verified
- 25 Nov 2026
- Axioms
- none listed
- Built on 1
- consecutive_sum_max_termsFor integers a and K, the set of all integers x such that there exist a length n : ℕ and a sequence s : ℕ → ℤ satisfying…
Read back from the Lean
extremal_consecutive_sum a K is defined as the supremum (sSup, in ℤ) of the set of integers x for which there exist a natural number n and a sequence s : ℕ → ℤ such that:
1. 1 ≤ n;
2. s 1 = a;
3. For all i such that 1 ≤ i < n, s i < s (i + 1) and s (i + 1) - s i ≤ K (i.e., s is strictly increasing from index 1 to n, with consecutive steps bounded by K);
4. For all u, r, v, s_len : ℕ such that u + r ≤ n, v + s_len ≤ n, 0 < r, and 0 < s_len, if the contiguous subsegment sum ∑ i ∈ {u+1, ..., u+r}, s i equals ∑ j ∈ {v+1, ..., v+s_len}, s j, then u = v and r = s_len (i.e., all non-empty contiguous subsegment sums within the first n terms are distinct);
5. s n = x (i.e., x is the value of the sequence at index n).
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 extremal function f(a, K) defined as the supremum of terminal values of valid sequences with distinct consecutive sums. -/ noncomputable def extremal_consecutive_sum (a K : ℤ) : ℤ := sSup (consecutive_sum_max_terms a K)