cert-machine · report · erdős #1186, the case k = 3 · a theorem, machine-verified twice

Graham's $100 question: the twelve blocks are optimal

Colour 1, …, n red and blue; how few monochromatic progressions a, a+d, a+2d can there be? A random colouring gives about n²/16. In 2008 Parrilo, Robertson and Saracino found a colouring in twelve blocks that does better, 117/2192·n², proved nothing can go below 1675/32768·n², and conjectured their colouring optimal — the value Graham had offered $100 for in 1999. The conjecture is true: δ₃ = 117/2192. The proof is two pages of mathematics and five exact certificates; the certificates were made and checked in a sandbox, and are re-decided here by a second program written from the mathematics alone, sharing no code with the first. Not refereed, not formalised — what that leaves open is stated below, in full.

tl;dr
  • The finding. The least number of monochromatic three-term progressions in a two-colouring of {1, …, n} is (117/2192 + o(1))·n² — the twelve-block colouring is optimal, and among all fractional colourings it and its negative are the only minimisers. This settles δ₃, the case k = 3 of Erdős problem #1186, and the 2008 conjecture; it says nothing about longer progressions.
  • The mechanism. Expand the problem around the twelve-block colouring. The first-order term becomes an explicit function h ≥ 0 that vanishes exactly at the eleven block edges; a discretisation built on h loses nothing to first order, which is what every earlier relaxation could not avoid. The space is then cut into five regions by the distance from the optimum, and each is closed by an exact rational certificate: zero gap near the optimum, a margin of at least 2.7470548e-4 away from it.
  • Check it. node instruments/delta3/verify.js — 0.8 s, Node only, no dependencies. It derives the colouring, h, every cell area and every bathtub constant from the mathematics, rebuilds each certificate's residual matrix exactly, proves it semidefinite exactly, and checks the cover. The battery's 40 planted forgeries are all refused (76 checks green).
δ₃
117/2192
= 0.0533759… · was known to lie in [0.05112, 0.05338] since 2008
certificates
5
one inner (zero gap) and four slabs, each accepted by two verifiers that share no code
smallest margin
2.75e-4
on E = (Q − Q*)/4, slab [2/5, 9/20]; exact value in the ledger
forgeries refused
40 / 40
mutated certificates, each refused by the rule it breaks · 23 of 24 verifier mutations caught
status
proved
machine-verified twice · read line by line by the author · not refereed · not formalised

A computer-assisted proof. The mathematics (§2) is short and elementary; it has been checked by machine, by AI reading, and line by line by the author (5 October 2026), not by a referee; the certificates are finite exact computations, accepted by the claimant's verifier and by this repository's, which were written independently. Nothing here is a Lean proof. The claim was produced in the operator's own sandbox (frontier-apps); this repository is its judge, with the same rules it applies to anyone's claim.

§1 · the question

Twenty-seven years, a factor of 1.044

Let V(n) be the least number of monochromatic progressions {a, a+d, a+2d}, d ≥ 1, over all two-colourings of {1, …, n}. Graham proposed determining β in V(n) = βn²(1 + o(1)) as a $100 problem at the Erdős conference in Budapest in 1999. Parrilo, Robertson and Saracino (2008) disproved the folklore guess β = 1/16 with a colouring in twelve blocks of relative lengths

28, 6, 28, 37, 59, 116, 116, 59, 37, 28, 6, 28   (out of 548), alternating in colour,

which gives 117/2192 ≈ 0.053376, and proved β ≥ 1675/32768 ≈ 0.051117 by a semidefinite relaxation. Butler, Costello and Graham (2010) recovered the twelve blocks by experiment, crediting the 2008 paper; Greenwood, Kariv and Williams (2023) proved them optimal among antisymmetric colourings with at most twelve blocks. On erdosproblems.com the question is problem #1186, for every k — open as of the snapshot pinned here (5 October 2026).

scope

This settles δ₃: Graham's question and the 2008 conjecture. “Solves #1186” would overstate it — the problem asks about δk for every k, and nothing here touches k ≥ 4.

§2 · the proof, in four steps

Expand around the answer, and the first order stops leaking

1 · Reduction. Counting each non-monochromatic progression by its two bichromatic pairs gives, uniformly over colourings, V(n)/n² ≥ 1/16 + Q*/4 − O(1/n), where Q* is the infimum over measurable φ : [0,1] → [−1,1] of

Q(φ) = ∬R φ(a)φ(b) da db,    R = {(a, b) : a/2 ≤ b ≤ (1 + a)/2}.

The twelve-block function φ* has Q(φ*) = -5/137, and 1/16 − 5/548 = 117/2192; so everything rests on Q ≥ −5/137. 2 · Expansion. Write φ = φ*(1 − 2σ) with σ ∈ [0, 1] the part flipped against φ*. Exactly, for every φ,

E(σ) = (Q(φ) − Q(φ*))/4 = ∫ h σ + Q(φ*σ),    h = −φ* · Kφ* ≥ 0,

and h is piecewise linear on the 1/1096 grid, zero exactly at the eleven edges, with ∫h = 5/137. 3 · Discretisation without first-order loss. On cells whose ends include every edge, the bathtub principle bounds ∫hσ cell by cell with no loss at σ = 0, and pairs of cells cut by the boundary of R are bounded from 0 ≤ σ ≤ 1 alone; the resulting quadratic L(y) in the cell averages satisfies E ≥ L. 4 · Cover. By the symmetry φ → −φ it suffices to take m = ∫σ ≤ ½; five regions in m each carry an exact certificate that L is ≥ 0 (the region nearest the optimum) or strictly positive (the other four).

Step 3 is the whole idea. Discretising φ itself, as every relaxation since 2008 did, gives away a first-order amount at every cell pair the boundary of R crosses — and that loss caps the bound below the answer however fine the grid (§5). In σ the first-order term is ∫hσ, which the bathtub bounds exactly; what is lost is second order.

0 0.025 0.05 0.075 0.1 0 0.25 0.5 0.75 1 a ∈ [0, 1]; shaded: the blocks where φ* = +1 h(a)
The first-order term h. Flipping the colouring on a set costs ∫h over it to first order; h vanishes exactly at the eleven edges, where moving an edge is free to first order and the certificates must see the second-order cost.
§3 · the certificates

Five regions, five exact identities

Each slab lo ≤ m ≤ hi carries an identity Lθ(y) − B = vᵀSv + Σ μf f(y) in v = (1, y), with every multiplier μ ≥ 0, every form f nonnegative on the region (products of yi, 1 − yi, m − lo, hi − m, and triangle inequalities), and S + εI semidefinite; so L ≥ B − ε(1 + n) there. The inner region m ≤ 1/5 carries one in which every term vanishes at y = 0 — the certificate is exact at the optimum itself. The multipliers came from floating-point semidefinite programs; nothing here trusts them: the residual matrix is rebuilt from the mathematics in exact rationals and its semidefiniteness is proved exactly (exact: dyadic rescaling, float Cholesky of A - 2^-k I rounded to a dyadic factor L, exact remainder A - LL^T shown diagonally dominant (Gershgorin); fallback exact witness / Bareiss leading minors).

region m = ∫σkindcellsformstrianglescertified bound (exact in the ledger)time hereverdict here
[0, 1/5]inner · zero gap13022,808—E ≥ 0, equality only at σ = 00.2 sverified
[1/5, 3/10]slab13013,324—E ≥ 2.784897e-40.1 sverified
[3/10, 2/5]slab1309,8492,204E ≥ 3.035513e-40.2 sverified
[2/5, 9/20]slab1461,998—E ≥ 2.747055e-40.2 sverified
[9/20, 1/2]slab1462,332470E ≥ 4.638341e-40.1 sverified

Together the regions cover m ∈ [0, ½], so E ≥ 0 for every σ and Q ≥ −5/137 for every φ. A corollary worth stating: φ* minimises Q on the whole L¹-ball of radius 1/5 × 2 around it, fractional colourings included, and anything at least that far from both ±φ* has Q ≥ −5/137 + 4 × 2.75e-4.

§4 · why you can trust this

Two verifiers, one clean-room rule, and forgeries that must fail

The claimant's check. The generators and a verifier were written in the sandbox in one session, by one AI agent, separately from each other. That verifier, kept here as an exhibit and re-run from the pinned bytes, accepts the five files (87 s on this machine). It leaves the gap the claimant named itself: a misreading shared by generator and verifier would not be caught.

The second verifier. instruments/delta3/verify.js was written afterwards, in JavaScript, by an agent given the mathematics and a field-by-field description of the files — not the generators, not the claimant's verifier, not its logs; the claimant's code entered this repository only after it was finished. It derives everything with proof force itself, in BigInt rationals: the colouring, h and its zeros, every cell area by two exact routes that must agree pair by pair (the trapezoid rule on the section length, and polygon clipping), the bathtub constants, the cut bounds, the residual matrices. It refuses any form it cannot show nonnegative and any multiplier of the wrong sign, and proves semidefiniteness exactly or refuses. It accepts all five in 0.8 s, and its exact bounds equal the files' claims.

what the second reading found
  • the bathtub constant The proof text writes b = (w²/2)/max m′ without saying that m′ sums over every piece of h at a level. Read as the largest single piece, b is too large and the inequality is false — 1,358 exact violations in 2,432 tests. The certificates were built with the summed reading and verify under it; the paper now says so.
  • ε is load-bearing In every slab the residual S alone is not semidefinite (exact negative witnesses); S + εI is, and the bound B − ε(1 + n) accounts for it. Correct, and worth stating.
  • triangles need distinct indices Nonnegativity of 1 + s₁z_iz_j + s₂z_jz_k + s₃z_iz_k on the cube rests on multilinearity, which a repeated index breaks. Every triangle in the files has distinct indices; the verifier refuses one that does not.
  • small omissions, harmless The kink list omits a = ½ and the edges themselves (both on the lattice); N need only be entrywise nonnegative; the κ term relies on m ≥ 0. None changes a verdict.

Forgeries. node instruments/delta3/battery.js mutates genuine certificates and requires each mutation refused, by the rule it breaks: raised bounds (by 10⁻³ and by 10⁻⁶ — the certificates are that tight), dropped triangle forms, every θ set to 1 or to 0, widened slabs, ε set to 0 or inflated with B, a grid missing an edge of φ*, a doubled inner radius, an overspent linear budget, dropped inner multipliers, missing regions, and planted single entries off by 2⁻¹⁰⁰ — a negative multiplier, a sign-violating or repeated-index triangle, θ outside [0, 1], an unknown form. 40 of 40 refused at this build, 76 checks green. Then the verifier itself is mutated: 24 one-line edits (flip h, mirror R, drop ε, an optimistic cut bound, skip a sign check, trust the float Cholesky, accept a zero pivot …), 23 caught by the genuine set or a forgery; the one survivor removes a rule that is enforced twice.

The two lemmas, tested. The expansion identity and the discretisation lemma are proved on paper; they are also tested exactly on step functions finer than the grids, adversarial ones included: 1,400 cases of the identity, all equal; 4,200 cases of the lemma, all satisfied, the gap exactly 0 on breakpoint flips and single cells — the bound is sharp there. Tests, not proofs.

The upper bound, counted. The exact number of monochromatic progressions of the twelve-block colouring itself. For n a multiple of 1096 it is exactly 117n²/2192 − n/2:

nmonochromatic progressionsV/n²n·(V/n² − 117/2192)
54815,7560.0524668336-0.498175
1,09663,5680.0529197080-0.500000
2,192255,3680.0531478102-0.500000
4,3841,023,6640.0532618613-0.500000
8,7684,099,0400.0533188869-0.500000
17,53616,404,9280.0533473996-0.500000
35,07265,637,2480.0533616560-0.500000
§5 · the measurement that led here

Why the obvious discretisation cannot reach the answer

A day earlier the same sandbox certified lower bounds the classical way — φ discretised on L equal cells, a Shor relaxation with triangle cuts, exact rational multipliers. Its verifier accepted δ₃ ≥ 0.05324921 at L = 256 (these were not re-decided here; the logs are kept as the claimant's). But the model's own minimum, found by local search, also stays below the answer at every L: every cell pair the boundary crosses gives away a first-order amount, so no grid refinement closes the gap. That measurement is what moved the proof into the coordinates σ.

0.050 0.051 0.052 0.053 32 64 128 192 256 L, the number of equal cells δ₃ ≥ … 117/2192 = 0.0533759…, the answer (proved, §2) PRS 2008: 1675/32768 the cell model's own minimum, by local search (float, the claimant's) certified lower bound in that model (exact; the claimant's verifier)
The superseded ladder. Solid: certified lower bounds in the L-cell model (exact; the claimant's verifier). Dashed: the model's minimum by local search (floating point, an upper bound on what the model can certify). Both flatten under 117/2192.
§6 · what is not established

What a referee would still ask for

the records

The ledger (each certificate's sha256, region, exact bound and verdict; the verifier files' hashes) · the lemma tests and the counts · the paper (draft v0.2, numbers interpolated from these records). The certificates, both verifiers and the claimant's generators are in the repository under certs/delta3/ and instruments/delta3/; the sources (the 2008 and 2010 papers, the problem page, the forum) are pinned by sha256. Archived at Zenodo as v2026.10, doi:10.5281/zenodo.23171167.