Repository navigation
Conversation
|
Review recommendation: close or replace this version. Prefer the right-shift implementation in #8, integrated together with #9. With the same compressed input These measurements exclude input pushes and terminal checks from fragment size, include the identical result check in stack peak, and use one entry data item, zero hint items and six serialized data-witness bytes (excluding script/control block). Evidence: Preserve this implementation as a comparison/negative result if useful, rather than maintaining two public right-shift APIs. September 11 local validation (unchanged PR head): Reviewed commit: |
…-066 Resolve the knowledge/negative-results/index.md conflict by keeping main's historical PR solving-bitcoin#3 record, NR-064 (complete-witness signature budgets, solving-bitcoin#240) and NR-065 (CSV operand narrowing) unchanged, and appending this PR's Merkle branch composition entry after them as NR-066 (renamed in the preceding commit). NR headings are now unique (66 headings, 66 ids). tests/primitive_metrics.rs and src/ciphers/aes/mod.rs auto-merged; all 112 main and 106 PR-side #[test] functions survive (113 total, no dups). The merkle_branch_boundary example and metric still reproduce 1,060,200 unoptimized script bytes, 770,481 static non-push opcodes, and 129/193 serialized witness bytes on the integrated tree. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Integrate origin/main (3d1001f) into the signed-window schedule branch. - knowledge/negative-results/index.md: keep every main entry (NR-001..NR-066, NR-071, historical PR solving-bitcoin#3, merged Merkle-branch record) and append this PR's two entries under their assigned IDs. The PR's NR-064 and NR-065 collided with main's NR-064 (data-only signature budgets) and NR-065 (CSV operand narrowing); they are renamed NR-067 (signed-window tables) and NR-068 (width-5 fixed-base CSFS). No PR-side links referenced the old IDs. - src/arithmetic/u4/mod.rs: take main's sorted module list, a strict superset of the PR's alphabetical reordering (47 vs 37 modules, no PR-only module). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary
0..=0xffffffffdomain0x80000000negative-zero sentinelMeasured shift-7 boundary
The compressed form saves witness width but is not a locking-byte or combined-stack improvement. Dynamic opcode and validation-weight measurements are not available from the local executor.
Focused verification
cargo test --locked arithmetic::u32::rshift --libcargo test --locked --test primitive_metrics total_domain_rshift_metrics_are_currentcargo test --locked --test knowledge_basecargo fmt --all -- --checkpython3 tools/kb.py validatecargo run --locked --release --example u32_total_domain_rshift_benchmarkThe full repository test suite was not run, per request; validation was limited to the affected primitive, metrics, knowledge-base validation, formatting, and benchmark.