Composite subset-sum proofs

The remaining primes in the three-color target-sum problem

Give every integer from 1 through n − 1 one of three colors. Can you keep every set of distinct numbers of one color from summing to n? You can at 47. The question is whether a larger target can also escape.

Every integer n ≥ 95,279 is forced. The preceding elementary proof started at 1,849,982,976. A separate reduction shows that any counterexample above 47 would yield a prime counterexample. The new cutoff and the finite searches leave 8,975 candidate primes, from 1,301 through 95,273. The existence of a counterexample in that interval is open.

How the interval of sums grows

In each block of six consecutive positions, keep the entries at offsets 1, 2, 3 and 5. Across many blocks, some color supplies enough entries and enough disjoint pairs of one fixed gap d, where d is at most four. Taking one number from each pair gives a run of attainable sums spaced d apart. Choosing one endpoint or the other moves a sum by exactly its pair’s gap.

More pairs from the same color extend the run. Up to three reserved entries fill the missing residues modulo d, turning the run into consecutive sums. Every remaining entry can then extend that interval. The final estimate keeps track of all the distinct entries used to form its base and all those still available. Ordering them among the four possible offsets per block gives a lower bound on their combined weight. The checked intervals overlap from 95,279 onward.

What 47 tells us about the odd entries

47 is the last odd target avoidable with two colors on the odd entries alone. At 47, color 1, 3, 5, 7, 9, 11, 13 and 45 red and the other odd entries blue. The seven small reds total 49, and there is no way to omit a distinct subset totaling two. Red 45 also needs two. The three smallest blues sum to 51. Every odd target ≥ 49 forces a single-color sum.

For large odd targets, look near one third and one fifth of the target. Three nearby odd terms can sum to the target in the first region, and five can do so in the second. If neither local block is monochromatic, each contains a change of color. Two changes in opposite directions supply a red pair and a blue pair of equal sum. Their complementary odd entry completes one of the two. Reflecting a finite table in Lean covers the small odd targets.

There is a stronger restriction for every odd target p ≥ 365. If a three-coloring avoids p, each of the three pairs of colors must make p with a mixed set of exactly three or five odd entries. Each entry x satisfies p ≤ 5x + 28 and 2x < p. To see why, merge two colors. The localized two-color theorem gives a short sum. Each of its original colors must occur in that sum, since a single-color sum would already settle the target.

What the checks establish

The three general theorems each passed the six independent comparison kernels on the goal’s pinned Lean 4.36.0 registry. All three axiom audits list only propext, Classical.choice and Quot.sound.

Four ordinary Lean certificates settle the prime targets 263, 269, 271 and 277. Joined with the earlier certificates and the proof for primitive composite targets, Lean verifies every integer from 48 through 280. It also verifies that the full conjecture is equivalent to checking the primes from 281 through 95,278.

Two independent exhaustive programs settled every one of the 39 primes from 1,031 through 1,297. The C++ program tracked reachable sums on a short prefix and visited 2,357,432,320 nodes. The Python program used the lower half of each target and visited 47,486,436 nodes. Both programs pass controls at a forced target, an avoidable target and an intentionally exhausted search budget. This extends the earlier 118-prime census through 1,030. The 1,301 lower endpoint uses native computation. The complete Lean reduction states the boolean hypotheses needed to import that computation.

Replay the results

Use python3 replay.py --six-kernels for the three general theorems and python3 replay_census.py --jobs 4 for the new prime interval. The README gives the pinned registry and the earlier proof dependencies.

The complete archive also gives an exact formulation for searching only the lower half. One additional restriction follows by scaling. At the candidate 1,301, for example, three or five multiples of three must sum to 1,299 using only colors different from that of 2. Otherwise the localized two-color theorem produces 1,299 in the color of 2, which completes 1,301.

General proofs and the two search programs
SHA-256 087b30705d1cb2260a6e6876d27164f2be6a95b873dd6be3a072c849bc1979c8

Complete archive with the four individual prime certificates and combined theorems
SHA-256 879042fe7eb081b4592c7d15be720f9391d9a9f180ca31654ba262adc7ed9785