consecutive_sum_bound_k
def
For integers a and K, the index k = ⌊2√(a/K - 1)⌋ as a natural number.
Statement
noncomputable def consecutive_sum_bound_k (a K : ℤ) : ℕ
- 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
A definition consecutive_sum_bound_k taking two integers a and K, defined as the natural number floor of 2 * √(a/K - 1), where a and K are coerced to real numbers and operations are over ℝ.
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 parameter k = ⌊2√(a/K - 1)⌋ for the lower bound on sequences with distinct consecutive sums. -/ noncomputable def consecutive_sum_bound_k (a K : ℤ) : ℕ := Nat.floor (2 * Real.sqrt ((a : ℝ) / (K : ℝ) - 1))