| @@ -5,12 +5,117 @@ status: working |
| 5 | 5 | |
| 6 | 6 | # Exact verification of rational configurations |
| 7 | 7 | |
| 8 | | -Propose a Python standard-library verifier that enumerates circumcenters of |
| 9 | | -noncollinear triples using rational arithmetic and counts those of radius one. |
| 10 | | -This route will contain the checker, samples, correctness argument, and a |
| 11 | | -proposed Shoal check configuration. No claim of optimality is intended. |
| 8 | +This route proposes a dependency-free verifier for the number of distinct unit |
| 9 | +circles through at least three points of a finite rational point set. It enumerates |
| 10 | +noncollinear triples, computes their circumcenters with exact fractions, tests |
| 11 | +squared radius equal to one, and deduplicates centers. It emits all centers and |
| 12 | +their incident point indices. See [correctness.md](correctness.md). |
| 13 | + |
| 14 | +This is verification infrastructure, not a new bound, optimal configuration, or |
| 15 | +solution of Erdos Problem 104. Only rational coordinates are supported; arbitrary |
| 16 | +real/algebraic configurations are not covered. The bundled 3-by-3 integer grid |
| 17 | +(9 points, 5 circles) is a test fixture, not a new OEIS term or record. |
| 18 | + |
| 19 | +## Files and input |
| 20 | + |
| 21 | +- verify.py: Python 3.12+ standard-library checker. |
| 22 | +- configuration.json: the 9-point grid example. |
| 23 | +- example-verification.json: locally generated circle list for the example. |
| 24 | +- test_verify.py: regression tests and an independent exact geometric oracle. |
| 25 | +- samples/accept/ and samples/reject/: six fixtures each. |
| 26 | +- check.sbatch: proposed runner entry point. |
| 27 | +- proposed-scienceslack.json: proposed root configuration preserving existing |
| 28 | + metadata and adding one check whose code stays in this route. |
| 29 | + |
| 30 | +Each submission has one configuration.json object with exactly these keys: |
| 31 | + |
| 32 | + {"schema": 1, "points": [[1,0],[0,1],[-1,0]], "unit_circles": 1} |
| 33 | + |
| 34 | +Coordinates are JSON integers or strings such as "-3/5"; fractions have positive |
| 35 | +denominators. Decimal numbers/strings, exponent notation and booleans are rejected. |
| 36 | +Points must be distinct after reduction. The exact claimed count, including zero, |
| 37 | +is mandatory. Limits: 3..80 points, 32 decimal digits per numerator/denominator, |
| 38 | +and 128 KiB per file. Counts outside the elementary pair bound and duplicate |
| 39 | +JSON keys are rejected. |
| 40 | + |
| 41 | +## Reproduce |
| 42 | + |
| 43 | +From the repository root: |
| 44 | + |
| 45 | + python routes/rusirui-rational-verifier/test_verify.py |
| 46 | + python routes/rusirui-rational-verifier/verify.py routes/rusirui-rational-verifier --output routes/rusirui-rational-verifier/verification.json |
| 47 | + |
| 48 | +The second command prints PASS: configuration.json: n=9, exact unit circles=5. |
| 49 | +Output uses reduced rational strings and zero-based point indices. A prior output |
| 50 | +file is removed before checking, so rejection or skip cannot leave stale evidence. |
| 51 | +Exit 0 means an exact match or explicit skip; 1 means invalid input or wrong count; |
| 52 | +2 means an I/O/environment error. A missing artifact prints SKIP: no |
| 53 | +configuration.json; no mathematical artifact judged, and emits no file. A |
| 54 | +nonexistent route folder is an environment error. No score is proposed: counts |
| 55 | +at different n are not directly comparable. |
| 56 | + |
| 57 | +## Local evidence and limitations |
| 58 | + |
| 59 | +On 2026-11-28, Python 3.13.13 passed all five test methods, including all 12 sample |
| 60 | +fixtures, 60 deterministic randomized comparisons with an independent oracle, |
| 61 | +rational rotations/translations, input validation, CLI exit codes and stale-output |
| 62 | +removal. The oracle uses the side-length/area radius identity and a concyclicity |
| 63 | +determinant; it does not reuse the checker circumcenter formula or deduplication. |
| 64 | +An 80-point 10-by-8 integer-grid stress run counted 76 circles in about 0.90 seconds. |
| 65 | +This is a local measurement, not a worst-case runtime guarantee. |
| 66 | + |
| 67 | +The shell wrapper passed the grid and rejected the overcount sample with Git's |
| 68 | +POSIX shell, Python and core utilities on Windows. The first wrapper attempt |
| 69 | +failed because dirname was absent from that shell's PATH; adding Git's utilities |
| 70 | +resolved it. The proposed Linux image has not been tested on Shoal. |
| 71 | + |
| 72 | +Shoal reported zero statuses on implementation push 58cafb7. Its route wait |
| 73 | +endpoint explicitly said there is no check that judges a push and no verdict will |
| 74 | +come. These are author-run tests only: **the verifier and fixture count remain |
| 75 | +unverified by a Shoal mathematical check**. A documentation review is not such a |
| 76 | +check. |
| 77 | + |
| 78 | +## Maintainer activation |
| 79 | + |
| 80 | +All changes remain in this route as requested. The root configuration is unchanged; |
| 81 | +this proposal does not activate a check or automatic ci/trial. After review: |
| 82 | + |
| 83 | +1. Incorporate checks.rational-circles from proposed-scienceslack.json into the |
| 84 | + then-current root scienceslack.json, preserving other changes. |
| 85 | +2. Copy the route's samples into root samples/accept/ and samples/reject/, where |
| 86 | + Shoal's trial discovers them. |
| 87 | +3. Run the sample trial in python:3.12-slim, confirm the entry point resolves the |
| 88 | + approved verify.py beside its script, and approve the rules through the |
| 89 | + maintainer workflow. Never execute a submitter-supplied verifier. |
| 90 | + |
| 91 | +The check reads $SS_INPUT/$SS_ROUTE_DIR/configuration.json and writes |
| 92 | +verification.json in its job directory. It locates the trusted checker beside |
| 93 | +its own $0 path; activation must confirm that the runner preserves that path. |
| 94 | +No reject sample predated this route on main, so the documented automatic-approval |
| 95 | +condition is not met: a person must approve the check. |
| 96 | + |
| 97 | +## Sources and scope |
| 98 | + |
| 99 | +Credit: T. F. Bloom, [Erdos Problem 104](https://www.erdosproblems.com/104), accessed |
| 100 | +2026-11-28. Its page presents the conjecture, attributes the order-n^(3/2) |
| 101 | +construction to Elekes, and lists no proof exposition or proof claim. |
| 102 | +[OEIS A003829](https://oeis.org/A003829/internal), read on the same date, gives |
| 103 | +1,4,4,8,12,16 for n=3..8. This route does not reproduce the optimal configurations |
| 104 | +for n=4..8. |
| 105 | + |
| 106 | +The Elekes publisher record was also checked: G. Elekes, *n points in the plane |
| 107 | +can determine n^(3/2) unit circles*, Combinatorica 4 (1984), 131, |
| 108 | +[doi:10.1007/BF02579212](https://doi.org/10.1007/BF02579212). The related original |
| 109 | +finite-configuration reference, linked by the source and OEIS, is H. Harborth and |
| 110 | +I. Mengersen, *Point sets with many unit circles*, Discrete Mathematics 60 (1986), |
| 111 | +193-197, doi:10.1016/0012-365X(86)90011-7. Neither paper was independently |
| 112 | +reproduced here. The checker proof is elementary linear algebra; no literature |
| 113 | +novelty is claimed. |
| 12 | 114 | |
| 13 | 115 | ## Next |
| 14 | 116 | |
| 15 | | -Implement and test the verifier, check the source literature, and document the |
| 16 | | -maintainer activation steps. The project currently declares no checks. |
| 117 | +A maintainer should review the proof and hostile samples, activate the proposed |
| 118 | +check and sample trial using the steps above, and obtain a verdict on the actual |
| 119 | +configuration. Extend the coordinate model to a specified algebraic number field |
| 120 | +before attempting known irrational constructions. Finite counts alone do not |
| 121 | +certify optimality or an asymptotic bound. |