Sizes of four-fold restricted sumsets of integers
This preprint determines all possible sizes of four-fold restricted sumsets of finite sets of integers. The record also contains Lean 4 source code that formalizes and machine-checks its two main theorems. For a finite set $A \subset \mathbb{Z}$, let $S_4(A)$ be the set of sums of four distinct elements of $A$. The main theorem states that for every integer $k \ge 4$, $$\{\, |S_4(A)| : A \subset \mathbb{Z},\ |A| = k \,\} = \{\, t \in \mathbb{Z} : 4k-15 \le t \le \tbinom{k}{4} \,\}.$$ This answers the existence question in Nathanson's Problem 5 for sums of four distinct elements at every set size. It was previously established for $k \le 10$ in the author's earlier preprint and claimed for $k \ge 8^{80}$ in a preprint of Knowledge Sense. The second main theorem is sharper. Let $m \ge 1$ and $r \ge 0$ be integers with $k = m + r \ge 4$, and let $a \in \mathbb{Z}$. The sizes $|S_4(A)|$ of the $k$-element sets $A \subset \mathbb{Z}$ that contain the block $\{a, a+1, \dots, a+m-1\}$ of $m$ consecutive integers are exactly the integers from $4k-15$ to $$U_r(m) = \sum_{j=0}^{\min(4,m)} \binom{r}{4-j}\bigl(j(m-j)+1\bigr),$$ the cap obtained by grouping the sums according to the points used outside the block. For $m \le 3$ this cap equals $\binom{k}{4}$, so every size in the main theorem is attained by a set containing $\{0, 1, 2\}$. The construction moves one point next to the block and then removes a prescribed number of four-fold sums, using sets whose only coincidences occur among sums of four elements. An induction at fixed $k$ reduces the problem to 856 finite cases, 822 of which require witnesses; these are certified by computer. Both theorems are formalized in Lean 4 with Mathlib v4.36.0. They depend only on the axioms propext, Classical.choice and Quot.sound. The Lean kernel checks all finite certificates, 856 short-block layers and 483 pure deficit profiles, with decide +kernel; native_decide is not used. The paper also proves the following results, which are not formalized. By complementation, the same holds for sums of $k-4$ distinct elements. For $h \in \{4, k-4\}$, the sizes of restricted $h$-fold sumsets of $k$-element subsets of any nontrivial torsion-free abelian group are exactly the integers from $4k-15$ to $\binom{k}{4}$, and in any abelian group of unbounded exponent each of these integers is attained. Together with the known results for fewer summands, the sizes of restricted $h$-fold sumsets of $k$-element sets of integers form the full interval $[h(k-h)+1, \binom{k}{h}]$ for all $0 \le h \le k$ with $\min(h, k-h) \le 4$, and for all $0 \le h \le k \le 10$. The work is by Secia Y. Ng, assisted by GPT 6.2 Astra and GPT 6.2 Sol through the Pi coding agent and by Claude Opus 5.5 through Claude Code. No human mathematician has reviewed the proof. The file fourfold-restricted-sumset-sizes.pdf is the paper as attached to GitHub Release 1.1, and fourfold-restricted-sumset-sizes-1.1.zip is the source archive of that release, with the Lean formalization and its certificate modules, the Typst source of the paper, the certificate data and the Python checks. Version 1.1 cites Nathanson's theorem that, for all positive integers $h$, $k$ and $n$, the $k$-element subsets of $\mathbb{Z}^n$ and of $\mathbb{Z}$ have the same sizes of $h$-fold restricted sumsets (arXiv:2607.20571, Theorem 1). The citation appears in the proof of the transfer to torsion-free abelian groups and in the open problems, and the reference to the GitHub repository now points to Release 1.1. The statements and arguments are unchanged.
Authors
- Secia Ng (ORCID: https://orcid.org/0009-0006-9008-1888)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-30
- DOI
- https://doi.org/10.5281/zenodo.24690621
- Primary Topic
- Advanced Combinatorial Mathematics
- Type
- preprint