diff --git a/CLAIMS.md b/CLAIMS.md index 16f5d945..895b4ce5 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-silu-stage-repairs-222` | Qwen M3 SiLU stage repairs: exact worst-case error of 22 candidate operators over the whole range-checked class, and the ledger rows each moves (desk note, issue #222): Computed with exact integer and rational arithmetic, unreplicated; no model, no weights, no proof, no token measurement. Against T = RNE(2^12 silu(gw / 2^12)) over every integer \|gw\| < 2^23 (enumeration to 2^20, a checked tail lemma beyond; 0 undecided; the 4,096 pinned v1 rows equal T at their grid points). Registered threshold (MLP use): HOLDS, 9 of 22 registered candidates meet all three items (every range-proved branch and every excess form): worst error on [2^15, 2^23) 3 to 26 units of 2^-12 (bar 32), every MLP ledger row below 2^63 (worst 2^55.024, s u row 2^47.0), selector or excess witnesses bound by two relations (hand argument, exhaustive on a toy format, 21 listed assignments each for two candidates at the real format). NEGATIVE for sharing: if the same operator also replaces the SiLU where bounds.py uses its image bound outside the MLP, the row q: 362 Rc x - 2^36 q - r is 2^68.5 at the class-edge bound and 2^67.5 at the exact image for all 9, above 2^63; no other shared row fails. All 13 clip candidates (midpoint index, finer step, wider table) keep every row and fail the error item: 8,126,479 to 8,355,866 units at the class edge. v1 in its domain: worst 17, mean -3.7439; midpoint index: worst 9 on its table range, mean 0.2541. floor(s u / 2^12) needs 36 bits for branch or excess, which is also the largest exact h class that keeps the down projection below 2^63 (2^62.098). NOT established: any token effect or token bar; a built statement or its soundness (the lowering is counted, not implemented, and the binding argument is not reviewed); whether the q path can keep its own bounded operator; how often honest h reaches 2^23 | measured, unreplicated (computed with exact arithmetic; nothing measured on a model, no proof built) | unreplicated | [experiments/20261129-222-silu-repairs/RESULTS.md](experiments/20261129-222-silu-repairs/RESULTS.md), [experiments/20261129-222-silu-repairs/PREREG.md](experiments/20261129-222-silu-repairs/PREREG.md), [experiments/20261129-222-silu-repairs/ENV.json](experiments/20261129-222-silu-repairs/ENV.json), [experiments/20261129-222-silu-repairs/runs/run-1.json](experiments/20261129-222-silu-repairs/runs/run-1.json), [experiments/20261129-222-silu-repairs/runs/table.md](experiments/20261129-222-silu-repairs/runs/table.md), [experiments/20261129-222-silu-repairs/unit_tests.json](experiments/20261129-222-silu-repairs/unit_tests.json), [experiments/20261129-222-silu-repairs/README.md](experiments/20261129-222-silu-repairs/README.md) | #235 | diff --git a/README.md b/README.md index 1d7affcc..aca845ac 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 M3 SiLU stage repairs: exact worst-case error of 22 candidate operators over the whole range-checked class, and the ledger rows each moves (desk note, issue #222) | measured, unreplicated (computed with exact arithmetic; nothing measured on a model, no proof built) | Computed with exact integer and rational arithmetic, unreplicated; no model, no weights, no proof, no token measurement. Against T = RNE(2^12 silu(gw / 2^12)) over every integer \|gw\| < 2^23 (enumeration to 2^20, a checked tail lemma beyond; 0 undecided; the 4,096 pinned v1 rows equal T at their grid points). Registered threshold (MLP use): HOLDS, 9 of 22 registered candidates meet all three items (every range-proved branch and every excess form): worst error on [2^15, 2^23) 3 to 26 units of 2^-12 (bar 32), every MLP ledger row below 2^63 (worst 2^55.024, s u row 2^47.0), selector or excess witnesses bound by two relations (hand argument, exhaustive on a toy format, 21 listed assignments each for two candidates at the real format). NEGATIVE for sharing: if the same operator also replaces the SiLU where bounds.py uses its image bound outside the MLP, the row q: 362 Rc x - 2^36 q - r is 2^68.5 at the class-edge bound and 2^67.5 at the exact image for all 9, above 2^63; no other shared row fails. All 13 clip candidates (midpoint index, finer step, wider table) keep every row and fail the error item: 8,126,479 to 8,355,866 units at the class edge. v1 in its domain: worst 17, mean -3.7439; midpoint index: worst 9 on its table range, mean 0.2541. floor(s u / 2^12) needs 36 bits for branch or excess, which is also the largest exact h class that keeps the down projection below 2^63 (2^62.098). NOT established: any token effect or token bar; a built statement or its soundness (the lowering is counted, not implemented, and the binding argument is not reviewed); whether the q path can keep its own bounded operator; how often honest h reaches 2^23 | Preregistered (experiments/20261129-222-silu-repairs/PREREG.md first and alone; three dated amendments, each committed before the computation it covers, and one appended time-correction note); Python 3.12.3 standard library, integers and fractions only (float64 in one cross-check unit test and in log2 display columns); CPU, cores 2-5 of a shared loaded host, about 13 s and 260 MiB per run; the registered computation run twice, outputs byte-identical (a registered exception to the five-run standard: no run-to-run variance); bounds.py and count_m3.py imported unchanged, ledger rows copied with attribution; unit tests passed on the third run, the two failed outputs are committed; deviations listed in RESULTS.md | [experiments/20261129-222-silu-repairs/RESULTS.md](experiments/20261129-222-silu-repairs/RESULTS.md) | _Last regenerated from `research/results.yaml` on 2026-11-29 (UTC), against main `57460851`._ diff --git a/experiments/20261129-222-silu-repairs/ENV.json b/experiments/20261129-222-silu-repairs/ENV.json new file mode 100644 index 00000000..23aeb7f6 --- /dev/null +++ b/experiments/20261129-222-silu-repairs/ENV.json @@ -0,0 +1,51 @@ +{ + "experiment": "20261129-222-silu-repairs (issue #222, lane silu222)", + "kind": "desk note with exact integer and rational arithmetic; no model, no weights, no proof, no token measurement", + "commits": { + "branch_base": "cdf78449d390a1f62dc77d28c5cf6cb8c0bb1b02 (main at the time the branch was made; main was not brought in afterwards)", + "prereg": "174863c03731eab4b4eb919d2de7548d113ec0d2 (PREREG.md alone, first commit, 2026-11-29T02:04:29Z)", + "amendment_1": "0d06257019e554dbb5304e5111dbe65309e8fbaf (2026-11-29T02:22:07Z, before any code)", + "amendment_2": "7b7b7d94dd766314e2de9dc613b5cedfd1875257 (2026-11-29T02:40:39Z, after unit-test run 1, before the rerun)", + "code_and_unit_tests": "e47c6d06a42f71c8ffdd322fc83c6fc425e5657e (2026-11-29T02:43:57Z; silu_core.py, ledger.py, relation.py, unit_tests.py, unit_tests.json and the two failed outputs)", + "amendment_3_and_driver": "9322248deacb1badd40fab7378ff32565813709a (2026-11-29T02:55:58Z; PREREG Amendment 3, compute.py, debug/toy.json; before the registered run)", + "registered_runs": "6e25a7089d60cd1e3adc2258ab09fc7bd99d651c (2026-11-29T02:58:47Z; runs/run-1.json, run-2.json, table.md, run-1.time, run-2.time)", + "code_at_run": "9322248deacb1badd40fab7378ff32565813709a", + "times_are": "committer times from git log, UTC" + }, + "inputs_read_from_the_repository_unchanged": { + "research/operators/qwen_ops/tables/silu-f12.i64le": "sha256 cb2ceb05c7a1292a064e8d6d63cf9b63926db1122ea19663faecee21752bf8e9 (the pinned v1 table, 4,096 rows)", + "research/operators/qwen_m3/bounds.py": "sha256 bcdefacea39a1089794ad51ae07781b836b76c3d1f51437f72141b6f12339fa1 (imported and read; rows copied with attribution into ledger.py; the file is not edited)", + "research/operators/qwen_m3/count_m3.py": "imported unchanged for the statement counts", + "experiments/20261112-132-int-mlp-e2e/runs/ranges-abl.jsonl": "read for the largest recorded |gw| (layers 0 to 30)", + "experiments/20261112-132-int-mlp-e2e/runs-resume150b/runs/ranges-abl.jsonl": "read for the largest recorded |gw| (layers 31 to 63)" + }, + "outputs": { + "runs/run-1.json": "sha256 bdafccf530b2529b05b80fe0aeb44e29f5e9eb08d6e90ca4c07b12d2d1bfb4e6", + "runs/run-2.json": "sha256 bdafccf530b2529b05b80fe0aeb44e29f5e9eb08d6e90ca4c07b12d2d1bfb4e6 (byte-identical to run-1.json)", + "runs/table.md": "sha256 f4764ee8afc3a486793ad5387ee95741d288dcfb3c5cb811ad7151b5bb7d9744 (written by run 1)", + "unit_tests.json": "sha256 f34d8118f27b88b5ac38a4c461bd3251b26651e05e63c16c37b847aca222a075 (run 3 of the unit tests, all pass)" + }, + "toolchain": { + "python": "3.12.3, standard library only (fractions, json, math, importlib, pathlib, hashlib); numpy is not used", + "arithmetic": "Python integers and fractions.Fraction for every reported number; float64 only in unit test U2 (a cross-check that must agree) and in the log2 display columns", + "compiled_code": "none", + "launch_run_1": "taskset -c 2-5 /usr/bin/time -v -o experiments/20261129-222-silu-repairs/runs/run-1.time python3 experiments/20261129-222-silu-repairs/compute.py experiments/20261129-222-silu-repairs/runs/run-1.json --table experiments/20261129-222-silu-repairs/runs/table.md", + "launch_run_2": "the same with runs/run-2.time and runs/run-2.json, without --table", + "launch_note": "the python command is the one recorded in the two .time files; the taskset and time wrapper is the lane's recorded procedure (cores 2-5), the pinning itself is not recorded in a committed file" + }, + "hardware": { + "cpu": "AMD EPYC-Rome Processor, 16 vCPU KVM VM, 1 thread per core (results.yaml key cpu-epyc-rome-kvm-16), shared with other lanes and loaded", + "os": "Linux 6.8.0 x86_64", + "gpu": "none", + "pinning": "cores 2-5 (single-threaded script)", + "time_v": { + "run_1": {"elapsed_wall_s": 12.88, "user_s": 11.65, "system_s": 1.22, "max_rss_kib": 262480, "exit_status": 0}, + "run_2": {"elapsed_wall_s": 12.88, "user_s": 11.59, "system_s": 1.28, "max_rss_kib": 262356, "exit_status": 0} + }, + "note": "wall time and memory are incidental; no performance claim is made" + }, + "seeds": [], + "seeds_note": "none: deterministic exact arithmetic, no randomness", + "repeats": "the registered computation was run twice from the committed code and compared by SHA-256 (identical). This is below the project's five-run standard and is registered in the PREREG as an exception: there is no run-to-run variance to estimate.", + "process_note": "the lane was interrupted by a restart of the host service that runs lanes after the registered runs were committed and pushed; ENV.json, RESULTS.md, README.md and the results row were written by a continuation of the same lane from the committed run files. No computation was rerun." +} diff --git a/experiments/20261129-222-silu-repairs/PREREG.md b/experiments/20261129-222-silu-repairs/PREREG.md new file mode 100644 index 00000000..c12e8db8 --- /dev/null +++ b/experiments/20261129-222-silu-repairs/PREREG.md @@ -0,0 +1,333 @@ +# PREREG: 20261129-222-silu-repairs +Issue: #222. Lane: silu222. Date (UTC): 2026-11-29T02:04Z. Base commit: cdf78449d390a1f62dc77d28c5cf6cb8c0bb1b02. + +A desk note with exact arithmetic. No model, no weights, no proof, no token measurement. This file is +the first commit, alone. Everything below the heading "Amendments" is empty at registration. + +## Hypothesis +At least one of the registered SiLU-stage candidates (a) to (e) removes the high-side clip error +(worst |s - T| over every integer gw in [2^15, 2^23) at most 32 units of 2^-12), keeps every +recomputed ledger row below 2^63, and has a branch selector that is bound by exact-class relations +of the statement. T is the exact target defined under Metric. + +## Metric + +### Target +F = 12, values in units of 2^-12. The class is every integer gw with |gw| < 2^23 (the range-checked +class of `research/operators/qwen_m3/bounds.py`, `rng`). The target is + + T(gw) = RNE(2^12 silu(gw / 2^12)) = RNE(gw / (1 + exp(-gw / 4096))) + +as a real-number rounding, not a float64 one. How it is computed exactly: + +1. c = exp(-1/4096) is enclosed between two rationals by the alternating Taylor series (odd partial + sum below, even partial sum above), then rounded outward to integers at scale Q = 2^192. +2. E_g = exp(-g / 4096) = c^g is enclosed for g = 0, 1, 2, ... by the recurrence + lo_g = floor(lo_(g-1) c_lo / Q), hi_g = floor(hi_(g-1) c_hi / Q) + 1 in Python integers. Every + step rounds outward, so lo_g / Q <= E_g <= hi_g / Q for every g. +3. For gw = g >= 0 the real value is y = g / (1 + E_g), in [g Q / (Q + hi_g), g Q / (Q + lo_g)]. + For gw = -g < 0 it is y = -g E_g / (1 + E_g), in [-g hi_g / (Q + hi_g), -g lo_g / (Q + lo_g)]. + T is decided only if both ends of the enclosure round to the same integer and no half-integer + lies in the closed enclosure (exact integer comparisons). Otherwise the script stops with the + list of undecided gw; it does not guess. (A real tie cannot occur for gw != 0: y rational would + make exp(-g/4096) rational. The script does not rely on this; it needs the enclosure to decide.) +4. Enumeration covers |gw| < G0 = 2^20. For |gw| >= G0 a tail lemma is used and checked by the + script: g exp(-g/4096) is decreasing for g > 4096, and G0 hi_(G0) / Q < 1/2 (exact comparison), + so 0 < g - y(g) < 1/2 and -1/2 < y(-g) < 0 for every g >= G0. Hence T(g) = g and T(-g) = 0 there. + This part is a proof, not an enumeration. + +No float enters T. Floats appear only in one unit test (a cross-check that must agree) and in the +log2 column of the ledger tables, which is display only: every "below 2^63" verdict is an exact +integer comparison. + +### Candidates (integer definitions, each a total function on the class) +Tab is the pinned v1 table `research/operators/qwen_ops/tables/silu-f12.i64le` (4,096 rows, row i +for x = (i - 2048) / 256), read from the repository, not regenerated. A table of the family +(H, w) has half-domain H in units of gw, key step w in units of gw, N = 2H / w rows, and rows +Tab_(H,w)[i] = T(w (i - N/2)) (exact rows, generated by this lane's script). For (H, w) = +(2^15, 16) the pinned rows are used unchanged; a unit test checks all 4,096 against T, and if any +differ both row sets are reported. + +- index, floor: i = floor(gw / w) + N/2. Table range: -H <= gw < H. +- index, midpoint: i = floor((gw + w/2) / w) + N/2. Table range: -H <= gw + w/2 < H. +- outside, clip: i is clamped to [0, N - 1] (the semantics of the integer reference of PR #138, + `mlp_int`). The M3 statement as designed does not clip: its lookup rejects a key outside the + domain. The note states for each clip candidate what a statement would need to carry the clip. +- outside, branch(C): above the table range s = gw; below it s = C; inside it the table. + +| name | H | w | rows | index | outside | issue item | +|---|---|---|---|---|---|---| +| v1 | 2^15 | 16 | 4,096 | floor | clip | baseline | +| a | 2^15 | 16 | 4,096 | midpoint | clip | (a) | +| b9f, b9m | 2^15 | 8 | 8,192 | floor, midpoint | clip | (b) | +| b10f, b10m | 2^15 | 4 | 16,384 | floor, midpoint | clip | (b) | +| b12 | 2^15 | 1 | 65,536 | exact key | clip | (b), limit case | +| c16f, c16m | 2^16 | 16 | 8,192 | floor, midpoint | clip | (c) | +| c32f, c32m | 2^17 | 16 | 16,384 | floor, midpoint | clip | (c) | +| c64f, c64m | 2^18 | 16 | 32,768 | floor, midpoint | clip | (c) | +| d0 | 2^15 | 16 | 4,096 | floor | branch(0) | (d) | +| d1 | 2^15 | 16 | 4,096 | floor | branch(Tab[0]) | (d) | +| e1 | 2^15 | 16 | 4,096 | midpoint | branch(0) | (e) = a + d | +| e2 | 2^16 | 16 | 8,192 | midpoint | branch(0) | (e) = a + c + d | +| e3 | 2^15 | 4 | 16,384 | midpoint | branch(0) | (e) = a + b + d | +| e4 | 2^16 | 4 | 32,768 | midpoint | branch(0) | (e) = a + b + c + d | +| e5 | 2^15 | 16 | 4,096 | floor | excess form | (e), no selector bit | + +e5, the excess form: c = min(max(gw, -2^15), 2^15 - 1), s = Tab[floor(c / 16) + 2048] + max(gw - c, 0). +It continues the last row with slope 1 and needs no selector bit, only two non-negative excess +witnesses and their complementarity. + +### Quantities computed for every candidate (all exact) +- Q1: E_all = max |s - T| over the whole class, with the smallest |gw| that attains it. +- Q2: the same maximum on five fixed windows, so candidates compare on equal ground: + [-2^15, 2^15), [2^15, 2^18), [2^18, 2^23), [-2^18, -2^15), (-2^23, -2^18). And on the candidate's + own table range, above it and below it. +- Q3: the exact mean of s - T (a Fraction) over the integers of [-2^15, 2^15) and of [0, 2^15). + This is a mean over integers with equal weight, not over any measured distribution of gw. +- Q4: s - T at the largest |gw| recorded in the committed range files of PR #173 + (`experiments/20261112-132-int-mlp-e2e/runs/ranges-abl.jsonl` and + `runs-resume150b/runs/ranges-abl.jsonl`), at +gw and at -gw (the files record magnitudes only). +- Q5: the image bound S = max |s| over the whole class. + +How each maximum is established: by enumeration of every integer gw with |gw| <= G0 = 2^20, and by +proof beyond. Beyond G0 every candidate is either constant or the identity and T is gw or 0 (tail +lemma), so s - T is affine in gw on each tail and |s - T| takes its maximum at an end of the tail; +the script evaluates both ends and checks the affine form at three points. RESULTS.md says for each +number which part decided it. + +### Statement cost +Per hidden unit, as a difference from the adopted arm-B lowering `mlp_statement` of +`research/operators/qwen_m3/count_m3.py` (imported unchanged if it imports; otherwise its per-unit +counts are copied with attribution): function lookups, range cells, 12-bit keys, gate columns, +relations, and the rows of the public table. Counted from the lowering written in the note; nothing +is built. + +### Ledger rows +The rows of `bounds.py` that contain the SiLU image bound are copied with attribution into this +experiment's script with the bound S as a parameter (the file on main is not edited). A unit test +checks that at S = 32,741 every copied row equals the imported `bounds.ROWS` entry as an exact +integer. Recomputed for every candidate with its own S: +- MLP use: `SiLU key`, `M3a-MLP: s u - 2^12 h - r`, `M3a-MLP down`, and the r1 control row. +- shared use (the same operator also replacing the DeltaNet head's SiLU and the gated norm's): + `q/k norm S5`, `S6`, `k`, `q`, the three recurrence rows that contain v, and + `gated norm: s w - 2^12 t - r`. +- new rows for the branch of (d) and (e): the selector class rows, the two decomposition rows, the + gated key row, the output row; and for the h contract, a two-limb h with an exact class on the + high limb and the down projection recomputed under it. +Each row: the exact integer sum of |term| at the class edges, its log2 (display), and the exact +verdict below 2^63 or not. + +### Branch selector +For (d) and every combination the note states, as relations: which witness cells exist, which +exact class each has, which relation ties the selector to gw, and the set of outputs s the +relation accepts for a given gw (a) with every relation present and (b) with the binding relation +removed. (b) is a statement about the relation: the accepted set and the largest |s - s_honest| in +it, computed from the definitions. No attack program is written or described. + +### Hostile and honest-completeness cases (section 6.1 style, as a list with expected verdicts) +Evaluated on a small Python model of the relation (a predicate "these cells satisfy these +relations"), not on a prover: the boundary pairs at 2^15 - 1 / 2^15 and -2^15 - 1 / -2^15 under each +selector value, the largest honest gw of Q4 at both signs, a selector that disagrees with gw at an +in-range key and at an out-of-range key, a decomposition witness outside its key class, gw at the +class edge 2^23 - 1. Honest cases must be accepted with the registered s; the others refused. + +## Acceptance threshold +The hypothesis holds if at least one candidate has all three: +1. max |s - T| over gw in [2^15, 2^23) <= 32 units of 2^-12; +2. every recomputed ledger row for its MLP use, including its new rows, is below 2^63; +3. its selector (or excess witnesses) is bound: with every listed relation present, the accepted + set of s for each gw in the class is the single registered value. Established by the argument + in the note, and checked by the relation model on the registered cases. +The number 32 is fixed now. v1's own worst error inside its domain is not known exactly at +registration (a float64 seed estimate says 17) and is reported, not used as the threshold. + +## Kill criterion +The issue's negative result: every candidate that meets item 1 fails item 2 or item 3. Then the +note says that the SiLU stage needs a different input scale per layer (a conversion change) and +gives the numbers. Also a negative: the exact target cannot be decided at Q = 2^192 for some gw +(reported with the list, precision raised only under a dated amendment). Budget: stop at +2026-11-29T04:19Z (lane deadline), commit what exists and write the partial result as such. + +## Runs +Deterministic exact arithmetic, no randomness, no seeds. The registered computation is run twice +from the committed code and the two outputs are compared by SHA-256; a difference is a failure. +This is below the project's standard of five runs and is registered as an exception: there is no +run-to-run variance to estimate. No exclusions. + +Order: (1) this file; (2) code and unit tests with their output; (3) the registered computation and +its output; (4) RESULTS.md, ENV.json and the ledger row. Unit tests, on small synthetic ranges and +committed with their output before the registered computation: +- U1: the recurrence enclosure of exp(-g/4096) against an independent enclosure (Fraction Taylor + series with interval squaring) for g in 0..2,048 and at g = 2^k, k = 12..20: the two intervals + must intersect and decide the same T(g) and T(-g). +- U2: T(0) = 0; T(g) - T(-g) = g for every g in 1..4,096; T against float64 for |gw| <= 4,096 + wherever the float64 value is at least 2^-20 away from a half-integer (must agree; the count of + skipped points is reported). +- U3: the 4,096 pinned rows against T(16 (i - 2048)). +- U4: the maximum finder (enumeration plus tail ends) against a naive loop over a whole toy class + (|gw| < 2^10, a synthetic integer target, toy tables), for every outside mode. +- U5: the copied ledger rows against `bounds.ROWS` at S = 32,741. +- U6: the relation model on a toy format (class 2^10, threshold 2^6, key width 4 bits): for every + gw of the toy class and every witness assignment in a bounded box, the accepted set equals the + registered function when all relations are present, and equals the stated larger set when the + binding relation is removed. +Debugging uses only these unit-test ranges. U2 and U3 evaluate T on points that the registered +enumeration also covers (|gw| <= 4,096 and the 4,096 grid points); this is said here beforehand. +The computation has no free parameter that is chosen after seeing output: candidates, windows and +the threshold are fixed above. + +Limits: CPU only, cores 2-5, Python standard library (numpy only if stated in ENV.json, and then +only int64 arithmetic below 2^62), under about 2 minutes and 1 GB per script. + +## Prior art +In this repository: the v1 table format and its pinned rows (operators lane, PR #67, +`research/operators/qwen_ops/`); the M3 lowering and ledger (`experiments/20261109-32-qwen-m3-design/DESIGN.md` +sections 5.2, 5.4, 5.5, 6, 6.1 and `research/operators/qwen_m3/bounds.py`); the integer MLP runs +with their range counters (`experiments/20261112-132-int-mlp-e2e/`); the stage split +(`experiments/20261114-201-mlp-stage/RESULTS.md`), which found that swapping the table lookup for +exact SiLU more than halves the late-layer KL median and tested no repair. +Outside it, from general knowledge and not re-checked in this lane: lookup arguments for +non-linearities are standard in zkML systems (EZKL's lookup tables, zkLLM's tlookup, Jolt's +lookup-centred design), and piecewise definitions with a range-proved comparison are the usual way +to carry ReLU-like branches. What is new here is only the bookkeeping for this statement: exact +worst-case errors of concrete candidates against the real-number target over the whole range-checked +class, and their effect on this ledger's rows. + +## What this note will not establish +No token measurement, no proof built, no prover or verifier change, no claim that any candidate +passes the token bar, no choice between candidates by measured tokens, nothing about the m class. + +## Amendments +(empty at registration) + +### Amendment 1, 2026-11-29T02:22Z, before any code exists and before any computation +Nothing has been computed. This amendment fixes the lowering that item 3 of the threshold is +judged on, adds two candidates, and shrinks the toy format of U6. The registered text above is +unchanged. + +**1. The lowering (one form for clip, excess and branch).** Per hidden unit, for a table (H, w) +with N rows, index offset off (0 for floor, w/2 for midpoint), cmin = -H, cmax = H - 1: + + cells gw range cell, |gw| < 2^23 (as now) + (idx, y) one pair of the public table, so 0 <= idx < N and y = Tab[idx] (as now) + r index remainder, 0 <= r < w by two keys (as now) + p0, p1 12-bit keys; n0, n1 12-bit keys (new: 4 keys) + bh, bl branch only: each in {0, 1} by a key and its complement key + derived c = w (idx - N/2) + r, so cmin <= c <= cmax by the classes above + p = p0 + 2^12 p1 + bh, n = n0 + 2^12 n1 + bl (bh = bl = 0 without the branch) + R1 gw + off = c + p - n + R2 (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n = 0 branch (two gates) + (cmax - c) p + (c - cmin) n = 0 clip, excess (one gate, (n - p) c) + R5 s = y clip + s = y + p excess + s = y + p + Khi bh + Klo bl branch(C), + Khi = H - 1 - off - Tab[N - 1], Klo = C - Tab[0] + +Every product in R2 is non-negative by the classes, so R2 forces each product to zero. The note +has to show that R1, R2 and the classes leave one (c, p, n, bh, bl) for each gw of the class, and +that R5 then equals the registered function: branch(C) gives s = gw above the table range and C +below it; excess is e5's form; clip is the clip. "Bound" in threshold item 3 means exactly this. +The statement on main rejects a key outside the domain, so a clip candidate carried by a +statement costs the same new cells as the excess form. +"Selector not bound" is reported for three removals, as accepted sets: R2 removed; the two +(1 - b) terms removed from R2; and, in words only, the plain multiplexer form the issue +describes (s chosen among table, gw and C by a selector that no relation ties to gw). + +**2. Two more candidates, registered before any number exists.** + +| name | H | w | rows | index | outside | issue item | +|---|---|---|---|---|---|---| +| e6 | 2^15 | 16 | 4,096 | midpoint | excess form | (e), no selector bit | +| e7 | 2^16 | 16 | 8,192 | midpoint | excess form | (e), no selector bit | + +Excess form with offset: c = min(max(gw + off, cmin), cmax), s = Tab[floor(c / w) + N/2] + +max(gw + off - c, 0). e5 is this with off = 0. + +**3. h.** Next to the row as it is (h a range cell), the note computes the s u row and the down +projection with h in an exact class [-2^B, 2^B) for B = 23 (h + 2^23 = lo + 2^12 hi, two 12-bit +keys, no range cell), and the largest B for which the down projection stays below 2^63. + +**4. Image bound used in the ledger.** For clip candidates S is the table image. For excess and +branch candidates the verdicts use the class-edge bound S_edge = max |Tab| + 2^24 + |Khi| + |Klo| +(every cell of R5 at its class edge, nothing implied); Q5's exact image is reported beside it. + +**5. Toy format of U6 (changed, smaller).** Registered: class 2^10, threshold 2^6, 4-bit keys. An +exhaustive search over every witness there is about 10^9 assignments per variant. U6 uses instead: +class |gw| < 2^6, H = 2^3, w = 4 (4 rows, synthetic values), two 3-bit limbs for p and for n. The +search stays exhaustive over every (idx, r, p0, p1, n0, n1, bh, bl) of that format: it enumerates +every (idx, r, p0, p1, bh, bl) and takes n from R1, which is present in every variant, so an +assignment that fails R1 or whose n has no limbs in class is refused in every variant. + +**6. Hostile and completeness cases** are evaluated on the lowering of d0 and of e5 at the real +format, each as one explicit cell assignment with the list of checks that refuse it. That is an +evaluation of a predicate on given cells, not a search; the exhaustive statement is U6's, on the +toy format, and the argument in the note. + +**7. Unit tests decide T only at their registered points** (|gw| <= 4,096, the 4,096 grid points, +g = 2^k). They run the enclosure recurrence up to g = 2^20, which decides nothing by itself. +Python standard library only; numpy is not used. + +### Amendment 2, 2026-11-29T02:42Z, after the first unit-test run, before the registered computation +The unit tests were run once (12.7 s). U1, U2, U3, U4 and U6 passed. U5 failed. Its registered +comparison (each copied row against `bounds.ROWS` at S = 32,741, as exact integers) had 0 +mismatches. What failed is a second condition that this lane's test code added and that the +PREREG does not register: "no row of `bounds.py` that names the SiLU table is left uncopied". It +was written as a text search on the rows' `bounds_from` strings, and the search string `x: table` +also occurs inside `idx: table key` of the softplus key row, which has no SiLU term. A wrong test, +not a wrong row. The output of that run is kept and committed unchanged as +`unit_tests.run1-failed.json`. + +Change, registered here before the rerun: the completeness condition stays in U5 but is decided +by arithmetic instead of by text. The test reads the source of `bounds.py`, evaluates it in memory +once as it is and once with the one line `SILU = 32741` replaced by `SILU = 32742` (the file on +disk is not written), and takes the rows whose exact bound differs: those are the rows that +contain the SiLU image bound. Every such row must be among the copied rows. The `SiLU key` row +does not contain the image bound (it contains the table shape) and is copied as well. No other +test changes. No number of the registered computation exists yet; the unit tests decided T only at +their registered points. + +Also recorded: between the PREREG and this run, one call was made to a helper file name that +does not exist (the interpreter exited with "No such file"); nothing ran. + +### Amendment 3, 2026-11-29T03:00Z, before the registered computation +No SiLU value beyond the unit tests' registered points has been computed. The driver `compute.py` +was debugged only in its `--toy` mode (class |gw| < 2^10, a synthetic integer target, seven toy +candidates, a toy relation format with two 6-bit limbs); that output is committed as +`debug/toy.json`. + +1. **Time correction.** The header of Amendment 2 says 02:42Z. The commit that carries it is + stamped 02:40:39Z: the time was written ahead. Amendment 2 was written and committed between + the first unit-test run and the second. +2. **Unit-test run 2 also failed, by this lane's error.** The edit that removed an unregistered + extra condition from U5 (a guessed count of rows) and the rerun were sent together, so the + rerun used the file before the edit. The guess was wrong (10 rows of `bounds.py` contain the + image bound, not 11: the r2 down projection has no SiLU term). The registered conditions were + all true in that output. It is committed unchanged as `unit_tests.run2-failed.json`. Run 3, on + the code as Amendment 2 describes it, passed and is `unit_tests.json`. +3. **One descriptive addition to the ledger, registered before it is computed.** The verdicts of + threshold item 2 stay as registered (class-edge bound S_edge, MLP use). Beside them the note + reports the same copied rows at the exact image S of Q5, which is the bound on |s| that + follows once R1, R2 and R5 hold over the integers (an implied bound, as `bounds.py` uses for k + and q). Descriptive: it decides no threshold item. Reason, seen in the toy run and following + from the class edges alone: with S_edge near 2^24 the shared-use row `q: 362 Rc x` exceeds + 2^63, so the note has to say whether the implied bound changes that. +4. **Hostile cases.** In each hostile cell assignment that does not change s itself, s is set to + what R5 gives on the changed cells, so that the refusal has to come from a class, the lookup, + R1 or R2 and not from a stale s. +5. Threshold item 2 is reported in two parts: the copied and new lowering rows, and the h class + rows. Both must hold for item 2. + +### Note, 2026-11-29T03:44Z, after the registered computation (time correction only) +Appended after the registered runs were committed. It changes no registered text, no threshold +and no number. + +The header of Amendment 3 says 2026-11-29T03:00Z. That time was written ahead of the clock and is +later than the run the amendment says it precedes. The order, from the commits: Amendment 3 is in +commit 9322248, committer time 02:55:58Z, pushed 02:56:19Z; the registered runs are in commit +6e25a70, committer time 02:58:47Z. By the lane's file times run 1 started at about 02:56:34Z and +run 2 ended at about 02:57:14Z. Amendment 3 was therefore committed and pushed before the +registered computation started, as its text says. The header above is left as committed. + +The lane was interrupted at about 03:09Z by a restart of the host service that runs lanes; this +note, ENV.json, RESULTS.md and README.md were written by a continuation of the same lane from the +committed run files. No computation was rerun. diff --git a/experiments/20261129-222-silu-repairs/README.md b/experiments/20261129-222-silu-repairs/README.md new file mode 100644 index 00000000..2ec54a4a --- /dev/null +++ b/experiments/20261129-222-silu-repairs/README.md @@ -0,0 +1,65 @@ +# 20261129-222-silu-repairs + +A desk note for issue #222: which repairs of the SiLU stage of the Qwen M3 integer MLP a statement +could carry, with the exact worst-case error of each against RNE(2^12 silu(gw / 2^12)) over the +whole range-checked class |gw| < 2^23, and the ledger rows each one moves. The answer and the +numbers are in `RESULTS.md`; the registered plan and its three amendments are in `PREREG.md`. + +## What is proved here, and what is not + +Nothing is proved in the cryptographic sense: no prover or verifier runs, no statement is built. +What the scripts establish is arithmetic: + +- the exact target T(gw) for every integer |gw| < 2^20 by verified enclosures in Python integers, + and for 2^20 <= |gw| < 2^23 by a tail lemma whose conditions the script checks; +- for 22 registered candidate operators, the exact maximum of |s - T| over the whole class + (enumeration up to 2^20, both ends of each affine tail beyond); +- the rows of `research/operators/qwen_m3/bounds.py` that contain the SiLU image bound, recomputed + as exact integers with each candidate's bound (the rows are copied into `ledger.py` with + attribution; `bounds.py` is imported and read, never edited); +- for the branch and excess lowerings, a small predicate ("these cells satisfy these relations") + evaluated on listed cell assignments at the real format and exhaustively on a toy format. + +Not covered: any token measurement, any model or weight, any built proof, the soundness of a real +statement, the m class, gw outside the range-checked class. See "What is NOT established" in +`RESULTS.md`. + +## Files + +| file | what it is | +|---|---| +| `PREREG.md` | registered plan (first commit, alone), Amendments 1 to 3 and one dated note | +| `silu_core.py` | exact target, candidate definitions, the worst-case finder | +| `ledger.py` | copied `bounds.py` rows with the image bound as a parameter, the new lowering rows, the h class rows | +| `relation.py` | the relation model of the lowering (a predicate on cells) | +| `unit_tests.py`, `unit_tests.json` | unit tests U1 to U6 and their output (run 3, all pass) | +| `unit_tests.run1-failed.json`, `unit_tests.run2-failed.json` | the two earlier outputs, kept unchanged (see Deviations in `RESULTS.md`) | +| `compute.py` | the registered computation; `--toy` is the debug mode on a synthetic class | +| `debug/toy.json` | toy-mode output, used for debugging before the registered run | +| `runs/run-1.json`, `runs/run-2.json` | the two registered runs, byte-identical | +| `runs/table.md` | the 22-row table written by run 1 | +| `runs/run-1.time`, `runs/run-2.time` | `/usr/bin/time -v` of each run | +| `ENV.json` | commits, inputs with hashes, toolchain, hardware | +| `RESULTS.md` | answer, ranked table, ledger rows, selector argument, deviations | + +## Reproduce + +From the repository root, Python 3.12 standard library only, single-threaded, about 13 s and +260 MiB per run on the host of `ENV.json`. Write to a new path: the committed run files are not to +be overwritten. + +``` +python3 experiments/20261129-222-silu-repairs/unit_tests.py /tmp/unit_tests.json +python3 experiments/20261129-222-silu-repairs/compute.py /tmp/run.json --table /tmp/table.md +sha256sum /tmp/run.json experiments/20261129-222-silu-repairs/runs/run-1.json +``` + +The two hashes of the last line should be equal +(`bdafccf530b2529b05b80fe0aeb44e29f5e9eb08d6e90ca4c07b12d2d1bfb4e6`). `unit_tests.py` exits non-zero +if any of U1 to U6 fails; its output holds a wall-time field, so its hash is not expected to match +`unit_tests.json`. + +Where each number of `RESULTS.md` sits in `runs/run-1.json`: `target` (the exact target and the +tail lemma), `candidates[*].windows`, `.own_ranges`, `.means`, `.at_largest_honest_gw` (errors), +`candidates[*].ledger` and `.ledger_at_exact_image_descriptive` (rows), `relation_cases` and +`unbound` (the selector), `statement_cost` (counts through `count_m3.py`). diff --git a/experiments/20261129-222-silu-repairs/RESULTS.md b/experiments/20261129-222-silu-repairs/RESULTS.md new file mode 100644 index 00000000..8cb4063d --- /dev/null +++ b/experiments/20261129-222-silu-repairs/RESULTS.md @@ -0,0 +1,264 @@ +# RESULTS: 20261129-222-silu-repairs (issue #222) + +Computed, unreplicated. A desk note with exact integer and rational arithmetic. No model was run, no +weights were read, no proof was built, no token was measured. Every number below is in +`runs/run-1.json` unless another file is named (`runs/run-2.json` is byte-identical, SHA-256 +`bdafccf5...b4e6`; `runs/table.md` is the 22-row table written by run 1). + +Variance standard: the project asks for five runs. This experiment registered two runs of a +deterministic computation, compared by hash. That is an exception, registered in the PREREG; it does +not meet the standard and it is not a replication. + +## Answer + +1. **By the registered threshold the hypothesis holds.** 9 of the 22 registered candidates meet all + three items for the MLP's own use of the operator: d0, d1, e1, e2, e3, e4, e5, e6, e7 (every + branch and every excess candidate). Their worst error against the exact target over + [2^15, 2^23) is 3 to 26 units of 2^-12 (threshold 32), every recomputed MLP ledger row and every + new row is below 2^63 (worst 2^55.024, the down projection, unchanged), and the selector or + excess witnesses are bound by the relations R1 and R2 (argument below, an exhaustive check on a + toy format, 21 explicit cell assignments at the real format). +2. **The negative part: none of those 9 can be shared with the DeltaNet head's q path as the ledger + stands.** With the same operator also used where `bounds.py` uses the SiLU image bound outside + the MLP, the row `q: 362 Rc x - 2^36 q - r` is 2^68.505 to 2^68.507 at the class-edge bound and + 2^67.504 at the exact image bound, above 2^63 for all 9. It is the only shared-use row that + fails; the gated-norm row `s w - 2^12 t - r` is 2^47.003 to 2^47.006 and stays below. So for a + shared operator the issue's negative result holds: every candidate that removes the high-side + clip error breaks a ledger row. +3. **No clip candidate removes the high-side error.** All 13 clip candidates (v1, a, the five b, the + six c) fail item 1: the error at gw = 2^23 - 1 is 8,126,479 (widest table, c64) to 8,355,866 + (v1). A finer step or a midpoint index changes only the in-domain error. A wider table removes + the error only up to its own edge; the widest one registered (c64, 32,768 rows, image 262,128) + leaves the shared q row at 2^62.622, under 0.4 bits below the limit. +4. **h needs its own class.** With |s| near 2^24 and |u| < 2^23, floor(s u / 2^12) needs 36 bits to + hold every value of the class (26 bits for v1). 36 is also the largest B for which the down + projection stays below 2^63 with h in [-2^B, 2^B) (2^62.098). So an exact class on h exists that + covers every value and keeps the row, with 0 bits to spare. + +What this does and does not say: the threshold was registered on the MLP use, so item 1 above is the +registered verdict. Item 2 is a registered computation (the shared-use rows are in the PREREG) that +decides no threshold item. Both are reported with the same weight. Nothing here says that any +candidate passes the token bar. + +## The exact target (`runs/run-1.json`, `target`) + +T(gw) = RNE(gw / (1 + exp(-gw / 4096))) was decided for every integer |gw| < 2^20 by enclosures at +scale 2^192 (0 undecided), and beyond by the tail lemma, whose two conditions the script checked +(`tail_lemma.holds` true): T(g) = g and T(-g) = 0 for g >= 2^20. Inside the enumeration the same +already holds from g = 46,895 on (`T_is_identity_from`, `T_is_zero_from_minus`). The smallest value +is T(-5,295) = -1,141. T(32,768) = 32,757, T(-32,768) = -11. + +The 4,096 pinned v1 rows equal the exact target at their grid points: 0 rows differ +(`pinned_v1_rows_differing_from_exact`; also unit test U3 in `unit_tests.json`). + +## Ranked table (issue item 4) + +Order: candidates that meet items 1 to 3 first, by worst error over the whole class, then by added +cells; then the clip candidates by their in-domain error. This order is the note's, fixed by those +columns. It is not a choice by measured tokens. + +Columns: "in" is the worst |s - T| on [-2^15, 2^15), "high" on [2^15, 2^23), "low" below -2^15, +"all" over the whole class with the smallest |gw| that attains it, in units of 2^-12. "mean" is the +exact mean of s - T over the integers of [-2^15, 2^15) with equal weight (not over any measured +distribution). "s u" is the row `s u - 2^12 h - r` and "q" the shared row `q: 362 Rc x - 2^36 q - r`, +both as log2 of the exact sum at the class edges; the verdicts are exact integer comparisons. +"added" is per hidden unit on top of main's 1 function lookup, 3 range cells, 9 keys, 3 gate +columns, 7 relations (`statement_cost.base_per_hidden_unit`). + +| rank | name | rows | index | outside | in | high | low | all (at gw) | mean | added per unit | s u | q (shared) | items 1-3 | +|---|---|---|---|---|---|---|---|---|---|---|---|---|---| +| 1 | e4 | 32,768 | mid | branch(0) | 3 | 3 | 1 | 3 (5,294) | 0.2532 | 8 keys, 2 gates, 7 relations | 47.006 | 68.507 NO | yes | +| 2 | e7 | 8,192 | mid | excess | 9 | 9 | 1 | 9 (5,288) | 0.2560 | 4 keys, 1 gate, 3 relations | 47.006 | 68.507 NO | yes | +| 3 | e2 | 8,192 | mid | branch(0) | 9 | 9 | 1 | 9 (5,288) | 0.2560 | 8 keys, 2 gates, 7 relations | 47.006 | 68.507 NO | yes | +| 4 | e1 | 4,096 | mid | branch(0) | 11 | 11 | 11 | 11 (32,760) | 0.2568 | 8 keys, 2 gates, 7 relations | 47.003 | 68.505 NO | yes | +| 5 | e3 | 16,384 | mid | branch(0) | 11 | 11 | 11 | 11 (32,766) | 0.2535 | 8 keys, 2 gates, 7 relations | 47.003 | 68.505 NO | yes | +| 6 | d0 | 4,096 | floor | branch(0) | 17 | 11 | 11 | 17 (7,023) | -3.7439 | 8 keys, 2 gates, 7 relations | 47.003 | 68.505 NO | yes | +| 7 | d1 | 4,096 | floor | branch(-11) | 17 | 11 | 11 | 17 (7,023) | -3.7439 | 8 keys, 2 gates, 7 relations | 47.003 | 68.505 NO | yes | +| 8 | e6 | 4,096 | mid | excess | 9 | 18 | 11 | 18 (46,895) | 0.2546 | 4 keys, 1 gate, 3 relations | 47.003 | 68.505 NO | yes | +| 9 | e5 | 4,096 | floor | excess | 17 | 26 | 11 | 26 (46,895) | -3.7439 | 4 keys, 1 gate, 3 relations | 47.003 | 68.505 NO | yes | +| 10 | b12 | 65,536 | exact key | clip | 0 | 8,355,851 | 11 | 8,355,851 | 0.0000 | see note | 38.169 | 60.271 yes | no (item 1) | +| 11 | b10m | 16,384 | mid | clip | 3 | 8,355,854 | 11 | 8,355,854 | 0.2530 | see note | 38.169 | 60.271 yes | no (item 1) | +| 12 | b10f | 16,384 | floor | clip | 4 | 8,355,854 | 11 | 8,355,854 | -0.7467 | see note | 38.169 | 60.271 yes | no (item 1) | +| 13 | b9m | 8,192 | mid | clip | 7 | 8,355,858 | 11 | 8,355,858 | 0.2547 | see note | 38.169 | 60.271 yes | no (item 1) | +| 14 | b9f | 8,192 | floor | clip | 8 | 8,355,858 | 11 | 8,355,858 | -1.7447 | see note | 38.169 | 60.271 yes | no (item 1) | +| 15 | c16m, c32m, c64m | 8,192 / 16,384 / 32,768 | mid | clip | 9 | 8,323,087 / 8,257,551 / 8,126,479 | 1 | same as high | 0.2560 | see note | 39.087 / 40.044 / 41.022 | 60.936 / 61.735 / 62.622 yes | no (item 1) | +| 16 | a | 4,096 | mid | clip | 15 | 8,355,866 | 11 | 8,355,866 | 0.2541 | see note | 38.169 | 60.271 yes | no (item 1) | +| 17= | v1 (baseline) | 4,096 | floor | clip | 17 | 8,355,866 | 11 | 8,355,866 | -3.7439 | see note | 38.169 | 60.271 yes | no (item 1) | +| 17= | c16f, c32f, c64f | 8,192 / 16,384 / 32,768 | floor | clip | 17 | as c16m / c32m / c64m | 1 | same as high | -3.7439 | see note | as the m rows | as the m rows | no (item 1) | + +Note on the clip rows' cost: the statement on main does not clip, its lookup rejects a key outside +the table. Carried as it is on main a clip candidate adds nothing per unit and an honest key outside +the table has no proof. Carried with the clip it needs the same new cells as the excess form (4 +keys, 1 gate, 3 relations). + +Readings of the table, each from `candidates[*].windows` and `means`: +- v1 inside its domain: worst 17 (at gw = 7,023, error -17), signed range -17 to +2, mean + -245361/65536 = -3.7439, and -122739/16384 = -7.4913 on [0, 2^15). These are exact and agree + with the issue's float64 orientation figures. +- The midpoint index alone (a) has worst 9 on its own table range and mean 16655/65536 = 0.2541, + but its table range is [-32,776, 32,759], so the keys 32,760 to 32,767 are clipped and the worst + on [-2^15, 2^15) is 15. +- Low side: the clip of a 2^15 table leaves 11 units (s = -11 where T = 0, from gw = -46,895 down); + branch(0) leaves 11 just below the range (s = 0 where T = -11); a 2^16 table leaves 1. +- High side: the identity s = gw is within 11 units of T on [2^15, 2^23) (worst at gw = 32,768). + The excess form with the pinned rows is gw - 26 from 46,895 on (the last row is 32,741 at key + 32,767). +- At the largest |gw| in the committed range files of the integer MLP runs (236,631, layer 62, + path FM, prompt p11-chat-long, `honest_gw_files`; no recorded entry reaches 2^18): v1 is off by + -203,890, c64 by -7, d0 by 0, e5 by -26 (`at_largest_honest_gw`). Those files record magnitudes + only, so the sign is not known; at -236,631 the errors are -11, 0, 0, -11. + +Statement cost for the whole M3a-MLP statement (`statement_cost`, counted through `count_m3.py` +imported unchanged, nothing built): at T = 16 every variant, main's included, has log length 23 and +does not fit 2^22. The largest T that fits 2^22 is 15 on main, 11 with the excess form, 9 with the +branch; an exact 23-bit class on h takes one more T from each (14, 10, 8). Laid columns at T = 16: +4,423,680 on main, 5,816,320 excess, 7,208,960 branch. + +## Ledger rows (issue item 2) + +MLP use, per candidate (`ledger.mlp_use`): `SiLU key` 2^23.02 to 2^23.13; `s u - 2^12 h - r` from +2^38.169 (v1) to 2^47.003 (branch and excess on a 2^15 table) or 2^47.006 (2^16 table); the down +projection 2^55.024 for every candidate, since it reads h and not s; the r1 control row wraps for +every candidate, as it must (2^64.09 for v1, 2^65.09 to 2^67.09 for the c tables, 2^73.09 for +branch and excess). New rows: R1 2^25.33 to 2^25.35; R2 2^42.0 for a 2^15 table, up to 2^45.0 for +c64; the bit class 2^12.0 (branch only); R5 2^16.0 to 2^19.0 for clip and 2^25.0 for branch and +excess. All below 2^63. + +The branch and excess verdicts use the class-edge bound S_edge (16,809,956 to 16,842,749, about +2^24.003: every cell of R5 at the edge of its class, nothing implied). The exact image is 8,388,581 +to 8,388,607 (`image_bound_exact`). + +Shared use (`ledger.shared_use`), for d0 at S_edge: q/k norm S5 and S6 2^55.017, k 2^60.003, +**q 2^68.505 (fails)**, the three recurrence rows 2^54.033, 2^36.587, 2^53.000, gated norm +2^47.003. With the implied bound instead of the class edge (`ledger_at_exact_image_descriptive`, +registered in Amendment 3 before it was computed, descriptive): S5 and S6 2^53.044, k 2^59.000, +**q 2^67.504 (fails)**, gated norm 2^46.001. The implied bound moves the q row by one bit and does +not change the verdict. For the clip candidates the q row is 2^60.271 (2^15 tables), 2^60.936, +2^61.735, 2^62.622 (c16, c32, c64) and no shared row fails. + +h (`ledger.h`): bits needed for every floor(s u / 2^12) of the class: 26 (v1 and the b tables), 27, +28, 29 (c16, c32, c64), 36 (branch and excess). With h in an exact class [-2^23, 2^23) (two 12-bit +keys in place of the range cell) the s u row is 2^47.003 and the down projection 2^55.024. With +h in [-2^36, 2^36) (four 12-bit keys) the s u row is 2^48.586, the down projection 2^62.098 and +the h class row 2^48.001. An honest h above 2^23 has no proof under the 23-bit class; the note does +not say how often that happens for any candidate (not measured here). + +## The selector (issue item 1 d, threshold item 3) + +Cells and relations are the lowering of PREREG Amendment 1. Write g = gw + off, cmin = -H, +cmax = H - 1, c = w (idx - N/2) + r, so cmin <= c <= cmax by the classes of idx and r, and p, n are +non-negative by their key classes. + +Excess and clip form, R2: (cmax - c) p + (c - cmin) n = 0. Both products are non-negative, so both +are zero. If cmin < c < cmax then p = n = 0 and R1 gives c = g. If c = cmax then n = 0 (its factor +c - cmin is 2H - 1 > 0) and R1 gives p = g - cmax >= 0. If c = cmin then p = 0 and +n = cmin - g >= 0. For a given g exactly one of these +is possible, so c = min(max(g, cmin), cmax), p = max(g - cmax, 0), n = max(cmin - g, 0): one +assignment (idx and r follow from c, the limbs from p and n). R5 then gives the registered s. + +Branch form, R2: (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n = 0, with bh inside p and bl inside +n. Again both products are zero. If bh = 1 then p >= 1, so cmax - c = 0; the second factor is then +at least 2H - 1 > 0, so n = 0 and bl = 0, and R1 gives g = cmax + p > cmax. If bh = 0 the first +factor is at least 1, so p = 0; then bl = 1 forces c = cmin and g = cmin - n < cmin, and bl = 0 +forces n = 0 and g = c. So bh = 1 exactly when g > cmax, bl = 1 exactly when g < cmin, one +assignment for each gw, and R5 gives s = gw above the range, C below it, the table row inside. + +What this rests on: the argument above is this lane's, written by hand, read over the integers +(each relation's sum at the class edges is below 2^63, the rows R1, R2, R5 above). It is checked by +an exhaustive search over every witness of a toy format (unit test U6, `unit_tests.json`: 3,918,186 +assignments, 8 toy candidates, in the full variant 0 gw with any accepted s other than the +registered one) and by 21 explicit cell assignments each for d0 and e5 at the real format +(`relation_cases`: 9 honest accepted with the registered s, 12 hostile refused, each with the check +that refuses it). It is not machine-checked at the real format and has not been reviewed. + +If the selector is not bound, as accepted sets (`unbound`, computed from the definitions at 7 probe +keys for d0, d1, e1, e5; a statement about the relation, no program): +- R2 without its two bit terms (the excess form's R2 under the branch's R5): above the range the + relation accepts both the excess value and the branch value, {gw - 26, gw} for d0 and d1, + {gw - 18, gw} for e1; below it {-11, 0} for d0 and e1; inside the range one value. Largest + deviation 26. +- R2 removed: s is free over about 2^24. For d0 at gw = 0 the accepted s run from -7 to + 16,777,253; at gw = 2^23 - 1 from 8,387,451 to 16,809,994. For e5 the largest deviation is + 16,777,215. +- The plain multiplexer of the issue (s chosen among table row, gw and C by a selector no relation + ties to gw): at gw = 2^23 - 1 it also accepts s = 0, and at gw = -(2^23 - 1) it also accepts + s = -8,388,607, a deviation of 8,388,607 each; at gw = -32,768 (honest -11) it also accepts + -32,768 and 0. + +## Which single CPU measurement would test each candidate + +One measurement means one path in the harness of `experiments/20261114-201-mlp-stage` (abliterated +layers 31 to 63 from the layer-30 reference state, the 10 frozen prompts, KL and top-1 against the +float64 reference), with `mlp_int`'s SiLU replaced by the candidate's integer function, read +against that experiment's M31 (table, KL median 1.466e-3) and M31-S (exact SiLU, 1.83e-6). None of +these was run here. +- e5: the pinned rows, floor index, clip replaced by the excess. It changes only the outside + behaviour, so it separates the clip from the step, which that experiment did not. +- a: the midpoint index with the clip kept. It tests whether the in-domain bias (-3.74 to +0.25) + matters by itself. +- b10m (or b12): a finer step with the clip kept. It tests the step alone. +- c64m: a wider table with no new cells in the recorded range (largest recorded |gw| 236,631 is + inside it). It tests clip removal for the recorded keys and is the only repair here that keeps + every shared row. +- e6, e7, e1, e2, e4: the combinations, in rising table size; e7 is the cheapest with worst error 9. +- For any branch or excess candidate, in the same run: the count of |h| at or above 2^23, which + decides whether the 23-bit h class is enough or a wider one is needed. + +## What is NOT established + +- No token measurement. No claim that any candidate passes the token bar, or is better than v1 on + tokens, or that the order of the ranked table is the order by tokens. +- No proof built, no prover, verifier or `bounds.py` change. The statement cost is counted from the + lowering written in the PREREG; the lowering is not implemented. +- The selector binding at the real format rests on a hand argument, a toy-format exhaustive check + and 42 explicit assignments. It is not a soundness proof of a built statement. +- Whether the q path can be given its own bounded operator (for example keeping v1 there) while + the MLP uses a repaired one. The note shows only that the SAME operator in both places breaks + the q row. A split has its own cost and was not counted. +- How often honest |h| reaches 2^23 under any candidate; whether a per-layer input scale would do + better (the alternative the issue names for the negative case). +- Anything about the m class. Anything about gw at or beyond 2^23 (outside the range-checked class). +- Not replicated: one lane, one calculation, run twice. + +## Deviations from the registered plan + +1. Unit tests ran three times. Run 1 failed on a condition the lane's test code had added (a text + search that matched the softplus row), run 2 failed because the fix and the rerun were sent + together and the rerun used the old file. Both outputs are committed unchanged + (`unit_tests.run1-failed.json`, `unit_tests.run2-failed.json`); the registered comparisons had 0 + mismatches in all three. Amendments 2 and 3 record this. +2. Amendment 2's header says 02:42Z; its commit is 7b7b7d9 at 02:40:39Z. Recorded in Amendment 3. +3. **Amendment 3's header says 2026-11-29T03:00Z, which is later than the run it says it + precedes.** The real order, from `git log` (committer times) and the push record: Amendment 3 + committed in 9322248 at 02:55:58Z and pushed at 02:56:19Z; registered run 1 started at about + 02:56:34Z and run 2 ended at about 02:57:14Z; both committed in 6e25a70 at 02:58:47Z. So the + amendment was committed and pushed before the run started, and the header time was written ahead + of the clock, as in item 2. The run times are from the lane's file times (run-1.json written + 02:56:47Z, 12.88 s elapsed per `runs/run-1.time`); they are not in a committed file, the commit + order is. The committed header is not edited. An uncommitted edit of that header to 02:56Z was + found in the working tree after the interruption below and was discarded. A dated note is + appended to the PREREG. +4. The lane was interrupted at about 03:09Z by a restart of the host service that runs lanes, after + the registered runs were committed and pushed. This file, ENV.json, README.md and the results + row were written by a continuation of the same lane from the committed run files. Nothing was + rerun. +5. Hostile cases: the PREREG lists the boundary pair at -2^15 - 1 / -2^15 under each selector + value. The real-format list has the selector lie at -2^15 - 1 (first key below, bit flipped) but + not the one at -2^15 (first key inside, selector claiming below). That case is covered only by + the argument and by U6 on the toy format. +6. Statement cost: the rows of the public table are listed per candidate and are not in the + layout count; the exact h class is counted for 23 bits only, not for the 36 bits the branch and + excess candidates need (four limbs); added relations are counted at 3 terms each. +7. The unbound-selector sets were computed for d0, d1, e1 and e5 at 7 probe keys, not for every + candidate and key. The real-format cases cover d0 and e5 (as Amendment 1 registered). +8. Two runs, not five (registered exception, see the top). + +## Raw data + +- `runs/run-1.json`, `runs/run-2.json` (identical), `runs/table.md`, `runs/run-1.time`, + `runs/run-2.time`. +- `unit_tests.json` (run 3, all pass), `unit_tests.run1-failed.json`, `unit_tests.run2-failed.json`. +- `debug/toy.json`: the driver's toy-mode output (class 2^10, synthetic target), used for debugging + before the registered run. It holds no SiLU value. +- Code: `silu_core.py`, `ledger.py`, `relation.py`, `unit_tests.py`, `compute.py`. How to rerun: + `README.md`. diff --git a/experiments/20261129-222-silu-repairs/compute.py b/experiments/20261129-222-silu-repairs/compute.py new file mode 100644 index 00000000..02c810db --- /dev/null +++ b/experiments/20261129-222-silu-repairs/compute.py @@ -0,0 +1,344 @@ +#!/usr/bin/env python3 +"""The registered computation of the SiLU-stage repair note (issue #222): Q1 to Q5, statement cost, +ledger rows and the relation cases, for every registered candidate. Exact integers and Fractions. + +usage: python3 compute.py [--table out.md] [--toy] + +--toy runs the same code on a toy class (|gw| < 2^10, enumeration to 2^8, a synthetic integer target, +scaled candidates). It is the debug fixture named in the PREREG and evaluates no SiLU value. +The output has no timestamp and no host data, so two runs must be byte-identical. +""" +import importlib.util +import json +import math +import sys + +import ledger +import relation +import silu_core as sc +from fractions import Fraction + + +def load_count_m3(): + path = sc.REPO / 'research' / 'operators' / 'qwen_m3' / 'count_m3.py' + spec = importlib.util.spec_from_file_location('count_m3_main', path) + m = importlib.util.module_from_spec(spec) + spec.loader.exec_module(m) + return m + + +# Per hidden unit, added to the arm-B lowering of count_m3.mlp_statement (PREREG Amendment 1). +# table only the statement on main: the lookup rejects a key outside the domain. Nothing added. +# clip/excess p0, p1, n0, n1 (4 keys); one gate c (n - p) with two input ties; R2. R1 and R5 +# replace the key relation and the s tie (more terms, no new relation). +# branch as above with two gates (A p and B n, four ties), and bh, bl each a key with a +# complement key and one relation. +# h exact h + 2^23 = lo + 2^12 hi: the range cell h becomes 2 keys and one relation. +LOWERING_COST = { + 'table only (rejects outside the domain, as on main)': dict(keys=0, gate_columns=0, relations=0, range_cells=0), + 'clip': dict(keys=4, gate_columns=1, relations=3, range_cells=0), + 'excess': dict(keys=4, gate_columns=1, relations=3, range_cells=0), + 'branch': dict(keys=8, gate_columns=2, relations=7, range_cells=0), +} +H_EXACT_COST = dict(keys=2, gate_columns=0, relations=1, range_cells=-1) + + +def statement_counts(m3): + """Per-unit base counts through count_m3's own functions, and the whole M3a-MLP statement at + T = 16 for each lowering (layout and log length by count_model.layout, unchanged).""" + cm = m3.cm + c = cm.C('B'); c.fpairs = 0 + c.rcell(2); m3.vrem(c, 2); m3.flookup(c, 1); c.col(1); c.rel(2, 2); c.rcell(1); r = c.rem(12, 1); c.rel(2 + r, 1) + base_unit = dict(function_lookups=c.fpairs, range_cells=c.rcells, keys=c.keys, gate_columns=c.cols, relations=c.rels) + f = m3.Q['f'] + + def make(extra, h_exact): + def mk(arm, T): + s = m3.mlp_statement(arm, T) + n = f * T + e = dict(extra) + if h_exact: + e = {k: e[k] + H_EXACT_COST[k] for k in e} + s.key(e['keys'] * n); s.col(e['gate_columns'] * n); s.rel(3, e['relations'] * n); s.rcells += e['range_cells'] * n + return s + return mk + + out = {} + for name, extra in LOWERING_COST.items(): + for h_exact in (False, True): + mk = make(extra, h_exact) + s16 = m3.summarize(mk('B', 16), 'B', 16) + out[name + (' + h exact [-2^23, 2^23)' if h_exact else '')] = dict( + per_unit_added=({k: extra[k] + (H_EXACT_COST[k] if h_exact else 0) for k in extra}), + T16=dict(gate_columns=s16['gate_columns'], range_cells=s16['range_cells'], lkp_keys=s16['lkp_keys'], + relations=s16['relations'], laid_columns=s16['laid_columns'], log_length=s16['log_length'], + fits_log22=s16['fits_log22']), + largest_T_that_fits_log22=m3.max_T(mk, 'B')) + return dict(source='research/operators/qwen_m3/count_m3.py imported unchanged (mlp_statement, vrem, flookup, summarize, max_T)', + hidden_units=f, base_per_hidden_unit=base_unit, statements=out, + note='counted from the lowering written in the note, nothing built; added relations are counted at 3 terms each ' + '(count_m3 calls its term totals provisional); the public table rows are listed per candidate, they are not in the layout') + + +def honest_gw_from_main(): + """Largest |gw| recorded in the committed range files of the integer MLP runs (magnitudes only).""" + base = sc.REPO / 'experiments' / '20261112-132-int-mlp-e2e' + out = [] + for rel in ('runs/ranges-abl.jsonl', 'runs-resume150b/runs/ranges-abl.jsonl'): + best, n_rows, n18, n23, layers = None, 0, 0, 0, set() + for line in (base / rel).read_text().splitlines(): + if not line.strip(): + continue + row = json.loads(line) + layers.add(row['layer']) + for path, prompts in row['paths'].items(): + for prompt, st in prompts.items(): + if not isinstance(st, dict) or 'gw' not in st: + continue + n_rows += 1 + n18 += st.get('n_gw_ge_2e18', 0); n23 += st.get('n_gw_ge_2e23', 0) + g = st['gw'] + assert float(g).is_integer() + if best is None or g > best[0]: + best = (int(g), row['layer'], path, prompt) + out.append(dict(file='experiments/20261112-132-int-mlp-e2e/' + rel, range_rows=n_rows, layers=[min(layers), max(layers)], + max_abs_gw=best[0], at_layer=best[1], path=best[2], prompt=best[3], + entries_gw_ge_2e18=n18, entries_gw_ge_2e23=n23)) + return out + + +def relation_cases(cands, gw_honest, fmt=relation.REAL, g_in=1000, g_far=100000, big=5000): + """Hostile and honest-completeness cases, each one explicit cell assignment. Real format by + default; the toy mode passes a toy format and toy probe values.""" + out = [] + for c in cands: + K = 1 << fmt.L + hi, lo = c.hi_edge(), c.lo_edge() + cases = [] + + def honest(tag, gw): + cells = relation.honest_cells(fmt, c, gw) + cases.append((tag, 'accept', cells, c.s_point(gw) if abs(gw) < fmt.R else None)) + + def hostile(tag, gw, **change): + """The honest cells for gw with some cells changed. Unless the case changes s itself, s is + then set to what R5 gives on the changed cells, so that R5 holds and the refusal has to + come from a class, the lookup, R1 or R2.""" + cells = relation.honest_cells(fmt, c, gw) + cells.update(change) + if 's' not in change: + p = cells['p0'] + K * cells['p1'] + cells['bh'] + cells['s'] = (cells['y'] if c.outside == 'clip' else cells['y'] + p if c.outside == 'excess' + else cells['y'] + p + c.Khi * cells['bh'] + c.Klo * cells['bl']) + cases.append((tag, 'refuse', cells, None)) + + for tag, gw in (('honest: last key inside the table range', hi), ('honest: first key above the table range', hi + 1), + ('honest: first key inside the table range', lo), ('honest: first key below the table range', lo - 1), + ('honest: largest gw of the committed range files, positive', gw_honest), + ('honest: largest gw of the committed range files, negative', -gw_honest), + ('honest: class edge 2^23 - 1', fmt.R - 1), ('honest: class edge -(2^23 - 1)', -(fmt.R - 1)), + ('honest: gw = 0', 0)): + honest(tag, gw) + hostile('gw = 2^23, outside the range class', fmt.R) + cl = g_in + c.off - 1 # c one lower than the honest c at g_in + hostile('s off by one', g_in, s=c.s_point(g_in) + 1) + hostile('in range, selector claims above: c one lower, p = 1, bh = 1 (R1 holds)', g_in, + r=cl % c.w, idx=cl // c.w + c.N // 2, y=c.tab[cl // c.w + c.N // 2], p0=0, bh=1) + hostile('in range, excess without the bit: c one lower, p0 = 1 (R1 holds)', g_in, + r=cl % c.w, idx=cl // c.w + c.N // 2, y=c.tab[cl // c.w + c.N // 2], p0=1) + hostile('last key in range, selector claims above: c = cmax - 1, p = 1, bh = 1', hi, + r=(c.H - 2) % c.w, idx=(c.H - 2) // c.w + c.N // 2, y=c.tab[(c.H - 2) // c.w + c.N // 2], p0=0, bh=1) + hostile('first key above, selector says in range: idx = N (no such row)', hi + 1, idx=c.N, r=0, p0=0, p1=0, bh=0) + hostile('first key above, bit flipped against the excess', hi + 1, + **(dict(bh=0, p0=1) if c.outside == 'branch' else dict(bh=1, p0=0))) + hostile('first key below, bit flipped against the excess', lo - 1, + **(dict(bl=0, n0=1) if c.outside == 'branch' else dict(bl=1, n0=0))) + hostile('far above, selector says in range: c = 0, p = gw + off', g_far, idx=c.N // 2, r=0, y=c.tab[c.N // 2], + p0=(g_far + c.off) % K, p1=(g_far + c.off) // K, bh=0) + hostile('excess limb outside its key class: the whole excess %d in the low limb, p1 = 0 (R1 holds)' % big, hi + big, + p0=big - (1 if c.outside == 'branch' else 0), p1=0) + hostile('both excesses non-zero above: p and n each one larger', hi + 10, p0=relation.honest_cells(fmt, c, hi + 10)['p0'] + 1, n0=1) + hostile('table value from another row', g_in, y=c.tab[(g_in + c.off) // c.w + c.N // 2 + 1] + 12345) + rows = [] + for tag, expect, cells, want_s in cases: + bad = relation.check(fmt, c, cells, 'full') + got = 'refuse' if bad else 'accept' + ok = got == expect and (expect == 'refuse' or cells['s'] == want_s) + rows.append(dict(case=tag, cells=cells, expected=expect, got=got, refused_by=bad, + registered_s=want_s, ok=ok)) + out.append(dict(candidate=c.name, outside=c.outside, cases=rows, all_ok=all(r['ok'] for r in rows), + n_accept=sum(r['expected'] == 'accept' for r in rows), n_refuse=sum(r['expected'] == 'refuse' for r in rows))) + return out + + +def unbound_statements(c, R, fmt=relation.REAL, g_far=100000): + """What the relation accepts when a binding relation is removed, as sets.""" + probes = [0, c.hi_edge(), c.hi_edge() + 1, g_far, R - 1, c.lo_edge() - 1, -(R - 1)] + no_bits, no_r2 = [], [] + for gw in probes: + honest = c.s_point(gw) + st = sorted(relation.stated_set(fmt, c, gw, 'no_bits')) + no_bits.append(dict(gw=gw, honest_s=honest, accepted_s=st, largest_abs_dev=max(abs(x - honest) for x in st))) + lo, hi = relation.no_R2_extremes(fmt, c, gw) + no_r2.append(dict(gw=gw, honest_s=honest, smallest_accepted_s=lo, largest_accepted_s=hi, + largest_abs_dev=max(abs(lo - honest), abs(hi - honest)))) + # the multiplexer form of the issue, in words: s is the table value, gw or C, chosen by a selector + # that no relation ties to gw. For gw above the range the set contains C; below it, gw. + C = c.Cval if c.outside == 'branch' else None + mux = None + if c.outside == 'branch': + mux = dict(form='s in {table value (only if the key is in the table range), gw, C}, selector tied to nothing', + at_class_edge_positive=dict(gw=R - 1, honest_s=R - 1, also_accepted=C, abs_dev=abs(R - 1 - C)), + at_class_edge_negative=dict(gw=-(R - 1), honest_s=C, also_accepted=-(R - 1), abs_dev=abs(-(R - 1) - C)), + in_range_example=dict(gw=-c.H, honest_s=c.tab[0] if c.off == 0 else c.s_point(-c.H), also_accepted=[-c.H, C])) + return dict(without_the_bit_terms_of_R2=no_bits, without_R2=no_r2, multiplexer_form_unbound=mux, + note='sets computed from the definitions (relation.stated_set, relation.no_R2_extremes); ' + 'the first is checked exhaustively against a witness search on the toy format in U6') + + +def run(toy): + if toy: + import unit_tests + R, A, B = 1 << 10, 32, 128 + target = unit_tests.toy_target(1 << 8) + tinfo = dict(toy=True, note='synthetic integer target, not SiLU') + cands = [sc.Cand('toy-v1', 32, 4, 'floor', 'clip'), sc.Cand('toy-a', 32, 4, 'mid', 'clip'), + sc.Cand('toy-c', 64, 4, 'mid', 'clip'), sc.Cand('toy-d0', 32, 4, 'floor', 'branch', C=0), + sc.Cand('toy-d1', 32, 4, 'floor', 'branch', C='row0'), sc.Cand('toy-e5', 32, 4, 'floor', 'excess'), + sc.Cand('toy-e6', 32, 4, 'mid', 'excess')] + for c in cands: + c.set_table(sc.exact_rows(c.H, c.w, target)) + honest_files, gw_honest = [], 500 + pinned_diff = None + else: + R, A, B = sc.RNG_CLASS, 1 << 15, 1 << 18 + built = sc.build_target(sc.G0) + tinfo = dict(toy=False, scale_bits=sc.QB, enumerated_to=sc.G0, undecided=built['undecided'][:20], + n_undecided=len(built['undecided']), + tail_lemma={k: (str(v) if k == 'hi_G0' else v) for k, v in built['tail'].items()}) + if built['undecided'] or not built['tail']['holds']: + return dict(target=tinfo, stopped='the exact target is not decided at this precision; no candidate evaluated') + target = sc.Target(built) + tinfo['T_min'] = min(target.all) + tinfo['T_min_at'] = target.all.index(min(target.all)) - sc.G0 + tinfo['T_at'] = {str(g): target.at(g) for g in (-(1 << 15), -(1 << 15) - 1, (1 << 15) - 16, (1 << 15) - 1, 1 << 15, + -(1 << 16), 1 << 16, -(1 << 17), 1 << 17, -(1 << 18), 1 << 18)} + # the smallest g from which T(g) = g and T(-g) = 0 hold all the way up to the enumeration bound + g_id = sc.G0 + while g_id > 0 and target.at(g_id - 1) == g_id - 1: + g_id -= 1 + g_z = sc.G0 + while g_z > 0 and target.at(-(g_z - 1)) == 0: + g_z -= 1 + tinfo['T_is_identity_from'] = g_id + tinfo['T_is_zero_from_minus'] = g_z + cands = sc.registered_candidates() + pinned = sc.pinned_rows() + pinned_diff = 0 + for c in cands: + rows = sc.exact_rows(c.H, c.w, target) + if (c.H, c.w) == (1 << 15, 16): + pinned_diff = sum(1 for x, y in zip(pinned, rows) if x != y) + rows = pinned + c.set_table(rows) + honest_files = honest_gw_from_main() + gw_honest = max(h['max_abs_gw'] for h in honest_files) + + wins = [(f'[-{A}, {A})', -A, A - 1), (f'[{A}, {B})', A, B - 1), (f'[{B}, {R})', B, R - 1), + (f'[-{B}, -{A})', -B, -A - 1), (f'(-{R}, -{B})', -(R - 1), -B - 1), (f'[{A}, {R})', A, R - 1), + ('whole class', -(R - 1), R - 1)] + res = [] + for c in cands: + f = sc.Finder(c, target, R) + w = {name: f.window(a, b) for name, a, b in wins} + own = dict(table_range=f.window(c.lo_edge(), c.hi_edge()), above=f.window(c.hi_edge() + 1, R - 1), + below=f.window(-(R - 1), c.lo_edge() - 1)) + sig = f.err[-A + f.G0:A + f.G0] + means = dict(in_domain=f.mean(-A, A - 1), non_negative=f.mean(0, A - 1)) + q4 = [dict(gw=g, s=c.s_point(g), T=target.at(g), err=c.s_point(g) - target.at(g)) for g in (gw_honest, -gw_honest)] + Tmax = max(map(abs, c.tab)) + S_img = f.image_bound() + low_rows, S_edge = ledger.lowering_rows(c.H, c.w, c.N, c.off, Tmax, c.Khi, c.Klo, c.outside) + copied = ledger.copied_rows(S_edge, c.w, c.N) + mlp_rows = [r for r in copied if 'mlp' in r['use']] + low_rows + shared_rows = [r for r in copied if 'shared' in r['use']] + low_rows + hb = ledger.h_needed_bits(S_edge) + h_alt = ledger.h_rows(S_edge, 23) + ledger.h_rows(S_edge, hb) + e_hi = w[f'[{A}, {R})']['max_abs_err'] + item1 = e_hi <= 32 + item2_rows = ledger.verdict(mlp_rows)['all_below_2_63'] + item2_h = all(r['below_2_63'] for r in h_alt) + item2 = item2_rows and item2_h + # descriptive (PREREG Amendment 3): the same copied rows at the exact image S_img, i.e. with |s| + # bounded as IMPLIED by R1, R2 and R5 holding over the integers, the way bounds.py bounds k and q + cp_img = ledger.copied_rows(S_img, c.w, c.N) + implied = dict(S=S_img, mlp_use=ledger.verdict([r for r in cp_img if 'mlp' in r['use']] + low_rows), + shared_use=ledger.verdict([r for r in cp_img if 'shared' in r['use']] + low_rows), + shared_rows=[dict(relation=r['relation'], log2=r['log2'], below_2_63=r['below_2_63']) + for r in cp_img if 'shared' in r['use']]) + res.append(dict( + candidate=c.describe(), image_bound_exact=S_img, table_max_abs=Tmax, S_edge_used_in_ledger=S_edge, + ledger_at_exact_image_descriptive=implied, + tails_affine={k: v['affine'] for k, v in f.tail_checks.items()}, + windows=w, own_ranges=own, signed_extremes_in_domain=dict(max=max(sig), min=min(sig)), + means=means, at_largest_honest_gw=q4, + ledger=dict(mlp_use=dict(rows=mlp_rows, verdict=ledger.verdict(mlp_rows)), + shared_use=dict(rows=shared_rows, verdict=ledger.verdict(shared_rows)), + h=dict(bits_needed_for_every_floor_s_u=hb, largest_B_with_down_below_2_63=ledger.largest_B_down(), + rows_h_exact_23_and_needed=h_alt, + note='h as a range cell proves |h| < 2^23 only; honest h must then be below the range ' + 'check\'s honest bound. An exact class of B bits has no such gap.')), + lowering=c.outside, + threshold=dict(item1_high_side_max_le_32=item1, high_side_max=e_hi, item2_mlp_rows_below_2_63=item2, + item2_copied_and_lowering_rows=item2_rows, item2_h_class_rows=item2_h, + item3_selector_bound=('by the argument in RESULTS.md, U6 and the relation cases' + if c.outside in ('branch', 'excess') else 'no selector (clip)')))) + del f + out = dict(experiment='20261129-222-silu-repairs', class_='|gw| < %d' % R, target=tinfo, + pinned_v1_rows_differing_from_exact=pinned_diff, honest_gw_files=honest_files, largest_honest_gw=gw_honest, + candidates=res) + by = {c.name: c for c in cands} + rc = [by[n] for n in (('toy-d0', 'toy-e5') if toy else ('d0', 'e5'))] + if not toy: + out['relation_cases'] = relation_cases(rc, gw_honest) + out['unbound'] = {c.name: unbound_statements(c, R) for c in rc + [by['d1'], by['e1']]} + else: + tf = relation.Fmt(R, 6) # toy: two 6-bit limbs + out['relation_cases'] = relation_cases(rc, gw_honest, fmt=tf, g_in=10, g_far=300, big=70) + out['unbound'] = {c.name: unbound_statements(c, R, fmt=tf, g_far=300) for c in rc + [by['toy-d1']]} + out['statement_cost'] = statement_counts(load_count_m3()) + return out + + +def table_md(out): + L = ['| candidate | rows | index | outside | max err in [-2^15, 2^15) | max err in [2^15, 2^23) | max err below -2^15 | max err, whole class (at gw) | mean err, [-2^15, 2^15) | image bound in ledger (log2) | MLP rows < 2^63 (worst log2) | shared rows < 2^63 (worst log2, failing) | item 1 |', + '|---|---|---|---|---|---|---|---|---|---|---|---|---|'] + for r in out['candidates']: + c, w = r['candidate'], r['windows'] + k = list(w) + lowmax = max(w[k[3]]['max_abs_err'], w[k[4]]['max_abs_err']) + mv, sv = r['ledger']['mlp_use']['verdict'], r['ledger']['shared_use']['verdict'] + L.append('| %s | %d | %s | %s | %d | %d | %d | %d (%d) | %s | %d (%.3f) | %s (%.3f) | %s (%.3f%s) | %s |' % ( + c['name'], c['rows'], c['index'], c['outside'] + ('' if c['C'] is None else '(%d)' % c['C']), + w[k[0]]['max_abs_err'], w[k[5]]['max_abs_err'], lowmax, w[k[6]]['max_abs_err'], w[k[6]]['at_gw'], + r['means']['in_domain']['mean_display'], r['S_edge_used_in_ledger'], math.log2(r['S_edge_used_in_ledger']), + 'yes' if mv['all_below_2_63'] else 'NO', mv['worst_log2'], + 'yes' if sv['all_below_2_63'] else 'NO', sv['worst_log2'], '' if sv['all_below_2_63'] else '; ' + str(len(sv['failing'])) + ' row(s)', + 'yes' if r['threshold']['item1_high_side_max_le_32'] else 'no')) + return '\n'.join(L) + '\n' + + +def main(): + args = sys.argv[1:] + toy = '--toy' in args + table = args[args.index('--table') + 1] if '--table' in args else None + out = run(toy) + open(args[0], 'w').write(json.dumps(out, indent=1) + '\n') + if table and 'candidates' in out and not toy: # the table's headings name the real windows + open(table, 'w').write(table_md(out)) + print(json.dumps(dict(toy=toy, candidates=len(out.get('candidates', [])), stopped=out.get('stopped'), + relation_cases_ok=[r['all_ok'] for r in out.get('relation_cases', [])]))) + + +if __name__ == '__main__': + main() diff --git a/experiments/20261129-222-silu-repairs/debug/toy.json b/experiments/20261129-222-silu-repairs/debug/toy.json new file mode 100644 index 00000000..3e87f64d --- /dev/null +++ b/experiments/20261129-222-silu-repairs/debug/toy.json @@ -0,0 +1,5064 @@ +{ + "experiment": "20261129-222-silu-repairs", + "class_": "|gw| < 1024", + "target": { + "toy": true, + "note": "synthetic integer target, not SiLU" + }, + "pinned_v1_rows_differing_from_exact": null, + "honest_gw_files": [], + "largest_honest_gw": 500, + "candidates": [ + { + "candidate": { + "name": "toy-v1", + "H": 32, + "w": 4, + "rows": 16, + "index": "floor", + "offset": 0, + "outside": "clip", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "", + "table_range": [ + -32, + 31 + ] + }, + "image_bound_exact": 26, + "table_max_abs": 26, + "S_edge_used_in_ledger": 26, + "ledger_at_exact_image_descriptive": { + "S": 26, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": false + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 59.001618, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.000017, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.0, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.0, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 47.0182, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 59.001618, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011227, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.000004, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 35.009129, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32, 32)": { + "a": -32, + "b": 31, + "max_abs_err": 11, + "at_gw": 5, + "err_there": -11, + "decided_by": "enumeration" + }, + "[32, 128)": { + "a": 32, + "b": 127, + "max_abs_err": 105, + "at_gw": 126, + "err_there": -105, + "decided_by": "enumeration" + }, + "[128, 1024)": { + "a": 128, + "b": 1023, + "max_abs_err": 997, + "at_gw": 1023, + "err_there": -997, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-128, -32)": { + "a": -128, + "b": -33, + "max_abs_err": 6, + "at_gw": -39, + "err_there": -6, + "decided_by": "enumeration" + }, + "(-1024, -128)": { + "a": -1023, + "b": -129, + "max_abs_err": 6, + "at_gw": -130, + "err_there": -6, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32, 1024)": { + "a": 32, + "b": 1023, + "max_abs_err": 997, + "at_gw": 1023, + "err_there": -997, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -1023, + "b": 1023, + "max_abs_err": 997, + "at_gw": 1023, + "err_there": -997, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32, + "b": 31, + "max_abs_err": 11, + "at_gw": 5, + "err_there": -11, + "decided_by": "enumeration" + }, + "above": { + "a": 32, + "b": 1023, + "max_abs_err": 997, + "at_gw": 1023, + "err_there": -997, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -1023, + "b": -33, + "max_abs_err": 6, + "at_gw": -39, + "err_there": -6, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 10, + "min": -11 + }, + "means": { + "in_domain": { + "a": -32, + "b": 31, + "sum": -39, + "count": 64, + "mean_exact": "-39/64", + "mean_display": "-0.6093" + }, + "non_negative": { + "a": 0, + "b": 31, + "sum": -41, + "count": 32, + "mean_exact": "-41/32", + "mean_display": "-1.2812" + } + }, + "at_largest_honest_gw": [ + { + "gw": 500, + "s": 26, + "T": 500, + "err": -474 + }, + { + "gw": -500, + "s": -6, + "T": 0, + "err": -6 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8388706, + "log2": 23.000017, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 34577842149, + "log2": 35.009129, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 51580287628345343, + "log2": 55.517669, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 41943132, + "log2": 25.321931, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4244635395, + "log2": 31.982993, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 52, + "log2": 5.70044, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": false + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8388706, + "log2": 23.000017, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 281474960019985, + "log2": 48.0, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 281474993574415, + "log2": 48.0, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 142524194750437, + "log2": 47.0182, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 577107540018453307, + "log2": 59.001618, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18155134286561279, + "log2": 54.011227, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 34359840768, + "log2": 35.000004, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007266900578303, + "log2": 53.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 34577842149, + "log2": 35.009129, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 41943132, + "log2": 25.321931, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4244635395, + "log2": 31.982993, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 52, + "log2": 5.70044, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 59.001618, + "failing": [], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 16, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 34577846245, + "log2": 35.009129, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^16, 2^16))", + "bound": 486543333, + "log2": 28.857993, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^16, 2^16))", + "bound": 36033469943382015, + "log2": 55.000187, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^16 - limbs (2 key12)", + "bound": 16908287, + "log2": 24.011227, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "clip", + "threshold": { + "item1_high_side_max_le_32": false, + "high_side_max": 997, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "no selector (clip)" + } + }, + { + "candidate": { + "name": "toy-a", + "H": 32, + "w": 4, + "rows": 16, + "index": "mid", + "offset": 2, + "outside": "clip", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "", + "table_range": [ + -34, + 29 + ] + }, + "image_bound_exact": 26, + "table_max_abs": 26, + "S_edge_used_in_ledger": 26, + "ledger_at_exact_image_descriptive": { + "S": 26, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": false + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 59.001618, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.000017, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.0, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.0, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 47.0182, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 59.001618, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011227, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.000004, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 35.009129, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32, 32)": { + "a": -32, + "b": 31, + "max_abs_err": 14, + "at_gw": -1, + "err_there": 14, + "decided_by": "enumeration" + }, + "[32, 128)": { + "a": 32, + "b": 127, + "max_abs_err": 105, + "at_gw": 126, + "err_there": -105, + "decided_by": "enumeration" + }, + "[128, 1024)": { + "a": 128, + "b": 1023, + "max_abs_err": 997, + "at_gw": 1023, + "err_there": -997, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-128, -32)": { + "a": -128, + "b": -33, + "max_abs_err": 6, + "at_gw": -39, + "err_there": -6, + "decided_by": "enumeration" + }, + "(-1024, -128)": { + "a": -1023, + "b": -129, + "max_abs_err": 6, + "at_gw": -130, + "err_there": -6, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32, 1024)": { + "a": 32, + "b": 1023, + "max_abs_err": 997, + "at_gw": 1023, + "err_there": -997, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -1023, + "b": 1023, + "max_abs_err": 997, + "at_gw": 1023, + "err_there": -997, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -34, + "b": 29, + "max_abs_err": 14, + "at_gw": -1, + "err_there": 14, + "decided_by": "enumeration" + }, + "above": { + "a": 30, + "b": 1023, + "max_abs_err": 997, + "at_gw": 1023, + "err_there": -997, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -1023, + "b": -35, + "max_abs_err": 6, + "at_gw": -39, + "err_there": -6, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 14, + "min": -11 + }, + "means": { + "in_domain": { + "a": -32, + "b": 31, + "sum": 25, + "count": 64, + "mean_exact": "25/64", + "mean_display": "0.3906" + }, + "non_negative": { + "a": 0, + "b": 31, + "sum": 1, + "count": 32, + "mean_exact": "1/32", + "mean_display": "0.0312" + } + }, + "at_largest_honest_gw": [ + { + "gw": 500, + "s": 26, + "T": 500, + "err": -474 + }, + { + "gw": -500, + "s": -6, + "T": 0, + "err": -6 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8388706, + "log2": 23.000017, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 34577842149, + "log2": 35.009129, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 51580287628345343, + "log2": 55.517669, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 41943134, + "log2": 25.321931, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4244635395, + "log2": 31.982993, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 52, + "log2": 5.70044, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": false + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8388706, + "log2": 23.000017, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 281474960019985, + "log2": 48.0, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 281474993574415, + "log2": 48.0, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 142524194750437, + "log2": 47.0182, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 577107540018453307, + "log2": 59.001618, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18155134286561279, + "log2": 54.011227, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 34359840768, + "log2": 35.000004, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007266900578303, + "log2": 53.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 34577842149, + "log2": 35.009129, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 41943134, + "log2": 25.321931, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4244635395, + "log2": 31.982993, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 52, + "log2": 5.70044, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 59.001618, + "failing": [], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 16, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 34577846245, + "log2": 35.009129, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^16, 2^16))", + "bound": 486543333, + "log2": 28.857993, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^16, 2^16))", + "bound": 36033469943382015, + "log2": 55.000187, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^16 - limbs (2 key12)", + "bound": 16908287, + "log2": 24.011227, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "clip", + "threshold": { + "item1_high_side_max_le_32": false, + "high_side_max": 997, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "no selector (clip)" + } + }, + { + "candidate": { + "name": "toy-c", + "H": 64, + "w": 4, + "rows": 32, + "index": "mid", + "offset": 2, + "outside": "clip", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "", + "table_range": [ + -66, + 61 + ] + }, + "image_bound_exact": 65, + "table_max_abs": 65, + "S_edge_used_in_ledger": 65, + "ledger_at_exact_image_descriptive": { + "S": 65, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": false + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 59.004041, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.000033, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.0, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.0, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 47.045077, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 59.004041, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011227, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.000011, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 35.022715, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32, 32)": { + "a": -32, + "b": 31, + "max_abs_err": 14, + "at_gw": -1, + "err_there": 14, + "decided_by": "enumeration" + }, + "[32, 128)": { + "a": 32, + "b": 127, + "max_abs_err": 66, + "at_gw": 126, + "err_there": -66, + "decided_by": "enumeration" + }, + "[128, 1024)": { + "a": 128, + "b": 1023, + "max_abs_err": 958, + "at_gw": 1023, + "err_there": -958, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-128, -32)": { + "a": -128, + "b": -33, + "max_abs_err": 10, + "at_gw": -37, + "err_there": -10, + "decided_by": "enumeration" + }, + "(-1024, -128)": { + "a": -1023, + "b": -129, + "max_abs_err": 6, + "at_gw": -130, + "err_there": -6, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32, 1024)": { + "a": 32, + "b": 1023, + "max_abs_err": 958, + "at_gw": 1023, + "err_there": -958, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -1023, + "b": 1023, + "max_abs_err": 958, + "at_gw": 1023, + "err_there": -958, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -66, + "b": 61, + "max_abs_err": 14, + "at_gw": -1, + "err_there": 14, + "decided_by": "enumeration" + }, + "above": { + "a": 62, + "b": 1023, + "max_abs_err": 958, + "at_gw": 1023, + "err_there": -958, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -1023, + "b": -67, + "max_abs_err": 6, + "at_gw": -70, + "err_there": -6, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 14, + "min": -11 + }, + "means": { + "in_domain": { + "a": -32, + "b": 31, + "sum": 33, + "count": 64, + "mean_exact": "33/64", + "mean_display": "0.5156" + }, + "non_negative": { + "a": 0, + "b": 31, + "sum": 9, + "count": 32, + "mean_exact": "9/32", + "mean_display": "0.2812" + } + }, + "at_largest_honest_gw": [ + { + "gw": 500, + "s": 65, + "T": 500, + "err": -435 + }, + { + "gw": -500, + "s": -6, + "T": 0, + "err": -6 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8388802, + "log2": 23.000033, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 34904997822, + "log2": 35.022715, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 74907523542417407, + "log2": 56.05596, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 41943230, + "log2": 25.321935, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 8539602435, + "log2": 32.991522, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 130, + "log2": 7.022368, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": false + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8388802, + "log2": 23.000033, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 281474960474257, + "log2": 48.0, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 281474994028687, + "log2": 48.0, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 145204254343102, + "log2": 47.045077, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 578077721590998037, + "log2": 59.004041, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18155134940872703, + "log2": 54.011227, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 34360000512, + "log2": 35.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007266900738047, + "log2": 53.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 34904997822, + "log2": 35.022715, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 41943230, + "log2": 25.321935, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 8539602435, + "log2": 32.991522, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 130, + "log2": 7.022368, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 59.004041, + "failing": [], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 18, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 34905001918, + "log2": 35.022715, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^18, 2^18))", + "bound": 1619005374, + "log2": 30.592461, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^18, 2^18))", + "bound": 36047488716636159, + "log2": 55.000748, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^18 - limbs (2 key12)", + "bound": 17301503, + "log2": 24.044394, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "clip", + "threshold": { + "item1_high_side_max_le_32": false, + "high_side_max": 958, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "no selector (clip)" + } + }, + { + "candidate": { + "name": "toy-d0", + "H": 32, + "w": 4, + "rows": 16, + "index": "floor", + "offset": 0, + "outside": "branch", + "C": 0, + "Khi": 5, + "Klo": 6, + "item": "", + "table_range": [ + -32, + 31 + ] + }, + "image_bound_exact": 1023, + "table_max_abs": 26, + "S_edge_used_in_ledger": 16777253, + "ledger_at_exact_image_descriptive": { + "S": 1023, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": false + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 59.062324, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.000017, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.000001, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.000001, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 47.584493, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 59.062324, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011228, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.000176, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 35.321646, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32, 32)": { + "a": -32, + "b": 31, + "max_abs_err": 11, + "at_gw": 5, + "err_there": -11, + "decided_by": "enumeration" + }, + "[32, 128)": { + "a": 32, + "b": 127, + "max_abs_err": 5, + "at_gw": 33, + "err_there": -5, + "decided_by": "enumeration" + }, + "[128, 1024)": { + "a": 128, + "b": 1023, + "max_abs_err": 5, + "at_gw": 132, + "err_there": -5, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-128, -32)": { + "a": -128, + "b": -33, + "max_abs_err": 11, + "at_gw": -34, + "err_there": 11, + "decided_by": "enumeration" + }, + "(-1024, -128)": { + "a": -1023, + "b": -129, + "max_abs_err": 11, + "at_gw": -138, + "err_there": 11, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32, 1024)": { + "a": 32, + "b": 1023, + "max_abs_err": 5, + "at_gw": 33, + "err_there": -5, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -1023, + "b": 1023, + "max_abs_err": 11, + "at_gw": 5, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32, + "b": 31, + "max_abs_err": 11, + "at_gw": 5, + "err_there": -11, + "decided_by": "enumeration" + }, + "above": { + "a": 32, + "b": 1023, + "max_abs_err": 5, + "at_gw": 33, + "err_there": -5, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -1023, + "b": -33, + "max_abs_err": 11, + "at_gw": -34, + "err_there": 11, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 10, + "min": -11 + }, + "means": { + "in_domain": { + "a": -32, + "b": 31, + "sum": -39, + "count": 64, + "mean_exact": "-39/64", + "mean_display": "-0.6093" + }, + "non_negative": { + "a": 0, + "b": 31, + "sum": -41, + "count": 32, + "mean_exact": "-41/32", + "mean_display": "-1.2812" + } + }, + "at_largest_honest_gw": [ + { + "gw": 500, + "s": 500, + "T": 500, + "err": 0 + }, + { + "gw": -500, + "s": 0, + "T": 0, + "err": 0 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8388706, + "log2": 23.000017, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 140772141694938, + "log2": 47.000355, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 10035085739593769680895, + "log2": 73.087471, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 41943134, + "log2": 25.321931, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (branch): (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n", + "bound": 4311744512, + "log2": 32.005625, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "bit class: 1 - b - key", + "bound": 4097, + "log2": 12.000352, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R5 (branch): s - y - p - Khi bh - Klo bl", + "bound": 33554506, + "log2": 25.000003, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8388706, + "log2": 23.000017, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 36310430892862609, + "log2": 55.011234, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 36310430926417039, + "log2": 55.011234, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 1153064784699064282, + "log2": 60.000179, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 417934965842580065197, + "log2": 68.50184, + "below_2_63": false, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18436609447821311, + "log2": 54.033423, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 103079362560, + "log2": 36.584965, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007335620100095, + "log2": 53.000022, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 140772141694938, + "log2": 47.000355, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 41943134, + "log2": 25.321931, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (branch): (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n", + "bound": 4311744512, + "log2": 32.005625, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "bit class: 1 - b - key", + "bound": 4097, + "log2": 12.000352, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R5 (branch): s - y - p - Khi bh - Klo bl", + "bound": 33554506, + "log2": 25.000003, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "verdict": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 68.50184, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 36, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 140772141699034, + "log2": 47.000355, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^36, 2^36))", + "bound": 422212758671322, + "log2": 48.584964, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^36, 2^36))", + "bound": 4935945191598063615, + "log2": 62.098032, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^36 - limbs (4 key12)", + "bound": 281612415664127, + "log2": 48.000704, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 6 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "branch", + "threshold": { + "item1_high_side_max_le_32": true, + "high_side_max": 5, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "by the argument in RESULTS.md, U6 and the relation cases" + } + }, + { + "candidate": { + "name": "toy-d1", + "H": 32, + "w": 4, + "rows": 16, + "index": "floor", + "offset": 0, + "outside": "branch", + "C": -6, + "Khi": 5, + "Klo": 0, + "item": "", + "table_range": [ + -32, + 31 + ] + }, + "image_bound_exact": 1023, + "table_max_abs": 26, + "S_edge_used_in_ledger": 16777247, + "ledger_at_exact_image_descriptive": { + "S": 1023, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": false + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 59.062324, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.000017, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.000001, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.000001, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 47.584493, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 59.062324, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011228, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.000176, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 35.321646, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32, 32)": { + "a": -32, + "b": 31, + "max_abs_err": 11, + "at_gw": 5, + "err_there": -11, + "decided_by": "enumeration" + }, + "[32, 128)": { + "a": 32, + "b": 127, + "max_abs_err": 5, + "at_gw": 33, + "err_there": -5, + "decided_by": "enumeration" + }, + "[128, 1024)": { + "a": 128, + "b": 1023, + "max_abs_err": 5, + "at_gw": 132, + "err_there": -5, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-128, -32)": { + "a": -128, + "b": -33, + "max_abs_err": 6, + "at_gw": -39, + "err_there": -6, + "decided_by": "enumeration" + }, + "(-1024, -128)": { + "a": -1023, + "b": -129, + "max_abs_err": 6, + "at_gw": -130, + "err_there": -6, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32, 1024)": { + "a": 32, + "b": 1023, + "max_abs_err": 5, + "at_gw": 33, + "err_there": -5, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -1023, + "b": 1023, + "max_abs_err": 11, + "at_gw": 5, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32, + "b": 31, + "max_abs_err": 11, + "at_gw": 5, + "err_there": -11, + "decided_by": "enumeration" + }, + "above": { + "a": 32, + "b": 1023, + "max_abs_err": 5, + "at_gw": 33, + "err_there": -5, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -1023, + "b": -33, + "max_abs_err": 6, + "at_gw": -39, + "err_there": -6, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 10, + "min": -11 + }, + "means": { + "in_domain": { + "a": -32, + "b": 31, + "sum": -39, + "count": 64, + "mean_exact": "-39/64", + "mean_display": "-0.6093" + }, + "non_negative": { + "a": 0, + "b": 31, + "sum": -41, + "count": 32, + "mean_exact": "-41/32", + "mean_display": "-1.2812" + } + }, + "at_largest_honest_gw": [ + { + "gw": 500, + "s": 500, + "T": 500, + "err": 0 + }, + { + "gw": -500, + "s": -6, + "T": 0, + "err": -6 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8388706, + "log2": 23.000017, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 140772091363296, + "log2": 47.000355, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 10035082150788244439039, + "log2": 73.087471, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 41943134, + "log2": 25.321931, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (branch): (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n", + "bound": 4311744512, + "log2": 32.005625, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "bit class: 1 - b - key", + "bound": 4097, + "log2": 12.000352, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R5 (branch): s - y - p - Khi bh - Klo bl", + "bound": 33554494, + "log2": 25.000003, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8388706, + "log2": 23.000017, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 36310405123006609, + "log2": 55.011233, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 36310405156561039, + "log2": 55.011233, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 1153064372382203872, + "log2": 60.000179, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 417934816583876596777, + "log2": 68.50184, + "below_2_63": false, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18436609347158015, + "log2": 54.033423, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 103079337984, + "log2": 36.584964, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007335620075519, + "log2": 53.000022, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 140772091363296, + "log2": 47.000355, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 41943134, + "log2": 25.321931, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (branch): (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n", + "bound": 4311744512, + "log2": 32.005625, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "bit class: 1 - b - key", + "bound": 4097, + "log2": 12.000352, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R5 (branch): s - y - p - Khi bh - Klo bl", + "bound": 33554494, + "log2": 25.000003, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "verdict": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 68.50184, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 36, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 140772091367392, + "log2": 47.000355, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^36, 2^36))", + "bound": 422212708339680, + "log2": 48.584963, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^36, 2^36))", + "bound": 4935945191598063615, + "log2": 62.098032, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^36 - limbs (4 key12)", + "bound": 281612415664127, + "log2": 48.000704, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 6 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "branch", + "threshold": { + "item1_high_side_max_le_32": true, + "high_side_max": 5, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "by the argument in RESULTS.md, U6 and the relation cases" + } + }, + { + "candidate": { + "name": "toy-e5", + "H": 32, + "w": 4, + "rows": 16, + "index": "floor", + "offset": 0, + "outside": "excess", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "", + "table_range": [ + -32, + 31 + ] + }, + "image_bound_exact": 1018, + "table_max_abs": 26, + "S_edge_used_in_ledger": 16777241, + "ledger_at_exact_image_descriptive": { + "S": 1018, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": false + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 59.062026, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.000017, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.000001, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.000001, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 47.582142, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 59.062026, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011228, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.000175, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 35.320236, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32, 32)": { + "a": -32, + "b": 31, + "max_abs_err": 11, + "at_gw": 5, + "err_there": -11, + "decided_by": "enumeration" + }, + "[32, 128)": { + "a": 32, + "b": 127, + "max_abs_err": 10, + "at_gw": 33, + "err_there": -10, + "decided_by": "enumeration" + }, + "[128, 1024)": { + "a": 128, + "b": 1023, + "max_abs_err": 10, + "at_gw": 132, + "err_there": -10, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-128, -32)": { + "a": -128, + "b": -33, + "max_abs_err": 6, + "at_gw": -39, + "err_there": -6, + "decided_by": "enumeration" + }, + "(-1024, -128)": { + "a": -1023, + "b": -129, + "max_abs_err": 6, + "at_gw": -130, + "err_there": -6, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32, 1024)": { + "a": 32, + "b": 1023, + "max_abs_err": 10, + "at_gw": 33, + "err_there": -10, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -1023, + "b": 1023, + "max_abs_err": 11, + "at_gw": 5, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32, + "b": 31, + "max_abs_err": 11, + "at_gw": 5, + "err_there": -11, + "decided_by": "enumeration" + }, + "above": { + "a": 32, + "b": 1023, + "max_abs_err": 10, + "at_gw": 33, + "err_there": -10, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -1023, + "b": -33, + "max_abs_err": 6, + "at_gw": -39, + "err_there": -6, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 10, + "min": -11 + }, + "means": { + "in_domain": { + "a": -32, + "b": 31, + "sum": -39, + "count": 64, + "mean_exact": "-39/64", + "mean_display": "-0.6093" + }, + "non_negative": { + "a": 0, + "b": 31, + "sum": -41, + "count": 32, + "mean_exact": "-41/32", + "mean_display": "-1.2812" + } + }, + "at_largest_honest_gw": [ + { + "gw": 500, + "s": 495, + "T": 500, + "err": -5 + }, + { + "gw": -500, + "s": -6, + "T": 0, + "err": -6 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8388706, + "log2": 23.000017, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 140772041031654, + "log2": 47.000354, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 10035078561982719197183, + "log2": 73.08747, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 41943132, + "log2": 25.321931, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4244635395, + "log2": 31.982993, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (excess): s - y - p", + "bound": 33554482, + "log2": 25.000002, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8388706, + "log2": 23.000017, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 36310379353159825, + "log2": 55.011232, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 36310379386714255, + "log2": 55.011232, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 1153063960065343462, + "log2": 60.000178, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 417934667325173128357, + "log2": 68.501839, + "below_2_63": false, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18436609246494719, + "log2": 54.033423, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 103079313408, + "log2": 36.584964, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007335620050943, + "log2": 53.000022, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 140772041031654, + "log2": 47.000354, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 41943132, + "log2": 25.321931, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4244635395, + "log2": 31.982993, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (excess): s - y - p", + "bound": 33554482, + "log2": 25.000002, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + } + ], + "verdict": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 68.501839, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 36, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 140772041035750, + "log2": 47.000354, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^36, 2^36))", + "bound": 422212658008038, + "log2": 48.584963, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^36, 2^36))", + "bound": 4935945191598063615, + "log2": 62.098032, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^36 - limbs (4 key12)", + "bound": 281612415664127, + "log2": 48.000704, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 6 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "excess", + "threshold": { + "item1_high_side_max_le_32": true, + "high_side_max": 10, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "by the argument in RESULTS.md, U6 and the relation cases" + } + }, + { + "candidate": { + "name": "toy-e6", + "H": 32, + "w": 4, + "rows": 16, + "index": "mid", + "offset": 2, + "outside": "excess", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "", + "table_range": [ + -34, + 29 + ] + }, + "image_bound_exact": 1020, + "table_max_abs": 26, + "S_edge_used_in_ledger": 16777241, + "ledger_at_exact_image_descriptive": { + "S": 1020, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": false + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 59.062145, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.000017, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.000001, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.000001, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 47.583083, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 59.062145, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011228, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.000175, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 35.320801, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32, 32)": { + "a": -32, + "b": 31, + "max_abs_err": 14, + "at_gw": -1, + "err_there": 14, + "decided_by": "enumeration" + }, + "[32, 128)": { + "a": 32, + "b": 127, + "max_abs_err": 8, + "at_gw": 33, + "err_there": -8, + "decided_by": "enumeration" + }, + "[128, 1024)": { + "a": 128, + "b": 1023, + "max_abs_err": 8, + "at_gw": 132, + "err_there": -8, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-128, -32)": { + "a": -128, + "b": -33, + "max_abs_err": 6, + "at_gw": -39, + "err_there": -6, + "decided_by": "enumeration" + }, + "(-1024, -128)": { + "a": -1023, + "b": -129, + "max_abs_err": 6, + "at_gw": -130, + "err_there": -6, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32, 1024)": { + "a": 32, + "b": 1023, + "max_abs_err": 8, + "at_gw": 33, + "err_there": -8, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -1023, + "b": 1023, + "max_abs_err": 14, + "at_gw": -1, + "err_there": 14, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -34, + "b": 29, + "max_abs_err": 14, + "at_gw": -1, + "err_there": 14, + "decided_by": "enumeration" + }, + "above": { + "a": 30, + "b": 1023, + "max_abs_err": 8, + "at_gw": 33, + "err_there": -8, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -1023, + "b": -35, + "max_abs_err": 6, + "at_gw": -39, + "err_there": -6, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 14, + "min": -11 + }, + "means": { + "in_domain": { + "a": -32, + "b": 31, + "sum": 28, + "count": 64, + "mean_exact": "7/16", + "mean_display": "0.4375" + }, + "non_negative": { + "a": 0, + "b": 31, + "sum": 4, + "count": 32, + "mean_exact": "1/8", + "mean_display": "0.1250" + } + }, + "at_largest_honest_gw": [ + { + "gw": 500, + "s": 497, + "T": 500, + "err": -3 + }, + { + "gw": -500, + "s": -6, + "T": 0, + "err": -6 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8388706, + "log2": 23.000017, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 140772041031654, + "log2": 47.000354, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 10035078561982719197183, + "log2": 73.08747, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 41943134, + "log2": 25.321931, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4244635395, + "log2": 31.982993, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (excess): s - y - p", + "bound": 33554482, + "log2": 25.000002, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8388706, + "log2": 23.000017, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 36310379353159825, + "log2": 55.011232, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 36310379386714255, + "log2": 55.011232, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 1153063960065343462, + "log2": 60.000178, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 417934667325173128357, + "log2": 68.501839, + "below_2_63": false, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18436609246494719, + "log2": 54.033423, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 103079313408, + "log2": 36.584964, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007335620050943, + "log2": 53.000022, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 140772041031654, + "log2": 47.000354, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 41943134, + "log2": 25.321931, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4244635395, + "log2": 31.982993, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (excess): s - y - p", + "bound": 33554482, + "log2": 25.000002, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + } + ], + "verdict": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 68.501839, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 36, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 140772041035750, + "log2": 47.000354, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^36, 2^36))", + "bound": 422212658008038, + "log2": 48.584963, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^36, 2^36))", + "bound": 4935945191598063615, + "log2": 62.098032, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^36 - limbs (4 key12)", + "bound": 281612415664127, + "log2": 48.000704, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 6 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "excess", + "threshold": { + "item1_high_side_max_le_32": true, + "high_side_max": 8, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "by the argument in RESULTS.md, U6 and the relation cases" + } + } + ], + "relation_cases": [ + { + "candidate": "toy-d0", + "outside": "branch", + "cases": [ + { + "case": "honest: last key inside the table range", + "cells": { + "gw": 31, + "idx": 15, + "y": 26, + "r": 3, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 26 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 26, + "ok": true + }, + { + "case": "honest: first key above the table range", + "cells": { + "gw": 32, + "idx": 15, + "y": 26, + "r": 3, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 32 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 32, + "ok": true + }, + { + "case": "honest: first key inside the table range", + "cells": { + "gw": -32, + "idx": 0, + "y": -6, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": -6 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": -6, + "ok": true + }, + { + "case": "honest: first key below the table range", + "cells": { + "gw": -33, + "idx": 0, + "y": -6, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 1, + "s": 0 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 0, + "ok": true + }, + { + "case": "honest: largest gw of the committed range files, positive", + "cells": { + "gw": 500, + "idx": 15, + "y": 26, + "r": 3, + "p0": 20, + "p1": 7, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 500 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 500, + "ok": true + }, + { + "case": "honest: largest gw of the committed range files, negative", + "cells": { + "gw": -500, + "idx": 0, + "y": -6, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 19, + "n1": 7, + "bh": 0, + "bl": 1, + "s": 0 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 0, + "ok": true + }, + { + "case": "honest: class edge 2^23 - 1", + "cells": { + "gw": 1023, + "idx": 15, + "y": 26, + "r": 3, + "p0": 31, + "p1": 15, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 1023 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 1023, + "ok": true + }, + { + "case": "honest: class edge -(2^23 - 1)", + "cells": { + "gw": -1023, + "idx": 0, + "y": -6, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 30, + "n1": 15, + "bh": 0, + "bl": 1, + "s": 0 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 0, + "ok": true + }, + { + "case": "honest: gw = 0", + "cells": { + "gw": 0, + "idx": 8, + "y": 5, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 5 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 5, + "ok": true + }, + { + "case": "gw = 2^23, outside the range class", + "cells": { + "gw": 1024, + "idx": 15, + "y": 26, + "r": 3, + "p0": 32, + "p1": 15, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 1024 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "class: gw range cell" + ], + "registered_s": null, + "ok": true + }, + { + "case": "s off by one", + "cells": { + "gw": 10, + "idx": 10, + "y": 7, + "r": 2, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 8 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R5" + ], + "registered_s": null, + "ok": true + }, + { + "case": "in range, selector claims above: c one lower, p = 1, bh = 1 (R1 holds)", + "cells": { + "gw": 10, + "idx": 10, + "y": 7, + "r": 1, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 13 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "in range, excess without the bit: c one lower, p0 = 1 (R1 holds)", + "cells": { + "gw": 10, + "idx": 10, + "y": 7, + "r": 1, + "p0": 1, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 8 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "last key in range, selector claims above: c = cmax - 1, p = 1, bh = 1", + "cells": { + "gw": 31, + "idx": 15, + "y": 26, + "r": 2, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 32 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "first key above, selector says in range: idx = N (no such row)", + "cells": { + "gw": 32, + "idx": 16, + "y": 26, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 26 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "lookup: (idx, y) is not a table row" + ], + "registered_s": null, + "ok": true + }, + { + "case": "first key above, bit flipped against the excess", + "cells": { + "gw": 32, + "idx": 15, + "y": 26, + "r": 3, + "p0": 1, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 27 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "first key below, bit flipped against the excess", + "cells": { + "gw": -33, + "idx": 0, + "y": -6, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 1, + "n1": 0, + "bh": 0, + "bl": 0, + "s": -6 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "far above, selector says in range: c = 0, p = gw + off", + "cells": { + "gw": 300, + "idx": 8, + "y": 5, + "r": 0, + "p0": 44, + "p1": 4, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 305 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "excess limb outside its key class: the whole excess 70 in the low limb, p1 = 0 (R1 holds)", + "cells": { + "gw": 101, + "idx": 15, + "y": 26, + "r": 3, + "p0": 69, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 101 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "class: key p0" + ], + "registered_s": null, + "ok": true + }, + { + "case": "both excesses non-zero above: p and n each one larger", + "cells": { + "gw": 41, + "idx": 15, + "y": 26, + "r": 3, + "p0": 10, + "p1": 0, + "n0": 1, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 42 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "table value from another row", + "cells": { + "gw": 10, + "idx": 10, + "y": 12352, + "r": 2, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 12352 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "lookup: (idx, y) is not a table row" + ], + "registered_s": null, + "ok": true + } + ], + "all_ok": true, + "n_accept": 9, + "n_refuse": 12 + }, + { + "candidate": "toy-e5", + "outside": "excess", + "cases": [ + { + "case": "honest: last key inside the table range", + "cells": { + "gw": 31, + "idx": 15, + "y": 26, + "r": 3, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 26 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 26, + "ok": true + }, + { + "case": "honest: first key above the table range", + "cells": { + "gw": 32, + "idx": 15, + "y": 26, + "r": 3, + "p0": 1, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 27 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 27, + "ok": true + }, + { + "case": "honest: first key inside the table range", + "cells": { + "gw": -32, + "idx": 0, + "y": -6, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": -6 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": -6, + "ok": true + }, + { + "case": "honest: first key below the table range", + "cells": { + "gw": -33, + "idx": 0, + "y": -6, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 1, + "n1": 0, + "bh": 0, + "bl": 0, + "s": -6 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": -6, + "ok": true + }, + { + "case": "honest: largest gw of the committed range files, positive", + "cells": { + "gw": 500, + "idx": 15, + "y": 26, + "r": 3, + "p0": 21, + "p1": 7, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 495 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 495, + "ok": true + }, + { + "case": "honest: largest gw of the committed range files, negative", + "cells": { + "gw": -500, + "idx": 0, + "y": -6, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 20, + "n1": 7, + "bh": 0, + "bl": 0, + "s": -6 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": -6, + "ok": true + }, + { + "case": "honest: class edge 2^23 - 1", + "cells": { + "gw": 1023, + "idx": 15, + "y": 26, + "r": 3, + "p0": 32, + "p1": 15, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 1018 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 1018, + "ok": true + }, + { + "case": "honest: class edge -(2^23 - 1)", + "cells": { + "gw": -1023, + "idx": 0, + "y": -6, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 31, + "n1": 15, + "bh": 0, + "bl": 0, + "s": -6 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": -6, + "ok": true + }, + { + "case": "honest: gw = 0", + "cells": { + "gw": 0, + "idx": 8, + "y": 5, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 5 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 5, + "ok": true + }, + { + "case": "gw = 2^23, outside the range class", + "cells": { + "gw": 1024, + "idx": 15, + "y": 26, + "r": 3, + "p0": 33, + "p1": 15, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 1019 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "class: gw range cell" + ], + "registered_s": null, + "ok": true + }, + { + "case": "s off by one", + "cells": { + "gw": 10, + "idx": 10, + "y": 7, + "r": 2, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 8 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R5" + ], + "registered_s": null, + "ok": true + }, + { + "case": "in range, selector claims above: c one lower, p = 1, bh = 1 (R1 holds)", + "cells": { + "gw": 10, + "idx": 10, + "y": 7, + "r": 1, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 8 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "class: bit bh", + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "in range, excess without the bit: c one lower, p0 = 1 (R1 holds)", + "cells": { + "gw": 10, + "idx": 10, + "y": 7, + "r": 1, + "p0": 1, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 8 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "last key in range, selector claims above: c = cmax - 1, p = 1, bh = 1", + "cells": { + "gw": 31, + "idx": 15, + "y": 26, + "r": 2, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 27 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "class: bit bh", + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "first key above, selector says in range: idx = N (no such row)", + "cells": { + "gw": 32, + "idx": 16, + "y": 26, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 26 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "lookup: (idx, y) is not a table row" + ], + "registered_s": null, + "ok": true + }, + { + "case": "first key above, bit flipped against the excess", + "cells": { + "gw": 32, + "idx": 15, + "y": 26, + "r": 3, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 27 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "class: bit bh" + ], + "registered_s": null, + "ok": true + }, + { + "case": "first key below, bit flipped against the excess", + "cells": { + "gw": -33, + "idx": 0, + "y": -6, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 1, + "s": -6 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "class: bit bl" + ], + "registered_s": null, + "ok": true + }, + { + "case": "far above, selector says in range: c = 0, p = gw + off", + "cells": { + "gw": 300, + "idx": 8, + "y": 5, + "r": 0, + "p0": 44, + "p1": 4, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 305 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "excess limb outside its key class: the whole excess 70 in the low limb, p1 = 0 (R1 holds)", + "cells": { + "gw": 101, + "idx": 15, + "y": 26, + "r": 3, + "p0": 70, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 96 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "class: key p0" + ], + "registered_s": null, + "ok": true + }, + { + "case": "both excesses non-zero above: p and n each one larger", + "cells": { + "gw": 41, + "idx": 15, + "y": 26, + "r": 3, + "p0": 11, + "p1": 0, + "n0": 1, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 37 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "table value from another row", + "cells": { + "gw": 10, + "idx": 10, + "y": 12352, + "r": 2, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 12352 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "lookup: (idx, y) is not a table row" + ], + "registered_s": null, + "ok": true + } + ], + "all_ok": true, + "n_accept": 9, + "n_refuse": 12 + } + ], + "unbound": { + "toy-d0": { + "without_the_bit_terms_of_R2": [ + { + "gw": 0, + "honest_s": 5, + "accepted_s": [ + 5 + ], + "largest_abs_dev": 0 + }, + { + "gw": 31, + "honest_s": 26, + "accepted_s": [ + 26 + ], + "largest_abs_dev": 0 + }, + { + "gw": 32, + "honest_s": 32, + "accepted_s": [ + 27, + 32 + ], + "largest_abs_dev": 5 + }, + { + "gw": 300, + "honest_s": 300, + "accepted_s": [ + 295, + 300 + ], + "largest_abs_dev": 5 + }, + { + "gw": 1023, + "honest_s": 1023, + "accepted_s": [ + 1018, + 1023 + ], + "largest_abs_dev": 5 + }, + { + "gw": -33, + "honest_s": 0, + "accepted_s": [ + -6, + 0 + ], + "largest_abs_dev": 6 + }, + { + "gw": -1023, + "honest_s": 0, + "accepted_s": [ + -6, + 0 + ], + "largest_abs_dev": 6 + } + ], + "without_R2": [ + { + "gw": 0, + "honest_s": 5, + "smallest_accepted_s": -8, + "largest_accepted_s": 4112, + "largest_abs_dev": 4107 + }, + { + "gw": 31, + "honest_s": 26, + "smallest_accepted_s": 23, + "largest_accepted_s": 4133, + "largest_abs_dev": 4107 + }, + { + "gw": 32, + "honest_s": 32, + "smallest_accepted_s": 24, + "largest_accepted_s": 4133, + "largest_abs_dev": 4101 + }, + { + "gw": 300, + "honest_s": 300, + "smallest_accepted_s": 292, + "largest_accepted_s": 4133, + "largest_abs_dev": 3833 + }, + { + "gw": 1023, + "honest_s": 1023, + "smallest_accepted_s": 1015, + "largest_accepted_s": 4133, + "largest_abs_dev": 3110 + }, + { + "gw": -33, + "honest_s": 0, + "smallest_accepted_s": -11, + "largest_accepted_s": 4100, + "largest_abs_dev": 4100 + }, + { + "gw": -1023, + "honest_s": 0, + "smallest_accepted_s": -11, + "largest_accepted_s": 3110, + "largest_abs_dev": 3110 + } + ], + "multiplexer_form_unbound": { + "form": "s in {table value (only if the key is in the table range), gw, C}, selector tied to nothing", + "at_class_edge_positive": { + "gw": 1023, + "honest_s": 1023, + "also_accepted": 0, + "abs_dev": 1023 + }, + "at_class_edge_negative": { + "gw": -1023, + "honest_s": 0, + "also_accepted": -1023, + "abs_dev": 1023 + }, + "in_range_example": { + "gw": -32, + "honest_s": -6, + "also_accepted": [ + -32, + 0 + ] + } + }, + "note": "sets computed from the definitions (relation.stated_set, relation.no_R2_extremes); the first is checked exhaustively against a witness search on the toy format in U6" + }, + "toy-e5": { + "without_the_bit_terms_of_R2": [ + { + "gw": 0, + "honest_s": 5, + "accepted_s": [ + 5 + ], + "largest_abs_dev": 0 + }, + { + "gw": 31, + "honest_s": 26, + "accepted_s": [ + 26 + ], + "largest_abs_dev": 0 + }, + { + "gw": 32, + "honest_s": 27, + "accepted_s": [ + 27 + ], + "largest_abs_dev": 0 + }, + { + "gw": 300, + "honest_s": 295, + "accepted_s": [ + 295 + ], + "largest_abs_dev": 0 + }, + { + "gw": 1023, + "honest_s": 1018, + "accepted_s": [ + 1018 + ], + "largest_abs_dev": 0 + }, + { + "gw": -33, + "honest_s": -6, + "accepted_s": [ + -6 + ], + "largest_abs_dev": 0 + }, + { + "gw": -1023, + "honest_s": -6, + "accepted_s": [ + -6 + ], + "largest_abs_dev": 0 + } + ], + "without_R2": [ + { + "gw": 0, + "honest_s": 5, + "smallest_accepted_s": -8, + "largest_accepted_s": 4100, + "largest_abs_dev": 4095 + }, + { + "gw": 31, + "honest_s": 26, + "smallest_accepted_s": 23, + "largest_accepted_s": 4121, + "largest_abs_dev": 4095 + }, + { + "gw": 32, + "honest_s": 27, + "smallest_accepted_s": 24, + "largest_accepted_s": 4121, + "largest_abs_dev": 4094 + }, + { + "gw": 300, + "honest_s": 295, + "smallest_accepted_s": 292, + "largest_accepted_s": 4121, + "largest_abs_dev": 3826 + }, + { + "gw": 1023, + "honest_s": 1018, + "smallest_accepted_s": 1015, + "largest_accepted_s": 4121, + "largest_abs_dev": 3103 + }, + { + "gw": -33, + "honest_s": -6, + "smallest_accepted_s": -11, + "largest_accepted_s": 4088, + "largest_abs_dev": 4094 + }, + { + "gw": -1023, + "honest_s": -6, + "smallest_accepted_s": -11, + "largest_accepted_s": 3098, + "largest_abs_dev": 3104 + } + ], + "multiplexer_form_unbound": null, + "note": "sets computed from the definitions (relation.stated_set, relation.no_R2_extremes); the first is checked exhaustively against a witness search on the toy format in U6" + }, + "toy-d1": { + "without_the_bit_terms_of_R2": [ + { + "gw": 0, + "honest_s": 5, + "accepted_s": [ + 5 + ], + "largest_abs_dev": 0 + }, + { + "gw": 31, + "honest_s": 26, + "accepted_s": [ + 26 + ], + "largest_abs_dev": 0 + }, + { + "gw": 32, + "honest_s": 32, + "accepted_s": [ + 27, + 32 + ], + "largest_abs_dev": 5 + }, + { + "gw": 300, + "honest_s": 300, + "accepted_s": [ + 295, + 300 + ], + "largest_abs_dev": 5 + }, + { + "gw": 1023, + "honest_s": 1023, + "accepted_s": [ + 1018, + 1023 + ], + "largest_abs_dev": 5 + }, + { + "gw": -33, + "honest_s": -6, + "accepted_s": [ + -6 + ], + "largest_abs_dev": 0 + }, + { + "gw": -1023, + "honest_s": -6, + "accepted_s": [ + -6 + ], + "largest_abs_dev": 0 + } + ], + "without_R2": [ + { + "gw": 0, + "honest_s": 5, + "smallest_accepted_s": -8, + "largest_accepted_s": 4106, + "largest_abs_dev": 4101 + }, + { + "gw": 31, + "honest_s": 26, + "smallest_accepted_s": 23, + "largest_accepted_s": 4127, + "largest_abs_dev": 4101 + }, + { + "gw": 32, + "honest_s": 32, + "smallest_accepted_s": 24, + "largest_accepted_s": 4127, + "largest_abs_dev": 4095 + }, + { + "gw": 300, + "honest_s": 300, + "smallest_accepted_s": 292, + "largest_accepted_s": 4127, + "largest_abs_dev": 3827 + }, + { + "gw": 1023, + "honest_s": 1023, + "smallest_accepted_s": 1015, + "largest_accepted_s": 4127, + "largest_abs_dev": 3104 + }, + { + "gw": -33, + "honest_s": -6, + "smallest_accepted_s": -11, + "largest_accepted_s": 4094, + "largest_abs_dev": 4100 + }, + { + "gw": -1023, + "honest_s": -6, + "smallest_accepted_s": -11, + "largest_accepted_s": 3104, + "largest_abs_dev": 3110 + } + ], + "multiplexer_form_unbound": { + "form": "s in {table value (only if the key is in the table range), gw, C}, selector tied to nothing", + "at_class_edge_positive": { + "gw": 1023, + "honest_s": 1023, + "also_accepted": -6, + "abs_dev": 1029 + }, + "at_class_edge_negative": { + "gw": -1023, + "honest_s": -6, + "also_accepted": -1023, + "abs_dev": 1017 + }, + "in_range_example": { + "gw": -32, + "honest_s": -6, + "also_accepted": [ + -32, + -6 + ] + } + }, + "note": "sets computed from the definitions (relation.stated_set, relation.no_R2_extremes); the first is checked exhaustively against a witness search on the toy format in U6" + } + }, + "statement_cost": { + "source": "research/operators/qwen_m3/count_m3.py imported unchanged (mlp_statement, vrem, flookup, summarize, max_T)", + "hidden_units": 17408, + "base_per_hidden_unit": { + "function_lookups": 1, + "range_cells": 3, + "keys": 9, + "gate_columns": 3, + "relations": 7 + }, + "statements": { + "table only (rejects outside the domain, as on main)": { + "per_unit_added": { + "keys": 0, + "gate_columns": 0, + "relations": 0, + "range_cells": 0 + }, + "T16": { + "gate_columns": 835584, + "range_cells": 835584, + "lkp_keys": 2752512, + "relations": 2031616, + "laid_columns": 4423680, + "log_length": 23, + "fits_log22": false + }, + "largest_T_that_fits_log22": 15 + }, + "table only (rejects outside the domain, as on main) + h exact [-2^23, 2^23)": { + "per_unit_added": { + "keys": 2, + "gate_columns": 0, + "relations": 1, + "range_cells": -1 + }, + "T16": { + "gate_columns": 835584, + "range_cells": 557056, + "lkp_keys": 3309568, + "relations": 2310144, + "laid_columns": 4702208, + "log_length": 23, + "fits_log22": false + }, + "largest_T_that_fits_log22": 14 + }, + "clip": { + "per_unit_added": { + "keys": 4, + "gate_columns": 1, + "relations": 3, + "range_cells": 0 + }, + "T16": { + "gate_columns": 1114112, + "range_cells": 835584, + "lkp_keys": 3866624, + "relations": 2867200, + "laid_columns": 5816320, + "log_length": 23, + "fits_log22": false + }, + "largest_T_that_fits_log22": 11 + }, + "clip + h exact [-2^23, 2^23)": { + "per_unit_added": { + "keys": 6, + "gate_columns": 1, + "relations": 4, + "range_cells": -1 + }, + "T16": { + "gate_columns": 1114112, + "range_cells": 557056, + "lkp_keys": 4423680, + "relations": 3145728, + "laid_columns": 6094848, + "log_length": 23, + "fits_log22": false + }, + "largest_T_that_fits_log22": 10 + }, + "excess": { + "per_unit_added": { + "keys": 4, + "gate_columns": 1, + "relations": 3, + "range_cells": 0 + }, + "T16": { + "gate_columns": 1114112, + "range_cells": 835584, + "lkp_keys": 3866624, + "relations": 2867200, + "laid_columns": 5816320, + "log_length": 23, + "fits_log22": false + }, + "largest_T_that_fits_log22": 11 + }, + "excess + h exact [-2^23, 2^23)": { + "per_unit_added": { + "keys": 6, + "gate_columns": 1, + "relations": 4, + "range_cells": -1 + }, + "T16": { + "gate_columns": 1114112, + "range_cells": 557056, + "lkp_keys": 4423680, + "relations": 3145728, + "laid_columns": 6094848, + "log_length": 23, + "fits_log22": false + }, + "largest_T_that_fits_log22": 10 + }, + "branch": { + "per_unit_added": { + "keys": 8, + "gate_columns": 2, + "relations": 7, + "range_cells": 0 + }, + "T16": { + "gate_columns": 1392640, + "range_cells": 835584, + "lkp_keys": 4980736, + "relations": 3981312, + "laid_columns": 7208960, + "log_length": 23, + "fits_log22": false + }, + "largest_T_that_fits_log22": 9 + }, + "branch + h exact [-2^23, 2^23)": { + "per_unit_added": { + "keys": 10, + "gate_columns": 2, + "relations": 8, + "range_cells": -1 + }, + "T16": { + "gate_columns": 1392640, + "range_cells": 557056, + "lkp_keys": 5537792, + "relations": 4259840, + "laid_columns": 7487488, + "log_length": 23, + "fits_log22": false + }, + "largest_T_that_fits_log22": 8 + } + }, + "note": "counted from the lowering written in the note, nothing built; added relations are counted at 3 terms each (count_m3 calls its term totals provisional); the public table rows are listed per candidate, they are not in the layout" + } +} diff --git a/experiments/20261129-222-silu-repairs/ledger.py b/experiments/20261129-222-silu-repairs/ledger.py new file mode 100644 index 00000000..4da190ad --- /dev/null +++ b/experiments/20261129-222-silu-repairs/ledger.py @@ -0,0 +1,123 @@ +#!/usr/bin/env python3 +"""Ledger rows that contain the SiLU image bound, with the bound as a parameter (issue #222). + +The rows marked "copied" are copied from research/operators/qwen_m3/bounds.py at main cdf78449 +(the list ROWS there), term for term, with the constant SILU replaced by the argument S and, for +the key row, the table shape by (w, N). bounds.py itself is not edited. unit_tests.py (U5) checks +that at S = 32,741, w = 16, N = 4,096 every copied row is the same exact integer as bounds.ROWS. + +Each row is the exact integer sum of |term| over all terms, every factor at the edge of its class. +log2 is for display only; `below_2_63` is an exact integer comparison. +""" +import math + +LIMIT = 2 ** 63 +F = 12 +RNG = 2 ** 23 - 1 +W = 4096 +UNIT = 2 ** F +OUT_PUB = 2 ** 31 - 1 +S_MAX = 24 +R_S = 2 ** S_MAX - 1 +SIG = 2 ** 24 - 1 +RC = 2 ** 36 - 1 +EPS = 17 +K_IMP = 2 ** F +D, F_MLP = 128, 17408 +DELTA = 2 ** 18 * RNG + RNG +KEY12 = 2 ** 12 - 1 +SILU_V1 = 32741 + + +def row(name, terms, use, origin, control=False): + s = sum(terms) + return dict(relation=name, bound=s, log2=round(math.log2(s), 6), below_2_63=s < LIMIT, use=use, + origin=origin, control=control, n_terms_summed=len(terms)) + + +def copied_rows(S, w=16, N=4096): + """bounds.py rows with SILU -> S. Names are bounds.py's, so U5 can match them.""" + c = 'copied from bounds.py' + return [ + row('SiLU key: c - step (idx - off) - r', [RNG, w * N, w * (N // 2), w - 1], 'mlp+shared', c), + row('q/k norm S5: sum x^2 + eps - sigma^2 - e1', [D * S ** 2, EPS, SIG ** 2, SIG], 'shared', c), + row('q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2', [SIG ** 2, 2 * SIG, D * S ** 2, EPS, SIG], 'shared', c), + row('k: x Rc - 2^24 k - r', [S * RC, 2 ** 24 * RNG, 2 ** 24 - 1], 'shared', c), + row('q: 362 Rc x - 2^36 q - r', [362 * RC * S, 2 ** 36 * RNG, 2 ** 36 - 1], 'shared', c), + row('recurrence: 2^24 (v - M) + r - g5', [2 ** 24 * S, 2 ** 24 * RNG, 2 ** 24 - 1, D * RNG * K_IMP * UNIT], 'shared', c), + row('recurrence g6 = (v - M) beta', [(S + RNG) * UNIT], 'shared', c), + row('recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo', [2 ** 12 * DELTA, 2 ** 12 - 1, (S + RNG) * UNIT], 'shared', c), + row('gated norm: s w - 2^12 t - r', [S * RNG, 2 ** 12 * RNG, 2 ** 12 - 1], 'shared', c), + row('M3a-MLP: s u - 2^12 h - r (r2)', [S * RNG, 2 ** 12 * RNG, 2 ** 12 - 1], 'mlp', c), + row('M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r', [F_MLP * RNG * W, 2 ** S_MAX * OUT_PUB, R_S], 'mlp', c), + row('CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)', + [F_MLP * S * RNG * W, 2 ** S_MAX * OUT_PUB, R_S], 'mlp', c, control=True), + ] + + +def lowering_rows(H, w, N, off, Tmax, Khi, Klo, outside): + """New rows of the PREREG Amendment 1 lowering. Classes: gw rng; idx in [0, N); r in [0, w); + p0, p1, n0, n1 key12; bh, bl in {0, 1}; y a table cell, |y| <= Tmax. c = w (idx - N/2) + r is a + linear form of cells; its terms are summed at their own edges (w (N - 1), w N / 2, w - 1).""" + new = 'new (this note)' + b = 1 if outside == 'branch' else 0 + cabs = w * (N - 1) + w * (N // 2) + (w - 1) # sum of |term| of the linear form c + pmax = KEY12 + 2 ** 12 * KEY12 + b # p (and n) at the class edge + cmax, cmin = H - 1, -H + rows = [row('R1: gw + off - c - p + n', [RNG, off, cabs, pmax, pmax], 'mlp+shared', new)] + if outside == 'branch': + rows.append(row('R2 (branch): (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n', + [(cmax + cabs + 1 + 1) * pmax, (cabs + abs(cmin) + 1 + 1) * pmax], 'mlp+shared', new)) + rows.append(row('bit class: 1 - b - key', [1, 1, KEY12], 'mlp+shared', new)) + else: + rows.append(row('R2 (clip, excess): (cmax - c) p + (c - cmin) n', + [(cmax + cabs) * pmax, (cabs + abs(cmin)) * pmax], 'mlp+shared', new)) + if outside == 'clip': + s_edge = Tmax + rows.append(row('R5 (clip): s - y', [Tmax, Tmax], 'mlp+shared', new)) + elif outside == 'excess': + s_edge = Tmax + pmax + rows.append(row('R5 (excess): s - y - p', [s_edge, Tmax, pmax], 'mlp+shared', new)) + else: + s_edge = Tmax + pmax + abs(Khi) + abs(Klo) + rows.append(row('R5 (branch): s - y - p - Khi bh - Klo bl', [s_edge, Tmax, pmax, abs(Khi), abs(Klo)], 'mlp+shared', new)) + return rows, s_edge + + +def h_rows(S, B): + """h in an exact class [-2^B, 2^B) (limbs of 12-bit keys, no range cell): the s u row and the + down projection with that edge. B = None: h a range cell, as on main.""" + new = 'new (this note)' + hedge = RNG if B is None else 2 ** B + tag = 'h a range cell' if B is None else f'h exact [-2^{B}, 2^{B})' + rows = [row(f's u - 2^12 h - r ({tag})', [S * RNG, 2 ** 12 * hedge, 2 ** 12 - 1], 'mlp', new), + row(f'down: sum_j h_j Wd_jk - 2^s out - r ({tag})', [F_MLP * hedge * W, 2 ** S_MAX * OUT_PUB, R_S], 'mlp', new)] + if B is not None: + nl = -(-(B + 1) // 12) + rows.append(row(f'h class: h + 2^{B} - limbs ({nl} key12)', [2 ** B, 2 ** B] + [2 ** (12 * i) * KEY12 for i in range(nl)], 'mlp', new)) + return rows + + +def largest_B_down(): + """Largest B with the down projection row below 2^63 when |h| <= 2^B.""" + B = 0 + while F_MLP * 2 ** (B + 1) * W + 2 ** S_MAX * OUT_PUB + R_S < LIMIT: + B += 1 + return B + + +def h_needed_bits(S): + """Smallest B with every floor(s u / 2^12), |s| <= S, |u| <= RNG, inside [-2^B, 2^B).""" + top = S * RNG // 2 ** 12 + 1 # |floor(x / 4096)| <= |x| / 4096 + 1 + B = 0 + while 2 ** B < top + 1: + B += 1 + return B + + +def verdict(rows): + live = [r for r in rows if not r['control']] + worst = max(live, key=lambda r: r['bound']) + return dict(all_below_2_63=all(r['below_2_63'] for r in live), worst_relation=worst['relation'], worst_log2=worst['log2'], + failing=[r['relation'] for r in live if not r['below_2_63']], + controls_wrap=all(not r['below_2_63'] for r in rows if r['control'])) diff --git a/experiments/20261129-222-silu-repairs/relation.py b/experiments/20261129-222-silu-repairs/relation.py new file mode 100644 index 00000000..c8e40ec2 --- /dev/null +++ b/experiments/20261129-222-silu-repairs/relation.py @@ -0,0 +1,179 @@ +#!/usr/bin/env python3 +"""A model of the SiLU-stage relation of PREREG Amendment 1, as a predicate on cells (issue #222). + +This is not a prover, a verifier or a proof. `check(fmt, cand, cells, variant)` answers one +question: do these cell values satisfy these relations and classes? It returns the list of checks +that refuse them (empty = accepted). + +Cells: gw, idx, y, r, p0, p1, n0, n1, bh, bl, s. +Classes: |gw| < R (range cell); (idx, y) a row of the public table; 0 <= r < w; p0, p1, n0, n1 in +[0, 2^L) (keys); bh, bl in {0, 1} (a key and its complement), and 0 unless the candidate is a branch. +Derived: c = w (idx - N/2) + r; p = p0 + 2^L p1 + bh; n = n0 + 2^L n1 + bl. +R1: gw + off = c + p - n. +R2: branch: (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n = 0 + clip, excess: (cmax - c) p + (c - cmin) n = 0 +R5: clip s = y; excess s = y + p; branch s = y + p + Khi bh + Klo bl. + +Variants (what is removed, for the "selector not bound" statements): + full everything + no_bits branch only: R2 without its two (1 - b) terms, i.e. the clip/excess R2 + no_R2 R2 removed +""" + + +class Fmt: + def __init__(self, R, L): + self.R, self.L = R, L # class |gw| < R; key limbs of L bits + + +REAL = Fmt(1 << 23, 12) + + +def check(fmt, cand, cells, variant='full'): + gw, idx, y, r = cells['gw'], cells['idx'], cells['y'], cells['r'] + p0, p1, n0, n1, bh, bl, s = (cells[k] for k in ('p0', 'p1', 'n0', 'n1', 'bh', 'bl', 's')) + bad = [] + K = 1 << fmt.L + if not -fmt.R < gw < fmt.R: + bad.append('class: gw range cell') + if not 0 <= idx < cand.N or cand.tab[idx] != y: + bad.append('lookup: (idx, y) is not a table row') + if not 0 <= r < cand.w: + bad.append('class: index remainder') + for name, v in (('p0', p0), ('p1', p1), ('n0', n0), ('n1', n1)): + if not 0 <= v < K: + bad.append(f'class: key {name}') + branch = cand.outside == 'branch' + for name, v in (('bh', bh), ('bl', bl)): + if v not in ((0, 1) if branch else (0,)): + bad.append(f'class: bit {name}') + c = cand.w * (idx - cand.N // 2) + r + p = p0 + K * p1 + bh + n = n0 + K * n1 + bl + cmax, cmin = cand.H - 1, -cand.H + if gw + cand.off != c + p - n: + bad.append('R1') + if variant != 'no_R2': + if branch and variant == 'full': + r2 = (cmax - c + 1 - bh) * p + (c - cmin + 1 - bl) * n + else: + r2 = (cmax - c) * p + (c - cmin) * n + if r2 != 0: + bad.append('R2') + want = y if cand.outside == 'clip' else y + p if cand.outside == 'excess' else y + p + cand.Khi * bh + cand.Klo * bl + if s != want: + bad.append('R5') + return bad + + +def honest_cells(fmt, cand, gw): + """The witness an honest prover writes for gw (may be outside a class; check() says so).""" + K = 1 << fmt.L + v = gw + cand.off + cmax, cmin = cand.H - 1, -cand.H + c = min(max(v, cmin), cmax) + p, n = max(v - c, 0), max(c - v, 0) + branch = cand.outside == 'branch' + bh = 1 if (branch and p > 0) else 0 + bl = 1 if (branch and n > 0) else 0 + idx, r = c // cand.w + cand.N // 2, c % cand.w + y = cand.tab[idx] + s = y if cand.outside == 'clip' else y + p if cand.outside == 'excess' else y + p + cand.Khi * bh + cand.Klo * bl + return dict(gw=gw, idx=idx, y=y, r=r, p0=(p - bh) % K, p1=(p - bh) // K, n0=(n - bl) % K, n1=(n - bl) // K, + bh=bh, bl=bl, s=s) + + +def accepted_sets(fmt, cand, variant): + """Exhaustive, for small formats only: for every gw of the class, the set of s for which SOME + assignment of the other cells is accepted. Enumerates every (idx, r, p0, p1, bh, bl); n is taken + from R1 (present in every variant) and must have limbs in class; s is taken from R5.""" + K = 1 << fmt.L + bits = (0, 1) if cand.outside == 'branch' else (0,) + out = {gw: set() for gw in range(-fmt.R + 1, fmt.R)} + n_assign = 0 + for gw in out: + for idx in range(cand.N): + y = cand.tab[idx] + for r in range(cand.w): + c = cand.w * (idx - cand.N // 2) + r + for p0 in range(K): + for p1 in range(K): + for bh in bits: + p = p0 + K * p1 + bh + for bl in bits: + n = c + p - gw - cand.off # R1 + nl = n - bl + if not 0 <= nl < K * K: + continue + n_assign += 1 + s = y if cand.outside == 'clip' else y + p if cand.outside == 'excess' else y + p + cand.Khi * bh + cand.Klo * bl + cells = dict(gw=gw, idx=idx, y=y, r=r, p0=p0, p1=p1, n0=nl % K, n1=nl // K, bh=bh, bl=bl, s=s) + if not check(fmt, cand, cells, variant): + out[gw].add(s) + return out, n_assign + + +def stated_set(fmt, cand, gw, variant): + """The accepted set as the note STATES it, computed from the definitions without the limb + enumeration. U6 compares this with accepted_sets() on the toy format.""" + K = 1 << fmt.L + honest = cand.s_point(gw) + if variant == 'full' or cand.outside != 'branch' and variant == 'no_bits': + return {honest} + v = gw + cand.off + cmax, cmin = cand.H - 1, -cand.H + if variant == 'no_bits': + # c, p, n are still forced; above the range bh is free, below it bl is free. + # bh = 0 needs p <= K^2 - 1 and bh = 1 needs p - 1 <= K^2 - 1 (always true in the class). + if v > cmax: + p = v - cmax + return {honest} | ({honest - cand.Khi} if p <= K * K - 1 else set()) + if v < cmin: + n = cmin - v + return {honest} | ({honest - cand.Klo} if n <= K * K - 1 else set()) + return {honest} + # no_R2: any row, any excess pair with p - n = v - c, each in its class. + out = set() + bits = (0, 1) if cand.outside == 'branch' else (0,) + for c in range(cmin, cmax + 1): + y = cand.tab[c // cand.w + cand.N // 2] + d = v - c + for bh in bits: + for bl in bits: + # p = pl + bh, n = nl + bl, pl, nl in [0, K^2); p - n = d + lo = max(bh, d + bl) + hi = min(K * K - 1 + bh, d + K * K - 1 + bl) + if lo > hi: + continue + if cand.outside == 'clip': + out.add(y) + else: + k = cand.Khi * bh + cand.Klo * bl if cand.outside == 'branch' else 0 + out.update(range(y + lo + k, y + hi + k + 1)) + return out + + +def no_R2_extremes(fmt, cand, gw): + """Closed form for the real format: the smallest and largest s accepted for gw with R2 removed + (R1, R5 and every class present). From stated_set's description, without building the set.""" + K = 1 << fmt.L + v = gw + cand.off + cmax, cmin = cand.H - 1, -cand.H + bits = (0, 1) if cand.outside == 'branch' else (0,) + best_lo = best_hi = None + # within a row, lo and hi both fall as c rises, so the two ends of the row's c range suffice + for idx in range(cand.N): + y = cand.tab[idx] + for c in (cand.w * (idx - cand.N // 2), cand.w * (idx - cand.N // 2) + cand.w - 1): + d = v - c + for bh in bits: + for bl in bits: + lo = max(bh, d + bl) + hi = min(K * K - 1 + bh, d + K * K - 1 + bl) + assert lo <= hi, 'the closed form needs every (c, bh, bl) feasible: true for |gw| < 2^23 at 12-bit limbs' + k = cand.Khi * bh + cand.Klo * bl if cand.outside == 'branch' else 0 + a = y if cand.outside == 'clip' else y + lo + k + b = y if cand.outside == 'clip' else y + hi + k + best_lo = a if best_lo is None else min(best_lo, a) + best_hi = b if best_hi is None else max(best_hi, b) + return best_lo, best_hi diff --git a/experiments/20261129-222-silu-repairs/runs/run-1.json b/experiments/20261129-222-silu-repairs/runs/run-1.json new file mode 100644 index 00000000..eae2139e --- /dev/null +++ b/experiments/20261129-222-silu-repairs/runs/run-1.json @@ -0,0 +1,12868 @@ +{ + "experiment": "20261129-222-silu-repairs", + "class_": "|gw| < 8388608", + "target": { + "toy": false, + "scale_bits": 192, + "enumerated_to": 1048576, + "undecided": [], + "n_undecided": 0, + "tail_lemma": { + "G0": 1048576, + "G0_above_4096": true, + "hi_G0": "4096", + "two_G0_hi_below_q": true, + "holds": true + }, + "T_min": -1141, + "T_min_at": -5295, + "T_at": { + "-32768": -11, + "-32769": -11, + "32752": 32741, + "32767": 32756, + "32768": 32757, + "-65536": 0, + "65536": 65536, + "-131072": 0, + "131072": 131072, + "-262144": 0, + "262144": 262144 + }, + "T_is_identity_from": 46895, + "T_is_zero_from_minus": 46895 + }, + "pinned_v1_rows_differing_from_exact": 0, + "honest_gw_files": [ + { + "file": "experiments/20261112-132-int-mlp-e2e/runs/ranges-abl.jsonl", + "range_rows": 713, + "layers": [ + 0, + 30 + ], + "max_abs_gw": 38109, + "at_layer": 26, + "path": "FM", + "prompt": "p03-repeat-word", + "entries_gw_ge_2e18": 0, + "entries_gw_ge_2e23": 0 + }, + { + "file": "experiments/20261112-132-int-mlp-e2e/runs-resume150b/runs/ranges-abl.jsonl", + "range_rows": 759, + "layers": [ + 31, + 63 + ], + "max_abs_gw": 236631, + "at_layer": 62, + "path": "FM", + "prompt": "p11-chat-long", + "entries_gw_ge_2e18": 0, + "entries_gw_ge_2e23": 0 + } + ], + "largest_honest_gw": 236631, + "candidates": [ + { + "candidate": { + "name": "v1", + "H": 32768, + "w": 16, + "rows": 4096, + "index": "floor", + "offset": 0, + "outside": "clip", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "baseline", + "table_range": [ + -32768, + 32767 + ] + }, + "image_bound_exact": 32741, + "table_max_abs": 32741, + "S_edge_used_in_ledger": 32741, + "ledger_at_exact_image_descriptive": { + "S": 32741, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.270767, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.016811, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.000703, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.000703, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 51.086344, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 60.270767, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011271, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.00562, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 38.168868, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 229402, + "at_gw": 262143, + "err_there": -229402, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 8355866, + "at_gw": 8388607, + "err_there": -8355866, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 11, + "at_gw": -262145, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8355866, + "at_gw": 8388607, + "err_there": -8355866, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 8355866, + "at_gw": 8388607, + "err_there": -8355866, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32768, + "b": 32767, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration" + }, + "above": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8355866, + "at_gw": 8388607, + "err_there": -8355866, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 2, + "min": -17 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": -245361, + "count": 65536, + "mean_exact": "-245361/65536", + "mean_display": "-3.7439" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": -245478, + "count": 32768, + "mean_exact": "-122739/16384", + "mean_display": "-7.4913" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 32741, + "T": 236631, + "err": -203890 + }, + { + "gw": -236631, + "s": -11, + "T": 0, + "err": -11 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486926, + "log2": 23.016811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 309011120154, + "log2": 38.168868, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 19619542414009565183, + "log2": 64.088925, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041340, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 65482, + "log2": 15.998811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486926, + "log2": 23.016811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 281612172487825, + "log2": 48.000703, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 281612206042255, + "log2": 48.000703, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 2390681876135962, + "log2": 51.086344, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 1390940620680013357, + "log2": 60.270767, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18155683153182719, + "log2": 54.011271, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 34493841408, + "log2": 35.00562, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007267034578943, + "log2": 53.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 309011120154, + "log2": 38.168868, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041340, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 65482, + "log2": 15.998811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.270767, + "failing": [], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 26, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 309011124250, + "log2": 38.168868, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^26, 2^26))", + "bound": 549529292826, + "log2": 38.999405, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^26, 2^26))", + "bound": 40813871623045119, + "log2": 55.179909, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^26 - limbs (3 key12)", + "bound": 68853694463, + "log2": 36.002815, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "clip", + "threshold": { + "item1_high_side_max_le_32": false, + "high_side_max": 8355866, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "no selector (clip)" + } + }, + { + "candidate": { + "name": "a", + "H": 32768, + "w": 16, + "rows": 4096, + "index": "mid", + "offset": 8, + "outside": "clip", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(a)", + "table_range": [ + -32776, + 32759 + ] + }, + "image_bound_exact": 32741, + "table_max_abs": 32741, + "S_edge_used_in_ledger": 32741, + "ledger_at_exact_image_descriptive": { + "S": 32741, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.270767, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.016811, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.000703, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.000703, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 51.086344, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 60.270767, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011271, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.00562, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 38.168868, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 15, + "at_gw": 32767, + "err_there": -15, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 229402, + "at_gw": 262143, + "err_there": -229402, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 8355866, + "at_gw": 8388607, + "err_there": -8355866, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 11, + "at_gw": -262145, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8355866, + "at_gw": 8388607, + "err_there": -8355866, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 8355866, + "at_gw": 8388607, + "err_there": -8355866, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32776, + "b": 32759, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration" + }, + "above": { + "a": 32760, + "b": 8388607, + "max_abs_err": 8355866, + "at_gw": 8388607, + "err_there": -8355866, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -32777, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 9, + "min": -15 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": 16655, + "count": 65536, + "mean_exact": "16655/65536", + "mean_display": "0.2541" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": 16450, + "count": 32768, + "mean_exact": "8225/16384", + "mean_display": "0.5020" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 32741, + "T": 236631, + "err": -203890 + }, + { + "gw": -236631, + "s": -11, + "T": 0, + "err": -11 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486926, + "log2": 23.016811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 309011120154, + "log2": 38.168868, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 19619542414009565183, + "log2": 64.088925, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041348, + "log2": 25.325306, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 65482, + "log2": 15.998811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486926, + "log2": 23.016811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 281612172487825, + "log2": 48.000703, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 281612206042255, + "log2": 48.000703, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 2390681876135962, + "log2": 51.086344, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 1390940620680013357, + "log2": 60.270767, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18155683153182719, + "log2": 54.011271, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 34493841408, + "log2": 35.00562, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007267034578943, + "log2": 53.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 309011120154, + "log2": 38.168868, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041348, + "log2": 25.325306, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 65482, + "log2": 15.998811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.270767, + "failing": [], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 26, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 309011124250, + "log2": 38.168868, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^26, 2^26))", + "bound": 549529292826, + "log2": 38.999405, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^26, 2^26))", + "bound": 40813871623045119, + "log2": 55.179909, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^26 - limbs (3 key12)", + "bound": 68853694463, + "log2": 36.002815, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "clip", + "threshold": { + "item1_high_side_max_le_32": false, + "high_side_max": 8355866, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "no selector (clip)" + } + }, + { + "candidate": { + "name": "b9f", + "H": 32768, + "w": 8, + "rows": 8192, + "index": "floor", + "offset": 0, + "outside": "clip", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(b)", + "table_range": [ + -32768, + 32767 + ] + }, + "image_bound_exact": 32749, + "table_max_abs": 32749, + "S_edge_used_in_ledger": 32749, + "ledger_at_exact_image_descriptive": { + "S": 32749, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.270973, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.016809, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.000703, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.000704, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 51.086675, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 60.270973, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011271, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.005621, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 38.169181, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 8, + "at_gw": 5447, + "err_there": -8, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 229394, + "at_gw": 262143, + "err_there": -229394, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 8355858, + "at_gw": 8388607, + "err_there": -8355858, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 11, + "at_gw": -262145, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8355858, + "at_gw": 8388607, + "err_there": -8355858, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 8355858, + "at_gw": 8388607, + "err_there": -8355858, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32768, + "b": 32767, + "max_abs_err": 8, + "at_gw": 5447, + "err_there": -8, + "decided_by": "enumeration" + }, + "above": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8355858, + "at_gw": 8388607, + "err_there": -8355858, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 1, + "min": -8 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": -114345, + "count": 65536, + "mean_exact": "-114345/65536", + "mean_display": "-1.7447" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": -114478, + "count": 32768, + "mean_exact": "-57239/16384", + "mean_display": "-3.4935" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 32749, + "T": 236631, + "err": -203882 + }, + { + "gw": -236631, + "s": -11, + "T": 0, + "err": -11 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486918, + "log2": 23.016809, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 309078229010, + "log2": 38.169181, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 19624327488043220991, + "log2": 64.089277, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041340, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 65498, + "log2": 15.999163, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486918, + "log2": 23.016809, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 281612239549585, + "log2": 48.000703, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 281612273104015, + "log2": 48.000704, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 2391231631949842, + "log2": 51.086675, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 1391139632284637917, + "log2": 60.270973, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18155683287400447, + "log2": 54.011271, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 34493874176, + "log2": 35.005621, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007267034611711, + "log2": 53.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 309078229010, + "log2": 38.169181, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041340, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 65498, + "log2": 15.999163, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.270973, + "failing": [], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 26, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 309078233106, + "log2": 38.169181, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^26, 2^26))", + "bound": 549596401682, + "log2": 38.999582, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^26, 2^26))", + "bound": 40813871623045119, + "log2": 55.179909, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^26 - limbs (3 key12)", + "bound": 68853694463, + "log2": 36.002815, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "clip", + "threshold": { + "item1_high_side_max_le_32": false, + "high_side_max": 8355858, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "no selector (clip)" + } + }, + { + "candidate": { + "name": "b9m", + "H": 32768, + "w": 8, + "rows": 8192, + "index": "mid", + "offset": 4, + "outside": "clip", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(b)", + "table_range": [ + -32772, + 32763 + ] + }, + "image_bound_exact": 32749, + "table_max_abs": 32749, + "S_edge_used_in_ledger": 32749, + "ledger_at_exact_image_descriptive": { + "S": 32749, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.270973, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.016809, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.000703, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.000704, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 51.086675, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 60.270973, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011271, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.005621, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 38.169181, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 7, + "at_gw": 32767, + "err_there": -7, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 229394, + "at_gw": 262143, + "err_there": -229394, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 8355858, + "at_gw": 8388607, + "err_there": -8355858, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 11, + "at_gw": -262145, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8355858, + "at_gw": 8388607, + "err_there": -8355858, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 8355858, + "at_gw": 8388607, + "err_there": -8355858, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32772, + "b": 32763, + "max_abs_err": 5, + "at_gw": 5292, + "err_there": 5, + "decided_by": "enumeration" + }, + "above": { + "a": 32764, + "b": 8388607, + "max_abs_err": 8355858, + "at_gw": 8388607, + "err_there": -8355858, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -32773, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 5, + "min": -7 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": 16695, + "count": 65536, + "mean_exact": "16695/65536", + "mean_display": "0.2547" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": 16518, + "count": 32768, + "mean_exact": "8259/16384", + "mean_display": "0.5040" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 32749, + "T": 236631, + "err": -203882 + }, + { + "gw": -236631, + "s": -11, + "T": 0, + "err": -11 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486918, + "log2": 23.016809, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 309078229010, + "log2": 38.169181, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 19624327488043220991, + "log2": 64.089277, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041344, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 65498, + "log2": 15.999163, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486918, + "log2": 23.016809, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 281612239549585, + "log2": 48.000703, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 281612273104015, + "log2": 48.000704, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 2391231631949842, + "log2": 51.086675, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 1391139632284637917, + "log2": 60.270973, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18155683287400447, + "log2": 54.011271, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 34493874176, + "log2": 35.005621, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007267034611711, + "log2": 53.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 309078229010, + "log2": 38.169181, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041344, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 65498, + "log2": 15.999163, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.270973, + "failing": [], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 26, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 309078233106, + "log2": 38.169181, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^26, 2^26))", + "bound": 549596401682, + "log2": 38.999582, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^26, 2^26))", + "bound": 40813871623045119, + "log2": 55.179909, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^26 - limbs (3 key12)", + "bound": 68853694463, + "log2": 36.002815, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "clip", + "threshold": { + "item1_high_side_max_le_32": false, + "high_side_max": 8355858, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "no selector (clip)" + } + }, + { + "candidate": { + "name": "b10f", + "H": 32768, + "w": 4, + "rows": 16384, + "index": "floor", + "offset": 0, + "outside": "clip", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(b)", + "table_range": [ + -32768, + 32767 + ] + }, + "image_bound_exact": 32753, + "table_max_abs": 32753, + "S_edge_used_in_ledger": 32753, + "ledger_at_exact_image_descriptive": { + "S": 32753, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.271076, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.016809, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.000704, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.000704, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 51.086841, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 60.271076, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011271, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.005622, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 38.169338, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 4, + "at_gw": 5443, + "err_there": -4, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 229390, + "at_gw": 262143, + "err_there": -229390, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 8355854, + "at_gw": 8388607, + "err_there": -8355854, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 11, + "at_gw": -262145, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8355854, + "at_gw": 8388607, + "err_there": -8355854, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 8355854, + "at_gw": 8388607, + "err_there": -8355854, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32768, + "b": 32767, + "max_abs_err": 4, + "at_gw": 5443, + "err_there": -4, + "decided_by": "enumeration" + }, + "above": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8355854, + "at_gw": 8388607, + "err_there": -8355854, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 1, + "min": -4 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": -48941, + "count": 65536, + "mean_exact": "-48941/65536", + "mean_display": "-0.7467" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": -49030, + "count": 32768, + "mean_exact": "-24515/16384", + "mean_display": "-1.4962" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 32753, + "T": 236631, + "err": -203878 + }, + { + "gw": -236631, + "s": -11, + "T": 0, + "err": -11 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486914, + "log2": 23.016809, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 309111783438, + "log2": 38.169338, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 19626720025060048895, + "log2": 64.089453, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041340, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 65506, + "log2": 15.999339, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486914, + "log2": 23.016809, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 281612273086609, + "log2": 48.000704, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 281612306641039, + "log2": 48.000704, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 2391506509856782, + "log2": 51.086841, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 1391239138086950197, + "log2": 60.271076, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18155683354509311, + "log2": 54.011271, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 34493890560, + "log2": 35.005622, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007267034628095, + "log2": 53.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 309111783438, + "log2": 38.169338, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041340, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 65506, + "log2": 15.999339, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.271076, + "failing": [], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 26, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 309111787534, + "log2": 38.169338, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^26, 2^26))", + "bound": 549629956110, + "log2": 38.99967, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^26, 2^26))", + "bound": 40813871623045119, + "log2": 55.179909, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^26 - limbs (3 key12)", + "bound": 68853694463, + "log2": 36.002815, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "clip", + "threshold": { + "item1_high_side_max_le_32": false, + "high_side_max": 8355854, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "no selector (clip)" + } + }, + { + "candidate": { + "name": "b10m", + "H": 32768, + "w": 4, + "rows": 16384, + "index": "mid", + "offset": 2, + "outside": "clip", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(b)", + "table_range": [ + -32770, + 32765 + ] + }, + "image_bound_exact": 32753, + "table_max_abs": 32753, + "S_edge_used_in_ledger": 32753, + "ledger_at_exact_image_descriptive": { + "S": 32753, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.271076, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.016809, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.000704, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.000704, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 51.086841, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 60.271076, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011271, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.005622, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 38.169338, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 3, + "at_gw": 5294, + "err_there": 3, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 229390, + "at_gw": 262143, + "err_there": -229390, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 8355854, + "at_gw": 8388607, + "err_there": -8355854, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 11, + "at_gw": -262145, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8355854, + "at_gw": 8388607, + "err_there": -8355854, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 8355854, + "at_gw": 8388607, + "err_there": -8355854, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32770, + "b": 32765, + "max_abs_err": 3, + "at_gw": 5294, + "err_there": 3, + "decided_by": "enumeration" + }, + "above": { + "a": 32766, + "b": 8388607, + "max_abs_err": 8355854, + "at_gw": 8388607, + "err_there": -8355854, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -32771, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 3, + "min": -3 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": 16587, + "count": 65536, + "mean_exact": "16587/65536", + "mean_display": "0.2530" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": 16476, + "count": 32768, + "mean_exact": "4119/8192", + "mean_display": "0.5028" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 32753, + "T": 236631, + "err": -203878 + }, + { + "gw": -236631, + "s": -11, + "T": 0, + "err": -11 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486914, + "log2": 23.016809, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 309111783438, + "log2": 38.169338, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 19626720025060048895, + "log2": 64.089453, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041342, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 65506, + "log2": 15.999339, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486914, + "log2": 23.016809, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 281612273086609, + "log2": 48.000704, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 281612306641039, + "log2": 48.000704, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 2391506509856782, + "log2": 51.086841, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 1391239138086950197, + "log2": 60.271076, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18155683354509311, + "log2": 54.011271, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 34493890560, + "log2": 35.005622, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007267034628095, + "log2": 53.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 309111783438, + "log2": 38.169338, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041342, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 65506, + "log2": 15.999339, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.271076, + "failing": [], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 26, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 309111787534, + "log2": 38.169338, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^26, 2^26))", + "bound": 549629956110, + "log2": 38.99967, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^26, 2^26))", + "bound": 40813871623045119, + "log2": 55.179909, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^26 - limbs (3 key12)", + "bound": 68853694463, + "log2": 36.002815, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "clip", + "threshold": { + "item1_high_side_max_le_32": false, + "high_side_max": 8355854, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "no selector (clip)" + } + }, + { + "candidate": { + "name": "b12", + "H": 32768, + "w": 1, + "rows": 65536, + "index": "floor", + "offset": 0, + "outside": "clip", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(b), limit case", + "table_range": [ + -32768, + 32767 + ] + }, + "image_bound_exact": 32756, + "table_max_abs": 32756, + "S_edge_used_in_ledger": 32756, + "ledger_at_exact_image_descriptive": { + "S": 32756, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.271154, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.016808, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.000704, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.000704, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 51.086966, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 60.271154, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011271, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.005622, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 38.169455, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 0, + "at_gw": 0, + "err_there": 0, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 229387, + "at_gw": 262143, + "err_there": -229387, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 8355851, + "at_gw": 8388607, + "err_there": -8355851, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 11, + "at_gw": -262145, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8355851, + "at_gw": 8388607, + "err_there": -8355851, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 8355851, + "at_gw": 8388607, + "err_there": -8355851, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32768, + "b": 32767, + "max_abs_err": 0, + "at_gw": 0, + "err_there": 0, + "decided_by": "enumeration" + }, + "above": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8355851, + "at_gw": 8388607, + "err_there": -8355851, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 0, + "min": 0 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": 0, + "count": 65536, + "mean_exact": "0/1", + "mean_display": "0.0000" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": 0, + "count": 32768, + "mean_exact": "0/1", + "mean_display": "0.0000" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 32756, + "T": 236631, + "err": -203875 + }, + { + "gw": -236631, + "s": -11, + "T": 0, + "err": -11 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486911, + "log2": 23.016808, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 309136949259, + "log2": 38.169455, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 19628514427822669823, + "log2": 64.089585, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041340, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 65512, + "log2": 15.999472, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486911, + "log2": 23.016808, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 281612298242065, + "log2": 48.000704, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 281612331796495, + "log2": 48.000704, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 2391712668286987, + "log2": 51.086966, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 1391313767438684407, + "log2": 60.271154, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18155683404840959, + "log2": 54.011271, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 34493902848, + "log2": 35.005622, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007267034640383, + "log2": 53.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 309136949259, + "log2": 38.169455, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041340, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 65512, + "log2": 15.999472, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.271154, + "failing": [], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 26, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 309136953355, + "log2": 38.169455, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^26, 2^26))", + "bound": 549655121931, + "log2": 38.999736, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^26, 2^26))", + "bound": 40813871623045119, + "log2": 55.179909, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^26 - limbs (3 key12)", + "bound": 68853694463, + "log2": 36.002815, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "clip", + "threshold": { + "item1_high_side_max_le_32": false, + "high_side_max": 8355851, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "no selector (clip)" + } + }, + { + "candidate": { + "name": "c16f", + "H": 65536, + "w": 16, + "rows": 8192, + "index": "floor", + "offset": 0, + "outside": "clip", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(c)", + "table_range": [ + -65536, + 65535 + ] + }, + "image_bound_exact": 65520, + "table_max_abs": 65520, + "S_edge_used_in_ledger": 65520, + "ledger_at_exact_image_descriptive": { + "S": 65520, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.936378, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.033425, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.002814, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.002814, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 52.044053, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 60.936378, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011314, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.011224, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 39.087131, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 196623, + "at_gw": 262143, + "err_there": -196623, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 8323087, + "at_gw": 8388607, + "err_there": -8323087, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 1, + "at_gw": -32977, + "err_there": 1, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 0, + "at_gw": -262145, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8323087, + "at_gw": 8388607, + "err_there": -8323087, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 8323087, + "at_gw": 8388607, + "err_there": -8323087, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -65536, + "b": 65535, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration" + }, + "above": { + "a": 65536, + "b": 8388607, + "max_abs_err": 8323087, + "at_gw": 8388607, + "err_there": -8323087, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -65537, + "max_abs_err": 0, + "at_gw": -65537, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 2, + "min": -17 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": -245361, + "count": 65536, + "mean_exact": "-245361/65536", + "mean_display": "-3.7439" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": -245478, + "count": 32768, + "mean_exact": "-122739/16384", + "mean_display": "-7.4913" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 65520, + "T": 236631, + "err": -171111 + }, + { + "gw": -236631, + "s": 0, + "T": 0, + "err": 0 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8585230, + "log2": 23.033425, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 583981269007, + "log2": 39.087131, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 39225785132660031487, + "log2": 65.088436, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42139644, + "log2": 25.328675, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 8796042166275, + "log2": 42.999992, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 131040, + "log2": 16.999648, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8585230, + "log2": 23.033425, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 282024447344657, + "log2": 48.002814, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 282024480899087, + "log2": 48.002814, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 4643237604032527, + "log2": 52.044053, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 2206365794178569887, + "log2": 60.936378, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18156233093545983, + "log2": 54.011314, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 34628104192, + "log2": 35.011224, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007267168841727, + "log2": 53.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 583981269007, + "log2": 39.087131, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42139644, + "log2": 25.328675, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 8796042166275, + "log2": 42.999992, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 131040, + "log2": 16.999648, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.936378, + "failing": [], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 27, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 583981273103, + "log2": 39.087131, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^27, 2^27))", + "bound": 1099377348623, + "log2": 39.999824, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^27, 2^27))", + "bound": 45598946227126271, + "log2": 55.33985, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^27 - limbs (3 key12)", + "bound": 68987912191, + "log2": 36.005625, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "clip", + "threshold": { + "item1_high_side_max_le_32": false, + "high_side_max": 8323087, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "no selector (clip)" + } + }, + { + "candidate": { + "name": "c16m", + "H": 65536, + "w": 16, + "rows": 8192, + "index": "mid", + "offset": 8, + "outside": "clip", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(c)", + "table_range": [ + -65544, + 65527 + ] + }, + "image_bound_exact": 65520, + "table_max_abs": 65520, + "S_edge_used_in_ledger": 65520, + "ledger_at_exact_image_descriptive": { + "S": 65520, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.936378, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.033425, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.002814, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.002814, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 52.044053, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 60.936378, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011314, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.011224, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 39.087131, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 196623, + "at_gw": 262143, + "err_there": -196623, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 8323087, + "at_gw": 8388607, + "err_there": -8323087, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 1, + "at_gw": -32981, + "err_there": -1, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 0, + "at_gw": -262145, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8323087, + "at_gw": 8388607, + "err_there": -8323087, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 8323087, + "at_gw": 8388607, + "err_there": -8323087, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -65544, + "b": 65527, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration" + }, + "above": { + "a": 65528, + "b": 8388607, + "max_abs_err": 8323087, + "at_gw": 8388607, + "err_there": -8323087, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -65545, + "max_abs_err": 0, + "at_gw": -65545, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 9, + "min": -8 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": 16783, + "count": 65536, + "mean_exact": "16783/65536", + "mean_display": "0.2560" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": 16578, + "count": 32768, + "mean_exact": "8289/16384", + "mean_display": "0.5059" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 65520, + "T": 236631, + "err": -171111 + }, + { + "gw": -236631, + "s": 0, + "T": 0, + "err": 0 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8585230, + "log2": 23.033425, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 583981269007, + "log2": 39.087131, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 39225785132660031487, + "log2": 65.088436, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42139652, + "log2": 25.328675, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 8796042166275, + "log2": 42.999992, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 131040, + "log2": 16.999648, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8585230, + "log2": 23.033425, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 282024447344657, + "log2": 48.002814, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 282024480899087, + "log2": 48.002814, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 4643237604032527, + "log2": 52.044053, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 2206365794178569887, + "log2": 60.936378, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18156233093545983, + "log2": 54.011314, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 34628104192, + "log2": 35.011224, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007267168841727, + "log2": 53.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 583981269007, + "log2": 39.087131, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42139652, + "log2": 25.328675, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 8796042166275, + "log2": 42.999992, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 131040, + "log2": 16.999648, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.936378, + "failing": [], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 27, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 583981273103, + "log2": 39.087131, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^27, 2^27))", + "bound": 1099377348623, + "log2": 39.999824, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^27, 2^27))", + "bound": 45598946227126271, + "log2": 55.33985, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^27 - limbs (3 key12)", + "bound": 68987912191, + "log2": 36.005625, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "clip", + "threshold": { + "item1_high_side_max_le_32": false, + "high_side_max": 8323087, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "no selector (clip)" + } + }, + { + "candidate": { + "name": "c32f", + "H": 131072, + "w": 16, + "rows": 16384, + "index": "floor", + "offset": 0, + "outside": "clip", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(c)", + "table_range": [ + -131072, + 131071 + ] + }, + "image_bound_exact": 131056, + "table_max_abs": 131056, + "S_edge_used_in_ledger": 131056, + "ledger_at_exact_image_descriptive": { + "S": 131056, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 61.73456, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.066091, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.011224, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.011225, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 53.022194, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 61.73456, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011402, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.022365, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 40.044223, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 131087, + "at_gw": 262143, + "err_there": -131087, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 8257551, + "at_gw": 8388607, + "err_there": -8257551, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 1, + "at_gw": -32977, + "err_there": 1, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 0, + "at_gw": -262145, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8257551, + "at_gw": 8388607, + "err_there": -8257551, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 8257551, + "at_gw": 8388607, + "err_there": -8257551, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -131072, + "b": 131071, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration" + }, + "above": { + "a": 131072, + "b": 8388607, + "max_abs_err": 8257551, + "at_gw": 8388607, + "err_there": -8257551, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -131073, + "max_abs_err": 0, + "at_gw": -131073, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 2, + "min": -17 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": -245361, + "count": 65536, + "mean_exact": "-245361/65536", + "mean_display": "-3.7439" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": -245478, + "count": 32768, + "mean_exact": "-122739/16384", + "mean_display": "-7.4913" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 131056, + "T": 236631, + "err": -105575 + }, + { + "gw": -236631, + "s": 0, + "T": 0, + "err": 0 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8781838, + "log2": 23.066091, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 1133737017359, + "log2": 40.044223, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 78425111616368410623, + "log2": 66.087949, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42336252, + "log2": 25.33539, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 17592134664195, + "log2": 43.999996, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 262112, + "log2": 17.999824, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8781838, + "log2": 23.066091, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 283673446350865, + "log2": 48.011224, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 283673479905295, + "log2": 48.011225, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 9146837231337487, + "log2": 53.022194, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 3836668859262965407, + "log2": 61.73456, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18157332605173759, + "log2": 54.011402, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 34896539648, + "log2": 35.022365, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007267437277183, + "log2": 53.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 1133737017359, + "log2": 40.044223, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42336252, + "log2": 25.33539, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 17592134664195, + "log2": 43.999996, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 262112, + "log2": 17.999824, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 61.73456, + "failing": [], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 28, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 1133737021455, + "log2": 40.044223, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^28, 2^28))", + "bound": 2198888910863, + "log2": 40.999912, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^28, 2^28))", + "bound": 55169095435288575, + "log2": 55.61471, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^28 - limbs (3 key12)", + "bound": 69256347647, + "log2": 36.011227, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "clip", + "threshold": { + "item1_high_side_max_le_32": false, + "high_side_max": 8257551, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "no selector (clip)" + } + }, + { + "candidate": { + "name": "c32m", + "H": 131072, + "w": 16, + "rows": 16384, + "index": "mid", + "offset": 8, + "outside": "clip", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(c)", + "table_range": [ + -131080, + 131063 + ] + }, + "image_bound_exact": 131056, + "table_max_abs": 131056, + "S_edge_used_in_ledger": 131056, + "ledger_at_exact_image_descriptive": { + "S": 131056, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 61.73456, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.066091, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.011224, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.011225, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 53.022194, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 61.73456, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011402, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.022365, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 40.044223, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 131087, + "at_gw": 262143, + "err_there": -131087, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 8257551, + "at_gw": 8388607, + "err_there": -8257551, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 1, + "at_gw": -32981, + "err_there": -1, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 0, + "at_gw": -262145, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8257551, + "at_gw": 8388607, + "err_there": -8257551, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 8257551, + "at_gw": 8388607, + "err_there": -8257551, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -131080, + "b": 131063, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration" + }, + "above": { + "a": 131064, + "b": 8388607, + "max_abs_err": 8257551, + "at_gw": 8388607, + "err_there": -8257551, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -131081, + "max_abs_err": 0, + "at_gw": -131081, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 9, + "min": -8 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": 16783, + "count": 65536, + "mean_exact": "16783/65536", + "mean_display": "0.2560" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": 16578, + "count": 32768, + "mean_exact": "8289/16384", + "mean_display": "0.5059" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 131056, + "T": 236631, + "err": -105575 + }, + { + "gw": -236631, + "s": 0, + "T": 0, + "err": 0 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8781838, + "log2": 23.066091, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 1133737017359, + "log2": 40.044223, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 78425111616368410623, + "log2": 66.087949, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42336260, + "log2": 25.33539, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 17592134664195, + "log2": 43.999996, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 262112, + "log2": 17.999824, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8781838, + "log2": 23.066091, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 283673446350865, + "log2": 48.011224, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 283673479905295, + "log2": 48.011225, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 9146837231337487, + "log2": 53.022194, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 3836668859262965407, + "log2": 61.73456, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18157332605173759, + "log2": 54.011402, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 34896539648, + "log2": 35.022365, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007267437277183, + "log2": 53.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 1133737017359, + "log2": 40.044223, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42336260, + "log2": 25.33539, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 17592134664195, + "log2": 43.999996, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 262112, + "log2": 17.999824, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 61.73456, + "failing": [], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 28, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 1133737021455, + "log2": 40.044223, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^28, 2^28))", + "bound": 2198888910863, + "log2": 40.999912, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^28, 2^28))", + "bound": 55169095435288575, + "log2": 55.61471, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^28 - limbs (3 key12)", + "bound": 69256347647, + "log2": 36.011227, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "clip", + "threshold": { + "item1_high_side_max_le_32": false, + "high_side_max": 8257551, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "no selector (clip)" + } + }, + { + "candidate": { + "name": "c64f", + "H": 262144, + "w": 16, + "rows": 32768, + "index": "floor", + "offset": 0, + "outside": "clip", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(c)", + "table_range": [ + -262144, + 262143 + ] + }, + "image_bound_exact": 262128, + "table_max_abs": 262128, + "S_edge_used_in_ledger": 262128, + "ledger_at_exact_image_descriptive": { + "S": 262128, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 62.621971, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.129285, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.044389, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.044389, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 54.01114, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 62.621971, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011577, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.044391, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 41.022281, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 16, + "at_gw": 32991, + "err_there": -16, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 8126479, + "at_gw": 8388607, + "err_there": -8126479, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 1, + "at_gw": -32977, + "err_there": 1, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 0, + "at_gw": -262145, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8126479, + "at_gw": 8388607, + "err_there": -8126479, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 8126479, + "at_gw": 8388607, + "err_there": -8126479, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -262144, + "b": 262143, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration" + }, + "above": { + "a": 262144, + "b": 8388607, + "max_abs_err": 8126479, + "at_gw": 8388607, + "err_there": -8126479, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -262145, + "max_abs_err": 0, + "at_gw": -262145, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 2, + "min": -17 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": -245361, + "count": 65536, + "mean_exact": "-245361/65536", + "mean_display": "-3.7439" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": -245478, + "count": 32768, + "mean_exact": "-122739/16384", + "mean_display": "-7.4913" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 236624, + "T": 236631, + "err": -7 + }, + { + "gw": -236631, + "s": 0, + "T": 0, + "err": 0 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 9175054, + "log2": 23.129285, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 2233248514063, + "log2": 41.022281, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 156823764583785168895, + "log2": 67.087706, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42729468, + "log2": 25.348728, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 35184319660035, + "log2": 44.999998, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 524256, + "log2": 18.999912, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 9175054, + "log2": 23.129285, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 290269979246609, + "log2": 48.044389, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 290270012801039, + "log2": 48.044389, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 18154036485947407, + "log2": 54.01114, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 7097274989431756447, + "log2": 62.621971, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18159531628429311, + "log2": 54.011577, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 35433410560, + "log2": 35.044391, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007267974148095, + "log2": 53.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 2233248514063, + "log2": 41.022281, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42729468, + "log2": 25.348728, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 35184319660035, + "log2": 44.999998, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 524256, + "log2": 18.999912, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 62.621971, + "failing": [], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 29, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 2233248518159, + "log2": 41.022281, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^29, 2^29))", + "bound": 4397912035343, + "log2": 41.999956, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^29, 2^29))", + "bound": 74309393851613183, + "log2": 56.044394, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^29 - limbs (3 key12)", + "bound": 69793218559, + "log2": 36.022368, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "clip", + "threshold": { + "item1_high_side_max_le_32": false, + "high_side_max": 8126479, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "no selector (clip)" + } + }, + { + "candidate": { + "name": "c64m", + "H": 262144, + "w": 16, + "rows": 32768, + "index": "mid", + "offset": 8, + "outside": "clip", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(c)", + "table_range": [ + -262152, + 262135 + ] + }, + "image_bound_exact": 262128, + "table_max_abs": 262128, + "S_edge_used_in_ledger": 262128, + "ledger_at_exact_image_descriptive": { + "S": 262128, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 62.621971, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.129285, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.044389, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.044389, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 54.01114, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 62.621971, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011577, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.044391, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 41.022281, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 15, + "at_gw": 262143, + "err_there": -15, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 8126479, + "at_gw": 8388607, + "err_there": -8126479, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 1, + "at_gw": -32981, + "err_there": -1, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 0, + "at_gw": -262145, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8126479, + "at_gw": 8388607, + "err_there": -8126479, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 8126479, + "at_gw": 8388607, + "err_there": -8126479, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -262152, + "b": 262135, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration" + }, + "above": { + "a": 262136, + "b": 8388607, + "max_abs_err": 8126479, + "at_gw": 8388607, + "err_there": -8126479, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -262153, + "max_abs_err": 0, + "at_gw": -262153, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 9, + "min": -8 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": 16783, + "count": 65536, + "mean_exact": "16783/65536", + "mean_display": "0.2560" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": 16578, + "count": 32768, + "mean_exact": "8289/16384", + "mean_display": "0.5059" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 236624, + "T": 236631, + "err": -7 + }, + { + "gw": -236631, + "s": 0, + "T": 0, + "err": 0 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 9175054, + "log2": 23.129285, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 2233248514063, + "log2": 41.022281, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 156823764583785168895, + "log2": 67.087706, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42729476, + "log2": 25.348728, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 35184319660035, + "log2": 44.999998, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 524256, + "log2": 18.999912, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 9175054, + "log2": 23.129285, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 290269979246609, + "log2": 48.044389, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 290270012801039, + "log2": 48.044389, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 18154036485947407, + "log2": 54.01114, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 7097274989431756447, + "log2": 62.621971, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18159531628429311, + "log2": 54.011577, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 35433410560, + "log2": 35.044391, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007267974148095, + "log2": 53.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 2233248514063, + "log2": 41.022281, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42729476, + "log2": 25.348728, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 35184319660035, + "log2": 44.999998, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 524256, + "log2": 18.999912, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 62.621971, + "failing": [], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 29, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 2233248518159, + "log2": 41.022281, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^29, 2^29))", + "bound": 4397912035343, + "log2": 41.999956, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^29, 2^29))", + "bound": 74309393851613183, + "log2": 56.044394, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^29 - limbs (3 key12)", + "bound": 69793218559, + "log2": 36.022368, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "clip", + "threshold": { + "item1_high_side_max_le_32": false, + "high_side_max": 8126479, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "no selector (clip)" + } + }, + { + "candidate": { + "name": "d0", + "H": 32768, + "w": 16, + "rows": 4096, + "index": "floor", + "offset": 0, + "outside": "branch", + "C": 0, + "Khi": 26, + "Klo": 11, + "item": "(d)", + "table_range": [ + -32768, + 32767 + ] + }, + "image_bound_exact": 8388607, + "table_max_abs": 32741, + "S_edge_used_in_ledger": 16809994, + "ledger_at_exact_image_descriptive": { + "S": 8388607, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 67.503826, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.016811, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 53.044394, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 53.044394, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 59.000352, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 67.503826, + "below_2_63": false + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.022368, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 36.0, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000016, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 46.000704, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 11, + "at_gw": 32768, + "err_there": 11, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 0, + "at_gw": 262144, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 11, + "at_gw": -32769, + "err_there": 11, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 0, + "at_gw": -262145, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 11, + "at_gw": 32768, + "err_there": 11, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32768, + "b": 32767, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration" + }, + "above": { + "a": 32768, + "b": 8388607, + "max_abs_err": 11, + "at_gw": 32768, + "err_there": 11, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -32769, + "max_abs_err": 11, + "at_gw": -32769, + "err_there": 11, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 2, + "min": -17 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": -245361, + "count": 65536, + "mean_exact": "-245361/65536", + "mean_display": "-3.7439" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": -245478, + "count": 32768, + "mean_exact": "-122739/16384", + "mean_display": "-7.4913" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 236631, + "T": 236631, + "err": 0 + }, + { + "gw": -236631, + "s": 0, + "T": 0, + "err": 0 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486926, + "log2": 23.016811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 141046793076725, + "log2": 47.003167, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 10054669253210760282111, + "log2": 73.090284, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041342, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (branch): (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n", + "bound": 4398063288320, + "log2": 42.000006, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "bit class: 1 - b - key", + "bound": 4097, + "log2": 12.000352, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R5 (branch): s - y - p - Khi bh - Klo bl", + "bound": 33619988, + "log2": 25.002816, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486926, + "log2": 23.016811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 36451189939778065, + "log2": 55.016815, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 36451189973332495, + "log2": 55.016815, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 1155314729086844917, + "log2": 60.002992, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 418749445710956655067, + "log2": 68.504649, + "below_2_63": false, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18437158750650367, + "log2": 54.033466, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 103213469696, + "log2": 36.58684, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007335754207231, + "log2": 53.000022, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 141046793076725, + "log2": 47.003167, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041342, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (branch): (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n", + "bound": 4398063288320, + "log2": 42.000006, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "bit class: 1 - b - key", + "bound": 4097, + "log2": 12.000352, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R5 (branch): s - y - p - Khi bh - Klo bl", + "bound": 33619988, + "log2": 25.002816, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "verdict": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 68.504649, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 36, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 141046793080821, + "log2": 47.003167, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^36, 2^36))", + "bound": 422487410053109, + "log2": 48.585902, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^36, 2^36))", + "bound": 4935945191598063615, + "log2": 62.098032, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^36 - limbs (4 key12)", + "bound": 281612415664127, + "log2": 48.000704, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 6 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "branch", + "threshold": { + "item1_high_side_max_le_32": true, + "high_side_max": 11, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "by the argument in RESULTS.md, U6 and the relation cases" + } + }, + { + "candidate": { + "name": "d1", + "H": 32768, + "w": 16, + "rows": 4096, + "index": "floor", + "offset": 0, + "outside": "branch", + "C": -11, + "Khi": 26, + "Klo": 0, + "item": "(d)", + "table_range": [ + -32768, + 32767 + ] + }, + "image_bound_exact": 8388607, + "table_max_abs": 32741, + "S_edge_used_in_ledger": 16809983, + "ledger_at_exact_image_descriptive": { + "S": 8388607, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 67.503826, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.016811, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 53.044394, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 53.044394, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 59.000352, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 67.503826, + "below_2_63": false + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.022368, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 36.0, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000016, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 46.000704, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 11, + "at_gw": 32768, + "err_there": 11, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 0, + "at_gw": 262144, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 11, + "at_gw": -262145, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 11, + "at_gw": 32768, + "err_there": 11, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32768, + "b": 32767, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration" + }, + "above": { + "a": 32768, + "b": 8388607, + "max_abs_err": 11, + "at_gw": 32768, + "err_there": 11, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 2, + "min": -17 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": -245361, + "count": 65536, + "mean_exact": "-245361/65536", + "mean_display": "-3.7439" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": -245478, + "count": 32768, + "mean_exact": "-122739/16384", + "mean_display": "-7.4913" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 236631, + "T": 236631, + "err": 0 + }, + { + "gw": -236631, + "s": -11, + "T": 0, + "err": -11 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486926, + "log2": 23.016811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 141046700802048, + "log2": 47.003166, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 10054662673733964005375, + "log2": 73.090283, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041342, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (branch): (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n", + "bound": 4398063288320, + "log2": 42.000006, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "bit class: 1 - b - key", + "bound": 4097, + "log2": 12.000352, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R5 (branch): s - y - p - Khi bh - Klo bl", + "bound": 33619966, + "log2": 25.002815, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486926, + "log2": 23.016811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 36451142602850449, + "log2": 55.016814, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 36451142636404879, + "log2": 55.016814, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 1155313973172600832, + "log2": 60.002991, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 418749172070000296297, + "log2": 68.504648, + "below_2_63": false, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18437158566100991, + "log2": 54.033466, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 103213424640, + "log2": 36.58684, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007335754162175, + "log2": 53.000022, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 141046700802048, + "log2": 47.003166, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041342, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (branch): (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n", + "bound": 4398063288320, + "log2": 42.000006, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "bit class: 1 - b - key", + "bound": 4097, + "log2": 12.000352, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R5 (branch): s - y - p - Khi bh - Klo bl", + "bound": 33619966, + "log2": 25.002815, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "verdict": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 68.504648, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 36, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 141046700806144, + "log2": 47.003166, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^36, 2^36))", + "bound": 422487317778432, + "log2": 48.585901, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^36, 2^36))", + "bound": 4935945191598063615, + "log2": 62.098032, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^36 - limbs (4 key12)", + "bound": 281612415664127, + "log2": 48.000704, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 6 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "branch", + "threshold": { + "item1_high_side_max_le_32": true, + "high_side_max": 11, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "by the argument in RESULTS.md, U6 and the relation cases" + } + }, + { + "candidate": { + "name": "e1", + "H": 32768, + "w": 16, + "rows": 4096, + "index": "mid", + "offset": 8, + "outside": "branch", + "C": 0, + "Khi": 18, + "Klo": 11, + "item": "(e) = a + d", + "table_range": [ + -32776, + 32759 + ] + }, + "image_bound_exact": 8388607, + "table_max_abs": 32741, + "S_edge_used_in_ledger": 16809986, + "ledger_at_exact_image_descriptive": { + "S": 8388607, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 67.503826, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.016811, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 53.044394, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 53.044394, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 59.000352, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 67.503826, + "below_2_63": false + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.022368, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 36.0, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000016, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 46.000704, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 11, + "at_gw": 32760, + "err_there": 11, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 11, + "at_gw": 32768, + "err_there": 11, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 0, + "at_gw": 262144, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 11, + "at_gw": -32777, + "err_there": 11, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 0, + "at_gw": -262145, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 11, + "at_gw": 32768, + "err_there": 11, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 11, + "at_gw": 32760, + "err_there": 11, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32776, + "b": 32759, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration" + }, + "above": { + "a": 32760, + "b": 8388607, + "max_abs_err": 11, + "at_gw": 32760, + "err_there": 11, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -32777, + "max_abs_err": 11, + "at_gw": -32777, + "err_there": 11, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 11, + "min": -8 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": 16835, + "count": 65536, + "mean_exact": "16835/65536", + "mean_display": "0.2568" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": 16630, + "count": 32768, + "mean_exact": "8315/16384", + "mean_display": "0.5075" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 236631, + "T": 236631, + "err": 0 + }, + { + "gw": -236631, + "s": 0, + "T": 0, + "err": 0 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486926, + "log2": 23.016811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 141046725967869, + "log2": 47.003167, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 10054664468136726626303, + "log2": 73.090283, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041350, + "log2": 25.325306, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (branch): (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n", + "bound": 4398063288320, + "log2": 42.000006, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "bit class: 1 - b - key", + "bound": 4097, + "log2": 12.000352, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R5 (branch): s - y - p - Khi bh - Klo bl", + "bound": 33619972, + "log2": 25.002815, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486926, + "log2": 23.016811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 36451155512918545, + "log2": 55.016814, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 36451155546472975, + "log2": 55.016814, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 1155314179331031037, + "log2": 60.002991, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 418749246699352030507, + "log2": 68.504648, + "below_2_63": false, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18437158616432639, + "log2": 54.033466, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 103213436928, + "log2": 36.58684, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007335754174463, + "log2": 53.000022, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 141046725967869, + "log2": 47.003167, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041350, + "log2": 25.325306, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (branch): (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n", + "bound": 4398063288320, + "log2": 42.000006, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "bit class: 1 - b - key", + "bound": 4097, + "log2": 12.000352, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R5 (branch): s - y - p - Khi bh - Klo bl", + "bound": 33619972, + "log2": 25.002815, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "verdict": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 68.504648, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 36, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 141046725971965, + "log2": 47.003167, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^36, 2^36))", + "bound": 422487342944253, + "log2": 48.585901, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^36, 2^36))", + "bound": 4935945191598063615, + "log2": 62.098032, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^36 - limbs (4 key12)", + "bound": 281612415664127, + "log2": 48.000704, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 6 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "branch", + "threshold": { + "item1_high_side_max_le_32": true, + "high_side_max": 11, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "by the argument in RESULTS.md, U6 and the relation cases" + } + }, + { + "candidate": { + "name": "e2", + "H": 65536, + "w": 16, + "rows": 8192, + "index": "mid", + "offset": 8, + "outside": "branch", + "C": 0, + "Khi": 7, + "Klo": 0, + "item": "(e) = a + c + d", + "table_range": [ + -65544, + 65527 + ] + }, + "image_bound_exact": 8388607, + "table_max_abs": 65520, + "S_edge_used_in_ledger": 16842743, + "ledger_at_exact_image_descriptive": { + "S": 8388607, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 67.503826, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.033425, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 53.044394, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 53.044394, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 59.000352, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 67.503826, + "below_2_63": false + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.022368, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 36.0, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000016, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 46.000704, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 9, + "at_gw": 33448, + "err_there": 9, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 0, + "at_gw": 262144, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 1, + "at_gw": -32981, + "err_there": -1, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 0, + "at_gw": -262145, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 9, + "at_gw": 33448, + "err_there": 9, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -65544, + "b": 65527, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration" + }, + "above": { + "a": 65528, + "b": 8388607, + "max_abs_err": 0, + "at_gw": 65528, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -65545, + "max_abs_err": 0, + "at_gw": -65545, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 9, + "min": -8 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": 16783, + "count": 65536, + "mean_exact": "16783/65536", + "mean_display": "0.2560" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": 16578, + "count": 32768, + "mean_exact": "8289/16384", + "mean_display": "0.5059" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 236631, + "T": 236631, + "err": 0 + }, + { + "gw": -236631, + "s": 0, + "T": 0, + "err": 0 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8585230, + "log2": 23.033425, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 141321511567368, + "log2": 47.005974, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 10074257551901784539135, + "log2": 73.093092, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42139654, + "log2": 25.328675, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (branch): (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n", + "bound": 8796109799424, + "log2": 43.000003, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "bit class: 1 - b - key", + "bound": 4097, + "log2": 12.000352, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R5 (branch): s - y - p - Khi bh - Klo bl", + "bound": 33685486, + "log2": 25.005624, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8585230, + "log2": 23.033425, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 36592257905731729, + "log2": 55.022388, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 36592257939286159, + "log2": 55.022388, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 1157565223230439432, + "log2": 60.005799, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 419564124590937869497, + "log2": 68.507453, + "below_2_63": false, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18437708187697151, + "log2": 54.033509, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 103347609600, + "log2": 36.588714, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007335888347135, + "log2": 53.000022, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 141321511567368, + "log2": 47.005974, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42139654, + "log2": 25.328675, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (branch): (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n", + "bound": 8796109799424, + "log2": 43.000003, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "bit class: 1 - b - key", + "bound": 4097, + "log2": 12.000352, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R5 (branch): s - y - p - Khi bh - Klo bl", + "bound": 33685486, + "log2": 25.005624, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "verdict": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 68.507453, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 36, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 141321511571464, + "log2": 47.005974, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^36, 2^36))", + "bound": 422762128543752, + "log2": 48.586839, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^36, 2^36))", + "bound": 4935945191598063615, + "log2": 62.098032, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^36 - limbs (4 key12)", + "bound": 281612415664127, + "log2": 48.000704, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 6 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "branch", + "threshold": { + "item1_high_side_max_le_32": true, + "high_side_max": 9, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "by the argument in RESULTS.md, U6 and the relation cases" + } + }, + { + "candidate": { + "name": "e3", + "H": 32768, + "w": 4, + "rows": 16384, + "index": "mid", + "offset": 2, + "outside": "branch", + "C": 0, + "Khi": 12, + "Klo": 11, + "item": "(e) = a + b + d", + "table_range": [ + -32770, + 32765 + ] + }, + "image_bound_exact": 8388607, + "table_max_abs": 32753, + "S_edge_used_in_ledger": 16809992, + "ledger_at_exact_image_descriptive": { + "S": 8388607, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 67.503826, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.016809, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 53.044394, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 53.044394, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 59.000352, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 67.503826, + "below_2_63": false + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.022368, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 36.0, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000016, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 46.000704, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 11, + "at_gw": 32766, + "err_there": 11, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 11, + "at_gw": 32768, + "err_there": 11, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 0, + "at_gw": 262144, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 11, + "at_gw": -32771, + "err_there": 11, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 0, + "at_gw": -262145, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 11, + "at_gw": 32768, + "err_there": 11, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 11, + "at_gw": 32766, + "err_there": 11, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32770, + "b": 32765, + "max_abs_err": 3, + "at_gw": 5294, + "err_there": 3, + "decided_by": "enumeration" + }, + "above": { + "a": 32766, + "b": 8388607, + "max_abs_err": 11, + "at_gw": 32766, + "err_there": 11, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -32771, + "max_abs_err": 11, + "at_gw": -32771, + "err_there": 11, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 11, + "min": -2 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": 16614, + "count": 65536, + "mean_exact": "8307/32768", + "mean_display": "0.2535" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": 16503, + "count": 32768, + "mean_exact": "16503/32768", + "mean_display": "0.5036" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 236631, + "T": 236631, + "err": 0 + }, + { + "gw": -236631, + "s": 0, + "T": 0, + "err": 0 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486914, + "log2": 23.016809, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 141046776299511, + "log2": 47.003167, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 10054668056942251868159, + "log2": 73.090284, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041344, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (branch): (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n", + "bound": 4398063288320, + "log2": 42.000006, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "bit class: 1 - b - key", + "bound": 4097, + "log2": 12.000352, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R5 (branch): s - y - p - Khi bh - Klo bl", + "bound": 33619984, + "log2": 25.002816, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486914, + "log2": 23.016809, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 36451181333061649, + "log2": 55.016815, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 36451181366616079, + "log2": 55.016815, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 1155314591647891447, + "log2": 60.002991, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 418749395958055498927, + "log2": 68.504649, + "below_2_63": false, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18437158717095935, + "log2": 54.033466, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 103213461504, + "log2": 36.58684, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007335754199039, + "log2": 53.000022, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 141046776299511, + "log2": 47.003167, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041344, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (branch): (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n", + "bound": 4398063288320, + "log2": 42.000006, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "bit class: 1 - b - key", + "bound": 4097, + "log2": 12.000352, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R5 (branch): s - y - p - Khi bh - Klo bl", + "bound": 33619984, + "log2": 25.002816, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "verdict": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 68.504649, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 36, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 141046776303607, + "log2": 47.003167, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^36, 2^36))", + "bound": 422487393275895, + "log2": 48.585902, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^36, 2^36))", + "bound": 4935945191598063615, + "log2": 62.098032, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^36 - limbs (4 key12)", + "bound": 281612415664127, + "log2": 48.000704, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 6 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "branch", + "threshold": { + "item1_high_side_max_le_32": true, + "high_side_max": 11, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "by the argument in RESULTS.md, U6 and the relation cases" + } + }, + { + "candidate": { + "name": "e4", + "H": 65536, + "w": 4, + "rows": 32768, + "index": "mid", + "offset": 2, + "outside": "branch", + "C": 0, + "Khi": 1, + "Klo": 0, + "item": "(e) = a + b + c + d", + "table_range": [ + -65538, + 65533 + ] + }, + "image_bound_exact": 8388607, + "table_max_abs": 65532, + "S_edge_used_in_ledger": 16842749, + "ledger_at_exact_image_descriptive": { + "S": 8388607, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 67.503826, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.033423, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 53.044394, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 53.044394, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 59.000352, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 67.503826, + "below_2_63": false + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.022368, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 36.0, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000016, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 46.000704, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 3, + "at_gw": 5294, + "err_there": 3, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 3, + "at_gw": 33966, + "err_there": 3, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 0, + "at_gw": 262144, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 1, + "at_gw": -32981, + "err_there": -1, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 0, + "at_gw": -262145, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 3, + "at_gw": 33966, + "err_there": 3, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 3, + "at_gw": 5294, + "err_there": 3, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -65538, + "b": 65533, + "max_abs_err": 3, + "at_gw": 5294, + "err_there": 3, + "decided_by": "enumeration" + }, + "above": { + "a": 65534, + "b": 8388607, + "max_abs_err": 0, + "at_gw": 65534, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -65539, + "max_abs_err": 0, + "at_gw": -65539, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 3, + "min": -2 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": 16595, + "count": 65536, + "mean_exact": "16595/65536", + "mean_display": "0.2532" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": 16484, + "count": 32768, + "mean_exact": "4121/8192", + "mean_display": "0.5030" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 236631, + "T": 236631, + "err": 0 + }, + { + "gw": -236631, + "s": 0, + "T": 0, + "err": 0 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8585218, + "log2": 23.033423, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 141321561899010, + "log2": 47.005975, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 10074261140707309780991, + "log2": 73.093092, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42139648, + "log2": 25.328675, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (branch): (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n", + "bound": 8796109799424, + "log2": 43.000003, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "bit class: 1 - b - key", + "bound": 4097, + "log2": 12.000352, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R5 (branch): s - y - p - Khi bh - Klo bl", + "bound": 33685498, + "log2": 25.005624, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8585218, + "log2": 23.033423, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 36592283776189585, + "log2": 55.022389, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 36592283809744015, + "log2": 55.022389, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 1157565635547299842, + "log2": 60.0058, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 419564273849641337917, + "log2": 68.507454, + "below_2_63": false, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18437708288360447, + "log2": 54.033509, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 103347634176, + "log2": 36.588714, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007335888371711, + "log2": 53.000022, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 141321561899010, + "log2": 47.005975, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42139648, + "log2": 25.328675, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (branch): (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n", + "bound": 8796109799424, + "log2": 43.000003, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "bit class: 1 - b - key", + "bound": 4097, + "log2": 12.000352, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R5 (branch): s - y - p - Khi bh - Klo bl", + "bound": 33685498, + "log2": 25.005624, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "verdict": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 68.507454, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 36, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 141321561903106, + "log2": 47.005975, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^36, 2^36))", + "bound": 422762178875394, + "log2": 48.58684, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^36, 2^36))", + "bound": 4935945191598063615, + "log2": 62.098032, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^36 - limbs (4 key12)", + "bound": 281612415664127, + "log2": 48.000704, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 6 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "branch", + "threshold": { + "item1_high_side_max_le_32": true, + "high_side_max": 3, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "by the argument in RESULTS.md, U6 and the relation cases" + } + }, + { + "candidate": { + "name": "e5", + "H": 32768, + "w": 16, + "rows": 4096, + "index": "floor", + "offset": 0, + "outside": "excess", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(e), no selector bit", + "table_range": [ + -32768, + 32767 + ] + }, + "image_bound_exact": 8388581, + "table_max_abs": 32741, + "S_edge_used_in_ledger": 16809956, + "ledger_at_exact_image_descriptive": { + "S": 8388581, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 67.503821, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.016811, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 53.044385, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 53.044385, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 59.000348, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 67.503821, + "below_2_63": false + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.022368, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.999998, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000016, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 46.000699, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 26, + "at_gw": 46895, + "err_there": -26, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 26, + "at_gw": 262144, + "err_there": -26, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 11, + "at_gw": -262145, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 26, + "at_gw": 46895, + "err_there": -26, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 26, + "at_gw": 46895, + "err_there": -26, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32768, + "b": 32767, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration" + }, + "above": { + "a": 32768, + "b": 8388607, + "max_abs_err": 26, + "at_gw": 46895, + "err_there": -26, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 2, + "min": -17 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": -245361, + "count": 65536, + "mean_exact": "-245361/65536", + "mean_display": "-3.7439" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": -245478, + "count": 32768, + "mean_exact": "-122739/16384", + "mean_display": "-7.4913" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 236605, + "T": 236631, + "err": -26 + }, + { + "gw": -236631, + "s": -11, + "T": 0, + "err": -11 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486926, + "log2": 23.016811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 141046474309659, + "log2": 47.003164, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 10054646524109100417023, + "log2": 73.09028, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041340, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (excess): s - y - p", + "bound": 33619912, + "log2": 25.002813, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486926, + "log2": 23.016811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 36451026412341265, + "log2": 55.016809, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 36451026445895695, + "log2": 55.016809, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 1155312117746728987, + "log2": 60.002988, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 418748500405834688407, + "log2": 68.504646, + "below_2_63": false, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18437158113116159, + "log2": 54.033466, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 103213314048, + "log2": 36.586838, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007335754051583, + "log2": 53.000022, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 141046474309659, + "log2": 47.003164, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041340, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (excess): s - y - p", + "bound": 33619912, + "log2": 25.002813, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + } + ], + "verdict": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 68.504646, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 36, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 141046474313755, + "log2": 47.003164, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^36, 2^36))", + "bound": 422487091286043, + "log2": 48.585901, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^36, 2^36))", + "bound": 4935945191598063615, + "log2": 62.098032, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^36 - limbs (4 key12)", + "bound": 281612415664127, + "log2": 48.000704, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 6 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "excess", + "threshold": { + "item1_high_side_max_le_32": true, + "high_side_max": 26, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "by the argument in RESULTS.md, U6 and the relation cases" + } + }, + { + "candidate": { + "name": "e6", + "H": 32768, + "w": 16, + "rows": 4096, + "index": "mid", + "offset": 8, + "outside": "excess", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(e), no selector bit (Amendment 1)", + "table_range": [ + -32776, + 32759 + ] + }, + "image_bound_exact": 8388589, + "table_max_abs": 32741, + "S_edge_used_in_ledger": 16809956, + "ledger_at_exact_image_descriptive": { + "S": 8388589, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 67.503822, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.016811, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 53.044388, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 53.044388, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 59.000349, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 67.503822, + "below_2_63": false + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.022368, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.999998, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000016, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 46.000701, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 18, + "at_gw": 46895, + "err_there": -18, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 18, + "at_gw": 262144, + "err_there": -18, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 11, + "at_gw": -262145, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 18, + "at_gw": 46895, + "err_there": -18, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 18, + "at_gw": 46895, + "err_there": -18, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32776, + "b": 32759, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration" + }, + "above": { + "a": 32760, + "b": 8388607, + "max_abs_err": 18, + "at_gw": 46895, + "err_there": -18, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -32777, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 9, + "min": -8 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": 16691, + "count": 65536, + "mean_exact": "16691/65536", + "mean_display": "0.2546" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": 16486, + "count": 32768, + "mean_exact": "8243/16384", + "mean_display": "0.5031" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 236613, + "T": 236631, + "err": -18 + }, + { + "gw": -236631, + "s": -11, + "T": 0, + "err": -11 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486926, + "log2": 23.016811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 141046474309659, + "log2": 47.003164, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 10054646524109100417023, + "log2": 73.09028, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041348, + "log2": 25.325306, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (excess): s - y - p", + "bound": 33619912, + "log2": 25.002813, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486926, + "log2": 23.016811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 36451026412341265, + "log2": 55.016809, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 36451026445895695, + "log2": 55.016809, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 1155312117746728987, + "log2": 60.002988, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 418748500405834688407, + "log2": 68.504646, + "below_2_63": false, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18437158113116159, + "log2": 54.033466, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 103213314048, + "log2": 36.586838, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007335754051583, + "log2": 53.000022, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 141046474309659, + "log2": 47.003164, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041348, + "log2": 25.325306, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (excess): s - y - p", + "bound": 33619912, + "log2": 25.002813, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + } + ], + "verdict": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 68.504646, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 36, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 141046474313755, + "log2": 47.003164, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^36, 2^36))", + "bound": 422487091286043, + "log2": 48.585901, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^36, 2^36))", + "bound": 4935945191598063615, + "log2": 62.098032, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^36 - limbs (4 key12)", + "bound": 281612415664127, + "log2": 48.000704, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 6 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "excess", + "threshold": { + "item1_high_side_max_le_32": true, + "high_side_max": 18, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "by the argument in RESULTS.md, U6 and the relation cases" + } + }, + { + "candidate": { + "name": "e7", + "H": 65536, + "w": 16, + "rows": 8192, + "index": "mid", + "offset": 8, + "outside": "excess", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(e), no selector bit (Amendment 1)", + "table_range": [ + -65544, + 65527 + ] + }, + "image_bound_exact": 8388600, + "table_max_abs": 65520, + "S_edge_used_in_ledger": 16842735, + "ledger_at_exact_image_descriptive": { + "S": 8388600, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 67.503824, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.033425, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 53.044391, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 53.044391, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 59.000351, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 67.503824, + "below_2_63": false + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.022368, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.999999, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000016, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 46.000703, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 9, + "at_gw": 33448, + "err_there": 9, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 7, + "at_gw": 262144, + "err_there": -7, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 1, + "at_gw": -32981, + "err_there": -1, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 0, + "at_gw": -262145, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 9, + "at_gw": 33448, + "err_there": 9, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -65544, + "b": 65527, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration" + }, + "above": { + "a": 65528, + "b": 8388607, + "max_abs_err": 7, + "at_gw": 65528, + "err_there": -7, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -65545, + "max_abs_err": 0, + "at_gw": -65545, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 9, + "min": -8 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": 16783, + "count": 65536, + "mean_exact": "16783/65536", + "mean_display": "0.2560" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": 16578, + "count": 32768, + "mean_exact": "8289/16384", + "mean_display": "0.5059" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 236624, + "T": 236631, + "err": -7 + }, + { + "gw": -236631, + "s": 0, + "T": 0, + "err": 0 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8585230, + "log2": 23.033425, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 141321444458512, + "log2": 47.005974, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 10074252766827750883327, + "log2": 73.093091, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42139652, + "log2": 25.328675, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 8796042166275, + "log2": 42.999992, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (excess): s - y - p", + "bound": 33685470, + "log2": 25.005623, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8585230, + "log2": 23.033425, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 36592223411802257, + "log2": 55.022387, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 36592223445356687, + "log2": 55.022387, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 1157564673474625552, + "log2": 60.005799, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 419563925579333244937, + "log2": 68.507453, + "below_2_63": false, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18437708053479423, + "log2": 54.033509, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 103347576832, + "log2": 36.588714, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007335888314367, + "log2": 53.000022, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 141321444458512, + "log2": 47.005974, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42139652, + "log2": 25.328675, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 8796042166275, + "log2": 42.999992, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (excess): s - y - p", + "bound": 33685470, + "log2": 25.005623, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + } + ], + "verdict": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 68.507453, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 36, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 141321444462608, + "log2": 47.005974, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^36, 2^36))", + "bound": 422762061434896, + "log2": 48.586839, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^36, 2^36))", + "bound": 4935945191598063615, + "log2": 62.098032, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^36 - limbs (4 key12)", + "bound": 281612415664127, + "log2": 48.000704, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 6 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "excess", + "threshold": { + "item1_high_side_max_le_32": true, + "high_side_max": 9, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "by the argument in RESULTS.md, U6 and the relation cases" + } + } + ], + "relation_cases": [ + { + "candidate": "d0", + "outside": "branch", + "cases": [ + { + "case": "honest: last key inside the table range", + "cells": { + "gw": 32767, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 32741 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 32741, + "ok": true + }, + { + "case": "honest: first key above the table range", + "cells": { + "gw": 32768, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 32768 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 32768, + "ok": true + }, + { + "case": "honest: first key inside the table range", + "cells": { + "gw": -32768, + "idx": 0, + "y": -11, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": -11 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": -11, + "ok": true + }, + { + "case": "honest: first key below the table range", + "cells": { + "gw": -32769, + "idx": 0, + "y": -11, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 1, + "s": 0 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 0, + "ok": true + }, + { + "case": "honest: largest gw of the committed range files, positive", + "cells": { + "gw": 236631, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 3159, + "p1": 49, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 236631 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 236631, + "ok": true + }, + { + "case": "honest: largest gw of the committed range files, negative", + "cells": { + "gw": -236631, + "idx": 0, + "y": -11, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 3158, + "n1": 49, + "bh": 0, + "bl": 1, + "s": 0 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 0, + "ok": true + }, + { + "case": "honest: class edge 2^23 - 1", + "cells": { + "gw": 8388607, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 4095, + "p1": 2039, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 8388607 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 8388607, + "ok": true + }, + { + "case": "honest: class edge -(2^23 - 1)", + "cells": { + "gw": -8388607, + "idx": 0, + "y": -11, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 4094, + "n1": 2039, + "bh": 0, + "bl": 1, + "s": 0 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 0, + "ok": true + }, + { + "case": "honest: gw = 0", + "cells": { + "gw": 0, + "idx": 2048, + "y": 0, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 0 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 0, + "ok": true + }, + { + "case": "gw = 2^23, outside the range class", + "cells": { + "gw": 8388608, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 0, + "p1": 2040, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 8388608 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "class: gw range cell" + ], + "registered_s": null, + "ok": true + }, + { + "case": "s off by one", + "cells": { + "gw": 1000, + "idx": 2110, + "y": 556, + "r": 8, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 557 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R5" + ], + "registered_s": null, + "ok": true + }, + { + "case": "in range, selector claims above: c one lower, p = 1, bh = 1 (R1 holds)", + "cells": { + "gw": 1000, + "idx": 2110, + "y": 556, + "r": 7, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 583 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "in range, excess without the bit: c one lower, p0 = 1 (R1 holds)", + "cells": { + "gw": 1000, + "idx": 2110, + "y": 556, + "r": 7, + "p0": 1, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 557 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "last key in range, selector claims above: c = cmax - 1, p = 1, bh = 1", + "cells": { + "gw": 32767, + "idx": 4095, + "y": 32741, + "r": 14, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 32768 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "first key above, selector says in range: idx = N (no such row)", + "cells": { + "gw": 32768, + "idx": 4096, + "y": 32741, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 32741 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "lookup: (idx, y) is not a table row" + ], + "registered_s": null, + "ok": true + }, + { + "case": "first key above, bit flipped against the excess", + "cells": { + "gw": 32768, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 1, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 32742 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "first key below, bit flipped against the excess", + "cells": { + "gw": -32769, + "idx": 0, + "y": -11, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 1, + "n1": 0, + "bh": 0, + "bl": 0, + "s": -11 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "far above, selector says in range: c = 0, p = gw + off", + "cells": { + "gw": 100000, + "idx": 2048, + "y": 0, + "r": 0, + "p0": 1696, + "p1": 24, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 100000 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "excess limb outside its key class: the whole excess 5000 in the low limb, p1 = 0 (R1 holds)", + "cells": { + "gw": 37767, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 4999, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 37767 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "class: key p0" + ], + "registered_s": null, + "ok": true + }, + { + "case": "both excesses non-zero above: p and n each one larger", + "cells": { + "gw": 32777, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 10, + "p1": 0, + "n0": 1, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 32778 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "table value from another row", + "cells": { + "gw": 1000, + "idx": 2110, + "y": 12911, + "r": 8, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 12911 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "lookup: (idx, y) is not a table row" + ], + "registered_s": null, + "ok": true + } + ], + "all_ok": true, + "n_accept": 9, + "n_refuse": 12 + }, + { + "candidate": "e5", + "outside": "excess", + "cases": [ + { + "case": "honest: last key inside the table range", + "cells": { + "gw": 32767, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 32741 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 32741, + "ok": true + }, + { + "case": "honest: first key above the table range", + "cells": { + "gw": 32768, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 1, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 32742 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 32742, + "ok": true + }, + { + "case": "honest: first key inside the table range", + "cells": { + "gw": -32768, + "idx": 0, + "y": -11, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": -11 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": -11, + "ok": true + }, + { + "case": "honest: first key below the table range", + "cells": { + "gw": -32769, + "idx": 0, + "y": -11, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 1, + "n1": 0, + "bh": 0, + "bl": 0, + "s": -11 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": -11, + "ok": true + }, + { + "case": "honest: largest gw of the committed range files, positive", + "cells": { + "gw": 236631, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 3160, + "p1": 49, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 236605 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 236605, + "ok": true + }, + { + "case": "honest: largest gw of the committed range files, negative", + "cells": { + "gw": -236631, + "idx": 0, + "y": -11, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 3159, + "n1": 49, + "bh": 0, + "bl": 0, + "s": -11 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": -11, + "ok": true + }, + { + "case": "honest: class edge 2^23 - 1", + "cells": { + "gw": 8388607, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 0, + "p1": 2040, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 8388581 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 8388581, + "ok": true + }, + { + "case": "honest: class edge -(2^23 - 1)", + "cells": { + "gw": -8388607, + "idx": 0, + "y": -11, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 4095, + "n1": 2039, + "bh": 0, + "bl": 0, + "s": -11 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": -11, + "ok": true + }, + { + "case": "honest: gw = 0", + "cells": { + "gw": 0, + "idx": 2048, + "y": 0, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 0 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 0, + "ok": true + }, + { + "case": "gw = 2^23, outside the range class", + "cells": { + "gw": 8388608, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 1, + "p1": 2040, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 8388582 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "class: gw range cell" + ], + "registered_s": null, + "ok": true + }, + { + "case": "s off by one", + "cells": { + "gw": 1000, + "idx": 2110, + "y": 556, + "r": 8, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 557 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R5" + ], + "registered_s": null, + "ok": true + }, + { + "case": "in range, selector claims above: c one lower, p = 1, bh = 1 (R1 holds)", + "cells": { + "gw": 1000, + "idx": 2110, + "y": 556, + "r": 7, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 557 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "class: bit bh", + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "in range, excess without the bit: c one lower, p0 = 1 (R1 holds)", + "cells": { + "gw": 1000, + "idx": 2110, + "y": 556, + "r": 7, + "p0": 1, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 557 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "last key in range, selector claims above: c = cmax - 1, p = 1, bh = 1", + "cells": { + "gw": 32767, + "idx": 4095, + "y": 32741, + "r": 14, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 32742 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "class: bit bh", + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "first key above, selector says in range: idx = N (no such row)", + "cells": { + "gw": 32768, + "idx": 4096, + "y": 32741, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 32741 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "lookup: (idx, y) is not a table row" + ], + "registered_s": null, + "ok": true + }, + { + "case": "first key above, bit flipped against the excess", + "cells": { + "gw": 32768, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 32742 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "class: bit bh" + ], + "registered_s": null, + "ok": true + }, + { + "case": "first key below, bit flipped against the excess", + "cells": { + "gw": -32769, + "idx": 0, + "y": -11, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 1, + "s": -11 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "class: bit bl" + ], + "registered_s": null, + "ok": true + }, + { + "case": "far above, selector says in range: c = 0, p = gw + off", + "cells": { + "gw": 100000, + "idx": 2048, + "y": 0, + "r": 0, + "p0": 1696, + "p1": 24, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 100000 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "excess limb outside its key class: the whole excess 5000 in the low limb, p1 = 0 (R1 holds)", + "cells": { + "gw": 37767, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 5000, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 37741 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "class: key p0" + ], + "registered_s": null, + "ok": true + }, + { + "case": "both excesses non-zero above: p and n each one larger", + "cells": { + "gw": 32777, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 11, + "p1": 0, + "n0": 1, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 32752 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "table value from another row", + "cells": { + "gw": 1000, + "idx": 2110, + "y": 12911, + "r": 8, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 12911 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "lookup: (idx, y) is not a table row" + ], + "registered_s": null, + "ok": true + } + ], + "all_ok": true, + "n_accept": 9, + "n_refuse": 12 + } + ], + "unbound": { + "d0": { + "without_the_bit_terms_of_R2": [ + { + "gw": 0, + "honest_s": 0, + "accepted_s": [ + 0 + ], + "largest_abs_dev": 0 + }, + { + "gw": 32767, + "honest_s": 32741, + "accepted_s": [ + 32741 + ], + "largest_abs_dev": 0 + }, + { + "gw": 32768, + "honest_s": 32768, + "accepted_s": [ + 32742, + 32768 + ], + "largest_abs_dev": 26 + }, + { + "gw": 100000, + "honest_s": 100000, + "accepted_s": [ + 99974, + 100000 + ], + "largest_abs_dev": 26 + }, + { + "gw": 8388607, + "honest_s": 8388607, + "accepted_s": [ + 8388581, + 8388607 + ], + "largest_abs_dev": 26 + }, + { + "gw": -32769, + "honest_s": 0, + "accepted_s": [ + -11, + 0 + ], + "largest_abs_dev": 11 + }, + { + "gw": -8388607, + "honest_s": 0, + "accepted_s": [ + -11, + 0 + ], + "largest_abs_dev": 11 + } + ], + "without_R2": [ + { + "gw": 0, + "honest_s": 0, + "smallest_accepted_s": -7, + "largest_accepted_s": 16777253, + "largest_abs_dev": 16777253 + }, + { + "gw": 32767, + "honest_s": 32741, + "smallest_accepted_s": 31611, + "largest_accepted_s": 16809994, + "largest_abs_dev": 16777253 + }, + { + "gw": 32768, + "honest_s": 32768, + "smallest_accepted_s": 31612, + "largest_accepted_s": 16809994, + "largest_abs_dev": 16777226 + }, + { + "gw": 100000, + "honest_s": 100000, + "smallest_accepted_s": 98844, + "largest_accepted_s": 16809994, + "largest_abs_dev": 16709994 + }, + { + "gw": 8388607, + "honest_s": 8388607, + "smallest_accepted_s": 8387451, + "largest_accepted_s": 16809994, + "largest_abs_dev": 8421387 + }, + { + "gw": -32769, + "honest_s": 0, + "smallest_accepted_s": -1141, + "largest_accepted_s": 16777241, + "largest_abs_dev": 16777241 + }, + { + "gw": -8388607, + "honest_s": 0, + "smallest_accepted_s": -1141, + "largest_accepted_s": 8421403, + "largest_abs_dev": 8421403 + } + ], + "multiplexer_form_unbound": { + "form": "s in {table value (only if the key is in the table range), gw, C}, selector tied to nothing", + "at_class_edge_positive": { + "gw": 8388607, + "honest_s": 8388607, + "also_accepted": 0, + "abs_dev": 8388607 + }, + "at_class_edge_negative": { + "gw": -8388607, + "honest_s": 0, + "also_accepted": -8388607, + "abs_dev": 8388607 + }, + "in_range_example": { + "gw": -32768, + "honest_s": -11, + "also_accepted": [ + -32768, + 0 + ] + } + }, + "note": "sets computed from the definitions (relation.stated_set, relation.no_R2_extremes); the first is checked exhaustively against a witness search on the toy format in U6" + }, + "e5": { + "without_the_bit_terms_of_R2": [ + { + "gw": 0, + "honest_s": 0, + "accepted_s": [ + 0 + ], + "largest_abs_dev": 0 + }, + { + "gw": 32767, + "honest_s": 32741, + "accepted_s": [ + 32741 + ], + "largest_abs_dev": 0 + }, + { + "gw": 32768, + "honest_s": 32742, + "accepted_s": [ + 32742 + ], + "largest_abs_dev": 0 + }, + { + "gw": 100000, + "honest_s": 99974, + "accepted_s": [ + 99974 + ], + "largest_abs_dev": 0 + }, + { + "gw": 8388607, + "honest_s": 8388581, + "accepted_s": [ + 8388581 + ], + "largest_abs_dev": 0 + }, + { + "gw": -32769, + "honest_s": -11, + "accepted_s": [ + -11 + ], + "largest_abs_dev": 0 + }, + { + "gw": -8388607, + "honest_s": -11, + "accepted_s": [ + -11 + ], + "largest_abs_dev": 0 + } + ], + "without_R2": [ + { + "gw": 0, + "honest_s": 0, + "smallest_accepted_s": -7, + "largest_accepted_s": 16777215, + "largest_abs_dev": 16777215 + }, + { + "gw": 32767, + "honest_s": 32741, + "smallest_accepted_s": 31611, + "largest_accepted_s": 16809956, + "largest_abs_dev": 16777215 + }, + { + "gw": 32768, + "honest_s": 32742, + "smallest_accepted_s": 31612, + "largest_accepted_s": 16809956, + "largest_abs_dev": 16777214 + }, + { + "gw": 100000, + "honest_s": 99974, + "smallest_accepted_s": 98844, + "largest_accepted_s": 16809956, + "largest_abs_dev": 16709982 + }, + { + "gw": 8388607, + "honest_s": 8388581, + "smallest_accepted_s": 8387451, + "largest_accepted_s": 16809956, + "largest_abs_dev": 8421375 + }, + { + "gw": -32769, + "honest_s": -11, + "smallest_accepted_s": -1141, + "largest_accepted_s": 16777203, + "largest_abs_dev": 16777214 + }, + { + "gw": -8388607, + "honest_s": -11, + "smallest_accepted_s": -1141, + "largest_accepted_s": 8421365, + "largest_abs_dev": 8421376 + } + ], + "multiplexer_form_unbound": null, + "note": "sets computed from the definitions (relation.stated_set, relation.no_R2_extremes); the first is checked exhaustively against a witness search on the toy format in U6" + }, + "d1": { + "without_the_bit_terms_of_R2": [ + { + "gw": 0, + "honest_s": 0, + "accepted_s": [ + 0 + ], + "largest_abs_dev": 0 + }, + { + "gw": 32767, + "honest_s": 32741, + "accepted_s": [ + 32741 + ], + "largest_abs_dev": 0 + }, + { + "gw": 32768, + "honest_s": 32768, + "accepted_s": [ + 32742, + 32768 + ], + "largest_abs_dev": 26 + }, + { + "gw": 100000, + "honest_s": 100000, + "accepted_s": [ + 99974, + 100000 + ], + "largest_abs_dev": 26 + }, + { + "gw": 8388607, + "honest_s": 8388607, + "accepted_s": [ + 8388581, + 8388607 + ], + "largest_abs_dev": 26 + }, + { + "gw": -32769, + "honest_s": -11, + "accepted_s": [ + -11 + ], + "largest_abs_dev": 0 + }, + { + "gw": -8388607, + "honest_s": -11, + "accepted_s": [ + -11 + ], + "largest_abs_dev": 0 + } + ], + "without_R2": [ + { + "gw": 0, + "honest_s": 0, + "smallest_accepted_s": -7, + "largest_accepted_s": 16777242, + "largest_abs_dev": 16777242 + }, + { + "gw": 32767, + "honest_s": 32741, + "smallest_accepted_s": 31611, + "largest_accepted_s": 16809983, + "largest_abs_dev": 16777242 + }, + { + "gw": 32768, + "honest_s": 32768, + "smallest_accepted_s": 31612, + "largest_accepted_s": 16809983, + "largest_abs_dev": 16777215 + }, + { + "gw": 100000, + "honest_s": 100000, + "smallest_accepted_s": 98844, + "largest_accepted_s": 16809983, + "largest_abs_dev": 16709983 + }, + { + "gw": 8388607, + "honest_s": 8388607, + "smallest_accepted_s": 8387451, + "largest_accepted_s": 16809983, + "largest_abs_dev": 8421376 + }, + { + "gw": -32769, + "honest_s": -11, + "smallest_accepted_s": -1141, + "largest_accepted_s": 16777230, + "largest_abs_dev": 16777241 + }, + { + "gw": -8388607, + "honest_s": -11, + "smallest_accepted_s": -1141, + "largest_accepted_s": 8421392, + "largest_abs_dev": 8421403 + } + ], + "multiplexer_form_unbound": { + "form": "s in {table value (only if the key is in the table range), gw, C}, selector tied to nothing", + "at_class_edge_positive": { + "gw": 8388607, + "honest_s": 8388607, + "also_accepted": -11, + "abs_dev": 8388618 + }, + "at_class_edge_negative": { + "gw": -8388607, + "honest_s": -11, + "also_accepted": -8388607, + "abs_dev": 8388596 + }, + "in_range_example": { + "gw": -32768, + "honest_s": -11, + "also_accepted": [ + -32768, + -11 + ] + } + }, + "note": "sets computed from the definitions (relation.stated_set, relation.no_R2_extremes); the first is checked exhaustively against a witness search on the toy format in U6" + }, + "e1": { + "without_the_bit_terms_of_R2": [ + { + "gw": 0, + "honest_s": 0, + "accepted_s": [ + 0 + ], + "largest_abs_dev": 0 + }, + { + "gw": 32759, + "honest_s": 32741, + "accepted_s": [ + 32741 + ], + "largest_abs_dev": 0 + }, + { + "gw": 32760, + "honest_s": 32760, + "accepted_s": [ + 32742, + 32760 + ], + "largest_abs_dev": 18 + }, + { + "gw": 100000, + "honest_s": 100000, + "accepted_s": [ + 99982, + 100000 + ], + "largest_abs_dev": 18 + }, + { + "gw": 8388607, + "honest_s": 8388607, + "accepted_s": [ + 8388589, + 8388607 + ], + "largest_abs_dev": 18 + }, + { + "gw": -32777, + "honest_s": 0, + "accepted_s": [ + -11, + 0 + ], + "largest_abs_dev": 11 + }, + { + "gw": -8388607, + "honest_s": 0, + "accepted_s": [ + -11, + 0 + ], + "largest_abs_dev": 11 + } + ], + "without_R2": [ + { + "gw": 0, + "honest_s": 0, + "smallest_accepted_s": 0, + "largest_accepted_s": 16777245, + "largest_abs_dev": 16777245 + }, + { + "gw": 32759, + "honest_s": 32741, + "smallest_accepted_s": 31611, + "largest_accepted_s": 16809986, + "largest_abs_dev": 16777245 + }, + { + "gw": 32760, + "honest_s": 32760, + "smallest_accepted_s": 31612, + "largest_accepted_s": 16809986, + "largest_abs_dev": 16777226 + }, + { + "gw": 100000, + "honest_s": 100000, + "smallest_accepted_s": 98852, + "largest_accepted_s": 16809986, + "largest_abs_dev": 16709986 + }, + { + "gw": 8388607, + "honest_s": 8388607, + "smallest_accepted_s": 8387459, + "largest_accepted_s": 16809986, + "largest_abs_dev": 8421379 + }, + { + "gw": -32777, + "honest_s": 0, + "smallest_accepted_s": -1141, + "largest_accepted_s": 16777233, + "largest_abs_dev": 16777233 + }, + { + "gw": -8388607, + "honest_s": 0, + "smallest_accepted_s": -1141, + "largest_accepted_s": 8421403, + "largest_abs_dev": 8421403 + } + ], + "multiplexer_form_unbound": { + "form": "s in {table value (only if the key is in the table range), gw, C}, selector tied to nothing", + "at_class_edge_positive": { + "gw": 8388607, + "honest_s": 8388607, + "also_accepted": 0, + "abs_dev": 8388607 + }, + "at_class_edge_negative": { + "gw": -8388607, + "honest_s": 0, + "also_accepted": -8388607, + "abs_dev": 8388607 + }, + "in_range_example": { + "gw": -32768, + "honest_s": -11, + "also_accepted": [ + -32768, + 0 + ] + } + }, + "note": "sets computed from the definitions (relation.stated_set, relation.no_R2_extremes); the first is checked exhaustively against a witness search on the toy format in U6" + } + }, + "statement_cost": { + "source": "research/operators/qwen_m3/count_m3.py imported unchanged (mlp_statement, vrem, flookup, summarize, max_T)", + "hidden_units": 17408, + "base_per_hidden_unit": { + "function_lookups": 1, + "range_cells": 3, + "keys": 9, + "gate_columns": 3, + "relations": 7 + }, + "statements": { + "table only (rejects outside the domain, as on main)": { + "per_unit_added": { + "keys": 0, + "gate_columns": 0, + "relations": 0, + "range_cells": 0 + }, + "T16": { + "gate_columns": 835584, + "range_cells": 835584, + "lkp_keys": 2752512, + "relations": 2031616, + "laid_columns": 4423680, + "log_length": 23, + "fits_log22": false + }, + "largest_T_that_fits_log22": 15 + }, + "table only (rejects outside the domain, as on main) + h exact [-2^23, 2^23)": { + "per_unit_added": { + "keys": 2, + "gate_columns": 0, + "relations": 1, + "range_cells": -1 + }, + "T16": { + "gate_columns": 835584, + "range_cells": 557056, + "lkp_keys": 3309568, + "relations": 2310144, + "laid_columns": 4702208, + "log_length": 23, + "fits_log22": false + }, + "largest_T_that_fits_log22": 14 + }, + "clip": { + "per_unit_added": { + "keys": 4, + "gate_columns": 1, + "relations": 3, + "range_cells": 0 + }, + "T16": { + "gate_columns": 1114112, + "range_cells": 835584, + "lkp_keys": 3866624, + "relations": 2867200, + "laid_columns": 5816320, + "log_length": 23, + "fits_log22": false + }, + "largest_T_that_fits_log22": 11 + }, + "clip + h exact [-2^23, 2^23)": { + "per_unit_added": { + "keys": 6, + "gate_columns": 1, + "relations": 4, + "range_cells": -1 + }, + "T16": { + "gate_columns": 1114112, + "range_cells": 557056, + "lkp_keys": 4423680, + "relations": 3145728, + "laid_columns": 6094848, + "log_length": 23, + "fits_log22": false + }, + "largest_T_that_fits_log22": 10 + }, + "excess": { + "per_unit_added": { + "keys": 4, + "gate_columns": 1, + "relations": 3, + "range_cells": 0 + }, + "T16": { + "gate_columns": 1114112, + "range_cells": 835584, + "lkp_keys": 3866624, + "relations": 2867200, + "laid_columns": 5816320, + "log_length": 23, + "fits_log22": false + }, + "largest_T_that_fits_log22": 11 + }, + "excess + h exact [-2^23, 2^23)": { + "per_unit_added": { + "keys": 6, + "gate_columns": 1, + "relations": 4, + "range_cells": -1 + }, + "T16": { + "gate_columns": 1114112, + "range_cells": 557056, + "lkp_keys": 4423680, + "relations": 3145728, + "laid_columns": 6094848, + "log_length": 23, + "fits_log22": false + }, + "largest_T_that_fits_log22": 10 + }, + "branch": { + "per_unit_added": { + "keys": 8, + "gate_columns": 2, + "relations": 7, + "range_cells": 0 + }, + "T16": { + "gate_columns": 1392640, + "range_cells": 835584, + "lkp_keys": 4980736, + "relations": 3981312, + "laid_columns": 7208960, + "log_length": 23, + "fits_log22": false + }, + "largest_T_that_fits_log22": 9 + }, + "branch + h exact [-2^23, 2^23)": { + "per_unit_added": { + "keys": 10, + "gate_columns": 2, + "relations": 8, + "range_cells": -1 + }, + "T16": { + "gate_columns": 1392640, + "range_cells": 557056, + "lkp_keys": 5537792, + "relations": 4259840, + "laid_columns": 7487488, + "log_length": 23, + "fits_log22": false + }, + "largest_T_that_fits_log22": 8 + } + }, + "note": "counted from the lowering written in the note, nothing built; added relations are counted at 3 terms each (count_m3 calls its term totals provisional); the public table rows are listed per candidate, they are not in the layout" + } +} diff --git a/experiments/20261129-222-silu-repairs/runs/run-1.time b/experiments/20261129-222-silu-repairs/runs/run-1.time new file mode 100644 index 00000000..71c729f9 --- /dev/null +++ b/experiments/20261129-222-silu-repairs/runs/run-1.time @@ -0,0 +1,23 @@ + Command being timed: "python3 experiments/20261129-222-silu-repairs/compute.py experiments/20261129-222-silu-repairs/runs/run-1.json --table experiments/20261129-222-silu-repairs/runs/table.md" + User time (seconds): 11.65 + System time (seconds): 1.22 + Percent of CPU this job got: 99% + Elapsed (wall clock) time (h:mm:ss or m:ss): 0:12.88 + Average shared text size (kbytes): 0 + Average unshared data size (kbytes): 0 + Average stack size (kbytes): 0 + Average total size (kbytes): 0 + Maximum resident set size (kbytes): 262480 + Average resident set size (kbytes): 0 + Major (requiring I/O) page faults: 0 + Minor (reclaiming a frame) page faults: 596759 + Voluntary context switches: 45 + Involuntary context switches: 55 + Swaps: 0 + File system inputs: 0 + File system outputs: 624 + Socket messages sent: 0 + Socket messages received: 0 + Signals delivered: 0 + Page size (bytes): 4096 + Exit status: 0 diff --git a/experiments/20261129-222-silu-repairs/runs/run-2.json b/experiments/20261129-222-silu-repairs/runs/run-2.json new file mode 100644 index 00000000..eae2139e --- /dev/null +++ b/experiments/20261129-222-silu-repairs/runs/run-2.json @@ -0,0 +1,12868 @@ +{ + "experiment": "20261129-222-silu-repairs", + "class_": "|gw| < 8388608", + "target": { + "toy": false, + "scale_bits": 192, + "enumerated_to": 1048576, + "undecided": [], + "n_undecided": 0, + "tail_lemma": { + "G0": 1048576, + "G0_above_4096": true, + "hi_G0": "4096", + "two_G0_hi_below_q": true, + "holds": true + }, + "T_min": -1141, + "T_min_at": -5295, + "T_at": { + "-32768": -11, + "-32769": -11, + "32752": 32741, + "32767": 32756, + "32768": 32757, + "-65536": 0, + "65536": 65536, + "-131072": 0, + "131072": 131072, + "-262144": 0, + "262144": 262144 + }, + "T_is_identity_from": 46895, + "T_is_zero_from_minus": 46895 + }, + "pinned_v1_rows_differing_from_exact": 0, + "honest_gw_files": [ + { + "file": "experiments/20261112-132-int-mlp-e2e/runs/ranges-abl.jsonl", + "range_rows": 713, + "layers": [ + 0, + 30 + ], + "max_abs_gw": 38109, + "at_layer": 26, + "path": "FM", + "prompt": "p03-repeat-word", + "entries_gw_ge_2e18": 0, + "entries_gw_ge_2e23": 0 + }, + { + "file": "experiments/20261112-132-int-mlp-e2e/runs-resume150b/runs/ranges-abl.jsonl", + "range_rows": 759, + "layers": [ + 31, + 63 + ], + "max_abs_gw": 236631, + "at_layer": 62, + "path": "FM", + "prompt": "p11-chat-long", + "entries_gw_ge_2e18": 0, + "entries_gw_ge_2e23": 0 + } + ], + "largest_honest_gw": 236631, + "candidates": [ + { + "candidate": { + "name": "v1", + "H": 32768, + "w": 16, + "rows": 4096, + "index": "floor", + "offset": 0, + "outside": "clip", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "baseline", + "table_range": [ + -32768, + 32767 + ] + }, + "image_bound_exact": 32741, + "table_max_abs": 32741, + "S_edge_used_in_ledger": 32741, + "ledger_at_exact_image_descriptive": { + "S": 32741, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.270767, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.016811, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.000703, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.000703, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 51.086344, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 60.270767, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011271, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.00562, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 38.168868, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 229402, + "at_gw": 262143, + "err_there": -229402, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 8355866, + "at_gw": 8388607, + "err_there": -8355866, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 11, + "at_gw": -262145, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8355866, + "at_gw": 8388607, + "err_there": -8355866, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 8355866, + "at_gw": 8388607, + "err_there": -8355866, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32768, + "b": 32767, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration" + }, + "above": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8355866, + "at_gw": 8388607, + "err_there": -8355866, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 2, + "min": -17 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": -245361, + "count": 65536, + "mean_exact": "-245361/65536", + "mean_display": "-3.7439" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": -245478, + "count": 32768, + "mean_exact": "-122739/16384", + "mean_display": "-7.4913" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 32741, + "T": 236631, + "err": -203890 + }, + { + "gw": -236631, + "s": -11, + "T": 0, + "err": -11 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486926, + "log2": 23.016811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 309011120154, + "log2": 38.168868, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 19619542414009565183, + "log2": 64.088925, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041340, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 65482, + "log2": 15.998811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486926, + "log2": 23.016811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 281612172487825, + "log2": 48.000703, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 281612206042255, + "log2": 48.000703, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 2390681876135962, + "log2": 51.086344, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 1390940620680013357, + "log2": 60.270767, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18155683153182719, + "log2": 54.011271, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 34493841408, + "log2": 35.00562, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007267034578943, + "log2": 53.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 309011120154, + "log2": 38.168868, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041340, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 65482, + "log2": 15.998811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.270767, + "failing": [], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 26, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 309011124250, + "log2": 38.168868, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^26, 2^26))", + "bound": 549529292826, + "log2": 38.999405, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^26, 2^26))", + "bound": 40813871623045119, + "log2": 55.179909, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^26 - limbs (3 key12)", + "bound": 68853694463, + "log2": 36.002815, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "clip", + "threshold": { + "item1_high_side_max_le_32": false, + "high_side_max": 8355866, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "no selector (clip)" + } + }, + { + "candidate": { + "name": "a", + "H": 32768, + "w": 16, + "rows": 4096, + "index": "mid", + "offset": 8, + "outside": "clip", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(a)", + "table_range": [ + -32776, + 32759 + ] + }, + "image_bound_exact": 32741, + "table_max_abs": 32741, + "S_edge_used_in_ledger": 32741, + "ledger_at_exact_image_descriptive": { + "S": 32741, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.270767, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.016811, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.000703, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.000703, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 51.086344, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 60.270767, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011271, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.00562, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 38.168868, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 15, + "at_gw": 32767, + "err_there": -15, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 229402, + "at_gw": 262143, + "err_there": -229402, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 8355866, + "at_gw": 8388607, + "err_there": -8355866, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 11, + "at_gw": -262145, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8355866, + "at_gw": 8388607, + "err_there": -8355866, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 8355866, + "at_gw": 8388607, + "err_there": -8355866, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32776, + "b": 32759, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration" + }, + "above": { + "a": 32760, + "b": 8388607, + "max_abs_err": 8355866, + "at_gw": 8388607, + "err_there": -8355866, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -32777, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 9, + "min": -15 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": 16655, + "count": 65536, + "mean_exact": "16655/65536", + "mean_display": "0.2541" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": 16450, + "count": 32768, + "mean_exact": "8225/16384", + "mean_display": "0.5020" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 32741, + "T": 236631, + "err": -203890 + }, + { + "gw": -236631, + "s": -11, + "T": 0, + "err": -11 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486926, + "log2": 23.016811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 309011120154, + "log2": 38.168868, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 19619542414009565183, + "log2": 64.088925, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041348, + "log2": 25.325306, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 65482, + "log2": 15.998811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486926, + "log2": 23.016811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 281612172487825, + "log2": 48.000703, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 281612206042255, + "log2": 48.000703, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 2390681876135962, + "log2": 51.086344, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 1390940620680013357, + "log2": 60.270767, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18155683153182719, + "log2": 54.011271, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 34493841408, + "log2": 35.00562, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007267034578943, + "log2": 53.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 309011120154, + "log2": 38.168868, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041348, + "log2": 25.325306, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 65482, + "log2": 15.998811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.270767, + "failing": [], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 26, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 309011124250, + "log2": 38.168868, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^26, 2^26))", + "bound": 549529292826, + "log2": 38.999405, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^26, 2^26))", + "bound": 40813871623045119, + "log2": 55.179909, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^26 - limbs (3 key12)", + "bound": 68853694463, + "log2": 36.002815, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "clip", + "threshold": { + "item1_high_side_max_le_32": false, + "high_side_max": 8355866, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "no selector (clip)" + } + }, + { + "candidate": { + "name": "b9f", + "H": 32768, + "w": 8, + "rows": 8192, + "index": "floor", + "offset": 0, + "outside": "clip", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(b)", + "table_range": [ + -32768, + 32767 + ] + }, + "image_bound_exact": 32749, + "table_max_abs": 32749, + "S_edge_used_in_ledger": 32749, + "ledger_at_exact_image_descriptive": { + "S": 32749, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.270973, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.016809, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.000703, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.000704, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 51.086675, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 60.270973, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011271, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.005621, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 38.169181, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 8, + "at_gw": 5447, + "err_there": -8, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 229394, + "at_gw": 262143, + "err_there": -229394, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 8355858, + "at_gw": 8388607, + "err_there": -8355858, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 11, + "at_gw": -262145, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8355858, + "at_gw": 8388607, + "err_there": -8355858, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 8355858, + "at_gw": 8388607, + "err_there": -8355858, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32768, + "b": 32767, + "max_abs_err": 8, + "at_gw": 5447, + "err_there": -8, + "decided_by": "enumeration" + }, + "above": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8355858, + "at_gw": 8388607, + "err_there": -8355858, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 1, + "min": -8 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": -114345, + "count": 65536, + "mean_exact": "-114345/65536", + "mean_display": "-1.7447" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": -114478, + "count": 32768, + "mean_exact": "-57239/16384", + "mean_display": "-3.4935" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 32749, + "T": 236631, + "err": -203882 + }, + { + "gw": -236631, + "s": -11, + "T": 0, + "err": -11 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486918, + "log2": 23.016809, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 309078229010, + "log2": 38.169181, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 19624327488043220991, + "log2": 64.089277, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041340, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 65498, + "log2": 15.999163, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486918, + "log2": 23.016809, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 281612239549585, + "log2": 48.000703, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 281612273104015, + "log2": 48.000704, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 2391231631949842, + "log2": 51.086675, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 1391139632284637917, + "log2": 60.270973, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18155683287400447, + "log2": 54.011271, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 34493874176, + "log2": 35.005621, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007267034611711, + "log2": 53.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 309078229010, + "log2": 38.169181, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041340, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 65498, + "log2": 15.999163, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.270973, + "failing": [], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 26, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 309078233106, + "log2": 38.169181, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^26, 2^26))", + "bound": 549596401682, + "log2": 38.999582, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^26, 2^26))", + "bound": 40813871623045119, + "log2": 55.179909, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^26 - limbs (3 key12)", + "bound": 68853694463, + "log2": 36.002815, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "clip", + "threshold": { + "item1_high_side_max_le_32": false, + "high_side_max": 8355858, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "no selector (clip)" + } + }, + { + "candidate": { + "name": "b9m", + "H": 32768, + "w": 8, + "rows": 8192, + "index": "mid", + "offset": 4, + "outside": "clip", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(b)", + "table_range": [ + -32772, + 32763 + ] + }, + "image_bound_exact": 32749, + "table_max_abs": 32749, + "S_edge_used_in_ledger": 32749, + "ledger_at_exact_image_descriptive": { + "S": 32749, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.270973, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.016809, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.000703, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.000704, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 51.086675, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 60.270973, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011271, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.005621, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 38.169181, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 7, + "at_gw": 32767, + "err_there": -7, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 229394, + "at_gw": 262143, + "err_there": -229394, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 8355858, + "at_gw": 8388607, + "err_there": -8355858, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 11, + "at_gw": -262145, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8355858, + "at_gw": 8388607, + "err_there": -8355858, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 8355858, + "at_gw": 8388607, + "err_there": -8355858, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32772, + "b": 32763, + "max_abs_err": 5, + "at_gw": 5292, + "err_there": 5, + "decided_by": "enumeration" + }, + "above": { + "a": 32764, + "b": 8388607, + "max_abs_err": 8355858, + "at_gw": 8388607, + "err_there": -8355858, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -32773, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 5, + "min": -7 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": 16695, + "count": 65536, + "mean_exact": "16695/65536", + "mean_display": "0.2547" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": 16518, + "count": 32768, + "mean_exact": "8259/16384", + "mean_display": "0.5040" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 32749, + "T": 236631, + "err": -203882 + }, + { + "gw": -236631, + "s": -11, + "T": 0, + "err": -11 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486918, + "log2": 23.016809, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 309078229010, + "log2": 38.169181, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 19624327488043220991, + "log2": 64.089277, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041344, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 65498, + "log2": 15.999163, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486918, + "log2": 23.016809, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 281612239549585, + "log2": 48.000703, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 281612273104015, + "log2": 48.000704, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 2391231631949842, + "log2": 51.086675, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 1391139632284637917, + "log2": 60.270973, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18155683287400447, + "log2": 54.011271, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 34493874176, + "log2": 35.005621, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007267034611711, + "log2": 53.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 309078229010, + "log2": 38.169181, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041344, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 65498, + "log2": 15.999163, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.270973, + "failing": [], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 26, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 309078233106, + "log2": 38.169181, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^26, 2^26))", + "bound": 549596401682, + "log2": 38.999582, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^26, 2^26))", + "bound": 40813871623045119, + "log2": 55.179909, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^26 - limbs (3 key12)", + "bound": 68853694463, + "log2": 36.002815, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "clip", + "threshold": { + "item1_high_side_max_le_32": false, + "high_side_max": 8355858, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "no selector (clip)" + } + }, + { + "candidate": { + "name": "b10f", + "H": 32768, + "w": 4, + "rows": 16384, + "index": "floor", + "offset": 0, + "outside": "clip", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(b)", + "table_range": [ + -32768, + 32767 + ] + }, + "image_bound_exact": 32753, + "table_max_abs": 32753, + "S_edge_used_in_ledger": 32753, + "ledger_at_exact_image_descriptive": { + "S": 32753, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.271076, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.016809, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.000704, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.000704, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 51.086841, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 60.271076, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011271, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.005622, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 38.169338, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 4, + "at_gw": 5443, + "err_there": -4, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 229390, + "at_gw": 262143, + "err_there": -229390, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 8355854, + "at_gw": 8388607, + "err_there": -8355854, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 11, + "at_gw": -262145, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8355854, + "at_gw": 8388607, + "err_there": -8355854, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 8355854, + "at_gw": 8388607, + "err_there": -8355854, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32768, + "b": 32767, + "max_abs_err": 4, + "at_gw": 5443, + "err_there": -4, + "decided_by": "enumeration" + }, + "above": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8355854, + "at_gw": 8388607, + "err_there": -8355854, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 1, + "min": -4 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": -48941, + "count": 65536, + "mean_exact": "-48941/65536", + "mean_display": "-0.7467" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": -49030, + "count": 32768, + "mean_exact": "-24515/16384", + "mean_display": "-1.4962" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 32753, + "T": 236631, + "err": -203878 + }, + { + "gw": -236631, + "s": -11, + "T": 0, + "err": -11 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486914, + "log2": 23.016809, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 309111783438, + "log2": 38.169338, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 19626720025060048895, + "log2": 64.089453, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041340, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 65506, + "log2": 15.999339, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486914, + "log2": 23.016809, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 281612273086609, + "log2": 48.000704, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 281612306641039, + "log2": 48.000704, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 2391506509856782, + "log2": 51.086841, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 1391239138086950197, + "log2": 60.271076, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18155683354509311, + "log2": 54.011271, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 34493890560, + "log2": 35.005622, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007267034628095, + "log2": 53.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 309111783438, + "log2": 38.169338, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041340, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 65506, + "log2": 15.999339, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.271076, + "failing": [], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 26, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 309111787534, + "log2": 38.169338, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^26, 2^26))", + "bound": 549629956110, + "log2": 38.99967, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^26, 2^26))", + "bound": 40813871623045119, + "log2": 55.179909, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^26 - limbs (3 key12)", + "bound": 68853694463, + "log2": 36.002815, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "clip", + "threshold": { + "item1_high_side_max_le_32": false, + "high_side_max": 8355854, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "no selector (clip)" + } + }, + { + "candidate": { + "name": "b10m", + "H": 32768, + "w": 4, + "rows": 16384, + "index": "mid", + "offset": 2, + "outside": "clip", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(b)", + "table_range": [ + -32770, + 32765 + ] + }, + "image_bound_exact": 32753, + "table_max_abs": 32753, + "S_edge_used_in_ledger": 32753, + "ledger_at_exact_image_descriptive": { + "S": 32753, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.271076, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.016809, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.000704, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.000704, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 51.086841, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 60.271076, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011271, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.005622, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 38.169338, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 3, + "at_gw": 5294, + "err_there": 3, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 229390, + "at_gw": 262143, + "err_there": -229390, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 8355854, + "at_gw": 8388607, + "err_there": -8355854, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 11, + "at_gw": -262145, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8355854, + "at_gw": 8388607, + "err_there": -8355854, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 8355854, + "at_gw": 8388607, + "err_there": -8355854, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32770, + "b": 32765, + "max_abs_err": 3, + "at_gw": 5294, + "err_there": 3, + "decided_by": "enumeration" + }, + "above": { + "a": 32766, + "b": 8388607, + "max_abs_err": 8355854, + "at_gw": 8388607, + "err_there": -8355854, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -32771, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 3, + "min": -3 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": 16587, + "count": 65536, + "mean_exact": "16587/65536", + "mean_display": "0.2530" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": 16476, + "count": 32768, + "mean_exact": "4119/8192", + "mean_display": "0.5028" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 32753, + "T": 236631, + "err": -203878 + }, + { + "gw": -236631, + "s": -11, + "T": 0, + "err": -11 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486914, + "log2": 23.016809, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 309111783438, + "log2": 38.169338, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 19626720025060048895, + "log2": 64.089453, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041342, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 65506, + "log2": 15.999339, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486914, + "log2": 23.016809, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 281612273086609, + "log2": 48.000704, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 281612306641039, + "log2": 48.000704, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 2391506509856782, + "log2": 51.086841, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 1391239138086950197, + "log2": 60.271076, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18155683354509311, + "log2": 54.011271, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 34493890560, + "log2": 35.005622, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007267034628095, + "log2": 53.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 309111783438, + "log2": 38.169338, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041342, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 65506, + "log2": 15.999339, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.271076, + "failing": [], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 26, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 309111787534, + "log2": 38.169338, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^26, 2^26))", + "bound": 549629956110, + "log2": 38.99967, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^26, 2^26))", + "bound": 40813871623045119, + "log2": 55.179909, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^26 - limbs (3 key12)", + "bound": 68853694463, + "log2": 36.002815, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "clip", + "threshold": { + "item1_high_side_max_le_32": false, + "high_side_max": 8355854, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "no selector (clip)" + } + }, + { + "candidate": { + "name": "b12", + "H": 32768, + "w": 1, + "rows": 65536, + "index": "floor", + "offset": 0, + "outside": "clip", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(b), limit case", + "table_range": [ + -32768, + 32767 + ] + }, + "image_bound_exact": 32756, + "table_max_abs": 32756, + "S_edge_used_in_ledger": 32756, + "ledger_at_exact_image_descriptive": { + "S": 32756, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.271154, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.016808, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.000704, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.000704, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 51.086966, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 60.271154, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011271, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.005622, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 38.169455, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 0, + "at_gw": 0, + "err_there": 0, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 229387, + "at_gw": 262143, + "err_there": -229387, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 8355851, + "at_gw": 8388607, + "err_there": -8355851, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 11, + "at_gw": -262145, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8355851, + "at_gw": 8388607, + "err_there": -8355851, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 8355851, + "at_gw": 8388607, + "err_there": -8355851, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32768, + "b": 32767, + "max_abs_err": 0, + "at_gw": 0, + "err_there": 0, + "decided_by": "enumeration" + }, + "above": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8355851, + "at_gw": 8388607, + "err_there": -8355851, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 0, + "min": 0 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": 0, + "count": 65536, + "mean_exact": "0/1", + "mean_display": "0.0000" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": 0, + "count": 32768, + "mean_exact": "0/1", + "mean_display": "0.0000" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 32756, + "T": 236631, + "err": -203875 + }, + { + "gw": -236631, + "s": -11, + "T": 0, + "err": -11 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486911, + "log2": 23.016808, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 309136949259, + "log2": 38.169455, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 19628514427822669823, + "log2": 64.089585, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041340, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 65512, + "log2": 15.999472, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486911, + "log2": 23.016808, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 281612298242065, + "log2": 48.000704, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 281612331796495, + "log2": 48.000704, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 2391712668286987, + "log2": 51.086966, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 1391313767438684407, + "log2": 60.271154, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18155683404840959, + "log2": 54.011271, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 34493902848, + "log2": 35.005622, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007267034640383, + "log2": 53.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 309136949259, + "log2": 38.169455, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041340, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 65512, + "log2": 15.999472, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.271154, + "failing": [], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 26, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 309136953355, + "log2": 38.169455, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^26, 2^26))", + "bound": 549655121931, + "log2": 38.999736, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^26, 2^26))", + "bound": 40813871623045119, + "log2": 55.179909, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^26 - limbs (3 key12)", + "bound": 68853694463, + "log2": 36.002815, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "clip", + "threshold": { + "item1_high_side_max_le_32": false, + "high_side_max": 8355851, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "no selector (clip)" + } + }, + { + "candidate": { + "name": "c16f", + "H": 65536, + "w": 16, + "rows": 8192, + "index": "floor", + "offset": 0, + "outside": "clip", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(c)", + "table_range": [ + -65536, + 65535 + ] + }, + "image_bound_exact": 65520, + "table_max_abs": 65520, + "S_edge_used_in_ledger": 65520, + "ledger_at_exact_image_descriptive": { + "S": 65520, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.936378, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.033425, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.002814, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.002814, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 52.044053, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 60.936378, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011314, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.011224, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 39.087131, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 196623, + "at_gw": 262143, + "err_there": -196623, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 8323087, + "at_gw": 8388607, + "err_there": -8323087, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 1, + "at_gw": -32977, + "err_there": 1, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 0, + "at_gw": -262145, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8323087, + "at_gw": 8388607, + "err_there": -8323087, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 8323087, + "at_gw": 8388607, + "err_there": -8323087, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -65536, + "b": 65535, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration" + }, + "above": { + "a": 65536, + "b": 8388607, + "max_abs_err": 8323087, + "at_gw": 8388607, + "err_there": -8323087, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -65537, + "max_abs_err": 0, + "at_gw": -65537, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 2, + "min": -17 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": -245361, + "count": 65536, + "mean_exact": "-245361/65536", + "mean_display": "-3.7439" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": -245478, + "count": 32768, + "mean_exact": "-122739/16384", + "mean_display": "-7.4913" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 65520, + "T": 236631, + "err": -171111 + }, + { + "gw": -236631, + "s": 0, + "T": 0, + "err": 0 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8585230, + "log2": 23.033425, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 583981269007, + "log2": 39.087131, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 39225785132660031487, + "log2": 65.088436, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42139644, + "log2": 25.328675, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 8796042166275, + "log2": 42.999992, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 131040, + "log2": 16.999648, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8585230, + "log2": 23.033425, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 282024447344657, + "log2": 48.002814, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 282024480899087, + "log2": 48.002814, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 4643237604032527, + "log2": 52.044053, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 2206365794178569887, + "log2": 60.936378, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18156233093545983, + "log2": 54.011314, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 34628104192, + "log2": 35.011224, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007267168841727, + "log2": 53.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 583981269007, + "log2": 39.087131, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42139644, + "log2": 25.328675, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 8796042166275, + "log2": 42.999992, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 131040, + "log2": 16.999648, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.936378, + "failing": [], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 27, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 583981273103, + "log2": 39.087131, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^27, 2^27))", + "bound": 1099377348623, + "log2": 39.999824, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^27, 2^27))", + "bound": 45598946227126271, + "log2": 55.33985, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^27 - limbs (3 key12)", + "bound": 68987912191, + "log2": 36.005625, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "clip", + "threshold": { + "item1_high_side_max_le_32": false, + "high_side_max": 8323087, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "no selector (clip)" + } + }, + { + "candidate": { + "name": "c16m", + "H": 65536, + "w": 16, + "rows": 8192, + "index": "mid", + "offset": 8, + "outside": "clip", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(c)", + "table_range": [ + -65544, + 65527 + ] + }, + "image_bound_exact": 65520, + "table_max_abs": 65520, + "S_edge_used_in_ledger": 65520, + "ledger_at_exact_image_descriptive": { + "S": 65520, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.936378, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.033425, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.002814, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.002814, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 52.044053, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 60.936378, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011314, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.011224, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 39.087131, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 196623, + "at_gw": 262143, + "err_there": -196623, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 8323087, + "at_gw": 8388607, + "err_there": -8323087, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 1, + "at_gw": -32981, + "err_there": -1, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 0, + "at_gw": -262145, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8323087, + "at_gw": 8388607, + "err_there": -8323087, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 8323087, + "at_gw": 8388607, + "err_there": -8323087, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -65544, + "b": 65527, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration" + }, + "above": { + "a": 65528, + "b": 8388607, + "max_abs_err": 8323087, + "at_gw": 8388607, + "err_there": -8323087, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -65545, + "max_abs_err": 0, + "at_gw": -65545, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 9, + "min": -8 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": 16783, + "count": 65536, + "mean_exact": "16783/65536", + "mean_display": "0.2560" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": 16578, + "count": 32768, + "mean_exact": "8289/16384", + "mean_display": "0.5059" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 65520, + "T": 236631, + "err": -171111 + }, + { + "gw": -236631, + "s": 0, + "T": 0, + "err": 0 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8585230, + "log2": 23.033425, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 583981269007, + "log2": 39.087131, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 39225785132660031487, + "log2": 65.088436, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42139652, + "log2": 25.328675, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 8796042166275, + "log2": 42.999992, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 131040, + "log2": 16.999648, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8585230, + "log2": 23.033425, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 282024447344657, + "log2": 48.002814, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 282024480899087, + "log2": 48.002814, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 4643237604032527, + "log2": 52.044053, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 2206365794178569887, + "log2": 60.936378, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18156233093545983, + "log2": 54.011314, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 34628104192, + "log2": 35.011224, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007267168841727, + "log2": 53.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 583981269007, + "log2": 39.087131, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42139652, + "log2": 25.328675, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 8796042166275, + "log2": 42.999992, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 131040, + "log2": 16.999648, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 60.936378, + "failing": [], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 27, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 583981273103, + "log2": 39.087131, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^27, 2^27))", + "bound": 1099377348623, + "log2": 39.999824, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^27, 2^27))", + "bound": 45598946227126271, + "log2": 55.33985, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^27 - limbs (3 key12)", + "bound": 68987912191, + "log2": 36.005625, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "clip", + "threshold": { + "item1_high_side_max_le_32": false, + "high_side_max": 8323087, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "no selector (clip)" + } + }, + { + "candidate": { + "name": "c32f", + "H": 131072, + "w": 16, + "rows": 16384, + "index": "floor", + "offset": 0, + "outside": "clip", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(c)", + "table_range": [ + -131072, + 131071 + ] + }, + "image_bound_exact": 131056, + "table_max_abs": 131056, + "S_edge_used_in_ledger": 131056, + "ledger_at_exact_image_descriptive": { + "S": 131056, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 61.73456, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.066091, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.011224, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.011225, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 53.022194, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 61.73456, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011402, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.022365, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 40.044223, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 131087, + "at_gw": 262143, + "err_there": -131087, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 8257551, + "at_gw": 8388607, + "err_there": -8257551, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 1, + "at_gw": -32977, + "err_there": 1, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 0, + "at_gw": -262145, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8257551, + "at_gw": 8388607, + "err_there": -8257551, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 8257551, + "at_gw": 8388607, + "err_there": -8257551, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -131072, + "b": 131071, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration" + }, + "above": { + "a": 131072, + "b": 8388607, + "max_abs_err": 8257551, + "at_gw": 8388607, + "err_there": -8257551, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -131073, + "max_abs_err": 0, + "at_gw": -131073, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 2, + "min": -17 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": -245361, + "count": 65536, + "mean_exact": "-245361/65536", + "mean_display": "-3.7439" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": -245478, + "count": 32768, + "mean_exact": "-122739/16384", + "mean_display": "-7.4913" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 131056, + "T": 236631, + "err": -105575 + }, + { + "gw": -236631, + "s": 0, + "T": 0, + "err": 0 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8781838, + "log2": 23.066091, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 1133737017359, + "log2": 40.044223, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 78425111616368410623, + "log2": 66.087949, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42336252, + "log2": 25.33539, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 17592134664195, + "log2": 43.999996, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 262112, + "log2": 17.999824, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8781838, + "log2": 23.066091, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 283673446350865, + "log2": 48.011224, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 283673479905295, + "log2": 48.011225, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 9146837231337487, + "log2": 53.022194, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 3836668859262965407, + "log2": 61.73456, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18157332605173759, + "log2": 54.011402, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 34896539648, + "log2": 35.022365, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007267437277183, + "log2": 53.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 1133737017359, + "log2": 40.044223, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42336252, + "log2": 25.33539, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 17592134664195, + "log2": 43.999996, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 262112, + "log2": 17.999824, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 61.73456, + "failing": [], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 28, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 1133737021455, + "log2": 40.044223, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^28, 2^28))", + "bound": 2198888910863, + "log2": 40.999912, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^28, 2^28))", + "bound": 55169095435288575, + "log2": 55.61471, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^28 - limbs (3 key12)", + "bound": 69256347647, + "log2": 36.011227, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "clip", + "threshold": { + "item1_high_side_max_le_32": false, + "high_side_max": 8257551, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "no selector (clip)" + } + }, + { + "candidate": { + "name": "c32m", + "H": 131072, + "w": 16, + "rows": 16384, + "index": "mid", + "offset": 8, + "outside": "clip", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(c)", + "table_range": [ + -131080, + 131063 + ] + }, + "image_bound_exact": 131056, + "table_max_abs": 131056, + "S_edge_used_in_ledger": 131056, + "ledger_at_exact_image_descriptive": { + "S": 131056, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 61.73456, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.066091, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.011224, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.011225, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 53.022194, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 61.73456, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011402, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.022365, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 40.044223, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 131087, + "at_gw": 262143, + "err_there": -131087, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 8257551, + "at_gw": 8388607, + "err_there": -8257551, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 1, + "at_gw": -32981, + "err_there": -1, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 0, + "at_gw": -262145, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8257551, + "at_gw": 8388607, + "err_there": -8257551, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 8257551, + "at_gw": 8388607, + "err_there": -8257551, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -131080, + "b": 131063, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration" + }, + "above": { + "a": 131064, + "b": 8388607, + "max_abs_err": 8257551, + "at_gw": 8388607, + "err_there": -8257551, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -131081, + "max_abs_err": 0, + "at_gw": -131081, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 9, + "min": -8 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": 16783, + "count": 65536, + "mean_exact": "16783/65536", + "mean_display": "0.2560" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": 16578, + "count": 32768, + "mean_exact": "8289/16384", + "mean_display": "0.5059" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 131056, + "T": 236631, + "err": -105575 + }, + { + "gw": -236631, + "s": 0, + "T": 0, + "err": 0 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8781838, + "log2": 23.066091, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 1133737017359, + "log2": 40.044223, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 78425111616368410623, + "log2": 66.087949, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42336260, + "log2": 25.33539, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 17592134664195, + "log2": 43.999996, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 262112, + "log2": 17.999824, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8781838, + "log2": 23.066091, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 283673446350865, + "log2": 48.011224, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 283673479905295, + "log2": 48.011225, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 9146837231337487, + "log2": 53.022194, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 3836668859262965407, + "log2": 61.73456, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18157332605173759, + "log2": 54.011402, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 34896539648, + "log2": 35.022365, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007267437277183, + "log2": 53.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 1133737017359, + "log2": 40.044223, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42336260, + "log2": 25.33539, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 17592134664195, + "log2": 43.999996, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 262112, + "log2": 17.999824, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 61.73456, + "failing": [], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 28, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 1133737021455, + "log2": 40.044223, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^28, 2^28))", + "bound": 2198888910863, + "log2": 40.999912, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^28, 2^28))", + "bound": 55169095435288575, + "log2": 55.61471, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^28 - limbs (3 key12)", + "bound": 69256347647, + "log2": 36.011227, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "clip", + "threshold": { + "item1_high_side_max_le_32": false, + "high_side_max": 8257551, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "no selector (clip)" + } + }, + { + "candidate": { + "name": "c64f", + "H": 262144, + "w": 16, + "rows": 32768, + "index": "floor", + "offset": 0, + "outside": "clip", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(c)", + "table_range": [ + -262144, + 262143 + ] + }, + "image_bound_exact": 262128, + "table_max_abs": 262128, + "S_edge_used_in_ledger": 262128, + "ledger_at_exact_image_descriptive": { + "S": 262128, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 62.621971, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.129285, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.044389, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.044389, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 54.01114, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 62.621971, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011577, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.044391, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 41.022281, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 16, + "at_gw": 32991, + "err_there": -16, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 8126479, + "at_gw": 8388607, + "err_there": -8126479, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 1, + "at_gw": -32977, + "err_there": 1, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 0, + "at_gw": -262145, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8126479, + "at_gw": 8388607, + "err_there": -8126479, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 8126479, + "at_gw": 8388607, + "err_there": -8126479, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -262144, + "b": 262143, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration" + }, + "above": { + "a": 262144, + "b": 8388607, + "max_abs_err": 8126479, + "at_gw": 8388607, + "err_there": -8126479, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -262145, + "max_abs_err": 0, + "at_gw": -262145, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 2, + "min": -17 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": -245361, + "count": 65536, + "mean_exact": "-245361/65536", + "mean_display": "-3.7439" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": -245478, + "count": 32768, + "mean_exact": "-122739/16384", + "mean_display": "-7.4913" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 236624, + "T": 236631, + "err": -7 + }, + { + "gw": -236631, + "s": 0, + "T": 0, + "err": 0 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 9175054, + "log2": 23.129285, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 2233248514063, + "log2": 41.022281, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 156823764583785168895, + "log2": 67.087706, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42729468, + "log2": 25.348728, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 35184319660035, + "log2": 44.999998, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 524256, + "log2": 18.999912, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 9175054, + "log2": 23.129285, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 290269979246609, + "log2": 48.044389, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 290270012801039, + "log2": 48.044389, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 18154036485947407, + "log2": 54.01114, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 7097274989431756447, + "log2": 62.621971, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18159531628429311, + "log2": 54.011577, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 35433410560, + "log2": 35.044391, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007267974148095, + "log2": 53.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 2233248514063, + "log2": 41.022281, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42729468, + "log2": 25.348728, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 35184319660035, + "log2": 44.999998, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 524256, + "log2": 18.999912, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 62.621971, + "failing": [], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 29, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 2233248518159, + "log2": 41.022281, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^29, 2^29))", + "bound": 4397912035343, + "log2": 41.999956, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^29, 2^29))", + "bound": 74309393851613183, + "log2": 56.044394, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^29 - limbs (3 key12)", + "bound": 69793218559, + "log2": 36.022368, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "clip", + "threshold": { + "item1_high_side_max_le_32": false, + "high_side_max": 8126479, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "no selector (clip)" + } + }, + { + "candidate": { + "name": "c64m", + "H": 262144, + "w": 16, + "rows": 32768, + "index": "mid", + "offset": 8, + "outside": "clip", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(c)", + "table_range": [ + -262152, + 262135 + ] + }, + "image_bound_exact": 262128, + "table_max_abs": 262128, + "S_edge_used_in_ledger": 262128, + "ledger_at_exact_image_descriptive": { + "S": 262128, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 62.621971, + "failing": [], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.129285, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 48.044389, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 48.044389, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 54.01114, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 62.621971, + "below_2_63": true + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.011577, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.044391, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000011, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 41.022281, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 15, + "at_gw": 262143, + "err_there": -15, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 8126479, + "at_gw": 8388607, + "err_there": -8126479, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 1, + "at_gw": -32981, + "err_there": -1, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 0, + "at_gw": -262145, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 8126479, + "at_gw": 8388607, + "err_there": -8126479, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 8126479, + "at_gw": 8388607, + "err_there": -8126479, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -262152, + "b": 262135, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration" + }, + "above": { + "a": 262136, + "b": 8388607, + "max_abs_err": 8126479, + "at_gw": 8388607, + "err_there": -8126479, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -262153, + "max_abs_err": 0, + "at_gw": -262153, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 9, + "min": -8 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": 16783, + "count": 65536, + "mean_exact": "16783/65536", + "mean_display": "0.2560" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": 16578, + "count": 32768, + "mean_exact": "8289/16384", + "mean_display": "0.5059" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 236624, + "T": 236631, + "err": -7 + }, + { + "gw": -236631, + "s": 0, + "T": 0, + "err": 0 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 9175054, + "log2": 23.129285, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 2233248514063, + "log2": 41.022281, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 156823764583785168895, + "log2": 67.087706, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42729476, + "log2": 25.348728, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 35184319660035, + "log2": 44.999998, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 524256, + "log2": 18.999912, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 9175054, + "log2": 23.129285, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 290269979246609, + "log2": 48.044389, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 290270012801039, + "log2": 48.044389, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 18154036485947407, + "log2": 54.01114, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 7097274989431756447, + "log2": 62.621971, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18159531628429311, + "log2": 54.011577, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 35433410560, + "log2": 35.044391, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007267974148095, + "log2": 53.000011, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 2233248514063, + "log2": 41.022281, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42729476, + "log2": 25.348728, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 35184319660035, + "log2": 44.999998, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (clip): s - y", + "bound": 524256, + "log2": 18.999912, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 62.621971, + "failing": [], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 29, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 2233248518159, + "log2": 41.022281, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^29, 2^29))", + "bound": 4397912035343, + "log2": 41.999956, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^29, 2^29))", + "bound": 74309393851613183, + "log2": 56.044394, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^29 - limbs (3 key12)", + "bound": 69793218559, + "log2": 36.022368, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "clip", + "threshold": { + "item1_high_side_max_le_32": false, + "high_side_max": 8126479, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "no selector (clip)" + } + }, + { + "candidate": { + "name": "d0", + "H": 32768, + "w": 16, + "rows": 4096, + "index": "floor", + "offset": 0, + "outside": "branch", + "C": 0, + "Khi": 26, + "Klo": 11, + "item": "(d)", + "table_range": [ + -32768, + 32767 + ] + }, + "image_bound_exact": 8388607, + "table_max_abs": 32741, + "S_edge_used_in_ledger": 16809994, + "ledger_at_exact_image_descriptive": { + "S": 8388607, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 67.503826, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.016811, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 53.044394, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 53.044394, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 59.000352, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 67.503826, + "below_2_63": false + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.022368, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 36.0, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000016, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 46.000704, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 11, + "at_gw": 32768, + "err_there": 11, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 0, + "at_gw": 262144, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 11, + "at_gw": -32769, + "err_there": 11, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 0, + "at_gw": -262145, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 11, + "at_gw": 32768, + "err_there": 11, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32768, + "b": 32767, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration" + }, + "above": { + "a": 32768, + "b": 8388607, + "max_abs_err": 11, + "at_gw": 32768, + "err_there": 11, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -32769, + "max_abs_err": 11, + "at_gw": -32769, + "err_there": 11, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 2, + "min": -17 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": -245361, + "count": 65536, + "mean_exact": "-245361/65536", + "mean_display": "-3.7439" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": -245478, + "count": 32768, + "mean_exact": "-122739/16384", + "mean_display": "-7.4913" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 236631, + "T": 236631, + "err": 0 + }, + { + "gw": -236631, + "s": 0, + "T": 0, + "err": 0 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486926, + "log2": 23.016811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 141046793076725, + "log2": 47.003167, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 10054669253210760282111, + "log2": 73.090284, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041342, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (branch): (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n", + "bound": 4398063288320, + "log2": 42.000006, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "bit class: 1 - b - key", + "bound": 4097, + "log2": 12.000352, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R5 (branch): s - y - p - Khi bh - Klo bl", + "bound": 33619988, + "log2": 25.002816, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486926, + "log2": 23.016811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 36451189939778065, + "log2": 55.016815, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 36451189973332495, + "log2": 55.016815, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 1155314729086844917, + "log2": 60.002992, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 418749445710956655067, + "log2": 68.504649, + "below_2_63": false, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18437158750650367, + "log2": 54.033466, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 103213469696, + "log2": 36.58684, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007335754207231, + "log2": 53.000022, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 141046793076725, + "log2": 47.003167, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041342, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (branch): (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n", + "bound": 4398063288320, + "log2": 42.000006, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "bit class: 1 - b - key", + "bound": 4097, + "log2": 12.000352, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R5 (branch): s - y - p - Khi bh - Klo bl", + "bound": 33619988, + "log2": 25.002816, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "verdict": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 68.504649, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 36, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 141046793080821, + "log2": 47.003167, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^36, 2^36))", + "bound": 422487410053109, + "log2": 48.585902, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^36, 2^36))", + "bound": 4935945191598063615, + "log2": 62.098032, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^36 - limbs (4 key12)", + "bound": 281612415664127, + "log2": 48.000704, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 6 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "branch", + "threshold": { + "item1_high_side_max_le_32": true, + "high_side_max": 11, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "by the argument in RESULTS.md, U6 and the relation cases" + } + }, + { + "candidate": { + "name": "d1", + "H": 32768, + "w": 16, + "rows": 4096, + "index": "floor", + "offset": 0, + "outside": "branch", + "C": -11, + "Khi": 26, + "Klo": 0, + "item": "(d)", + "table_range": [ + -32768, + 32767 + ] + }, + "image_bound_exact": 8388607, + "table_max_abs": 32741, + "S_edge_used_in_ledger": 16809983, + "ledger_at_exact_image_descriptive": { + "S": 8388607, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 67.503826, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.016811, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 53.044394, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 53.044394, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 59.000352, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 67.503826, + "below_2_63": false + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.022368, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 36.0, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000016, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 46.000704, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 11, + "at_gw": 32768, + "err_there": 11, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 0, + "at_gw": 262144, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 11, + "at_gw": -262145, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 11, + "at_gw": 32768, + "err_there": 11, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32768, + "b": 32767, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration" + }, + "above": { + "a": 32768, + "b": 8388607, + "max_abs_err": 11, + "at_gw": 32768, + "err_there": 11, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 2, + "min": -17 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": -245361, + "count": 65536, + "mean_exact": "-245361/65536", + "mean_display": "-3.7439" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": -245478, + "count": 32768, + "mean_exact": "-122739/16384", + "mean_display": "-7.4913" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 236631, + "T": 236631, + "err": 0 + }, + { + "gw": -236631, + "s": -11, + "T": 0, + "err": -11 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486926, + "log2": 23.016811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 141046700802048, + "log2": 47.003166, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 10054662673733964005375, + "log2": 73.090283, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041342, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (branch): (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n", + "bound": 4398063288320, + "log2": 42.000006, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "bit class: 1 - b - key", + "bound": 4097, + "log2": 12.000352, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R5 (branch): s - y - p - Khi bh - Klo bl", + "bound": 33619966, + "log2": 25.002815, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486926, + "log2": 23.016811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 36451142602850449, + "log2": 55.016814, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 36451142636404879, + "log2": 55.016814, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 1155313973172600832, + "log2": 60.002991, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 418749172070000296297, + "log2": 68.504648, + "below_2_63": false, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18437158566100991, + "log2": 54.033466, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 103213424640, + "log2": 36.58684, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007335754162175, + "log2": 53.000022, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 141046700802048, + "log2": 47.003166, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041342, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (branch): (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n", + "bound": 4398063288320, + "log2": 42.000006, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "bit class: 1 - b - key", + "bound": 4097, + "log2": 12.000352, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R5 (branch): s - y - p - Khi bh - Klo bl", + "bound": 33619966, + "log2": 25.002815, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "verdict": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 68.504648, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 36, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 141046700806144, + "log2": 47.003166, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^36, 2^36))", + "bound": 422487317778432, + "log2": 48.585901, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^36, 2^36))", + "bound": 4935945191598063615, + "log2": 62.098032, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^36 - limbs (4 key12)", + "bound": 281612415664127, + "log2": 48.000704, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 6 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "branch", + "threshold": { + "item1_high_side_max_le_32": true, + "high_side_max": 11, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "by the argument in RESULTS.md, U6 and the relation cases" + } + }, + { + "candidate": { + "name": "e1", + "H": 32768, + "w": 16, + "rows": 4096, + "index": "mid", + "offset": 8, + "outside": "branch", + "C": 0, + "Khi": 18, + "Klo": 11, + "item": "(e) = a + d", + "table_range": [ + -32776, + 32759 + ] + }, + "image_bound_exact": 8388607, + "table_max_abs": 32741, + "S_edge_used_in_ledger": 16809986, + "ledger_at_exact_image_descriptive": { + "S": 8388607, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 67.503826, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.016811, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 53.044394, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 53.044394, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 59.000352, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 67.503826, + "below_2_63": false + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.022368, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 36.0, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000016, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 46.000704, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 11, + "at_gw": 32760, + "err_there": 11, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 11, + "at_gw": 32768, + "err_there": 11, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 0, + "at_gw": 262144, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 11, + "at_gw": -32777, + "err_there": 11, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 0, + "at_gw": -262145, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 11, + "at_gw": 32768, + "err_there": 11, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 11, + "at_gw": 32760, + "err_there": 11, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32776, + "b": 32759, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration" + }, + "above": { + "a": 32760, + "b": 8388607, + "max_abs_err": 11, + "at_gw": 32760, + "err_there": 11, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -32777, + "max_abs_err": 11, + "at_gw": -32777, + "err_there": 11, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 11, + "min": -8 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": 16835, + "count": 65536, + "mean_exact": "16835/65536", + "mean_display": "0.2568" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": 16630, + "count": 32768, + "mean_exact": "8315/16384", + "mean_display": "0.5075" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 236631, + "T": 236631, + "err": 0 + }, + { + "gw": -236631, + "s": 0, + "T": 0, + "err": 0 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486926, + "log2": 23.016811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 141046725967869, + "log2": 47.003167, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 10054664468136726626303, + "log2": 73.090283, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041350, + "log2": 25.325306, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (branch): (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n", + "bound": 4398063288320, + "log2": 42.000006, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "bit class: 1 - b - key", + "bound": 4097, + "log2": 12.000352, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R5 (branch): s - y - p - Khi bh - Klo bl", + "bound": 33619972, + "log2": 25.002815, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486926, + "log2": 23.016811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 36451155512918545, + "log2": 55.016814, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 36451155546472975, + "log2": 55.016814, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 1155314179331031037, + "log2": 60.002991, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 418749246699352030507, + "log2": 68.504648, + "below_2_63": false, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18437158616432639, + "log2": 54.033466, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 103213436928, + "log2": 36.58684, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007335754174463, + "log2": 53.000022, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 141046725967869, + "log2": 47.003167, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041350, + "log2": 25.325306, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (branch): (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n", + "bound": 4398063288320, + "log2": 42.000006, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "bit class: 1 - b - key", + "bound": 4097, + "log2": 12.000352, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R5 (branch): s - y - p - Khi bh - Klo bl", + "bound": 33619972, + "log2": 25.002815, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "verdict": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 68.504648, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 36, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 141046725971965, + "log2": 47.003167, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^36, 2^36))", + "bound": 422487342944253, + "log2": 48.585901, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^36, 2^36))", + "bound": 4935945191598063615, + "log2": 62.098032, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^36 - limbs (4 key12)", + "bound": 281612415664127, + "log2": 48.000704, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 6 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "branch", + "threshold": { + "item1_high_side_max_le_32": true, + "high_side_max": 11, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "by the argument in RESULTS.md, U6 and the relation cases" + } + }, + { + "candidate": { + "name": "e2", + "H": 65536, + "w": 16, + "rows": 8192, + "index": "mid", + "offset": 8, + "outside": "branch", + "C": 0, + "Khi": 7, + "Klo": 0, + "item": "(e) = a + c + d", + "table_range": [ + -65544, + 65527 + ] + }, + "image_bound_exact": 8388607, + "table_max_abs": 65520, + "S_edge_used_in_ledger": 16842743, + "ledger_at_exact_image_descriptive": { + "S": 8388607, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 67.503826, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.033425, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 53.044394, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 53.044394, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 59.000352, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 67.503826, + "below_2_63": false + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.022368, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 36.0, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000016, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 46.000704, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 9, + "at_gw": 33448, + "err_there": 9, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 0, + "at_gw": 262144, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 1, + "at_gw": -32981, + "err_there": -1, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 0, + "at_gw": -262145, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 9, + "at_gw": 33448, + "err_there": 9, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -65544, + "b": 65527, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration" + }, + "above": { + "a": 65528, + "b": 8388607, + "max_abs_err": 0, + "at_gw": 65528, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -65545, + "max_abs_err": 0, + "at_gw": -65545, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 9, + "min": -8 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": 16783, + "count": 65536, + "mean_exact": "16783/65536", + "mean_display": "0.2560" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": 16578, + "count": 32768, + "mean_exact": "8289/16384", + "mean_display": "0.5059" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 236631, + "T": 236631, + "err": 0 + }, + { + "gw": -236631, + "s": 0, + "T": 0, + "err": 0 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8585230, + "log2": 23.033425, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 141321511567368, + "log2": 47.005974, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 10074257551901784539135, + "log2": 73.093092, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42139654, + "log2": 25.328675, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (branch): (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n", + "bound": 8796109799424, + "log2": 43.000003, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "bit class: 1 - b - key", + "bound": 4097, + "log2": 12.000352, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R5 (branch): s - y - p - Khi bh - Klo bl", + "bound": 33685486, + "log2": 25.005624, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8585230, + "log2": 23.033425, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 36592257905731729, + "log2": 55.022388, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 36592257939286159, + "log2": 55.022388, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 1157565223230439432, + "log2": 60.005799, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 419564124590937869497, + "log2": 68.507453, + "below_2_63": false, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18437708187697151, + "log2": 54.033509, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 103347609600, + "log2": 36.588714, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007335888347135, + "log2": 53.000022, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 141321511567368, + "log2": 47.005974, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42139654, + "log2": 25.328675, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (branch): (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n", + "bound": 8796109799424, + "log2": 43.000003, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "bit class: 1 - b - key", + "bound": 4097, + "log2": 12.000352, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R5 (branch): s - y - p - Khi bh - Klo bl", + "bound": 33685486, + "log2": 25.005624, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "verdict": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 68.507453, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 36, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 141321511571464, + "log2": 47.005974, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^36, 2^36))", + "bound": 422762128543752, + "log2": 48.586839, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^36, 2^36))", + "bound": 4935945191598063615, + "log2": 62.098032, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^36 - limbs (4 key12)", + "bound": 281612415664127, + "log2": 48.000704, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 6 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "branch", + "threshold": { + "item1_high_side_max_le_32": true, + "high_side_max": 9, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "by the argument in RESULTS.md, U6 and the relation cases" + } + }, + { + "candidate": { + "name": "e3", + "H": 32768, + "w": 4, + "rows": 16384, + "index": "mid", + "offset": 2, + "outside": "branch", + "C": 0, + "Khi": 12, + "Klo": 11, + "item": "(e) = a + b + d", + "table_range": [ + -32770, + 32765 + ] + }, + "image_bound_exact": 8388607, + "table_max_abs": 32753, + "S_edge_used_in_ledger": 16809992, + "ledger_at_exact_image_descriptive": { + "S": 8388607, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 67.503826, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.016809, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 53.044394, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 53.044394, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 59.000352, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 67.503826, + "below_2_63": false + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.022368, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 36.0, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000016, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 46.000704, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 11, + "at_gw": 32766, + "err_there": 11, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 11, + "at_gw": 32768, + "err_there": 11, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 0, + "at_gw": 262144, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 11, + "at_gw": -32771, + "err_there": 11, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 0, + "at_gw": -262145, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 11, + "at_gw": 32768, + "err_there": 11, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 11, + "at_gw": 32766, + "err_there": 11, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32770, + "b": 32765, + "max_abs_err": 3, + "at_gw": 5294, + "err_there": 3, + "decided_by": "enumeration" + }, + "above": { + "a": 32766, + "b": 8388607, + "max_abs_err": 11, + "at_gw": 32766, + "err_there": 11, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -32771, + "max_abs_err": 11, + "at_gw": -32771, + "err_there": 11, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 11, + "min": -2 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": 16614, + "count": 65536, + "mean_exact": "8307/32768", + "mean_display": "0.2535" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": 16503, + "count": 32768, + "mean_exact": "16503/32768", + "mean_display": "0.5036" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 236631, + "T": 236631, + "err": 0 + }, + { + "gw": -236631, + "s": 0, + "T": 0, + "err": 0 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486914, + "log2": 23.016809, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 141046776299511, + "log2": 47.003167, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 10054668056942251868159, + "log2": 73.090284, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041344, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (branch): (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n", + "bound": 4398063288320, + "log2": 42.000006, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "bit class: 1 - b - key", + "bound": 4097, + "log2": 12.000352, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R5 (branch): s - y - p - Khi bh - Klo bl", + "bound": 33619984, + "log2": 25.002816, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486914, + "log2": 23.016809, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 36451181333061649, + "log2": 55.016815, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 36451181366616079, + "log2": 55.016815, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 1155314591647891447, + "log2": 60.002991, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 418749395958055498927, + "log2": 68.504649, + "below_2_63": false, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18437158717095935, + "log2": 54.033466, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 103213461504, + "log2": 36.58684, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007335754199039, + "log2": 53.000022, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 141046776299511, + "log2": 47.003167, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041344, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (branch): (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n", + "bound": 4398063288320, + "log2": 42.000006, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "bit class: 1 - b - key", + "bound": 4097, + "log2": 12.000352, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R5 (branch): s - y - p - Khi bh - Klo bl", + "bound": 33619984, + "log2": 25.002816, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "verdict": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 68.504649, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 36, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 141046776303607, + "log2": 47.003167, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^36, 2^36))", + "bound": 422487393275895, + "log2": 48.585902, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^36, 2^36))", + "bound": 4935945191598063615, + "log2": 62.098032, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^36 - limbs (4 key12)", + "bound": 281612415664127, + "log2": 48.000704, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 6 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "branch", + "threshold": { + "item1_high_side_max_le_32": true, + "high_side_max": 11, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "by the argument in RESULTS.md, U6 and the relation cases" + } + }, + { + "candidate": { + "name": "e4", + "H": 65536, + "w": 4, + "rows": 32768, + "index": "mid", + "offset": 2, + "outside": "branch", + "C": 0, + "Khi": 1, + "Klo": 0, + "item": "(e) = a + b + c + d", + "table_range": [ + -65538, + 65533 + ] + }, + "image_bound_exact": 8388607, + "table_max_abs": 65532, + "S_edge_used_in_ledger": 16842749, + "ledger_at_exact_image_descriptive": { + "S": 8388607, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 67.503826, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.033423, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 53.044394, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 53.044394, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 59.000352, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 67.503826, + "below_2_63": false + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.022368, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 36.0, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000016, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 46.000704, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 3, + "at_gw": 5294, + "err_there": 3, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 3, + "at_gw": 33966, + "err_there": 3, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 0, + "at_gw": 262144, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 1, + "at_gw": -32981, + "err_there": -1, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 0, + "at_gw": -262145, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 3, + "at_gw": 33966, + "err_there": 3, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 3, + "at_gw": 5294, + "err_there": 3, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -65538, + "b": 65533, + "max_abs_err": 3, + "at_gw": 5294, + "err_there": 3, + "decided_by": "enumeration" + }, + "above": { + "a": 65534, + "b": 8388607, + "max_abs_err": 0, + "at_gw": 65534, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -65539, + "max_abs_err": 0, + "at_gw": -65539, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 3, + "min": -2 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": 16595, + "count": 65536, + "mean_exact": "16595/65536", + "mean_display": "0.2532" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": 16484, + "count": 32768, + "mean_exact": "4121/8192", + "mean_display": "0.5030" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 236631, + "T": 236631, + "err": 0 + }, + { + "gw": -236631, + "s": 0, + "T": 0, + "err": 0 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8585218, + "log2": 23.033423, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 141321561899010, + "log2": 47.005975, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 10074261140707309780991, + "log2": 73.093092, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42139648, + "log2": 25.328675, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (branch): (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n", + "bound": 8796109799424, + "log2": 43.000003, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "bit class: 1 - b - key", + "bound": 4097, + "log2": 12.000352, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R5 (branch): s - y - p - Khi bh - Klo bl", + "bound": 33685498, + "log2": 25.005624, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8585218, + "log2": 23.033423, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 36592283776189585, + "log2": 55.022389, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 36592283809744015, + "log2": 55.022389, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 1157565635547299842, + "log2": 60.0058, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 419564273849641337917, + "log2": 68.507454, + "below_2_63": false, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18437708288360447, + "log2": 54.033509, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 103347634176, + "log2": 36.588714, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007335888371711, + "log2": 53.000022, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 141321561899010, + "log2": 47.005975, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42139648, + "log2": 25.328675, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (branch): (cmax - c + 1 - bh) p + (c - cmin + 1 - bl) n", + "bound": 8796109799424, + "log2": 43.000003, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "bit class: 1 - b - key", + "bound": 4097, + "log2": 12.000352, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R5 (branch): s - y - p - Khi bh - Klo bl", + "bound": 33685498, + "log2": 25.005624, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + } + ], + "verdict": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 68.507454, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 36, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 141321561903106, + "log2": 47.005975, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^36, 2^36))", + "bound": 422762178875394, + "log2": 48.58684, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^36, 2^36))", + "bound": 4935945191598063615, + "log2": 62.098032, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^36 - limbs (4 key12)", + "bound": 281612415664127, + "log2": 48.000704, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 6 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "branch", + "threshold": { + "item1_high_side_max_le_32": true, + "high_side_max": 3, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "by the argument in RESULTS.md, U6 and the relation cases" + } + }, + { + "candidate": { + "name": "e5", + "H": 32768, + "w": 16, + "rows": 4096, + "index": "floor", + "offset": 0, + "outside": "excess", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(e), no selector bit", + "table_range": [ + -32768, + 32767 + ] + }, + "image_bound_exact": 8388581, + "table_max_abs": 32741, + "S_edge_used_in_ledger": 16809956, + "ledger_at_exact_image_descriptive": { + "S": 8388581, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 67.503821, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.016811, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 53.044385, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 53.044385, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 59.000348, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 67.503821, + "below_2_63": false + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.022368, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.999998, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000016, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 46.000699, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 26, + "at_gw": 46895, + "err_there": -26, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 26, + "at_gw": 262144, + "err_there": -26, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 11, + "at_gw": -262145, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 26, + "at_gw": 46895, + "err_there": -26, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 26, + "at_gw": 46895, + "err_there": -26, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32768, + "b": 32767, + "max_abs_err": 17, + "at_gw": 7023, + "err_there": -17, + "decided_by": "enumeration" + }, + "above": { + "a": 32768, + "b": 8388607, + "max_abs_err": 26, + "at_gw": 46895, + "err_there": -26, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 2, + "min": -17 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": -245361, + "count": 65536, + "mean_exact": "-245361/65536", + "mean_display": "-3.7439" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": -245478, + "count": 32768, + "mean_exact": "-122739/16384", + "mean_display": "-7.4913" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 236605, + "T": 236631, + "err": -26 + }, + { + "gw": -236631, + "s": -11, + "T": 0, + "err": -11 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486926, + "log2": 23.016811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 141046474309659, + "log2": 47.003164, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 10054646524109100417023, + "log2": 73.09028, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041340, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (excess): s - y - p", + "bound": 33619912, + "log2": 25.002813, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486926, + "log2": 23.016811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 36451026412341265, + "log2": 55.016809, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 36451026445895695, + "log2": 55.016809, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 1155312117746728987, + "log2": 60.002988, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 418748500405834688407, + "log2": 68.504646, + "below_2_63": false, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18437158113116159, + "log2": 54.033466, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 103213314048, + "log2": 36.586838, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007335754051583, + "log2": 53.000022, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 141046474309659, + "log2": 47.003164, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041340, + "log2": 25.325305, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (excess): s - y - p", + "bound": 33619912, + "log2": 25.002813, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + } + ], + "verdict": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 68.504646, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 36, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 141046474313755, + "log2": 47.003164, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^36, 2^36))", + "bound": 422487091286043, + "log2": 48.585901, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^36, 2^36))", + "bound": 4935945191598063615, + "log2": 62.098032, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^36 - limbs (4 key12)", + "bound": 281612415664127, + "log2": 48.000704, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 6 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "excess", + "threshold": { + "item1_high_side_max_le_32": true, + "high_side_max": 26, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "by the argument in RESULTS.md, U6 and the relation cases" + } + }, + { + "candidate": { + "name": "e6", + "H": 32768, + "w": 16, + "rows": 4096, + "index": "mid", + "offset": 8, + "outside": "excess", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(e), no selector bit (Amendment 1)", + "table_range": [ + -32776, + 32759 + ] + }, + "image_bound_exact": 8388589, + "table_max_abs": 32741, + "S_edge_used_in_ledger": 16809956, + "ledger_at_exact_image_descriptive": { + "S": 8388589, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 67.503822, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.016811, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 53.044388, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 53.044388, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 59.000349, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 67.503822, + "below_2_63": false + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.022368, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.999998, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000016, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 46.000701, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 18, + "at_gw": 46895, + "err_there": -18, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 18, + "at_gw": 262144, + "err_there": -18, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 11, + "at_gw": -262145, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 18, + "at_gw": 46895, + "err_there": -18, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 18, + "at_gw": 46895, + "err_there": -18, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -32776, + "b": 32759, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration" + }, + "above": { + "a": 32760, + "b": 8388607, + "max_abs_err": 18, + "at_gw": 46895, + "err_there": -18, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -32777, + "max_abs_err": 11, + "at_gw": -46895, + "err_there": -11, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 9, + "min": -8 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": 16691, + "count": 65536, + "mean_exact": "16691/65536", + "mean_display": "0.2546" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": 16486, + "count": 32768, + "mean_exact": "8243/16384", + "mean_display": "0.5031" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 236613, + "T": 236631, + "err": -18 + }, + { + "gw": -236631, + "s": -11, + "T": 0, + "err": -11 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486926, + "log2": 23.016811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 141046474309659, + "log2": 47.003164, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 10054646524109100417023, + "log2": 73.09028, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041348, + "log2": 25.325306, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (excess): s - y - p", + "bound": 33619912, + "log2": 25.002813, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8486926, + "log2": 23.016811, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 36451026412341265, + "log2": 55.016809, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 36451026445895695, + "log2": 55.016809, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 1155312117746728987, + "log2": 60.002988, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 418748500405834688407, + "log2": 68.504646, + "below_2_63": false, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18437158113116159, + "log2": 54.033466, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 103213314048, + "log2": 36.586838, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007335754051583, + "log2": 53.000022, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 141046474309659, + "log2": 47.003164, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42041348, + "log2": 25.325306, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 4397995917315, + "log2": 41.999983, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (excess): s - y - p", + "bound": 33619912, + "log2": 25.002813, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + } + ], + "verdict": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 68.504646, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 36, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 141046474313755, + "log2": 47.003164, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^36, 2^36))", + "bound": 422487091286043, + "log2": 48.585901, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^36, 2^36))", + "bound": 4935945191598063615, + "log2": 62.098032, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^36 - limbs (4 key12)", + "bound": 281612415664127, + "log2": 48.000704, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 6 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "excess", + "threshold": { + "item1_high_side_max_le_32": true, + "high_side_max": 18, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "by the argument in RESULTS.md, U6 and the relation cases" + } + }, + { + "candidate": { + "name": "e7", + "H": 65536, + "w": 16, + "rows": 8192, + "index": "mid", + "offset": 8, + "outside": "excess", + "C": null, + "Khi": 0, + "Klo": 0, + "item": "(e), no selector bit (Amendment 1)", + "table_range": [ + -65544, + 65527 + ] + }, + "image_bound_exact": 8388600, + "table_max_abs": 65520, + "S_edge_used_in_ledger": 16842735, + "ledger_at_exact_image_descriptive": { + "S": 8388600, + "mlp_use": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + }, + "shared_use": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 67.503824, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + }, + "shared_rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "log2": 23.033425, + "below_2_63": true + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "log2": 53.044391, + "below_2_63": true + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "log2": 53.044391, + "below_2_63": true + }, + { + "relation": "k: x Rc - 2^24 k - r", + "log2": 59.000351, + "below_2_63": true + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "log2": 67.503824, + "below_2_63": false + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "log2": 54.022368, + "below_2_63": true + }, + { + "relation": "recurrence g6 = (v - M) beta", + "log2": 35.999999, + "below_2_63": true + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "log2": 53.000016, + "below_2_63": true + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "log2": 46.000703, + "below_2_63": true + } + ] + }, + "tails_affine": { + "high": true, + "low": true + }, + "windows": { + "[-32768, 32768)": { + "a": -32768, + "b": 32767, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration" + }, + "[32768, 262144)": { + "a": 32768, + "b": 262143, + "max_abs_err": 9, + "at_gw": 33448, + "err_there": 9, + "decided_by": "enumeration" + }, + "[262144, 8388608)": { + "a": 262144, + "b": 8388607, + "max_abs_err": 7, + "at_gw": 262144, + "err_there": -7, + "decided_by": "enumeration + tail ends (proof)" + }, + "[-262144, -32768)": { + "a": -262144, + "b": -32769, + "max_abs_err": 1, + "at_gw": -32981, + "err_there": -1, + "decided_by": "enumeration" + }, + "(-8388608, -262144)": { + "a": -8388607, + "b": -262145, + "max_abs_err": 0, + "at_gw": -262145, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + }, + "[32768, 8388608)": { + "a": 32768, + "b": 8388607, + "max_abs_err": 9, + "at_gw": 33448, + "err_there": 9, + "decided_by": "enumeration + tail ends (proof)" + }, + "whole class": { + "a": -8388607, + "b": 8388607, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration + tail ends (proof) + tail ends (proof)" + } + }, + "own_ranges": { + "table_range": { + "a": -65544, + "b": 65527, + "max_abs_err": 9, + "at_gw": 5288, + "err_there": 9, + "decided_by": "enumeration" + }, + "above": { + "a": 65528, + "b": 8388607, + "max_abs_err": 7, + "at_gw": 65528, + "err_there": -7, + "decided_by": "enumeration + tail ends (proof)" + }, + "below": { + "a": -8388607, + "b": -65545, + "max_abs_err": 0, + "at_gw": -65545, + "err_there": 0, + "decided_by": "enumeration + tail ends (proof)" + } + }, + "signed_extremes_in_domain": { + "max": 9, + "min": -8 + }, + "means": { + "in_domain": { + "a": -32768, + "b": 32767, + "sum": 16783, + "count": 65536, + "mean_exact": "16783/65536", + "mean_display": "0.2560" + }, + "non_negative": { + "a": 0, + "b": 32767, + "sum": 16578, + "count": 32768, + "mean_exact": "8289/16384", + "mean_display": "0.5059" + } + }, + "at_largest_honest_gw": [ + { + "gw": 236631, + "s": 236624, + "T": 236631, + "err": -7 + }, + { + "gw": -236631, + "s": 0, + "T": 0, + "err": 0 + } + ], + "ledger": { + "mlp_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8585230, + "log2": 23.033425, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "M3a-MLP: s u - 2^12 h - r (r2)", + "bound": 141321444458512, + "log2": 47.005974, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "bound": 36626931273170943, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)", + "bound": 10074252766827750883327, + "log2": 73.093091, + "below_2_63": false, + "use": "mlp", + "origin": "copied from bounds.py", + "control": true, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42139652, + "log2": 25.328675, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 8796042166275, + "log2": 42.999992, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (excess): s - y - p", + "bound": 33685470, + "log2": 25.005623, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + } + ], + "verdict": { + "all_below_2_63": true, + "worst_relation": "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "worst_log2": 55.023754, + "failing": [], + "controls_wrap": true + } + }, + "shared_use": { + "rows": [ + { + "relation": "SiLU key: c - step (idx - off) - r", + "bound": 8585230, + "log2": 23.033425, + "below_2_63": true, + "use": "mlp+shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "bound": 36592223411802257, + "log2": 55.022387, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "bound": 36592223445356687, + "log2": 55.022387, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "k: x Rc - 2^24 k - r", + "bound": 1157564673474625552, + "log2": 60.005799, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "q: 362 Rc x - 2^36 q - r", + "bound": 419563925579333244937, + "log2": 68.507453, + "below_2_63": false, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "recurrence: 2^24 (v - M) + r - g5", + "bound": 18437708053479423, + "log2": 54.033509, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "recurrence g6 = (v - M) beta", + "bound": 103347576832, + "log2": 36.588714, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 1 + }, + { + "relation": "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "bound": 9007335888314367, + "log2": 53.000022, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "gated norm: s w - 2^12 t - r", + "bound": 141321444458512, + "log2": 47.005974, + "below_2_63": true, + "use": "shared", + "origin": "copied from bounds.py", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "R1: gw + off - c - p + n", + "bound": 42139652, + "log2": 25.328675, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 5 + }, + { + "relation": "R2 (clip, excess): (cmax - c) p + (c - cmin) n", + "bound": 8796042166275, + "log2": 42.999992, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 2 + }, + { + "relation": "R5 (excess): s - y - p", + "bound": 33685470, + "log2": 25.005623, + "below_2_63": true, + "use": "mlp+shared", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + } + ], + "verdict": { + "all_below_2_63": false, + "worst_relation": "q: 362 Rc x - 2^36 q - r", + "worst_log2": 68.507453, + "failing": [ + "q: 362 Rc x - 2^36 q - r" + ], + "controls_wrap": true + } + }, + "h": { + "bits_needed_for_every_floor_s_u": 36, + "largest_B_with_down_below_2_63": 36, + "rows_h_exact_23_and_needed": [ + { + "relation": "s u - 2^12 h - r (h exact [-2^23, 2^23))", + "bound": 141321444462608, + "log2": 47.005974, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^23, 2^23))", + "bound": 36626931344474111, + "log2": 55.023754, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^23 - limbs (2 key12)", + "bound": 33554431, + "log2": 25.0, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 4 + }, + { + "relation": "s u - 2^12 h - r (h exact [-2^36, 2^36))", + "bound": 422762061434896, + "log2": 48.586839, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "down: sum_j h_j Wd_jk - 2^s out - r (h exact [-2^36, 2^36))", + "bound": 4935945191598063615, + "log2": 62.098032, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 3 + }, + { + "relation": "h class: h + 2^36 - limbs (4 key12)", + "bound": 281612415664127, + "log2": 48.000704, + "below_2_63": true, + "use": "mlp", + "origin": "new (this note)", + "control": false, + "n_terms_summed": 6 + } + ], + "note": "h as a range cell proves |h| < 2^23 only; honest h must then be below the range check's honest bound. An exact class of B bits has no such gap." + } + }, + "lowering": "excess", + "threshold": { + "item1_high_side_max_le_32": true, + "high_side_max": 9, + "item2_mlp_rows_below_2_63": true, + "item2_copied_and_lowering_rows": true, + "item2_h_class_rows": true, + "item3_selector_bound": "by the argument in RESULTS.md, U6 and the relation cases" + } + } + ], + "relation_cases": [ + { + "candidate": "d0", + "outside": "branch", + "cases": [ + { + "case": "honest: last key inside the table range", + "cells": { + "gw": 32767, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 32741 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 32741, + "ok": true + }, + { + "case": "honest: first key above the table range", + "cells": { + "gw": 32768, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 32768 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 32768, + "ok": true + }, + { + "case": "honest: first key inside the table range", + "cells": { + "gw": -32768, + "idx": 0, + "y": -11, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": -11 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": -11, + "ok": true + }, + { + "case": "honest: first key below the table range", + "cells": { + "gw": -32769, + "idx": 0, + "y": -11, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 1, + "s": 0 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 0, + "ok": true + }, + { + "case": "honest: largest gw of the committed range files, positive", + "cells": { + "gw": 236631, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 3159, + "p1": 49, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 236631 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 236631, + "ok": true + }, + { + "case": "honest: largest gw of the committed range files, negative", + "cells": { + "gw": -236631, + "idx": 0, + "y": -11, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 3158, + "n1": 49, + "bh": 0, + "bl": 1, + "s": 0 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 0, + "ok": true + }, + { + "case": "honest: class edge 2^23 - 1", + "cells": { + "gw": 8388607, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 4095, + "p1": 2039, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 8388607 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 8388607, + "ok": true + }, + { + "case": "honest: class edge -(2^23 - 1)", + "cells": { + "gw": -8388607, + "idx": 0, + "y": -11, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 4094, + "n1": 2039, + "bh": 0, + "bl": 1, + "s": 0 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 0, + "ok": true + }, + { + "case": "honest: gw = 0", + "cells": { + "gw": 0, + "idx": 2048, + "y": 0, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 0 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 0, + "ok": true + }, + { + "case": "gw = 2^23, outside the range class", + "cells": { + "gw": 8388608, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 0, + "p1": 2040, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 8388608 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "class: gw range cell" + ], + "registered_s": null, + "ok": true + }, + { + "case": "s off by one", + "cells": { + "gw": 1000, + "idx": 2110, + "y": 556, + "r": 8, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 557 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R5" + ], + "registered_s": null, + "ok": true + }, + { + "case": "in range, selector claims above: c one lower, p = 1, bh = 1 (R1 holds)", + "cells": { + "gw": 1000, + "idx": 2110, + "y": 556, + "r": 7, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 583 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "in range, excess without the bit: c one lower, p0 = 1 (R1 holds)", + "cells": { + "gw": 1000, + "idx": 2110, + "y": 556, + "r": 7, + "p0": 1, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 557 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "last key in range, selector claims above: c = cmax - 1, p = 1, bh = 1", + "cells": { + "gw": 32767, + "idx": 4095, + "y": 32741, + "r": 14, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 32768 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "first key above, selector says in range: idx = N (no such row)", + "cells": { + "gw": 32768, + "idx": 4096, + "y": 32741, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 32741 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "lookup: (idx, y) is not a table row" + ], + "registered_s": null, + "ok": true + }, + { + "case": "first key above, bit flipped against the excess", + "cells": { + "gw": 32768, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 1, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 32742 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "first key below, bit flipped against the excess", + "cells": { + "gw": -32769, + "idx": 0, + "y": -11, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 1, + "n1": 0, + "bh": 0, + "bl": 0, + "s": -11 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "far above, selector says in range: c = 0, p = gw + off", + "cells": { + "gw": 100000, + "idx": 2048, + "y": 0, + "r": 0, + "p0": 1696, + "p1": 24, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 100000 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "excess limb outside its key class: the whole excess 5000 in the low limb, p1 = 0 (R1 holds)", + "cells": { + "gw": 37767, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 4999, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 37767 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "class: key p0" + ], + "registered_s": null, + "ok": true + }, + { + "case": "both excesses non-zero above: p and n each one larger", + "cells": { + "gw": 32777, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 10, + "p1": 0, + "n0": 1, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 32778 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "table value from another row", + "cells": { + "gw": 1000, + "idx": 2110, + "y": 12911, + "r": 8, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 12911 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "lookup: (idx, y) is not a table row" + ], + "registered_s": null, + "ok": true + } + ], + "all_ok": true, + "n_accept": 9, + "n_refuse": 12 + }, + { + "candidate": "e5", + "outside": "excess", + "cases": [ + { + "case": "honest: last key inside the table range", + "cells": { + "gw": 32767, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 32741 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 32741, + "ok": true + }, + { + "case": "honest: first key above the table range", + "cells": { + "gw": 32768, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 1, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 32742 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 32742, + "ok": true + }, + { + "case": "honest: first key inside the table range", + "cells": { + "gw": -32768, + "idx": 0, + "y": -11, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": -11 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": -11, + "ok": true + }, + { + "case": "honest: first key below the table range", + "cells": { + "gw": -32769, + "idx": 0, + "y": -11, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 1, + "n1": 0, + "bh": 0, + "bl": 0, + "s": -11 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": -11, + "ok": true + }, + { + "case": "honest: largest gw of the committed range files, positive", + "cells": { + "gw": 236631, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 3160, + "p1": 49, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 236605 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 236605, + "ok": true + }, + { + "case": "honest: largest gw of the committed range files, negative", + "cells": { + "gw": -236631, + "idx": 0, + "y": -11, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 3159, + "n1": 49, + "bh": 0, + "bl": 0, + "s": -11 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": -11, + "ok": true + }, + { + "case": "honest: class edge 2^23 - 1", + "cells": { + "gw": 8388607, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 0, + "p1": 2040, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 8388581 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 8388581, + "ok": true + }, + { + "case": "honest: class edge -(2^23 - 1)", + "cells": { + "gw": -8388607, + "idx": 0, + "y": -11, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 4095, + "n1": 2039, + "bh": 0, + "bl": 0, + "s": -11 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": -11, + "ok": true + }, + { + "case": "honest: gw = 0", + "cells": { + "gw": 0, + "idx": 2048, + "y": 0, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 0 + }, + "expected": "accept", + "got": "accept", + "refused_by": [], + "registered_s": 0, + "ok": true + }, + { + "case": "gw = 2^23, outside the range class", + "cells": { + "gw": 8388608, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 1, + "p1": 2040, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 8388582 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "class: gw range cell" + ], + "registered_s": null, + "ok": true + }, + { + "case": "s off by one", + "cells": { + "gw": 1000, + "idx": 2110, + "y": 556, + "r": 8, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 557 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R5" + ], + "registered_s": null, + "ok": true + }, + { + "case": "in range, selector claims above: c one lower, p = 1, bh = 1 (R1 holds)", + "cells": { + "gw": 1000, + "idx": 2110, + "y": 556, + "r": 7, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 557 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "class: bit bh", + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "in range, excess without the bit: c one lower, p0 = 1 (R1 holds)", + "cells": { + "gw": 1000, + "idx": 2110, + "y": 556, + "r": 7, + "p0": 1, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 557 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "last key in range, selector claims above: c = cmax - 1, p = 1, bh = 1", + "cells": { + "gw": 32767, + "idx": 4095, + "y": 32741, + "r": 14, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 32742 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "class: bit bh", + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "first key above, selector says in range: idx = N (no such row)", + "cells": { + "gw": 32768, + "idx": 4096, + "y": 32741, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 32741 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "lookup: (idx, y) is not a table row" + ], + "registered_s": null, + "ok": true + }, + { + "case": "first key above, bit flipped against the excess", + "cells": { + "gw": 32768, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 1, + "bl": 0, + "s": 32742 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "class: bit bh" + ], + "registered_s": null, + "ok": true + }, + { + "case": "first key below, bit flipped against the excess", + "cells": { + "gw": -32769, + "idx": 0, + "y": -11, + "r": 0, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 1, + "s": -11 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "class: bit bl" + ], + "registered_s": null, + "ok": true + }, + { + "case": "far above, selector says in range: c = 0, p = gw + off", + "cells": { + "gw": 100000, + "idx": 2048, + "y": 0, + "r": 0, + "p0": 1696, + "p1": 24, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 100000 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "excess limb outside its key class: the whole excess 5000 in the low limb, p1 = 0 (R1 holds)", + "cells": { + "gw": 37767, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 5000, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 37741 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "class: key p0" + ], + "registered_s": null, + "ok": true + }, + { + "case": "both excesses non-zero above: p and n each one larger", + "cells": { + "gw": 32777, + "idx": 4095, + "y": 32741, + "r": 15, + "p0": 11, + "p1": 0, + "n0": 1, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 32752 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "R2" + ], + "registered_s": null, + "ok": true + }, + { + "case": "table value from another row", + "cells": { + "gw": 1000, + "idx": 2110, + "y": 12911, + "r": 8, + "p0": 0, + "p1": 0, + "n0": 0, + "n1": 0, + "bh": 0, + "bl": 0, + "s": 12911 + }, + "expected": "refuse", + "got": "refuse", + "refused_by": [ + "lookup: (idx, y) is not a table row" + ], + "registered_s": null, + "ok": true + } + ], + "all_ok": true, + "n_accept": 9, + "n_refuse": 12 + } + ], + "unbound": { + "d0": { + "without_the_bit_terms_of_R2": [ + { + "gw": 0, + "honest_s": 0, + "accepted_s": [ + 0 + ], + "largest_abs_dev": 0 + }, + { + "gw": 32767, + "honest_s": 32741, + "accepted_s": [ + 32741 + ], + "largest_abs_dev": 0 + }, + { + "gw": 32768, + "honest_s": 32768, + "accepted_s": [ + 32742, + 32768 + ], + "largest_abs_dev": 26 + }, + { + "gw": 100000, + "honest_s": 100000, + "accepted_s": [ + 99974, + 100000 + ], + "largest_abs_dev": 26 + }, + { + "gw": 8388607, + "honest_s": 8388607, + "accepted_s": [ + 8388581, + 8388607 + ], + "largest_abs_dev": 26 + }, + { + "gw": -32769, + "honest_s": 0, + "accepted_s": [ + -11, + 0 + ], + "largest_abs_dev": 11 + }, + { + "gw": -8388607, + "honest_s": 0, + "accepted_s": [ + -11, + 0 + ], + "largest_abs_dev": 11 + } + ], + "without_R2": [ + { + "gw": 0, + "honest_s": 0, + "smallest_accepted_s": -7, + "largest_accepted_s": 16777253, + "largest_abs_dev": 16777253 + }, + { + "gw": 32767, + "honest_s": 32741, + "smallest_accepted_s": 31611, + "largest_accepted_s": 16809994, + "largest_abs_dev": 16777253 + }, + { + "gw": 32768, + "honest_s": 32768, + "smallest_accepted_s": 31612, + "largest_accepted_s": 16809994, + "largest_abs_dev": 16777226 + }, + { + "gw": 100000, + "honest_s": 100000, + "smallest_accepted_s": 98844, + "largest_accepted_s": 16809994, + "largest_abs_dev": 16709994 + }, + { + "gw": 8388607, + "honest_s": 8388607, + "smallest_accepted_s": 8387451, + "largest_accepted_s": 16809994, + "largest_abs_dev": 8421387 + }, + { + "gw": -32769, + "honest_s": 0, + "smallest_accepted_s": -1141, + "largest_accepted_s": 16777241, + "largest_abs_dev": 16777241 + }, + { + "gw": -8388607, + "honest_s": 0, + "smallest_accepted_s": -1141, + "largest_accepted_s": 8421403, + "largest_abs_dev": 8421403 + } + ], + "multiplexer_form_unbound": { + "form": "s in {table value (only if the key is in the table range), gw, C}, selector tied to nothing", + "at_class_edge_positive": { + "gw": 8388607, + "honest_s": 8388607, + "also_accepted": 0, + "abs_dev": 8388607 + }, + "at_class_edge_negative": { + "gw": -8388607, + "honest_s": 0, + "also_accepted": -8388607, + "abs_dev": 8388607 + }, + "in_range_example": { + "gw": -32768, + "honest_s": -11, + "also_accepted": [ + -32768, + 0 + ] + } + }, + "note": "sets computed from the definitions (relation.stated_set, relation.no_R2_extremes); the first is checked exhaustively against a witness search on the toy format in U6" + }, + "e5": { + "without_the_bit_terms_of_R2": [ + { + "gw": 0, + "honest_s": 0, + "accepted_s": [ + 0 + ], + "largest_abs_dev": 0 + }, + { + "gw": 32767, + "honest_s": 32741, + "accepted_s": [ + 32741 + ], + "largest_abs_dev": 0 + }, + { + "gw": 32768, + "honest_s": 32742, + "accepted_s": [ + 32742 + ], + "largest_abs_dev": 0 + }, + { + "gw": 100000, + "honest_s": 99974, + "accepted_s": [ + 99974 + ], + "largest_abs_dev": 0 + }, + { + "gw": 8388607, + "honest_s": 8388581, + "accepted_s": [ + 8388581 + ], + "largest_abs_dev": 0 + }, + { + "gw": -32769, + "honest_s": -11, + "accepted_s": [ + -11 + ], + "largest_abs_dev": 0 + }, + { + "gw": -8388607, + "honest_s": -11, + "accepted_s": [ + -11 + ], + "largest_abs_dev": 0 + } + ], + "without_R2": [ + { + "gw": 0, + "honest_s": 0, + "smallest_accepted_s": -7, + "largest_accepted_s": 16777215, + "largest_abs_dev": 16777215 + }, + { + "gw": 32767, + "honest_s": 32741, + "smallest_accepted_s": 31611, + "largest_accepted_s": 16809956, + "largest_abs_dev": 16777215 + }, + { + "gw": 32768, + "honest_s": 32742, + "smallest_accepted_s": 31612, + "largest_accepted_s": 16809956, + "largest_abs_dev": 16777214 + }, + { + "gw": 100000, + "honest_s": 99974, + "smallest_accepted_s": 98844, + "largest_accepted_s": 16809956, + "largest_abs_dev": 16709982 + }, + { + "gw": 8388607, + "honest_s": 8388581, + "smallest_accepted_s": 8387451, + "largest_accepted_s": 16809956, + "largest_abs_dev": 8421375 + }, + { + "gw": -32769, + "honest_s": -11, + "smallest_accepted_s": -1141, + "largest_accepted_s": 16777203, + "largest_abs_dev": 16777214 + }, + { + "gw": -8388607, + "honest_s": -11, + "smallest_accepted_s": -1141, + "largest_accepted_s": 8421365, + "largest_abs_dev": 8421376 + } + ], + "multiplexer_form_unbound": null, + "note": "sets computed from the definitions (relation.stated_set, relation.no_R2_extremes); the first is checked exhaustively against a witness search on the toy format in U6" + }, + "d1": { + "without_the_bit_terms_of_R2": [ + { + "gw": 0, + "honest_s": 0, + "accepted_s": [ + 0 + ], + "largest_abs_dev": 0 + }, + { + "gw": 32767, + "honest_s": 32741, + "accepted_s": [ + 32741 + ], + "largest_abs_dev": 0 + }, + { + "gw": 32768, + "honest_s": 32768, + "accepted_s": [ + 32742, + 32768 + ], + "largest_abs_dev": 26 + }, + { + "gw": 100000, + "honest_s": 100000, + "accepted_s": [ + 99974, + 100000 + ], + "largest_abs_dev": 26 + }, + { + "gw": 8388607, + "honest_s": 8388607, + "accepted_s": [ + 8388581, + 8388607 + ], + "largest_abs_dev": 26 + }, + { + "gw": -32769, + "honest_s": -11, + "accepted_s": [ + -11 + ], + "largest_abs_dev": 0 + }, + { + "gw": -8388607, + "honest_s": -11, + "accepted_s": [ + -11 + ], + "largest_abs_dev": 0 + } + ], + "without_R2": [ + { + "gw": 0, + "honest_s": 0, + "smallest_accepted_s": -7, + "largest_accepted_s": 16777242, + "largest_abs_dev": 16777242 + }, + { + "gw": 32767, + "honest_s": 32741, + "smallest_accepted_s": 31611, + "largest_accepted_s": 16809983, + "largest_abs_dev": 16777242 + }, + { + "gw": 32768, + "honest_s": 32768, + "smallest_accepted_s": 31612, + "largest_accepted_s": 16809983, + "largest_abs_dev": 16777215 + }, + { + "gw": 100000, + "honest_s": 100000, + "smallest_accepted_s": 98844, + "largest_accepted_s": 16809983, + "largest_abs_dev": 16709983 + }, + { + "gw": 8388607, + "honest_s": 8388607, + "smallest_accepted_s": 8387451, + "largest_accepted_s": 16809983, + "largest_abs_dev": 8421376 + }, + { + "gw": -32769, + "honest_s": -11, + "smallest_accepted_s": -1141, + "largest_accepted_s": 16777230, + "largest_abs_dev": 16777241 + }, + { + "gw": -8388607, + "honest_s": -11, + "smallest_accepted_s": -1141, + "largest_accepted_s": 8421392, + "largest_abs_dev": 8421403 + } + ], + "multiplexer_form_unbound": { + "form": "s in {table value (only if the key is in the table range), gw, C}, selector tied to nothing", + "at_class_edge_positive": { + "gw": 8388607, + "honest_s": 8388607, + "also_accepted": -11, + "abs_dev": 8388618 + }, + "at_class_edge_negative": { + "gw": -8388607, + "honest_s": -11, + "also_accepted": -8388607, + "abs_dev": 8388596 + }, + "in_range_example": { + "gw": -32768, + "honest_s": -11, + "also_accepted": [ + -32768, + -11 + ] + } + }, + "note": "sets computed from the definitions (relation.stated_set, relation.no_R2_extremes); the first is checked exhaustively against a witness search on the toy format in U6" + }, + "e1": { + "without_the_bit_terms_of_R2": [ + { + "gw": 0, + "honest_s": 0, + "accepted_s": [ + 0 + ], + "largest_abs_dev": 0 + }, + { + "gw": 32759, + "honest_s": 32741, + "accepted_s": [ + 32741 + ], + "largest_abs_dev": 0 + }, + { + "gw": 32760, + "honest_s": 32760, + "accepted_s": [ + 32742, + 32760 + ], + "largest_abs_dev": 18 + }, + { + "gw": 100000, + "honest_s": 100000, + "accepted_s": [ + 99982, + 100000 + ], + "largest_abs_dev": 18 + }, + { + "gw": 8388607, + "honest_s": 8388607, + "accepted_s": [ + 8388589, + 8388607 + ], + "largest_abs_dev": 18 + }, + { + "gw": -32777, + "honest_s": 0, + "accepted_s": [ + -11, + 0 + ], + "largest_abs_dev": 11 + }, + { + "gw": -8388607, + "honest_s": 0, + "accepted_s": [ + -11, + 0 + ], + "largest_abs_dev": 11 + } + ], + "without_R2": [ + { + "gw": 0, + "honest_s": 0, + "smallest_accepted_s": 0, + "largest_accepted_s": 16777245, + "largest_abs_dev": 16777245 + }, + { + "gw": 32759, + "honest_s": 32741, + "smallest_accepted_s": 31611, + "largest_accepted_s": 16809986, + "largest_abs_dev": 16777245 + }, + { + "gw": 32760, + "honest_s": 32760, + "smallest_accepted_s": 31612, + "largest_accepted_s": 16809986, + "largest_abs_dev": 16777226 + }, + { + "gw": 100000, + "honest_s": 100000, + "smallest_accepted_s": 98852, + "largest_accepted_s": 16809986, + "largest_abs_dev": 16709986 + }, + { + "gw": 8388607, + "honest_s": 8388607, + "smallest_accepted_s": 8387459, + "largest_accepted_s": 16809986, + "largest_abs_dev": 8421379 + }, + { + "gw": -32777, + "honest_s": 0, + "smallest_accepted_s": -1141, + "largest_accepted_s": 16777233, + "largest_abs_dev": 16777233 + }, + { + "gw": -8388607, + "honest_s": 0, + "smallest_accepted_s": -1141, + "largest_accepted_s": 8421403, + "largest_abs_dev": 8421403 + } + ], + "multiplexer_form_unbound": { + "form": "s in {table value (only if the key is in the table range), gw, C}, selector tied to nothing", + "at_class_edge_positive": { + "gw": 8388607, + "honest_s": 8388607, + "also_accepted": 0, + "abs_dev": 8388607 + }, + "at_class_edge_negative": { + "gw": -8388607, + "honest_s": 0, + "also_accepted": -8388607, + "abs_dev": 8388607 + }, + "in_range_example": { + "gw": -32768, + "honest_s": -11, + "also_accepted": [ + -32768, + 0 + ] + } + }, + "note": "sets computed from the definitions (relation.stated_set, relation.no_R2_extremes); the first is checked exhaustively against a witness search on the toy format in U6" + } + }, + "statement_cost": { + "source": "research/operators/qwen_m3/count_m3.py imported unchanged (mlp_statement, vrem, flookup, summarize, max_T)", + "hidden_units": 17408, + "base_per_hidden_unit": { + "function_lookups": 1, + "range_cells": 3, + "keys": 9, + "gate_columns": 3, + "relations": 7 + }, + "statements": { + "table only (rejects outside the domain, as on main)": { + "per_unit_added": { + "keys": 0, + "gate_columns": 0, + "relations": 0, + "range_cells": 0 + }, + "T16": { + "gate_columns": 835584, + "range_cells": 835584, + "lkp_keys": 2752512, + "relations": 2031616, + "laid_columns": 4423680, + "log_length": 23, + "fits_log22": false + }, + "largest_T_that_fits_log22": 15 + }, + "table only (rejects outside the domain, as on main) + h exact [-2^23, 2^23)": { + "per_unit_added": { + "keys": 2, + "gate_columns": 0, + "relations": 1, + "range_cells": -1 + }, + "T16": { + "gate_columns": 835584, + "range_cells": 557056, + "lkp_keys": 3309568, + "relations": 2310144, + "laid_columns": 4702208, + "log_length": 23, + "fits_log22": false + }, + "largest_T_that_fits_log22": 14 + }, + "clip": { + "per_unit_added": { + "keys": 4, + "gate_columns": 1, + "relations": 3, + "range_cells": 0 + }, + "T16": { + "gate_columns": 1114112, + "range_cells": 835584, + "lkp_keys": 3866624, + "relations": 2867200, + "laid_columns": 5816320, + "log_length": 23, + "fits_log22": false + }, + "largest_T_that_fits_log22": 11 + }, + "clip + h exact [-2^23, 2^23)": { + "per_unit_added": { + "keys": 6, + "gate_columns": 1, + "relations": 4, + "range_cells": -1 + }, + "T16": { + "gate_columns": 1114112, + "range_cells": 557056, + "lkp_keys": 4423680, + "relations": 3145728, + "laid_columns": 6094848, + "log_length": 23, + "fits_log22": false + }, + "largest_T_that_fits_log22": 10 + }, + "excess": { + "per_unit_added": { + "keys": 4, + "gate_columns": 1, + "relations": 3, + "range_cells": 0 + }, + "T16": { + "gate_columns": 1114112, + "range_cells": 835584, + "lkp_keys": 3866624, + "relations": 2867200, + "laid_columns": 5816320, + "log_length": 23, + "fits_log22": false + }, + "largest_T_that_fits_log22": 11 + }, + "excess + h exact [-2^23, 2^23)": { + "per_unit_added": { + "keys": 6, + "gate_columns": 1, + "relations": 4, + "range_cells": -1 + }, + "T16": { + "gate_columns": 1114112, + "range_cells": 557056, + "lkp_keys": 4423680, + "relations": 3145728, + "laid_columns": 6094848, + "log_length": 23, + "fits_log22": false + }, + "largest_T_that_fits_log22": 10 + }, + "branch": { + "per_unit_added": { + "keys": 8, + "gate_columns": 2, + "relations": 7, + "range_cells": 0 + }, + "T16": { + "gate_columns": 1392640, + "range_cells": 835584, + "lkp_keys": 4980736, + "relations": 3981312, + "laid_columns": 7208960, + "log_length": 23, + "fits_log22": false + }, + "largest_T_that_fits_log22": 9 + }, + "branch + h exact [-2^23, 2^23)": { + "per_unit_added": { + "keys": 10, + "gate_columns": 2, + "relations": 8, + "range_cells": -1 + }, + "T16": { + "gate_columns": 1392640, + "range_cells": 557056, + "lkp_keys": 5537792, + "relations": 4259840, + "laid_columns": 7487488, + "log_length": 23, + "fits_log22": false + }, + "largest_T_that_fits_log22": 8 + } + }, + "note": "counted from the lowering written in the note, nothing built; added relations are counted at 3 terms each (count_m3 calls its term totals provisional); the public table rows are listed per candidate, they are not in the layout" + } +} diff --git a/experiments/20261129-222-silu-repairs/runs/run-2.time b/experiments/20261129-222-silu-repairs/runs/run-2.time new file mode 100644 index 00000000..c0d549cb --- /dev/null +++ b/experiments/20261129-222-silu-repairs/runs/run-2.time @@ -0,0 +1,23 @@ + Command being timed: "python3 experiments/20261129-222-silu-repairs/compute.py experiments/20261129-222-silu-repairs/runs/run-2.json" + User time (seconds): 11.59 + System time (seconds): 1.28 + Percent of CPU this job got: 99% + Elapsed (wall clock) time (h:mm:ss or m:ss): 0:12.88 + Average shared text size (kbytes): 0 + Average unshared data size (kbytes): 0 + Average stack size (kbytes): 0 + Average total size (kbytes): 0 + Maximum resident set size (kbytes): 262356 + Average resident set size (kbytes): 0 + Major (requiring I/O) page faults: 0 + Minor (reclaiming a frame) page faults: 594214 + Voluntary context switches: 89 + Involuntary context switches: 48 + Swaps: 0 + File system inputs: 0 + File system outputs: 616 + Socket messages sent: 0 + Socket messages received: 0 + Signals delivered: 0 + Page size (bytes): 4096 + Exit status: 0 diff --git a/experiments/20261129-222-silu-repairs/runs/table.md b/experiments/20261129-222-silu-repairs/runs/table.md new file mode 100644 index 00000000..84b7803b --- /dev/null +++ b/experiments/20261129-222-silu-repairs/runs/table.md @@ -0,0 +1,24 @@ +| candidate | rows | index | outside | max err in [-2^15, 2^15) | max err in [2^15, 2^23) | max err below -2^15 | max err, whole class (at gw) | mean err, [-2^15, 2^15) | image bound in ledger (log2) | MLP rows < 2^63 (worst log2) | shared rows < 2^63 (worst log2, failing) | item 1 | +|---|---|---|---|---|---|---|---|---|---|---|---|---| +| v1 | 4096 | floor | clip | 17 | 8355866 | 11 | 8355866 (8388607) | -3.7439 | 32741 (14.999) | yes (55.024) | yes (60.271) | no | +| a | 4096 | mid | clip | 15 | 8355866 | 11 | 8355866 (8388607) | 0.2541 | 32741 (14.999) | yes (55.024) | yes (60.271) | no | +| b9f | 8192 | floor | clip | 8 | 8355858 | 11 | 8355858 (8388607) | -1.7447 | 32749 (14.999) | yes (55.024) | yes (60.271) | no | +| b9m | 8192 | mid | clip | 7 | 8355858 | 11 | 8355858 (8388607) | 0.2547 | 32749 (14.999) | yes (55.024) | yes (60.271) | no | +| b10f | 16384 | floor | clip | 4 | 8355854 | 11 | 8355854 (8388607) | -0.7467 | 32753 (14.999) | yes (55.024) | yes (60.271) | no | +| b10m | 16384 | mid | clip | 3 | 8355854 | 11 | 8355854 (8388607) | 0.2530 | 32753 (14.999) | yes (55.024) | yes (60.271) | no | +| b12 | 65536 | floor | clip | 0 | 8355851 | 11 | 8355851 (8388607) | 0.0000 | 32756 (14.999) | yes (55.024) | yes (60.271) | no | +| c16f | 8192 | floor | clip | 17 | 8323087 | 1 | 8323087 (8388607) | -3.7439 | 65520 (16.000) | yes (55.024) | yes (60.936) | no | +| c16m | 8192 | mid | clip | 9 | 8323087 | 1 | 8323087 (8388607) | 0.2560 | 65520 (16.000) | yes (55.024) | yes (60.936) | no | +| c32f | 16384 | floor | clip | 17 | 8257551 | 1 | 8257551 (8388607) | -3.7439 | 131056 (17.000) | yes (55.024) | yes (61.735) | no | +| c32m | 16384 | mid | clip | 9 | 8257551 | 1 | 8257551 (8388607) | 0.2560 | 131056 (17.000) | yes (55.024) | yes (61.735) | no | +| c64f | 32768 | floor | clip | 17 | 8126479 | 1 | 8126479 (8388607) | -3.7439 | 262128 (18.000) | yes (55.024) | yes (62.622) | no | +| c64m | 32768 | mid | clip | 9 | 8126479 | 1 | 8126479 (8388607) | 0.2560 | 262128 (18.000) | yes (55.024) | yes (62.622) | no | +| d0 | 4096 | floor | branch(0) | 17 | 11 | 11 | 17 (7023) | -3.7439 | 16809994 (24.003) | yes (55.024) | NO (68.505; 1 row(s)) | yes | +| d1 | 4096 | floor | branch(-11) | 17 | 11 | 11 | 17 (7023) | -3.7439 | 16809983 (24.003) | yes (55.024) | NO (68.505; 1 row(s)) | yes | +| e1 | 4096 | mid | branch(0) | 11 | 11 | 11 | 11 (32760) | 0.2568 | 16809986 (24.003) | yes (55.024) | NO (68.505; 1 row(s)) | yes | +| e2 | 8192 | mid | branch(0) | 9 | 9 | 1 | 9 (5288) | 0.2560 | 16842743 (24.006) | yes (55.024) | NO (68.507; 1 row(s)) | yes | +| e3 | 16384 | mid | branch(0) | 11 | 11 | 11 | 11 (32766) | 0.2535 | 16809992 (24.003) | yes (55.024) | NO (68.505; 1 row(s)) | yes | +| e4 | 32768 | mid | branch(0) | 3 | 3 | 1 | 3 (5294) | 0.2532 | 16842749 (24.006) | yes (55.024) | NO (68.507; 1 row(s)) | yes | +| e5 | 4096 | floor | excess | 17 | 26 | 11 | 26 (46895) | -3.7439 | 16809956 (24.003) | yes (55.024) | NO (68.505; 1 row(s)) | yes | +| e6 | 4096 | mid | excess | 9 | 18 | 11 | 18 (46895) | 0.2546 | 16809956 (24.003) | yes (55.024) | NO (68.505; 1 row(s)) | yes | +| e7 | 8192 | mid | excess | 9 | 9 | 1 | 9 (5288) | 0.2560 | 16842735 (24.006) | yes (55.024) | NO (68.507; 1 row(s)) | yes | diff --git a/experiments/20261129-222-silu-repairs/silu_core.py b/experiments/20261129-222-silu-repairs/silu_core.py new file mode 100644 index 00000000..837246aa --- /dev/null +++ b/experiments/20261129-222-silu-repairs/silu_core.py @@ -0,0 +1,329 @@ +#!/usr/bin/env python3 +"""Exact SiLU target, candidate operators and the worst-case finder (issue #222, desk note). + +Python integers and fractions.Fraction only. No float decides anything in this file. + +T(gw) = RNE(2^12 silu(gw / 2^12)) = RNE(gw / (1 + exp(-gw / 4096))), as a rounding of the real number. + +How T is decided (PREREG, Metric, Target): + 1. c = exp(-1/4096) is enclosed by two partial sums of its alternating Taylor series (the sum that + ends on a negative term is below, the one that ends on a positive term is above), rounded + outward to integers at scale Q = 2^192. + 2. E_g = exp(-g/4096) = c^g is enclosed by lo_g = floor(lo_(g-1) c_lo / Q) and + hi_g = floor(hi_(g-1) c_hi / Q) + 1. Each step rounds outward, so lo_g / Q <= E_g <= hi_g / Q. + 3. silu at +g is g / (1 + E_g), at -g it is -g E_g / (1 + E_g). Both are monotone in E_g, so the + enclosure of E_g gives one of the value. T is decided only if the whole closed enclosure lies + strictly inside one rounding cell (k - 1/2, k + 1/2). + 4. Beyond G0 the tail lemma is used (tail_lemma_holds): T(g) = g and T(-g) = 0. +""" +import pathlib +import struct +from fractions import Fraction + +QB = 192 +Q = 1 << QB +F = 12 +STEP_DEN = 1 << F # gw is in units of 2^-12 +RNG_CLASS = 1 << 23 # the range-checked class is |gw| < 2^23 +G0 = 1 << 20 # enumeration bound; beyond it the tail lemma +HERE = pathlib.Path(__file__).resolve().parent +REPO = HERE.parents[1] +PINNED = REPO / 'research' / 'operators' / 'qwen_ops' / 'tables' / 'silu-f12.i64le' + + +def c_enclosure(den=STEP_DEN, terms=40, q=Q): + """Integers (c_lo, c_hi) with c_lo / q <= exp(-1/den) <= c_hi / q.""" + x = Fraction(1, den) + term, s, partial = Fraction(1), Fraction(1), [Fraction(1)] + for k in range(1, terms + 1): + term = term * x / k + s = s - term if k % 2 else s + term + partial.append(s) + below, above = partial[terms - 1], partial[terms] # terms is even: index terms-1 ends on a minus + assert terms % 2 == 0 and below < above + c_lo = (below.numerator * q) // below.denominator + c_hi = -((-above.numerator * q) // above.denominator) + assert 0 < c_lo < c_hi <= q + return c_lo, c_hi + + +def exp_enclosures(gmax, den=STEP_DEN, q=Q): + """Yield (g, lo_g, hi_g) for g = 0..gmax with lo_g / q <= exp(-g/den) <= hi_g / q.""" + c_lo, c_hi = c_enclosure(den, q=q) + lo = hi = q + yield 0, lo, hi + for g in range(1, gmax + 1): + lo = lo * c_lo // q + hi = hi * c_hi // q + 1 + yield g, lo, hi + + +def decide(an, ad, bn, bd): + """The closed interval [an/ad, bn/bd] (ad, bd > 0). Returns k if every real in it rounds to k + with no tie possible, i.e. k - 1/2 < an/ad and bn/bd < k + 1/2. Otherwise None.""" + k1, r1 = divmod(2 * an + ad, 2 * ad) + k2 = (2 * bn + bd) // (2 * bd) + if k1 == k2 and r1 != 0: + return k1 + return None + + +def silu_pair(g, lo, hi, q=Q): + """(T(+g), T(-g)) from an enclosure lo/q <= exp(-g/4096) <= hi/q; None where undecided.""" + if g == 0: + return 0, 0 + pos = decide(g * q, q + hi, g * q, q + lo) # g / (1 + E), decreasing in E + neg = decide(-g * hi, q + hi, -g * lo, q + lo) # -g E / (1 + E), decreasing in E + return pos, neg + + +def build_target(gmax=G0, want=None): + """Returns dict(pos=[T(0..gmax)], neg=[T(-0..-gmax)], undecided=[...], tail=...). + want: if given, T is decided only at |gw| in that set (the unit tests' registered points); + every other entry stays None.""" + fill = 0 if want is None else None + pos, neg, undecided = [fill] * (gmax + 1), [fill] * (gmax + 1), [] + last = None + for g, lo, hi in exp_enclosures(gmax): + last = (g, lo, hi) + if want is not None and g not in want: + continue + p, n = silu_pair(g, lo, hi) + if p is None: + undecided.append(g) + else: + pos[g] = p + if n is None: + undecided.append(-g) + else: + neg[g] = n + return dict(pos=pos, neg=neg, undecided=undecided, tail=tail_lemma(last), gmax=gmax) + + +def tail_lemma(last, q=Q): + """g exp(-g/4096) is decreasing for g > 4096 (its derivative is (1 - g/4096) exp(-g/4096) < 0). + If G0 > 4096 and G0 hi_G0 / q < 1/2 then for every g >= G0: 0 < g - silu(g) < g E_g < 1/2 and + -1/2 < silu(-g) < 0, so T(g) = g and T(-g) = 0. Checked as exact integer comparisons.""" + g, lo, hi = last + return dict(G0=g, G0_above_4096=g > STEP_DEN, hi_G0=hi, two_G0_hi_below_q=2 * g * hi < q, + holds=g > STEP_DEN and 2 * g * hi < q) + + +class Target: + """T on the whole class: a list on [-G0, G0] and the tail lemma beyond.""" + + def __init__(self, built=None, all_list=None, gmax=None, tail_pos=None, tail_neg=None): + if built is not None: + assert not built['undecided'], built['undecided'][:10] + assert built['tail']['holds'] + gmax = built['gmax'] + all_list = built['neg'][:0:-1] + built['pos'] + tail_pos, tail_neg = (lambda g: g), (lambda g: 0) + self.G0, self.all, self.tail_pos, self.tail_neg = gmax, all_list, tail_pos, tail_neg + assert len(self.all) == 2 * gmax + 1 + + def at(self, gw): + if -self.G0 <= gw <= self.G0: + return self.all[gw + self.G0] + return self.tail_pos(gw) if gw > 0 else self.tail_neg(gw) + + +def pinned_rows(): + return list(struct.unpack('<4096q', PINNED.read_bytes())) + + +# ---------------------------------------------------------------------------------------------- +# Candidates +# ---------------------------------------------------------------------------------------------- +class Cand: + def __init__(self, name, H, w, index, outside, C=None, item=''): + assert index in ('floor', 'mid') and outside in ('clip', 'branch', 'excess') + assert (2 * H) % w == 0 + self.name, self.H, self.w, self.index, self.outside, self.C, self.item = name, H, w, index, outside, C, item + self.N = 2 * H // w + self.off = w // 2 if index == 'mid' else 0 + self.tab = None + + def set_table(self, tab): + assert len(tab) == self.N + self.tab = tab + self.Cval = (tab[0] if self.C == 'row0' else self.C) if self.outside == 'branch' else None + # R5 constants of PREREG Amendment 1 + self.Khi = self.H - 1 - self.off - tab[-1] if self.outside == 'branch' else 0 + self.Klo = self.Cval - tab[0] if self.outside == 'branch' else 0 + + def lo_edge(self): # smallest gw inside the table range + return -self.H - self.off + + def hi_edge(self): # largest gw inside the table range + return self.H - self.off - 1 + + def s_point(self, gw): + """The registered function, one point, straight from the definition.""" + v = gw + self.off + if -self.H <= v < self.H: + return self.tab[v // self.w + self.N // 2] + if v >= self.H: + if self.outside == 'clip': + return self.tab[-1] + if self.outside == 'branch': + return gw + return self.tab[-1] + (v - (self.H - 1)) + if self.outside == 'branch': + return self.Cval + return self.tab[0] + + def s_list(self, a, b): + """s for every integer gw in [a, b], built by segments. Needs a <= lo_edge, b >= hi_edge.""" + lo, hi = self.lo_edge(), self.hi_edge() + assert a <= lo and b >= hi + below = [self.Cval if self.outside == 'branch' else self.tab[0]] * (lo - a) + w = self.w + inside = [t for t in self.tab for _ in range(w)] if w > 1 else list(self.tab) + if self.outside == 'clip': + above = [self.tab[-1]] * (b - hi) + elif self.outside == 'branch': + above = list(range(hi + 1, b + 1)) + else: + k = self.tab[-1] + self.off - (self.H - 1) + above = list(range(hi + 1 + k, b + 1 + k)) + out = below + inside + above + assert len(out) == b - a + 1 + return out + + def describe(self): + return dict(name=self.name, H=self.H, w=self.w, rows=self.N, index=self.index, offset=self.off, + outside=self.outside, C=self.Cval, Khi=self.Khi, Klo=self.Klo, item=self.item, + table_range=[self.lo_edge(), self.hi_edge()]) + + +def registered_candidates(): + H15, H16, H17, H18 = 1 << 15, 1 << 16, 1 << 17, 1 << 18 + return [ + Cand('v1', H15, 16, 'floor', 'clip', item='baseline'), + Cand('a', H15, 16, 'mid', 'clip', item='(a)'), + Cand('b9f', H15, 8, 'floor', 'clip', item='(b)'), + Cand('b9m', H15, 8, 'mid', 'clip', item='(b)'), + Cand('b10f', H15, 4, 'floor', 'clip', item='(b)'), + Cand('b10m', H15, 4, 'mid', 'clip', item='(b)'), + Cand('b12', H15, 1, 'floor', 'clip', item='(b), limit case'), + Cand('c16f', H16, 16, 'floor', 'clip', item='(c)'), + Cand('c16m', H16, 16, 'mid', 'clip', item='(c)'), + Cand('c32f', H17, 16, 'floor', 'clip', item='(c)'), + Cand('c32m', H17, 16, 'mid', 'clip', item='(c)'), + Cand('c64f', H18, 16, 'floor', 'clip', item='(c)'), + Cand('c64m', H18, 16, 'mid', 'clip', item='(c)'), + Cand('d0', H15, 16, 'floor', 'branch', C=0, item='(d)'), + Cand('d1', H15, 16, 'floor', 'branch', C='row0', item='(d)'), + Cand('e1', H15, 16, 'mid', 'branch', C=0, item='(e) = a + d'), + Cand('e2', H16, 16, 'mid', 'branch', C=0, item='(e) = a + c + d'), + Cand('e3', H15, 4, 'mid', 'branch', C=0, item='(e) = a + b + d'), + Cand('e4', H16, 4, 'mid', 'branch', C=0, item='(e) = a + b + c + d'), + Cand('e5', H15, 16, 'floor', 'excess', item='(e), no selector bit'), + Cand('e6', H15, 16, 'mid', 'excess', item='(e), no selector bit (Amendment 1)'), + Cand('e7', H16, 16, 'mid', 'excess', item='(e), no selector bit (Amendment 1)'), + ] + + +def exact_rows(H, w, target): + N = 2 * H // w + return [target.at(w * (i - N // 2)) for i in range(N)] + + +# ---------------------------------------------------------------------------------------------- +# Worst-case finder: enumeration on [-G0, G0], both ends of each tail beyond +# ---------------------------------------------------------------------------------------------- +class Finder: + def __init__(self, cand, target, R): + """R: the class is |gw| < R.""" + self.c, self.t, self.R, self.G0 = cand, target, R, target.G0 + G0 = self.G0 + s = cand.s_list(-G0, G0) + self.err = [x - y for x, y in zip(s, target.all)] + self.abs = list(map(abs, self.err)) + self.rev = self.abs[::-1] + self.smax_enum = max(map(abs, s)) + self.tail_checks = self._tail_checks() + + def _e(self, gw): + return self.c.s_point(gw) - self.t.at(gw) + + def _tail_checks(self): + """s - T must be affine on each tail: three points collinear, and unit steps equal at both ends.""" + out = {} + for name, a, b in (('high', self.G0 + 1, self.R - 1), ('low', -(self.R - 1), -(self.G0 + 1))): + if a > b: + out[name] = dict(empty=True, affine=True) + continue + m = (a + b) // 2 + ea, em, eb = self._e(a), self._e(m), self._e(b) + collinear = (em - ea) * (b - a) == (eb - ea) * (m - a) + steps = (b - a < 1) or (self._e(a + 1) - ea == eb - self._e(b - 1)) + out[name] = dict(a=a, b=b, e_a=ea, e_mid=em, e_b=eb, affine=bool(collinear and steps)) + return out + + def window(self, a, b): + """max |s - T| over the integers of [a, b] (inside the class), the smallest |gw| attaining it, + and what decided it.""" + a, b = max(a, -(self.R - 1)), min(b, self.R - 1) + if a > b: + return dict(a=a, b=b, empty=True) + G0, best, how = self.G0, None, [] + ea, eb = max(a, -G0), min(b, G0) + if ea <= eb: + i, j = ea + G0, eb + G0 + 1 + m = max(self.abs[i:j]) + cands, n = [], len(self.abs) + if eb >= 0: # first hit going up from max(ea, 0) + try: + cands.append(self.abs.index(m, max(i, G0), j) - G0) + except ValueError: + pass + if ea < 0: # first hit going down from min(eb, -1) + jj = min(j, G0) + try: + cands.append(n - 1 - self.rev.index(m, n - jj, n - i) - G0) + except ValueError: + pass + gw = min(cands, key=lambda z: (abs(z), z < 0)) + best = (m, gw) + how.append('enumeration') + for ta, tb in ((max(a, G0 + 1), b), (a, min(b, -(G0 + 1)))): + if ta <= tb: + how.append('tail ends (proof)') + for g in sorted({ta, tb}, key=abs): + v = abs(self._e(g)) + if best is None or v > best[0] or (v == best[0] and abs(g) < abs(best[1])): + best = (v, g) + return dict(a=a, b=b, max_abs_err=best[0], at_gw=best[1], err_there=self._e(best[1]), + decided_by=' + '.join(how)) + + def mean(self, a, b): + """Exact mean of s - T over the integers of [a, b], inside the enumeration.""" + assert -self.G0 <= a <= b <= self.G0 + tot = sum(self.err[a + self.G0:b + self.G0 + 1]) + fr = Fraction(tot, b - a + 1) + return dict(a=a, b=b, sum=tot, count=b - a + 1, mean_exact=f'{fr.numerator}/{fr.denominator}', + mean_display=fmt_fraction(fr, 4)) + + def image_bound(self): + """max |s| over the class: enumeration, and the two outer ends (|s| is convex on each tail).""" + ends = [abs(self.c.s_point(g)) for g in (self.R - 1, -(self.R - 1), self.G0 + 1, -(self.G0 + 1)) + if abs(g) < self.R and abs(g) > self.G0] + return max([self.smax_enum] + ends) + + +def fmt_fraction(fr, places): + """Decimal string of a Fraction, truncated toward zero at `places`, by integer arithmetic.""" + sign = '-' if fr < 0 else '' + n, d = abs(fr.numerator), fr.denominator + whole, rem = divmod(n, d) + frac = rem * 10 ** places // d + return f'{sign}{whole}.{frac:0{places}d}' + + +def std_windows(R=RNG_CLASS): + return [('[-2^15, 2^15)', -(1 << 15), (1 << 15) - 1), ('[2^15, 2^18)', 1 << 15, (1 << 18) - 1), + ('[2^18, 2^23)', 1 << 18, R - 1), ('[-2^18, -2^15)', -(1 << 18), -(1 << 15) - 1), + ('(-2^23, -2^18)', -(R - 1), -(1 << 18) - 1), ('[2^15, 2^23)', 1 << 15, R - 1), + ('whole class', -(R - 1), R - 1)] diff --git a/experiments/20261129-222-silu-repairs/unit_tests.json b/experiments/20261129-222-silu-repairs/unit_tests.json new file mode 100644 index 00000000..7461fc61 --- /dev/null +++ b/experiments/20261129-222-silu-repairs/unit_tests.json @@ -0,0 +1,297 @@ +{ + "experiment": "20261129-222-silu-repairs", + "what": "unit tests U1 to U6, before the registered computation", + "T_decided_only_at": "|gw| <= 4,096 and the grid 16 i, |gw| <= 2^15 (U2, U3), and the points of U1", + "undecided_among_those": [], + "tests": [ + { + "name": "U1 enclosure recurrence vs independent enclosure", + "points": 2058, + "expected_points": 2058, + "mismatches": [], + "pass_": true + }, + { + "name": "U2 T(0), antisymmetry identity, float64 cross-check on |gw| <= 4096", + "T0": 0, + "identity_failures": [], + "float_checked": 8193, + "float_skipped_near_half": 0, + "float_disagreements": [], + "note": "float64 is used here only as a cross-check that must agree; it decides no reported number", + "pass_": true + }, + { + "name": "U3 the 4,096 pinned v1 rows vs T(16 (i - 2048))", + "rows": 4096, + "differing": 0, + "first": [], + "row0": -11, + "row4095": 32741, + "max_abs": 32741, + "min_row": -1141, + "pass_": true + }, + { + "name": "U4 worst-case finder (enumeration + tail ends) vs a naive loop over a whole toy class", + "toy_class": "|gw| < 2^10, enumeration to 2^8, synthetic integer target", + "comparisons": 180, + "mismatches": [], + "pass_": true + }, + { + "name": "U5 copied ledger rows vs bounds.ROWS at S = 32,741", + "copied": 12, + "main_rows": 37, + "main_SILU": 32741, + "mismatches": [], + "in_memory_copy_equals_import": true, + "main_rows_whose_bound_moves_with_SILU": [ + "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "k: x Rc - 2^24 k - r", + "q: 362 Rc x - 2^36 q - r", + "recurrence: 2^24 (v - M) + r - g5", + "recurrence g6 = (v - M) beta", + "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "gated norm: s w - 2^12 t - r", + "M3a-MLP: s u - 2^12 h - r (r2)", + "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)" + ], + "of_those_not_copied": [], + "copied_rows_that_do_not_contain_the_image_bound": [ + "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "SiLU key: c - step (idx - off) - r" + ], + "note": "the SiLU key row contains the table shape, not the image bound; it is copied as well", + "pass_": true + }, + { + "name": "U6 relation model, exhaustive on a toy format", + "toy_format": "class |gw| < 2^6, H = 2^3, w = 4 (rows -3, -1, 2, 5), two 3-bit limbs for p and for n", + "assignments_checked": 3918186, + "cases": [ + { + "cand": "toy-floor-clip-None", + "variant": "full", + "assignments": 65332, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-floor-clip-None", + "variant": "no_bits", + "assignments": 65332, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-floor-clip-None", + "variant": "no_R2", + "assignments": 65332, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 127, + "largest_abs_s_minus_honest": 8 + }, + { + "cand": "toy-floor-excess-None", + "variant": "full", + "assignments": 65332, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-floor-excess-None", + "variant": "no_bits", + "assignments": 65332, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-floor-excess-None", + "variant": "no_R2", + "assignments": 65332, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 127, + "largest_abs_s_minus_honest": 65 + }, + { + "cand": "toy-floor-branch-0", + "variant": "full", + "assignments": 261311, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-floor-branch-0", + "variant": "no_bits", + "assignments": 261311, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 111, + "largest_abs_s_minus_honest": 3 + }, + { + "cand": "toy-floor-branch-0", + "variant": "no_R2", + "assignments": 261311, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 127, + "largest_abs_s_minus_honest": 71 + }, + { + "cand": "toy-floor-branch-row0", + "variant": "full", + "assignments": 261311, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-floor-branch-row0", + "variant": "no_bits", + "assignments": 261311, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 56, + "largest_abs_s_minus_honest": 2 + }, + { + "cand": "toy-floor-branch-row0", + "variant": "no_R2", + "assignments": 261311, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 127, + "largest_abs_s_minus_honest": 68 + }, + { + "cand": "toy-mid-clip-None", + "variant": "full", + "assignments": 65281, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-mid-clip-None", + "variant": "no_bits", + "assignments": 65281, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-mid-clip-None", + "variant": "no_R2", + "assignments": 65281, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 127, + "largest_abs_s_minus_honest": 8 + }, + { + "cand": "toy-mid-excess-None", + "variant": "full", + "assignments": 65281, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-mid-excess-None", + "variant": "no_bits", + "assignments": 65281, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-mid-excess-None", + "variant": "no_R2", + "assignments": 65281, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 127, + "largest_abs_s_minus_honest": 65 + }, + { + "cand": "toy-mid-branch-0", + "variant": "full", + "assignments": 261107, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-mid-branch-0", + "variant": "no_bits", + "assignments": 261107, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 53, + "largest_abs_s_minus_honest": 3 + }, + { + "cand": "toy-mid-branch-0", + "variant": "no_R2", + "assignments": 261107, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 127, + "largest_abs_s_minus_honest": 69 + }, + { + "cand": "toy-mid-branch-row0", + "variant": "full", + "assignments": 261107, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-mid-branch-row0", + "variant": "no_bits", + "assignments": 261107, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-mid-branch-row0", + "variant": "no_R2", + "assignments": 261107, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 127, + "largest_abs_s_minus_honest": 66 + } + ], + "first_mismatches": [], + "pass_": true + } + ], + "all_pass": true, + "wall_s_display": 12.4 +} diff --git a/experiments/20261129-222-silu-repairs/unit_tests.py b/experiments/20261129-222-silu-repairs/unit_tests.py new file mode 100644 index 00000000..0a7839b3 --- /dev/null +++ b/experiments/20261129-222-silu-repairs/unit_tests.py @@ -0,0 +1,243 @@ +#!/usr/bin/env python3 +"""Unit tests U1 to U6 of the PREREG (issue #222). Small synthetic ranges and the registered unit +points only. Writes unit_tests.json; exit status 0 only if every test passes. + +usage: python3 unit_tests.py [out.json] +""" +import importlib.util +import json +import math +import sys +import time +from fractions import Fraction + +import ledger +import relation +import silu_core as sc + + +# ---------------------------------------------------------------------------------------------- U1 +def indep_exp_small(g, terms=34): + """Rationals (lo, hi) with lo <= exp(-g/4096) <= hi, g <= 4096, by the Taylor series at + x = g/4096 <= 1 directly (alternating, terms decreasing): not the recurrence.""" + x = Fraction(g, 4096) + term, s, part = Fraction(1), Fraction(1), [Fraction(1)] + for k in range(1, terms + 1): + term = term * x / k + s = s - term if k % 2 else s + term + part.append(s) + return part[terms - 1], part[terms] + + +def indep_exp_pow2(k, bits=640): + """Integers (lo, hi) at scale 2^bits enclosing exp(-2^(k-12)), k >= 12: exp(-1) by its Taylor + series, then k - 12 squarings with outward rounding.""" + lo_f, hi_f = indep_exp_small(4096, terms=120) + S = 1 << bits + lo = lo_f.numerator * S // lo_f.denominator + hi = -((-hi_f.numerator * S) // hi_f.denominator) + for _ in range(k - 12): + lo = lo * lo // S + hi = hi * hi // S + 1 + return lo, hi, S + + +def u1(): + want = set(range(0, 2049)) | {1 << k for k in range(12, 21)} + bad, n = [], 0 + for g, lo, hi in sc.exp_enclosures(1 << 20): + if g not in want: + continue + n += 1 + if g <= 2048: + a, b = indep_exp_small(g) + ilo, ihi, S = a.numerator * (1 << 640) // a.denominator, -((-b.numerator * (1 << 640)) // b.denominator), 1 << 640 + else: + ilo, ihi, S = indep_exp_pow2(g.bit_length() - 1) + # intersect: lo/Q <= ihi/S and ilo/S <= hi/Q + meet = lo * S <= ihi * sc.Q and ilo * sc.Q <= hi * S + mine = sc.silu_pair(g, lo, hi) + theirs = sc.silu_pair(g, ilo, ihi, q=S) + if not meet or mine != theirs or None in mine: + bad.append(dict(g=g, meet=meet, mine=mine, theirs=theirs)) + return dict(name='U1 enclosure recurrence vs independent enclosure', points=n, expected_points=len(want), + mismatches=bad[:5], pass_=not bad and n == len(want)) + + +# ---------------------------------------------------------------------------------------------- U2 +def u2(built): + pos, neg = built['pos'], built['neg'] + sym_bad = [g for g in range(1, 4097) if pos[g] - neg[g] != g] + skipped, disagree, checked = 0, [], 0 + for gw in range(-4096, 4097): + x = gw / 4096.0 + y = 4096.0 * x / (1.0 + math.exp(-x)) + fr = y - math.floor(y) + if abs(fr - 0.5) < 2.0 ** -20: + skipped += 1 + continue + checked += 1 + f = int(round(y)) + t = pos[gw] if gw >= 0 else neg[-gw] + if f != t: + disagree.append(dict(gw=gw, exact=t, float64=f)) + return dict(name='U2 T(0), antisymmetry identity, float64 cross-check on |gw| <= 4096', T0=pos[0], + identity_failures=sym_bad[:5], float_checked=checked, float_skipped_near_half=skipped, + float_disagreements=disagree[:5], + note='float64 is used here only as a cross-check that must agree; it decides no reported number', + pass_=pos[0] == 0 and neg[0] == 0 and not sym_bad and not disagree) + + +# ---------------------------------------------------------------------------------------------- U3 +def u3(built): + pinned = sc.pinned_rows() + diff = [] + for i in range(4096): + g = 16 * (i - 2048) + t = built['pos'][g] if g >= 0 else built['neg'][-g] + if pinned[i] != t: + diff.append(dict(row=i, gw=g, pinned=pinned[i], exact=t)) + return dict(name='U3 the 4,096 pinned v1 rows vs T(16 (i - 2048))', rows=4096, differing=len(diff), first=diff[:5], + row0=pinned[0], row4095=pinned[4095], max_abs=max(map(abs, pinned)), min_row=min(pinned), + pass_=not diff) + + +# ---------------------------------------------------------------------------------------------- U4 +def toy_target(G0): + """A synthetic integer target on [-G0, G0] (not SiLU), identity / zero tails.""" + vals = [] + for g in range(-G0, G0 + 1): + vals.append(g - (g * g * 3 + 7 * g) % 11 + 5 if g >= 0 else -((g * g + 5 * g) % 13)) + return sc.Target(all_list=vals, gmax=G0, tail_pos=lambda g: g, tail_neg=lambda g: 0) + + +def u4(): + R, G0 = 1 << 10, 1 << 8 + t = toy_target(G0) + bad, n = [], 0 + wins = [('all', -(R - 1), R - 1), ('mid', -40, 40), ('hi', 32, R - 1), ('hi2', 300, 700), ('lo', -(R - 1), -33), + ('lo2', -900, -200), ('cross', -300, 500), ('pt', 17, 17)] + for H, w in ((32, 4), (64, 8), (32, 1)): + for index in ('floor', 'mid'): + for outside, C in (('clip', None), ('branch', 0), ('branch', 'row0'), ('excess', None)): + if w == 1 and index == 'mid': + continue + c = sc.Cand(f'toy-{H}-{w}-{index}-{outside}-{C}', H, w, index, outside, C=C) + c.set_table(sc.exact_rows(H, w, t)) + f = sc.Finder(c, t, R) + for nm, a, b in wins: + n += 1 + got = f.window(a, b) + best = None + for g in range(a, b + 1): + v = abs(c.s_point(g) - t.at(g)) + if best is None or v > best[0] or (v == best[0] and (abs(g), g < 0) < (abs(best[1]), best[1] < 0)): + best = (v, g) + if (got['max_abs_err'], got['at_gw']) != best: + bad.append(dict(cand=c.name, window=nm, finder=[got['max_abs_err'], got['at_gw']], naive=list(best))) + # the segment builder against the point definition, the mean, the image bound, the tails + n += 1 + sl = c.s_list(-G0, G0) + if sl != [c.s_point(g) for g in range(-G0, G0 + 1)]: + bad.append(dict(cand=c.name, what='s_list != s_point')) + m = f.mean(-20, 31) + if m['sum'] != sum(c.s_point(g) - t.at(g) for g in range(-20, 32)): + bad.append(dict(cand=c.name, what='mean')) + if f.image_bound() != max(abs(c.s_point(g)) for g in range(-(R - 1), R)): + bad.append(dict(cand=c.name, what='image bound')) + if not all(v['affine'] for v in f.tail_checks.values()): + bad.append(dict(cand=c.name, what='tail not affine', tails=f.tail_checks)) + return dict(name='U4 worst-case finder (enumeration + tail ends) vs a naive loop over a whole toy class', + toy_class='|gw| < 2^10, enumeration to 2^8, synthetic integer target', comparisons=n, + mismatches=bad[:5], pass_=not bad) + + +# ---------------------------------------------------------------------------------------------- U5 +def u5(): + path = sc.REPO / 'research' / 'operators' / 'qwen_m3' / 'bounds.py' + spec = importlib.util.spec_from_file_location('bounds_main', path) + b = importlib.util.module_from_spec(spec) + spec.loader.exec_module(b) + main = {r['relation']: r for r in b.ROWS} + mine = ledger.copied_rows(ledger.SILU_V1, 16, 4096) + bad = [] + for r in mine: + m = main.get(r['relation']) + if m is None or m['bound'] != r['bound'] or m['below_2_63'] != r['below_2_63'] or m['control'] != r['control']: + bad.append(dict(relation=r['relation'], mine=r['bound'], main=None if m is None else m['bound'])) + # PREREG Amendment 2: which rows of bounds.py contain the SiLU image bound is decided by + # arithmetic. The source is evaluated in memory as it is and with SILU one larger; the file on + # disk is not written. A row whose exact bound moves contains the bound. + src = path.read_text() + line = 'SILU = 32741' + assert src.count(line) == 1 + ns0, ns1 = {'__name__': 'bounds_asis'}, {'__name__': 'bounds_silu_plus_1'} + exec(compile(src, 'bounds.py (in memory, as is)', 'exec'), ns0) + exec(compile(src.replace(line, 'SILU = 32742'), 'bounds.py (in memory, SILU + 1)', 'exec'), ns1) + asis_equal = [r['bound'] for r in ns0['ROWS']] == [r['bound'] for r in b.ROWS] + moved = [r0['relation'] for r0, r1 in zip(ns0['ROWS'], ns1['ROWS']) if r0['bound'] != r1['bound']] + not_copied = sorted(set(moved) - {r['relation'] for r in mine}) + copied_not_moved = sorted({r['relation'] for r in mine} - set(moved)) + return dict(name='U5 copied ledger rows vs bounds.ROWS at S = 32,741', copied=len(mine), main_rows=len(b.ROWS), + main_SILU=b.SILU, mismatches=bad, in_memory_copy_equals_import=asis_equal, + main_rows_whose_bound_moves_with_SILU=moved, of_those_not_copied=not_copied, + copied_rows_that_do_not_contain_the_image_bound=copied_not_moved, + note='the SiLU key row contains the table shape, not the image bound; it is copied as well', + pass_=not bad and b.SILU == ledger.SILU_V1 and asis_equal and not not_copied) + + +# ---------------------------------------------------------------------------------------------- U6 +def u6(): + fmt = relation.Fmt(1 << 6, 3) + H, w = 8, 4 + tab = [-3, -1, 2, 5] + cases, bad, total = [], [], 0 + for index in ('floor', 'mid'): + for outside, C in (('clip', None), ('excess', None), ('branch', 0), ('branch', 'row0')): + c = sc.Cand(f'toy-{index}-{outside}-{C}', H, w, index, outside, C=C) + c.set_table(tab) + for variant in ('full', 'no_bits', 'no_R2'): + acc, n_assign = relation.accepted_sets(fmt, c, variant) + total += n_assign + mism, larger, widest = 0, 0, 0 + for gw, got in acc.items(): + want = relation.stated_set(fmt, c, gw, variant) + honest = c.s_point(gw) + if got != want or (variant == 'full' and got != {honest}): + mism += 1 + if len(bad) < 5: + bad.append(dict(cand=c.name, variant=variant, gw=gw, enumerated=sorted(got)[:8], stated=sorted(want)[:8])) + if got != {honest}: + larger += 1 + if got: + widest = max(widest, max(abs(x - honest) for x in got)) + # the honest witness itself must be accepted in every variant + if relation.check(fmt, c, relation.honest_cells(fmt, c, gw), variant): + mism += 1 + if len(bad) < 5: + bad.append(dict(cand=c.name, variant=variant, gw=gw, what='honest witness refused')) + cases.append(dict(cand=c.name, variant=variant, assignments=n_assign, gw_values=len(acc), mismatches=mism, + gw_with_a_set_other_than_the_honest_value=larger, largest_abs_s_minus_honest=widest)) + return dict(name='U6 relation model, exhaustive on a toy format', + toy_format='class |gw| < 2^6, H = 2^3, w = 4 (rows -3, -1, 2, 5), two 3-bit limbs for p and for n', + assignments_checked=total, cases=cases, first_mismatches=bad, pass_=not bad) + + +def main(): + out = sys.argv[1] if len(sys.argv) > 1 else str(sc.HERE / 'unit_tests.json') + t0 = time.time() + points = set(range(0, 4097)) | {16 * i for i in range(0, 2049)} # U2 and U3: the registered unit points only + built = sc.build_target(1 << 15, want=points) + res = dict(experiment='20261129-222-silu-repairs', what='unit tests U1 to U6, before the registered computation', + T_decided_only_at='|gw| <= 4,096 and the grid 16 i, |gw| <= 2^15 (U2, U3), and the points of U1', + undecided_among_those=built['undecided'], + tests=[u1(), u2(built), u3(built), u4(), u5(), u6()]) + res['all_pass'] = all(t['pass_'] for t in res['tests']) and not built['undecided'] + res['wall_s_display'] = round(time.time() - t0, 1) + open(out, 'w').write(json.dumps(res, indent=1) + '\n') + print(json.dumps(dict(all_pass=res['all_pass'], tests={t['name'][:2]: t['pass_'] for t in res['tests']}, wall_s=res['wall_s_display']))) + raise SystemExit(0 if res['all_pass'] else 1) + + +if __name__ == '__main__': + main() diff --git a/experiments/20261129-222-silu-repairs/unit_tests.run1-failed.json b/experiments/20261129-222-silu-repairs/unit_tests.run1-failed.json new file mode 100644 index 00000000..0ac0854c --- /dev/null +++ b/experiments/20261129-222-silu-repairs/unit_tests.run1-failed.json @@ -0,0 +1,282 @@ +{ + "experiment": "20261129-222-silu-repairs", + "what": "unit tests U1 to U6, before the registered computation", + "T_decided_only_at": "|gw| <= 4,096 and the grid 16 i, |gw| <= 2^15 (U2, U3), and the points of U1", + "undecided_among_those": [], + "tests": [ + { + "name": "U1 enclosure recurrence vs independent enclosure", + "points": 2058, + "expected_points": 2058, + "mismatches": [], + "pass_": true + }, + { + "name": "U2 T(0), antisymmetry identity, float64 cross-check on |gw| <= 4096", + "T0": 0, + "identity_failures": [], + "float_checked": 8193, + "float_skipped_near_half": 0, + "float_disagreements": [], + "note": "float64 is used here only as a cross-check that must agree; it decides no reported number", + "pass_": true + }, + { + "name": "U3 the 4,096 pinned v1 rows vs T(16 (i - 2048))", + "rows": 4096, + "differing": 0, + "first": [], + "row0": -11, + "row4095": 32741, + "max_abs": 32741, + "min_row": -1141, + "pass_": true + }, + { + "name": "U4 worst-case finder (enumeration + tail ends) vs a naive loop over a whole toy class", + "toy_class": "|gw| < 2^10, enumeration to 2^8, synthetic integer target", + "comparisons": 180, + "mismatches": [], + "pass_": true + }, + { + "name": "U5 copied ledger rows vs bounds.ROWS at S = 32,741", + "copied": 12, + "main_rows": 37, + "main_SILU": 32741, + "mismatches": [], + "main_rows_naming_the_silu_table_not_copied": [ + "softplus key: ar + dt_bias - step (idx - off) - r" + ], + "note": "recurrence g6 and the delta row contain v through (v - M); they are copied", + "pass_": false + }, + { + "name": "U6 relation model, exhaustive on a toy format", + "toy_format": "class |gw| < 2^6, H = 2^3, w = 4 (rows -3, -1, 2, 5), two 3-bit limbs for p and for n", + "assignments_checked": 3918186, + "cases": [ + { + "cand": "toy-floor-clip-None", + "variant": "full", + "assignments": 65332, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-floor-clip-None", + "variant": "no_bits", + "assignments": 65332, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-floor-clip-None", + "variant": "no_R2", + "assignments": 65332, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 127, + "largest_abs_s_minus_honest": 8 + }, + { + "cand": "toy-floor-excess-None", + "variant": "full", + "assignments": 65332, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-floor-excess-None", + "variant": "no_bits", + "assignments": 65332, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-floor-excess-None", + "variant": "no_R2", + "assignments": 65332, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 127, + "largest_abs_s_minus_honest": 65 + }, + { + "cand": "toy-floor-branch-0", + "variant": "full", + "assignments": 261311, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-floor-branch-0", + "variant": "no_bits", + "assignments": 261311, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 111, + "largest_abs_s_minus_honest": 3 + }, + { + "cand": "toy-floor-branch-0", + "variant": "no_R2", + "assignments": 261311, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 127, + "largest_abs_s_minus_honest": 71 + }, + { + "cand": "toy-floor-branch-row0", + "variant": "full", + "assignments": 261311, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-floor-branch-row0", + "variant": "no_bits", + "assignments": 261311, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 56, + "largest_abs_s_minus_honest": 2 + }, + { + "cand": "toy-floor-branch-row0", + "variant": "no_R2", + "assignments": 261311, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 127, + "largest_abs_s_minus_honest": 68 + }, + { + "cand": "toy-mid-clip-None", + "variant": "full", + "assignments": 65281, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-mid-clip-None", + "variant": "no_bits", + "assignments": 65281, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-mid-clip-None", + "variant": "no_R2", + "assignments": 65281, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 127, + "largest_abs_s_minus_honest": 8 + }, + { + "cand": "toy-mid-excess-None", + "variant": "full", + "assignments": 65281, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-mid-excess-None", + "variant": "no_bits", + "assignments": 65281, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-mid-excess-None", + "variant": "no_R2", + "assignments": 65281, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 127, + "largest_abs_s_minus_honest": 65 + }, + { + "cand": "toy-mid-branch-0", + "variant": "full", + "assignments": 261107, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-mid-branch-0", + "variant": "no_bits", + "assignments": 261107, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 53, + "largest_abs_s_minus_honest": 3 + }, + { + "cand": "toy-mid-branch-0", + "variant": "no_R2", + "assignments": 261107, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 127, + "largest_abs_s_minus_honest": 69 + }, + { + "cand": "toy-mid-branch-row0", + "variant": "full", + "assignments": 261107, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-mid-branch-row0", + "variant": "no_bits", + "assignments": 261107, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-mid-branch-row0", + "variant": "no_R2", + "assignments": 261107, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 127, + "largest_abs_s_minus_honest": 66 + } + ], + "first_mismatches": [], + "pass_": true + } + ], + "all_pass": false, + "wall_s_display": 12.7 +} diff --git a/experiments/20261129-222-silu-repairs/unit_tests.run2-failed.json b/experiments/20261129-222-silu-repairs/unit_tests.run2-failed.json new file mode 100644 index 00000000..056e5103 --- /dev/null +++ b/experiments/20261129-222-silu-repairs/unit_tests.run2-failed.json @@ -0,0 +1,297 @@ +{ + "experiment": "20261129-222-silu-repairs", + "what": "unit tests U1 to U6, before the registered computation", + "T_decided_only_at": "|gw| <= 4,096 and the grid 16 i, |gw| <= 2^15 (U2, U3), and the points of U1", + "undecided_among_those": [], + "tests": [ + { + "name": "U1 enclosure recurrence vs independent enclosure", + "points": 2058, + "expected_points": 2058, + "mismatches": [], + "pass_": true + }, + { + "name": "U2 T(0), antisymmetry identity, float64 cross-check on |gw| <= 4096", + "T0": 0, + "identity_failures": [], + "float_checked": 8193, + "float_skipped_near_half": 0, + "float_disagreements": [], + "note": "float64 is used here only as a cross-check that must agree; it decides no reported number", + "pass_": true + }, + { + "name": "U3 the 4,096 pinned v1 rows vs T(16 (i - 2048))", + "rows": 4096, + "differing": 0, + "first": [], + "row0": -11, + "row4095": 32741, + "max_abs": 32741, + "min_row": -1141, + "pass_": true + }, + { + "name": "U4 worst-case finder (enumeration + tail ends) vs a naive loop over a whole toy class", + "toy_class": "|gw| < 2^10, enumeration to 2^8, synthetic integer target", + "comparisons": 180, + "mismatches": [], + "pass_": true + }, + { + "name": "U5 copied ledger rows vs bounds.ROWS at S = 32,741", + "copied": 12, + "main_rows": 37, + "main_SILU": 32741, + "mismatches": [], + "in_memory_copy_equals_import": true, + "main_rows_whose_bound_moves_with_SILU": [ + "q/k norm S5: sum x^2 + eps - sigma^2 - e1", + "q/k norm S6: sigma^2 + 2 sigma - sum x^2 - eps - e2", + "k: x Rc - 2^24 k - r", + "q: 362 Rc x - 2^36 q - r", + "recurrence: 2^24 (v - M) + r - g5", + "recurrence g6 = (v - M) beta", + "recurrence: 2^12 delta + r - g6, delta = 2^18 hi + lo", + "gated norm: s w - 2^12 t - r", + "M3a-MLP: s u - 2^12 h - r (r2)", + "CONTROL, r1 M3a-MLP down: sum_j (s u)_j Wd_jk (product unrounded)" + ], + "of_those_not_copied": [], + "copied_rows_that_do_not_contain_the_image_bound": [ + "M3a-MLP down (r2): sum_j h_j Wd_jk - 2^s out - r", + "SiLU key: c - step (idx - off) - r" + ], + "note": "the SiLU key row contains the table shape, not the image bound; it is copied as well", + "pass_": false + }, + { + "name": "U6 relation model, exhaustive on a toy format", + "toy_format": "class |gw| < 2^6, H = 2^3, w = 4 (rows -3, -1, 2, 5), two 3-bit limbs for p and for n", + "assignments_checked": 3918186, + "cases": [ + { + "cand": "toy-floor-clip-None", + "variant": "full", + "assignments": 65332, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-floor-clip-None", + "variant": "no_bits", + "assignments": 65332, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-floor-clip-None", + "variant": "no_R2", + "assignments": 65332, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 127, + "largest_abs_s_minus_honest": 8 + }, + { + "cand": "toy-floor-excess-None", + "variant": "full", + "assignments": 65332, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-floor-excess-None", + "variant": "no_bits", + "assignments": 65332, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-floor-excess-None", + "variant": "no_R2", + "assignments": 65332, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 127, + "largest_abs_s_minus_honest": 65 + }, + { + "cand": "toy-floor-branch-0", + "variant": "full", + "assignments": 261311, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-floor-branch-0", + "variant": "no_bits", + "assignments": 261311, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 111, + "largest_abs_s_minus_honest": 3 + }, + { + "cand": "toy-floor-branch-0", + "variant": "no_R2", + "assignments": 261311, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 127, + "largest_abs_s_minus_honest": 71 + }, + { + "cand": "toy-floor-branch-row0", + "variant": "full", + "assignments": 261311, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-floor-branch-row0", + "variant": "no_bits", + "assignments": 261311, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 56, + "largest_abs_s_minus_honest": 2 + }, + { + "cand": "toy-floor-branch-row0", + "variant": "no_R2", + "assignments": 261311, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 127, + "largest_abs_s_minus_honest": 68 + }, + { + "cand": "toy-mid-clip-None", + "variant": "full", + "assignments": 65281, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-mid-clip-None", + "variant": "no_bits", + "assignments": 65281, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-mid-clip-None", + "variant": "no_R2", + "assignments": 65281, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 127, + "largest_abs_s_minus_honest": 8 + }, + { + "cand": "toy-mid-excess-None", + "variant": "full", + "assignments": 65281, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-mid-excess-None", + "variant": "no_bits", + "assignments": 65281, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-mid-excess-None", + "variant": "no_R2", + "assignments": 65281, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 127, + "largest_abs_s_minus_honest": 65 + }, + { + "cand": "toy-mid-branch-0", + "variant": "full", + "assignments": 261107, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-mid-branch-0", + "variant": "no_bits", + "assignments": 261107, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 53, + "largest_abs_s_minus_honest": 3 + }, + { + "cand": "toy-mid-branch-0", + "variant": "no_R2", + "assignments": 261107, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 127, + "largest_abs_s_minus_honest": 69 + }, + { + "cand": "toy-mid-branch-row0", + "variant": "full", + "assignments": 261107, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-mid-branch-row0", + "variant": "no_bits", + "assignments": 261107, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 0, + "largest_abs_s_minus_honest": 0 + }, + { + "cand": "toy-mid-branch-row0", + "variant": "no_R2", + "assignments": 261107, + "gw_values": 127, + "mismatches": 0, + "gw_with_a_set_other_than_the_honest_value": 127, + "largest_abs_s_minus_honest": 66 + } + ], + "first_mismatches": [], + "pass_": true + } + ], + "all_pass": false, + "wall_s_display": 12.6 +} diff --git a/research/results.yaml b/research/results.yaml index 29912a2c..c0bd79d9 100644 --- a/research/results.yaml +++ b/research/results.yaml @@ -2090,3 +2090,21 @@ 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-silu-stage-repairs-222 + title: "Qwen M3 SiLU stage repairs: exact worst-case error of 22 candidate operators over the whole range-checked class, and the ledger rows each moves (desk note, issue #222)" + status: "measured" + status_note: "(computed with exact arithmetic; nothing measured on a model, no proof built)" + replication: "unreplicated" + pr: 235 + summary: "Computed with exact integer and rational arithmetic, unreplicated; no model, no weights, no proof, no token measurement. Against T = RNE(2^12 silu(gw / 2^12)) over every integer |gw| < 2^23 (enumeration to 2^20, a checked tail lemma beyond; 0 undecided; the 4,096 pinned v1 rows equal T at their grid points). Registered threshold (MLP use): HOLDS, 9 of 22 registered candidates meet all three items (every range-proved branch and every excess form): worst error on [2^15, 2^23) 3 to 26 units of 2^-12 (bar 32), every MLP ledger row below 2^63 (worst 2^55.024, s u row 2^47.0), selector or excess witnesses bound by two relations (hand argument, exhaustive on a toy format, 21 listed assignments each for two candidates at the real format). NEGATIVE for sharing: if the same operator also replaces the SiLU where bounds.py uses its image bound outside the MLP, the row q: 362 Rc x - 2^36 q - r is 2^68.5 at the class-edge bound and 2^67.5 at the exact image for all 9, above 2^63; no other shared row fails. All 13 clip candidates (midpoint index, finer step, wider table) keep every row and fail the error item: 8,126,479 to 8,355,866 units at the class edge. v1 in its domain: worst 17, mean -3.7439; midpoint index: worst 9 on its table range, mean 0.2541. floor(s u / 2^12) needs 36 bits for branch or excess, which is also the largest exact h class that keeps the down projection below 2^63 (2^62.098). NOT established: any token effect or token bar; a built statement or its soundness (the lowering is counted, not implemented, and the binding argument is not reviewed); whether the q path can keep its own bounded operator; how often honest h reaches 2^23" + conditions: "Preregistered (experiments/20261129-222-silu-repairs/PREREG.md first and alone; three dated amendments, each committed before the computation it covers, and one appended time-correction note); Python 3.12.3 standard library, integers and fractions only (float64 in one cross-check unit test and in log2 display columns); CPU, cores 2-5 of a shared loaded host, about 13 s and 260 MiB per run; the registered computation run twice, outputs byte-identical (a registered exception to the five-run standard: no run-to-run variance); bounds.py and count_m3.py imported unchanged, ledger rows copied with attribution; unit tests passed on the third run, the two failed outputs are committed; deviations listed in RESULTS.md" + evidence: ["experiments/20261129-222-silu-repairs/RESULTS.md", "experiments/20261129-222-silu-repairs/PREREG.md", "experiments/20261129-222-silu-repairs/ENV.json", "experiments/20261129-222-silu-repairs/runs/run-1.json", "experiments/20261129-222-silu-repairs/runs/table.md", "experiments/20261129-222-silu-repairs/unit_tests.json", "experiments/20261129-222-silu-repairs/README.md"] + metrics: + - {"name": "silu222_candidates_meeting_registered_items", "stat": "count", "value": 9, "total": 22, "unit": "count", "n": 22, "spread": null, "source": "experiments/20261129-222-silu-repairs/runs/run-1.json", "note": "candidates meeting threshold items 1 to 3 for the MLP use (d0, d1, e1 to e7); items 1 and 2 are in the file, item 3 rests on the argument in RESULTS.md, unit test U6 and the relation cases; exact arithmetic, deterministic, two byte-identical runs, spread null; computed, unreplicated", "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "6e25a7089d60cd1e3adc2258ab09fc7bd99d651c"} + - {"name": "silu222_passing_candidates_keeping_shared_q_row", "stat": "count", "value": 0, "total": 9, "unit": "count", "n": 9, "spread": null, "source": "experiments/20261129-222-silu-repairs/runs/run-1.json", "note": "of the 9 candidates above, those whose shared-use row q: 362 Rc x - 2^36 q - r stays below 2^63 (2^68.5 at the class-edge bound, 2^67.5 at the exact image); exact arithmetic, deterministic, two byte-identical runs, spread null; computed, unreplicated", "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "6e25a7089d60cd1e3adc2258ab09fc7bd99d651c"} + - {"name": "silu222_v1_max_abs_err_in_domain", "stat": "max", "value": 17, "unit": "int", "n": 65536, "spread": null, "source": "experiments/20261129-222-silu-repairs/runs/run-1.json", "note": "v1 table, floor index: max |s - T| over the 65,536 integers of [-2^15, 2^15), units of 2^-12, attained at gw = 7,023; exact arithmetic, deterministic, two byte-identical runs, spread null; computed, unreplicated", "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "6e25a7089d60cd1e3adc2258ab09fc7bd99d651c"} + - {"name": "silu222_v1_max_abs_err_whole_class", "stat": "max", "value": 8355866, "unit": "int", "n": 16777215, "spread": null, "source": "experiments/20261129-222-silu-repairs/runs/run-1.json", "note": "v1 with the clip: max |s - T| over the class |gw| < 2^23, units of 2^-12, attained at gw = 2^23 - 1; enumeration to 2^20 and tail ends beyond; exact arithmetic, deterministic, two byte-identical runs, spread null; computed, unreplicated", "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "6e25a7089d60cd1e3adc2258ab09fc7bd99d651c"} + - {"name": "silu222_branch_d0_max_abs_err_high_side", "stat": "max", "value": 11, "unit": "int", "n": 8355840, "spread": null, "source": "experiments/20261129-222-silu-repairs/runs/run-1.json", "note": "d0 (v1 rows, s = gw above the table, 0 below): max |s - T| over the integers of [2^15, 2^23), units of 2^-12, at gw = 32,768; exact arithmetic, deterministic, two byte-identical runs, spread null; computed, unreplicated", "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "6e25a7089d60cd1e3adc2258ab09fc7bd99d651c"} + - {"name": "silu222_excess_e5_max_abs_err_high_side", "stat": "max", "value": 26, "unit": "int", "n": 8355840, "spread": null, "source": "experiments/20261129-222-silu-repairs/runs/run-1.json", "note": "e5 (v1 rows continued with slope 1): max |s - T| over the integers of [2^15, 2^23), units of 2^-12; exact arithmetic, deterministic, two byte-identical runs, spread null; computed, unreplicated", "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "6e25a7089d60cd1e3adc2258ab09fc7bd99d651c"} + - {"name": "silu222_h_bits_needed_branch_or_excess", "stat": "single", "value": 36, "unit": "int", "n": 9, "spread": null, "source": "experiments/20261129-222-silu-repairs/runs/run-1.json", "note": "smallest B with every floor(s u / 2^12) of the class inside [-2^B, 2^B) at the class-edge image bound, the same for the 9 branch and excess candidates; equals the largest B that keeps the down projection below 2^63; exact arithmetic, deterministic, two byte-identical runs, spread null; computed, unreplicated", "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "6e25a7089d60cd1e3adc2258ab09fc7bd99d651c"}