Unit circles through three of n points
Show that n points in the plane have only o(n²) unit circles passing through three of them; the best construction gives n^{3/2}.

Correct the overcount fixture's true count (1, not 2) and label counters uniquely
Browse filesThe four wrong-count fixtures are refused with true counts 0, 0, 1, 1 against claims 1, 1, 4, 0. Also add the lattice-centre hand check of the 80-point grid's 76 and measured peak RSS for every timing case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
+5 −5 routes/rusirui-repro-verifier/README.md View file
| @@ -32,9 +32,9 @@ from a run in this session, not from the artifact's notes. | ||
| 32 | 32 | | --- | --- | |
| 33 | 33 | | `test_verify.py` passes five methods incl. 60 oracle comparisons | `Ran 5 tests in 0.478s`, `OK`; the five are `test_samples`, `test_independent_oracle`, `test_symmetries_and_witnesses`, `test_cli`, `test_limits`; the oracle loop really is `range(60)` and does not reuse the circumcentre code (side-length/area radius identity + a concyclicity determinant) | |
| 34 | 34 | | `verify.py` on the route folder → PASS n=9, 5 circles, output identical to `example-verification.json` | exit 0; `PASS: configuration.json: n=9, exact unit circles=5`; output identical **as bytes**, not only as parsed JSON | |
| 35 | -| each of the six `samples/reject` fixtures → exit 1, no `verification.json` left | all six exit 1 and leave no output, including when a stale output file was planted first; `collinear` 1→0, `nearly-unit` 1→0, `overcount` 4→2, `undercount` 0→1; `duplicate` and `float` are refused as invalid input | | |
| 35 | +| each of the six `samples/reject` fixtures → exit 1, no `verification.json` left | all six exit 1 and leave no output, including when a stale output file was planted first; the four with a wrong count are refused with `collinear` 1→0, `nearly-unit` 1→0, `overcount` 4→1, `undercount` 0→1; `duplicate` and `float` are refused as invalid input | | |
| 36 | 36 | | the six `samples/accept` fixtures pass | exit 0 with counts 0, 1, 5, 0, 1, 1 as claimed | |
| 37 | -| 80-point grid → 76 circles, promptly | 76 circles, 0.94 s | | |
| 37 | +| 80-point grid → 76 circles, promptly | 76 circles, 0.94 s; by hand, lattice centres give 8·6 interior + 6+6 on the vertical edges + 8+8 on the horizontal ones = 76, and the exact enumeration finds no non-lattice centre | | |
| 38 | 38 | |
| 39 | 39 | `ops_probe.py` in this route is the harness: 40 checks, all matched. Besides the |
| 40 | 40 | table above it covers exit 2 for a nonexistent route folder and for |
| @@ -54,10 +54,10 @@ The proposed runner allows `--time=00:02:00` and `--mem=256M`. At n = 80: | ||
| 54 | 54 | |
| 55 | 55 | | input | count | wall time | peak RSS | |
| 56 | 56 | | --- | --- | --- | --- | |
| 57 | -| 10×8 grid | 76 | 0.94 s | 17.7 MB | | |
| 57 | +| 10×8 grid | 76 | 0.94 s | 17.6 MB | | |
| 58 | 58 | | 80 points on one unit circle | 1 | 1.27 s | 17.7 MB | |
| 59 | -| 80 random small integers | 0 | 1.00 s | — | | |
| 60 | -| 80 random 32-digit integers | 0 | 1.69 s | — | | |
| 59 | +| 80 random small integers | 0 | 1.00 s | 17.4 MB | | |
| 60 | +| 80 random 32-digit integers | 0 | 1.69 s | 17.5 MB | | |
| 61 | 61 | | 80 random 32-digit fractions | 0 | 9.24 s | 17.4 MB | |
| 62 | 62 | |
| 63 | 63 | The last case is ten times the README's 0.9 s figure and is the one a hostile |
+7 −7 routes/rusirui-repro-verifier/compare.py View file
| @@ -73,16 +73,16 @@ def main(): | ||
| 73 | 73 | try: |
| 74 | 74 | rc, out, err = run_counter(counter, config) |
| 75 | 75 | except subprocess.TimeoutExpired: |
| 76 | - fail(f"{case.name}: {counter.parent.name} timed out") | |
| 76 | + fail(f"{case.name}: {counter.parent.name + "/" + counter.stem} timed out") | |
| 77 | 77 | continue |
| 78 | 78 | if rc != 0: |
| 79 | - fail(f"{case.name}: {counter.parent.name} exited {rc}: {err.splitlines()[:1]}") | |
| 79 | + fail(f"{case.name}: {counter.parent.name + "/" + counter.stem} exited {rc}: {err.splitlines()[:1]}") | |
| 80 | 80 | continue |
| 81 | 81 | try: |
| 82 | 82 | data = json.loads(out) |
| 83 | - claims[counter.parent.name] = (data["n"], data["unit_circles"], parse_centres(data["centers"])) | |
| 83 | + claims[counter.parent.name + "/" + counter.stem] = (data["n"], data["unit_circles"], parse_centres(data["centers"])) | |
| 84 | 84 | except (json.JSONDecodeError, KeyError, ValueError) as exc: |
| 85 | - fail(f"{case.name}: {counter.parent.name} printed unusable output ({exc})") | |
| 85 | + fail(f"{case.name}: {counter.parent.name + "/" + counter.stem} printed unusable output ({exc})") | |
| 86 | 86 | |
| 87 | 87 | if artifact is not None: |
| 88 | 88 | try: |
| @@ -127,15 +127,15 @@ def main(): | ||
| 127 | 127 | try: |
| 128 | 128 | rc, out, err = run_counter(counter, config) |
| 129 | 129 | except subprocess.TimeoutExpired: |
| 130 | - fail(f"invalid/{case.name}: {counter.parent.name} timed out") | |
| 130 | + fail(f"invalid/{case.name}: {counter.parent.name + "/" + counter.stem} timed out") | |
| 131 | 131 | continue |
| 132 | - name = counter.parent.name | |
| 132 | + name = counter.parent.name + "/" + counter.stem | |
| 133 | 133 | if rc != 1: |
| 134 | 134 | fail(f"invalid/{case.name}: {name} exited {rc}, expected 1") |
| 135 | 135 | elif out: |
| 136 | 136 | fail(f"invalid/{case.name}: {name} printed to stdout on rejection") |
| 137 | 137 | |
| 138 | - names = ", ".join(c.parent.name for c in args.counters) + (", pr4 verify.unit_centers" if artifact else "") | |
| 138 | + names = ", ".join(c.parent.name + "/" + c.stem for c in args.counters) + (", pr4 verify.unit_centers" if artifact else "") | |
| 139 | 139 | print(f"\n{agreed}/{len(cases)} valid cases agreed across: {names}") |
| 140 | 140 | print(f"{len(invalid)} invalid cases checked for exit 1 and empty stdout") |
| 141 | 141 | if contract: |