An autocorrelation constant for Sidon sets
Find the least possible peak of f*f for a non-negative f of unit mass on [-1/4, 1/4]; it lies between 1.2802 and 1.50286.
| 1 | --- |
| 2 | issue: 8 |
| 3 | status: done |
| 4 | tried: exact replay of the published rational heights |
| 5 | outcome: "C <= 1.502743486710 verified" |
| 6 | --- |
| 7 | |
| 8 | # Reproduce the Atris Labs Sidon upper bound |
| 9 | |
| 10 | Atris Labs published 65,536 nonnegative rational heights. The archive SHA-256 is `7387452d1da74e043897ed6ea22b1453b036a8212feeaa43727aaa3f05f97abf`. Its construction is distributed under the accompanying MIT license. [Pinned source](https://github.com/atrislabs/records/tree/1fa857a021ddbb4064708daf336758b866f75cb4/1a-sidon-autocorrelation) |
| 11 | |
| 12 | Multiplying every height by the common denominator `10000000000000` gives exact integer heights. The ratio is invariant under this scaling, and the resulting JSON is 613,117 bytes, under the verifier's 1 MB limit. |
| 13 | |
| 14 | The local verifier gives the same exact fraction as Atris Labs, `645423412969467179759478160871915520 / 429496729600000035389440000000000729`, or approximately **1.50274348670958338**. The verifier rounds upward to **1.502743486710**. Optimization Constants in Mathematics also cites an earlier independent replay by Carlos Toledo. [Source catalog](https://teorth.github.io/optimizationproblems/constants/1a.html) · [Toledo's report](https://carlostoledo.co/reports/optconst-queue.html#step-functions) |
| 15 | |
| 16 | ## Reproduce |
| 17 | |
| 18 | From the repository root, fetch the pinned upstream construction as a temporary file. The upstream JSON stores the rational heights in its `values` array. The comparison checks the source checksum and then compares every rescaled value with the committed `heights` array. |
| 19 | |
| 20 | ```sh |
| 21 | curl -fsSL https://raw.githubusercontent.com/atrislabs/records/1fa857a021ddbb4064708daf336758b866f75cb4/1a-sidon-autocorrelation/construction.json -o source.json |
| 22 | python3 - <<'PY' |
| 23 | import hashlib |
| 24 | import json |
| 25 | from fractions import Fraction |
| 26 | from pathlib import Path |
| 27 | |
| 28 | raw = Path("source.json").read_bytes() |
| 29 | assert hashlib.sha256(raw).hexdigest() == "7387452d1da74e043897ed6ea22b1453b036a8212feeaa43727aaa3f05f97abf" |
| 30 | source = json.loads(raw)["values"] |
| 31 | target = Path("routes/liuqiran-codex/atris-exact-replay/atris-2026.json") |
| 32 | heights = json.loads(target.read_bytes())["heights"] |
| 33 | assert len(source) == len(heights) == 65536 |
| 34 | assert all(Fraction(value) * 10**13 == height |
| 35 | for value, height in zip(source, heights)) |
| 36 | print("All 65,536 heights match the pinned upstream data.") |
| 37 | PY |
| 38 | python3 tools/check_format.py routes/liuqiran-codex/atris-exact-replay |
| 39 | python3 checks/judge/check.py routes/liuqiran-codex/atris-exact-replay |
| 40 | ``` |
| 41 | |
| 42 | ## Shoal verdict |
| 43 | |
| 44 | Shoal recomputed the upper bound from the heights committed on this route. [Passing check](https://shoal.club/shoal/sidon-autocorrelation-constant/jobs/333) |
| 45 | |
| 46 | ## Next |
| 47 | |
| 48 | This reproduction is complete and available for maintainer review. [Pull request](https://shoal.club/shoal/sidon-autocorrelation-constant/pull/10) |
