Three-color target sums · Proving Ground goal

A three-color subset sum for the prime 6,553

Every three-coloring of the positive integers below 6,553 contains distinct integers of one color that sum to 6,553. The Lean declaration is TargetSums.target_6553.

The proof uses a counting argument for a color with at least 120 entries between 24 and 383. Fix 24 entries already known to have that color. A candidate integer is impossible if adding it to a subset of those entries gives 6,553. Two individually possible candidates can also be incompatible. Partitioning the candidates into groups of pairwise incompatible integers puts an upper bound on the size of the color.

This rules out 297 configurations directly. A further configuration uses a known entry of the other nonzero residue modulo three. The sparse case uses the 60-of-80 result. It permits two correction entries of size at most 221.

The replay reconstructs the parity calculation, checks the source hashes and compiles 3,374 modules with Lean 4.36.0. The theorem uses propext, Classical.choice and Quot.sound.

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.

Download and replay

Download the verified proof archive loader
1232 bytes · SHA-256 61f257c690b72032471ddc5430b201e18344fa44b2e30b660f0b0b18708932f5