Skip to content

Commit 0dc28e2

Browse files
Integrate reviewed research PRs #753, #754, #755, #756, #757, #759, #760, #761, #762, #763, #764, #765, #766, #767, #768, #769, #770, #771, #773, #778
Preserve original author commits and pinned evidence. Scoped review and execution receipts: research/community-efficient100-audit. No selected frontier change.
21 parents e573cf1 + 2b30b63 + 47ebba8 + a1dd9f8 + 4fad623 + e2ec7d7 + 467b9da + 6872990 + 2877587 + e35bd9b + a5d3436 + 983d66f + d8eaa3d + 56bac67 + 96b4b74 + 57d8fbf + e891b2b + 48d027a + 340bedf + dbd9da3 + f015b04 commit 0dc28e2

200 files changed

Lines changed: 52284 additions & 11 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎certificates/affine-vector-screens.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
"scripts/experiments/affine_vector_screens.py": "756778eeca27f490adc7354a122dc50c40375156259991469c47a90949118ea1",
147147
"scripts/experiments/affine_vector_witnesses.json": "672a4318c48f5286ce088d34736c38957b7f662a5f753d440dbc638e7da5f62a",
148148
"scripts/experiments/cube_core_family.py": "e58f1f4067bda2d4838343f42ec2505316f006561f0702e869847d88b85413a8",
149-
"scripts/experiments/single_intersection.py": "08ddae46e5621a5b4c525b504e67ae655abe9b49461d894feaa7abc89a51847d"
149+
"scripts/experiments/single_intersection.py": "6874d41b75590369182ed61e0c6da5b547e035e0e43b50ea2b39e1f3861dca6d"
150150
},
151151
"status": "NINE SPECIFIED CENTRAL MATRICES REJECTED; NO NEW KAPPA",
152152
"upstream_commit": "adc7f1241b42e322a6451854ab7e4b4c146bf78a"

‎certificates/single-intersection.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52854,7 +52854,7 @@
5285452854
"source_sha256": {
5285552855
"docs/research/single-intersection.md": "c3a9be97b38f4ac1e7983842d9f23656671e877ad5144f41894818f4551aa4dd",
5285652856
"scripts/audit_single_intersection.py": "1de7f9a62edc93c624ff2693ae9bb725cf6dc9735ff1caad56f6913aae9448ee",
52857-
"scripts/experiments/single_intersection.py": "08ddae46e5621a5b4c525b504e67ae655abe9b49461d894feaa7abc89a51847d",
52857+
"scripts/experiments/single_intersection.py": "6874d41b75590369182ed61e0c6da5b547e035e0e43b50ea2b39e1f3861dca6d",
5285852858
"scripts/experiments/single_intersection_witnesses.json": "c2308a3d21991f5828b0519b191b470f48b2fbbcaa5af0f7aed3986cc7534185"
5285952859
},
5286052860
"status": "BOUNDED TWO-FIELD RANK SCREEN; NO COMPETITIVE SIDE CIRCUIT OR NEW KAPPA",

‎certificates/stronger-rank-screens.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@
581581
"source_sha256": {
582582
"docs/research/stronger-rank-screens.md": "58e9946054e31df444932833514d6a0f197fdee35334e7511c63af5e52f45ab1",
583583
"scripts/audit_stronger_screens.py": "9678b66043b384f1454181bc2069c6d72685eda6576e284ce799d4b9aeb79860",
584-
"scripts/experiments/balanced_fano.py": "1586fb1db4f40e79e97bae59f47192675663403bbcacbf5f4e0b702edfd22b0a",
584+
"scripts/experiments/balanced_fano.py": "b8ae21d9d4e5c687cda3935e8750c84c80f5bb6d42bcaa2f44c9d907b461fca1",
585585
"scripts/experiments/fano_completion.py": "6cade2a36b910bf7e68a872dc4fd3560837935cffe80f9526cd012a28b247738",
586586
"scripts/finite_bit_contract.py": "3cff26a332cb6056f656b824e3a523fb8937d15206ddcc4118b911ac8df1b2a7",
587587
"scripts/rank_obstructions.py": "af0bb5d7c21409bf0318ec4ec7d5f391163b7ad9564ed9e35de92ada14bca975"
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
# Exact packed Gram replay
2+
3+
This verification tooling contribution targets `minor_rows` in
4+
`scripts/experiments/single_intersection.py`. It changes neither the historical
5+
single-intersection search domain nor the selected multiplication bound.
6+
7+
The matrix entry is `C[S,T] = [S == T or popcount(S & T) == j]` over F2.
8+
Distinct labels make every diagonal entry one. The intersection relation is
9+
symmetric, so one exact popcount determines both off-diagonal entries.
10+
Byte buffers store bit `b` at byte `b // 8`, bit `b % 8`; little-endian integer
11+
conversion preserves the packed-row convention consumed by binary elimination.
12+
The final partial byte has zero padding. Every matrix entry is retained.
13+
14+
The baseline at commit `66849e1475c930fd7732b1a0067ffee7e1e95f60` builds each
15+
row by summing shifted arbitrary-precision integers. Profiling all 5,257 cases
16+
and four committed orbit witnesses took 39.151 seconds, with 30.878 seconds
17+
inside `minor_rows` (profiling overhead included). This motivated switching
18+
from the initial feature-construction hypothesis to matrix packing. No rank,
19+
feature-basis independence, transposition-closure, or input rejection check
20+
is removed. No persistent cache is introduced.
21+
22+
The contribution is by merramil with substantial OpenAI Codex assistance,
23+
under Apache-2.0. It builds on Douglas R. Colkitt's preserved historical
24+
single-intersection audit (`d55bcd62ceb8f322bcf311a5a66e94c3ac7724f0`) and
25+
retains that audit's mathematical scope and attribution. Assignment seed 86
26+
selected verification engineering; the three candidates were gather schedules,
27+
coded-carry controls, and single-intersection replay (86 modulo 3 selects the
28+
last). The initial open-PR snapshot had 582 entries and no title claiming this
29+
engine. The only open issue was #650, so the scope was claimed locally.
30+
31+
## Verification contract
32+
33+
Tests compare complete packed rows with the predecessor's directed formula,
34+
including permutations, negative controls, and byte-boundary sizes. The bounded
35+
benchmark compares every entry of all four committed orbit Gram matrices
36+
and the complete audit output. Only the changed implementation's source hash
37+
may differ from the committed certificate. Existing malformed orbit witnesses
38+
still fail, including with Python optimization enabled.
39+
40+
The full matrices remain quadratic in space and time. This is an implementation
41+
speedup for finite verification, not a new construction, rank theorem, expanded
42+
search, or proof of the conditional multiplication theorem.
43+
44+
## Reproduce and measured result
45+
46+
From the repository root, using standard-library Python 3.11 or newer on
47+
macOS or Linux:
48+
49+
```sh
50+
python3 -B research/single-intersection-packing/benchmark.py --rounds 3 --output /tmp/single-intersection-packing.json
51+
```
52+
53+
Use a fresh output path. Expected final status:
54+
`PASS_IDENTICAL_GRAM_ROWS_AND_COMPLETE_CERTIFICATES`. Timing is descriptive,
55+
not a pass threshold. The benchmark imports the preserved, hash-pinned complete
56+
predecessor module, compares all 100,203,737 Gram entries, then runs three
57+
alternating baseline/packed pairs in fresh, sequential interpreters. Each
58+
worker recomputes the complete 5,257-case certificate, including feature-basis
59+
independence, every adjacent-image closure check, exact Gram ranks, and all
60+
other controls. Its full serialized output must have the original certificate
61+
SHA256 after restoring exactly the implementation-source binding. The matrix
62+
comparison happens outside the timing workers; it does not warm their caches.
63+
64+
[RESULT.json](../../research/single-intersection-packing/RESULT.json) records
65+
every sample and source pin. On CPython 3.13.1 / macOS arm64, median full-audit
66+
time was **13.766 to 6.597 seconds (2.087x faster)**. This trades memory for
67+
speed: median process peak RSS increased from **49,266,688 to 68,845,568 bytes**
68+
(about 40%). In-place buffer conversion avoids explicitly retaining two full
69+
matrix lists, but Python allocator behavior still raises observed peak RSS.
70+
These timings cover this historical finite audit, not supplier cold replay
71+
or integer multiplication runtime.
72+
73+
Run the focused tests with:
74+
75+
```sh
76+
python3 -B -m unittest discover -s tests -p 'test_single_intersection*.py' -v
77+
python3 -B -O -m unittest discover -s tests -p 'test_single_intersection*.py' -v
78+
```
79+
80+
The 16 tests include changed-source, changed-rank, changed-screen-row,
81+
changed-other-source-binding, and wrong-matrix-entry rejection controls.
82+
Only two generated certificate bindings change: `single-intersection.json`
83+
and `affine-vector-screens.json`. Tests reconstruct and hash each complete
84+
predecessor certificate after restoring that one binding. No selected-frontier
85+
artifact or `upstream/` source changes.
86+
87+
The complete `make verify-tests` run passed **557 tests in 86 isolated
88+
interpreters and 20 patch-application checks**. Both affected certificate
89+
producers, selected-record integrity, and `git diff --check` passed.
90+
[VALIDATION.json](../../research/single-intersection-packing/VALIDATION.json)
91+
records the exact commands and scope. The broad `make verify-research` target
92+
would regenerate unrelated certificates, so only its two affected producers
93+
were rerun. Full `make verify`, selected-supplier cold replay, Lean builds, and
94+
remote Linux CI are outside this local validation.
95+
96+
The final pre-submission overlap refresh covered 594 open PRs through #775;
97+
none claimed this single-intersection packing change.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"track": "verification engineering",
3+
"assignment_seed": 91,
4+
"seed_source": "Python secrets.randbelow(100), using operating-system randomness",
5+
"base_commit": "66849e1475c930fd7732b1a0067ffee7e1e95f60",
6+
"started_utc": "2026-10-13T04:50:54Z",
7+
"claimed_utc": "2026-10-13T04:54:00Z",
8+
"expected_finish_utc": "2026-10-13T05:25:00Z",
9+
"time_budget": "About 35 minutes; reserve the final quarter for verification and handoff.",
10+
"coordination": {
11+
"pinned_issue": null,
12+
"checked_via": "GitHub GraphQL repository.pinnedIssues and open issue inventory",
13+
"open_pull_requests_inspected": 543,
14+
"latest_pr_at_initial_snapshot": 723,
15+
"claim_location": "Local: no pinned sprint coordination issue exists."
16+
},
17+
"candidates": [
18+
{
19+
"object": "Selected source-inventory hashing",
20+
"decision": "Not chosen: adjacent to PR721's streamed archive validation."
21+
},
22+
{
23+
"object": "Exact logarithm/exponential moment arithmetic",
24+
"decision": "Not chosen: overlapping work in PR667 and PR672."
25+
},
26+
{
27+
"object": "Historical balanced-Fano meet-in-the-middle replay",
28+
"decision": "Chosen: distinct from pending frame algebra, Gram-prefix, Clifford, R420 geometry, and streaming work."
29+
}
30+
],
31+
"object": "scripts/experiments/balanced_fano.py: existence() on the fixed 10-role, 14-gate model",
32+
"hypothesis": "Propagating packed binary columns avoids the quadratic row-to-column transpose at every leaf while preserving the ordered exhaustive streams and recovered witnesses.",
33+
"method": "Exact Python integer bit operations; same GL(2,F2) choices, enumeration order, matching keys, hashes, budgets and witness checks. Seed 91 also fixes the differential corpus and benchmark order.",
34+
"coverage": "The existing 279936 prefixes and 279936 inverse suffixes, plus independent dense small-model controls. No extension or reopening of the closed search.",
35+
"deliverable": "Focused checker optimization, source-pinned sequential before/after benchmark, exact equality and failure controls, one regenerated historical certificate if its source hash changes.",
36+
"status": "completed",
37+
"completed_utc": "2026-10-13T05:07:13.379148+00:00",
38+
"final_overlap_check": {
39+
"open_pr_count": 567,
40+
"latest_pr_number": 748,
41+
"finding": "No balanced-Fano or packed-column replay contribution found. New tooling PR727 (owner footprints) and PR736 (cyclic-inverse row updates) have distinct objects; no pending code used."
42+
},
43+
"result": {
44+
"classification": "tooling improvement; no new kappa",
45+
"wall_speedup": 2.9108981566293375,
46+
"peak_rss_reduction_fraction": 0.30299667036625966,
47+
"validation": "555 tests in 85 isolated modules plus exact full-stream comparison and pinned A/B evidence",
48+
"url": "https://github.com/VictorLiwentao/integer-mult-bounds/tree/tooling%2Fseed91-balanced-fano-columns/research/balanced-fano-performance"
49+
}
50+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Attribution and scope
2+
3+
Prepared by **Wentao Li** ([GitHub: VictorLiwentao](https://github.com/VictorLiwentao),
4+
[X: @Is__Victor](https://x.com/Is__Victor)) with substantial **OpenAI Codex**
5+
assistance in task selection, implementation, proof explanation, tests,
6+
benchmarks and writing. No independent human review is claimed.
7+
8+
Douglas R. Colkitt authored the retained historical balanced-Fano investigation,
9+
its exact meet-in-the-middle checker, negative certificate and independent
10+
dense controls. The preserved research documentation discloses AI assistance.
11+
`baseline.py` is an unchanged copy of his `scripts/experiments/balanced_fano.py`
12+
from base `66849e1475c930fd7732b1a0067ffee7e1e95f60`, originating at
13+
`d55bcd62ceb8f322bcf311a5a66e94c3ac7724f0`. The graph, local operations, matching
14+
criterion, search domain, stream hashes and negative finding are predecessor
15+
work; this contribution claims the packed-column implementation and its
16+
performance/equivalence evidence only.
17+
18+
See [the original stronger-screen note](../../docs/research/stronger-rank-screens.md)
19+
and [Fano completion audit](../../docs/research/fano-completion-audit.md) for the
20+
mathematical context and underlying literature. No new literature theorem is
21+
claimed or independently verified here.
22+
23+
The selected conditional certificate remains the separately reviewed #626
24+
construction with eumemic's #543 bit supplier, credited to Chafik Boukhalfa,
25+
Jeremy Kothe and the full predecessor chain in the maintainer review. Pending
26+
verification-engineering PRs were consulted for overlap; none is a code or
27+
mathematical dependency of this change.
28+
29+
All added and modified code and evidence use the repository's Apache-2.0
30+
license. The original root license and contributor notices remain in place.
Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
# Faster exact balanced-Fano replay
2+
3+
This tooling change accelerates the existing exhaustive check of the historical
4+
10-role, 14-gate balanced-Fano model. It preserves the negative result and its
5+
complete ordered enumeration. It does not extend the search domain or claim a
6+
new κ. The selected conditional result remains #626 with #543, exactly
7+
`51110230636731/31250000000000000`, at the base commit below.
8+
9+
The production change is confined to
10+
[`balanced_fano.py`](../../scripts/experiments/balanced_fano.py). Each local
11+
binary operation now acts on a packed column representation, avoiding a fresh
12+
10-by-10 transpose at every leaf. The matching table retains each first prefix
13+
word; its matrix is reconstructed only when recovering a witness.
14+
15+
## Reproduce
16+
17+
From the repository root, using Python 3.11 or later and no third-party packages:
18+
19+
```sh
20+
python3 -B research/balanced-fano-performance/benchmark.py --rounds 5
21+
```
22+
23+
Expected: `PASS_IDENTICAL_COMPLETE_RESULTS`, with **279,936 prefixes**,
24+
**258,156 distinct prefix keys**, **279,936 inverse suffixes**, no witness,
25+
and these unchanged stream hashes:
26+
27+
```text
28+
prefix b34379c5feeb67216fb7531294f13da5f67ce4a22f92b94ff8ea2b26f3aa21ec
29+
suffix a19c1f14c463451e7bdd0900a2aeae701d98bcee790e9145d70e05c316555c38
30+
```
31+
32+
Each sample runs in a fresh process. The two implementations run sequentially
33+
in alternating order, fixed by assignment seed 91, on identical inputs. Every
34+
sample must match **every result field** in the original certificate, including
35+
counts, both hashes, witness and scope. The benchmark fails on a changed source
36+
pin, unequal result, or subprocess failure. It has no noisy timing threshold.
37+
The benchmark's RSS measurement supports macOS and Linux; the checker itself
38+
uses portable Python integers. Use `--output /path/to/new-result.json` to retain
39+
a new measurement without overwriting the shipped receipt.
40+
41+
[`RESULT.json`](RESULT.json) records all local samples, medians, environment and
42+
exact implementation hashes. The measurement is for this fixed search, not the
43+
complete research suite, selected supplier replay, or multiplication runtime.
44+
OS caches were not flushed and no CPU affinity was imposed.
45+
46+
The contributor name was corrected after measurement. `RESULT.json` records
47+
both the measured and updated hashes for the benchmark's attribution-only
48+
module-docstring edit. Its executable AST was checked unchanged after removing
49+
that docstring; all timing samples and mathematical results are retained.
50+
51+
On CPython 3.13.2 / macOS arm64, five sequential pairs give median search time
52+
**5.969 → 2.051 seconds (2.91×)** and median peak process RSS
53+
**162,381,824 → 113,180,672 bytes (30.3% lower)**. These are measured local
54+
results, not guaranteed performance on other environments.
55+
56+
Additional checks:
57+
58+
```sh
59+
python3 -B -m unittest discover -s tests -p 'test_balanced_fano_performance.py' -v
60+
python3 -B -m unittest discover -s tests -p 'test_stronger_screens.py' -v
61+
python3 -B -S scripts/audit_stronger_screens.py
62+
make selected-record-check
63+
```
64+
65+
The audit regenerates only `certificates/stronger-rank-screens.json`. Its sole
66+
change is the SHA256 binding for the optimized source. A test restores that one
67+
old binding and requires the entire serialized certificate to match its
68+
original SHA256, so other certificate differences cannot pass unnoticed.
69+
70+
Local validation also passed `PYTHONDONTWRITEBYTECODE=1 make verify-tests`:
71+
555 tests in 85 isolated modules and the existing patch-application checks.
72+
The six added tests also pass under `python3 -B -O`. See
73+
[`VALIDATION.json`](VALIDATION.json) for the precise coverage. Full `make verify`
74+
and the selected supplier cold replay were not rerun for this historical-checker
75+
change; unrelated artifacts were not regenerated. Remote CI is separate from
76+
this local evidence.
77+
78+
## Why the enumeration is identical
79+
80+
For a binary matrix `M` with `W` rows, encode its columns as
81+
82+
```text
83+
S = sum(M[i,j] * 2**(W*j+i) for i,j in range(W)).
84+
U = sum(2**(W*j) for j in range(W)).
85+
```
86+
87+
The masks `(S >> a) & U` and `(S >> b) & U` extract rows `a` and `b`
88+
into the same column-start positions. XOR therefore adds those two rows over
89+
F2 simultaneously in every column. Clearing only `U << a` and `U << b` and
90+
placing the two selected linear combinations in those positions gives exactly
91+
the old local row operation. The positions are disjoint because `a != b` and
92+
both are in `[0,W)`. Python integers have arbitrary precision; this uses no
93+
fixed-width truncation or approximate arithmetic.
94+
95+
The identity uses bits `i*(W+1)`. Induction on the unchanged depth-first GL2
96+
choice order shows that each leaf has the same word and matrix as before.
97+
Reading each W-bit block yields the old `columns(rows)` tuple. Thus prescribed
98+
columns, sorted free columns, packed keys, first-prefix selection, stream
99+
order and both hashes remain identical. There is no pruning, orbit reduction,
100+
sampling, memoized result reuse, or changed stopping rule.
101+
102+
When keys match, replaying the retained first prefix word reconstructs its
103+
original columns exactly. The suffix inversion and full recovered-permutation
104+
checks are unchanged. Half-enumeration budgets and invalid-terminal/port
105+
rejections run before enumeration as before.
106+
107+
The existing meet-in-the-middle argument still covers all `6**14 = 78,364,164,096`
108+
complete local assignments via the two `6**7` streams. The absence of a match
109+
excludes only this fixed balanced topology, with its three prescribed
110+
terminals and free permutation of the other seven roles. It does not exclude
111+
other Fano completions, larger gates, or different terminal obligations.
112+
113+
## Evidence and provenance
114+
115+
- Exact base: `66849e1475c930fd7732b1a0067ffee7e1e95f60`.
116+
- The reference is the byte-for-byte original `balanced_fano.py`, last changed
117+
by `d55bcd62ceb8f322bcf311a5a66e94c3ac7724f0`; its SHA256 and shared dependencies
118+
are pinned in [`SOURCE.json`](SOURCE.json). No pending PR code is required.
119+
- Tests compare every `(columns, word)` pair in both full historical streams,
120+
not only their final hashes. Independent dense matrix controls cover widths
121+
2, 3, 5, 9, 16, 33 and 65, including integer limb and byte boundaries.
122+
- Seeded small-model comparisons cover complete result dictionaries, positive
123+
witnesses, first matching suffixes, empty words, repeated/reversed ports,
124+
fixed/free terminals and negative cases. Existing tests independently exhaust
125+
9,294 complete dense assignments.
126+
- A missing-leaf mutation still reports no completion, but changes both counts
127+
and hashes and is rejected by the receipt comparison. Invalid inputs and an
128+
exhausted half budget retain the original exceptions; budget exhaustion is
129+
never reported as a negative mathematical result.
130+
131+
[`CLAIM.json`](CLAIM.json) records assignment seed 91, candidate selection and
132+
overlap review. No pinned sprint coordination issue existed. Nearby PRs #367,
133+
#452, #662, #667, #672, #707, #709 and #721 address other algebra, producer,
134+
geometry, arithmetic or archive checks. This contribution replays the already
135+
closed Fano model more efficiently; it is not a renewed search.
136+
137+
No selected construction, `upstream/`, theorem claim or inherited compiler,
138+
hosting, precision, tape, or analytic assumption changes. These are exact
139+
finite checks and an implementation equivalence argument, not a formal proof
140+
of the full multiplication theorem. Attribution and AI disclosure are in
141+
[`NOTICE.md`](NOTICE.md).

0 commit comments

Comments
 (0)