Three-color target sums · Proving Ground goal

Every three-color target from 6,619 onward

For every target of at least 6,619, any three-coloring of the positive integers below it contains a set of distinct integers of one color adding up to the target. This proof fills all eighteen integers from 6,619 through 6,636 and then uses the earlier theorem beginning at 6,637.

Consider a color that occurs only on multiples of three and on one other residue modulo three. If it contains few multiples and has too few small starting values, it must contain at least 49 of the 50 large values in that other residue. An exhaustive subset-sum calculation still produces every target in the interval after any one of the 50 values is removed.

Another case builds a progression of sums from disjoint pairs. We count how far each endpoint exceeds 361 and charge both endpoints, including those of the starting pairs. Because the pairs are disjoint, the total charge is bounded by the excess of the whole stock. This tightens the bound just enough to cover the new interval.

For sparse pairs two units apart, a bit mask checks every required sum across the interval. For pairs three units apart, it checks whether they already represent the target or which four extra entries would complete it. Those four entries must be absent if the coloring avoids the target.

The archive contains the 70 Lean source modules, source hashes, and a script that checks the complete proof against the pinned goal repository. The theorem is TargetSums.full_grid_tail.

The complete download passed a clean replay with Lean 4.36.0.

Download and replay

Download the proof and replay script
96856 bytes · SHA-256 39b1b35e48818ad02b69ce344b15f32363fe5712dda6e58178afc52dbddfa1de