Three-color target sums · Proving Ground goal
A three-color subset sum for the prime 6,571
In any three-coloring of the integers from 1 through 6,570 there are distinct integers of a single color that add up to 6,571.
One part of the proof keeps track of the unused entries above 359. If exactly h distinct entries exceed 359, their total excess is at least 1 + 2 + … + h. The calculation both charges that excess to the budget and limits the number of high entries to h. Lean verifies the resulting endpoint bounds for four possible population sizes.
A second part handles colors with many large odd entries. Any 26 of the 30 odd integers from 325 through 383 realize every odd sum from 5,933 through 6,103. To reach 6,571, the proof either builds the difference from even entries at most 170 or finds two suitable even entries between 240 and 318.
When the useful pairs are spaced three apart, the proof can use the first pair to correct the residue and start with the next two pairs. For 85 exceptional configurations it checks the actual correction entries and their subset sums. The separate sparse-parity calculation is shared with the proof for 6,577.
The complete archive reconstructs 1,871 Lean modules. The theorem is TargetSums.target_6571.
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 4638c3fcb34a6980df79e3f6d4b60c07e616e18df918561ced11ffe65ecef84c