A zero-sum-free sequence of multiplicity in a finite abelian group has length
ProvedErdos131.elrss_theorem3Let be a finite abelian group, let , and let be a sequence (a multiset) of elements of in which no element of occurs more than times. Assume is zero-sum-free, that is, no nonempty subsequence of sums to :
unless every is . Then
This is Theorem 3 of Erdős, Lev, Rauzy, Sándor and Sárközy, and it is the general result from which they deduce the bound for non-dividing subsets of : one takes for the least element of the set. Taking recovers the statement that a zero-sum-free set in a finite abelian group has fewer than elements. The constant cannot be replaced by anything below , as the example with shows; the authors ask for the optimal constant as their Problem 7.
Formalization Note The sequence is a Multiset G, the multiplicity hypothesis is stated with Multiset.count, and subsequences are sub-multisets , with meaning is nonempty. The hypothesis is needed only to exclude the degenerate reading in which both and are empty/zero, where the right-hand side would be .
import Definitions.Def_Erdos131_NonDividing import Mathlib.Tactic open Erdos131
theorem Erdos131.elrss_theorem3 {G : Type*} [AddCommGroup G] [Fintype G] [DecidableEq G]
{M : ℕ} (hM : 0 < M) (A : Multiset G)
(hcount : ∀ g : G, A.count g ≤ M)
(hzs : ∀ S ≤ A, S ≠ 0 → S.sum ≠ 0) :
(Multiset.card A : ℝ) < 3 * Real.sqrt (M * Fintype.card G) := by sorry