GPT proof gives the exact four-sums constant in Erdős #866

Wouter van Doorn

For every n≥2n\ge 2, g4(n)=3g_{4}(n)=3: any A⊆{1,…,2n}A\subseteq\{1,\ldots,2n\} with at least n+3n+3 elements contains all six pairwise sums of four distinct integers, and the constant cannot be lowered. The four integers need not be positive or members of A.

The inputs zero, one, two and four have six pair sums, namely one through six. All six belong to the displayed set of size seven.
For every n≥2n\ge2, van Doorn’s Theorem 3 proves that any subset A⊆{1,…,2n}A\subseteq\{1,\dots,2n\} of size at least n+3n+3 contains all six pairwise sums of four distinct integers. A size-n+2n+2 construction shows the threshold is sharp.

What was already known

Choi, Erdős and Szemerédi proved only g4(n)=O(1)g_{4}(n)=O(1).

How the result developed

  1. 28 Apr 2026 · Manuscript date [1]

    Wouter van Doorn reported the AI-assisted result in this manuscript.

Follow new evidence and revisions to this result.

Get email updates

Download contribution history

Contribution Assessment

AI involvementAI-autonomous
ImportanceModest
Technical verificationFormal (Lean 4 via Aristotle)
Human understandingExplained

AI involvement

The author used GPT-5.3 Instant for brainstorming and credits it with the four-sums proof. it autonomously came up with the proof of Theorem 3 that we outline below. He separately credits Aristotle with the Lean formalizations.

Importance

Sharpens the four-integer case to an exact constant.

Technical verification

The author reports that each blue-checkmarked result, including Theorem 3, was formalized by Aristotle. The linked Lean file contains theorem g4 stating gFun 4 n=3n = 3 for n≥2n\ge 2, with upper and lower lemmas and an axiom-print command. This review inspected the statement but did not build the file or audit all definitions.

Machine checking

Formal proof in ErdosProblem866.lean, with separate upper/lower lemmas and #print axioms g4

Checker
Lean 4 kernel through Aristotle, reported by Wouter van Doorn
Scope
ErdosProblem866.g4: gFun 4 n=3n = 3 for all n≥2n\ge 2
Basis
Source-reported

Human understanding

Van Doorn gives a short human-readable parity lower bound and pigeonhole upper bound, including explicit four-integer formulas, explaining the proof mechanism.

Human work and later research

Other useful sources

View revision history
· addition

Added the research timeline.

· addition

Added a source excerpt documenting AI involvement.

· publication

Sharpens the four-integer case to an exact constant.

A sharp n-plus-three threshold forces four integers with all pair sums inside the set

Open SVG

The inputs zero, one, two and four have six pair sums, namely one through six. All six belong to the displayed set of size seven.
For every n≥2n\ge2, van Doorn’s Theorem 3 proves that any subset A⊆{1,…,2n}A\subseteq\{1,\dots,2n\} of size at least n+3n+3 contains all six pairwise sums of four distinct integers. A size-n+2n+2 construction shows the threshold is sharp.GPT‑5.3 Instant found the proof during brainstorming. Aristotle formalized it, and Wouter van Doorn wrote the paper.