Skip to content

lane: a Qwen layout of the WF range proof on the committed head table: every in_proj and out_proj weight of layer 0, V head 0 proved in [-4,096, 4,095] (M3a-1, CPU) #237

Backlog

Description

@wakesync

Question. PR #231 committed all 3,288,706 integer weights of Qwen3.8-27B layer 0, V head 0 in one table, and bounded the 1,666 weights the trace reads. The other 3,287,040 (the in_proj and out_proj rows) are "committed but not bounded by anything" (experiments/20261121-229-qwen-m3a1-weight-side/RESULTS.md, "What bounds each kind of weight"). Can main's WF range proof (blocks/iop/wf.h, blocks/frame/wf_units.h), which exists only for upstream's Maverick layout, be instantiated for this head's table without changing any file under blocks/, so that every matrix weight is proved in [-4,096, 4,095]?

Why it is on the shortest path. DESIGN section 6 forbids any relation that multiplies two values unless each has a proved bound; for matrix weights the only listed source is "a WF range proof on the table. Exists for upstream's Maverick layout only; a Qwen layout is a build obligation". Every later claim of M3a-1 that multiplies these weights (in_proj, now being built under #229; out_proj; the MLP) has no proved bound on its weight factor until this exists. DESIGN 6.2 shows the fallback (an in-oracle class on every weight) needs 9,866,118 keys and fits no 2^22 table, so WF is the only route in the design.

Milestone (one lane, about 2.5 hours).

  1. PREREG first, alone: the layout. WF ranges signed-byte cells and two-digit units (low + 256 high, range [-4,096, 4,095], wf_units.h). Matrix rows become two-digit units (two byte rows per weight row); row 0 holds dt_bias, whose real values reach 78,848, so it must be a four-digit unit (bytes only, no number range; its cells keep their in-trace class from PR research: Qwen M3a-1 weight side, committed head-0 weight table and cell tie (#229) #231). Write down the matrix shape, k_col, the units, which LIN claims change (each claim on a weight row becomes digit 0 + 256 digit 1, still linear), and how the PR research: Qwen M3a-1 weight side, committed head-0 weight table and cell tie (#229) #231 tie is restated on the new layout. State what WF proves and what it does not (four-digit units get no number range, wf_units.h).
  2. New directory research/operators/qwen_m3a1w/, including existing headers unchanged. Re-lay the head-0 table, run WF + member + LIN with the plan style of blocks/iop/tests/wf_world.h. If a needed interface is missing from blocks/, stop and name it exactly: that is a valid result.
  3. Honest: at least 5 proofs (different prover randomness). Hostile, each at least once with its refusal line and the source line that prints it: one in_proj weight 4,096 in the committed table; one out_proj weight -4,097; a byte cell 128; a table whose high digit makes 4,096 from in-range bytes. Completeness: real head-0 extremes accepted (|w| <= 3,584 by the conversion).
  4. One coverage inventory row, check_inventory.py ok; one results row.

Out of scope. in_proj or out_proj products (the inproj229 lane and later steps); any other head or layer; any soundness level (the plan is hand-made and unpriced, as in PR #231); any change to blocks/, prover/, verifier/ or research/operators/qwen_m3a1/.

Negative result. WF cannot be instantiated for this layout without editing blocks/ (name the interface), or a registered hostile table is accepted (stop, report as a soundness finding, fix nothing in the same step).

Estimate. CPU, one table of about 6.6M byte cells (2^23 positions or fewer after encoding), under 4 GB; compile several minutes of one core, each run seconds to a minute. Weights: reuse the head-0 data of PR #231's lane (layer 0 of the pinned stock revision, about 232 MB), SHA-256 checked against the merged runs/weights-head0.json.

Activity

  1. added
    loop:active
    P1
    gate:0
    on Nov 29, 2026
  2. wakesync commented on Nov 29, 2026

    @wakesync
    OwnerAuthor

    Lane wf229, draft PR #245 (head b8b99dc). Measured, unreplicated, CPU research harness, hand-made unpriced plans: no security level.

    Answer to the question: yes. main's WF range proof (blocks/iop/wf.h with the unit rule of blocks/frame/wf_units.h) runs on this head's table with no change to any existing file. No interface is missing. The layout is a 1,192 x 8,192 matrix of signed-byte digits: a four-digit unit for the old row 0 (the 1,666 trace-read weights) and a two-digit unit for the 3,287,040 in_proj and out_proj weights.

    Verdict vs the registration: PASS on all four conditions (experiments/20261129-237-qwen-wf-head-table/RESULTS.md):

    • honest, real head-0 table: 5 of 5 accepted;
    • 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, "second part: a proximity test", blocks/iop/tests/wf_world.h line 296);
    • completeness: 4 of 4 accepted, including the control that a four-digit number of 2,139,062,143 is accepted (four-digit units get no range).

    NOT established, and it matters for how this is used:

    • That the verifier rejects a proof whose range lookup is false. No run gives it one. The two registered hostile forms test the honest prover's refusal and the tie of WF's claims to the committed table, not the lookup. A third form (out-of-range keys with the honest multiplicities, added by amendment before any registered run) ended in the prover's own check in 5 of 5 (blocks/iop/psc.h line 246): no proof, so not a verifier rejection. A forging prover was not written.
    • Any soundness level; any range on the 1,666 trace-read weights beyond four bytes each; the PR research: Qwen M3a-1 weight side, committed head-0 weight table and cell tie (#229) #231 tie and the in_proj composition on this layout (the rule is written in the PREREG, not run); any product.

    Where the issue's text was off (details in the PREREG): WF is not specific to upstream's layout, only a Qwen list of units and a run were missing; the matrix WF ranges has 9,764,864 cells, not about 6.6M; the table encodes to 2^26 stored field elements, not 2^23 positions; hostile cases 1 and 4 are the same table in balanced digits and were registered as two different tables; an honest prover serves no proof for an out-of-range table, so there is no "refusal line" for that form.

    Interruption: the batch of completeness runs was cut from outside after its first run (a restart of the host service that runs the lane) and finished 25 minutes later by a continuation instance, after PREREG amendment A2 was pushed. Same binary, input, seed, order and cores; no run file rerun or changed. RESULTS states it.

    One coverage inventory row (OP-R21) and one research/results.yaml row (must merge with a merge commit). The branch was not brought up to current main in this step and conflicts with it in the three ledger files (README.md, CLAIMS.md, research/results.yaml). Because of that, no CI check has run on the last two commits; the last CI runs (at ead4085, before the ledger row) were green, and the same checks pass on the lane's host at the head.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1gate:0loop:active

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions