Repository navigation
Research: pay for preparation, execution, restoration and tape for #621's cyclic inverse at every stride (no κ claim) - #846
Merged
Mister-Meeseeks merged 1 commit intoOct 16, 2026
Conversation
…s cyclic inverse at every stride Adds research/cyclic-inverse-stride-bridge: a Euclidean chain/closure solver for stride-w cyclic first-order factors with O(L) sequential traffic and an L-uniform rounding bound, composed with CrocSwap#628's certified factors. Builds on CrocSwap#621 (Ali Romman), CrocSwap#628 (Chafik Boukhalfa) and CrocSwap#764 (Charles Bethin). No kappa claim. Prepared with substantial AI assistance.
This was referenced Oct 13, 2026
Contributor
|
100-PR batch review at This remains open after scoped triage. Next review step: New all-length fixed-tape stride solver: review FIFO traffic, uniform accuracy and factorization interface together with the later #977/#985 refinements. This is a specific continuation point, not a rejection or a request to redo already recorded checks. Completed local evidence is retained separately from outstanding whole-head obligations. Batch review, attribution and evidence. Thank you for the contribution. |
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.
The K492 review leaves one obligation open for #621 (Ali Romman). That PR's
L-uniform inverse bound still needs paid costs for efficient preparation, rounded execution, restoration and tape. #628 (Chafik Boukhalfa) pays for preparation and neighbouring-stride execution. #764 (Charles Bethin) sharpens the scan rounding. For any stride other than ±1, #628 routes cycles through two merge sorts costingO(L(B+log L) log L). Those sorts bring back thelog Lfactor that the inverse bound removed.This PR adds
research/cyclic-inverse-stride-bridge/and one CI workflow. No existing file changes. No new integer κ, complex b, or BIT c.Result
Theorem 1. A Euclidean chain/closure recursion solves
y_i = x_i + b_i y_(i-w)for any stride. A lag-wFIFO built from two stacks gives every pass its predecessor in natural order. Each level at least halves the length. A single stable factor then costs:40Lsequential record moves (largest observed: 29.68 per entry throughL=131072);O(L)rounded operations;min(K,1/β)(u/β)(5+4B/β)+u.The error bound holds for every
L. The proof reuses Research: sharp inverse-square rounding bound for cyclic scans #764's shared-suffix identity1-Q ≥ βG. A concavity argument shows that coefficient margins never fall belowβat any recursion depth.Theorem 2. Composing the solver with Uniform rounded prime-power cyclic inversion (no κ claim) #628's certified factorization gives
P(τZ_L^w)^{-1}at precisionp+(n+2)g+O(log r) = p+O(r^4), with noLterm. One admission condition,p ≥ log2(log2 L+2), depends onL.Verdict. For one kernel inverse on fixed sequential tapes, the cost with all four obligations paid is
soft-O(r^3(p+r^4)) + O(rL)·M(p+r^4) + O(rL(p+r^4)). That cost per entry does not depend onL, so Prove uniform prime-power cyclic inverse bounds (no κ claim) #621's gain survives payment at the single-kernel level. Restoration in this model is cheap: the input tape is never written, and scratch tapes are erased at linear cost.Validation
python3 -B -I -O research/cyclic-inverse-stride-bridge/verify.py --checkprintsPASS_CYCLIC_INVERSE_STRIDE_BRIDGE generic=2052 kernel_cases=300 controls=4 max_records_per_entry=29.671875. It passed under system Python and the repository venv (Python 3.13, Linux). It needs only the standard library and takes about 100 seconds.L=1..18, every stride in[-L,L), three margins and two grids. Each case is compared exactly with an independent per-cycle geometric-closure oracle. The margin invariant is checked at every recursion level.L ∈ {1,2,3,5,8}and all strides forL≤5. Each case checks Theorem 2's exact budget together with Uniform rounded prime-power cyclic inversion (no κ claim) #628's perturbation bound and the expanded residual. 81 cases are also compared with a dense Gauss–Jordan solve.0768f97dand are hash-pinned; the verifier refuses drift.66849e1). I did not complete a fullmake verify.make verifypassed seven targets with no failures:verify-community,verify-producers,verify-partial-gauge,verify-three-stage-cover,verify-paired-cube,verify-recycled-bitandverify-entrance-banks. My one-hour local limit then stopped the run duringgen4-bank-verify.make selected-record-checkandmake verify-testspassed separately: 549 tests, 0 failures, exit 0.frontier626-verifyor the later targets. This PR changes no existing file and does not affect the selected construction.git diff --cached --checkpassed.Still open
O(p+log(D+1)+r^5)precision.O(r^4)guard is a proof bound. Numerical probes put the truemin|P|near2^-10forr≤32; those probe values are not certified here.This is not a formal verification. The written proof carries the all-
Lclaims, and the finite cases support the reference implementation.Credits
L-uniform bounds.New work by Rohan Guliani (@Rohansguliani), prepared with substantial AI assistance. Apache-2.0. No literature-priority claim is made.