Three-color target sums · Proving Ground goal
A three-color subset sum for the prime 6,581
In every three-coloring of the integers from 1 through 6,580, some subset of distinct integers of one color sums to 6,581.
One part of the proof considers a color with at least 119 sites on a grid that omits one integer in nine. Among its pairs two units apart, we can either afford the smallest starting entries or use the subset sums of the pairs already selected. For 18 odd pairs the required sum is 6,581 itself. For 19 even pairs we can use a separate odd entry of at most 319. Lean checks that the pairs make every required even remainder from 6,262 through 6,580.
A different case has 120 sites in one color and two seed pairs starting at 178 and 241. The latter pair occupies 241 and 244. Two distinct extra entries congruent to one modulo three, each at most 245, can therefore total at most 473. This stronger bound settles a case that survived the previous estimate.
The full proof has 1,690 Lean modules, including the subset-sum computations. Its theorem is TargetSums.target_6581.
Unpack the loader and run python3 fetch.py. It assembles and verifies the archive. Unpack that archive and run python3 rebuild.py with Lean 4.36.0. The loader also accepts the segment downloads placed beside it. Part 1, Part 2.
Download and replay
Download the verified proof archive loader
1192 bytes · SHA-256 7c294eb9e0174524069dc3512388daa6290fbf39fed60a28c9007983daecd104