WorksMathematics
The Harborth constant of Cp ⊕ Cp for every prime p ≥ 11
Abstract
The Harborth constant of a finite abelian group is the least such that every -element subset of contains distinct elements whose sum is zero; the exponent is the largest order of an element of . Gao and Thangadurai conjectured that for odd , and proved it for primes ; Gao, Geroldinger and Schmid extended this to , and Kemnitz had settled . Bajnok's Menu of research problems asks for the primes (Problem F.100). We prove that for every prime , which answers that problem and, with Kemnitz's values, gives the conjecture for every odd prime. As in the work of Gao and Thangadurai and of Gao, Geroldinger and Schmid, we project the set along a line through , which sorts its points into parallel lines (fibers), choose a projection in which many pairs of points share a fiber, and use the lifting criterion of Gao and Thangadurai. What is new is a sufficient condition, proved with the theorem of Dias da Silva and Hamidoune, that depends only on how many points each fiber holds and not on where the fibers lie. The analysis of fiber sizes is by hand for and a finite check for and . The proof for and the lower bound for every odd prime are formalized in Lean. This work has not yet been reviewed by experts. The proofs, the Lean formalization and the text were produced by AI models, working under the author's direction.
Introduction
Main result
For a finite abelian group , the exponent is the largest order of an element of , so . The Harborth constant is the least integer such that every subset of with elements has distinct elements whose sum is . We identify with the plane , so that we can speak of lines through (directions) and projections.
Theorem 1. Let be prime. Every subset of with elements contains distinct elements whose sum is . Hence .
The lower bound holds for every odd prime and is due to Kemnitz [11] (see [2], Proposition F.97). In the words of the Menu [2], p. 301], “As Kemnitz observed in [127], the set [...] is zero--sum-free”. We use its translate by for : the points with and . If of them sum to , the first coordinate of the sum is the number of chosen points with , so divides . Since , , but only points have . Theorem 1 and this lower bound are proved in Lean with Mathlib, from the definitions (§ 7).
Background and prior work
The constant goes back to Harborth’s problem on lattice points with integral centroid [10]. Gao and Thangadurai [8] introduced the conjecture in its present form; in the words of Gao, Geroldinger and Schmid [6 Section 5], with our citation labels, “In [8] it is conjectured that is equal to for every odd and equal to for every even , and it is observed that these values are lower bounds. Moreover, it is proved (see [8 Theorem 1]) that for all primes .” Gao, Geroldinger and Schmid [6 Theorem 5.1] described all sets of size with no zero-sum subset of size for primes , and so proved for those primes.
Bajnok’s Menu [2] states the conjecture as Conjecture F.98, in his notation and as the equivalent statement that for odd the largest subset of with no distinct elements summing to has elements; his is the of the quotation above. It records that “Kemnitz in [127] proved that Conjecture F.98 holds for ” (see [11]), states the result for as Theorem F.99, and poses
Problem F.100. Prove that Conjecture F.98 holds for prime numbers .
Guillot, Marchan, Ordaz, Schmid and Zerdoum [9] recorded the same state of knowledge in 2019: “It is known that for prime and for ” [9 p. 614]. Theorem 1 settles Problem F.100, and with Kemnitz’s values it gives for every odd prime . The composite case of the conjecture is untouched.
We build directly on three earlier ingredients. The lifting criterion (Lemma 2.1) is Lemma 2.5 of Gao and Thangadurai [8]. Gao, Hou, Schmid and Thangadurai extend it to as Lemma 5.2 of [7], which “was proved in [19] in the special case ”, with [19] their label for [8], and Gao, Geroldinger and Schmid quote it as Lemma 5.3(1) of [6]. The averaging over directions (Lemma 2.2) is in Gao and Thangadurai [8 pp. 83–84] and is Lemma 5.13 of [6]. Closest to our criterion are Lemmas 5.7 and 5.9 of [6], stated with the projected sequence written as [6 p. 267]. Lemma 5.9 applies the theorem of Dias da Silva and Hamidoune (their Theorem 2.3(1)) to the support and the Cauchy–Davenport theorem to squarefree pairs from , and Lemma 5.7 bounds the lifting sum below by for each in the support of the repeated part of the zero-sum sequence. Lemma 5.9 assumes and Lemma 5.10 ; Lemmas 5.7, 5.8, 5.11 and 5.12 assume , , and . Gao, Geroldinger and Schmid write [6 p. 272] that “with more involved proofs some of the results could be obtained for (slightly) smaller primes. Our aim is to obtain results (at least) for primes with , which is the bound given by Lemma 5.9.” The tools are the theorem of Dias da Silva and Hamidoune [5], in the form of [6 Theorem 2.3(1)], and the Cauchy–Davenport theorem [3, 4].
What this paper adds is the symmetric layer criterion of § 3. It applies Dias da Silva–Hamidoune to every layer of a depth chosen inside the fibers (both defined in § 3), and its hypotheses, a single quadratic inequality and a bound on the layer sizes, depend only on the fiber sizes, not on their positions. The analysis of these sizes in § 4–§ 6 brings the threshold down to . The hard step was to find a sufficient condition that does not depend on where the fibers sit; once the quadratic form was found, the case analysis became short.
Proof overview
Let with . Fix a direction, that is, a line through , and project along onto a complementary line . Each carries a fiber of points, and the vector of fiber sizes is the profile. By the lifting criterion, has the required points as soon as there are integers with , and enough freedom inside the fibers.
Two points of share a fiber for exactly one of the directions, so averaging gives a direction in which at least pairs of points of share a fiber. § 2 reduces Theorem 1 in this way to Proposition 2.3 about such profiles.
To prove the proposition we fix a depth and choose in the box around . The layers of the box are sets of distinct residues, so Dias da Silva–Hamidoune bounds the sums of half of each layer, and Cauchy–Davenport bounds the sumset of these sets (§ 3). The conditions on then involve only the multiset , the shape of . For two explicit rules give for all shapes but four (§ 4). For one of the four, , a rule still gives a witness, checked directly; the other three are handled through the positions of their fibers (§ 5). For and all 526 and 1435 concentrated shapes, respectively, are checked (§ 6).
Reduction to a lemma on profiles
Let be an odd prime and with . Fix a line through and a complementary line , and let be the projection onto along . For the fiber has elements, and . We call a class and its size.
Lemma 2.1 (Lifting criterion [8, 7]). Suppose that satisfies , , in , and
Then contains distinct elements whose sum is .
Proof. Write the fiber over as with and . Choosing distinct points in each fiber gives distinct points with sum , where runs over the set of sums of distinct elements of . By Dias da Silva–Hamidoune, ; this is trivial when . By Cauchy–Davenport the sumset has at least elements, so it contains . ∎
If some fiber is a whole line , its points sum to because is odd. So we may assume for all .
Proof. Two points of lie in a common fiber for exactly one of the directions, so the sums over all directions add up to . Some direction has at least . ∎
Since an affine map () of preserves the conditions of Lemma 2.1 (it multiplies by and adds ), we may identify with . Theorem 1 now follows from Lemmas 2.1 and 2.2 and the following proposition.
Proposition 2.3 (Concentrated profiles). Let be prime and with and . Then some satisfies the hypotheses of Lemma 2.1.
We call such a concentrated. Write for the number of classes with . Then and . Since for and , we get , so the concentration hypothesis reads
The symmetric layer criterion
The shape of a profile is the multiset of its sizes. For a profile and a depth , let for , the sizes of the layers of .
Lemma 3.1. Let be as in Proposition 2.3, and suppose that satisfies
(D) and for all ;
(W) ;
(S) .
Then some satisfies the hypotheses of Lemma 2.1.
Proof. Put , an integer by (D), and consider with . Then satisfies , and . Since , condition (W) gives , so for every such .
The layers are sets of distinct residues. For subsets of sizes , the vector lies in the box, with and . Let . By (D), is odd, and means . Since and , we can choose with this sum; then . By Dias da Silva–Hamidoune each has at least elements, and by Cauchy–Davenport and (S) their sumset is all of . So some choice of the gives .
:::
Conditions (D), (W) and (S) are unchanged when and are permuted together, so they depend only on the shape of . A depth meeting them, listed in the order of the shape, is a witness for the shape, and then every profile with that shape has some satisfying the hypotheses of Lemma 2.1 for . For example, take and the shape , padded with five zeros. The depth , in the order of the shape and on the five empty classes, is a witness: (D) holds, , and the layers have sizes , so .
The Shape Lemma for
Let , so that is the number of nonempty classes and , and let be the sizes in decreasing order. For put . Since ,
Rule B (basic: every ). For let if is odd and if is even; this is , the slack in (W) of a class of size with the depth given below. Put and . The depth is
if ;
if is odd;
if is even;
on of the classes of size 2, and on the others.
Comparing class by class, , so (W) holds. The layers have sizes , and for .
Rule (high: depths up to ), for . Put if , and otherwise with . Then for , so (S) holds when . Since , (W) holds when
Proposition 4.1 (Shape Lemma). Let be prime and concentrated, of none of the shapes , , , . Then rule or rule gives a witness, where is the least with .
Proof. Case 1: , so . Let ; the identity gives , and hence . Since , we have . This gives with , and, with (1), with . One checks that for even and for odd . Hence , and as is an integer and is odd, . Then because , so (S) holds for rule B.
Case 2: and . Rule B has and , so (S) holds.
Case 3: . This case does not use (1). Now , so , and by (2) , so . It remains to show , using .
(3a) . Put . From we get , so by Cauchy–Schwarz and the monotonicity of , . Each class with contributes to , and . Therefore , and the inequality
for and is verified in Appendix § 8.
(3b) . By (2), , so for all (otherwise ). With this gives and , so and . Only the two largest classes exceed , and Appendix § 8 shows , which is at least when . For the shapes are listed there: except for the four shapes excluded in the statement. □
The exceptional shapes
Lemma 5.1. Proposition 2.3 holds for the shapes , , and , for every prime .
Proof. For the depth of rule , with on the empty classes, is a witness: , and the layers have sizes and then (for ), so . Only the sufficient test of § 4 misses this shape.
The other three shapes are with and ; here the classes’ positions matter. By an affine map, put the class of size at , the class of size at , and the class of size at some . Let be the residue of , and take , , . Then , , and
with . For , ; for , ; for and , . If and , that is , take instead , , : then and .
Proposition 4.1 and Lemmas 3.1 and 5.1 prove Proposition 2.3 for every prime .
The primes 11 and 13
For and the shapes are finite in number: there are 526 and 1435 concentrated shapes with all sizes at most . For each, one checks that it is one of the three shapes of Lemma 5.1, or that rule B, some rule with , or a depth from Table 1 is a witness. At rules B and H suffice. At three shapes need the depths of Table 1, which can be checked by hand as in the example of § 3.
| shape | witness | layer sizes |
Table 1. The concentrated shapes at that rules B and H miss, with a witness (zeros omitted). In each, (W) reads , and .
With Lemma 3.1 this proves Proposition 2.3, and hence Theorem 1, for and . In Lean the check runs as a kernel computation over all sorted profiles (§ 7). A separate program, written from the statement of the criterion and sharing no code with the formal proof, confirms the counts and the coverage; it searches all depths when the rules fail and finds no uncovered shape. The criterion alone does not reach : there the shapes , and have no witness.
Formal verification
Theorem 1 and the lower bound are proved in Lean 4 with Mathlib. In the namespace Harborth, the theorems are upper, lower and harborth_constant:
def HasZeroSumPSubset (p : ℕ) (S : Finset (ZMod p × ZMod p)) : Prop :=
∃ T ⊆ S, T.card = p ∧ ∑ x ∈ T, x = 0
theorem upper (p : ℕ) [Fact p.Prime] (hp : 11 ≤ p)
(S : Finset (ZMod p × ZMod p)) (hS : S.card = 2 * p - 1) :
HasZeroSumPSubset p S
theorem lower (p : ℕ) [Fact p.Prime] (hp : 3 ≤ p) :
∃ S : Finset (ZMod p × ZMod p), S.card = 2 * p - 2 ∧ ¬ HasZeroSumPSubset p S
theorem harborth_constant (p : ℕ) [Fact p.Prime] (hp : 11 ≤ p) :
sInf {k : ℕ | ∀ S : Finset (ZMod p × ZMod p), S.card = k → HasZeroSumPSubset p S}
= 2 * p - 1
They match the theorem as follows. is , and a Finset has distinct elements, so HasZeroSumPSubset p S says that has distinct elements summing to 0. upper is the first sentence of Theorem 1 and lower is the lower bound. The set in harborth_constant contains by upper and no smaller by lower and passing to subsets, so its least element, sInf, is . Lean’s natural-number subtraction truncates at 0; here and have their usual values because .
The formalization follows § 2–§ 6. It proves the theorem of Dias da Silva and Hamidoune by the polynomial method of Alon, Nathanson and Ruzsa [1], from Mathlib’s Combinatorial Nullstellensatz, and takes Cauchy–Davenport from Mathlib. Case 3 of Proposition 4.1 is proved with integer inequalities in place of the square roots of Appendix § 8. The checks of § 6 run by decide +kernel, evaluation in Lean’s kernel, which adds no axiom. The build restates the three theorems with the definition unfolded, checks small examples of the definition (a full line of , and the lower-bound set at ), and checks that each theorem depends only on propext, Classical.choice and Quot.sound. Kemnitz’s cases are not part of the formal proof. The Lean files accompany this paper; Appendix § 9 says how to check them.
The inequalities of Case 3
Case (3a). We show for primes and . Note that decreases in , and that in each range below the factor is positive, so may be replaced by a lower bound.
: and , which is nonnegative if and only if , true for .
, : and , so with it suffices that , true for .
, : , and ; the resulting quadratic in has positive leading coefficient and largest root below 21.
, : , and , so it suffices that . With in place of this holds for ; at the left side is .
and : direct evaluation gives for and for (to one decimal).
Case (3b). Let . As , . Write and with . Since and , both sizes are at least , the smaller sizes are at most , and
Both first factors are nonnegative, with sum , and both second factors are at least , so . If , the tail is one of , , , , , , and the formula gives:
| tail | shape | ||
| , | , | ||
| , | , |
Table 2.
Apart from the first four rows, all values are at least for .
Reproducing the checks
The Lean project pins Lean 4 v4.34.0 and a fixed Mathlib revision. With the Lean toolchain manager elan installed, running lake exe cache get and then lake build in the project’s lean folder downloads Mathlib’s compiled library and checks the proof, the restated theorems, the examples and the axioms. The build takes a few minutes and about 9 GB of memory, most of it in the kernel checks of § 6. The independent program of § 6 needs only Python 3 and runs in under a second.
Acknowledgments
The problem was posed in this form by Weidong Gao and Ravindranathan Thangadurai, whose lifting lemma and averaging argument the proof uses, and recorded as Problem F.100 by Béla Bajnok. The layer approach and the result for are due to Weidong Gao, Alfred Geroldinger and Wolfgang Schmid, and the extension of the lifting criterion to to Weidong Gao, Qing-Hu Hou, Wolfgang Schmid and Ravindranathan Thangadurai. Arnfried Kemnitz proved the lower bound and settled , and .
References
- [1]N. Alon, M. B. Nathanson and I. Ruzsa, The polynomial method and restricted sums of congruence classes, J. Number Theory 56 (1996), 404–417, doi:10.1006/jnth.1996.0029.DOI
- [2]B. Bajnok, Additive Combinatorics: A Menu of Research Problems, arXiv:1705.07444v2 (2017); CRC Press (2018). Proposition F.97, Conjecture F.98, Theorem F.99, Problem F.100 and the passages quoted here are from arXiv version 2.arxiv.org/abs/1705.07444
- [3]A.-L. Cauchy, Recherches sur les nombres, J. École Polytech. 9 (1813), 99–116.
- [4]H. Davenport, On the addition of residue classes, J. London Math. Soc. 10 (1935), 30–32, doi:10.1112/jlms/s1-10.37.30.DOI
- [5]J. A. Dias da Silva and Y. O. Hamidoune, Cyclic spaces for Grassmann derivatives and additive theory, Bull. London Math. Soc. 26 (1994), 140–146, doi:10.1112/blms/26.2.140.DOI
- [6]W. Gao, A. Geroldinger and W. A. Schmid, Inverse zero-sum problems, Acta Arith. 128 (2007), 245–279, doi:10.4064/aa128-3-5.DOI
- [7]W. D. Gao, Q. H. Hou, W. A. Schmid and R. Thangadurai, On short zero-sum subsequences II, Integers 7 (2007), #A21, math.colgate.edu/~integers/h21/h21.pdf.DOI
- [8]W. Gao and R. Thangadurai, A variant of Kemnitz conjecture, J. Combin. Theory Ser. A 107 (2004), 69–86, doi:10.1016/j.jcta.2004.03.009.DOI
- [9]P. Guillot, L. E. Marchan, O. Ordaz, W. A. Schmid and H. Zerdoum, On the Harborth constant of C₃ ⊕ C₃p, J. Théor. Nombres Bordeaux 31 (2019), 613–633, doi:10.5802/jtnb.1097.
- [10]H. Harborth, Ein Extremalproblem für Gitterpunkte, J. Reine Angew. Math. 262/263 (1973), 356–360.DOI
- [11]A. Kemnitz, On a lattice point problem, Ars Combin. 16B (1983), 151–160.