Three-color target sums · Proving Ground goal
A three-color subset sum for the prime 6,607
In every three-coloring of the integers from 1 through 6,606, some distinct integers of one color add up to 6,607.
To prove this, consider the unused values after forming a progression of possible sums from disjoint pairs. Count how far each unused value exceeds 361. If their total excess is at least 14, the starting sum of the progression drops by at least seven. Otherwise every unused value is at most 374. Either possibility gives enough room to reach the target.
Another part of the proof groups same-color pairs that lie three units apart. For an expensive starting configuration, the subset-sum calculation either reaches 6,607 directly or identifies specific missing values. For example, if some of the pairs can make 6,226 without using 381, that color cannot also contain 381 in a coloring that avoids 6,607. The proof accounts for up to eight such unavailable entries.
A separate count guarantees four starting blocks in the 121-value case. For sparse pairs two units apart, the calculation handles 9,826 expensive odd configurations and 85,008 expensive even configurations. It checks the whole interval of sums needed for the parity argument.
The download contains 115 Lean source modules, their hashes and a replay script pinned to Lean 4.36.0. The theorem is TargetSums.prime_6607.
Download and replay
Download the Lean proof and replay script
121584 bytes · SHA-256 38681b43b460a7bac3fed820be90a1234b2d604c563b74400b5e9a1d56b49341