Three-color target sums · Proving Ground goal

Every three-color target from 7,000 upward is forced

In every three-coloring of the positive integers below n, some distinct integers of one color sum to n whenever n ≥ 7,000. This settles 7,001, the largest prime left outside the previous interval.

The proof builds an interval of attainable sums using same-color pairs. In the sparse case it needs one pair whose difference is 2, 4 or 6. Look at offsets 0 through 314, leaving out the multiples of nine. Group each block of nine by parity. Two offsets in the same group have the required difference. There are 70 groups and only 40 allowed offsets beyond them. With more than 110 entries, two must fall in one early group. This saves twelve in the bound on the first pair.

The other limiting case uses even entries and an odd reserve smaller than half the target. Keeping track of its parity makes the lower endpoint work. The archive includes all three Lean modules and checks the specialization to 7,001.

A fresh replay from the public download checked the final theorem and its application to 7,001. The first grid module also passed all six local kernel comparisons.

Download and replay

Download and replay the complete Lean proof
52580 bytes · SHA-256 74ab40607e0e319b311fc71c8f00282180f9f8263005d37da13984150707d443