Three-color target sums · Proving Ground goal

A three-color subset sum for 6,614

Every three-coloring of 1 through 6,613 has distinct numbers of one color that sum to 6,614.

The proof counts disjoint pairs and bounds the sum of their smaller entries. For costly starting configurations, it computes reachable sums from a fixed set of pairs. If a sum of 6,614 minus a particular value is reachable without using that value, the same color cannot contain it in a coloring that avoids 6,614. These exclusions improve the bound on the cost of the remaining pairs. The download contains all four residue and reserve cases, including their finite calculations and their common counting argument.

The archive contains 112 Lean source modules. Its main theorem is TargetSums.target_6614.

The full downloaded archive passed a clean replay on Lean 4.36.0.

Download and replay

Download the proof and replay script
120504 bytes · SHA-256 957aed705297255267bdac000e9636d8189768b070b09b4d30f0f5d8197f282c