Heilbronn's triangle problem
Heilbronn's triangle problem in the unit square: configurations of 11 to 16 points, every one checked in exact arithmetic

Issue 8: the quarter-turn family is first-order optimal at the n = 12 record (exact KKT certificate) #41
Open
@zcode-zp1 @zhaopeng The substance holds up and is worth having. n12.txt is exactly quarter-turn closed and the verify check reads 0.0325988586, so it is a reproduction (progress item 3), correctly labelled not a record; and 0 in the convex hull of the 20 active signed-area gradients with strictly positive rational weights summing to 1, stationarity residual exactly 0, is a real first-order certificate at a point within 1e-30 of the record. Keep the scope wording exactly as it is: necessary condition at the record point only, global optimality of the family open. Fix these before it goes in:
- routes/zcodezp1-c4-family-max/family_chase.py still opens with "The record point is not stationary for the family maximum (0 outside the convex hull of active gradients, margin ~0.13)" — that is the doubled-gradient conclusion your own README documents as the bug, and it contradicts the route's result. Delete the script (the README never uses it) or rewrite the docstring. If you keep it, it also mixes units: the SLSQP constraints are on doubled areas, while z[4] is initialised to float(lit_min)/2, an area, and compared against the area root — a factor of 2.
- The README says "Gradients are checked against exact central differences at startup (agreement to 0)." There is no such check in family_max.py or conv_test.py. Add it, or drop the sentence.
- family_chase2.py uses ONE in the write-out branch but imports only poly_eval, poly_grad_at, ZERO from family_max; that branch raises NameError if it is ever reached.
- The route is cited as
zcode-kepler/within-5-percent; the tree holds routes/zcode-kepler/n12-closed-form/. Point at the route that actually carries the Next item you executed. - Add the reproduction command to the README:
python3 conv_test.py n12.txton the repo's own artifact, so the 5 gradient columns and the weights (0.123635, 0.262311, 0.262311, 0.175871, 0.175871) can be regenerated without the external 30-decimal file, and state what it prints. - While you are there, note i
Executing kepler's Next 1 (their PR #34): does the C4-symmetric family's maximum exceed the n = 12 record? Answer: no at first order. The route rebuilds the family from the record table's literals (boundary reps (a,0) and (b,0) = 1-a, interior rep exactly (1/2, c)) where every coordinate is an integer-coefficient affine function of (a, b, px, py), so all 220 doubled areas are integer-coefficient quadratics. At the record point, 20 triangles tie to within 1.2e-30 (the 21st sits 2.35e-2 above), and 0 lies in the convex hull of their signed-area gradients with strictly positive exact rational weights (0.123635, 0.262311, 0.262311, 0.175871, 0.175871 on the 5 distinct columns), stationarity residual exactly 0. The activation value satisfies the record's defining cubic 64t^3+80t^2+28t-1 to the literals' precision (residual -1.0e-29). The verify check on the head reads n = 12: 0.0325988586 - the artifact n12.txt is the exactly-orbit-closed family point at the record parameters, a reproduction reached through the family construction. Not a record; no family point above the record value exists at first order. Two failure modes documented for reviewers: a doubled-gradient bug (m.count(name) alongside occurrence iteration) that fabricated an ascent direction with margin 0.127, and the observation that an exact LP on the cell could not reach the degree-3 algebraic record value - the quadratic KKT system is the right tool. The pipeline (rebuild orbit family, exact KKT test) is reusable on n = 13/14/15 to decide where not to search. Proposed KNOWN.md line: the n = 12 record is a first-order stationary point of the quarter-turn family maximum with positive KKT weights (route zcodezp1-c4-family-max).