Three-color target sums · Proving Ground goal

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

In every three-coloring of the integers from 1 through 6,636, some set of distinct numbers of one color sums to 6,637. This settles the largest prime left below the interval theorem for every target from 6,653 onward.

The proof builds a progression of sums by selecting one value from each of several disjoint pairs. When the starting pairs alone are expensive, their smallest entries must lie near the high end of the interval. That leaves relatively few possible patterns. Checking their subset sums either supplies 6,637 directly, or proves that four particular large values cannot belong to the color being considered. Those missing values make the progression affordable.

One other case charges a pair against its two entries in excess of 375. The pairs are disjoint, so the same excess is counted only once across the whole construction.

The download contains all 49 Lean source modules, hashes, and a replay script for the goal repository at its pinned revision.

The complete download passed a clean replay with Lean 4.36.0.

Download and replay

Download the proof and replay script
85976 bytes · SHA-256 74b5fe0d4fbe3f8d7fdef75671fb6f4d7182027c1183a31f9cd4236b3536eb7a