Prove fixed-accuracy Hopf depth O(N/b²+n) across dirty widths - #79
Merged
Merged
Conversation
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 unary phase-source compiler gives O(n) fixed-accuracy depth at square-root dirty width, but simply replacing its tail queries by the earlier width-sensitive loader retains an O(n) bank route per layer. This PR supplies the missing selected-bilinear query and proves the full width tradeoff.
For fixed eta, two external clean flags, and the existing literal threshold b >= 17(L+n+7), the same complete real-frame circuit has T = O_eta(sqrt N + N/b), G = O_eta(N), and D_T = O_eta(N/b^2 + n). T-count remains optimal in order. Count and depth now match simultaneously through b <= sqrt(N/n), when the interval is nonempty.
The proof includes a 16-T-layer controlled bilinear leaf using one arbitrary returned dirty helper, two-pass dirty selection of matrix blocks, the four-corner indicator echo, and a coupled block-size/chunk-length allocation. Full-input identities preserve literal phases, actual inverses, and dirty-reference return. The original unary source/error allocation and explicit finite-size fallback retain the exact width threshold.
Five new bounded tests cover native guarded leaves and an eight-wire selected block, exact symbolic complete queries, resource schedules, and negative controls. They do not constitute a scalable native frame emitter. Frontier, verification, continuation, and attribution documents are updated; no new external synthesis premise or generic lookup priority is claimed.
Validation: independent proof/skeptical audits found no blockers. All 471 tests pass in Python 3.11 and 3.13 CI. The existing 466-test suite and five new tests also pass locally. All four exact-receipt suites, reviewer walkthrough, bounded native examples, and resource ledgers pass. All five checks are green on b137912, including rendered presentation. The final documentation correction explicitly states the helper-restoration toggle. The high-precision endpoint and larger-width depth optimality remain open.