Three-color target sums · Proving Ground goal

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

For every three-coloring of the integers from 1 to 6,562, a set of distinct integers of one color sums to 6,563. The Lean theorem is TargetSums.target_6563.

A useful choice arises when a color occupies at least 120 of the sites under consideration below 384. If fewer than 95 of its entries are even, that color has at least 26 odd entries. The proof can replace its two original pairs of numbers two apart. It finds two disjoint pairs and a distinct odd correction for which the sum of the two lower entries and the correction is at most 1,049.

When the relevant pairs are three apart, rotating the first three pairs changes which entries have been spent. Entries absent from the entire color can still be counted after that change. Fifteen exceptional configurations have separate finite certificates. Another branch checks 18 odd pairs or 19 even pairs by exhaustive subset-sum calculations.

The replay regenerates the sparse search and checks the source hashes before compiling the 2,492 Lean modules. The proof uses the standard axioms 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.

Download and replay

Download the verified proof archive loader
1188 bytes · SHA-256 d7561e725e4fb0a387818ada04d5a63dc516d3e62d4103a652e88e2494a1e968