Three-color target sums · Proving Ground goal

A three-color subset sum for 6,598

In every coloring of the integers from 1 through 6,597 with three colors, distinct integers of one color sum to 6,598.

One case survived the initial subset-sum calculation. Its twelve pairs are (277, 280), (286, 289), and so on through (376, 379). Each entry is 1 modulo 3. The same color also has a reserve entry that is 2 modulo 3. It is distinct from all 24 pair entries.

With that entry included, the subset sums reach 6,598 directly or certify that seven high values are unavailable for the remaining construction. Those values are 383, 382, 381, 380, 378, 377 and 375. Lean checks the alternatives for all 128 possible reserve entries. This changes the cost estimate enough to settle the exceptional case.

In a separate case, eight distinct integers above 361 contribute at least 36 in total excess over 361. Either that saving reduces the starting cost, or at most seven such integers remain. The latter fact bounds the early entries of the sorted unused list. The proof also reuses the even-subset table for the targets immediately above 6,598.

The download reconstructs 476 Lean modules. Its main theorem is TargetSums.target_6598.

Download and replay

Download the checked proof and replay script
135280 bytes · SHA-256 03435285c4164c98ba1ec640fc1fad10c4ae5a19c4632a08241377c90f8b808b