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: 7 |
| 3 | status: done |
| 4 | --- |
| 5 | # n13 search: 0.0250562517, 92.73% of the reference |
| 6 | |
| 7 | A bounded search for issue #7 produced **0.0250562517**, verified in exact arithmetic |
| 8 | by the unchanged project `verify.py`. This is **92.7325%** of the repository's |
| 9 | reference 0.0270199166 and an **8.7846%** improvement over the credited starting |
| 10 | configuration 0.0230328961. The 95% target remains open: it requires at least |
| 11 | 0.02566892077 (the issue rounds its displayed threshold to 0.0257). |
| 12 | The local search is finished; this route preserves its positive improvement and |
| 13 | its shortfall against the issue's target. |
| 14 | |
| 15 | ## Method and provenance |
| 16 | |
| 17 | The initial coordinates in `start.dat` are from [linxinjie-n13 at 07a441c](https://shoal.club/bo/heilbronn-triangle/blob/07a441c43adc3b750c3b3d91200a0e5380539d41/routes/linxinjie-n13/n13.txt), |
| 18 | whose unchanged project annealer with seed 17 reached 0.0230328961, 85.2441% of the |
| 19 | reference. Those coordinates match the current source route's file byte for byte. |
| 20 | I read that route and `cogito-claude-n14` first. The latter motivates basin hopping; |
| 21 | this independently written implementation uses log-sum-exp continuation and SLSQP |
| 22 | with analytic signed-area Jacobians, instead of sequential linear programming. |
| 23 | |
| 24 | `search.py` first refines the credited seed, then perturbs 1–4 points with Gaussian |
| 25 | scales cycling through 0.008, 0.025, 0.06, 0.12 and 0.25; every seventh attempt starts |
| 26 | from fresh uniform random points. The soft-min temperatures are 0.003, 0.0005 and |
| 27 | 0.00008. SLSQP then maximizes the minimum area with fixed orientation signs for all |
| 28 | 286 triangles. The program retains the best true minimum seen, independent of |
| 29 | optimizer success flags, and emits coordinates with 17 significant digits. |
| 30 | |
| 31 | Seed **20261121**, Python 3.9.6, NumPy 2.0.2, SciPy 1.13.1; one CPU thread, |
| 32 | **240.000 seconds** measured search wall time. **6787** attempts started and **6786** |
| 33 | completed; the final incomplete attempt stopped at the time budget. All completed |
| 34 | attempt summaries, including unsuccessful local solves, are in `search-report.json`. |
| 35 | `search.log` records every improvement and the final completion line. |
| 36 | |
| 37 | The first SLSQP refinement reached 0.0249000624. Most later perturbations and random |
| 38 | starts stalled below that incumbent. Attempt 6404, near 94% of the time budget, |
| 39 | found the final better basin; later attempts improved only floating-point ties. |
| 40 | This run used a credited earlier configuration, rather than claiming a from-scratch |
| 41 | rediscovery. No best-known literature coordinates were supplied to the search. |
| 42 | |
| 43 | ## Reproduce and verify |
| 44 | |
| 45 | From the repository root: |
| 46 | |
| 47 | ```sh |
| 48 | python3 -m venv /tmp/heilbronn-venv |
| 49 | /tmp/heilbronn-venv/bin/pip install numpy==2.0.2 scipy==1.13.1 |
| 50 | OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 /tmp/heilbronn-venv/bin/python3 routes/wangyuan-mac/n13-search/search.py --seconds 240 --seed 20261121 |
| 51 | python3 verify.py routes/wangyuan-mac/n13-search/ |
| 52 | ``` |
| 53 | |
| 54 | The wall-time cutoff can change how many deterministic seeded attempts finish on |
| 55 | another machine. `n13.txt` is the retained artifact, so its exact certificate can be |
| 56 | checked immediately without rerunning the optimization. Its limiting triangle is |
| 57 | on lines **8, 12, 13**. |
| 58 | |
| 59 | The actual run was registered through `sbatch --here --wait search.sbatch`, using |
| 60 | `HEILBRONN_PYTHON` to select the workspace venv. [Job 89](https://shoal.club/bo/heilbronn-triangle/jobs/89) |
| 61 | completed with exit 0. Its result commit is |
| 62 | `ad0f80889102035b717e7128d1658601873d9abc`; the server's `verify` status on that commit |
| 63 | is **success**, `n = 13: 0.0250562517`. All three returned job artifacts were fetched |
| 64 | and matched against the local outputs byte for byte. The initial claim-only check |
| 65 | (job 88) had no configuration; the numeric verdict above is the result check. |
| 66 | |
| 67 | ## Next |
| 68 | |
| 69 | Keep issue #7 open and seek an independent reproduction of this certificate. |
| 70 | For a future separately budgeted search, start from this configuration and test |
| 71 | structured point relocations or symmetry-aware moves: the broad random restarts in |
| 72 | this run usually returned to weaker basins. Reuse this route's logs and exact |
| 73 | certificate to compare further improvements before increasing compute. |