Repository navigation
Research note: restoration coalescing across a recursion batch (read-free + composable-family boundary; no new kappa) - #1155
Conversation
Track recursive-interfaces, assignment seed 53. One explicit way to eliminate restoration work with a complete cost recurrence. A recursion node that restores its borrowed dirty workspace after every child pays r restoration passes. Deferring to one composed restoration at the node exit eliminates (r-1) passes exactly when (a) the batch is read-free (no child reads the workspace's intermediate value into an observable) and (b) the restoration operators compose while staying cheap (unit phases -> one phase pass; permutations -> one routing pass). When the restorations are a heterogeneous mix, the composed restoration is dense and deferral costs more, not less. A single reader child breaks correctness. Exact stdlib checker over Gaussian rationals at N=8: two positive cases (phase 3->1 passes / 24->8 mults; permutation 3->1 passes) and two negative controls (reader divergence; dense heterogeneous composition 64 vs 16 mults). No new kappa; selected frontier and upstream/ unchanged. Contributor: Navinor. With help from opencode. Apache-2.0.
The sprint's citation convention requires full GitHub autolinks or the CrocSwap/integer-mult-bounds#NNN short form, never bare #NNN. Convert every bare reference in README.md to the repository-prefixed short form and use author names in prose. No content change. Contributor: Navinor. With help from opencode. Apache-2.0.
Contributor: Navinor. With help from opencode. Apache-2.0.
|
100-PR batch review at This remains open after scoped triage. Next review step: Read-free is sufficient, not necessary: #1199/#1203/#1205 give exact nonzero-reader counterexamples. Also a dense phase/Walsh/permutation product retains its cheap factorization; dense entries do not prove quadratic application cost. Correct the iff and cost claims. 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. |
Follow-up to the batch review comment on PR 1155 (CrocSwap#1155 (comment)). Two claims in the note were wrong as stated and are corrected. Correctness: read-free is SUFFICIENT, not necessary. The exact terminal condition in this additive model is vanishing summed defect, sum_i B_i (G_{i-1}...G_1 - I) = 0. Exact nonzero-reader counterexamples exist: PR1199 (five children reading and negating the workspace with coefficients [1,1,1,-1,1], restorations 5->1), PR1203 (distinct-output criterion H_i(P_{i-1}-I)=0 versus shared-output summed defect), PR1205 (terminal theorem sum_i B_i(P_{i-1}-I)=0 and prefix theorem B_i(P_{i-1}-I)=0 per child). The original reader example is kept and re-scoped: it shows one reader child CAN break deferral. Cost: matrix density of the composed product is not an application-cost statement. The composed restoration retains its cheap factorization; applying the factors sequentially costs the eager sum. Verified at N=8 with the existing exact machinery: heterogeneous phase/Walsh/permutation example applies through its retained factorization for 16 multiplications (eager structured sum 16), self-checked against the exact dense product on every basis column. The existing 64 vs 16 numbers are kept as a statement about DIRECT dense application only. Deferral costs more only when no cheap factorization is retained and the dense product is applied directly. Checker: new summed_defect criterion, a nonzero-reader cancellation case (PR1199's shape, exact zero defect, 5->1), and the factorized-application cost of the heterogeneous composition. Certificate regenerated additively (existing numbers unchanged); the reader example and heterogeneous example still run unchanged. Passes on CPython 3.12 and 3.13. Contributor: Aaron Wang (Navinor). With help from opencode. Apache-2.0.
|
Corrected both claims per the batch review follow-up (review comment; batch review record). The correction commit is 1. Correctness: read-free is sufficient, not necessaryOld wording (wrong): "The single deferred restoration returns the same observables ... if and only if no child reads the workspace's intermediate value into an observable." New wording (in Evidence:
What was kept: the original Gaussian-rational reader example still runs unchanged and still shows one reader child can break deferral. It is now labeled as a counterexample to unrestricted deferral (sufficiency only), not as evidence of necessity. The checker now computes the exact summed-defect matrix for both reader cases (nonzero for the old example, exactly zero for the new one) and replays #1199 's cancellation shape as a new verified case: 5 reader children, coefficients 2. Cost: matrix density is not application costOld wording (wrong): "For a heterogeneous mix (phase + Walsh + permutation) the composed restoration is dense and the deferred application costs more ( New wording: Matrix density of the composed restoration is not an application-cost statement. The composed product retains its factorization into its cheap factors; applying those factors sequentially costs exactly the eager sum. Deferral costs more only when no cheap factorization is retained and the dense product must be applied directly. Deferral genuinely removes passes when the restorations collapse under composition into one cheap pass (unit phases -> one phase pass, permutations -> one routing pass, Numbers, verified with the package's existing exact machinery at Files corrected (commit
|
|
Thanks for the contribution. Review of The algebraic corrections pass, but README Complete cost recurrence still prices arbitrary phase/permutation descriptor composition at O(r) and one Scan/routing pass without a succinct representation or implementation hypothesis. Supply that hypothesis and charge composition/routing; the explicit N=8 matrix test does not establish the stated general recurrence. The scoped replay evidence is retained in the batch review. Passing finite checks and the scope of the written claim are tracked separately. This PR is staying open for the focused revision; contributor and predecessor credit are retained. |
|
Corrective revision for the review comment (Aaron Wang, with help from opencode). Commit 1. ReproducedThe README's "Complete cost recurrence" priced descriptor composition and routing with no representation behind the terms: The note defined no descriptor representation anywhere, and the only cost evidence is the explicit 2. Representation hypothesis supplied, composition and routing chargedThe README now states the representation the
Composing with 3. Old vs new wording
4. VerificationRegistered replay
5. Remaining obligations
Aaron Wang, with help from opencode. |
Status: research note (scoped mechanism + complete cost recurrence; no new kappa)
Track recursive-interfaces (50-59), assignment seed 53 (OS CSPRNG). One
explicit way to eliminate boundary/restoration work with a complete cost
recurrence, a sufficient correctness condition (with the exact defect criterion
behind it), and a sharp cost boundary. Contributor:
Navinor (Aaron Wang), with help from opencode. Apache-2.0.
What is learned
A recursion node that restores its borrowed dirty workspace after every child
pays
rrestoration passes. This note prices one operator-level rewrite: let theworkspace drift across the batch and replace the
rrestorations by the onecomposed restoration
(G_r...G_1)^{-1}at the node exit. Two independentquestions decide it, both decidable exactly:
The single deferred restoration returns the same observables (final data and
final workspace) exactly when the summed defect vanishes,
sum_i B_i (G_{i-1}...G_1 - I) = 0. Read-free batches make every term vanishseparately and are sufficient, but they are not necessary: nonzero readers
can cancel (exact counterexamples:
Recursive interface: coalesce restoration with cancelling readers #1199,
Research: noncommuting reader restoration with a paid dirty-state wrapper #1203,
Research: observer-safe restoration with nonzero readers (no new kappa) #1205). The certificate's
reader example shows only that one reader child can break deferral; a second
case replays the exact nonzero-reader cancellation (5 restorations -> 1).
removes passes only when the restoration operators stay cheap under
composition: unit phases -> one phase pass, permutations -> one routing pass
(
r -> 1). The recurrence now charges composition explicitly under a succinctdescriptor hypothesis (fixed-size parameter tuples;
r * c_descwithc_desc = O(1)) and recordsTheta(r * N)to compose full length-Ndescriptor tables outside it; the
N = 8tests establish the testedinstances, not an unpriced general recurrence. A heterogeneous mix
(phase + Walsh + permutation) composes to
a dense product that retains its cheap factorization: applying the factors
sequentially costs the eager sum (
16=16multiplications atN = 8,verified against the exact dense product). Deferred application costs more
only when no cheap factorization is retained and the dense product must be
applied directly (
64vs16multiplications atN = 8— a statement aboutdirect dense application). Structure, not the count alone, decides.
Reproduce
Standard library only, Python 3.10+ (verified on 3.12 and 3.13), from the repo root:
Expected first line:
The checker recomputes the certificate and compares every field with
research/restoration-coalescing/CERTIFICATE.json, failing on drift. It buildsevery operator explicitly at
N = 8over exact Gaussian rationals (no floatingpoint, no random tolerance, no imported supplier verifier), derives each composed
restoration from the exact dense product, and self-checks any cheap structured
application against that product on the standard basis before trusting its cost.
Base commit and pins
ce7ad1b6ab09452c3478723a2e96ed5ff212dc08(currentorigin/main).research/agent-13-recursive-seed53(isolated researchpackage under
research/restoration-coalescing/; no generator,upstream/, orselected-construction file touched).
kappa = 836330098538459/500000000000000000(PR 1094 on PR 1087).
research/restoration-coalescing/SOURCE-PINS.json.Relationship to concurrent work
This is a second, independent treatment of the restoration question with a
meaningfully different method (exact operator algebra and structure detection,
standalone sub-second, versus assembly-level pricing on frozen payloads). It does
not claim priority on "restoration deferral" and does not reproduce others'
numbers.
(thakrarsagar, same track) prices restoration deferral of U8 helper rank/frame
climbs at the hosted T37 assembly level and finds it mass-neutral. Different
layer and cost unit (rank mass vs. phase/routing passes); complementary, not a
contradiction.
(avirazza, same track) prices the same boundary classes with zero parent cost.
Where those notes give the assembly-level ceiling effect, this note gives the
operator-level preconditions (vanishing summed defect + composable family) for a
genuine
r -> 1pass reduction at all. Both are needed before deferral is placed in areal supplier call.
Scope and inherited assumptions
A restoration-elimination mechanism, its recurrence, and its exact applicability
boundary. Not a construction, not a new kappa, not an all-size physical
compiler, precision contract, common tape, analytic transfer, owner schedule, or
the integer-multiplication theorem. Finite checks are exact algebraic identities
and exact cost counts; they do not certify a whole E8 word or the selected
kappa. Neither the selected frontier norupstream/changes. Inheritedall-size/compiler, hosting, precision/tape and analytic assumptions remain with
their existing constructions. No independent human or proof-assistant review is
claimed. Relevant check run: the package's own verifier (full
make verifyandthe selected cold replay are untouched by this isolated package and were not run).