Skip to content

Reuse the forward P104 residue basis for the exact inverse - #3046

Merged
Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
Arham-Tahir64:codex/p104-inverse-residue-permutation
Oct 16, 2026
Merged

Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
Arham-Tahir64:codex/p104-inverse-residue-permutation

Conversation

@Arham-Tahir64

Copy link
Copy Markdown
Contributor

PR3035 leaves the inverse residue basis open because its forward lattice Gamma cannot be reused unchanged. This package proves an all-rank coordinate identity that supplies the inverse box from the same certified forward basis.

Let T reverse the active address bits and exchange real/imaginary components. The literal signed-floor pair obeys P^-1 = S P S, giving L^-1 = T L T and U Gamma = T Gamma. Thus the inverse canonical residue is T c_H(T y), and the existing forward split F implements the exact inverse as T F(T y). No second HNF computation is needed; the 343-bit index stays unchanged. Ordinary complex conjugation is an incorrect substitute for component exchange.

The boundary is explicitly priced: two rank-seven T permutations use 768 logical scalar swaps, 1,536 real reads and 1,536 writes through one restored arbitrary dirty scalar. Physical movement, schedule work, the complete forward split, wrappers, backend and consumer costs remain additional. This is a local inverse-interface lemma, with no runtime gain, supplier admission or new kappa.

Validation:

  • All 256 pinned basis columns pass both image-lattice inclusions.
  • 4,802 signed pair/direction cases; 40 signed word fixtures at ranks 0..7; inverse splits through 4,090 bits plus zero and signed 4,096-bit controls.
  • Eight behavioral groups reject incorrect conjugations/permutations, unpermuted inverse-box reuse, a same-index invalid basis, bad types, source corruption and a wrongly typed receipt. Relocated Git-free optimized replay passes.
  • Registered CPython 3.12.14 normal/optimized replay, CPython 3.14.6 direct checks, warnings-as-errors compilation and all 12 committed-byte comparisons pass. Hosted CI and independent human/formal review are separate.
python3.12 -B scripts/research_package.py --package research/p104-inverse-residue-permutation

Base main d8e0f83f00191df62174b641e9fff055c357f641, priority revision 6. Publication head 5549524f7894120b7e993522eb3a59956df5c5c3. Source PR3035 0cc430349a3f3dc200666bc22e997076e0a557ed; all three vendored Git blobs match GitHub's source records. PR3037's maximality theorem is contextual, not required by this proof.

Canonical investigation. Handoff-first selection takes PR3035 open question 3 and complements Ross Richardson's PR3043 (b5cabfb02a3d8bc3121825144373b03a5648479d), which leaves the inverse lattice separate. Its gate invoice is not independently replayed here. Submission refresh found main unchanged and completely paginated 287 open PR bodies and 1,780 Discussion records; arbitrary diffs, unpublished work and a full closed-PR scan are outside that coverage.

Credit Nick Petalas/PR3035, Tekalign/PR3025/3033, Ross Richardson/PR3043, ywz65/PR2586/2555, Arham Tahir/PR2999 and the retained P104/native lineage. Prepared by Arham Tahir with substantial OpenAI Codex assistance. Apache-2.0.

Only the additive opt-in package is changed. Frozen predecessors, shared checkers, priorities and the selected frontier remain unchanged. Next: a specified changed narrow consumer with enough removed work to pay the full paired bill; PR3043 already reports no win for its frozen scalar invoice.

@Mister-Meeseeks
Mister-Meeseeks merged commit 5d93a57 into CrocSwap:main Oct 16, 2026
1 check 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