Skip to content

Recover one nibble with two modulo-17 checks - #337

Merged
RobinLinus merged 1 commit into
solving-bitcoin:mainfrom
brenorb:codex/checked-u4-erasure
Nov 9, 2026
Merged

RobinLinus merged 1 commit into
solving-bitcoin:mainfrom
brenorb:codex/checked-u4-erasure

Conversation

@brenorb

@brenorb brenorb commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Recover one erased canonical nibble from two public sums modulo 17. The first gives the missing value. Subtracting the erased index times that equation from the weighted equation removes the missing digit from the second check. Centered coefficients keep constant products small.

The two schedules check the same surviving digits and public residues, compare the exact recovered value and leave true. Serialized data witness includes item count and lengths, excluding the leaf, control block, annex and transaction. Executed counts include processed control delimiters. All input items coexist at entry and there are zero hints.

Width Erased index Schedule Leaf bytes Data witness bytes Ordinary items Hint items Peak Executed
4 1 Centered 116 7 3 0 7 74
4 1 Direct recomposition 116 7 3 0 7 76
17 0 Centered 479 33 16 0 20 359
17 0 Direct recomposition 525 33 16 0 21 408
17 8 Centered 468 33 16 0 20 357
17 8 Direct recomposition 522 33 16 0 21 405
17 16 Centered 468 33 16 0 20 356
17 16 Direct recomposition 522 33 16 0 21 405

Both schedules reject every single substitution at every erasure position of the width-17 fixture. Two changed surviving digits can cancel, as shown by [5,5,5] and [4,7,4]. Width 18 repeats an index coefficient and is outside the contract. The centered width-17 fixture reaches exactly 1,000 combined items with 980 preserved caller items. #273 uses delayed modulo-17 reduction for positional integers. This construction uses two public arithmetic checks to recover and validate a missing coordinate.

Evidence is locally reproduced and execution is unclassified. Focused tests, metric snapshots, knowledge validation, formatting, and diff checks passed. The required full non-field suite passed on this exact published commit.

@brenorb
brenorb marked this pull request as ready for review November 6, 2026 13:21
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-06T13:26:20.312325Z 0d64153 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@RobinLinus
RobinLinus merged commit 154cfa2 into solving-bitcoin:main Nov 9, 2026
3 checks passed
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