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 | # The checks and how to submit |
| 2 | |
| 3 | The checks run the judge in `checks/judge/` at the project's approved version, with your pushed commit as input, so a |
| 4 | route cannot change how it is judged. The judge is plain Python 3 with no dependencies: run it yourself before you push, |
| 5 | `python3 checks/judge/check.py routes/<branch>`, and rerun its own tests with `python3 -I checks/test_judge.py`. |
| 6 | |
| 7 | ## Files |
| 8 | |
| 9 | - `constructions/baseline.json`: a step function with 200 steps, in the submission format. It is a baseline computed for |
| 10 | this repository, not the record. Its ratio is exactly $35528105221325/23398155562896 < 1.518414779568$. |
| 11 | - `tools/check_format.py`: checks that files follow the submission format; it computes no ratio. |
| 12 | |
| 13 | ## Submission format |
| 14 | |
| 15 | - **Files.** A candidate is a file whose name ends in `.json`, anywhere in your route's folder `routes/<branch>/`, whose |
| 16 | content is a JSON object with the key `"heights"`; other keys are ignored. A `.json` file whose content is not such |
| 17 | an object is not a candidate and is ignored, but a `.json` file that is not valid JSON fails the check. Keep each file |
| 18 | under 1 MB. |
| 19 | - **`"heights"`**: a list of $N$ heights $a_1,\dots,a_N$, $1\le N\le 131072$. The candidate is the step function |
| 20 | $f=a_i$ on the cell $[-\tfrac14+\tfrac{i-1}{2N},\,-\tfrac14+\tfrac{i}{2N})$ for $i=1,\dots,N$, and $f=0$ outside |
| 21 | $[-\tfrac14,\tfrac14)$. Each height is nonnegative and they are not all 0. A height is a JSON number (an integer, or a |
| 22 | float, read as the exact binary64 value it denotes) or a string holding an exact rational number: an integer |
| 23 | (`"3"`), a fraction (`"3/7"`) or a decimal (`"0.125"`, `"1.5e-3"`). Multiplying all heights by the same positive |
| 24 | number does not change the value. |
| 25 | - **Value.** $R=\max_t (f*f)(t)/(\int f)^2$, computed exactly; it is an upper bound on $C$. For a step function with |
| 26 | equal cells, $f*f$ is piecewise linear with breakpoints at multiples of the cell width, so |
| 27 | $R=2N\max_k \sum_{i+j=k} a_i a_j\big/\big(\sum_i a_i\big)^2$. |
| 28 | - **Size limit.** Written over their least common denominator $q$, the heights are integers $q a_i$. The check accepts |
| 29 | $N\cdot B\le 2^{24}=16777216$, where $B$ is the bit length of the largest $q a_i$: for example 131,072 heights of up |
| 30 | to 128 bits. Floats between $10^{-12}$ and $10^{3}$ (and 0), or decimals with at most 25 digits after the point, stay |
| 31 | inside; set tinier heights to 0. |
| 32 | - **What `verify` reports.** One line `<file>: <N> steps, C <= <R>` for each candidate, $R$ rounded up to 12 decimals, |
| 33 | then `best upper bound C <= <R> (<file>)`. It fails if any `.json` file is unreadable or any candidate is not |
| 34 | admissible (a negative height, all heights 0, a malformed list, over the size limit); a route with no candidate |
| 35 | passes with "no candidates to check". |
| 36 | - **Score.** The smallest $R$ among the route's candidates. Lower is better; the baseline scores |
| 37 | $35528105221325/23398155562896\approx 1.5184148$. |
| 38 | - **`improves`** says by how much the route's smallest $R$ is below the smallest that `main` holds in `constructions/` |
| 39 | and `routes/`, and whether it is new; it passes when that is at least $10^{-8}$, and it only informs: a merge does not |
| 40 | wait on it. |
| 41 | - Check a folder before you push: `python3 tools/check_format.py routes/<branch>`. |
| 42 | |
| 43 | ## How results count |
| 44 | |
| 45 | Push your work to a route. Every candidate in the submission format is checked exactly by the project's `verify` |
| 46 | check on every push, and `improves` says whether it beats the best that `main` holds. Open a pull request into `main` |
| 47 | when it does: the site's maintainer takes improvements in. Any other result, a lower bound or another kind of |
| 48 | construction, is judged by review: say in your route's notes exactly what you claim and how to check it. |
