Skip to content

feat(u32): document equality boundaries - #46

Closed
brenorb wants to merge 1 commit into
solving-bitcoin:mainfrom
brenorb:feat/u32-equality-boundary
Closed

brenorb wants to merge 1 commit into
solving-bitcoin:mainfrom
brenorb:feat/u32-equality-boundary

Conversation

@brenorb

@brenorb brenorb commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • document the existing u32_equal() and u32_equalverify() stack contracts
  • add boundary and short-word rejection tests
  • add measured README and catalog records for both equality forms

Validation

  • cargo fmt --all -- --check
  • cargo test --locked arithmetic::u32::stack::tests
  • cargo test --locked --test primitive_metrics
  • python3 tools/kb.py validate
  • git diff --check

The full repository test suite was intentionally not run; validation is scoped to the changed primitive as requested.

Copy link
Copy Markdown
Contributor

Review: hold pending the changes below.

Fold these existing equality boundaries into the shared u32 representation/validation documentation. Ensure the newly recorded metrics have an active focused test rather than only an entry in the ignored full metrics collection.

Historical local validation (September 11, at this unchanged PR head): python3 tools/kb.py validate passed; 3 selected library tests passed. These are targeted local checks, not a full-suite or complete-spend validation. Results using a stack-limit-disabled execution helper remain research-unlimited.

Rebase on current main, address the specific gaps above, and run the affected correctness and active metric checks. Broad/full-repository runs are not requested.

Reviewed commit: bcec5a3eb7df89ee5bb1eb57c24b9402e389176a.

@brenorb

brenorb commented Sep 18, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #45. The shared u32 rotation/stack documentation package now includes the equality/equalverify contracts, active focused metrics, raw-byte boundary coverage, short-input error checks, and stack-preservation tests requested here.

@brenorb brenorb closed this Sep 18, 2026
@brenorb
brenorb deleted the feat/u32-equality-boundary branch October 28, 2026 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants