Three-color target sums · Proving Ground goal
A three-color subset sum for the prime 6,569
In every three-coloring of the integers from 1 through 6,568, a set of distinct integers of one color adds up to 6,569.
One case of the proof has at least 26 odd integers between 323 and 383. Every choice of 26 can make each odd sum from 5,933 to 6,069. To make 6,569, the remaining even contribution must be between 500 and 636. If enough small even entries are available, the proof accumulates them until it enters that interval.
Otherwise the color contains at least 63 of the 123 even numbers from 138 to 382. These numbers form 61 disjoint pairs that sum to 520, with 260 left over. A set containing at most one member of each pair and the unpaired entry has at most 62 elements, so a complete pair survives. The odd contribution is then exactly 6,049.
A different case starts with pairs whose entries are three apart. For 1,287 groups that exceed the usual budget, Lean checks the correction entries in each of the two possible residue classes. When two corrections have the same residue, only pairs close enough to the upper price bound need a subset-sum calculation. The other assignments already satisfy the budget.
The archive reconstructs 2,349 Lean modules, including the shared sparse-parity calculation and all finite cases. The theorem is TargetSums.target_6569.
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, Part 3, Part 4.
Download and replay
Download the verified proof archive loader
1280 bytes · SHA-256 d0d539e1e8b772ddbbb76e42dcc783c6a59d32b077b685aa41698e5e2bfc23f5