Repository navigation
Prove exact retained state for serialized rational-shear carries - #5913
Merged
Mister-Meeseeks merged 1 commit intoOct 27, 2026
Merged
Conversation
This was referenced Oct 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Prove the exact information retained by a rational-shear carry producer after reading its complete source low digit and before reading its target low digit. The interface forbids rereading the source and emitting information early, and charges all data-dependent controller/head state. Claim type: scoped written mathematical proof with finite corroboration.
An explicit equivalence-class label attains the bound. For a quarter shear over every odd q>=3 and high width w>=2, exactly q states are needed. The q=257 fixture requires nine retained binary bits although the final integer carry takes only eight values. Producing an exact integer packet and producing its high-modulus image have distinct state counts at width one.
This answers one serialized-access version of the low-cache packet-production question left open by Ali Romman's #5849 at
35ee8364ccfe54d6d5ec154fbf74993624b0a0d4. It does not audit or replay that construction. The new proof and verifier are produced by Nick Petalas. Credit Ali Romman #5849/#5841, JoyboyBrian, Tekalign and the retained ROW/native/tape lineage; the deterministic one-way state-equivalence method is classical.Evidence and reproduction
Only
research/quarter-carry-cut-states/is added. Local CPython 3.12.15 on macOS arm64 passes:PASS_QUARTER_CARRY_CUT_STATESwith generated package-hash-bound receipts.From the repository root:
Any CPython 3.12 path can replace the local interpreter. Only the standard library is needed. SOURCES.json pins catalogue/selected-record provenance at canonical base
de5ec2e7a6074068452f45b1a191b5c72832df4a; cited pending predecessors are scholarly context, with no executable or unmerged-history dependency.Limitations and unrun obligations
The theorem counts information at one cut. It does not bound arbitrary interleaved, multipass or early-output algorithms, amortized joint packets, or an already prepared cache. Its attaining encoding permits later unrestricted computation and is not a literal tape implementation or a total-workspace bound. No claim identifies this scalar fixture with an actual released G20 port. Physical source access, cache layout, erasure, routing, native/caller integration, precision/stock and all-size implementation remain open and unrun. All five framework assumptions remain; no new kappa, supplier admission or frontier change is claimed. Independent human and formal proof-kernel review are unclaimed.
Open next questions
Related open work
Complete runtime G20 quarter-carry rotation with tight physical bounds #5849 supplies the original-owner rotation from a supplied packet and leaves its low-cache producer open; this PR prices information for one restricted producer access order.
Lower all sparse G20 routes with exact whole-word q-adic carries #5841 supplies fused G20 carry algebra and potential correction sites; this PR counts distinguishable response functions for a scalar rational shear rather than route sites or carry-event density.
Complete all G20 rational shear leaves with paid literal coefficient preparation #5846 implements rational-shear leaves with paid coefficient preparation; this PR supplies no replacement leaf or physical tariff.
Complete original-owner execution of the full runtime affine shear #5842 installs runtime affine-shear results in the original owner; the state count here concerns packet preparation before that execution interface.
Construct dyadic words for all 111 G20 port normalizers #5801 constructs dyadic port-normalizer words; this result does not resynthesize or realize those words.
Bind all 7,548 G20 route markers to conditional ROW cover words #5805 binds actual markers to conditional ROW words and leaves cache/carry/commit details open; no physical marker binding is claimed here.
Install the shorter G20 word in all 18 physical calls with fresh source records #5834 constructs the complete shorter global G20 caller while retaining cache/carry obligations; its endpoint, invoice and events are not replayed or changed.
Halve G20 boundary work with equal-target bases and a complete physical caller #5840 simplifies global G20 boundary words while retaining cache/carry obligations; its synthesis and complete finite bill are not replayed or changed.
Count exact nonzero carries for every reduced rational shear (no κ) #5915 counts low-input pairs with nonzero rational-shear carries; this PR counts distinguishable response functions after a source-before-target cut, a different quantity. No numerical comparison is made.
Prove exact nearest-even shear history from binary code weight #5912 classifies retained history for nearest-even rounded shears; this PR uses exact modular arithmetic and does not compute those history costs.
CI notes
At head
f0776668541d2828dd10e290c8e5adabe990f96d, run 40506305739 has plan failed; replay skipped. The only failed step is Onboarding helper tests. All ten failing cases belong totests/test_research_current_assignment.py; the exact suite summary isFAILED (failures=8, errors=2, skipped=22). The two errors are missingfollow_up_stepsandcatalog_first_stepkeys; the eight failures are fixture/reference expectation mismatches. This is the shared mainde5ec2e7aonboarding failure, not a failure in this package. The same step, test file and summary were independently confirmed in PR #5911's run. No shared tests or other repository files were changed to address it.The package replay job was skipped. Hosted replay has not certified this package; only the local mathematical/package checks reported above have run. Each registered local command completed below fourteen seconds with a 300-second timeout. No hosted scientific pass is claimed.
Merge danger
Reversible package-only addition. No shared code, frozen source, selected record or review ledger changes.