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

| 1 | --- |
| 2 | issue: 19 |
| 3 | status: done |
| 4 | --- |
| 5 | # Reproduce PR #18: the n = 13 transfer certificates and Karpov chain |
| 6 | |
| 7 | Independent rerun of @hongdy22-codex's certificate workflows (route `hongdy22-codex-n13-transfer`, worktree at 0fec026) on macOS 27.2, Apple M2 (arm64), Python 3.12.13, **python-flint 0.9.0** — ALGEBRA.md documents 0.8.0; the symbolic steps passed unchanged on the newer version. The whole documented chain runs in under 4 s. Stated plainly: **nothing here beats 0.0270199166** — the route's final artifact equals the table value (a reproduction), and the transfer result 0.0266974318 is below it; this route makes no claim on issue #8. |
| 8 | |
| 9 | ## Result: all four points of #19 hold |
| 10 | |
| 11 | 1. **Transfer value.** `verify.py` on `row-symmetric.dat` (as n13.txt) prints `n = 13: 0.0266974318`, contacts on lines 6, 11 and 13. `row_certificate.py --output` regenerates an export **byte-identical** to the committed `row-symmetric.dat`; `verify.py` on the regenerated export gives the same value. |
| 12 | 2. **Algebraic certificate.** The scripts assert, not just print. `row_certificate.py`: irreducibility of the degree-27 factor asserted (`content == 1 and factors == [(poly, 1)]`), all 21 contact identities zero in the quotient field, the area relation zero, root isolation by sign change plus a derivative interval bounded off zero, and the local-max margins: inverse residual 4.87e-58 < 1, contact weight margin 6.79e-3 > 0, boundary margin 1.33e-2 > 0, feasible shear ≥ 0.0117. `classify_row.py`: the modular witness (p=101, b=76) gives a degree-one gcd in c with both degrees in c preserved (an unusable witness raises), Sturm counts and pairwise-disjoint isolating intervals asserted for every factor's real b>1 roots, each non-admissible factor excluded by asserted strict separation — 2 singular denominators (deg 14, 3), 1 no-common-finite-c (deg 1), 5 row-ordering violations (incl. the other two degree-27 factors at b≈1.3647, 5.9903) — and `assert admitted == 1`: the uniqueness cover checks out. `check_algebra` verifies row-field.json's numerator/denominator reconstruction in both scripts. My rerun matches the committed `row-proof.json` values. |
| 13 | 3. **Karpov chain.** `polish.py`: 20 active triangles, `strict_local_maximum: true`, radius 3.6978670559054095e-05 > 3.69e-5 falling out of positive weight (1.67e-2) and boundary (9.64e-3) margins — not vacuous; area center 0.0270199166691113617439314768425770484824271222934605778…, all strings equal to the committed `local-reference-proof.json`. `certify_reduced.py`: preconditioned contraction 1.019860957539532e-33 < 1.1e-33 on the radius-1e-42 box mapped into itself, area interval enclosing the center, 20 critical + 266 strictly larger — equal to `reduced-report.json`. `verify_contact_identities.py`: 17 rational determinant identities verified symbolically (20 active − 3 residuals). `contact_model.py`: max residual 1.06e-56, max coordinate error 1.19e-58. |
| 14 | 4. **Shear-family argument (ALGEBRA.md).** Checked as mathematics, not only as output: the shear (x, y) → (x + k(y − y₄), y) has unit determinant so preserves every doubled area, and keeps both anchors on their sides because y₄ = y₆; the interval certificate independently backs feasibility for all |k| ≤ 0.0117 (printed: 0.0117). The uniqueness argument is a local KKT-style certificate — square contact Jacobian inverted via an inverse residual bound, positive weights summing to one from the last inverse row, strict outward signs on the five physical bounds — each quantity printed and asserted above; the subsequential unit-limit contradiction is sound, and the note correctly scopes the claim to the local family and the declared contact model. The exclusions the issue flagged as most worth a second pair of eyes are asserted strict interval separations, not prints. |
| 15 | |
| 16 | Machine line: macOS 27.2 / Apple M2 / Python 3.12.13 / python-flint 0.9.0; numpy and scipy installed but unused by these steps (stdlib + flint). Full log: `chain-log.txt` in this folder; commands are ALGEBRA.md's chain verbatim. |
| 17 | |
| 18 | ## Verdict |
| 19 | |
| 20 | No n1x.txt lives in this folder, so the project check has nothing new to judge here — rightly so: every value this route confirms already sits on `hongdy22-codex-n13-transfer` under its own passing checks (jobs 112–114), and main already holds the table value. This route's product is the review on PR #18 with the evidence above. |
| 21 | |
| 22 | ## Next |
| 23 | |
| 24 | Review posted on PR #18. The route's own Next stands for issue #8: new contact patterns away from the certified neighborhoods; the two certified constructions (mirror-symmetric row model, tightened Karpov) are ready-made test cases for future search changes. |