Wiki
Wiki

Research notes on every problem, and a library of the papers behind them. Built from the open erdos repository.

Updated


Claim. For the gk(N)g_k(N) of Problem 866, with the bib_i distinct integers of which one may be non-positive (the paper's reading of the erdosproblems.com definition, Section 3, p. 2), W. van Doorn, The cardinality of a set containing the pairwise sums of a fixed number of integers, arXiv:2605.00040v1 (28 April 2026), proves Theorem 1, g3(N)=1g_3(N)=1 for all N≥3N\ge3 (with g3(1)=g3(2)=2g_3(1)=g_3(2)=2, and Theorem 2: integers 0≤b1<b2<b30\le b_1<b_2<b_3 suffice); Theorem 3, g4(N)=3g_4(N)=3 for all N≥2N\ge2, the lower bound from the odd integers together with 2N−22N-2 and 2N2N; Theorem 5, g5(N)≥4g_5(N)\ge4 for N≥3N\ge3, from the odd integers together with 2N−42N-4, 2N−22N-2 and 2N2N; and Theorem 8,

g5(N)<1.2⋅108for all Ng_5(N)<1.2\cdot10^8\quad\text{for all }N

(the constant 113,591,719113{,}591{,}719, from the 1975 argument with explicit constants and a Sidon-set bound of O'Bryant), so that g5g_5 is bounded where the 1975 paper's log⁡N\log N lower bound holds only for the positive-integer variant h5h_5 (Theorem 4). The paper also states, with a proof sketch, Theorem 9, gk(N)≤hk(N)<4N1−22−kg_k(N)\le h_k(N)<4N^{1-2^{2-k}} for k≥3k\ge3 and large NN, a slight sharpening of the 1975 exponent, and h4(N)≤2270h_4(N)\le2270 for the positive variant. Its Section 2 declares that ChatGPT (model GPT-5.3 Instant) was used for brainstorming and produced the proof of Theorem 3 on its own, and that the automated theorem prover Aristotle, from Harmonic, produced Lean formalizations of every statement marked with a checkmark, improving the h4h_4 bound on the way. The paper is compiled at its source card; nothing is independently reviewed.

Submission note. Posted to the erdosproblems.com forum by Wouter van Doorn (account Woett) on 4 May 2026:

I have just uploaded my paper on gk(N)g_k(N). In it, the following bounds are proven: \begin{align*} g_3(N) &= 1 \text{ for all } N \ge 3, \ g_4(N) &= 3 \text{ for all } N \ge 2, \ g_5(N) &< 1.2 \cdot 10^8 \text{ for all } N \ge 1, \ g_k(N) &< 4N^{1 - 2^{2-k}} \text{ for all } k \ge 3 \text{ and all large enough } N. \end{align*}Furthermore, these results are all verified in Lean.

The paper is my own work (mostly relying on the ideas by Choi-Erdős-Szemerédi), but specifically the g4g_4 result was obtained with the help of ChatGPT. Further noteworthy is that the bounds on g3g_3 and g5g_5 seemingly contradict the earlier claims of g3=2g_3 = 2 and $g_5(N) \asymp \log N$. To reconcile this apparent contradiction, let us (as in my previous comment) define hk(N)h_k(N) as the smallest integer such that for all subsets $A \subseteq {1, 2, \ldots, 2N}$ with ∣A∣≥N+hk(N)|A| \ge N + h_k(N) there exist distinct positive integers b1,b2,…,bkb_1, b_2, \ldots, b_k such that all (k2)\binom{k}{2} pairwise sums are in AA.

As it turns out, gkg_k and hkh_k are not the same (in fact, they seem to differ quite often), although we do in general have

>gk(n)≤hk(n)≤gk+1(n)>> g_k(n) \le h_k(n) \le g_{k+1}(n) >

for all kk and nn. And even though the stated Choi-Erdős-Szemerédi results do not necessarily all hold for gkg_k, they are all recovered for hkh_k.

Furthermore, with the help of Aristotle I managed to make their h4≪1h_4 \ll 1 result explicit, while the above general bound for gkg_k also holds for hkh_k. For completeness' sake, these are the best known bounds for hkh_k currently: \begin{align*} h_3(N) &= 2 \text{ for all } N \ge 4, \ h_4(N) &\le 2270 \text{ for all } N \ge 1, \ h_5(N) &\asymp \log N, \ h_6(N) &\asymp \sqrt{N} (\text{which is also the correct order of growth for } g_6(N)), \ h_k(N) &< 4N^{1 - 2^{2-k}} \text{ for all } k \ge 3 \text{ and all large enough } N. \end{align*}Finally, this problem is also mentioned in [Er72, p. 83], which can be added as a reference.

Posted to the erdosproblems.com forum by Wouter van Doorn (account Woett) on 26 February 2026:

It is clear that the bib_i need to be distinct, and maybe one can add this requirement to the problem statement for completeness' sake. What is less clear however, is whether the bib_i need to be positive.

In all theorem statements in [CES75], they refer to the elements in $A \subseteq {1, 2, \ldots, 2N}$ as positive integers, while the bib_i are just referred to as integers. This terminology is also used in [Er92c, p.41], suggesting that the bib_i are not required to be positive (although one can note that at most one can be non-positive, otherwise we have a negative sum).

With this in mind, define hk(N)h_k(N) as the smallest integer such that for all subsets A⊆{1,2,…,2N}A \subseteq \{1, 2, \ldots, 2N\} with ∣A∣≥N+hk(N)|A| \ge N + h_k(N) there exist distinct positive integers b1,b2,…,bkb_1, b_2, \ldots, b_k such that all (k2)\binom{k}{2} pairwise sums are in AA. With gk(N)g_k(N) defined as in the problem statement (i.e. without the positivity requirement), in general we then have hk−1(N)≤gk(N)≤hk(N)h_{k-1}(N) \le g_k(N) \le h_k(N).

Annoyingly, gk(N)g_k(N) and hk(N)h_k(N) are not the same function, and the lower bounds that Choi, Erdős and Szemerédi claim for k=3k = 3 and k=5k = 5 do not actually work for gk(N)g_k(N). In particular, the example (mentioned at the end of the remarks) of taking A⊂{1,2,…,2N}A \subset \{1, 2, \ldots, 2N\} to be the union

>{1,3,…,2N−1}∪{2,4,…,2⌊log⁡22N⌋}>> \{1, 3, \ldots, 2N-1\} \cup \{2, 4, \ldots, 2^{\lfloor \log_2 2N \rfloor} \} >

for a set for which supposedly no b1,b2,…,b5b_1, b_2, \ldots, b_5 exist is incorrect as stated; with b1=−1b_1 = -1, b2=2b_2 = 2, b3=3b_3 = 3, b4=5b_4 = 5, b5=6b_5 = 6, one can check that all pairwise sums do belong to AA whenever N≥6N \ge 6. The example does work to show the lower bound h5(N)≫log⁡Nh_5(N) \gg \log N, but at the moment I have no non-trivial lower bound for g5(N)g_5(N). As far as I know, it could be the case that we actually have g5(N)≪1g_5(N) \ll 1 (Edit 06-04-2026: which I might be able to show now!).

Turning to k=3k = 3, the truth is that gk(N)g_k(N) is equal to 11 for all $N \ge 3$. Which is in contrast to the equality h3(N)=2h_3(N) = 2 that Choi, Erdős and Szemerédi actually (unwittingly?) prove for all N≥4N \ge 4.

To see why g3(N)≤1g_3(N) \le 1 (and therefore g3(N)=1g_3(N) = 1) holds for all $N \ge 3$, let A⊆{1,2,…,2N}A \subseteq \{1, 2, \ldots, 2N\} be any set with ∣A∣≥N+1|A| \ge N + 1, and assume N≥3N \ge 3. Then AA contains {m,m+1}\{m, m+1\} for some odd $m \in {1, 3, \ldots, 2N-1}$ by the pigeonhole principle. If A∖{m}A \setminus \{m \} only contains even integers, then ${2, 4, 6} \subseteq {2, 4, \ldots, 2N} \subset A$ and we can choose b1=0b_1 = 0, b2=2b_2 = 2, b3=4b_3 = 4. On the other hand, if AA contains an odd integer 2j+1≠m2j+1 \neq m, then we can choose $b_1 = j$, b2=j+1b_2 = j+1, b3=m−jb_3 = m-j, which are quickly checked to be distinct by the assumption 2j+1≠m2j+1 \neq m and the fact that mm is odd. By the way, for N=2N = 2 one can note that the example A={2,3,4}A = \{2, 3, 4\} shows g3(2)=2g_3(2) = 2.

I'll hopefully have more to say in the not too distant future, but I first wanted to clear up the above subtlety.

Covers. The exact values g3(N)=1g_3(N)=1 (N≥3N\ge3) and g4(N)=3g_4(N)=3 (N≥2N\ge2), and the order of g5(N)g_5(N): bounded, with 4≤g5(N)<1.2⋅1084\le g_5(N)<1.2\cdot10^8 for N≥3N\ge3; a later release claims the smaller constant 3,519,2193{,}519{,}219 on its own page. Not covered: the value of g5g_5 (the paper's Section 7 reports no counterexample to g5(N)≤5g_5(N)\le5 up to N=15N=15 and does not exclude g5(N)≤4g_5(N)\le4 for large NN); the constants for k=6k=6, whose order is Choi, Erdős and Szemerédi's; the order of gkg_k for k≥7k\ge7; and the exponent for large kk, which Theorem 9 sharpens without closing.

Depends on. Nothing in this wiki. Theorem 8 follows the 1975 argument with explicit constants, but rests on the paper's own proof, not on the 1975 results recorded on their claim page.

Standing. Claimed. The paper is an arXiv preprint, on 2026-09-18 the only version, with no journal reference and no Crossref record, no citing paper and no independent review found. The erdosproblems.com curator thanks Wouter van Doorn on the problem page and credits van Doorn, in commentary last edited 1 December 2025 on a problem labeled OPEN, with g4(N)≤2032g_4(N)\le2032, an earlier bound this paper supersedes; the commentary predates the paper and is not acceptance. Earlier postings of the same work by the author (the account Woett), both disclosed here and subsumed by the preprint: a note on the author's GitHub page, first posted on 30 August 2025 with the constant 23382338 and revised to g4(N)≤2032g_4(N)\le2032 on 3 September 2025 (last revised 9 September 2025, the version linked above), linked from the erdosproblems.com thread, whose figure 20322032 the erdosproblems.com commentary adopted; and a thread comment of 26 February 2026 that made the two conventions explicit, showed that the 1975 example for k=5k=5 fails for erdosproblems.com's g5g_5 with b=(−1,2,3,5,6)b=(-1,2,3,5,6) when N≥6N\ge6, and proved g3(N)=1g_3(N)=1 for N≥3N\ge3 in the comment itself. The thread comment of 4 May 2026 announced the preprint and linked the Lean file below. The page is named by the arXiv posting, the dated manuscript.

Formalization. Not counted as evidence. The paper's reference [5] is the author's own Lean file, ErdosProblem866.lean in the repository Woett/Lean-files, pinned above at its last change of 30 April 2026; its header names ChatGPT and Aristotle from Harmonic, and it states and proves g3(N)=1g_3(N)=1 for N≥3N\ge3 (with g3(1)=g3(2)=2g_3(1)=g_3(2)=2), g4(N)=3g_4(N)=3 for N≥2N\ge2, g5(N)≥4g_5(N)\ge4 for N≥3N\ge3 and g5(N)<1.2⋅108g_5(N)<1.2\cdot10^8 for all NN, h3(N)=2h_3(N)=2 for N≥4N\ge4, h4(N)≤2270h_4(N)\le2270, h5(N)>⌊log⁡2N⌋h_5(N)>\lfloor\log_2N\rfloor and the general bound of Theorem 9, together with explicit Sidon-set and weak Sidon-set bounds, with no sorry. The file carries six #print axioms commands but records no output. The corpus holds no build of it, so it gives no formalized evidence; no formal-conjectures statement file for the problem existed on 2026-09-18.