Skip to content

Prove the current triangle scalar core’s exact floor-rounding law - #7671

Open
aliromman wants to merge 1 commit into
CrocSwap:mainfrom
aliromman:codex/consecutive-result-017
Open

aliromman wants to merge 1 commit into
CrocSwap:mainfrom
aliromman:codex/consecutive-result-017

Conversation

@aliromman

@aliromman aliromman commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

This scoped proof gives the complete floor-rounding law for the common-coordinate scalar core of the three-field repair in PR #7669. Its exact rational identity does not imply equality after rounding every ADD. For (x,y,z)=(0,1,2), the old tape returns the exact output (1,1,4); the new tape returns (1,2,6). Both complete stored paths fit in four signed bits. This is not a native-chart or caller counterexample, and no new kappa is claimed.

Read the all-integer proof, complete residue and source receipt, two-arithmetic verifier, source copy pins and base context pins.

Let x,y,z be roles 236,544,1000 in one common integer coordinate system, with floor rounding after each ADD and no overflow. If A and B are the old and new rounded tapes, then B(x,y,z)=A(x,y,z)+(0,h,2h), where h=floor((z mod 4)/2). The exactness condition changes from 2y+z=0 mod 4 to z=0 mod 4 and y=0 mod 2: the new exactness lattice has index 2 in the old one. The sharp error against their common rational matrix is 3/4 ticks for A and sqrt(89)/4 ticks for B. Their sharp difference is sqrt(5) ticks per real triple. The proof gives the corresponding common-coordinate complex-vector bounds.

The verifier reconstructs the entire candidate ee251f6005d2a92b887c5b804bd7aac05989d278b2c9ccb3c3091b50d533b08d from all twelve exact source edit blocks. It binds the old window [97747,97753) and new window [97842,97851) to the published rational-identity record, ending before the same next external operand. The consumed source pin is 95d476623f1468822057554475dc8badb19bfa44. The source has since advanced to eaef5d1580e5761feaed09262b964871f3e5f553; its edit and source word are unchanged, and the local tapes, matrix and candidate identity were checked again. This audit keeps its original pin.

Use Python 3.12 and the standard library:

python3.12 -B scripts/research_package.py --package research/current-triangle-rounded-contract

Expected output includes:

PASS_CURRENT_TRIANGLE_ROUNDED_CONTRACT
PASS_REGISTERED_RESEARCH_PACKAGE

Normal and optimized replay passed. Every exact prefix has integral shifts on three lattice generators, which reduces all integer inputs to eight residue cases. Separate rational and integer interpreters agree on those cases and 6859 signed triples. The receipt includes exactness, sharpness and all stored states of both four-bit witnesses. Three coefficient/sign mutations and signed truncation toward zero fail the law. Committed bytes, source ancestry, the 16-file official export and read-only Git-free optimized replay passed. Hosted CI did not certify this package. The plan job failed in the shared test_current_ci_section_matches_selected_record: the base guide names frontier6030 while the selected record requires make frontier7000-verify. The log reports 760 tests, one failure and 24 skipped; package replay was skipped. This package changes no shared CI file. Local replay remains the scientific evidence.

Limits: MOVE instructions are removed only in the explicit common-coordinate scalar model. Actual chart transports at 265,751,927, transport-aware rounding, reachable sixteen-call inputs, signed range for arbitrary inputs, prior and later errors, physical conversion costs and full analytic recovery remain open. In particular, the old and new x outputs leave this block in different charts. No error was exhibited on the source's fine exact grid. Full native columns, caller replay, source pricing and the complete multiplier were not run. The five inherited assumptions and selected frontier remain unchanged.

Base: e54523517d0f03e58352e647c403a5af3e525a57. @SYLforge supplied the compatible composition, exact edit and existing three-field rational identity. Its unchanged source provenance preserves the earlier native, caller and helper lineage; those contributions and the rational identity are not claimed as new. @aliromman directed this rounded-contract proof and verification with substantial OpenAI Codex assistance. New work is Apache-2.0; all copied source bytes remain unchanged.

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.

1 participant