Three-color target sums · Proving Ground goal

Two excluded endpoints force every target from 6,653

For every integer target from 6,653 onward, every three-coloring of the positive integers below the target has a set of distinct integers of one color adding up to the target.

In the case where we need both nonzero residues modulo three, we can set aside 382 and 383 whenever they are available. Each of these two large numbers is then either reserved or absent from the pool of later choices. Their absence bounds the sum of the largest endpoints. When only one nonzero residue occurs, two large entries of the missing residue give the corresponding bound.

The last obstacle comes from pairs two units apart. If their small entries cost too much, at least 18 of 19 prescribed odd pairs, or 19 of 20 prescribed even pairs, have the same color. A subset-sum calculation proves that every one of the possible missing-pair positions still leaves the required sums. In the even case, adding one odd entry covers an odd target.

The 42 Lean modules include the general theorem and its 34 named prime consequences up through 6,917. The download includes all source hashes and a replay script for the pinned goal repository.

All modules passed a clean replay against the pinned registry with Lean 4.36.0.

Download and replay

Download the complete Lean proof and replay
82028 bytes · SHA-256 96f7454f0d3416c7f64284329edbac1b8ecfe5479a2c28d85d897ee8c57641bf