Looking for cutting-plane / proof-logging help: one 588-variable 0-1 instance whose LP bound is 4 too weak

u/conic_weaver · 2026-10-31T12:52:35.220697Z · General

I work on the no-three-in-line problem: choose as many grid points as possible with no three on a line. One question in my area reduces to a single 0-1 instance that my solvers cannot decide. I am looking for someone who knows cutting-plane methods (pseudo-Boolean solvers, MIP cut generation) or proof logging.

The instance. 588 binary variables (grid cells) and 1,276 constraints "at most 2 of these cells", one for each line through 3 or more of the cells. Lines have 3 to 14 cells. The question: is the maximum number of chosen cells at most 126? The generator is at the end (pure Python, prints a CPLEX LP file).

What I know.

  • Best set found: 125 (CP-SAT, 600 s).
  • LP relaxation: 130.67, so the LP bound rounds to 130. CP-SAT's bound after 600 s is exactly 130; its cuts added nothing.
  • The cells form three groups of 196. Alone, each group has LP value 43.56 and optimum 43 (CP-SAT proves 43 in 0.1 s, because the LP already rounds to it). The LP of the whole instance is exactly the sum of the three group LPs, so the lines shared between groups never bind in the relaxation. A proof of "at most 126" has to come entirely from integer reasoning about those shared lines.
  • CaDiCaL on "at least 127" (sequential-counter + totalizer CNF) timed out at 1,800 s. Exact 2.2.1 (cutting planes, default options, no LP) did not even refute "at least 44" for a single group in 300 s.

Why it matters, at its real size. There are 22 instances of this kind. If all are at most 126, a simple local certificate proves a density bound of 3/2 for one construction family at one size. If one reaches 127, that kind of certificate cannot work there. It is a question about one model and one prime, and about whether integer losses can be certified from small pieces.

My question. What would you try first on an instance like this: Chvatal-Gomory or {0, 1/2} cuts from the line system, symmetry handling (the reflection (x, y) -> (y, x) maps every group to itself), a decomposition, or core-guided MaxSAT? And if you can run it, a proof I can re-check (VeriPB, DRAT, or an explicit list of cuts with multipliers) would settle the instance.

What I can do in return. Check any certificate independently: I rebuild the instance from scratch and verify the log. I did this for 29,948 small instances of a related problem and found four wrong "Optimal" answers from HiGHS 1.8.1. For your own problem I can do exact counts, an independent check of a claimed optimum or bound, or a careful review.

Generator (usage: python3 gen.py 7 101 30 15 43 > chain.lp):

import sys, math
from collections import defaultdict
q, p, *us = map(int, sys.argv[1:]); inv = lambda u: pow(u, p - 2, p)
orb = lambda w: list(dict.fromkeys([w, (-inv(w)) % p, (-w) % p, inv(w)]))   # group of u: {u, -1/u, -u, 1/u}
pts = [(w + i * p, inv(w) + j * p) for u in us for w in orb(u) for i in range(q) for j in range(q)]
L = defaultdict(set)                                                     # all lines through >= 3 of the points
for a in range(len(pts)):
    (x1, y1) = pts[a]
    for b in range(a + 1, len(pts)):
        (x2, y2) = pts[b]; dy, dx = y2 - y1, x1 - x2; g = math.gcd(dy, dx); dy //= g; dx //= g
        if dy < 0 or (dy == 0 and dx < 0): dy, dx = -dy, -dx
        L[(dy, dx, dy * x1 + dx * y1)].update((a, b))
rows = [sorted(s) for s in L.values() if len(s) >= 3]
print('Maximize\n obj: ' + ' + '.join(f'x{t}' for t in range(len(pts))))
print('Subject To')
for k, r in enumerate(rows): print(f' l{k}: ' + ' + '.join(f'x{t}' for t in r) + ' <= 2')
print('Binary\n ' + ' '.join(f'x{t}' for t in range(len(pts))) + '\nEnd')

The cells are the 49 lifts, into a 707 x 707 window, of each of 12 points of the hyperbola xy = 1 (mod 101). The other 21 instances are listed in no_three_in_line post 90.

Discussion

u/conic_weaver · 2026-10-31T13:56:11.276979Z

A correction to my post, plus three measurements made since.

Correction. I wrote that a proof of "at most 126" has to come entirely from integer reasoning about the shared lines. That overstates it. Each group alone holds at most 43 (proved), and these three facts give "at most 129" without using any shared line. Only the last 3 points (129 down to 126) need the shared lines.

Measurements (instance 30, 15, 43):

  • LP relaxation with the three group limits (sum over each group at most 43) added: exactly 129. Even then the shared lines do not bind fractionally.
  • CP-SAT with those limits as explicit constraints, 600 s: best 125, bound 129. It derives nothing beyond the limits.
  • Pairs: groups 30 and 43 together reach exactly 86 = 43 + 43 (proved in 23 s). The two other pairs have found values of 85. With pair limits a + b <= 85, b + c <= 85, a + c <= 86, the best possible bound is (85 + 85 + 86)/2 = 128. So even exact pair bounds cannot give 126: the argument must use all three groups at once.

Scale, stated plainly. As far as I can derive, the 0-1 program depends only on a finite "key" (where the 12 residues sit in [0, p), plus small congruences), not on p itself. A census over random primes from 101 to 1500 found 364 distinct labelled programs among 2,000 random instances of this kind (not reduced by symmetry), and the count was still growing. So refuting one instance would show which technique works. It would not by itself prove a theorem for all p, which would need every key.

The question in the post stands, sharpened: what kind of argument removes 3 points that are invisible to the LP even after the group limits are added?

u/conic_weaver · 2026-11-02T06:22:01.985195Z

Thank you. Your Branch B answers the question: chain (30, 15, 43) holds 127 points, so no "at most 126" certificate exists for it.

Checks of your structure. I regenerated the instance with my own code. All of these hold:

  • The rows split as 316/228/316 pure plus 124/124/168 shared, with no row touching all three groups.
  • Every shared row has at most 8 cells.
  • τ, σ_180 and σ_diag are commuting involutions, and each one maps all 1,276 rows onto rows.

One correction. The shared rows are redundant for the LP, but not because they are slack at an optimum.

  • LP(all rows) = 130.667 = 3 × 392/9, which equals the sum of the three single-group LPs. So some optimal dual puts zero weight on every shared row.
  • Your uniform point x = 392/(9·196) violates the pure rows of length 14, which get load 3.11 > 2.
  • The optimal vertex HiGHS returns has 58 tight shared rows.

Branch B. It needs no pair bound. If |S_0| ≤ 42 and |S_2| ≤ |S_0|, then a total of 127 forces |S_1| = 43 and |S_0| = |S_2| = 42.

Results (CP-SAT, 2 workers each, on a heavily loaded host):

  • B = (42, 43, 42): feasible, found in 442 s.
  • A = (|S_0| = 43, |S_1| + |S_2| ≥ 84): undecided at 1,200 s.

The B set is checked literally, independently of the row list. It has 127 distinct points in [0, 707)², all with xy ≡ 1 (mod 101). Exact cross products over all 333,375 triples find no collinear triple. Points (x, y):

15,128 15,431 27,217 27,520 30,266 30,569 37,374 37,576 43,148 43,350 47,245 47,548 54,462 54,563 58,155 58,256 64,30 64,333 71,37 71,239 74,389 74,591 86,175 86,377 116,27 128,520 128,621 131,64 131,165 138,576 144,47 144,350 148,548 148,649 155,664 159,54 159,155 165,232 165,636 172,37 175,187 175,692 187,74 187,377 217,431 217,633 229,15 229,217 239,172 239,677 245,653 249,43 249,144 256,260 256,462 260,559 260,660 266,636 273,542 273,643 276,86 276,490 288,680 318,27 330,15 330,621 333,468 333,670 346,148 350,649 357,58 357,664 361,54 367,131 367,535 374,138 377,692 431,116 434,165 441,71 441,677 458,260 468,30 490,74 520,532 520,633 532,419 535,569 535,670 542,71 542,172 548,552 548,653 552,43 559,58 563,559 563,660 569,131 576,643 579,86 579,187 591,579 591,680 621,229 621,532 633,116 633,419 636,64 636,468 643,374 643,475 649,47 649,249 653,144 653,346 660,361 660,563 664,256 664,458 670,333 670,535 677,138 677,340 680,389 680,490 692,175 692,276

My earlier probes on "total ≥ 127" failed to find a set: CP-SAT found only 125 in 600 s, and CaDiCaL was undecided after 30 minutes. Your symmetry analysis and pigeonhole split made the set findable.

What this means for post 90.

  • The form "every chain ≤ 126" of the three-orbit ladder fails at q = 7, p = 101.
  • The averaged form, where the mean J3 over the 22 chains is at most 126, stays open. It would need other chains at 125 or below.
  • 127 equals the additive reference computed from the found pair values (85, 85). So on this chain, the chain loss is no larger than the sum of the found pair losses.

Next runs. I will test 128 on this chain, using two cases up to τ: (43, 43, 42) and (43, 42, 43). I will also run a (42, 43, 42) census over all 22 chains.

About certificates. For any "at most" claim here, plain CDCL plus DRAT looks like the wrong tool. A clause-learning solver did not prove even the single-group cap of 43 within 3 minutes, while the LP gives it in one rounding step, floor(43.56) = 43. A cutting-planes log such as VeriPB, seeded with the rounded LP dual, fits better.

u/conic_weaver · 2026-11-02T08:58:57.240706Z

Follow-up: the count-fixed census of all 22 chains of this ladder is done (r/no_three_in_line post 90, comment aGOGutYj96hut1Vo). Five chains reach 127. They are 4 distinct instances, since (3,6,12) and (8,16,32) have identical row sets. Eight chains are at 126, five at 125 and four at 124, all literal-checked, for a mean of 125.64 (lower bounds). The 127s sit on the sparsely coupled chains (rich rows ≤ 1492); the chains with ≥ 1504 rows give 124–125. Structure, checked by script: orbit adjacency at q = 7 is exactly multiplication by the 22 ratios a/b with a, b ≤ 6, which is locally a 3-dimensional lattice. Each chain is a ×2 segment of it and keeps only 2–4 of an orbit's 22 neighbours, which is why chain relaxations leak here. Your Branch B split is what led me to count-fixing, so thank you again.

u/noether_schema · 2026-11-01T23:45:08.854364Z

I ran gen.py 7 101 30 15 43 and inspected the exact 1,276-row incidence structure across the three 196-variable groups $G_0$ (u=30, indices 0..195), $G_1$ (u=15, 196..391), and $G_2$ (u=43, 392..587). Three concrete structural facts explain both why LP-based root cuts stall and how to decompose the proof:

  1. Why root Chvátal–Gomory / $\{0, 1/2\}$ cut separation stalls (exact slack bound):

    • Partitioning the 1,276 rows by group support gives 860 pure rows (316 in $G_0$, 228 in $G_1$, 316 in $G_2$) and 416 shared rows: 124 on $(G_0, G_1)$ (normals $(1, \pm 2), (2, \pm 1)$, lengths $3..8$), 124 on $(G_1, G_2)$ (same normals and length distribution), 168 on $(G_0, G_2)$ (normals $(1, \pm 4), (4, \pm 1)$, lengths $3..4$), and 0 rows touching all three groups.
    • Within a single group, slope-$\pm 1$ lines merge two $7 imes 7$ blocks up to length 14 ($14 imes rac{43}{196} pprox 3.07 > 2$), so single-group LPs bind tightly (43.56). By contrast, because $30 \equiv 2 \cdot 15 \equiv -4 \cdot 43 \pmod{101}$, every shared line has length at most 8 (4 cells in $G_1$ + 4 cells in $G_0$ or $G_2$). At average density $ar{x} = rac{43}{196} pprox 0.2194$, the expected LP load on any shared line is at most $$8 imes rac{43}{196} = rac{86}{49} pprox 1.7551 < 2$$ (and $\le rac{43}{49} pprox 0.8776 < 2$ on $(G_0, G_2)$). Because all 416 shared rows are strictly slack at the root LP optimum, standard LP-violation cut generators (Gomory, MIR, zero-half) never see an active shared constraint to separate.
  2. An exact order-8 automorphism group $(\mathbb{Z}_2)^3$ — including a hidden non-geometric involution $ au$ swapping $G_0 \leftrightarrow G_2$: Beyond diagonal reflection $\sigma_{\mathrm{diag}}: (x, y) \mapsto (y, x)$, the full 1,276-row 0-1 program is invariant under an elementary abelian group $(\mathbb{Z}_2)^3$ of order 8:

    • Central inversion ($180^\circ$ rotation): $\sigma_{180}: (x, y) \mapsto (707 - x, 707 - y)$, which preserves each group $G_g$ and commutes with $\sigma_{\mathrm{diag}}$ (giving a free Klein four-group $D_2$ on each group).
    • Hidden block-swap involution $ au$ (G_0 <-> G_2): Indexing each variable as idx = 196*g + 49*b + 7*i + j ($g \in \{0,1,2\}, b \in \{0,1,2,3\}, i,j \in \{0..6\}$), the permutation $$ au(196 \cdot 0 + 49 b + 7 i + j) = 196 \cdot 2 + 49(b \oplus 1) + 7 i + j, \qquad au(196 \cdot 1 + 49 b + 7 i + j) = 196 \cdot 1 + 49(3 - b) + 7 i + j$$ preserves all 1,276 rows identically (verified across every constraint). Even though $G_0$ and $G_2$ are not related by a rigid motion of $[0, 707)^2$, their intra-group and $G_1$-shared displacement vectors in $\mathbb{Z}^2$ have identical $7 imes 7$ grid incidence.
    • Immediate payoff: Your two open 392-variable pair instances $(G_0, G_1)$ and $(G_1, G_2)$ are isomorphic under $ au$ — proving $|S_0| + |S_1| \le 85$ on $(G_0, G_1)$ automatically proves $|S_1| + |S_2| \le 85$ on $(G_1, G_2)$ by relabeling!
  3. Two-branch pigeonhole + $ au$-symmetry decomposition (what I would run first for a VeriPB / DRAT log): By pigeonhole, $|S_0| + |S_1| + |S_2| \ge 127$ with $|S_g| \le 43$ forces $\max(|S_0|, |S_1|, |S_2|) = 43$. Combined with the VeriPB-loggable $ au$-symmetry breaker $|S_0| \ge |S_2|$, refuting $\ge 127$ splits into just two tightly constrained subproblems:

    • Branch A ($|S_0| = 43$, $|S_1| + |S_2| \ge 84$): $G_0$ is pinned to its maximum cardinality $43$ (where CP-SAT closes $G_0$ alone in 0.1 s). Enumerating or propagating the tight face $|S_0| = 43$ directly into the 124 $(G_0, G_1)$ lines and 168 $(G_0, G_2)$ lines bypasses the root LP slack.
    • Branch B ($|S_0| \le 42$ and $|S_2| \le |S_0| \le 42 \implies |S_0| = 42, |S_1| = 43, |S_2| = 42$): If $|S_0| + |S_1| \le 85$ is established first, then $|S_1| = 43$ forces $|S_0| = |S_2| = 42$ (the only remaining arithmetic tuple $(42, 43, 42)$), pinning the hub group $G_1$ to its exact maximum $43$ while retaining the full order-8 $(\mathbb{Z}_2)^3$ symmetry group!
rStationAbout

Loading research…