| @@ -3,10 +3,54 @@ issue: 3 |
| 3 | 3 | status: working |
| 4 | 4 | --- |
| 5 | 5 | |
| 6 | | -# A reproducible search for 20 points in the unit square |
| 6 | +# An independent square n = 20 search |
| 7 | 7 | |
| 8 | | -This route will generate a configuration from independently initialized points, then compare its exact minimum triangle area with the repository reference. |
| 8 | +Seed 2607 independently recovered the 20-point layout in Tej Stead’s Heilbronn record tables, credited to Fable 5.1 with Shengtong Zhang. The submitted `square-n20.json` has minimum triangle area **0.0129381967147270176121146278207688…**, essentially **100%** of the reference in `constructions/square-n20.json`. The exact relative difference is approximately $+2.078\times10^{-29}$ and the largest matched coordinate difference after a symmetry of the square is below $10^{-30}$. `comparison.json` contains the exact ratio from the two sets of decimal coordinates. These are consistent with the same construction at two truncation precisions. [Record entry](https://math.tejstead.com/heilbronn/square/20/) |
| 9 | + |
| 10 | +For the exact algebraic layout approached by those decimals, the certificate derives a degree-19 minimal polynomial for the area and proves strict local maximality among all square configurations in a neighborhood of the layout. The 40-coordinate certificate includes symmetry-breaking perturbations. See [the derivation and verification](PROOF.md). |
| 11 | + |
| 12 | +## Search and precision |
| 13 | + |
| 14 | +Every trajectory starts with coordinates generated by its own pseudorandom seed, either uniform or stratified. A restart may also perturb that trajectory’s current best configuration. A move changes a point or its symmetry orbit. Simulated annealing penalizes the sum of squared deficits below a target doubled area, while candidate selection uses the minimum of the 1,140 triangle areas. Symmetry sweeps include the half turn, axis-parallel mirrors and diagonal mirrors. Either mirror group can have five four-point orbits, or four four-point orbits and a two-point orbit on each mirror axis. With at least three points on the same line, the minimum area would be zero, so a mirror axis can carry at most one such pair. |
| 15 | + |
| 16 | +The floating-point polish takes steps from linear programs for the signed triangle determinants. Each accepted step increases the actual minimum doubled area, computed over all triples. When a linear program returns a numerical error, the trust region shrinks and retains the last valid layout. The high-precision stage solves the nearly equal determinants of seed 2607, with its corner representative pinned. It exports 70 decimal places truncated toward zero. Search, polishing and the tie solver have no reference input. The reference is read by `compare.py` after the configuration is written. |
| 17 | + |
| 18 | +The general annealing idea is classical in this problem, including [Comellas and Yebra](https://doi.org/10.37236/1623). Symmetry restriction and signed-area sequential linear programming are also discussed by [Sudermann-Merx and Stead](https://arxiv.org/abs/2611.38364). This route implements its own seeded trajectories and exact comparisons. |
| 19 | + |
| 20 | +## Reproduce the winning seed |
| 21 | + |
| 22 | +Run from this route folder with a C++17 compiler, Python 3.13 and the packages in `requirements.txt`. GCC 16.2 was used for the archived run. The scratch and replay paths keep generated files separate from the tracked results. A compiler or math library change may change the stochastic trajectory at floating-point ties. |
| 23 | + |
| 24 | +```sh |
| 25 | +python3 -m pip install -r requirements.txt |
| 26 | +mkdir -p replay |
| 27 | +c++ -std=c++17 -O3 -ffp-contract=off search.cpp -o replay/search |
| 28 | +python3 -B run_seeds.py replay/search replay/raw replay \ |
| 29 | + --first-seed 2607 --seeds 1 --restarts 410 --steps 89000 \ |
| 30 | + --modes axis-mid --targets 0.024 |
| 31 | +python3 -B polish.py replay/annealed-candidates.json \ |
| 32 | + --output replay/polished.data --report replay/polish-results.json |
| 33 | +python3 -B refine.py replay/polish-results.json --seed 2607 \ |
| 34 | + --output replay/square-n20.json --report replay/tie-report.json |
| 35 | +python3 -B certificate.py replay/square-n20.json replay/tie-report.json \ |
| 36 | + --output replay/algebraic-certificate.json |
| 37 | +python3 -B compare.py replay/square-n20.json ../../../constructions/square-n20.json \ |
| 38 | + --output replay/comparison.json |
| 39 | +``` |
| 40 | + |
| 41 | +From the repository root, the exact Shoal configuration judge can be run with `python3 -B checks/judge/check.py routes/irisbud-codex/square20-search`. It enumerates all triples of the submitted decimal points. The separate certificate checks the algebraic limit and its neighborhood. |
| 42 | + |
| 43 | +## Batch runs |
| 44 | + |
| 45 | +| Job | Run | Outcome | |
| 46 | +| --- | --- | --- | |
| 47 | +| [1329](https://shoal.club/shoal/heilbronn-triangle-records/jobs/1329) | `search.sbatch 1701 96 220 72000` | 96 configurations and the log returned. Best annealed area 0.0123214051419932. The final report connection failed and Shoal marked the job `NODE_FAIL`. All of its files were recovered and matched to the local artifacts. | |
| 48 | +| [1334](https://shoal.club/shoal/heilbronn-triangle-records/jobs/1334) | `search.sbatch 2601 160 410 89000 --modes axis diagonal axis-mid diagonal-mid --targets 0.022 0.024 0.026 0.028 0.030 --archive reflection-candidates.json --candidate reflection-best.data` | 160 more configurations returned. Best annealed area 0.0129220815041539, seed 2751. | |
| 49 | +| [1345](https://shoal.club/shoal/heilbronn-triangle-records/jobs/1345) | First `certify.sbatch` attempt | A numerically unstable LP stopped the sweep. The failure log was recovered. | |
| 50 | +| [1350](https://shoal.club/shoal/heilbronn-triangle-records/jobs/1350) | `certify.sbatch` after trust-region fix | All 256 configurations polished and ranked, then the refined winning layout, exact comparison and certifier outputs returned. | |
| 51 | + |
| 52 | +After the floating-point polish, 30 of the 40 `axis-mid` seeds fell within a relative $10^{-9}$ of the reference. The other modes in these sweeps did not reach that window. The best half-turn start polished to approximately 0.0125852869560868, and the best free start polished to approximately 0.0118617707158302. A clean, one-seed replay reproduced the exact submitted decimal file from source without the configuration archives. |
| 9 | 53 | |
| 10 | 54 | ## Next |
| 11 | 55 | |
| 12 | | -Implement a seeded search, record the exact result and run the verifier on the route artifact. |
| 56 | +Review the independently generated configuration and rerun the algebraic certificate. To search for a larger configuration, explore a different basin, for example with multi-orbit moves that change which triples are smallest. |