diff --git a/CLAIMS.md b/CLAIMS.md index 16f5d945..8b64d921 100644 --- a/CLAIMS.md +++ b/CLAIMS.md @@ -87,3 +87,4 @@ tracked file, which both scripts resolve (they check that it exists, not what it | `inkling-layer0-mlp-fidelity-228` | Inkling 2 Mini layer-0 routed MLP under main's integer rules, real NVFP4 weights, open loop vs float64: FAIL vs prereg on both bars. Layer 0's top-8 sigmoid-routed MoE block of thinkingmachines/Inkling-2-Mini (ed40e7da) computed with main's integer rules (12-bit cells, 13-bit per-tensor weights, docs/model.md router and sigmoid table, two new 2^-8-step tables for the soft-capped SwiGLU, a rounded-division routing weight at 2^13) against our own numpy float64 version of the same block, on the 10 frozen prompt texts of 20261109-8 (2,426 tokens), exact float64 input, open loop. B1 (Qwen A2 shape, per prompt): rel_y median 0.0218, max 0.0304 vs median <= 0.01, max <= 0.05: FAIL. B2: the top-8 expert set differs on 91 of 2,426 tokens (3.75%) vs <= 1%: FAIL; each flip changes exactly one expert. B3 range: IN-BOUND, 0 events at every site. With the float set and float weights the integer expert arithmetic alone gives pooled rel_y 0.0079 (descriptive). Deterministic, two processes bit-identical. Measured, unreplicated. Float reference is our reading of open transformers PR 51050 (6173a2f6), not checked against the publisher's runtime. One block, no logits, no proof | negative, unreplicated | unreplicated | [experiments/20261121-228-inkling-layer0-fidelity/RESULTS.md](experiments/20261121-228-inkling-layer0-fidelity/RESULTS.md) | #230 | | `qwen-silu-step-vs-clip-221` | Qwen3.8-27B abliterated layers 31 to 63: SiLU table step vs domain clip, one change at a time (M31-C clip removed, M31-T step removed), issue #221: Registered diagnostic, valid (G1 REF top-1 = PR 173: True; G2 M31-C#2 bit-equal: True; G3 no guard error: True). From PR 167's layer-30 REF residual, abliterated layers 31 to 63, 1461 positions of 10 frozen prompts, float64 heads/attention/norms/lm_head; one change at a time to PR 138's SiLU lookup. M31-C: top-1 1459 of 1461 (99.86%), KL median 2.06e-06, max 0.00215 nats; M31-T: top-1 1424 of 1461 (97.47%), KL median 0.00146, max 1.93 nats. H-C (removing only the clip halves PR 202's M31 KL median 1.466e-3): ratio 0.001408, HOLDS. H-T (removing only the step halves it): ratio 0.9948, DOES NOT HOLD. Registered outcome: H-C only: the clip carries the token error; the step alone does not halve it. Diagnostic arms, not operators; chooses no repair. No proof | measured, unreplicated | unreplicated | [experiments/20261118-221-silu-step-clip/RESULTS.md](experiments/20261118-221-silu-step-clip/RESULTS.md), [experiments/20261118-221-silu-step-clip/runs/summary.json](experiments/20261118-221-silu-step-clip/runs/summary.json), [experiments/20261118-221-silu-step-clip/runs/e2e-abl.json](experiments/20261118-221-silu-step-clip/runs/e2e-abl.json), [experiments/20261118-221-silu-step-clip/ENV.json](experiments/20261118-221-silu-step-clip/ENV.json), [experiments/20261118-221-silu-step-clip/PREREG.md](experiments/20261118-221-silu-step-clip/PREREG.md) | #224 | | `qwen-weight-cell-classes-239` | Qwen3.8-27B weight-cell classes (DESIGN 6.2) on all 48 DeltaNet layers: conv taps, gains, cA, dt_bias, honest conversion, both checkpoints (issue #239): PASS vs prereg. Every honestly converted conv tap, gain x sqrt(128), cA and dt_bias integer (DESIGN 5.0, merged exponent_of, one exponent per tensor per layer) on all 48 DeltaNet layers lies in its DESIGN 6.2 class: 0 out of class of 1,976,832 integers per checkpoint; every exponent in 1..24 (e_conv 12-13, e_gain 7-8, e_A 4-13). For taps, gains and cA (1,974,528 of the 1,976,832 integers per checkpoint) being in class follows from the exponent rule, so an honest conversion cannot fail there; what could have failed is the exponent admission (144 exponents per checkpoint, 288 over both, each in 1..24) and the dt_bias class (2,304 values per checkpoint). The four tensors have equal SHA-256 per tensor in the stock and abliterated checkpoints (192 of 192, byte-identical), so one answer covers both. Descriptive: dt_bias alone puts the softplus input outside v1's [-8, 8) on 17 of 2,304 heads (16 at or above 8: 15 on layer 0, 1 on layer 58; 1 below -8 on layer 1); offset range -8.94 to 19.25. cA keeps as few as 2 significant bits (357 of 2,304 heads at 5 bits or fewer; the smallest head of a layer keeps fewer than 5 bits on 18 of 48 layers, 2 bits on layers 12, 28 and 44). Integer counts only, no proof, no matrix weights, no activations | measured, unreplicated | unreplicated | [experiments/20261129-239-qwen-weight-cell-classes/RESULTS.md](experiments/20261129-239-qwen-weight-cell-classes/RESULTS.md), [experiments/20261129-239-qwen-weight-cell-classes/PREREG.md](experiments/20261129-239-qwen-weight-cell-classes/PREREG.md), [experiments/20261129-239-qwen-weight-cell-classes/ENV.json](experiments/20261129-239-qwen-weight-cell-classes/ENV.json), [experiments/20261129-239-qwen-weight-cell-classes/runs/summary.json](experiments/20261129-239-qwen-weight-cell-classes/runs/summary.json), [experiments/20261129-239-qwen-weight-cell-classes/runs/ckpt-compare.json](experiments/20261129-239-qwen-weight-cell-classes/runs/ckpt-compare.json) | #243 | +| `qwen-m3a1w-wf-head-table` | Qwen M3a-1 weight table in WF units: main's WF range proof run on one DeltaNet head's real weights, no existing file changed (issue #237): Measured, unreplicated, CPU research harness, hand-made unpriced plans (no security level). The 3,288,706 integer weights of V head 0, layer 0 of the pinned stock Qwen3.8-27B (PR 231's table, SHA-256 checked) are stored as signed-byte digits in a 1,192 x 8,192 matrix: a four-digit unit for the 1,666 trace-read weights and a two-digit unit for the 3,287,040 in_proj and out_proj weights. main's WF range proof (blocks/iop/wf.h with the unit rule of blocks/frame/wf_units.h) was instantiated for it with no change to any existing file: no interface is missing. An accepted proof is meant to show every cell in -128..127 and every two-digit number in -4,096..4,095. 5 of 5 honest proofs verified. Hostile, 5 tables: the honest prover code served none (5 of 5); a complete proof that speaks of the honest matrix against the hostile table's key was rejected by the verifier (5 of 5, at LIN's proximity test: this tests the tie of WF's claims to the table, not the lookup); with out-of-range keys and the honest multiplicities the prover program stopped at its own check (5 of 5, no proof, not a verifier rejection). 4 of 4 completeness cases accepted, including the control that a four-digit number of 2,139,062,143 is accepted. NOT established: that the verifier rejects a false range lookup (no run gives it one; that needs a forging prover, not written); any soundness level; any range on the 1,666 trace-read weights beyond four bytes each; the PR 231 tie and the in_proj composition on this layout (restated in the PREREG, not run); any product; hiding; that the table is the advertised checkpoint; accuracy; performance. The completeness batch was interrupted from outside after its first run and finished 25 minutes later by a continuation instance (PREREG amendment A2) | measured, unreplicated | unreplicated | [experiments/20261129-237-qwen-wf-head-table/RESULTS.md](experiments/20261129-237-qwen-wf-head-table/RESULTS.md), [experiments/20261129-237-qwen-wf-head-table/PREREG.md](experiments/20261129-237-qwen-wf-head-table/PREREG.md), [experiments/20261129-237-qwen-wf-head-table/ENV.json](experiments/20261129-237-qwen-wf-head-table/ENV.json), [experiments/20261129-237-qwen-wf-head-table/runs/summary.json](experiments/20261129-237-qwen-wf-head-table/runs/summary.json), [experiments/20261129-237-qwen-wf-head-table/continuation-complete.json](experiments/20261129-237-qwen-wf-head-table/continuation-complete.json), [research/operators/qwen_m3a1w/README.md](research/operators/qwen_m3a1w/README.md) | #245 | diff --git a/README.md b/README.md index 1d7affcc..4d33f522 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,7 @@ Every number below comes from a file on `main` (the one exception, a reviewer fi | Inkling 2 Mini layer-0 routed MLP under main's integer rules, real NVFP4 weights, open loop vs float64 | negative, unreplicated | FAIL vs prereg on both bars. Layer 0's top-8 sigmoid-routed MoE block of thinkingmachines/Inkling-2-Mini (ed40e7da) computed with main's integer rules (12-bit cells, 13-bit per-tensor weights, docs/model.md router and sigmoid table, two new 2^-8-step tables for the soft-capped SwiGLU, a rounded-division routing weight at 2^13) against our own numpy float64 version of the same block, on the 10 frozen prompt texts of 20261109-8 (2,426 tokens), exact float64 input, open loop. B1 (Qwen A2 shape, per prompt): rel_y median 0.0218, max 0.0304 vs median <= 0.01, max <= 0.05: FAIL. B2: the top-8 expert set differs on 91 of 2,426 tokens (3.75%) vs <= 1%: FAIL; each flip changes exactly one expert. B3 range: IN-BOUND, 0 events at every site. With the float set and float weights the integer expert arithmetic alone gives pooled rel_y 0.0079 (descriptive). Deterministic, two processes bit-identical. Measured, unreplicated. Float reference is our reading of open transformers PR 51050 (6173a2f6), not checked against the publisher's runtime. One block, no logits, no proof | CPU only, numpy and tokenizers only (no torch, no transformers); weights by HTTP range reads of layer 0 and 317 embedding rows (630 MB of 19.5 GB); NVFP4 decode per the PR's dequantise op, checked D1-D4 (max \|w\| / amax = 1.000 every expert); gate/up order from the PR's Interleave + chunk; input exponent fitted in-sample (Em = 6); attention sub-block float64 only; one layer, open loop; shared loaded host | [experiments/20261121-228-inkling-layer0-fidelity/RESULTS.md](experiments/20261121-228-inkling-layer0-fidelity/RESULTS.md) | | Qwen3.8-27B abliterated layers 31 to 63: SiLU table step vs domain clip, one change at a time (M31-C clip removed, M31-T step removed), issue #221 | measured, unreplicated | Registered diagnostic, valid (G1 REF top-1 = PR 173: True; G2 M31-C#2 bit-equal: True; G3 no guard error: True). From PR 167's layer-30 REF residual, abliterated layers 31 to 63, 1461 positions of 10 frozen prompts, float64 heads/attention/norms/lm_head; one change at a time to PR 138's SiLU lookup. M31-C: top-1 1459 of 1461 (99.86%), KL median 2.06e-06, max 0.00215 nats; M31-T: top-1 1424 of 1461 (97.47%), KL median 0.00146, max 1.93 nats. H-C (removing only the clip halves PR 202's M31 KL median 1.466e-3): ratio 0.001408, HOLDS. H-T (removing only the step halves it): ratio 0.9948, DOES NOT HOLD. Registered outcome: H-C only: the clip carries the token error; the step alone does not halve it. Diagnostic arms, not operators; chooses no repair. No proof | Preregistered (experiments/20261118-221-silu-step-clip/PREREG.md); start state PR 167's ckpt.npz sha256 22dff8b92107511838e50e4b26d6e91a2b55d09064711c638042c4c18fb80009, next_layer 31, checked before registration and re-hashed in the job, REF entries only, layers 0 to 30 not regenerated; abliterated layers 31 to 63, final norm, lm_head; PR 124's frozen prompts teacher-forced; PR 202 harness, PR 138 mlp_int stages, PR 124 logits_metrics, PR 88 forward reused; M31 and M31-S not rerun (PR 202 values cited); CPU, taskset 8 to 13, one deterministic run with an in-run duplicate path; shared loaded host; no GPU, no serving route, no proof | [experiments/20261118-221-silu-step-clip/RESULTS.md](experiments/20261118-221-silu-step-clip/RESULTS.md) | | Qwen3.8-27B weight-cell classes (DESIGN 6.2) on all 48 DeltaNet layers: conv taps, gains, cA, dt_bias, honest conversion, both checkpoints (issue #239) | measured, unreplicated | PASS vs prereg. Every honestly converted conv tap, gain x sqrt(128), cA and dt_bias integer (DESIGN 5.0, merged exponent_of, one exponent per tensor per layer) on all 48 DeltaNet layers lies in its DESIGN 6.2 class: 0 out of class of 1,976,832 integers per checkpoint; every exponent in 1..24 (e_conv 12-13, e_gain 7-8, e_A 4-13). For taps, gains and cA (1,974,528 of the 1,976,832 integers per checkpoint) being in class follows from the exponent rule, so an honest conversion cannot fail there; what could have failed is the exponent admission (144 exponents per checkpoint, 288 over both, each in 1..24) and the dt_bias class (2,304 values per checkpoint). The four tensors have equal SHA-256 per tensor in the stock and abliterated checkpoints (192 of 192, byte-identical), so one answer covers both. Descriptive: dt_bias alone puts the softplus input outside v1's [-8, 8) on 17 of 2,304 heads (16 at or above 8: 15 on layer 0, 1 on layer 58; 1 below -8 on layer 1); offset range -8.94 to 19.25. cA keeps as few as 2 significant bits (357 of 2,304 heads at 5 bits or fewer; the smallest head of a layer keeps fewer than 5 bits on 18 of 48 layers, 2 bits on layers 12, 28 and 44). Integer counts only, no proof, no matrix weights, no activations | Preregistered (experiments/20261129-239-qwen-weight-cell-classes/PREREG.md, amendments A1, A2 before the runs they cover by commit order; A3 corrects the times typed into them); 192 tensors per checkpoint by HTTP range with the merged fetch code, each SHA-256 equal to the merged stream manifest; unit test of every class edge (31 cases, synthetic); five identical analysis runs (deterministic); CPU, cores 0-1 of a shared loaded host | [experiments/20261129-239-qwen-weight-cell-classes/RESULTS.md](experiments/20261129-239-qwen-weight-cell-classes/RESULTS.md) | +| Qwen M3a-1 weight table in WF units: main's WF range proof run on one DeltaNet head's real weights, no existing file changed (issue #237) | measured, unreplicated | Measured, unreplicated, CPU research harness, hand-made unpriced plans (no security level). The 3,288,706 integer weights of V head 0, layer 0 of the pinned stock Qwen3.8-27B (PR 231's table, SHA-256 checked) are stored as signed-byte digits in a 1,192 x 8,192 matrix: a four-digit unit for the 1,666 trace-read weights and a two-digit unit for the 3,287,040 in_proj and out_proj weights. main's WF range proof (blocks/iop/wf.h with the unit rule of blocks/frame/wf_units.h) was instantiated for it with no change to any existing file: no interface is missing. An accepted proof is meant to show every cell in -128..127 and every two-digit number in -4,096..4,095. 5 of 5 honest proofs verified. Hostile, 5 tables: the honest prover code served none (5 of 5); a complete proof that speaks of the honest matrix against the hostile table's key was rejected by the verifier (5 of 5, at LIN's proximity test: this tests the tie of WF's claims to the table, not the lookup); with out-of-range keys and the honest multiplicities the prover program stopped at its own check (5 of 5, no proof, not a verifier rejection). 4 of 4 completeness cases accepted, including the control that a four-digit number of 2,139,062,143 is accepted. NOT established: that the verifier rejects a false range lookup (no run gives it one; that needs a forging prover, not written); any soundness level; any range on the 1,666 trace-read weights beyond four bytes each; the PR 231 tie and the in_proj composition on this layout (restated in the PREREG, not run); any product; hiding; that the table is the advertised checkpoint; accuracy; performance. The completeness batch was interrupted from outside after its first run and finished 25 minutes later by a continuation instance (PREREG amendment A2) | CPU only, cores 6-7 of a shared loaded host, single-threaded runs through the heavy-job gate, g++ 13.3.0 -O2, one binary for all 25 runs (SHA-256 in ENV.json, reproduced from the committed source); PREREG first and alone, amendment A1 (sizes, hostile form c) before any registered run, amendment A2 (interruption) before the last three runs; debug only on a synthetic fixture (numpy seed 9101); plans hand-made (test-only macros), every round priced NOTHING; branch not brought up to a later main | [experiments/20261129-237-qwen-wf-head-table/RESULTS.md](experiments/20261129-237-qwen-wf-head-table/RESULTS.md) | _Last regenerated from `research/results.yaml` on 2026-11-29 (UTC), against main `57460851`._ diff --git a/experiments/20261129-237-qwen-wf-head-table/ENV.json b/experiments/20261129-237-qwen-wf-head-table/ENV.json new file mode 100644 index 00000000..e10ef6ef --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/ENV.json @@ -0,0 +1,59 @@ +{ + "experiment": "20261129-237-qwen-wf-head-table", + "commits": { + "base_main": "02d62eb63760fcaf68f47099c70f42aba04a7707", + "prereg": "6670b7aeadf0cca945fe19f9c4cfe519a21017df", + "code_and_amendment_A1_before_runs": "c6a708df3cd0bbda75edb650cd4306063da075b3", + "amendment_A2_and_continuation_runner_before_C2_C3_C4": "6e8955987a77f9fa31fa5b4641e40a544207b675", + "runs": "528097bb6148cc1ffc60f4b1dd62c2de1e015e5d", + "note": "every registered run used the binary built from c6a708df; the branch was not brought up to a later main" + }, + "weights": { + "repo": "Qwen/Qwen3.8-27B", + "rev": "37561816e66b5b9153b1b64c10968c18c1e6f4a0", + "input": "M.i32 of research/operators/qwen_m3a1/prepare.py real (PR 231's lane), reused read only; nothing fetched in this step", + "M_i32_sha256": "ac11d7b74075bcd804bdacd8f5a6d871ac86a4f21d798483f755b3661d7c050d", + "sha256_checked_against": "experiments/20261121-229-qwen-m3a1-weight-side/runs/weights-head0.json (M_i32_sha256), by run_registered.py before every batch" + }, + "toolchain": { + "cxx": "g++ 13.3.0 (Ubuntu 13.3.0-6ubuntu2~24.04.1)", + "flags": "-std=c++17 -O2 -Wall -Wextra -fno-ipa-modref -DBLK_FIELD=2 -DBLK_HASH=1 -I blocks", + "python": "3.12.3", + "binary_sha256": "72701131f204de14433a9af84269948a62d1d0028e388b5d0054fb75ccb89142", + "binary_note": "one binary for all 25 registered runs, built once from research/operators/qwen_m3a1w/qm3a1w.cpp at c6a708df before the first registered run; its SHA-256 was first recorded after the interruption, when the committed source was compiled again to a separate path with the same command and gave the same SHA-256", + "source_sha256": { + "research/operators/qwen_m3a1w/qm3a1w.cpp": "3920e01ece41fb4918f127b6a5487d150cd1b661ba7bf73c59c03684db5ca220", + "research/operators/qwen_m3a1w/run_registered.py": "4c07368eb23bccbe2d88b896bfa693d76c590dee29ab47aa14295f10f822932b", + "research/operators/qwen_m3a1w/run_continuation.py": "9045eb68c1a618124eb2778b6979e6d36f7568d8e2f08890b45a2c6813222672" + } + }, + "hardware": { + "kind": "cpu-epyc-rome-kvm-16", + "cores_used": "6-7 (taskset); each run is single-threaded", + "shared": "shared, loaded host; other lanes ran beside this one, and cores 6-7 were not exclusive; runs went through the host's heavy-job gate" + }, + "seeds": { + "honest_seeds": [ + 1, + 2, + 3, + 4, + 5 + ], + "hostile_and_completeness_seed": 1, + "commit_coins": "TestCoins(77 + seed)", + "session_randomness": "40 + seed", + "debug_fixture_numpy_seed": 9101, + "note": "test coin generators, deterministic per seed; not for secrets" + }, + "setting": { + "plans": "hand-made (BLK_PLANS_BY_HAND_FOR_A_TEST, BLK_TESTED_TABLE_FOR_A_TEST), every round priced NOTHING; no security level", + "sizes": "PREREG amendment A1, item 1" + }, + "interruption": { + "what": "the host service that runs the lane was restarted at about 03:09 UTC on 2026-11-29, during the registered batch complete, after C1's file was written", + "runs_before": "shape, honest seeds 1..5, hostile H1..H5 forms a b c, complete C1 (02:57:08 to 03:08:41 UTC)", + "runs_after": "complete C2, C3, C4 (03:33:30 to 03:35:38 UTC), after PREREG amendment A2 was pushed", + "record": "experiments/20261129-237-qwen-wf-head-table/continuation-complete.json" + } +} diff --git a/experiments/20261129-237-qwen-wf-head-table/PREREG.md b/experiments/20261129-237-qwen-wf-head-table/PREREG.md new file mode 100644 index 00000000..07bba228 --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/PREREG.md @@ -0,0 +1,160 @@ +# PREREG: 20261129-237-qwen-wf-head-table + +Issue: #237. Lane: wf229. Date (UTC): 2026-11-29 02:26. Base commit: 02d62eb63760fcaf68f47099c70f42aba04a7707. + +Research harness only, CPU only. No file under `blocks/`, `prover/`, `verifier/` or any existing `research/operators/` directory is changed. Design followed: `experiments/20261109-32-qwen-m3-design/DESIGN.md` section 6 (the bound a matrix weight needs before it is multiplied) and the weight table of `experiments/20261121-229-qwen-m3a1-weight-side` (PR #231). + +## What this step builds (decided from the source before any code) + +Read on main at the base commit: `blocks/iop/wf.h`, `blocks/frame/wf_units.h`, `blocks/frame/wf_frame.h`, `blocks/iop/tests/wf_world.h`, `blocks/iop/tests/lin_world.h`, `blocks/iop/tests/member_world.h`, `research/operators/qwen_m3a1/`. + +### The layout (the new table N) + +PR #231's table is the matrix M, 595 rows of 8,192 columns, one integer per cell: row 0 holds the 1,666 trace-read weights (taps, gains, cA, dt_bias) at columns 0..1,665, rows 1..514 the head's in_proj rows (5,120 entries each), rows 515..594 the head's out_proj columns. This step stores the same integers digit by digit, as signed bytes, in a new matrix N: + +- **Shape:** 1,192 rows of 2^13 = 8,192 columns (k_col = 13, unchanged, so every column address of M is kept). 9,764,864 cells, every one a signed byte. +- **Unit 0, four digits, rows 0..3:** row q holds digit q of M's row 0, so M[0][c] = N[0][c] + 256 N[1][c] + 65,536 N[2][c] + 2^24 N[3][c]. Four digits because dt_bias reaches 78,848 on real layer-0 weights and does not fit two. +- **Unit 1, two digits, rows 4..1,191:** for M's row r, 1 <= r <= 594, the low digit is N's row 3 + r and the high digit is N's row 597 + r, so M[r][c] = N[3 + r][c] + 256 N[597 + r][c]. This is the digit order of `WfUnit` (`wf_units.h`): all digits 0 of the unit's rows of numbers, then all digits 1. +- **Digits:** balanced. low = ((w + 128) mod 256) - 128, then the same rule on (w - low) / 256. With every digit in [-128, 127] the digits of a number are unique. +- **In `wf_units.h` terms:** matrix_rows = ranged_rows = 1,192, units = {first_row 0, rows 4, digits 4}, {first_row 4, rows 1,188, digits 2}. No bytes-only rows. + +The lookups are not written by hand: `wf_shape_of_units(13, 1192, 1192, units)` gives them, as it does for upstream's layout. By its rule: lookup `bytes` (d = 8, offset 128, one digit of weight 1) reads all 1,192 rows, 9,764,864 keys; lookup `weights` (d = 13, offset 4,096, digit weights 1 and 256) reads the 594 rows of numbers of unit 1, 4,866,048 keys. The lookups are cut into parts with `wf_cut` and the planes set with `wf_planes_of` (`wf_frame.h`), at a part size of 2^8 matrix rows (the role of the parameter-file line `ranges-part`). + +### What WF proves on N, and what it does not + +- Proves (for the matrix that the test on the committed table pins): every cell of N is in [-128, 127]; every number of unit 1, N[3 + r][c] + 256 N[597 + r][c], is in [-4,096, 4,095]. That is all 3,287,040 matrix weights (in_proj and out_proj) and also the 1,579,008 padding numbers of the in_proj rows (columns 5,120..8,191). +- Does not prove: any range on the numbers of unit 0 beyond what four bytes give (`wf_units.h`: "Numbers stored in four digits get no range"). A four-digit number is only known to be in [-2,155,905,152, 2,139,062,143]. The 1,666 trace-read weights keep their in-trace class of PR #231 (13 bits, 18 bits for dt_bias), which reaches the table only through the tie restated below. The tie is NOT built in this step, so in this step nothing bounds row 0's numbers more tightly than four bytes. +- Does not prove: that padding cells are zero; that the table is the advertised checkpoint; anything about a product. +- Nothing checks that a key, a field element, is the integer it looks like; that follows from the parameters (bytes and digit weights 1 and 256 cannot wrap in a 64-bit field), as `wf.h` says. + +### How a linear claim on M is restated on N (for composition with the in_proj lane and the PR #231 tie) + +A LIN claim on M is ` = t`: row weights g over M's 595 rows, a column point psi (13 coordinates), a target t. On N the same claim is ` = t` with the same psi and the same t, and + +- g'[3 + r] = g[r] and g'[597 + r] = 256 g[r] for 1 <= r <= 594, +- g'[q] = 256^q g[0] for q = 0..3. + +The two are equal as polynomials in the cells, because each cell of M is that fixed integer combination of cells of N. So a claim on a weight row becomes digit 0 + 256 digit 1 of that row: still one linear claim, same point, same target, twice the row-weight entries (four times for row 0). An indicator of row r becomes two single-row tensors with scalars 1 and 256; a dense block of weights over rows r0..r1 becomes two dense blocks (rows 3 + r0..3 + r1 and 597 + r0..597 + r1, the second scaled by 256), cut into aligned blocks as `member_weights_on_rows` (`blocks/iop/member.h`) does. + +- **The in_proj lane (issue #229 sub-step (c), on the PR #231 layout, not read here):** whatever row weights it puts on M's rows 1..514, the rule above gives its claim on N. Column addresses do not move. +- **The PR #231 tie:** the row-0 indicator becomes g' = (1, 256, 65,536, 2^24) on rows 0..3, at the same psi, with the same v. The trace side (cells, classes, tie row) does not change. With WF's byte range the digits of each number are unique, so the tie then pins all four digit cells of each of row 0's columns, not only their combination. + +This restatement is written down, not run: this step runs no claim of either kind. + +### The proof that is run + +The committer's one-time session of `blocks/iop/tests/wf_world.h`, unchanged: index-mask message, WF (two lookups), BATT over the pending claims WF leaves (one per part), LIN under `TableTest::ONE_TIME` on the committed table of N (`IndexCpu`). `wf_session` and `wf_verify_view` are called as they are, on this lane's own `WfWorld`: the `LinWorld` of `lin_world()` for a 1,192 x 8,192 matrix, WF's parameters built from `wf_shape_of_units` and `wf_cut` with codes and stages sized the way `wf_toy_public` sizes them, and the first chain planned the way `wf_world()` plans it. Plans are hand-made (`BLK_PLANS_BY_HAND_FOR_A_TEST`), every round priced NOTHING: no error bound, no soundness level. + +The verifier holds the table's key (root and record) and the public layout. It reads no weight. + +## Where the issue's text was checked and where it was off + +Checked against main and correct: the 3,288,706 / 1,666 / 3,287,040 counts and the quoted sentence (`experiments/20261121-229-qwen-m3a1-weight-side/RESULTS.md`); DESIGN section 6's sentence on the WF range proof and the 9,866,118 keys; `wf_units.h`'s two-digit rule and range; dt_bias 78,848; the conversion bound 3,584; `runs/weights-head0.json` holds the SHA-256 of M. + +Off or loose: +- "exists only for upstream's Maverick layout": `wf_units.h` is written for any list of units (`wf_shape_of_units`, and templates for any layout type). What is missing on main is a Qwen list of units and a run, not a different block. So the expected result is that no interface is missing; that is the hypothesis, not yet a finding. +- "one table of about 6.6M byte cells": 6,580,744 cells hold weight digits; the matrix has 9,764,864 cells because M's rows are padded to 8,192 columns, and WF ranges all of them. +- "2^23 positions or fewer after encoding": not checked yet. With PR #231's table case (2^7 table rows of 2^6 matrix columns each, rate at most 1/4) the 1,192-row matrix would give a code length of 2^19 and 2^26 stored field elements; this is worked out from `lin_world.h`, not run, and the real figure is reported with the results. The issue's figure is not a constraint this step uses. +- Hostile case 1 ("one in_proj weight 4,096") and case 4 ("a table whose high digit makes 4,096 from in-range bytes") describe the same table if 4,096 is written in balanced digits (0, 16). They are registered below as two different tables. +- The issue asks for "its refusal line and the source line that prints it". An honest prover does not serve a table that is out of range (`wf_prove` returns false), so there is no proof to refuse. Each hostile table is therefore registered in two forms, below. + +## Hypothesis + +`blocks/iop/wf.h` with the unit rule of `blocks/frame/wf_units.h` can be instantiated, with no change to any existing file, for the two-unit layout N of Qwen3.8-27B layer 0, V head 0, such that the committer's one-time session (WF, BATT, LIN) verifies for the real head-0 table in 5 of 5 runs and every registered hostile table is refused. + +## Metric + +Per run: the verifier's verdict and its reason string (or "not served" on the prover side), the table and lookup sizes (rows, parts, planes, keys, pending claims), proof bytes, commit, prove and verify wall time, peak RSS (getrusage). All numbers measured, unreplicated, one shared host, single-threaded. + +## Acceptance threshold + +PASS iff all of: + +1. **Instantiation.** `wf_units_fault`, `wf_fault` and `lin_fault` return null for the layout above, and the diff against the base commit touches no existing file under `blocks/`, `prover/`, `verifier/` or an existing `research/operators/` directory. +2. **Honest.** The real head-0 table: accepted in 5 of 5 runs, seeds 1..5 (commit randomness and prover randomness both follow the seed). +3. **Hostile.** For each table H1..H5, both forms give a refusal: + - form (a), honest prover code on the hostile table: the prover does not serve (`wf_prove` returns false; no proof exists); + - form (b), a complete proof: the hostile table is committed, and the prover computes WF, BATT and LIN's W from the honest matrix (which differs from the committed one only in the changed cells), using `wf_session`'s `spoken_of` argument. The unchanged verifier, holding the hostile table's key, must reject. The reason string and the source line that holds it are recorded. + + Tables (statements about the committed matrix; each changes one number of the real table): + - H1: an in_proj weight is 4,096, written whole in its low cell: (low, high) = (4,096, 0) at M's row 1, column 0. Byte and number both out of range. + - H2: an out_proj weight is -4,097, in balanced digits (-1, -16), at M's row 515, column 0. Both bytes in range; the number is out. + - H3: a byte cell is 128: the low cell of M's row 2, column 0 is set to 128 and the high cell left as it is, so the number 128 + 256 high stays inside [-4,096, 4,095]. Only the byte is out. + - H4: the high digit makes 4,096 from in-range bytes: (low, high) = (0, 16) at M's row 514, column 0 (the in_proj b row). Only the number is out. + - H5: a byte cell of the four-digit unit is 128: digit 2 of the dt_bias cell (row 2 of N, column 1,665). +4. **Completeness.** Each accepted, one run: + - the real table's extremes are inside the honest runs (the minimum and maximum matrix weight of the real head are reported; |w| <= 3,584 by the conversion); + - C1: one in_proj weight set to 4,095 and one out_proj weight set to -4,096 (both ends of the class); + - C2: the dt_bias cell set to 78,848; C3: set to -23,424 (the real layer-0 extremes of PR #231); + - C4 (a control on what WF does not prove, expected ACCEPTED): the dt_bias cell's four digits all 127, the number 2,139,062,143. If it is accepted, that is the registered limit of a four-digit unit, not a finding. + +A hostile form (b) that is ACCEPTED stops the lane: reported as a soundness finding, nothing fixed in this step. + +## Kill criterion + +Hard stop 2026-11-29T05:10:39Z (180 minutes after the lane's first state line). Stop and report a negative, with the exact place, if: the instantiation needs a change to an existing file (name the interface); a hostile form (b) is accepted; no honest proof verifies by the deadline; a process tree passes 10 GB RSS. No statement is weakened after a failure: a case that cannot be run is reported as not run. + +## Runs + +- Honest: n = 5, seeds 1..5, the real table. What varies: the committer's and the prover's private randomness (table tails and pads, so root and record; masks; transcript challenges; proof bytes). The verdict is expected not to vary. +- Hostile: H1..H5, forms (a) and (b), one run each, seed 1. Completeness: C1..C4, one run each, seed 1. +- Each run writes its own file once, with its UTC start time. No registered case runs before its registration is pushed. +- Debug fixture, used for all development and never registered: the synthetic matrix of `research/operators/qwen_m3a1/prepare.py synthetic` (numpy seed 9101, "head 1", no real weights), re-laid the same way. Every kind of run may be exercised on it. Its outputs are not evidence. +- Input: M (int32) of PR #231's lane, read only, its SHA-256 checked against `M_i32_sha256` in the merged `experiments/20261121-229-qwen-m3a1-weight-side/runs/weights-head0.json` before use. No weight is fetched. Committed: hashes, shapes, counts, and the integer ranges named above; never the weights. +- Concrete sizes the source does not fix (LIN's case, codes, draws, mask rows) are settled on the debug fixture and recorded in an amendment before the first registered run. +- Cores 6-7, one thread; runs over about 2 minutes of CPU or 4 GB go through the host's heavy-job gate. + +## Prior art + +Upstream's WF (lookup range proof on a committed matrix, LogUp-style product trees with multiplicities in bits, `blocks/iop/wf.h`) and its unit rule (`blocks/frame/wf_units.h`) are used unchanged; upstream runs them on its own model's layout and on a toy (`blocks/iop/tests/wf_test.cpp`). PR #231 committed this head's weights without a range. zkML systems that commit weights (zkLLM, EZKL, Jolt-based) range-check quantised weights by lookups as part of the circuit; nothing new is claimed about the technique. New here: only the Qwen head's list of units, the restatement rule for claims between the two layouts, and one run of the unchanged blocks at this size. + +## Not in this step + +No product of any kind: no in_proj, out_proj, conv, gate, norm or recurrence claim, and no claim of the in_proj lane is run or read. The PR #231 tie is restated in words and not run, so the trace-read weights' class is not connected to N here and row 0's numbers have only their byte range. No other head, layer or checkpoint. No soundness level: the plans are hand-made and unpriced, the hostile cases are single proofs by the two prover forms above, not an adversary. No hiding claim. No statement that the committed table is the advertised checkpoint. No accuracy claim. No performance claim: times are single measurements on a shared host. + +## Amendments + +### A1 (2026-11-29 02:55 UTC, after code and synthetic debug, BEFORE any registered run) + +No registered run has been made. Everything below was settled on the synthetic debug fixture only (numpy seed 9101, "head 1"). No threshold, table or completeness case of the registration changes. One thing is added (hostile form (c)) and one limit of the registered hostile forms is stated, because the debug runs showed it. + +**1. Concrete sizes (not fixed by the registration).** +- LIN's case (`LinCase`, `blocks/iop/tests/lin_world.h`): table 2^7 rows, 2^6 matrix columns per table row (k_col = 13), 1,192 matrix rows, 1 record answer, 24 drawn table columns, 1 batch, rate at most 1/4, message lengths 4,096 for the folded row, Omega and W, rows high, one request, binding tree of one leaf, 12 draws per proximity stage, masks sent ahead. Index-mask message: 2 mask rows (47 entries are taken on the chain: 2 for each of the 10 parts, plus BATT's 27). +- WF: part size 2^8 matrix rows. `bytes`: 5 parts of 2^8 places, 24 live planes (mu = 5), 9,764,864 keys read, 10,485,760 with padding. `weights`: 5 parts of 2^7 places, 23 live planes (mu = 5), 4,866,048 keys read, 5,242,880 with padding. 10 pending claims, batched by BATT. The padding key is 0 in both lookups (what `wf_shape_of_units` leaves; the toy fixture uses a non-zero one). +- Multiplicities message: message length 2^17, code length 2^20, 2 main rows, 6 mask rows of length 1,024. Stages sized by `lin_stages` as `wf_toy_public` does. The mask of the first fold rides with the message. +- Committed table of N: 128 rows, message length 76,291, code length 2^19 (2^26 stored field elements, as worked out in the registration). +- Seeds: commit randomness `TestCoins(77 + seed)`, session randomness 40 + seed. Hostile and completeness runs: seed 1. +- The lookups come from `wf_shape_of_units` and `wf_lines` (`blocks/frame/wf_frame.h`) with an empty `GroupLine`, which `wf_lines` only stores. `wf_sized` (the priced sizing of `wf_frame.h`) is NOT used: codes, stages and the plan are the hand-made ones of the test fixtures. + +**2. What the debug runs showed about the registered hostile forms (synthetic fixture).** +- Form (a), all tables tried: the prover does not serve, as registered. +- Form (b), H1 to H5: a complete proof exists and the verifier rejects it, each time with "second part: a proximity test" (`blocks/iop/tests/wf_world.h`). That is LIN's own test: the claims WF leaves were computed from the honest matrix and do not hold on the committed table. **So form (b) tests that WF's claims are checked against the committed table. It does not test the lookup argument itself:** in form (b) the lookup is run on in-range keys and is true. +- Honest, C1 and C4: accepted. + +**3. Added: hostile form (c), to reach the lookup.** For each table H1..H5: the hostile table is committed, the prover speaks of the hostile table (keys read from it, so the keys are out of range), and the multiplicities are those of the honest matrix. `WfCpu` cannot be asked for this (it refuses an out-of-range key), so the program has a small `WfHeavy` of its own for this form (`MixedHeavy` in `qm3a1w.cpp`: `WfCpu`'s keys of one matrix, `WfCpu`'s multiplicities of another, `LkpCpu` unchanged). It is a test input for these five tables, not a general tool. +- Debug outcome on the synthetic fixture, all five tables: no proof comes out. The prover program ends at its own check, `blocks/iop/psc.h` line 246, "psc: the round polynomial does not sum to the running claim" (signal 6). +- Registered expectation on the real table: the same stop, or a complete proof that the verifier rejects. **A prover-side stop is not a verifier rejection and is not counted as one.** It is reported in its own column. If form (c) yields a proof that the verifier ACCEPTS, the lane stops and reports a soundness finding, as for form (b). +- Form (c) does not enter the PASS condition of the registration (which names forms (a) and (b)); it is extra, reported as measured. + +**4. Limit that follows, stated now so it is not discovered in the results.** With (a), (b) and (c) as above, no registered run gives the verifier a complete proof whose lookup is false. Making one needs a prover that sends sumcheck messages its own checks refuse, i.e. a forging prover; that is not written in this step. So the verifier-side rejection of a false range lookup at this size is NOT exercised here. Upstream's own WF test says the same of itself (`blocks/iop/tests/wf_test.cpp`: "No malicious prover runs in this test"). RESULTS will say this under NOT established. + +**5. Issue item 3 ("its refusal line and the source line that prints it").** Reported per form: (a) the place where the prover returns without a proof; (b) the verifier's reason string and its line; (c) the prover's stop and its line. + +### A2 (2026-11-29 03:32 UTC, after an interruption from outside, BEFORE any further run) + +**What happened.** The registered batches `shape`, `honest` (5 runs) and `hostile` (15 runs) ran to the end. The batch `complete` (C1, C2, C3, C4, in that order) was started at 03:08:00 UTC. At about 03:09 UTC the host service that runs this lane was restarted, which ended the lane's session and the batch with it. Nothing in the batch caused it. C1 had finished: `runs/complete-C1.json` was written at 03:08:41 UTC. C2, C3 and C4 have no file. By the batch's order C2 is the case that would have been running when the cut came (inferred, not observed); no output of it exists. When the continuation instance started (03:19 UTC) no process of this lane was alive. + +**State of the files, checked before this amendment.** The runs directory holds 22 files (`shape.json`, `honest-seed1..5.json`, `hostile-H1..H5-{a,b,c}.json`, `complete-C1.json`), none of them committed yet. All 22 parse; `complete-C1.json` is complete and well-formed (the same nine fields as every other run file, exit code 0, one full output line, a final newline). It is kept as it is and is NOT run again. No run file is rerun, edited or overwritten. + +**What is run after this amendment is pushed.** C2, C3 and C4, by a continuation instance of the same lane, in the registered order, one run each, seed 1, with: +- the same source commit (`c6a708df3cd0bbda75edb650cd4306063da075b3`) and the same binary file the earlier runs used, SHA-256 `72701131f204de14433a9af84269948a62d1d0028e388b5d0054fb75ccb89142`. The first instance did not record the binary's hash. The continuation compiled the committed source again to a separate path with the same command and compiler (g++ 13.3.0) and got the same SHA-256, so the binary is the committed source's; +- the same input, M.i32 with SHA-256 `ac11d7b74075bcd804bdacd8f5a6d871ac86a4f21d798483f755b3661d7c050d`, checked again against the merged `weights-head0.json`; +- the same cores (6-7), one thread, through the host's heavy-job gate. + +**How, and one thing the registration did not foresee.** `run_registered.py` runs a whole batch and stops at the first run file that already exists ("refusing to overwrite"). Called again for `complete` it would stop at C1 and run nothing; it would not overwrite. It is NOT changed and NOT called again. A new file, `research/operators/qwen_m3a1w/run_continuation.py`, runs only the cases of a batch that have no file, in the batch's order, by calling `run_registered.one()` unchanged, the function that wrote every other run file, so the run files have the same form. It stops before any run unless the files that exist are exactly the first cases of the batch, and `one()` still refuses an existing file. It writes one record, once, outside the runs directory (`continuation-complete.json`): which file was kept, which were run, their SHA-256 values, the binary's and the input's SHA-256. This file is new code written after the registration; it adds no case and changes no case, threshold or order. + +**What does not change.** The hypothesis, the acceptance threshold, the tables, the cases and their expected outcomes. C1's result stands as measured in the first part of the batch. The lane's hard stop stays 2026-11-29 05:10 UTC. + +**What this means for the evidence.** The four completeness runs were not made in one uninterrupted batch: C1 at 03:08 UTC, C2 to C4 after this amendment, with a gap in between on a shared host. Each run is its own process with its own committed table, so no state is carried from one to the next; the timings of C2 to C4 are from a later moment on the host and are not compared with the earlier ones. Whatever part of C2 ran before the cut left no output and is not evidence of anything. RESULTS states the interruption. + +**If a completeness case is not accepted** (C2, C3, or the control C4): the lane stops and reports it; nothing is fixed in the same step. diff --git a/experiments/20261129-237-qwen-wf-head-table/RESULTS.md b/experiments/20261129-237-qwen-wf-head-table/RESULTS.md new file mode 100644 index 00000000..10439ab5 --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/RESULTS.md @@ -0,0 +1,120 @@ +# RESULTS: 20261129-237-qwen-wf-head-table + +Issue #237. PREREG: [PREREG.md](PREREG.md) (first commit 6670b7ae, alone; amendment A1 committed before any registered run; amendment A2 committed after an interruption from outside and before the last three runs). Code: [`research/operators/qwen_m3a1w/`](../../research/operators/qwen_m3a1w/README.md). Environment: [ENV.json](ENV.json). + +**Verdict: PASS on all four registered conditions (instantiation, honest, hostile forms (a) and (b), completeness). Two things limit what that PASS means, and both are stated in full below: (1) no run gives the verifier a complete proof whose range lookup is false, so the verifier-side rejection of an out-of-range weight by the lookup itself is NOT exercised; (2) the registered batch of completeness runs was interrupted from outside after its first run and finished later by a continuation instance.** Every number below is measured, unreplicated, on one shared CPU host. None of it is a security level: the plans are hand-made and every round is unpriced. + +## In plain words + +PR #231 put the 3,288,706 integer weights of one Gated DeltaNet head of the real Qwen3.8-27B (layer 0, V head 0, pinned stock checkpoint) in a committed table and bounded 1,666 of them. This step stores the same integers digit by digit, as signed bytes, in a new table, and runs main's WF range proof on it with no change to any existing file. Five honest proofs verified. What an accepted proof is meant to show is that every cell of the new table is a signed byte and that each of the 3,287,040 in_proj and out_proj weights is in [-4,096, 4,095]. So the answer to the issue's question is: yes, WF can be instantiated for this head's table without editing `blocks/`; no interface is missing. + +What was not shown: that the verifier refuses a proof whose lookup is false. The hostile runs show that the honest prover code will not serve an out-of-range table, and that a proof made from the honest matrix is refused when the committed table is a different one. Neither puts a false lookup in front of the verifier. Doing that needs a prover that sends messages its own checks refuse; it was not written (the lane's rules forbid a general attack tool, and upstream's own WF test has no such prover either). + +## The interruption + +The registered batches `shape`, `honest` and `hostile` ran to the end (first start 02:57:08 UTC, last start 03:06:24 UTC, `start_utc` in the run files). The batch `complete` (C1, C2, C3, C4) started at 03:08:00 UTC. At about 03:09 UTC the host service that runs the lane was restarted, which ended the lane's session and the batch. The time and the cause are as the lane's coordinator reported them to the continuation instance; the continuation instance saw only their effect (a batch with one file of four and no process alive). Amendment A2's sentence "Nothing in the batch caused it" rests on that report too. C1's file had been written (its start 03:08:00 UTC plus its 41.1 s, `runs/complete-C1.json`) and is complete and well-formed; it is committed as it was left and was not run again. C2, C3 and C4 had no file. By the batch's order C2 would have been the case running at the cut (inferred, not observed); it left no output. + +A continuation instance of the same lane registered what it would do in amendment A2, pushed it (commit 6e895598), and then ran C2, C3 and C4 (03:33:30 to 03:35:38 UTC) in the registered order, with the same binary file, the same input and the same cores. No run file was rerun, edited or overwritten. [`continuation-complete.json`](continuation-complete.json) records which file was kept (its SHA-256 before and after: unchanged), which were run, and the SHA-256 of the binary and of the input. + +What this does and does not change: +- Each run is its own process with its own committed table and a fixed seed; nothing is carried from one run to the next. The verdicts of C2 to C4 do not depend on C1. +- The four completeness runs are not one uninterrupted batch. C2 to C4 ran 25 minutes later on a shared host. Their timings are not compared with anything. +- The first instance did not record the binary's hash. The continuation compiled the committed source (c6a708df) again, to a separate path, with the same command and compiler, and got a byte-identical file (SHA-256 `72701131f204de14433a9af84269948a62d1d0028e388b5d0054fb75ccb89142`, in `ENV.json` and `continuation-complete.json`). That the first 22 runs used this file is therefore supported by the file's modification time (02:48:47 UTC, before the first registered run; seen on the host by the continuation instance, not held in a committed file) and by the rebuild, not by a hash taken at the time. +- `run_registered.py` cannot finish a batch: it stops at the first run file that exists. It was not changed and not called again. `run_continuation.py` is new code written after the registration; it runs only the cases without a file by calling `run_registered.one()` unchanged. This is a deviation from "the registered driver runs the registered batches" and is listed under Deviations. + +## The statement (as built) + +- **Public:** the layout of N (1,192 rows of 8,192 columns, k_col 13), the two units, the lookups, parts and plans derived from them, the table's key (root and record). +- **Committed:** the table of N: 9,764,864 cells, each a balanced digit of one of PR #231's integers. Rows 0..3 are the four digits of the old row 0 (the 1,666 trace-read weights); rows 4..1,191 are the low digits, then the high digits, of the 594 in_proj and out_proj rows. +- **What acceptance is meant to show, for the matrix that LIN's test on the committed table pins:** (1) every cell of N is in [-128, 127] (lookup `bytes`, all 1,192 rows, 9,764,864 keys); (2) every two-digit number low + 256 high is in [-4,096, 4,095] (lookup `weights`, 4,866,048 keys: the 3,287,040 matrix weights and the 1,579,008 padding numbers of the in_proj rows). +- **Not part of the statement:** any range on the four-digit numbers beyond four bytes each; that padding cells are zero; any product; any tie to a trace. +- **The verifier** derives units, lookups, parts and plan from the public layout, holds the table's key, and runs the unchanged `wf_verify_view()` of `blocks/iop/tests/wf_world.h`. It reads no weight. + +## Registered items + +Source of every row: the named file under `runs/`, and `runs/summary.json` for the counts. + +| item | registered | result | file | verdict | +|---|---|---|---|---| +| 1. Instantiation: no fault from `wf_units_fault`, `wf_fault`, `lin_fault` | null | all null (`units_fault`, `lines_fault`, `wf_fault`, `lin_fault`), first plan not refused | `runs/shape.json` | PASS | +| 1. Instantiation: no existing file under `blocks/`, `prover/`, `verifier/` or an existing `research/operators/` directory changed | none | none (the branch adds `research/operators/qwen_m3a1w/` and this experiment directory, and edits `research/coverage/inventory.yaml`, `research/results.yaml` and the two generated ledger files) | git diff against base 02d62eb6 | PASS | +| 2. Honest, real head-0 table, seeds 1..5 | accepted 5 of 5 | 5 of 5 accepted; prover's and verifier's 10 pending claims agree in all 5 | `runs/honest-seed{1..5}.json` | PASS | +| 3. Hostile form (a), H1..H5: honest prover code on the hostile table | not served | 5 of 5 not served, no proof exists | `runs/hostile-H{1..5}-a.json` | PASS | +| 3. Hostile form (b), H1..H5: complete proof that speaks of the honest matrix, hostile table committed | rejected | 5 of 5 rejected by the verifier, each with "second part: a proximity test" | `runs/hostile-H{1..5}-b.json` | PASS | +| 4. Completeness: real extremes inside the honest runs | reported | matrix weights -2,688 .. 3,584; row 0 numbers -14,208 .. 2,693; bytes -128 .. 127 | `runs/shape.json` | PASS | +| 4. C1: an in_proj weight 4,095 and an out_proj weight -4,096 | accepted | accepted (before the interruption) | `runs/complete-C1.json` | PASS | +| 4. C2: dt_bias cell 78,848 | accepted | accepted (after the interruption) | `runs/complete-C2.json` | PASS | +| 4. C3: dt_bias cell -23,424 | accepted | accepted (after the interruption) | `runs/complete-C3.json` | PASS | +| 4. C4, control: dt_bias cell's four digits all 127 (the number 2,139,062,143) | accepted, as the registered limit of a four-digit unit | accepted (after the interruption) | `runs/complete-C4.json` | PASS (this is a limit, see below) | +| extra, amendment A1, not in the PASS condition: hostile form (c), H1..H5: keys from the hostile table, multiplicities from the honest matrix | prover stops, or the verifier rejects | 5 of 5: the prover program ended at its own check, exit code 134, no proof exists | `runs/hostile-H{1..5}-c.json` | reported, not counted as a rejection | + +No hostile run was accepted (`runs/summary.json`: `hostile_accepted` is empty, `hostile_outcomes.ACCEPTED` is empty). + +### What each hostile form shows, with its line (issue item 3) + +The five tables each change one number of the real table: H1 an in_proj weight 4,096 written whole in its low cell; H2 an out_proj weight -4,097 with both bytes in range; H3 a byte cell 128 with the number still in range; H4 the number 4,096 from in-range bytes (0, 16); H5 a byte 128 in the four-digit unit. + +- **Form (a): not served.** `wf_prove()` returns false and nothing is sent; the session records it at `blocks/iop/tests/wf_world.h` lines 202 to 203 (`seen.served = false`). The reason string in the run files is this harness's own (`qm3a1w.cpp` line 223), not a line of `blocks/`. The run does not record which of `wf_prove`'s two refusals fired (`blocks/iop/wf.h` line 522, a key in no row of its table; line 526, a multiplicity that does not fit its planes). The second cannot happen at these sizes: the lookups read 9,764,864 and 4,866,048 keys and have 24 and 23 live planes (`runs/shape.json`), so no count reaches 2^24 or 2^23. So it is the first, by arithmetic and not by observation. This shows that the honest prover code does not serve these tables. It says nothing about a prover that is not honest. +- **Form (b): rejected by the verifier**, reason "second part: a proximity test", returned at `blocks/iop/tests/wf_world.h` line 296 (`lin_second_tests_verify`). The lookup in these proofs is run on the honest matrix's keys and is true; the claims WF leaves do not hold on the committed (hostile) table, and LIN's test refuses. **This shows that WF's claims are checked against the committed table. It does not test the lookup.** +- **Form (c): the prover program stops.** `blocks/iop/psc.h` line 246, "psc: the round polynomial does not sum to the running claim", signal 6. With out-of-range keys and the honest matrix's multiplicities the lookup's sum is false, and the prover's own sumcheck code refuses to send the round. No proof is produced, so the verifier is never asked. **A prover-side stop is not a verifier rejection.** + +### The limit C4 shows + +`blocks/frame/wf_units.h`: "Numbers stored in four digits get no range". C4 commits a dt_bias of 2,139,062,143 and the proof is accepted. So on this layout nothing in WF bounds the 1,666 trace-read weights (taps, gains, cA, dt_bias) more tightly than four bytes each. Their class is proved in the trace by PR #231; it reaches this table only through PR #231's tie, restated for this layout in the PREREG and not run here. + +## Measured (unreplicated, shared host, single-threaded runs on cores 6-7) + +All from `runs/summary.json` (`honest`, n = 5, seeds 1..5) unless a file is named. Descriptive only: n = 5 is below the 10 runs a performance claim needs, and none is made. + +| quantity | value | +|---|---| +| matrix N | 1,192 x 8,192 = 9,764,864 byte cells, of which 6,580,744 hold weight digits | +| committed table | 128 rows, message length 76,291, code length 2^19 (2^26 stored field elements) | +| lookup `bytes` | d = 8, 5 parts, 24 live planes, 9,764,864 keys read (10,485,760 with padding) | +| lookup `weights` | d = 13, two digits, 5 parts, 23 live planes, 4,866,048 keys read (5,242,880 with padding) | +| pending claims left by WF, batched by BATT | 10 | +| multiplicities message | message length 2^17, code length 2^20, 2 main rows, 6 mask rows | +| commit of the table, s | median 7.402, sd 0.045, min 7.343, max 7.459 | +| prove (WF, BATT, LIN), s | median 33.368, sd 0.212, min 33.145, max 33.719 | +| verify, s | median 0.097, sd 0.002, min 0.096, max 0.100 | +| whole run, wall s | median 41.111, min 40.871, max 41.393 | +| peak RSS, KiB (getrusage `ru_maxrss`, whole process; the run files' field is named `peak_rss_kb`) | median 1,945,196, min 1,945,196, max 1,945,200 (1.86 GiB); hostile form (b) and completeness runs 2,059,508 to 2,059,512 (1.96 GiB; these modes build a second matrix, which is the likely cause, not measured) | +| proof bytes, all parts | median 2,359,976, min 2,359,176, max 2,360,136; first chain median 2,136,712 | + +What varies between the 5 honest runs: the committer's and the prover's private randomness (seed), so root and record, masks, challenges and proof bytes. The verdict did not vary. The peak RSS of `runs/shape.json` is not used (the run is 0.08 s and the figure is the process floor). + +## Where the issue's estimate landed + +- "2^23 positions or fewer after encoding": the code length is 2^19 positions for each of 128 table rows, 2^26 stored field elements (`runs/shape.json`: `table_rows`, `table_log_n`). +- "under 4 GB": peak RSS 1.86 to 1.96 GiB, which is 1.99 to 2.11 GB (`runs/summary.json`). +- "each run seconds to a minute": 41 to 44 s for a run that commits, proves and verifies (`wall_s` of the honest, form (b) and completeness runs); 8 s for form (a) and 13 s for form (c), which end early. +- "one table of about 6.6M byte cells": 6,580,744 cells hold weight digits; WF ranges all 9,764,864 cells of the padded matrix. +- The issue's wording is "WF + member + LIN". What runs is the session of `blocks/iop/tests/wf_world.h` as it is: index-mask message, WF, then the claims WF leaves joined on the table's rows (that file calls the step BATT; its calls are `member_first_prove` and `member_first_verify`, lines 210 and 266), then LIN under the one-time table test. So the issue's "member" is that step; no separate membership claim is run. + +## Deviations + +- **The interruption** (above): the batch `complete` ran in two parts, 25 minutes apart; C2, C3, C4 were run by a continuation instance through `run_continuation.py`, a file written after the registration (amendment A2, committed and pushed before those runs). +- **Hostile form (c)** is not in the original registration. It was added by amendment A1, before any registered run, after debug runs on the synthetic fixture showed that form (b) does not reach the lookup. It is reported in its own row and does not enter the PASS condition. +- **The binary's SHA-256** was not recorded when the first 22 runs were made (above). +- `runs/summary.json` is written by `summarise.py` into the runs directory; it is a summary, not a run file. `continuation-complete.json` is kept outside the runs directory for the same reason. +- The reason string of form (a) is the harness's, and asserts a cause the run does not observe directly (above). +- No sanitizer build (UBSan, ASan) was run. + +## NOT established + +- **That the verifier rejects a false range lookup at this size.** No registered run gives the verifier a complete proof whose lookup is false. Form (a) is the honest prover declining, form (b) tests the tie of WF's claims to the table, form (c) ends in the prover. So "every matrix weight is proved in [-4,096, 4,095]" rests here on the honest path being accepted and on the unchanged upstream block, not on an attack this step ran against it. +- **Any soundness level.** The plans are hand-made (`BLK_PLANS_BY_HAND_FOR_A_TEST`, `BLK_TESTED_TABLE_FOR_A_TEST`), every round priced NOTHING, sizes chosen by hand and not by `wf_sized()`. Each hostile case is one proof by one fixed prover, not an adversary. +- **Any range on row 0's numbers beyond four bytes each** (C4). The 1,666 trace-read weights are not bounded by this step. +- **The tie of PR #231 on this layout, and the composition with the in_proj lane.** The restatement rule (same point, same target, row weights g'[3 + r] = g[r], g'[597 + r] = 256 g[r], g'[q] = 256^q g[0]) is written in the PREREG and checked cell by cell when N is built (`relay()` in `qm3a1w.cpp`); no claim of either kind is run on N. Until one is, no later relation actually reads its weight factor from this table. +- **Any product:** no in_proj, out_proj, conv, gate, norm or recurrence claim. The M3a-1 evidence gate is not touched. +- That padding cells are zero. That the table is the advertised checkpoint: the proof binds a root; M's SHA-256 is checked against the merged `weights-head0.json` before the runs, outside the proof. +- Any other head, layer or checkpoint. Layer 0 says nothing about abliteration. +- Hiding, accuracy, performance. +- That the two parts of the completeness batch are equivalent to one uninterrupted batch in every respect; what is known is the same binary, input, seed, order and cores. +- Independent replication. + +## Open risks + +1. The restatement rule for claims between the two layouts is the lane's own argument (each cell of M is a fixed integer combination of cells of N); it is not run as a claim and not reviewed. +2. LIN's case and WF's sizes at this scale (1,192 rows, 10 parts, 24 and 23 live planes, padding key 0) are settings the upstream toy test does not exercise; they were settled on the synthetic fixture. +3. A reviewer should check `relay()`'s digit order against `WfUnit` (`blocks/frame/wf_units.h`): all digits 0 of a unit's rows, then all digits 1. diff --git a/experiments/20261129-237-qwen-wf-head-table/continuation-complete.json b/experiments/20261129-237-qwen-wf-head-table/continuation-complete.json new file mode 100644 index 00000000..86c8936c --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/continuation-complete.json @@ -0,0 +1,37 @@ +{ + "batch": "complete", + "registered_order": [ + "complete-C1", + "complete-C2", + "complete-C3", + "complete-C4" + ], + "continuation_start_utc": "2026-11-29T03:33:30Z", + "continuation_end_utc": "2026-11-29T03:35:38Z", + "kept_not_rerun": [ + { + "file": "complete-C1.json", + "sha256": "bc5e9d4a35d61d5b7904b6dedab968ccb26c7f5eec08e1e93d921c5022315052" + } + ], + "kept_unchanged_after": true, + "ran": [ + { + "file": "complete-C2.json", + "sha256": "4d5aac6c0d1c37b6ff39bb5a9bd17c2ce5836c268e2ebfd1cbf9c1d0c85b9bb4" + }, + { + "file": "complete-C3.json", + "sha256": "55c21060326bca43901805aa4f60f7cc640e1f6f476b2559fd1b64350a6c77e5" + }, + { + "file": "complete-C4.json", + "sha256": "83a04087ba7361b3b81ad660d265e422127eca0a17d440f8fa925ea059a9275d" + } + ], + "binary_sha256": "72701131f204de14433a9af84269948a62d1d0028e388b5d0054fb75ccb89142", + "input_M_i32_sha256": "ac11d7b74075bcd804bdacd8f5a6d871ac86a4f21d798483f755b3661d7c050d", + "cores": "6-7", + "driver": "run_registered.one(), unchanged", + "driver_sha256": "4c07368eb23bccbe2d88b896bfa693d76c590dee29ab47aa14295f10f822932b" +} diff --git a/experiments/20261129-237-qwen-wf-head-table/runs/complete-C1.json b/experiments/20261129-237-qwen-wf-head-table/runs/complete-C1.json new file mode 100644 index 00000000..80cc35a3 --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/runs/complete-C1.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T03:08:00Z", + "args": [ + "complete", + "C1" + ], + "input_M_i32_sha256": "ac11d7b74075bcd804bdacd8f5a6d871ac86a4f21d798483f755b3661d7c050d", + "cores": "6-7", + "exit": 0, + "wall_s": 41.108, + "stdout": [ + "{\"mode\":\"complete\",\"case\":\"C1-weights-4095-and-minus-4096\",\"form\":\"-\",\"seed\":1,\"served\":true,\"accepted\":true,\"why\":\"accepted\",\"pending_claims_agree\":true,\"matrix\":[1192,8192],\"k_col\":13,\"units\":[[0,4,4],[4,1188,2]],\"part_log\":8,\"units_fault\":null,\"lines_fault\":null,\"wf_fault\":null,\"lin_fault\":null,\"first_plan_refused\":false,\"bytes_lookup_covers_all_rows\":true,\"table_rows\":128,\"table_ell\":76291,\"table_log_n\":19,\"lookups\":[{\"name\":\"bytes\",\"d\":8,\"digits\":1,\"offset\":128,\"mu\":5,\"live\":24,\"parts\":5,\"log_places\":8,\"keys_covered\":9764864,\"keys_with_padding\":10485760},{\"name\":\"weights\",\"d\":13,\"digits\":2,\"offset\":4096,\"mu\":5,\"live\":23,\"parts\":5,\"log_places\":7,\"keys_covered\":4866048,\"keys_with_padding\":5242880}],\"pending_claims\":10,\"multiplicities\":{\"main_rows\":2,\"mask_rows\":6,\"ell\":131072,\"log_n\":20,\"mask_ell\":1024,\"own_masks\":5968},\"index_mask\":{\"rows\":2,\"entries_taken_on_the_chain\":47},\"proof_bytes\":{\"first\":2136680,\"path\":48,\"shared\":124216,\"second\":98624},\"commit_s\":7.412,\"prove_s\":33.348,\"verify_s\":0.096,\"peak_rss_kb\":2059512}" + ], + "max_rss_kb_time": 2059512, + "stderr_tail": [] +} diff --git a/experiments/20261129-237-qwen-wf-head-table/runs/complete-C2.json b/experiments/20261129-237-qwen-wf-head-table/runs/complete-C2.json new file mode 100644 index 00000000..6c30571c --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/runs/complete-C2.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T03:33:30Z", + "args": [ + "complete", + "C2" + ], + "input_M_i32_sha256": "ac11d7b74075bcd804bdacd8f5a6d871ac86a4f21d798483f755b3661d7c050d", + "cores": "6-7", + "exit": 0, + "wall_s": 41.703, + "stdout": [ + "{\"mode\":\"complete\",\"case\":\"C2-dt-78848\",\"form\":\"-\",\"seed\":1,\"served\":true,\"accepted\":true,\"why\":\"accepted\",\"pending_claims_agree\":true,\"matrix\":[1192,8192],\"k_col\":13,\"units\":[[0,4,4],[4,1188,2]],\"part_log\":8,\"units_fault\":null,\"lines_fault\":null,\"wf_fault\":null,\"lin_fault\":null,\"first_plan_refused\":false,\"bytes_lookup_covers_all_rows\":true,\"table_rows\":128,\"table_ell\":76291,\"table_log_n\":19,\"lookups\":[{\"name\":\"bytes\",\"d\":8,\"digits\":1,\"offset\":128,\"mu\":5,\"live\":24,\"parts\":5,\"log_places\":8,\"keys_covered\":9764864,\"keys_with_padding\":10485760},{\"name\":\"weights\",\"d\":13,\"digits\":2,\"offset\":4096,\"mu\":5,\"live\":23,\"parts\":5,\"log_places\":7,\"keys_covered\":4866048,\"keys_with_padding\":5242880}],\"pending_claims\":10,\"multiplicities\":{\"main_rows\":2,\"mask_rows\":6,\"ell\":131072,\"log_n\":20,\"mask_ell\":1024,\"own_masks\":5968},\"index_mask\":{\"rows\":2,\"entries_taken_on_the_chain\":47},\"proof_bytes\":{\"first\":2137128,\"path\":48,\"shared\":123960,\"second\":98872},\"commit_s\":7.443,\"prove_s\":33.874,\"verify_s\":0.099,\"peak_rss_kb\":2059508}" + ], + "max_rss_kb_time": 2059508, + "stderr_tail": [] +} diff --git a/experiments/20261129-237-qwen-wf-head-table/runs/complete-C3.json b/experiments/20261129-237-qwen-wf-head-table/runs/complete-C3.json new file mode 100644 index 00000000..d42e522b --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/runs/complete-C3.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T03:34:12Z", + "args": [ + "complete", + "C3" + ], + "input_M_i32_sha256": "ac11d7b74075bcd804bdacd8f5a6d871ac86a4f21d798483f755b3661d7c050d", + "cores": "6-7", + "exit": 0, + "wall_s": 41.854, + "stdout": [ + "{\"mode\":\"complete\",\"case\":\"C3-dt-minus-23424\",\"form\":\"-\",\"seed\":1,\"served\":true,\"accepted\":true,\"why\":\"accepted\",\"pending_claims_agree\":true,\"matrix\":[1192,8192],\"k_col\":13,\"units\":[[0,4,4],[4,1188,2]],\"part_log\":8,\"units_fault\":null,\"lines_fault\":null,\"wf_fault\":null,\"lin_fault\":null,\"first_plan_refused\":false,\"bytes_lookup_covers_all_rows\":true,\"table_rows\":128,\"table_ell\":76291,\"table_log_n\":19,\"lookups\":[{\"name\":\"bytes\",\"d\":8,\"digits\":1,\"offset\":128,\"mu\":5,\"live\":24,\"parts\":5,\"log_places\":8,\"keys_covered\":9764864,\"keys_with_padding\":10485760},{\"name\":\"weights\",\"d\":13,\"digits\":2,\"offset\":4096,\"mu\":5,\"live\":23,\"parts\":5,\"log_places\":7,\"keys_covered\":4866048,\"keys_with_padding\":5242880}],\"pending_claims\":10,\"multiplicities\":{\"main_rows\":2,\"mask_rows\":6,\"ell\":131072,\"log_n\":20,\"mask_ell\":1024,\"own_masks\":5968},\"index_mask\":{\"rows\":2,\"entries_taken_on_the_chain\":47},\"proof_bytes\":{\"first\":2136776,\"path\":48,\"shared\":123416,\"second\":98232},\"commit_s\":7.384,\"prove_s\":34.059,\"verify_s\":0.107,\"peak_rss_kb\":2059508}" + ], + "max_rss_kb_time": 2059508, + "stderr_tail": [] +} diff --git a/experiments/20261129-237-qwen-wf-head-table/runs/complete-C4.json b/experiments/20261129-237-qwen-wf-head-table/runs/complete-C4.json new file mode 100644 index 00000000..ca0e41f6 --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/runs/complete-C4.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T03:34:53Z", + "args": [ + "complete", + "C4" + ], + "input_M_i32_sha256": "ac11d7b74075bcd804bdacd8f5a6d871ac86a4f21d798483f755b3661d7c050d", + "cores": "6-7", + "exit": 0, + "wall_s": 44.202, + "stdout": [ + "{\"mode\":\"complete\",\"case\":\"C4-control-dt-four-digits-127\",\"form\":\"-\",\"seed\":1,\"served\":true,\"accepted\":true,\"why\":\"accepted\",\"pending_claims_agree\":true,\"matrix\":[1192,8192],\"k_col\":13,\"units\":[[0,4,4],[4,1188,2]],\"part_log\":8,\"units_fault\":null,\"lines_fault\":null,\"wf_fault\":null,\"lin_fault\":null,\"first_plan_refused\":false,\"bytes_lookup_covers_all_rows\":true,\"table_rows\":128,\"table_ell\":76291,\"table_log_n\":19,\"lookups\":[{\"name\":\"bytes\",\"d\":8,\"digits\":1,\"offset\":128,\"mu\":5,\"live\":24,\"parts\":5,\"log_places\":8,\"keys_covered\":9764864,\"keys_with_padding\":10485760},{\"name\":\"weights\",\"d\":13,\"digits\":2,\"offset\":4096,\"mu\":5,\"live\":23,\"parts\":5,\"log_places\":7,\"keys_covered\":4866048,\"keys_with_padding\":5242880}],\"pending_claims\":10,\"multiplicities\":{\"main_rows\":2,\"mask_rows\":6,\"ell\":131072,\"log_n\":20,\"mask_ell\":1024,\"own_masks\":5968},\"index_mask\":{\"rows\":2,\"entries_taken_on_the_chain\":47},\"proof_bytes\":{\"first\":2136904,\"path\":48,\"shared\":124632,\"second\":98040},\"commit_s\":7.692,\"prove_s\":36.101,\"verify_s\":0.099,\"peak_rss_kb\":2059508}" + ], + "max_rss_kb_time": 2059508, + "stderr_tail": [] +} diff --git a/experiments/20261129-237-qwen-wf-head-table/runs/honest-seed1.json b/experiments/20261129-237-qwen-wf-head-table/runs/honest-seed1.json new file mode 100644 index 00000000..b9766ed6 --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/runs/honest-seed1.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:57:45Z", + "args": [ + "honest", + "1" + ], + "input_M_i32_sha256": "ac11d7b74075bcd804bdacd8f5a6d871ac86a4f21d798483f755b3661d7c050d", + "cores": "6-7", + "exit": 0, + "wall_s": 40.871, + "stdout": [ + "{\"mode\":\"honest\",\"case\":\"honest\",\"form\":\"-\",\"seed\":1,\"served\":true,\"accepted\":true,\"why\":\"accepted\",\"pending_claims_agree\":true,\"matrix\":[1192,8192],\"k_col\":13,\"units\":[[0,4,4],[4,1188,2]],\"part_log\":8,\"units_fault\":null,\"lines_fault\":null,\"wf_fault\":null,\"lin_fault\":null,\"first_plan_refused\":false,\"bytes_lookup_covers_all_rows\":true,\"table_rows\":128,\"table_ell\":76291,\"table_log_n\":19,\"lookups\":[{\"name\":\"bytes\",\"d\":8,\"digits\":1,\"offset\":128,\"mu\":5,\"live\":24,\"parts\":5,\"log_places\":8,\"keys_covered\":9764864,\"keys_with_padding\":10485760},{\"name\":\"weights\",\"d\":13,\"digits\":2,\"offset\":4096,\"mu\":5,\"live\":23,\"parts\":5,\"log_places\":7,\"keys_covered\":4866048,\"keys_with_padding\":5242880}],\"pending_claims\":10,\"multiplicities\":{\"main_rows\":2,\"mask_rows\":6,\"ell\":131072,\"log_n\":20,\"mask_ell\":1024,\"own_masks\":5968},\"index_mask\":{\"rows\":2,\"entries_taken_on_the_chain\":47},\"proof_bytes\":{\"first\":2136936,\"path\":48,\"shared\":124760,\"second\":98392},\"commit_s\":7.408,\"prove_s\":33.145,\"verify_s\":0.096,\"peak_rss_kb\":1945200}" + ], + "max_rss_kb_time": 1945200, + "stderr_tail": [] +} diff --git a/experiments/20261129-237-qwen-wf-head-table/runs/honest-seed2.json b/experiments/20261129-237-qwen-wf-head-table/runs/honest-seed2.json new file mode 100644 index 00000000..051a757a --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/runs/honest-seed2.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:58:26Z", + "args": [ + "honest", + "2" + ], + "input_M_i32_sha256": "ac11d7b74075bcd804bdacd8f5a6d871ac86a4f21d798483f755b3661d7c050d", + "cores": "6-7", + "exit": 0, + "wall_s": 41.393, + "stdout": [ + "{\"mode\":\"honest\",\"case\":\"honest\",\"form\":\"-\",\"seed\":2,\"served\":true,\"accepted\":true,\"why\":\"accepted\",\"pending_claims_agree\":true,\"matrix\":[1192,8192],\"k_col\":13,\"units\":[[0,4,4],[4,1188,2]],\"part_log\":8,\"units_fault\":null,\"lines_fault\":null,\"wf_fault\":null,\"lin_fault\":null,\"first_plan_refused\":false,\"bytes_lookup_covers_all_rows\":true,\"table_rows\":128,\"table_ell\":76291,\"table_log_n\":19,\"lookups\":[{\"name\":\"bytes\",\"d\":8,\"digits\":1,\"offset\":128,\"mu\":5,\"live\":24,\"parts\":5,\"log_places\":8,\"keys_covered\":9764864,\"keys_with_padding\":10485760},{\"name\":\"weights\",\"d\":13,\"digits\":2,\"offset\":4096,\"mu\":5,\"live\":23,\"parts\":5,\"log_places\":7,\"keys_covered\":4866048,\"keys_with_padding\":5242880}],\"pending_claims\":10,\"multiplicities\":{\"main_rows\":2,\"mask_rows\":6,\"ell\":131072,\"log_n\":20,\"mask_ell\":1024,\"own_masks\":5968},\"index_mask\":{\"rows\":2,\"entries_taken_on_the_chain\":47},\"proof_bytes\":{\"first\":2136840,\"path\":48,\"shared\":124664,\"second\":97624},\"commit_s\":7.343,\"prove_s\":33.719,\"verify_s\":0.096,\"peak_rss_kb\":1945196}" + ], + "max_rss_kb_time": 1945196, + "stderr_tail": [] +} diff --git a/experiments/20261129-237-qwen-wf-head-table/runs/honest-seed3.json b/experiments/20261129-237-qwen-wf-head-table/runs/honest-seed3.json new file mode 100644 index 00000000..d98c7314 --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/runs/honest-seed3.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:59:08Z", + "args": [ + "honest", + "3" + ], + "input_M_i32_sha256": "ac11d7b74075bcd804bdacd8f5a6d871ac86a4f21d798483f755b3661d7c050d", + "cores": "6-7", + "exit": 0, + "wall_s": 41.058, + "stdout": [ + "{\"mode\":\"honest\",\"case\":\"honest\",\"form\":\"-\",\"seed\":3,\"served\":true,\"accepted\":true,\"why\":\"accepted\",\"pending_claims_agree\":true,\"matrix\":[1192,8192],\"k_col\":13,\"units\":[[0,4,4],[4,1188,2]],\"part_log\":8,\"units_fault\":null,\"lines_fault\":null,\"wf_fault\":null,\"lin_fault\":null,\"first_plan_refused\":false,\"bytes_lookup_covers_all_rows\":true,\"table_rows\":128,\"table_ell\":76291,\"table_log_n\":19,\"lookups\":[{\"name\":\"bytes\",\"d\":8,\"digits\":1,\"offset\":128,\"mu\":5,\"live\":24,\"parts\":5,\"log_places\":8,\"keys_covered\":9764864,\"keys_with_padding\":10485760},{\"name\":\"weights\",\"d\":13,\"digits\":2,\"offset\":4096,\"mu\":5,\"live\":23,\"parts\":5,\"log_places\":7,\"keys_covered\":4866048,\"keys_with_padding\":5242880}],\"pending_claims\":10,\"multiplicities\":{\"main_rows\":2,\"mask_rows\":6,\"ell\":131072,\"log_n\":20,\"mask_ell\":1024,\"own_masks\":5968},\"index_mask\":{\"rows\":2,\"entries_taken_on_the_chain\":47},\"proof_bytes\":{\"first\":2136520,\"path\":48,\"shared\":124088,\"second\":99096},\"commit_s\":7.360,\"prove_s\":33.368,\"verify_s\":0.098,\"peak_rss_kb\":1945196}" + ], + "max_rss_kb_time": 1945196, + "stderr_tail": [] +} diff --git a/experiments/20261129-237-qwen-wf-head-table/runs/honest-seed4.json b/experiments/20261129-237-qwen-wf-head-table/runs/honest-seed4.json new file mode 100644 index 00000000..b9743575 --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/runs/honest-seed4.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:59:49Z", + "args": [ + "honest", + "4" + ], + "input_M_i32_sha256": "ac11d7b74075bcd804bdacd8f5a6d871ac86a4f21d798483f755b3661d7c050d", + "cores": "6-7", + "exit": 0, + "wall_s": 41.111, + "stdout": [ + "{\"mode\":\"honest\",\"case\":\"honest\",\"form\":\"-\",\"seed\":4,\"served\":true,\"accepted\":true,\"why\":\"accepted\",\"pending_claims_agree\":true,\"matrix\":[1192,8192],\"k_col\":13,\"units\":[[0,4,4],[4,1188,2]],\"part_log\":8,\"units_fault\":null,\"lines_fault\":null,\"wf_fault\":null,\"lin_fault\":null,\"first_plan_refused\":false,\"bytes_lookup_covers_all_rows\":true,\"table_rows\":128,\"table_ell\":76291,\"table_log_n\":19,\"lookups\":[{\"name\":\"bytes\",\"d\":8,\"digits\":1,\"offset\":128,\"mu\":5,\"live\":24,\"parts\":5,\"log_places\":8,\"keys_covered\":9764864,\"keys_with_padding\":10485760},{\"name\":\"weights\",\"d\":13,\"digits\":2,\"offset\":4096,\"mu\":5,\"live\":23,\"parts\":5,\"log_places\":7,\"keys_covered\":4866048,\"keys_with_padding\":5242880}],\"pending_claims\":10,\"multiplicities\":{\"main_rows\":2,\"mask_rows\":6,\"ell\":131072,\"log_n\":20,\"mask_ell\":1024,\"own_masks\":5968},\"index_mask\":{\"rows\":2,\"entries_taken_on_the_chain\":47},\"proof_bytes\":{\"first\":2136712,\"path\":48,\"shared\":124856,\"second\":98360},\"commit_s\":7.459,\"prove_s\":33.331,\"verify_s\":0.100,\"peak_rss_kb\":1945200}" + ], + "max_rss_kb_time": 1945200, + "stderr_tail": [] +} diff --git a/experiments/20261129-237-qwen-wf-head-table/runs/honest-seed5.json b/experiments/20261129-237-qwen-wf-head-table/runs/honest-seed5.json new file mode 100644 index 00000000..bba11e50 --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/runs/honest-seed5.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T03:00:30Z", + "args": [ + "honest", + "5" + ], + "input_M_i32_sha256": "ac11d7b74075bcd804bdacd8f5a6d871ac86a4f21d798483f755b3661d7c050d", + "cores": "6-7", + "exit": 0, + "wall_s": 41.206, + "stdout": [ + "{\"mode\":\"honest\",\"case\":\"honest\",\"form\":\"-\",\"seed\":5,\"served\":true,\"accepted\":true,\"why\":\"accepted\",\"pending_claims_agree\":true,\"matrix\":[1192,8192],\"k_col\":13,\"units\":[[0,4,4],[4,1188,2]],\"part_log\":8,\"units_fault\":null,\"lines_fault\":null,\"wf_fault\":null,\"lin_fault\":null,\"first_plan_refused\":false,\"bytes_lookup_covers_all_rows\":true,\"table_rows\":128,\"table_ell\":76291,\"table_log_n\":19,\"lookups\":[{\"name\":\"bytes\",\"d\":8,\"digits\":1,\"offset\":128,\"mu\":5,\"live\":24,\"parts\":5,\"log_places\":8,\"keys_covered\":9764864,\"keys_with_padding\":10485760},{\"name\":\"weights\",\"d\":13,\"digits\":2,\"offset\":4096,\"mu\":5,\"live\":23,\"parts\":5,\"log_places\":7,\"keys_covered\":4866048,\"keys_with_padding\":5242880}],\"pending_claims\":10,\"multiplicities\":{\"main_rows\":2,\"mask_rows\":6,\"ell\":131072,\"log_n\":20,\"mask_ell\":1024,\"own_masks\":5968},\"index_mask\":{\"rows\":2,\"entries_taken_on_the_chain\":47},\"proof_bytes\":{\"first\":2136648,\"path\":48,\"shared\":125016,\"second\":98368},\"commit_s\":7.402,\"prove_s\":33.485,\"verify_s\":0.097,\"peak_rss_kb\":1945196}" + ], + "max_rss_kb_time": 1945196, + "stderr_tail": [] +} diff --git a/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H1-a.json b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H1-a.json new file mode 100644 index 00000000..4997e994 --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H1-a.json @@ -0,0 +1,17 @@ +{ + "start_utc": "2026-11-29T03:01:26Z", + "args": [ + "hostile", + "H1", + "a" + ], + "input_M_i32_sha256": "ac11d7b74075bcd804bdacd8f5a6d871ac86a4f21d798483f755b3661d7c050d", + "cores": "6-7", + "exit": 0, + "wall_s": 8.046, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"H1-in_proj-weight-4096-in-its-low-cell\",\"form\":\"a\",\"seed\":1,\"served\":false,\"accepted\":false,\"why\":\"not served: wf_prove() returned false, a key of the prover's matrix is in no row of its range table; no proof exists\",\"pending_claims_agree\":false,\"matrix\":[1192,8192],\"k_col\":13,\"units\":[[0,4,4],[4,1188,2]],\"part_log\":8,\"units_fault\":null,\"lines_fault\":null,\"wf_fault\":null,\"lin_fault\":null,\"first_plan_refused\":false,\"bytes_lookup_covers_all_rows\":true,\"table_rows\":128,\"table_ell\":76291,\"table_log_n\":19,\"lookups\":[{\"name\":\"bytes\",\"d\":8,\"digits\":1,\"offset\":128,\"mu\":5,\"live\":24,\"parts\":5,\"log_places\":8,\"keys_covered\":9764864,\"keys_with_padding\":10485760},{\"name\":\"weights\",\"d\":13,\"digits\":2,\"offset\":4096,\"mu\":5,\"live\":23,\"parts\":5,\"log_places\":7,\"keys_covered\":4866048,\"keys_with_padding\":5242880}],\"pending_claims\":10,\"multiplicities\":{\"main_rows\":2,\"mask_rows\":6,\"ell\":131072,\"log_n\":20,\"mask_ell\":1024,\"own_masks\":5968},\"index_mask\":{\"rows\":2,\"entries_taken_on_the_chain\":47},\"proof_bytes\":{\"first\":0,\"path\":0,\"shared\":0,\"second\":0},\"commit_s\":7.418,\"prove_s\":0.377,\"verify_s\":0.000,\"peak_rss_kb\":1359096}" + ], + "max_rss_kb_time": 1359096, + "stderr_tail": [] +} diff --git a/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H1-b.json b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H1-b.json new file mode 100644 index 00000000..4fb02e67 --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H1-b.json @@ -0,0 +1,17 @@ +{ + "start_utc": "2026-11-29T03:01:34Z", + "args": [ + "hostile", + "H1", + "b" + ], + "input_M_i32_sha256": "ac11d7b74075bcd804bdacd8f5a6d871ac86a4f21d798483f755b3661d7c050d", + "cores": "6-7", + "exit": 0, + "wall_s": 41.341, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"H1-in_proj-weight-4096-in-its-low-cell\",\"form\":\"b\",\"seed\":1,\"served\":true,\"accepted\":false,\"why\":\"second part: a proximity test\",\"pending_claims_agree\":true,\"matrix\":[1192,8192],\"k_col\":13,\"units\":[[0,4,4],[4,1188,2]],\"part_log\":8,\"units_fault\":null,\"lines_fault\":null,\"wf_fault\":null,\"lin_fault\":null,\"first_plan_refused\":false,\"bytes_lookup_covers_all_rows\":true,\"table_rows\":128,\"table_ell\":76291,\"table_log_n\":19,\"lookups\":[{\"name\":\"bytes\",\"d\":8,\"digits\":1,\"offset\":128,\"mu\":5,\"live\":24,\"parts\":5,\"log_places\":8,\"keys_covered\":9764864,\"keys_with_padding\":10485760},{\"name\":\"weights\",\"d\":13,\"digits\":2,\"offset\":4096,\"mu\":5,\"live\":23,\"parts\":5,\"log_places\":7,\"keys_covered\":4866048,\"keys_with_padding\":5242880}],\"pending_claims\":10,\"multiplicities\":{\"main_rows\":2,\"mask_rows\":6,\"ell\":131072,\"log_n\":20,\"mask_ell\":1024,\"own_masks\":5968},\"index_mask\":{\"rows\":2,\"entries_taken_on_the_chain\":47},\"proof_bytes\":{\"first\":2137096,\"path\":48,\"shared\":124120,\"second\":98848},\"commit_s\":7.444,\"prove_s\":33.517,\"verify_s\":0.103,\"peak_rss_kb\":2059508}" + ], + "max_rss_kb_time": 2059508, + "stderr_tail": [] +} diff --git a/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H1-c.json b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H1-c.json new file mode 100644 index 00000000..225a051a --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H1-c.json @@ -0,0 +1,18 @@ +{ + "start_utc": "2026-11-29T03:02:16Z", + "args": [ + "hostile", + "H1", + "c" + ], + "input_M_i32_sha256": "ac11d7b74075bcd804bdacd8f5a6d871ac86a4f21d798483f755b3661d7c050d", + "cores": "6-7", + "exit": 134, + "wall_s": 12.898, + "stdout": [], + "max_rss_kb_time": 1887340, + "stderr_tail": [ + "blocks/iop/psc.h:246: psc: the round polynomial does not sum to the running claim", + "Command terminated by signal 6" + ] +} diff --git a/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H2-a.json b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H2-a.json new file mode 100644 index 00000000..ae5fb512 --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H2-a.json @@ -0,0 +1,17 @@ +{ + "start_utc": "2026-11-29T03:02:28Z", + "args": [ + "hostile", + "H2", + "a" + ], + "input_M_i32_sha256": "ac11d7b74075bcd804bdacd8f5a6d871ac86a4f21d798483f755b3661d7c050d", + "cores": "6-7", + "exit": 0, + "wall_s": 8.205, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"H2-out_proj-weight-minus-4097-bytes-in-range\",\"form\":\"a\",\"seed\":1,\"served\":false,\"accepted\":false,\"why\":\"not served: wf_prove() returned false, a key of the prover's matrix is in no row of its range table; no proof exists\",\"pending_claims_agree\":false,\"matrix\":[1192,8192],\"k_col\":13,\"units\":[[0,4,4],[4,1188,2]],\"part_log\":8,\"units_fault\":null,\"lines_fault\":null,\"wf_fault\":null,\"lin_fault\":null,\"first_plan_refused\":false,\"bytes_lookup_covers_all_rows\":true,\"table_rows\":128,\"table_ell\":76291,\"table_log_n\":19,\"lookups\":[{\"name\":\"bytes\",\"d\":8,\"digits\":1,\"offset\":128,\"mu\":5,\"live\":24,\"parts\":5,\"log_places\":8,\"keys_covered\":9764864,\"keys_with_padding\":10485760},{\"name\":\"weights\",\"d\":13,\"digits\":2,\"offset\":4096,\"mu\":5,\"live\":23,\"parts\":5,\"log_places\":7,\"keys_covered\":4866048,\"keys_with_padding\":5242880}],\"pending_claims\":10,\"multiplicities\":{\"main_rows\":2,\"mask_rows\":6,\"ell\":131072,\"log_n\":20,\"mask_ell\":1024,\"own_masks\":5968},\"index_mask\":{\"rows\":2,\"entries_taken_on_the_chain\":47},\"proof_bytes\":{\"first\":0,\"path\":0,\"shared\":0,\"second\":0},\"commit_s\":7.305,\"prove_s\":0.661,\"verify_s\":0.000,\"peak_rss_kb\":1359092}" + ], + "max_rss_kb_time": 1359092, + "stderr_tail": [] +} diff --git a/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H2-b.json b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H2-b.json new file mode 100644 index 00000000..7f7dd896 --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H2-b.json @@ -0,0 +1,17 @@ +{ + "start_utc": "2026-11-29T03:02:37Z", + "args": [ + "hostile", + "H2", + "b" + ], + "input_M_i32_sha256": "ac11d7b74075bcd804bdacd8f5a6d871ac86a4f21d798483f755b3661d7c050d", + "cores": "6-7", + "exit": 0, + "wall_s": 40.866, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"H2-out_proj-weight-minus-4097-bytes-in-range\",\"form\":\"b\",\"seed\":1,\"served\":true,\"accepted\":false,\"why\":\"second part: a proximity test\",\"pending_claims_agree\":true,\"matrix\":[1192,8192],\"k_col\":13,\"units\":[[0,4,4],[4,1188,2]],\"part_log\":8,\"units_fault\":null,\"lines_fault\":null,\"wf_fault\":null,\"lin_fault\":null,\"first_plan_refused\":false,\"bytes_lookup_covers_all_rows\":true,\"table_rows\":128,\"table_ell\":76291,\"table_log_n\":19,\"lookups\":[{\"name\":\"bytes\",\"d\":8,\"digits\":1,\"offset\":128,\"mu\":5,\"live\":24,\"parts\":5,\"log_places\":8,\"keys_covered\":9764864,\"keys_with_padding\":10485760},{\"name\":\"weights\",\"d\":13,\"digits\":2,\"offset\":4096,\"mu\":5,\"live\":23,\"parts\":5,\"log_places\":7,\"keys_covered\":4866048,\"keys_with_padding\":5242880}],\"pending_claims\":10,\"multiplicities\":{\"main_rows\":2,\"mask_rows\":6,\"ell\":131072,\"log_n\":20,\"mask_ell\":1024,\"own_masks\":5968},\"index_mask\":{\"rows\":2,\"entries_taken_on_the_chain\":47},\"proof_bytes\":{\"first\":2137000,\"path\":48,\"shared\":124792,\"second\":98080},\"commit_s\":7.289,\"prove_s\":33.210,\"verify_s\":0.097,\"peak_rss_kb\":2059512}" + ], + "max_rss_kb_time": 2059512, + "stderr_tail": [] +} diff --git a/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H2-c.json b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H2-c.json new file mode 100644 index 00000000..0ac72d55 --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H2-c.json @@ -0,0 +1,18 @@ +{ + "start_utc": "2026-11-29T03:03:18Z", + "args": [ + "hostile", + "H2", + "c" + ], + "input_M_i32_sha256": "ac11d7b74075bcd804bdacd8f5a6d871ac86a4f21d798483f755b3661d7c050d", + "cores": "6-7", + "exit": 134, + "wall_s": 12.924, + "stdout": [], + "max_rss_kb_time": 1887340, + "stderr_tail": [ + "blocks/iop/psc.h:246: psc: the round polynomial does not sum to the running claim", + "Command terminated by signal 6" + ] +} diff --git a/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H3-a.json b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H3-a.json new file mode 100644 index 00000000..e4d9b535 --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H3-a.json @@ -0,0 +1,17 @@ +{ + "start_utc": "2026-11-29T03:03:30Z", + "args": [ + "hostile", + "H3", + "a" + ], + "input_M_i32_sha256": "ac11d7b74075bcd804bdacd8f5a6d871ac86a4f21d798483f755b3661d7c050d", + "cores": "6-7", + "exit": 0, + "wall_s": 7.871, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"H3-byte-cell-128-number-in-range\",\"form\":\"a\",\"seed\":1,\"served\":false,\"accepted\":false,\"why\":\"not served: wf_prove() returned false, a key of the prover's matrix is in no row of its range table; no proof exists\",\"pending_claims_agree\":false,\"matrix\":[1192,8192],\"k_col\":13,\"units\":[[0,4,4],[4,1188,2]],\"part_log\":8,\"units_fault\":null,\"lines_fault\":null,\"wf_fault\":null,\"lin_fault\":null,\"first_plan_refused\":false,\"bytes_lookup_covers_all_rows\":true,\"table_rows\":128,\"table_ell\":76291,\"table_log_n\":19,\"lookups\":[{\"name\":\"bytes\",\"d\":8,\"digits\":1,\"offset\":128,\"mu\":5,\"live\":24,\"parts\":5,\"log_places\":8,\"keys_covered\":9764864,\"keys_with_padding\":10485760},{\"name\":\"weights\",\"d\":13,\"digits\":2,\"offset\":4096,\"mu\":5,\"live\":23,\"parts\":5,\"log_places\":7,\"keys_covered\":4866048,\"keys_with_padding\":5242880}],\"pending_claims\":10,\"multiplicities\":{\"main_rows\":2,\"mask_rows\":6,\"ell\":131072,\"log_n\":20,\"mask_ell\":1024,\"own_masks\":5968},\"index_mask\":{\"rows\":2,\"entries_taken_on_the_chain\":47},\"proof_bytes\":{\"first\":0,\"path\":0,\"shared\":0,\"second\":0},\"commit_s\":7.266,\"prove_s\":0.375,\"verify_s\":0.000,\"peak_rss_kb\":1359096}" + ], + "max_rss_kb_time": 1359096, + "stderr_tail": [] +} diff --git a/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H3-b.json b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H3-b.json new file mode 100644 index 00000000..e053dc31 --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H3-b.json @@ -0,0 +1,17 @@ +{ + "start_utc": "2026-11-29T03:03:38Z", + "args": [ + "hostile", + "H3", + "b" + ], + "input_M_i32_sha256": "ac11d7b74075bcd804bdacd8f5a6d871ac86a4f21d798483f755b3661d7c050d", + "cores": "6-7", + "exit": 0, + "wall_s": 41.139, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"H3-byte-cell-128-number-in-range\",\"form\":\"b\",\"seed\":1,\"served\":true,\"accepted\":false,\"why\":\"second part: a proximity test\",\"pending_claims_agree\":true,\"matrix\":[1192,8192],\"k_col\":13,\"units\":[[0,4,4],[4,1188,2]],\"part_log\":8,\"units_fault\":null,\"lines_fault\":null,\"wf_fault\":null,\"lin_fault\":null,\"first_plan_refused\":false,\"bytes_lookup_covers_all_rows\":true,\"table_rows\":128,\"table_ell\":76291,\"table_log_n\":19,\"lookups\":[{\"name\":\"bytes\",\"d\":8,\"digits\":1,\"offset\":128,\"mu\":5,\"live\":24,\"parts\":5,\"log_places\":8,\"keys_covered\":9764864,\"keys_with_padding\":10485760},{\"name\":\"weights\",\"d\":13,\"digits\":2,\"offset\":4096,\"mu\":5,\"live\":23,\"parts\":5,\"log_places\":7,\"keys_covered\":4866048,\"keys_with_padding\":5242880}],\"pending_claims\":10,\"multiplicities\":{\"main_rows\":2,\"mask_rows\":6,\"ell\":131072,\"log_n\":20,\"mask_ell\":1024,\"own_masks\":5968},\"index_mask\":{\"rows\":2,\"entries_taken_on_the_chain\":47},\"proof_bytes\":{\"first\":2137160,\"path\":48,\"shared\":123608,\"second\":98328},\"commit_s\":7.264,\"prove_s\":33.514,\"verify_s\":0.096,\"peak_rss_kb\":2059508}" + ], + "max_rss_kb_time": 2059508, + "stderr_tail": [] +} diff --git a/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H3-c.json b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H3-c.json new file mode 100644 index 00000000..5896d7a2 --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H3-c.json @@ -0,0 +1,18 @@ +{ + "start_utc": "2026-11-29T03:04:19Z", + "args": [ + "hostile", + "H3", + "c" + ], + "input_M_i32_sha256": "ac11d7b74075bcd804bdacd8f5a6d871ac86a4f21d798483f755b3661d7c050d", + "cores": "6-7", + "exit": 134, + "wall_s": 13.043, + "stdout": [], + "max_rss_kb_time": 1887344, + "stderr_tail": [ + "blocks/iop/psc.h:246: psc: the round polynomial does not sum to the running claim", + "Command terminated by signal 6" + ] +} diff --git a/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H4-a.json b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H4-a.json new file mode 100644 index 00000000..0c9ba27e --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H4-a.json @@ -0,0 +1,17 @@ +{ + "start_utc": "2026-11-29T03:04:33Z", + "args": [ + "hostile", + "H4", + "a" + ], + "input_M_i32_sha256": "ac11d7b74075bcd804bdacd8f5a6d871ac86a4f21d798483f755b3661d7c050d", + "cores": "6-7", + "exit": 0, + "wall_s": 8.168, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"H4-high-digit-16-makes-4096-bytes-in-range\",\"form\":\"a\",\"seed\":1,\"served\":false,\"accepted\":false,\"why\":\"not served: wf_prove() returned false, a key of the prover's matrix is in no row of its range table; no proof exists\",\"pending_claims_agree\":false,\"matrix\":[1192,8192],\"k_col\":13,\"units\":[[0,4,4],[4,1188,2]],\"part_log\":8,\"units_fault\":null,\"lines_fault\":null,\"wf_fault\":null,\"lin_fault\":null,\"first_plan_refused\":false,\"bytes_lookup_covers_all_rows\":true,\"table_rows\":128,\"table_ell\":76291,\"table_log_n\":19,\"lookups\":[{\"name\":\"bytes\",\"d\":8,\"digits\":1,\"offset\":128,\"mu\":5,\"live\":24,\"parts\":5,\"log_places\":8,\"keys_covered\":9764864,\"keys_with_padding\":10485760},{\"name\":\"weights\",\"d\":13,\"digits\":2,\"offset\":4096,\"mu\":5,\"live\":23,\"parts\":5,\"log_places\":7,\"keys_covered\":4866048,\"keys_with_padding\":5242880}],\"pending_claims\":10,\"multiplicities\":{\"main_rows\":2,\"mask_rows\":6,\"ell\":131072,\"log_n\":20,\"mask_ell\":1024,\"own_masks\":5968},\"index_mask\":{\"rows\":2,\"entries_taken_on_the_chain\":47},\"proof_bytes\":{\"first\":0,\"path\":0,\"shared\":0,\"second\":0},\"commit_s\":7.298,\"prove_s\":0.633,\"verify_s\":0.000,\"peak_rss_kb\":1359092}" + ], + "max_rss_kb_time": 1359092, + "stderr_tail": [] +} diff --git a/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H4-b.json b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H4-b.json new file mode 100644 index 00000000..15b8165d --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H4-b.json @@ -0,0 +1,17 @@ +{ + "start_utc": "2026-11-29T03:04:41Z", + "args": [ + "hostile", + "H4", + "b" + ], + "input_M_i32_sha256": "ac11d7b74075bcd804bdacd8f5a6d871ac86a4f21d798483f755b3661d7c050d", + "cores": "6-7", + "exit": 0, + "wall_s": 41.162, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"H4-high-digit-16-makes-4096-bytes-in-range\",\"form\":\"b\",\"seed\":1,\"served\":true,\"accepted\":false,\"why\":\"second part: a proximity test\",\"pending_claims_agree\":true,\"matrix\":[1192,8192],\"k_col\":13,\"units\":[[0,4,4],[4,1188,2]],\"part_log\":8,\"units_fault\":null,\"lines_fault\":null,\"wf_fault\":null,\"lin_fault\":null,\"first_plan_refused\":false,\"bytes_lookup_covers_all_rows\":true,\"table_rows\":128,\"table_ell\":76291,\"table_log_n\":19,\"lookups\":[{\"name\":\"bytes\",\"d\":8,\"digits\":1,\"offset\":128,\"mu\":5,\"live\":24,\"parts\":5,\"log_places\":8,\"keys_covered\":9764864,\"keys_with_padding\":10485760},{\"name\":\"weights\",\"d\":13,\"digits\":2,\"offset\":4096,\"mu\":5,\"live\":23,\"parts\":5,\"log_places\":7,\"keys_covered\":4866048,\"keys_with_padding\":5242880}],\"pending_claims\":10,\"multiplicities\":{\"main_rows\":2,\"mask_rows\":6,\"ell\":131072,\"log_n\":20,\"mask_ell\":1024,\"own_masks\":5968},\"index_mask\":{\"rows\":2,\"entries_taken_on_the_chain\":47},\"proof_bytes\":{\"first\":2137000,\"path\":48,\"shared\":124248,\"second\":98240},\"commit_s\":7.382,\"prove_s\":33.401,\"verify_s\":0.098,\"peak_rss_kb\":2059508}" + ], + "max_rss_kb_time": 2059508, + "stderr_tail": [] +} diff --git a/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H4-c.json b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H4-c.json new file mode 100644 index 00000000..9e587fd0 --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H4-c.json @@ -0,0 +1,18 @@ +{ + "start_utc": "2026-11-29T03:05:22Z", + "args": [ + "hostile", + "H4", + "c" + ], + "input_M_i32_sha256": "ac11d7b74075bcd804bdacd8f5a6d871ac86a4f21d798483f755b3661d7c050d", + "cores": "6-7", + "exit": 134, + "wall_s": 13.086, + "stdout": [], + "max_rss_kb_time": 1887340, + "stderr_tail": [ + "blocks/iop/psc.h:246: psc: the round polynomial does not sum to the running claim", + "Command terminated by signal 6" + ] +} diff --git a/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H5-a.json b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H5-a.json new file mode 100644 index 00000000..5234f194 --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H5-a.json @@ -0,0 +1,17 @@ +{ + "start_utc": "2026-11-29T03:05:35Z", + "args": [ + "hostile", + "H5", + "a" + ], + "input_M_i32_sha256": "ac11d7b74075bcd804bdacd8f5a6d871ac86a4f21d798483f755b3661d7c050d", + "cores": "6-7", + "exit": 0, + "wall_s": 7.878, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"H5-byte-128-in-the-four-digit-unit\",\"form\":\"a\",\"seed\":1,\"served\":false,\"accepted\":false,\"why\":\"not served: wf_prove() returned false, a key of the prover's matrix is in no row of its range table; no proof exists\",\"pending_claims_agree\":false,\"matrix\":[1192,8192],\"k_col\":13,\"units\":[[0,4,4],[4,1188,2]],\"part_log\":8,\"units_fault\":null,\"lines_fault\":null,\"wf_fault\":null,\"lin_fault\":null,\"first_plan_refused\":false,\"bytes_lookup_covers_all_rows\":true,\"table_rows\":128,\"table_ell\":76291,\"table_log_n\":19,\"lookups\":[{\"name\":\"bytes\",\"d\":8,\"digits\":1,\"offset\":128,\"mu\":5,\"live\":24,\"parts\":5,\"log_places\":8,\"keys_covered\":9764864,\"keys_with_padding\":10485760},{\"name\":\"weights\",\"d\":13,\"digits\":2,\"offset\":4096,\"mu\":5,\"live\":23,\"parts\":5,\"log_places\":7,\"keys_covered\":4866048,\"keys_with_padding\":5242880}],\"pending_claims\":10,\"multiplicities\":{\"main_rows\":2,\"mask_rows\":6,\"ell\":131072,\"log_n\":20,\"mask_ell\":1024,\"own_masks\":5968},\"index_mask\":{\"rows\":2,\"entries_taken_on_the_chain\":47},\"proof_bytes\":{\"first\":0,\"path\":0,\"shared\":0,\"second\":0},\"commit_s\":7.238,\"prove_s\":0.403,\"verify_s\":0.000,\"peak_rss_kb\":1359096}" + ], + "max_rss_kb_time": 1359096, + "stderr_tail": [] +} diff --git a/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H5-b.json b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H5-b.json new file mode 100644 index 00000000..91899f8b --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H5-b.json @@ -0,0 +1,17 @@ +{ + "start_utc": "2026-11-29T03:05:43Z", + "args": [ + "hostile", + "H5", + "b" + ], + "input_M_i32_sha256": "ac11d7b74075bcd804bdacd8f5a6d871ac86a4f21d798483f755b3661d7c050d", + "cores": "6-7", + "exit": 0, + "wall_s": 40.962, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"H5-byte-128-in-the-four-digit-unit\",\"form\":\"b\",\"seed\":1,\"served\":true,\"accepted\":false,\"why\":\"second part: a proximity test\",\"pending_claims_agree\":true,\"matrix\":[1192,8192],\"k_col\":13,\"units\":[[0,4,4],[4,1188,2]],\"part_log\":8,\"units_fault\":null,\"lines_fault\":null,\"wf_fault\":null,\"lin_fault\":null,\"first_plan_refused\":false,\"bytes_lookup_covers_all_rows\":true,\"table_rows\":128,\"table_ell\":76291,\"table_log_n\":19,\"lookups\":[{\"name\":\"bytes\",\"d\":8,\"digits\":1,\"offset\":128,\"mu\":5,\"live\":24,\"parts\":5,\"log_places\":8,\"keys_covered\":9764864,\"keys_with_padding\":10485760},{\"name\":\"weights\",\"d\":13,\"digits\":2,\"offset\":4096,\"mu\":5,\"live\":23,\"parts\":5,\"log_places\":7,\"keys_covered\":4866048,\"keys_with_padding\":5242880}],\"pending_claims\":10,\"multiplicities\":{\"main_rows\":2,\"mask_rows\":6,\"ell\":131072,\"log_n\":20,\"mask_ell\":1024,\"own_masks\":5968},\"index_mask\":{\"rows\":2,\"entries_taken_on_the_chain\":47},\"proof_bytes\":{\"first\":2136744,\"path\":48,\"shared\":124088,\"second\":97944},\"commit_s\":7.293,\"prove_s\":33.287,\"verify_s\":0.101,\"peak_rss_kb\":2059508}" + ], + "max_rss_kb_time": 2059508, + "stderr_tail": [] +} diff --git a/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H5-c.json b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H5-c.json new file mode 100644 index 00000000..1190161c --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/runs/hostile-H5-c.json @@ -0,0 +1,18 @@ +{ + "start_utc": "2026-11-29T03:06:24Z", + "args": [ + "hostile", + "H5", + "c" + ], + "input_M_i32_sha256": "ac11d7b74075bcd804bdacd8f5a6d871ac86a4f21d798483f755b3661d7c050d", + "cores": "6-7", + "exit": 134, + "wall_s": 12.877, + "stdout": [], + "max_rss_kb_time": 1887344, + "stderr_tail": [ + "blocks/iop/psc.h:246: psc: the round polynomial does not sum to the running claim", + "Command terminated by signal 6" + ] +} diff --git a/experiments/20261129-237-qwen-wf-head-table/runs/shape.json b/experiments/20261129-237-qwen-wf-head-table/runs/shape.json new file mode 100644 index 00000000..61ba3744 --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/runs/shape.json @@ -0,0 +1,15 @@ +{ + "start_utc": "2026-11-29T02:57:08Z", + "args": [ + "shape" + ], + "input_M_i32_sha256": "ac11d7b74075bcd804bdacd8f5a6d871ac86a4f21d798483f755b3661d7c050d", + "cores": "6-7", + "exit": 0, + "wall_s": 0.076, + "stdout": [ + "{\"mode\":\"shape\",\"matrix\":[1192,8192],\"k_col\":13,\"units\":[[0,4,4],[4,1188,2]],\"part_log\":8,\"units_fault\":null,\"lines_fault\":null,\"wf_fault\":null,\"lin_fault\":null,\"first_plan_refused\":false,\"bytes_lookup_covers_all_rows\":true,\"table_rows\":128,\"table_ell\":76291,\"table_log_n\":19,\"lookups\":[{\"name\":\"bytes\",\"d\":8,\"digits\":1,\"offset\":128,\"mu\":5,\"live\":24,\"parts\":5,\"log_places\":8,\"keys_covered\":9764864,\"keys_with_padding\":10485760},{\"name\":\"weights\",\"d\":13,\"digits\":2,\"offset\":4096,\"mu\":5,\"live\":23,\"parts\":5,\"log_places\":7,\"keys_covered\":4866048,\"keys_with_padding\":5242880}],\"pending_claims\":10,\"multiplicities\":{\"main_rows\":2,\"mask_rows\":6,\"ell\":131072,\"log_n\":20,\"mask_ell\":1024,\"own_masks\":5968},\"index_mask\":{\"rows\":2,\"entries_taken_on_the_chain\":47},\"matrix_weight_min\":-2688,\"matrix_weight_max\":3584,\"row0_min\":-14208,\"row0_max\":2693,\"byte_min\":-128,\"byte_max\":127,\"peak_rss_kb\":65252}" + ], + "max_rss_kb_time": 65252, + "stderr_tail": [] +} diff --git a/experiments/20261129-237-qwen-wf-head-table/runs/summary.json b/experiments/20261129-237-qwen-wf-head-table/runs/summary.json new file mode 100644 index 00000000..5fde54d8 --- /dev/null +++ b/experiments/20261129-237-qwen-wf-head-table/runs/summary.json @@ -0,0 +1,599 @@ +{ + "label": "measured, unreplicated, one shared host, single-threaded runs", + "shape": { + "file": "shape.json", + "start_utc": "2026-11-29T02:57:08Z", + "exit": 0, + "wall_s": 0.076, + "max_rss_kb_time": 65252, + "mode": "shape", + "matrix": [ + 1192, + 8192 + ], + "k_col": 13, + "units": [ + [ + 0, + 4, + 4 + ], + [ + 4, + 1188, + 2 + ] + ], + "part_log": 8, + "units_fault": null, + "lines_fault": null, + "wf_fault": null, + "lin_fault": null, + "first_plan_refused": false, + "bytes_lookup_covers_all_rows": true, + "table_rows": 128, + "table_ell": 76291, + "table_log_n": 19, + "lookups": [ + { + "name": "bytes", + "d": 8, + "digits": 1, + "offset": 128, + "mu": 5, + "live": 24, + "parts": 5, + "log_places": 8, + "keys_covered": 9764864, + "keys_with_padding": 10485760 + }, + { + "name": "weights", + "d": 13, + "digits": 2, + "offset": 4096, + "mu": 5, + "live": 23, + "parts": 5, + "log_places": 7, + "keys_covered": 4866048, + "keys_with_padding": 5242880 + } + ], + "pending_claims": 10, + "multiplicities": { + "main_rows": 2, + "mask_rows": 6, + "ell": 131072, + "log_n": 20, + "mask_ell": 1024, + "own_masks": 5968 + }, + "index_mask": { + "rows": 2, + "entries_taken_on_the_chain": 47 + }, + "matrix_weight_min": -2688, + "matrix_weight_max": 3584, + "row0_min": -14208, + "row0_max": 2693, + "byte_min": -128, + "byte_max": 127, + "peak_rss_kb": 65252 + }, + "honest": { + "accepted": 5, + "n": 5, + "pending_claims_agree": 5, + "commit_s": { + "n": 5, + "median": 7.402, + "sd": 0.0454, + "min": 7.343, + "max": 7.459 + }, + "prove_s": { + "n": 5, + "median": 33.368, + "sd": 0.2117, + "min": 33.145, + "max": 33.719 + }, + "verify_s": { + "n": 5, + "median": 0.097, + "sd": 0.0017, + "min": 0.096, + "max": 0.1 + }, + "wall_s": { + "n": 5, + "median": 41.111, + "sd": 0.1921, + "min": 40.871, + "max": 41.393 + }, + "peak_rss_kb": { + "n": 5, + "median": 1945196, + "sd": 2.1909, + "min": 1945196, + "max": 1945200 + }, + "proof_bytes": { + "n": 5, + "median": 2359976, + "sd": 390.8555, + "min": 2359176, + "max": 2360136 + }, + "first_chain_bytes": { + "n": 5, + "median": 2136712, + "sd": 162.5398, + "min": 2136520, + "max": 2136936 + }, + "fixed": { + "matrix": [ + 1192, + 8192 + ], + "k_col": 13, + "units": [ + [ + 0, + 4, + 4 + ], + [ + 4, + 1188, + 2 + ] + ], + "part_log": 8, + "units_fault": null, + "lines_fault": null, + "wf_fault": null, + "lin_fault": null, + "first_plan_refused": false, + "bytes_lookup_covers_all_rows": true, + "table_rows": 128, + "table_ell": 76291, + "table_log_n": 19, + "lookups": [ + { + "name": "bytes", + "d": 8, + "digits": 1, + "offset": 128, + "mu": 5, + "live": 24, + "parts": 5, + "log_places": 8, + "keys_covered": 9764864, + "keys_with_padding": 10485760 + }, + { + "name": "weights", + "d": 13, + "digits": 2, + "offset": 4096, + "mu": 5, + "live": 23, + "parts": 5, + "log_places": 7, + "keys_covered": 4866048, + "keys_with_padding": 5242880 + } + ], + "pending_claims": 10, + "multiplicities": { + "main_rows": 2, + "mask_rows": 6, + "ell": 131072, + "log_n": 20, + "mask_ell": 1024, + "own_masks": 5968 + }, + "index_mask": { + "rows": 2, + "entries_taken_on_the_chain": 47 + } + }, + "files": [ + "honest-seed1.json", + "honest-seed2.json", + "honest-seed3.json", + "honest-seed4.json", + "honest-seed5.json" + ] + }, + "hostile": { + "H1-a": { + "file": "hostile-H1-a.json", + "start_utc": "2026-11-29T03:01:26Z", + "exit": 0, + "wall_s": 8.046, + "max_rss_kb_time": 1359096, + "case": "H1-in_proj-weight-4096-in-its-low-cell", + "form": "a", + "outcome": "not_served", + "served": false, + "accepted": false, + "why": "not served: wf_prove() returned false, a key of the prover's matrix is in no row of its range table; no proof exists", + "stderr_tail": null, + "proof_bytes": { + "first": 0, + "path": 0, + "shared": 0, + "second": 0 + }, + "peak_rss_kb": 1359096 + }, + "H1-b": { + "file": "hostile-H1-b.json", + "start_utc": "2026-11-29T03:01:34Z", + "exit": 0, + "wall_s": 41.341, + "max_rss_kb_time": 2059508, + "case": "H1-in_proj-weight-4096-in-its-low-cell", + "form": "b", + "outcome": "rejected_by_verifier", + "served": true, + "accepted": false, + "why": "second part: a proximity test", + "stderr_tail": null, + "proof_bytes": { + "first": 2137096, + "path": 48, + "shared": 124120, + "second": 98848 + }, + "peak_rss_kb": 2059508 + }, + "H1-c": { + "file": "hostile-H1-c.json", + "start_utc": "2026-11-29T03:02:16Z", + "exit": 134, + "wall_s": 12.898, + "max_rss_kb_time": 1887340, + "case": null, + "form": "c", + "outcome": "prover_stopped", + "served": null, + "accepted": null, + "why": null, + "stderr_tail": [ + "blocks/iop/psc.h:246: psc: the round polynomial does not sum to the running claim", + "Command terminated by signal 6" + ], + "proof_bytes": null, + "peak_rss_kb": null + }, + "H2-a": { + "file": "hostile-H2-a.json", + "start_utc": "2026-11-29T03:02:28Z", + "exit": 0, + "wall_s": 8.205, + "max_rss_kb_time": 1359092, + "case": "H2-out_proj-weight-minus-4097-bytes-in-range", + "form": "a", + "outcome": "not_served", + "served": false, + "accepted": false, + "why": "not served: wf_prove() returned false, a key of the prover's matrix is in no row of its range table; no proof exists", + "stderr_tail": null, + "proof_bytes": { + "first": 0, + "path": 0, + "shared": 0, + "second": 0 + }, + "peak_rss_kb": 1359092 + }, + "H2-b": { + "file": "hostile-H2-b.json", + "start_utc": "2026-11-29T03:02:37Z", + "exit": 0, + "wall_s": 40.866, + "max_rss_kb_time": 2059512, + "case": "H2-out_proj-weight-minus-4097-bytes-in-range", + "form": "b", + "outcome": "rejected_by_verifier", + "served": true, + "accepted": false, + "why": "second part: a proximity test", + "stderr_tail": null, + "proof_bytes": { + "first": 2137000, + "path": 48, + "shared": 124792, + "second": 98080 + }, + "peak_rss_kb": 2059512 + }, + "H2-c": { + "file": "hostile-H2-c.json", + "start_utc": "2026-11-29T03:03:18Z", + "exit": 134, + "wall_s": 12.924, + "max_rss_kb_time": 1887340, + "case": null, + "form": "c", + "outcome": "prover_stopped", + "served": null, + "accepted": null, + "why": null, + "stderr_tail": [ + "blocks/iop/psc.h:246: psc: the round polynomial does not sum to the running claim", + "Command terminated by signal 6" + ], + "proof_bytes": null, + "peak_rss_kb": null + }, + "H3-a": { + "file": "hostile-H3-a.json", + "start_utc": "2026-11-29T03:03:30Z", + "exit": 0, + "wall_s": 7.871, + "max_rss_kb_time": 1359096, + "case": "H3-byte-cell-128-number-in-range", + "form": "a", + "outcome": "not_served", + "served": false, + "accepted": false, + "why": "not served: wf_prove() returned false, a key of the prover's matrix is in no row of its range table; no proof exists", + "stderr_tail": null, + "proof_bytes": { + "first": 0, + "path": 0, + "shared": 0, + "second": 0 + }, + "peak_rss_kb": 1359096 + }, + "H3-b": { + "file": "hostile-H3-b.json", + "start_utc": "2026-11-29T03:03:38Z", + "exit": 0, + "wall_s": 41.139, + "max_rss_kb_time": 2059508, + "case": "H3-byte-cell-128-number-in-range", + "form": "b", + "outcome": "rejected_by_verifier", + "served": true, + "accepted": false, + "why": "second part: a proximity test", + "stderr_tail": null, + "proof_bytes": { + "first": 2137160, + "path": 48, + "shared": 123608, + "second": 98328 + }, + "peak_rss_kb": 2059508 + }, + "H3-c": { + "file": "hostile-H3-c.json", + "start_utc": "2026-11-29T03:04:19Z", + "exit": 134, + "wall_s": 13.043, + "max_rss_kb_time": 1887344, + "case": null, + "form": "c", + "outcome": "prover_stopped", + "served": null, + "accepted": null, + "why": null, + "stderr_tail": [ + "blocks/iop/psc.h:246: psc: the round polynomial does not sum to the running claim", + "Command terminated by signal 6" + ], + "proof_bytes": null, + "peak_rss_kb": null + }, + "H4-a": { + "file": "hostile-H4-a.json", + "start_utc": "2026-11-29T03:04:33Z", + "exit": 0, + "wall_s": 8.168, + "max_rss_kb_time": 1359092, + "case": "H4-high-digit-16-makes-4096-bytes-in-range", + "form": "a", + "outcome": "not_served", + "served": false, + "accepted": false, + "why": "not served: wf_prove() returned false, a key of the prover's matrix is in no row of its range table; no proof exists", + "stderr_tail": null, + "proof_bytes": { + "first": 0, + "path": 0, + "shared": 0, + "second": 0 + }, + "peak_rss_kb": 1359092 + }, + "H4-b": { + "file": "hostile-H4-b.json", + "start_utc": "2026-11-29T03:04:41Z", + "exit": 0, + "wall_s": 41.162, + "max_rss_kb_time": 2059508, + "case": "H4-high-digit-16-makes-4096-bytes-in-range", + "form": "b", + "outcome": "rejected_by_verifier", + "served": true, + "accepted": false, + "why": "second part: a proximity test", + "stderr_tail": null, + "proof_bytes": { + "first": 2137000, + "path": 48, + "shared": 124248, + "second": 98240 + }, + "peak_rss_kb": 2059508 + }, + "H4-c": { + "file": "hostile-H4-c.json", + "start_utc": "2026-11-29T03:05:22Z", + "exit": 134, + "wall_s": 13.086, + "max_rss_kb_time": 1887340, + "case": null, + "form": "c", + "outcome": "prover_stopped", + "served": null, + "accepted": null, + "why": null, + "stderr_tail": [ + "blocks/iop/psc.h:246: psc: the round polynomial does not sum to the running claim", + "Command terminated by signal 6" + ], + "proof_bytes": null, + "peak_rss_kb": null + }, + "H5-a": { + "file": "hostile-H5-a.json", + "start_utc": "2026-11-29T03:05:35Z", + "exit": 0, + "wall_s": 7.878, + "max_rss_kb_time": 1359096, + "case": "H5-byte-128-in-the-four-digit-unit", + "form": "a", + "outcome": "not_served", + "served": false, + "accepted": false, + "why": "not served: wf_prove() returned false, a key of the prover's matrix is in no row of its range table; no proof exists", + "stderr_tail": null, + "proof_bytes": { + "first": 0, + "path": 0, + "shared": 0, + "second": 0 + }, + "peak_rss_kb": 1359096 + }, + "H5-b": { + "file": "hostile-H5-b.json", + "start_utc": "2026-11-29T03:05:43Z", + "exit": 0, + "wall_s": 40.962, + "max_rss_kb_time": 2059508, + "case": "H5-byte-128-in-the-four-digit-unit", + "form": "b", + "outcome": "rejected_by_verifier", + "served": true, + "accepted": false, + "why": "second part: a proximity test", + "stderr_tail": null, + "proof_bytes": { + "first": 2136744, + "path": 48, + "shared": 124088, + "second": 97944 + }, + "peak_rss_kb": 2059508 + }, + "H5-c": { + "file": "hostile-H5-c.json", + "start_utc": "2026-11-29T03:06:24Z", + "exit": 134, + "wall_s": 12.877, + "max_rss_kb_time": 1887344, + "case": null, + "form": "c", + "outcome": "prover_stopped", + "served": null, + "accepted": null, + "why": null, + "stderr_tail": [ + "blocks/iop/psc.h:246: psc: the round polynomial does not sum to the running claim", + "Command terminated by signal 6" + ], + "proof_bytes": null, + "peak_rss_kb": null + } + }, + "hostile_outcomes": { + "not_served": [ + "H1-a", + "H2-a", + "H3-a", + "H4-a", + "H5-a" + ], + "rejected_by_verifier": [ + "H1-b", + "H2-b", + "H3-b", + "H4-b", + "H5-b" + ], + "prover_stopped": [ + "H1-c", + "H2-c", + "H3-c", + "H4-c", + "H5-c" + ], + "ACCEPTED": [], + "unclear": [] + }, + "hostile_n": 15, + "hostile_accepted": [], + "complete": { + "C1": { + "file": "complete-C1.json", + "start_utc": "2026-11-29T03:08:00Z", + "exit": 0, + "wall_s": 41.108, + "max_rss_kb_time": 2059512, + "case": "C1-weights-4095-and-minus-4096", + "served": true, + "accepted": true, + "why": "accepted", + "peak_rss_kb": 2059512 + }, + "C2": { + "file": "complete-C2.json", + "start_utc": "2026-11-29T03:33:30Z", + "exit": 0, + "wall_s": 41.703, + "max_rss_kb_time": 2059508, + "case": "C2-dt-78848", + "served": true, + "accepted": true, + "why": "accepted", + "peak_rss_kb": 2059508 + }, + "C3": { + "file": "complete-C3.json", + "start_utc": "2026-11-29T03:34:12Z", + "exit": 0, + "wall_s": 41.854, + "max_rss_kb_time": 2059508, + "case": "C3-dt-minus-23424", + "served": true, + "accepted": true, + "why": "accepted", + "peak_rss_kb": 2059508 + }, + "C4": { + "file": "complete-C4.json", + "start_utc": "2026-11-29T03:34:53Z", + "exit": 0, + "wall_s": 44.202, + "max_rss_kb_time": 2059508, + "case": "C4-control-dt-four-digits-127", + "served": true, + "accepted": true, + "why": "accepted", + "peak_rss_kb": 2059508 + } + }, + "complete_accepted": 4, + "complete_n": 4 +} diff --git a/research/coverage/inventory.yaml b/research/coverage/inventory.yaml index a82546ef..70b7ab96 100644 --- a/research/coverage/inventory.yaml +++ b/research/coverage/inventory.yaml @@ -378,6 +378,17 @@ rows: - {file: research/operators/qwen_m3a1/qm3a1.cpp, symbol: 'static std::vector relations('} - {file: research/operators/qwen_m3a1/qm3a1.cpp, symbol: 'static bool lin_check('} note: "does not bound the 3,287,040 matrix weights (rows 1 to 594 of the table); research harness, no security level" + - id: OP-R21 + category: operator + scope: research + element: "Qwen M3a-1 weight table in WF units (research/operators/qwen_m3a1w, issue #237): every cell of the head's digit matrix a signed byte, and every two-digit number (the 3,287,040 in_proj and out_proj weights of one head, and the padding of their rows) in -4,096 .. 4,095" + relation: "experiments/20261129-237-qwen-wf-head-table; world() takes the two lookups from wf_shape_of_units() and wf_lines() for the units {rows 0..3, four digits} and {rows 4..1,191, two digits}; run() calls the unchanged one-time session of blocks/iop/tests/wf_world.h (WF, BATT, LIN under ONE_TIME), whose verifier side is wf_verify_view()" + enforcement: proof_constraint + sites: + - {file: research/operators/qwen_m3a1w/qm3a1w.cpp, symbol: 'const WfShape shape = wf_shape_of_units(KCOL, N_ROWS, N_ROWS, units());'} + - {file: research/operators/qwen_m3a1w/qm3a1w.cpp, symbol: 'accepted = wf_verify_view(W.w, c.key, view, v, &why);'} + - {file: blocks/iop/wf.h, symbol: '[[nodiscard]] inline bool wf_verify(VerifierContext &V'} + note: "no range on the four-digit unit's numbers (row 0 of the PR #231 table: taps, gains, cA, dt_bias) beyond four bytes each; the PR #231 tie is not run on this layout; no product; plans hand-made and unpriced (test-only macros), no security level; the hostile runs do not include a forged lookup on out-of-range keys" # ---------------------------------------------------------------- range and rounding rules - id: RR-01 category: range_rounding diff --git a/research/operators/qwen_m3a1w/README.md b/research/operators/qwen_m3a1w/README.md new file mode 100644 index 00000000..7c708c0e --- /dev/null +++ b/research/operators/qwen_m3a1w/README.md @@ -0,0 +1,67 @@ +# Qwen M3a-1 weight table in WF units: a range proof on one head's matrix weights (issue #237, research only) + +Registration and results: [`experiments/20261129-237-qwen-wf-head-table`](../../../experiments/20261129-237-qwen-wf-head-table/). CPU research harness, not a serving protocol. No existing file is changed: the code includes `blocks/` as it is on main. + +## Result in one paragraph + +Measured, unreplicated, one shared CPU host ([RESULTS.md](../../../experiments/20261129-237-qwen-wf-head-table/RESULTS.md)): the layout below needs no change to `blocks/`; 5 of 5 honest proofs on the real head-0 table verified; the honest prover code served none of the 5 hostile tables; the 5 complete proofs that spoke of the honest matrix against a hostile table's key were rejected; 4 of 4 completeness cases were accepted, one of them the control that shows a four-digit number has no range. **Not shown: that the verifier rejects a proof whose range lookup is false.** No run puts such a proof in front of it (see "What is not covered"). The batch of completeness runs was interrupted from outside after its first run and finished later; RESULTS says how. + +## What is proved + +For V head 0 of layer 0 of the pinned stock Qwen3.8-27B, the 3,288,706 integer weights of [`research/operators/qwen_m3a1`](../qwen_m3a1/README.md) (matrix M, 595 x 8,192) are stored digit by digit, as signed bytes, in a matrix N of 1,192 x 8,192 cells, and N is one committed table (`blocks/iop/index_cpu.h`): + +| rows of N | unit (`blocks/frame/wf_units.h`) | holds | +|---|---|---| +| 0..3 | four digits | M's row 0 (the 1,666 trace-read weights: taps, gains, cA, dt_bias): M[0][c] = N[0][c] + 256 N[1][c] + 65,536 N[2][c] + 2^24 N[3][c] | +| 4..1,191 | two digits | M's rows 1..594 (in_proj and out_proj): M[r][c] = N[3 + r][c] + 256 N[597 + r][c] | + +Digits are balanced (each in [-128, 127]). + +The committer's one-time session of `blocks/iop/tests/wf_world.h` runs on that table, unchanged: index-mask message, WF (`blocks/iop/wf.h`) with the two lookups that `wf_shape_of_units()` derives from the units, BATT over the claims WF leaves, LIN under `TableTest::ONE_TIME`. Acceptance is meant to show, for the matrix that LIN's test pins: + +1. every cell of N is in [-128, 127] (lookup `bytes`, all 1,192 rows); +2. every number of the two-digit unit is in [-4,096, 4,095] (lookup `weights`): the 3,287,040 matrix weights of the head, and the padding numbers of their rows. + +## What the verifier recomputes + +It derives the units, the lookups, the parts and the plan from the public layout, binds the table key it holds (root and record) into the first chain, and runs `wf_verify_view()`: the index-mask message's sample, WF's lookups and proximity test, BATT, then LIN's three chains and the binding path. It reads no weight. + +## How a claim on M is restated on N + +A LIN claim on M, ` = t`, is the claim ` = t` with the same psi and t, g'[3 + r] = g[r] and g'[597 + r] = 256 g[r] for rows 1..594, and g'[q] = 256^q g[0] for q = 0..3. `relay()` in `qm3a1w.cpp` checks the underlying identity cell by cell when it builds N. No such claim is run here: not the tie of `qwen_m3a1`, and no in_proj claim. + +## What is not covered + +- **Row 0's numbers have no range beyond four bytes each.** `wf_units.h`: "Numbers stored in four digits get no range". The completeness control C4 commits dt_bias = 2,139,062,143 (four digits of 127) and is expected to be accepted. The trace-read weights' class lives in the trace (`qwen_m3a1`), and the tie that would connect it to N is restated above, not run. +- **No verifier-side test of a false lookup.** The hostile runs are: (a) the honest prover code on an out-of-range table, which serves no proof; (b) a complete proof whose WF speaks of the honest matrix while the table committed is the hostile one, which tests that WF's claims are checked against the table, not the lookup; (c) keys from the hostile table with the honest matrix's multiplicities, where the prover program stops at its own sumcheck check and no proof exists. A proof with a false lookup would need a forging prover, which is not written. +- No soundness level. The plans are hand-made (`BLK_PLANS_BY_HAND_FOR_A_TEST`, `BLK_TESTED_TABLE_FOR_A_TEST`), every round priced NOTHING, sizes chosen by hand, not by `wf_sized()`. +- No product: no in_proj, out_proj, conv, gate, norm or recurrence. No other head, layer or checkpoint. +- That padding cells are zero. That the table is the advertised checkpoint (the root is whatever the committer made; M's SHA-256 is checked against the merged `weights-head0.json` before the runs, outside the proof). +- Hiding, accuracy, performance. + +## Files + +- `qm3a1w.cpp`: the layout, `relay()` (M to N, with the recomposition check), `world()` (LIN's case, WF's parameters from the units, the first chain's plan), the runs. `MixedHeavy` is the prover side of hostile form (c) only. +- `run_registered.py`: the registered runs on the real table, each to its own file, never overwritten, after checking M's SHA-256 against the merged `experiments/20261121-229-qwen-m3a1-weight-side/runs/weights-head0.json`. +- `run_continuation.py`: finishes a batch that was cut from outside. `run_registered.py` stops at the first run file that exists, so it cannot. This file runs only the cases that have no file, in the batch's order, by calling `run_registered.one()` unchanged, and writes one record (`continuation-.json`, file names and SHA-256 values) next to the runs directory. It refuses unless the files that exist are exactly the first cases of the batch. Used once, for C2, C3, C4 (PREREG amendment A2). +- `summarise.py`: `runs/summary.json`. Hostile outcomes are kept in three separate lists (not served, rejected by the verifier, prover stopped) and never added together. + +## Reproduce + +From the repository root (Python 3, g++ 13; pin cores on a shared host). M.i32 is the output of `research/operators/qwen_m3a1/prepare.py real` (about 232 MB fetched): + +```sh +python3 research/operators/qwen_m3a1/prepare.py real /summary.json +g++ -std=c++17 -O2 -Wall -Wextra -fno-ipa-modref -DBLK_FIELD=2 -DBLK_HASH=1 -I blocks research/operators/qwen_m3a1w/qm3a1w.cpp -o /qm3a1w.bin +python3 research/operators/qwen_m3a1w/run_registered.py /qm3a1w.bin /M.i32 shape +python3 research/operators/qwen_m3a1w/run_registered.py /qm3a1w.bin /M.i32 honest +python3 research/operators/qwen_m3a1w/run_registered.py /qm3a1w.bin /M.i32 hostile +python3 research/operators/qwen_m3a1w/run_registered.py /qm3a1w.bin /M.i32 complete +python3 research/operators/qwen_m3a1w/summarise.py +``` + +The hostile form (c) runs end with signal 6 by design (the prover's own check); `run_registered.py` records the exit code and the last lines of stderr. + +If a batch is cut before it ends, do not delete its files: `python3 research/operators/qwen_m3a1w/run_continuation.py /qm3a1w.bin /M.i32 6-7 --plan` prints what it would keep and run; without `--plan` it runs the rest. + +The committed runs used a binary with SHA-256 `72701131f204de14433a9af84269948a62d1d0028e388b5d0054fb75ccb89142` (g++ 13.3.0, the command above, source at commit c6a708df); compiling that source twice on the lane's host gave the same bytes. Another compiler version need not. diff --git a/research/operators/qwen_m3a1w/qm3a1w.cpp b/research/operators/qwen_m3a1w/qm3a1w.cpp new file mode 100644 index 00000000..44dcd86d --- /dev/null +++ b/research/operators/qwen_m3a1w/qm3a1w.cpp @@ -0,0 +1,297 @@ +// SPDX-License-Identifier: Apache-2.0 +// Research-only (issue #237). Not a serving protocol. +// +// The WF range proof (blocks/iop/wf.h) on the weight table of one Gated DeltaNet head, laid out in +// the units of blocks/frame/wf_units.h. The table of research/operators/qwen_m3a1 (matrix M, +// 595 x 8,192, one integer per cell) is stored digit by digit as signed bytes in a matrix N of +// 1,192 x 8,192 cells: +// unit 0, four digits, rows 0..3 M[0][c] = N[0][c] + 256 N[1][c] + 65,536 N[2][c] + 2^24 N[3][c] +// unit 1, two digits, rows 4..1,191 M[r][c] = N[3 + r][c] + 256 N[597 + r][c], 1 <= r <= 594 +// What WF looks up comes from wf_shape_of_units() and wf_lines() (blocks/frame/wf_units.h, +// blocks/frame/wf_frame.h), unchanged. The session is the committer's one-time session of +// blocks/iop/tests/wf_world.h, unchanged: index-mask message, WF, BATT, LIN under +// TableTest::ONE_TIME (wf_session(), wf_verify_view()). Plans are hand-made and unpriced: no +// soundness level. No existing file is changed. +// +// Usage: qm3a1w.bin shape sizes and faults only, no proof +// qm3a1w.bin honest +// qm3a1w.bin hostile +// qm3a1w.bin complete +// Prints one JSON line. +#define BLK_PLANS_BY_HAND_FOR_A_TEST +#define BLK_TESTED_TABLE_FOR_A_TEST +#include +#include +#include +#include +#include +#include +#include +#include + +#include "iop/tests/wf_world.h" +#include "frame/wf_units.h" + +using namespace blk; + +// The bounds this program states rest on these three constants of blocks/frame/wf_units.h. +static_assert(WF_BYTE_BITS == 8 && WF_WEIGHT_BITS == 13 && WF_SECOND_DIGIT == 256, "the layout assumes bytes, 13-bit weights and the radix 256"); + +static void need(bool ok, const char *s) { if (!ok) { std::fprintf(stderr, "FAIL: %s\n", s); std::exit(1); } } +static double secs(std::chrono::steady_clock::time_point a) { return std::chrono::duration(std::chrono::steady_clock::now() - a).count(); } +static long rss_kb() { rusage u; getrusage(RUSAGE_SELF, &u); return u.ru_maxrss; } + +// ---- public layout ---- +constexpr u64 M_ROWS = 595, COLS = 8192, W_ROWS = 594, N_ROWS = 4 + 2 * W_ROWS; // 1,192 +constexpr unsigned KCOL = 13; +constexpr u64 DT_AT = 1665; // dt_bias: row 0 of M, this column +constexpr unsigned PART_LOG = 8; // a part reads up to 2^8 rows of N (the role of the line `ranges-part`) +constexpr size_t MULT_ELL = size_t(1) << 17, MULT_MASK_ELL = 1024; // message lengths of the multiplicities' codes +static u64 low_row(u64 r) { return 3 + r; } // of M's row r, 1 <= r <= 594 +static u64 high_row(u64 r) { return 597 + r; } +static std::vector units() { return {WfUnit{0, 4, 4}, WfUnit{4, 2 * W_ROWS, 2}}; } + +// Balanced digits: each in -128 .. 127, low first. +static long long balanced(long long w) { return ((w + 128) % 256 + 256) % 256 - 128; } +static void digits_of(long long w, unsigned n, long long *d) { + for (unsigned q = 0; q < n; q++) d[q] = balanced(w), w = (w - d[q]) / 256; + need(w == 0, "a number does not fit its digits"); +} +static void put(std::vector &N, u64 row, u64 column, long long v) { N[row * COLS + column] = (int32_t)v; } +static void put_weight(std::vector &N, u64 r, u64 column, long long w) { // a number of unit 1 + long long d[2]; digits_of(w, 2, d); + put(N, low_row(r), column, d[0]), put(N, high_row(r), column, d[1]); +} +static void put_row0(std::vector &N, u64 column, long long w) { // a number of unit 0 + long long d[4]; digits_of(w, 4, d); + for (unsigned q = 0; q < 4; q++) put(N, q, column, d[q]); +} +static std::vector relay(const std::vector &M) { + std::vector N(N_ROWS * COLS, 0); + for (u64 c = 0; c < COLS; c++) put_row0(N, c, M[c]); + for (u64 r = 1; r < M_ROWS; r++) + for (u64 c = 0; c < COLS; c++) put_weight(N, r, c, M[r * COLS + c]); + // the restatement rule, checked cell by cell: M is that integer combination of N + for (u64 c = 0; c < COLS; c++) need((long long)M[c] == N[c] + 256LL * N[COLS + c] + 65536LL * N[2 * COLS + c] + 16777216LL * N[3 * COLS + c], "row 0 does not recompose"); + for (u64 r = 1; r < M_ROWS; r++) + for (u64 c = 0; c < COLS; c++) need((long long)M[r * COLS + c] == N[low_row(r) * COLS + c] + 256LL * N[high_row(r) * COLS + c], "a weight does not recompose"); + return N; +} +static LinMatrix matrix_of(const std::vector &N) { + LinMatrix m{N_ROWS, COLS, {}}; + m.a.resize(N.size()); + for (size_t i = 0; i < N.size(); i++) m.a[i] = wf_signed(N[i]); + return m; +} + +// ---- the world: lin_world() for N, WF's parameters from the units, the first chain as wf_world() plans it ---- +struct World { + WfWorld w; + WfCase t; + const char *units_fault = nullptr, *lines_fault = nullptr, *wf_fault_ = nullptr, *lin_fault_ = nullptr; + bool plan_refused = false, covers = false; + size_t index_mask_entries = 0, own_masks = 0; +}; +static World world() { + World W; + W.units_fault = wf_units_fault(N_ROWS, N_ROWS, units()); + need(!W.units_fault, "the units are refused"); + const WfShape shape = wf_shape_of_units(KCOL, N_ROWS, N_ROWS, units()); + const WfLines lines = wf_lines(shape, GroupLine(), PART_LOG); + W.lines_fault = lines.fault; + need(!lines.fault, "the lookups cannot be cut into parts"); + WfPublic x; + x.lookups = lines.lookups, x.message_id = 1; // after the index-mask message + const WfMatrix m{KCOL, N_ROWS}; + W.index_mask_entries = wf_index_mask_entries(x, m); + // name v k_lo rows spare ans col bat rate u om w high req leaves draws ahead tight index_mask_rows + LinCase lc = {"qwen m3a1w head table", 7, 6, N_ROWS, 0, 1, 24, 1, 2, 4096, 4096, 4096, true, 1, 0, 12, true, false, 1}; + lc.index_mask_rows = (unsigned)Send::mask_rows_for(W.index_mask_entries, 32, 1); // 32: lin_world()'s second mask code, used when `ahead` + need(lc.index_mask_rows > 0, "no number of index-mask rows has room"); + W.t = WfCase{lc, true}; + W.w.lin = lin_world(lc, TableTest::ONE_TIME); + LinWorld &lw = W.w.lin; + need(lw.codes.mask[lw.S.own_mask_code].ell == 32, "the index-mask message's code has another length than assumed"); + need(lw.S.k_col() == KCOL && lw.S.matrix_rows == N_ROWS, "LIN's shape is not the matrix's"); + + const unsigned draws = lc.draws; + lw.codes.mask.push_back(toy_code(MULT_MASK_ELL, tail_for_positions(draws), 0)); + lw.codes.base.push_back(toy_code(MULT_ELL, tail_for_positions(draws), lw.codes.mask.back().log_n)); + OracleShape s; + s.name = "multiplicities", s.code = (CodeId)(lw.codes.base.size() - 1), s.mask_code = (CodeId)(lw.codes.mask.size() - 1); + s.main_deg = 1, s.answers = 1; + s.main_rows = (size_t)wf_layout(x, MULT_ELL).back().row + 1; + W.own_masks = wf_own_masks(x, m); + s.mask_rows = Send::mask_rows_for(W.own_masks, MULT_MASK_ELL, s.answers); + need(s.mask_rows > 0, "no number of mask rows has room for the lookups' masks"); + x.message = OracleNotice{s, 0}; + x.stages = lin_stages(lw.codes, s.code, s.mask_code, {s}, draws); + x.choice.masks_ride = W.t.masks_ride; + W.w.wf = x; + for (const WfLookup &l : W.w.wf.lookups) W.w.pending += l.parts.size(); + + Plan first = toy_empty_plan(); + lin_plan_send(first, lw.codes, {lw.input}); + wf_toy_plan(first, lw.codes, W.w.wf, wf_matrix_of(lw.S), draws); + plan_member_rows(first, "rows on the table", W.w.pending, lw.S.k_col()); + lin_plan_send(first, lw.codes, lin_message_w(lw.S)); + lin_plan_seal(first); + lw.first = first; + + W.wf_fault_ = wf_fault(lw.codes, W.w.wf, wf_matrix_of(lw.S)); + W.lin_fault_ = lin_fault(lw.codes, lw.S); + W.plan_refused = lw.first->refused(); + W.covers = wf_covers_all_rows(W.w.wf, 0, wf_matrix_of(lw.S)); + return W; +} +static std::string str_or_null(const char *s) { return s ? std::string("\"") + s + "\"" : std::string("null"); } +static std::string sizes_json(const World &W) { + const LinShape &S = W.w.lin.S; + const OracleShape &o = W.w.wf.message.shape; + std::string j = "\"matrix\":[" + std::to_string(N_ROWS) + "," + std::to_string(COLS) + "],\"k_col\":" + std::to_string(KCOL); + j += ",\"units\":[[0,4,4],[4," + std::to_string(2 * W_ROWS) + ",2]],\"part_log\":" + std::to_string(PART_LOG); + j += ",\"units_fault\":" + str_or_null(W.units_fault) + ",\"lines_fault\":" + str_or_null(W.lines_fault) + ",\"wf_fault\":" + str_or_null(W.wf_fault_) + ",\"lin_fault\":" + str_or_null(W.lin_fault_); + j += std::string(",\"first_plan_refused\":") + (W.plan_refused ? "true" : "false") + ",\"bytes_lookup_covers_all_rows\":" + (W.covers ? "true" : "false"); + j += ",\"table_rows\":" + std::to_string(S.fold.index.rows()) + ",\"table_ell\":" + std::to_string(S.fold.index.code.ell) + ",\"table_log_n\":" + std::to_string(S.fold.index.code.log_n); + j += ",\"lookups\":["; + for (size_t i = 0; i < W.w.wf.lookups.size(); i++) { + const WfLookup &l = W.w.wf.lookups[i]; + u64 covered = 0, all = 0; + for (const WfPart &p : l.parts) covered += p.places() << KCOL, all += u64(1) << (p.log_places + KCOL); + j += std::string(i ? "," : "") + "{\"name\":\"" + l.name + "\",\"d\":" + std::to_string(l.d) + ",\"digits\":" + std::to_string(l.digit_weight.size()) + ",\"offset\":" + std::to_string(l.offset.v) + + ",\"mu\":" + std::to_string(l.mu) + ",\"live\":" + std::to_string(l.live) + ",\"parts\":" + std::to_string(l.parts.size()) + ",\"log_places\":" + std::to_string(l.parts[0].log_places) + + ",\"keys_covered\":" + std::to_string(covered) + ",\"keys_with_padding\":" + std::to_string(all) + "}"; + } + j += "],\"pending_claims\":" + std::to_string(W.w.pending); + j += ",\"multiplicities\":{\"main_rows\":" + std::to_string(o.main_rows) + ",\"mask_rows\":" + std::to_string(o.mask_rows) + ",\"ell\":" + std::to_string(MULT_ELL) + ",\"log_n\":" + + std::to_string(W.w.lin.codes.base[o.code].log_n) + ",\"mask_ell\":" + std::to_string(MULT_MASK_ELL) + ",\"own_masks\":" + std::to_string(W.own_masks) + "}"; + j += ",\"index_mask\":{\"rows\":" + std::to_string(W.t.lin.index_mask_rows) + ",\"entries_taken_on_the_chain\":" + std::to_string(W.index_mask_entries) + "}"; + return j; +} + +// Hostile form (c) only. A prover whose lookup keys are read from one matrix (`keys_of`, the +// committed, out-of-range one) and whose multiplicities are those of another (`counts_of`, the +// honest one). WfCpu (blocks/iop/wf.h) cannot be asked for this: it refuses a key outside its +// table. Everything else is WfCpu's and LkpCpu's own code. +class MixedHeavy : public WfHeavy { + public: + MixedHeavy(const WfPublic &x, const WfMatrix &m, const LinMatrix *keys_of, const LinMatrix *counts_of) + : fixed_(wf_lookups(x, m)), keys_(x, m, [keys_of](u64 row, u64 column) { return keys_of->at(row, column); }), + counts_(x, m, [counts_of](u64 row, u64 column) { return counts_of->at(row, column); }) {} + bool multiplicities(size_t lookup, std::vector &count) override { return counts_.multiplicities(lookup, count); } + LkpProver &prover(size_t lookup) override { + std::vector count; + need(counts_.multiplicities(lookup, count), "form c: the matrix that gives the multiplicities is itself out of range"); + const LkpPublic &p = fixed_[lookup]; + std::vector bits(size_t(1) << (p.mu + p.d), E::zero()); + for (size_t t = 0; t < count.size(); t++) + for (size_t j = 0; j < p.planes(); j++) + if ((count[t] >> j) & 1) bits[j + (t << p.mu)] = E::one(); + now_.reset(new LkpCpu(p, keys_.keys(lookup), std::move(bits))); + return *now_; + } + + private: + const std::vector fixed_; + WfCpu keys_, counts_; + std::unique_ptr now_; +}; + +struct Committed { std::unique_ptr index; IndexKey key; }; +static Committed commit(const World &W, const LinMatrix &M, u64 coin) { + Committed c; TestCoins coins(coin); + c.index.reset(new IndexCpu(W.w.lin.S.fold.index, lin_table_rows(W.w.lin.S, M), coins)); + c.key = c.index->key(); + need(!index_key_fault(c.key), "an honest key is refused"); + return c; +} +// Commits `committed`; the prover computes WF, BATT and LIN's W from `spoken` (honest: the same +// matrix); the verifier holds the committed table's key. counts_of (form c): the multiplicities +// come from this matrix instead of `spoken`. +static void run(const World &W, const char *mode, const std::string &name, const char *form, const LinMatrix &committed, const LinMatrix &spoken, u64 seed, + const LinMatrix *counts_of = nullptr) { + EngineCpu engine; + auto t0 = std::chrono::steady_clock::now(); + Committed c = commit(W, committed, 77 + seed); + const double commit_s = secs(t0); + WfSeen p, v; + auto tp = std::chrono::steady_clock::now(); + const WfHeavyMaker mixed = [counts_of](const WfPublic &x, const WfMatrix &size, const LinMatrix &M) { return std::unique_ptr(new MixedHeavy(x, size, &M, counts_of)); }; + const LinView view = counts_of ? wf_session(W.w, *c.index, c.key.rec, spoken, 40 + seed, engine, p, mixed) : wf_session(W.w, *c.index, c.key.rec, spoken, 40 + seed, engine, p); + const double prove_s = secs(tp); + bool accepted = false, pending_agree = false; + const char *why = "not served: wf_prove() returned false, a key of the prover's matrix is in no row of its range table; no proof exists"; + double verify_s = 0; + if (p.served) { + auto tv = std::chrono::steady_clock::now(); + accepted = wf_verify_view(W.w, c.key, view, v, &why); + verify_s = secs(tv); + if (accepted) why = "accepted"; + pending_agree = p.targets == v.targets && p.psi == v.psi && p.targets.size() == W.w.pending; + } + std::printf("{\"mode\":\"%s\",\"case\":\"%s\",\"form\":\"%s\",\"seed\":%llu,\"served\":%s,\"accepted\":%s,\"why\":\"%s\",\"pending_claims_agree\":%s,%s," + "\"proof_bytes\":{\"first\":%zu,\"path\":%zu,\"shared\":%zu,\"second\":%zu},\"commit_s\":%.3f,\"prove_s\":%.3f,\"verify_s\":%.3f,\"peak_rss_kb\":%ld}\n", + mode, name.c_str(), form, (unsigned long long)seed, p.served ? "true" : "false", accepted ? "true" : "false", why, pending_agree ? "true" : "false", sizes_json(W).c_str(), + view.first.size(), view.path.size(), view.shared.size(), view.second.size(), commit_s, prove_s, verify_s, rss_kb()); + std::fflush(stdout); +} + +int main(int argc, char **argv) { + need(argc >= 3, "usage: qm3a1w.bin shape | honest | hostile | complete "); + std::ifstream f(argv[1], std::ios::binary); need(bool(f), "open M.i32"); + std::vector M(M_ROWS * COLS); f.read((char *)M.data(), M.size() * 4); need(f.gcount() == (std::streamsize)(M.size() * 4), "M.i32 size"); + const std::vector N = relay(M); + const World W = world(); + need(!W.wf_fault_ && !W.lin_fault_ && !W.plan_refused && W.covers, W.wf_fault_ ? W.wf_fault_ : W.lin_fault_ ? W.lin_fault_ : "the first chain's plan is refused, or the bytes do not cover every row"); + const std::string mode = argv[2]; + if (mode == "shape") { + long long wmin = 0, wmax = 0, bmin = 0, bmax = 0, r0min = 0, r0max = 0; + for (u64 r = 1; r < M_ROWS; r++) + for (u64 c = 0; c < COLS; c++) wmin = std::min(wmin, M[r * COLS + c]), wmax = std::max(wmax, M[r * COLS + c]); + for (u64 c = 0; c < COLS; c++) r0min = std::min(r0min, M[c]), r0max = std::max(r0max, M[c]); + for (int32_t b : N) bmin = std::min(bmin, b), bmax = std::max(bmax, b); + std::printf("{\"mode\":\"shape\",%s,\"matrix_weight_min\":%lld,\"matrix_weight_max\":%lld,\"row0_min\":%lld,\"row0_max\":%lld,\"byte_min\":%lld,\"byte_max\":%lld,\"peak_rss_kb\":%ld}\n", + sizes_json(W).c_str(), wmin, wmax, r0min, r0max, bmin, bmax, rss_kb()); + return 0; + } + need(argc >= 4, "a seed or a case"); + const std::string arg = argv[3]; + const LinMatrix honest = matrix_of(N); + if (mode == "honest") { + const u64 seed = std::strtoull(arg.c_str(), nullptr, 10); + need(seed >= 1, "seed >= 1"); + run(W, "honest", "honest", "-", honest, honest, seed); + return 0; + } + std::vector X = N; + if (mode == "hostile") { + need(argc == 5, "hostile "); + const std::string form = argv[4]; + need(form == "a" || form == "b" || form == "c", "form a, b or c"); + std::string name; + if (arg == "H1") name = "H1-in_proj-weight-4096-in-its-low-cell", put(X, low_row(1), 0, 4096), put(X, high_row(1), 0, 0); + else if (arg == "H2") name = "H2-out_proj-weight-minus-4097-bytes-in-range", put(X, low_row(515), 0, -1), put(X, high_row(515), 0, -16); + else if (arg == "H3") { + name = "H3-byte-cell-128-number-in-range", put(X, low_row(2), 0, 128); + const long long number = 128 + 256LL * X[high_row(2) * COLS]; + need(number >= -4096 && number <= 4095, "H3: the number left its range, the case would test two things"); + } else if (arg == "H4") name = "H4-high-digit-16-makes-4096-bytes-in-range", put(X, low_row(514), 0, 0), put(X, high_row(514), 0, 16); + else if (arg == "H5") name = "H5-byte-128-in-the-four-digit-unit", put(X, 2, DT_AT, 128); + else need(false, "unknown hostile case"); + const LinMatrix bad = matrix_of(X); + if (form == "a") run(W, "hostile", name, "a", bad, bad, 1); // honest prover code on the hostile table + else if (form == "b") run(W, "hostile", name, "b", bad, honest, 1); // a complete proof that speaks of the honest matrix + else run(W, "hostile", name, "c", bad, bad, 1, &honest); // speaks of the hostile table, with the honest matrix's multiplicities + return 0; + } + need(mode == "complete", "mode: shape | honest | hostile | complete"); + std::string name; + if (arg == "C1") name = "C1-weights-4095-and-minus-4096", put_weight(X, 1, 1, 4095), put_weight(X, 515, 1, -4096); + else if (arg == "C2") name = "C2-dt-78848", put_row0(X, DT_AT, 78848); + else if (arg == "C3") name = "C3-dt-minus-23424", put_row0(X, DT_AT, -23424); + else if (arg == "C4") { name = "C4-control-dt-four-digits-127"; for (unsigned q = 0; q < 4; q++) put(X, q, DT_AT, 127); } + else need(false, "unknown completeness case"); + const LinMatrix changed = matrix_of(X); + run(W, "complete", name, "-", changed, changed, 1); + return 0; +} diff --git a/research/operators/qwen_m3a1w/run_continuation.py b/research/operators/qwen_m3a1w/run_continuation.py new file mode 100644 index 00000000..57e4c303 --- /dev/null +++ b/research/operators/qwen_m3a1w/run_continuation.py @@ -0,0 +1,74 @@ +#!/usr/bin/env python3 +"""Finish a registered batch that was interrupted from outside (PREREG.md, amendment A2). + +run_registered.py runs a whole batch and refuses at the first run file that exists, so after an interruption +it can run nothing more of that batch. This file runs only the cases of the batch that have no file yet, in +the batch's registered order, by calling run_registered.one() unchanged: the function that wrote every other +run file. It never reruns or overwrites a run: it stops before any run unless the files that exist are exactly +the first cases of the batch, and one() itself refuses an existing file. + +It writes one record of what it did, once, next to the runs directory and not inside it (summarise.py reads +every .json of the runs directory as a run): /../continuation-.json. The record holds file +names and SHA-256 values only. + +Usage: run_continuation.py [cores] [--plan] + --plan: print what would be kept and what would be run, and run nothing +""" +import datetime, hashlib, json, sys +from pathlib import Path + +sys.dont_write_bytecode = True +sys.path.insert(0, str(Path(__file__).resolve().parent)) +import run_registered as reg # noqa: E402 + + +def sha256(p): + return hashlib.sha256(Path(p).read_bytes()).hexdigest() + + +def now(): + return datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ") + + +def main(): + argv = [a for a in sys.argv[1:] if a != "--plan"] + plan = "--plan" in sys.argv[1:] + binary, M, runs, batch = argv[0], argv[1], Path(argv[2]), argv[3] + cores = argv[4] if len(argv) > 4 else "6-7" + record = runs.parent / f"continuation-{batch}.json" + if record.exists(): + raise SystemExit(f"refusing: {record.name} exists, this batch was continued before") + cases = reg.BATCHES[batch] + have = [(runs / f"{name}.json").exists() for name, _ in cases] + n_kept = sum(have) + if have != [True] * n_kept + [False] * (len(cases) - n_kept): + raise SystemExit("STOP: the run files that exist are not the first cases of the batch; nothing run") + if n_kept == 0: + raise SystemExit("no run file of this batch exists: that is run_registered.py's job; nothing run") + if n_kept == len(cases): + raise SystemExit("every case of this batch has its file; nothing run") + sha = sha256(M) + want = json.loads(reg.MERGED.read_text())["M_i32_sha256"] + if sha != want: + raise SystemExit(f"STOP: M.i32 sha256 {sha} is not the merged {want}") + kept = [dict(file=f"{name}.json", sha256=sha256(runs / f"{name}.json")) for name, _ in cases[:n_kept]] + todo = cases[n_kept:] + print("kept, not rerun:", [k["file"] for k in kept], flush=True) + print("to run, in this order:", [f"{name}.json" for name, _ in todo], flush=True) + if plan: + print("plan only: nothing run") + return + started = now() + for name, args in todo: + reg.one(binary, M, sha, args, runs / f"{name}.json", cores) + ran = [dict(file=f"{name}.json", sha256=sha256(runs / f"{name}.json")) for name, _ in todo] + after = [dict(file=k["file"], sha256=sha256(runs / k["file"])) for k in kept] + rec = dict(batch=batch, registered_order=[name for name, _ in cases], continuation_start_utc=started, continuation_end_utc=now(), + kept_not_rerun=kept, kept_unchanged_after=(after == kept), ran=ran, binary_sha256=sha256(binary), input_M_i32_sha256=sha, cores=cores, + driver="run_registered.one(), unchanged", driver_sha256=sha256(Path(reg.__file__))) + record.write_text(json.dumps(rec, indent=1) + "\n") + print("wrote", record.name, "kept unchanged:", rec["kept_unchanged_after"], flush=True) + + +if __name__ == "__main__": + main() diff --git a/research/operators/qwen_m3a1w/run_registered.py b/research/operators/qwen_m3a1w/run_registered.py new file mode 100644 index 00000000..cf57e790 --- /dev/null +++ b/research/operators/qwen_m3a1w/run_registered.py @@ -0,0 +1,55 @@ +#!/usr/bin/env python3 +"""Registered runs of experiments/20261129-237-qwen-wf-head-table (PREREG.md) on head 0's REAL table M.i32 +(built by research/operators/qwen_m3a1/prepare.py real; its SHA-256 is checked here against the merged +experiments/20261121-229-qwen-m3a1-weight-side/runs/weights-head0.json before anything runs). + +Each run's output goes to its own file under the runs directory, written once (refuses to overwrite), with +its UTC start time. + +Usage: run_registered.py [cores] + batch: shape | honest | hostile | complete + cores: a taskset list (default 6-7); each run is single-threaded +""" +import datetime, hashlib, json, subprocess, sys, time +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[3] +MERGED = ROOT / "experiments/20261121-229-qwen-m3a1-weight-side/runs/weights-head0.json" + +BATCHES = { + "shape": [("shape", ["shape"])], + "honest": [(f"honest-seed{s}", ["honest", str(s)]) for s in range(1, 6)], + "hostile": [(f"hostile-{h}-{form}", ["hostile", h, form]) for h in ("H1", "H2", "H3", "H4", "H5") for form in ("a", "b", "c")], + "complete": [(f"complete-{c}", ["complete", c]) for c in ("C1", "C2", "C3", "C4")], +} + + +def one(binary, M, sha, args, out, cores): + if out.exists(): + raise SystemExit(f"refusing to overwrite {out.name}") + start = datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ") + t0 = time.time() + r = subprocess.run(["taskset", "-c", cores, "/usr/bin/time", "-v", binary, M] + args, capture_output=True, text=True, timeout=3000) + rss = [l for l in r.stderr.splitlines() if "Maximum resident set size" in l] + rec = dict(start_utc=start, args=args, input_M_i32_sha256=sha, cores=cores, exit=r.returncode, wall_s=round(time.time() - t0, 3), + stdout=r.stdout.strip().splitlines(), max_rss_kb_time=int(rss[0].split()[-1]) if rss else None, + stderr_tail=[l for l in r.stderr.splitlines() if not l.startswith("\t")][-6:]) + out.write_text(json.dumps(rec, indent=1) + "\n") + last = json.loads(rec["stdout"][-1]) if rec["stdout"] else {} + print(out.name, "exit", r.returncode, "served", last.get("served"), "accepted", last.get("accepted"), "|", last.get("why"), flush=True) + + +def main(): + binary, M, runs, batch = sys.argv[1], sys.argv[2], Path(sys.argv[3]), sys.argv[4] + cores = sys.argv[5] if len(sys.argv) > 5 else "6-7" + sha = hashlib.sha256(Path(M).read_bytes()).hexdigest() + want = json.loads(MERGED.read_text())["M_i32_sha256"] + if sha != want: + raise SystemExit(f"STOP: M.i32 sha256 {sha} is not the merged {want}") + runs.mkdir(parents=True, exist_ok=True) + for name, args in BATCHES[batch]: + one(binary, M, sha, args, runs / f"{name}.json", cores) + + +if __name__ == "__main__": + main() diff --git a/research/operators/qwen_m3a1w/summarise.py b/research/operators/qwen_m3a1w/summarise.py new file mode 100644 index 00000000..8e9ca35b --- /dev/null +++ b/research/operators/qwen_m3a1w/summarise.py @@ -0,0 +1,78 @@ +#!/usr/bin/env python3 +"""Summary of the registered runs (each written once by run_registered.py) into /summary.json. +Usage: summarise.py """ +import json, statistics, sys +from pathlib import Path + +FIXED = ("matrix", "k_col", "units", "part_log", "units_fault", "lines_fault", "wf_fault", "lin_fault", "first_plan_refused", + "bytes_lookup_covers_all_rows", "table_rows", "table_ell", "table_log_n", "lookups", "pending_claims", "multiplicities", "index_mask") + + +def load(p): + rec = json.loads(p.read_text()) + last = json.loads(rec["stdout"][-1]) if rec["stdout"] else {} + return rec, last + + +def main(): + runs = Path(sys.argv[1]) + honest, hostile, complete, shape = [], {}, {}, None + for p in sorted(runs.glob("*.json")): + if p.name == "summary.json": + continue + rec, last = load(p) + row = dict(file=p.name, start_utc=rec["start_utc"], exit=rec["exit"], wall_s=rec["wall_s"], max_rss_kb_time=rec["max_rss_kb_time"]) + if p.name == "shape.json": + shape = dict(row, **last) + elif p.name.startswith("honest-"): + honest.append(dict(row, **last)) + elif p.name.startswith("hostile-"): + # Three different outcomes, never added together: + # not_served form (a): the honest prover code returns without a proof + # rejected_by_verifier form (b): a complete proof exists and the verifier rejects it + # prover_stopped form (c): the prover program ends at its own check, no proof exists + if rec["exit"] != 0 and not rec["stdout"]: + outcome = "prover_stopped" + elif last.get("accepted") is True: + outcome = "ACCEPTED" + elif last.get("served") is False: + outcome = "not_served" + elif last.get("served") is True and last.get("accepted") is False: + outcome = "rejected_by_verifier" + else: + outcome = "unclear" + hostile[p.stem[len("hostile-"):]] = dict(row, case=last.get("case"), form=p.stem[-1], outcome=outcome, served=last.get("served"), accepted=last.get("accepted"), + why=last.get("why"), stderr_tail=rec.get("stderr_tail") if outcome == "prover_stopped" else None, + proof_bytes=last.get("proof_bytes"), peak_rss_kb=last.get("peak_rss_kb")) + elif p.name.startswith("complete-"): + complete[p.stem[len("complete-"):]] = dict(row, case=last.get("case"), served=last.get("served"), accepted=last.get("accepted"), why=last.get("why"), + peak_rss_kb=last.get("peak_rss_kb")) + + def stat(f): + v = [f(h) for h in honest] + return dict(n=len(v), median=statistics.median(v), sd=round(statistics.stdev(v), 4) if len(v) > 1 else 0, min=min(v), max=max(v)) if v else None + out = dict( + label="measured, unreplicated, one shared host, single-threaded runs", + shape=shape, + honest=dict(accepted=sum(bool(h.get("accepted")) for h in honest), n=len(honest), + pending_claims_agree=sum(bool(h.get("pending_claims_agree")) for h in honest), + commit_s=stat(lambda h: h["commit_s"]), prove_s=stat(lambda h: h["prove_s"]), verify_s=stat(lambda h: h["verify_s"]), + wall_s=stat(lambda h: h["wall_s"]), peak_rss_kb=stat(lambda h: h["peak_rss_kb"]), + proof_bytes=stat(lambda h: sum(h["proof_bytes"].values())), first_chain_bytes=stat(lambda h: h["proof_bytes"]["first"]), + fixed={k: honest[0][k] for k in FIXED} if honest else None, + files=[h["file"] for h in honest]), + hostile=hostile, + hostile_outcomes={o: sorted(k for k, c in hostile.items() if c["outcome"] == o) for o in ("not_served", "rejected_by_verifier", "prover_stopped", "ACCEPTED", "unclear")}, + hostile_n=len(hostile), + hostile_accepted=[k for k, c in hostile.items() if c["accepted"]], + complete=complete, + complete_accepted=sum(bool(c["accepted"]) for c in complete.values()), complete_n=len(complete), + ) + (runs / "summary.json").write_text(json.dumps(out, indent=1) + "\n") + print(json.dumps(dict(honest=[out["honest"]["accepted"], out["honest"]["n"]], hostile_outcomes={k: len(v) for k, v in out["hostile_outcomes"].items()}, + hostile_accepted=out["hostile_accepted"], complete=[out["complete_accepted"], out["complete_n"]], + prove_s=out["honest"]["prove_s"], verify_s=out["honest"]["verify_s"], peak_rss_kb=out["honest"]["peak_rss_kb"]))) + + +if __name__ == "__main__": + main() diff --git a/research/results.yaml b/research/results.yaml index 29912a2c..6c57029e 100644 --- a/research/results.yaml +++ b/research/results.yaml @@ -2090,3 +2090,26 @@ results: - {"name": "wcc_softplus_offset_heads_outside", "stat": "count", "value": 17, "total": 2304, "unit": "count", "n": 2304, "spread": null, "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "ec2d02e63456e0ac19191414c6c25fde1c5778d7", "source": "experiments/20261129-239-qwen-weight-cell-classes/runs/summary.json", "note": "Measured, unreplicated, descriptive (no bar); heads whose dt_bias alone (dt_int / 4,096) lies outside softplus v1's [-8, 8): 16 at or above 8 (layer 0: 15, layer 58: 1), 1 below -8 (layer 1); bias only, not activations (PR #146)"} - {"name": "wcc_cA_min_sig_bits", "stat": "single", "value": 2, "unit": "int", "n": 2304, "spread": null, "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "ec2d02e63456e0ac19191414c6c25fde1c5778d7", "source": "experiments/20261129-239-qwen-weight-cell-classes/runs/summary.json", "note": "Measured, unreplicated, descriptive; smallest bit length of a head's cA_int over 2,304 heads (layers 12, 28, 44); 357 heads at 5 bits or fewer, 0 at zero; one cA exponent per layer"} - {"name": "wcc_tensors_identical_stock_abl", "stat": "count", "value": 192, "total": 192, "unit": "count", "n": 192, "spread": null, "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "acd0e4b1fbb1f5a74f764d50c09f51ebea992bbb", "source": "experiments/20261129-239-qwen-weight-cell-classes/runs/ckpt-compare.json", "note": "Measured; conv1d, norm, A_log, dt_bias of 48 layers with equal SHA-256 in both pinned checkpoints"} + + - id: qwen-m3a1w-wf-head-table + title: "Qwen M3a-1 weight table in WF units: main's WF range proof run on one DeltaNet head's real weights, no existing file changed (issue #237)" + status: "measured" + replication: "unreplicated" + pr: 245 + summary: "Measured, unreplicated, CPU research harness, hand-made unpriced plans (no security level). The 3,288,706 integer weights of V head 0, layer 0 of the pinned stock Qwen3.8-27B (PR 231's table, SHA-256 checked) are stored as signed-byte digits in a 1,192 x 8,192 matrix: a four-digit unit for the 1,666 trace-read weights and a two-digit unit for the 3,287,040 in_proj and out_proj weights. main's WF range proof (blocks/iop/wf.h with the unit rule of blocks/frame/wf_units.h) was instantiated for it with no change to any existing file: no interface is missing. An accepted proof is meant to show every cell in -128..127 and every two-digit number in -4,096..4,095. 5 of 5 honest proofs verified. Hostile, 5 tables: the honest prover code served none (5 of 5); a complete proof that speaks of the honest matrix against the hostile table's key was rejected by the verifier (5 of 5, at LIN's proximity test: this tests the tie of WF's claims to the table, not the lookup); with out-of-range keys and the honest multiplicities the prover program stopped at its own check (5 of 5, no proof, not a verifier rejection). 4 of 4 completeness cases accepted, including the control that a four-digit number of 2,139,062,143 is accepted. NOT established: that the verifier rejects a false range lookup (no run gives it one; that needs a forging prover, not written); any soundness level; any range on the 1,666 trace-read weights beyond four bytes each; the PR 231 tie and the in_proj composition on this layout (restated in the PREREG, not run); any product; hiding; that the table is the advertised checkpoint; accuracy; performance. The completeness batch was interrupted from outside after its first run and finished 25 minutes later by a continuation instance (PREREG amendment A2)" + conditions: "CPU only, cores 6-7 of a shared loaded host, single-threaded runs through the heavy-job gate, g++ 13.3.0 -O2, one binary for all 25 runs (SHA-256 in ENV.json, reproduced from the committed source); PREREG first and alone, amendment A1 (sizes, hostile form c) before any registered run, amendment A2 (interruption) before the last three runs; debug only on a synthetic fixture (numpy seed 9101); plans hand-made (test-only macros), every round priced NOTHING; branch not brought up to a later main" + evidence: ["experiments/20261129-237-qwen-wf-head-table/RESULTS.md", "experiments/20261129-237-qwen-wf-head-table/PREREG.md", "experiments/20261129-237-qwen-wf-head-table/ENV.json", "experiments/20261129-237-qwen-wf-head-table/runs/summary.json", "experiments/20261129-237-qwen-wf-head-table/continuation-complete.json", "research/operators/qwen_m3a1w/README.md"] + metrics: + - {"name": "qm3a1w_honest_accepted", "stat": "count", "value": 5, "unit": "count", "n": 5, "spread": null, "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "ead40858b79e6b31b83ba9ba6e2dff7904654dbf", "source": "experiments/20261129-237-qwen-wf-head-table/runs/summary.json", "note": "Measured, unreplicated; honest proofs (WF, BATT, LIN one-time) on the real head-0 table accepted, seeds 1..5; verdict did not vary", "total": 5} + - {"name": "qm3a1w_hostile_not_served", "stat": "count", "value": 5, "unit": "count", "n": 1, "spread": null, "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "ead40858b79e6b31b83ba9ba6e2dff7904654dbf", "source": "experiments/20261129-237-qwen-wf-head-table/runs/summary.json", "note": "Measured, unreplicated; hostile form (a), tables H1..H5: the honest prover code serves no proof (prover side, not a verifier rejection); one run each, seed 1", "total": 5} + - {"name": "qm3a1w_hostile_rejected_by_verifier", "stat": "count", "value": 5, "unit": "count", "n": 1, "spread": null, "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "ead40858b79e6b31b83ba9ba6e2dff7904654dbf", "source": "experiments/20261129-237-qwen-wf-head-table/runs/summary.json", "note": "Measured, unreplicated; hostile form (b), tables H1..H5: a complete proof that speaks of the honest matrix, hostile table committed, rejected by the verifier at LIN's proximity test; tests the tie of WF's claims to the table, NOT the lookup; one run each, seed 1", "total": 5} + - {"name": "qm3a1w_hostile_prover_stopped", "stat": "count", "value": 5, "unit": "count", "n": 1, "spread": null, "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "ead40858b79e6b31b83ba9ba6e2dff7904654dbf", "source": "experiments/20261129-237-qwen-wf-head-table/runs/summary.json", "note": "Measured, unreplicated; hostile form (c) (added by amendment A1, not in the PASS condition), tables H1..H5: the prover program ends at its own sumcheck check, no proof exists; NOT a verifier rejection; one run each, seed 1", "total": 5} + - {"name": "qm3a1w_hostile_accepted", "stat": "count", "value": 0, "unit": "count", "n": 1, "spread": null, "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "ead40858b79e6b31b83ba9ba6e2dff7904654dbf", "source": "experiments/20261129-237-qwen-wf-head-table/runs/summary.json", "note": "Measured, unreplicated; hostile runs accepted by the verifier, of 15 (5 tables, forms a, b, c); no run gives the verifier a complete proof with a false lookup, so this 0 does not show that such a proof is rejected", "total": 15} + - {"name": "qm3a1w_completeness_accepted", "stat": "count", "value": 4, "unit": "count", "n": 1, "spread": null, "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "ead40858b79e6b31b83ba9ba6e2dff7904654dbf", "source": "experiments/20261129-237-qwen-wf-head-table/runs/summary.json", "note": "Measured, unreplicated; completeness cases C1..C4 accepted, seed 1; C4 is the registered control (a four-digit number of 2,139,062,143 is accepted: four-digit units get no range); C1 ran before an outside interruption, C2..C4 after it (PREREG amendment A2)", "total": 4} + - {"name": "qm3a1w_bytes_keys", "stat": "single", "value": 9764864, "unit": "count", "n": 5, "spread": null, "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "ead40858b79e6b31b83ba9ba6e2dff7904654dbf", "source": "experiments/20261129-237-qwen-wf-head-table/runs/summary.json", "note": "Measured; keys read by the bytes lookup (every cell of the 1,192 x 8,192 digit matrix); deterministic, same in all 5 honest runs"} + - {"name": "qm3a1w_weights_keys", "stat": "single", "value": 4866048, "unit": "count", "n": 5, "spread": null, "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "ead40858b79e6b31b83ba9ba6e2dff7904654dbf", "source": "experiments/20261129-237-qwen-wf-head-table/runs/summary.json", "note": "Measured; keys read by the two-digit lookup: 3,287,040 matrix weights plus 1,579,008 padding numbers of their rows; deterministic, same in all 5 honest runs"} + - {"name": "qm3a1w_commit_s_median", "stat": "median", "value": 7.402, "unit": "s", "n": 5, "spread": {"sd": 0.0454, "min": 7.343, "max": 7.459}, "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "ead40858b79e6b31b83ba9ba6e2dff7904654dbf", "source": "experiments/20261129-237-qwen-wf-head-table/runs/summary.json", "note": "Measured, unreplicated, descriptive (n = 5, below the 10 a performance claim needs); commit of the table, single thread, shared loaded host"} + - {"name": "qm3a1w_prove_s_median", "stat": "median", "value": 33.368, "unit": "s", "n": 5, "spread": {"sd": 0.2117, "min": 33.145, "max": 33.719}, "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "ead40858b79e6b31b83ba9ba6e2dff7904654dbf", "source": "experiments/20261129-237-qwen-wf-head-table/runs/summary.json", "note": "Measured, unreplicated, descriptive (n = 5); WF, BATT and LIN prove wall time, table commit not included, single thread, shared loaded host"} + - {"name": "qm3a1w_verify_s_median", "stat": "median", "value": 0.097, "unit": "s", "n": 5, "spread": {"sd": 0.0017, "min": 0.096, "max": 0.1}, "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "ead40858b79e6b31b83ba9ba6e2dff7904654dbf", "source": "experiments/20261129-237-qwen-wf-head-table/runs/summary.json", "note": "Measured, unreplicated, descriptive (n = 5); verify wall time, single thread, shared loaded host"} + - {"name": "qm3a1w_peak_rss_kib_median", "stat": "median", "value": 1945196, "unit": "KiB", "n": 5, "spread": {"sd": 2.1909, "min": 1945196, "max": 1945200}, "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "ead40858b79e6b31b83ba9ba6e2dff7904654dbf", "source": "experiments/20261129-237-qwen-wf-head-table/runs/summary.json", "note": "Measured, unreplicated; getrusage max RSS of the whole process (commit, prove, verify), ru_maxrss in KiB; honest runs"} + - {"name": "qm3a1w_proof_bytes_median", "stat": "median", "value": 2359976, "unit": "B", "n": 5, "spread": {"sd": 390.8555, "min": 2359176, "max": 2360136}, "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "ead40858b79e6b31b83ba9ba6e2dff7904654dbf", "source": "experiments/20261129-237-qwen-wf-head-table/runs/summary.json", "note": "Measured, unreplicated; all four parts of the proof (first chain, path, shared, second); hand-made unpriced plan, so not the size at any security level"}