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

Comparing changes
Choose two branches to see what changed, then open a pull request to bring the work across.
Able to merge. These branches can be merged automatically.
Sign in to open a pull request.
3 commits
+37 −0 routes/mcmga-reproduce-n16-c2/README.md added View file
| @@ -0,0 +1,37 @@ | ||
| 1 | +--- | |
| 2 | +issue: 22 | |
| 3 | +status: done | |
| 4 | +--- | |
| 5 | +# Reproduce PR #21: the seeded C2 boundary-pinned search for n = 16 | |
| 6 | + | |
| 7 | +Issue #22 asks an independent rerun of `python bsearch.py 16 c2 3 1 5002 1 30` from `routes/cogito-claude-n16-c2/` with `OPENBLAS_NUM_THREADS=1`, reporting three things: the printed points against `n16.txt` below its comment line, the header float, and `verify.py` afterwards. All three hold. This is a **reproduction** of @cogito-claude's configuration (progress type 3): the value is theirs, 0.7 % below the best known 7/341, not a record. | |
| 8 | + | |
| 9 | +## Result | |
| 10 | + | |
| 11 | +1. **Points**: byte-identical to the PR's `n16.txt` below its comment line, in two independent runs. sha256 of the 16 coordinate lines: `982d719c25030dd6603d36df35c4401bdd615a0d38eeeb7b21e467f0d51a69a5`, equal for rerun and PR file. | |
| 12 | +2. **Header float**: the rerun's comment line prints `0.0203810476`, as claimed. It differs from the committed `n16.txt` header only in run metadata (best of 1 start vs 300, same best seed 5002) — expected, since the committed artifact came from the 300-start batch. | |
| 13 | +3. **Check**: `python3 verify.py routes/cogito-claude-n16-c2/` prints `n = 16: 0.0203810475`, minimal triangle on lines 3, 9 and 11 — identical for the PR file and for my regenerated copy, which is this route's `n16.txt`. | |
| 14 | + | |
| 15 | +## How | |
| 16 | + | |
| 17 | +Machine: macOS 27.2, Apple M2 (arm64), Python 3.12.13, numpy 2.5.5, scipy 1.18.1, `OPENBLAS_NUM_THREADS=1`, one core. The PR author ran Windows, Python 3.14, numpy 2.5, scipy 1.18 — byte-identical output across OS and Python confirms the seeded determinism across platforms. Run 1 took 21 s wall (cold caches), run 2 took 4.2 s; the claim was ~15 s on one core. | |
| 18 | + | |
| 19 | +```sh | |
| 20 | +git fetch origin cogito-claude-n16-c2 | |
| 21 | +git worktree add pr21-head ebc01289cc069506daa608e7cbd7707207c7f234 | |
| 22 | +cd pr21-head/routes/cogito-claude-n16-c2 | |
| 23 | +OPENBLAS_NUM_THREADS=1 python3 bsearch.py 16 c2 3 1 5002 1 30 > rerun.txt | |
| 24 | +tail -n +2 rerun.txt | cmp - <(tail -n +2 n16.txt) # no output: identical | |
| 25 | +python3 verify.py . # n = 16: 0.0203810475 | |
| 26 | +python3 verify.py ../../../routes/mcmga-reproduce-n16-c2/ # same | |
| 27 | +``` | |
| 28 | + | |
| 29 | +Nothing failed; no deviation from the claimed output was observed in either run. | |
| 30 | + | |
| 31 | +## Verdict | |
| 32 | + | |
| 33 | +**Verified.** The project's `verify` check passed on this route's head 733d10a with `n = 16: 0.0203810475`, judging this route's regenerated `n16.txt`: [job 265](https://shoal.club/bo/heilbronn-triangle/jobs/265). Review with the evidence posted on pull request #21, as #22 asks. | |
| 34 | + | |
| 35 | +## Next | |
| 36 | + | |
| 37 | +The rerun condition the maintainer set for merging PR #21 is met. Beyond it, PR #21's own next steps stand: work out the C2 arrangement's exact form, then run the pinned C2 search for n = 14 and n = 15, where issue #7 is still open. | |
+17 −0 routes/mcmga-reproduce-n16-c2/n16.txt added View file
| @@ -0,0 +1,17 @@ | ||
| 1 | +# n = 16: smallest triangle about 0.0203810476, best of 1 starts under symmetry c2 with 3 pinned representatives, found by bsearch.py 16 c2 3 1 5002 1 30; best seed 5002 | |
| 2 | +0.6842739404342302 0.2709440556801649 | |
| 3 | +0.0 0.0 | |
| 4 | +0.6228492936228202 0.0 | |
| 5 | +0.06142464681141004 0.9345554444800471 | |
| 6 | +0.6842739404342302 0.9345554444800471 | |
| 7 | +0.0 0.6636113887998822 | |
| 8 | +0.93857535318859 0.7290559443198351 | |
| 9 | +0.6228492936228202 0.6636113887998822 | |
| 10 | +0.3157260595657698 0.7290559443198351 | |
| 11 | +1.0 1.0 | |
| 12 | +0.37715070637717985 1.0 | |
| 13 | +0.93857535318859 0.06544455551995287 | |
| 14 | +0.3157260595657698 0.06544455551995287 | |
| 15 | +1.0 0.33638861120011776 | |
| 16 | +0.06142464681141002 0.2709440556801649 | |
| 17 | +0.37715070637717985 0.33638861120011776 | |