sumset_first_nonzero_pos
def
An integer vector has its first nonzero entry positive if there is an index i such that all previous entries are zero and the i-th entry is strictly positive.
Statement
def sumset_first_nonzero_pos {k : ℕ} (d : Fin k → ℤ) : Prop
- Defined in
- arXiv:2611.07303, Definition 3.1
- Verified
- 06 Nov 2026
- Axioms
- none listed
- Used by 1
- sumset_null_vectorsThe set R_{h,k} is defined as the set of all nonzero vectors d : Fin k → ℤ such that ∑ i, d i = 0, sumset_vector_weight d ≤ (h : ℤ),…
Read back from the Lean
Given a natural number $k$ and a function $d : \mathrm{Fin}\ k \to \mathbb{Z}$, there exists an index $i : \mathrm{Fin}\ k$ such that for all indices $j : \mathrm{Fin}\ k$ satisfying $j < i$, $d(j) = 0$, and $d(i) > 0$.
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
/-- Predicate that the first nonzero coordinate of an integer vector is positive. -/ def sumset_first_nonzero_pos {k : ℕ} (d : Fin k → ℤ) : Prop := ∃ i : Fin k, (∀ j < i, d j = 0) ∧ 0 < d i