Skip to content

Commit a5afc8c

Browse files
Tune PR #555's punctured R439 bit word with two A-section transports: nine-stage c 0.001733427039589844234749
Hoist one summand of a D4 mini-node gate to its rank-1 frame and sink another to the rank-7 pseudo-total frame (tune/moves.json, tune/apply.py), found by running the mechanisms of PR #541, #542 and #548 as generic searches on PR #555's word. Nine-stage c +0.0216% (eleven-stage 0.001710951900777583975622, +0.0201%); kappa unchanged (complex-bound). tune/verify.sh replays the stacked word through PR #555's chains; PR #555's verify.sh is unchanged. MANIFEST.sha256 lists tune/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 65a6bc1 commit a5afc8c

12 files changed

Lines changed: 1169 additions & 1 deletion

File tree

‎research/e8-bit-p111/MANIFEST.sha256‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ fa9253078c444b8f4a57e849048f727c3c8233c3dc3c7f651bef2cf7bb0178c5 DEPENDS.json
22
7c2675fd49afd7e328606399a4421fd49c43fe8a6c5b57154cc908c00588abe2 EXPECTED.json
33
c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 LICENSE
44
5b88eb2b7de76aa2a3288ee3c7a08d18a5eadfa82f5e7a99e207d232aed71221 NOTICE.md
5-
481431e35bd831ec3d0bb8edc01abdfa49d5caeabebab67ac839a35053e9ef85 README.md
5+
a054ce8453e2936d45c4edd1c3678993903fcf6705ac241b9f1a4c4f9accda2d README.md
66
5e84c26ba837ce029acd1b5089e5533d2ebde793deede84215322112e95e06f8 SOURCE-pr510.json
77
74254fde5cff5580d5c199b139ff3ce31a3defded3f653a3ba83cf0c9204ddc4 SOURCE-pr535.json
88
9ae1cfa69158f678499510e9cf24396b2bdd9b68979e906cbb8d4ee29b63e0b9 SOURCE-pr544.json
@@ -36,6 +36,16 @@ dd371e1d6fe57602f242920b582ec4c133efc8ede4a849fd701ac90b7f6e1853 data/punct.jso
3636
18d77e8f62ffc671b3b3d3e50626c03481a2eaf6fb4abbc131e08226feebc180 discovery/choose.py
3737
edd876212edf0db3f6620534dcf50b5d2c23197c2d5f8af8c030ed5bc8447923 discovery/search.py
3838
e11a6f5c2a40b77fbf54a31a4c45bac575e9d2f765d35b657406d5f088fd0664 requirements.txt
39+
b9f0e5ca038abe837b0007c8fe006f366a6f02009244ac57705a8a200e2301f4 tune/EXPECTED.json
40+
46c7917fb252949f38b7bcd88cf568efc282e3ea065b61d11e457e41673d0b2d tune/README.md
41+
806ae4cb2648e4f05dcf56bd089891fd3ba33a6ee5fe76d3329e322c6770c1a1 tune/apply.py
42+
e3e301e62bc2b41dbf1ceac0acf3d35824ebeab1848c5a2142d4577b109da52f tune/bitE8mut-p111-tuned.json.gz
43+
ae51f1fbb22b8c8dac8aab787c798361f6aa5d4e1fefb29e43d0197899d4eab5 tune/fastc.py
44+
a113933002239eb2dd32726bd572ba8ca41b5bce0d438327dd770754c8d5e0f4 tune/moves.json
45+
24841f9f5b039f05cfa934295203c982faf181cf28b9b1a71e50d1a35dc723d0 tune/summary.py
46+
bdaf632852c514b257bcb1b81004a942fc022ab876565b4e5f6ff5a038d323c2 tune/tune.py
47+
efb1051d3e2c6119574a29a8e4efbe316307b5901d05079d029e12fae9ff1fb1 tune/verify.sh
48+
a37fdf3cdf5f62945c2a90193401c0e9edc9dd3cda8d8cb36a3b9c329ebe4dbc tune/wlib.py
3949
92e399e9a486b55229b5624632ac54f800dd9e022f2aee97f1e5f264bbc0ef5c vendor/pr510/e8-r480-dead-totals/data/bitE8mut-r480.json.gz
4050
883f7a1a84f31d9e4430e348bc8d9c1ec10210b206ff602dbe126349056af13d vendor/pr510/e8-r480-nine-stage/EXPECTED.json
4151
27b6b77cc4ebf439f9019e63a22dedc1ef72ee65fe120aad3d17316b1df06d7b vendor/pr510/e8-r480-nine-stage/code/adapt.py

‎research/e8-bit-p111/README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,5 @@ minutes on 4 cores (the two controls run in the background).
154154
`punct_cfg.py`, and its word, hosting selection and EXPECTED.json (control).
155155
- `discovery/` (not run by `verify.sh`): the nomination of P and of the generator parameters.
156156
- `DEPENDS.json`: the files of main this package uses, pinned.
157+
- `tune/`: two A-section transports of this word (nine-stage c 0.001733427039589844234749, +0.0216%; eleven-stage 0.001710951900777583975622;
158+
no κ changes), with its own `tune/verify.sh`. This `verify.sh` is unchanged and checks the untuned word.
Lines changed: 222 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,222 @@
1+
{
2+
"word": {
3+
"file": "tune/bitE8mut-p111-tuned.json.gz",
4+
"file_sha256": "e3e301e62bc2b41dbf1ceac0acf3d35824ebeab1848c5a2142d4577b109da52f",
5+
"content_sha256": "5642fd0e35a1acc11acff8d0c08350c1617e95f310d4d35ad63a651f9eeeba0b",
6+
"v": 111,
7+
"R": 439,
8+
"punctured": [
9+
10,
10+
15,
11+
51,
12+
53,
13+
56,
14+
66,
15+
72,
16+
89,
17+
111
18+
],
19+
"retained_totals": 9,
20+
"copy_ranks": [
21+
7,
22+
7,
23+
7,
24+
7,
25+
7,
26+
7,
27+
7,
28+
7,
29+
7
30+
],
31+
"decoder_constant": 63,
32+
"gates": {
33+
"D": 111,
34+
"A": 2075,
35+
"B": 712,
36+
"C": 2574
37+
},
38+
"local_histogram": {
39+
"1": 1323,
40+
"2": 1342,
41+
"3": 79,
42+
"4": 44,
43+
"5": 102,
44+
"6": 11,
45+
"7": 19
46+
},
47+
"legality": {
48+
"records": 27234,
49+
"common_frame_ADDs": 24305,
50+
"rank_mass": 5129
51+
},
52+
"five_stage_columns": 883,
53+
"five_stage_payload_bits": 93,
54+
"nine_stage_columns": 1327,
55+
"nine_stage_payload_bits": 93,
56+
"eleven_stage_columns": 1549,
57+
"eleven_stage_payload_bits": 93,
58+
"base_content_sha256": "d0df3c89ae84989f4045ba1681a5e2e9fcdfa38ed0301c8abf5185537155cbe3"
59+
},
60+
"interface": {
61+
"hypotheses": {
62+
"H1_no_target_feeds_z": true,
63+
"H2_D_frame0_targets_from_helpers": true,
64+
"H3_A_z_only_scatter_targets_B_split": true,
65+
"H4_C_literal_reverse_at_full": true,
66+
"H5_V_identity": true
67+
},
68+
"conclusion": {
69+
"U_block_form": true,
70+
"J_identity": true,
71+
"K_equals_D": true,
72+
"C_is_U_inverse": true
73+
},
74+
"interleaving": {
75+
"z_gates_A": 2075,
76+
"source_writes_A": 0,
77+
"z_gates_B": 499,
78+
"source_writes_B": 483,
79+
"helper_writes_B": 16,
80+
"sources_rewritten_B": 108,
81+
"B_z_write_frame_dims": {
82+
"4": 388,
83+
"6": 111
84+
},
85+
"B_z_operand_kinds": {
86+
"helper<-helper": 3,
87+
"helper<-source": 13,
88+
"source<-helper": 108,
89+
"source<-source": 375
90+
},
91+
"B_z_operand_kinds_by_dim": {
92+
"dim4:helper<-source": 13,
93+
"dim4:source<-source": 375,
94+
"dim6:helper<-helper": 3,
95+
"dim6:source<-helper": 108
96+
},
97+
"B_z_writes_after_a_target_read_of_the_same_register": 454,
98+
"B_target_reads_of_registers_rewritten_earlier_in_B": 111,
99+
"target_reads_of_targets": 0,
100+
"cleanup_gates": 2574
101+
}
102+
},
103+
"nine": {
104+
"pipeline": "PR #510 (PR #463 nine-stage template, 32 replicas, PR #442 hosting, PR #493 outer assembly), parameterised for v <= 120 by code/adapt9p.py",
105+
"bit_lower": "1733427039589844234749/1000000000000000000000000",
106+
"bit_lower_decimal": "0.001733427039589844234749",
107+
"profile": {
108+
"1": 381024,
109+
"2": 400416,
110+
"3": 22752,
111+
"4": 26880,
112+
"5": 29376,
113+
"6": 17376,
114+
"7": 26784,
115+
"42": 288
116+
},
117+
"bit": {
118+
"live": 28416,
119+
"physical": 28425,
120+
"maxchild": 42,
121+
"rank_mass": 1808352,
122+
"hosted_residuals": 126432,
123+
"bank_assignments": 0,
124+
"prefix_bits": 177,
125+
"charged_prefix_bits": 192,
126+
"coefficient_bits": 177,
127+
"two_level_coefficient_bits": 393,
128+
"charged_two_level_coefficient_bits": 512,
129+
"row_coefficient": 18355,
130+
"halving_depth": 2
131+
},
132+
"kappa": {
133+
"pr548": {
134+
"kappa": "49718254847979/31250000000000000",
135+
"kappa_decimal": "0.001590984155135328",
136+
"complex_lower": "796759709641153381751/500000000000000000000000",
137+
"binding_component": "complex"
138+
},
139+
"pr544": {
140+
"kappa": "397677800014309/250000000000000000",
141+
"kappa_decimal": "0.001590711200057236",
142+
"complex_lower": "31864911873350496687/20000000000000000000000",
143+
"binding_component": "complex"
144+
},
145+
"pr535": {
146+
"kappa": "793733736881443/500000000000000000",
147+
"kappa_decimal": "0.001587467473762886",
148+
"complex_lower": "1589991533606044174031/1000000000000000000000000",
149+
"binding_component": "complex"
150+
},
151+
"pr531": {
152+
"kappa": "1517760977820331/1000000000000000000",
153+
"kappa_decimal": "0.001517760977820331",
154+
"complex_lower": "304013615566499291631/200000000000000000000000",
155+
"binding_component": "complex"
156+
}
157+
}
158+
},
159+
"eleven": {
160+
"pipeline": "PR #493 (PR #445 geometry, PR #472 emitter, audit and invoice, PR #442 hosting), parameterised by PR #545's code/adapt.py",
161+
"bit_lower": "855475950388791987811/500000000000000000000000",
162+
"bit_lower_decimal": "0.001710951900777583975622",
163+
"profile": {
164+
"1": 116424,
165+
"2": 121648,
166+
"3": 6952,
167+
"4": 7424,
168+
"5": 8976,
169+
"6": 4520,
170+
"7": 8776,
171+
"56": 2600
172+
},
173+
"bit": {
174+
"live": 8880,
175+
"physical": 8889,
176+
"maxchild": 56,
177+
"rank_mass": 689304,
178+
"hosted_residuals": 38632,
179+
"prefix_bits": 4304,
180+
"charged_prefix_bits": 4352,
181+
"coefficient_bits": 4304,
182+
"three_level_coefficient_bits": 12966,
183+
"charged_three_level_coefficient_bits": 12992,
184+
"row_coefficient": 19431,
185+
"halving_depth": 3
186+
},
187+
"emitted_program_sha256": "793b6f40c9aa4b8db57fec0ac0973e16884dae28707e482ee8f7a2349a5d5a4b",
188+
"kappa": {
189+
"pr548": {
190+
"kappa": "49718254847979/31250000000000000",
191+
"kappa_decimal": "0.001590984155135328",
192+
"complex_lower": "796759709641153381751/500000000000000000000000",
193+
"binding_component": "complex"
194+
},
195+
"pr544": {
196+
"kappa": "397677800014309/250000000000000000",
197+
"kappa_decimal": "0.001590711200057236",
198+
"complex_lower": "31864911873350496687/20000000000000000000000",
199+
"binding_component": "complex"
200+
},
201+
"pr535": {
202+
"kappa": "793733736881443/500000000000000000",
203+
"kappa_decimal": "0.001587467473762886",
204+
"complex_lower": "1589991533606044174031/1000000000000000000000000",
205+
"binding_component": "complex"
206+
},
207+
"pr531": {
208+
"kappa": "1517760977820331/1000000000000000000",
209+
"kappa_decimal": "0.001517760977820331",
210+
"complex_lower": "304013615566499291631/200000000000000000000000",
211+
"binding_component": "complex"
212+
}
213+
}
214+
},
215+
"base": {
216+
"nine_bit_lower": "1733052823330162099157/1000000000000000000000000",
217+
"nine_bit_lower_decimal": "0.001733052823330162099157",
218+
"eleven_bit_lower": "427652201524503168379/250000000000000000000000",
219+
"eleven_bit_lower_decimal": "0.001710608806098012673516",
220+
"note": "PR #555's EXPECTED.json (untuned word); the tune/ pipeline is the same, with the same frozen hosting selections"
221+
}
222+
}
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# PR #555's punctured R439 bit word with two A-section transports
2+
3+
Two helper additions of PR #555's word (`data/bitE8mut-p111.json.gz`, v = 111, R = 439) are moved out of the D4 block-frame
4+
mini-node gates they sit in and rerun at other frames. Nothing else changes: same registers, same scatter, same retained
5+
totals (nine COPY ranks of 7, decoder constant 63), same frozen hosting selections, same pipelines.
6+
7+
| | PR #555 | this word | change |
8+
|---|---|---|---|
9+
| bit c, nine stages (PR #510's chain, 32 replicas, parameterised by `code/adapt9p.py`) | 0.001733052823330162099157 | **0.001733427039589844234749** (`1733427039589844234749/10^24`) | +0.0216% |
10+
| bit c, eleven stages (PR #493's chain as parameterised by PR #545's `adapt.py`) | 0.001710608806098012673516 | **0.001710951900777583975622** (`855475950388791987811/(5·10^23)`) | +0.0201% |
11+
| κ with #548's complex b (0.001593519419282307) | 0.001590984155135328 | 0.001590984155135328 | none |
12+
13+
κ is complex-bound for every cited complex supplier (#548, #544, #535, #531), exactly as with #555's word, so this changes
14+
no κ. The gain is bit headroom only: c is above every cited complex b (the largest, #548's, is 0.0015935), so the bit side
15+
does not bind. The local paid profile goes from `{1:1321, 2:1342, 3:80, 4:47, 5:102, 6:10, 7:18}` to
16+
`{1:1323, 2:1342, 3:79, 4:44, 5:102, 6:11, 7:19}` (rank mass 5,129 both; 27,234 records, 24,305 common-frame ADDs, payload
17+
93 bits, 636 frames, all unchanged); the nine-stage global profile is `{1:381024, 2:400416, 3:22752, 4:26880, 5:29376,
18+
6:17376, 7:26784, 42:288}`.
19+
20+
## What changed (`moves.json`, applied by `apply.py`)
21+
22+
Both moves take one summand out of a mini-node gate of phase A (the nine phase-A gates at the four D4 block frames 506-509, rank 4,
23+
that carry a pseudo-target's B-part; gate and register numbers are those of the base word, helper h is register 222 + h):
24+
25+
- **hoist.** A[1993] is `helper 222 += {x17, h49, h71, h130, h191, h246, h248, h249}` at frame 509 (rank 4). The summand
26+
`helper 222 += helper 248` (register 444 += 470) becomes its own gate at rank-1 frame 79, placed immediately before that gate.
27+
- **sink.** A[1994] is `helper 191 += {x17, h49, h71, h130, h149, h247, h249}` at frame 509. The summand `helper 191 += helper
28+
247` (register 413 += 469) becomes its own gate at rank-7 frame 517, the frame of the gate `helper 257 += helper 191 + helper
29+
74` (helper 257 is a retained total), placed immediately after base gate 2028.
30+
31+
Each move factors a multi-source addition, moves one summand across additions that commute with it and gives it another
32+
frame from the existing catalogue; the dirty-register endpoint is unchanged on every column. C is rebuilt as the literal
33+
reverse of the z-destination gates of A and B at the full frame (A has 2,075 gates, C 2,574). The profile changes by
34+
`+2 e1 − e3 − 3 e4 + e6 + e7`, a zero rank-mass change. The independent checker (`xcheck_p.py`, with the interface lemma
35+
H1-H5 and its word-level mutation controls) and the official cohort checkers accept the word, and the hosting programmes
36+
rediscover the frozen selections.
37+
38+
## Where the moves come from, and why #541/#542/#548's move lists are not reused
39+
40+
The mechanisms are those of three open PRs on PR #510's R480 word: Dugongue's #541 (factor a multi-source helper addition, move
41+
one summand across its commuting prefix and give it the source's rank-1 frame: the *hoist* is an instance of the same mechanism, applied to a helper summand already at a rank-1 frame rather than a source), Dugongue's #548
42+
(observable pruning, frame-sensitive transports, Steinberg three-to-two cancellations: the *sink* is a transport of that kind) and
43+
rohanarun's #542 (observable slice and least-frame assignment, on the same word). Their published moves are lists of R480 gate
44+
numbers: the 60 two-x-source helper additions, the 227 zero-response gates of R480's dead totals, 20 transports and 7
45+
cancellations by id. PR #555's word comes from the R420 L3 skeleton: it has no two-x-source additions and no zero-response
46+
gates, and its gate numbering is different, so the lists cannot be applied. `tune.py` therefore re-runs the mechanisms as
47+
searches on the word's elementary-operation form (one source per gate): single-operation transport with reframing under
48+
exact commutation and frame nesting, Steinberg 3→2 with frame re-choice, frame reassignment, and the pruning and least-frame
49+
steps. Run on the R480 word, the same code reproduces #541's local profile `{1:1260, 2:1320, 3:60, 4:180, 6:120, 8:9}` and
50+
#548's `{1:1257, 2:1330, 3:43, 4:163, 6:137, 8:9}` exactly. Run on PR #555's word to a fixed point, it applies exactly the two
51+
moves above; the pruning, Steinberg and least-frame steps have nothing to apply that lowers the moment. `apply.py --discover`
52+
repeats that search inside `verify.sh` and asserts that it returns this word. The greedy search is not claimed optimal.
53+
54+
## Files
55+
56+
- `moves.json`, `apply.py`: the two moves, pinned to the base word's content hash, and their application with an exact replay.
57+
- `bitE8mut-p111-tuned.json.gz`: the tuned word (rebuilt byte for byte by `verify.sh`).
58+
- `tune.py`, `wlib.py`: the search engines (numpy) and the exact replay and paid-profile code.
59+
- `fastc.py`: a quick exact pricer, `c = certify(288 × local paid profile + idle remainder, 64, 28416)`; the remainder is read off
60+
the base word's hosted audit. `verify.sh` checks that it equals the pipeline's c; it is not a substitute for the pipeline.
61+
- `verify.sh`, `summary.py`, `EXPECTED.json`: the checks and every number.
62+
63+
## Checks
64+
65+
```sh
66+
python -m pip install -r research/e8-bit-p111/requirements.txt
67+
bash research/e8-bit-p111/tune/verify.sh /absolute/new/output
68+
```
69+
70+
Python 3.11+ with numpy, sympy and scipy, a C++17 compiler (`CXX`) and Boost headers (`BOOST_INCLUDE`). The script rebuilds the
71+
base word from #555's frozen plan, applies the moves and compares both byte for byte, runs the independent replay, the interface lemma,
72+
the word-level and record-level mutation controls, the official legality and formal-column checkers at five, nine and eleven stages,
73+
the Gram witnesses, and both price pipelines on the tuned word, and asserts the nine-stage c exactly
74+
(`1733427039589844234749/10^24`) against `EXPECTED.json`. PR #555's own `verify.sh` is unchanged and still passes: it checks the
75+
untuned word and the controls (`MANIFEST.sha256` lists the files of this directory).
76+
77+
## Credit and caveats
78+
79+
PR #555 (eumemic) is the base: the punctured R439 word, its generator, checkers, pricing pipelines and package structure are
80+
used unchanged, building on #543 (R420 skeleton), #545 (punctured unit, DreamingOfClouds) and #510 (nine-stage chain). The
81+
mechanisms are from #541 and #548 (Dugongue) and #542 (rohanarun). The searches, `apply.py`, `verify.sh` and this note were
82+
prepared with Claude Opus 5.5 (Anthropic), via Claude Code; Apache-2.0.
83+
84+
All retained assumptions of #555 apply unchanged (mutable-source realization, whole-call hosting, the all-size compiler,
85+
compressed windows, precision and tape contracts, the cited complex suppliers). The moves rewrite the phase-A writes of two
86+
helpers inside mini-node gates; `xcheck_p.py` and the official checkers verify the result exactly. This is a conditional
87+
finite construction, not a Lean proof, and it changes no κ.

0 commit comments

Comments
 (0)