Repository navigation
Conversation
This was referenced Nov 11, 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 persistent stock for a fixed chronological scalar common-query stream, at the minimum acquisition count. The scoped proof and compiler were produced by Nick Petalas.
The lower bound allows arbitrary linear cache encodings and legal prefetch. One causal schedule attains every cut bound simultaneously. Its emitted scalar instructions use the minimum persistent cache plus one response/work field. For e_1,...,e_n followed by their sum, n acquisitions and one persistent field suffice for every n>=1, while retaining each individually acquired answer until its final use would occupy n fields.
Claim type: scoped written proof with exact finite corroboration and a bounded constructive compiler. No new kappa, selected-frontier change or complete multiplication theorem is claimed.
Dugongue / David Ganz's merged #5803, scheduling S12-S13 and SQ05, supplies causal query-basis acquisition and sufficient one-cut compression. This adds the matching per-cut lower bound, the global minimum-capacity theorem and the instruction-emitting compiler. Classical dimension, represented-matroid connectivity and elimination ingredients retain their usual status. Predecessor mathematics is cited, not audited or replayed. Card
joint-query-controlleris explicitly changed to this interface side result. Base is canonical maine54523517d0f03e58352e647c403a5af3e525a57; selected conditional kappa remains 0.00363005817.Evidence
Before, #5803 supplied sufficient one-cut compression without this matching minimum persistent-capacity statement. After, PROOF.md proves necessity and simultaneous attainment under an explicit observational acquisition contract.
The new independent finite-state oracle enumerates every vector subspace by additive closure, tries every linear cache state for each capacity and minimizes query count. All 17,523 request streams agree with the compiler: F2 dimension two through length six, F2 dimension three through length four, and F3 dimension two through length four. The oracle uses no compiler elimination or intersection routines.
Literal scalar instruction replay checks delivered formal answers, every retained basis, entry scrubbing, exit zero and two dirty spectators. Separate exhaustive tests cover 1,234 matrices, 40 running-sum family cases, six maximum-domain/zero-rank cases and 21 rejection controls. The direct marker is
PASS_CAUSAL_QUERY_CACHE_STOCK. Generated receipts bind all seven package files by SHA256. Normal and optimized receipt bytes agree.CPython 3.12.15, macOS arm64, standard library only. From the worktree root:
Another CPython 3.12 may replace the absolute interpreter path. Both registered commands pass locally; their exact direct commands took 2.03 and 1.59 seconds, respectively, under their 120-second caps. These timings establish timeout headroom, not a speedup. Metadata/pins, in-memory syntax/function-size checks, real valid/invalid compiler CLI cases, whitespace and seven-file committed-byte/source-history checks pass. The official export integrity check passes; normal and optimized verification also pass from a read-only Git-free export with an empty PATH, producing the same receipt bytes as the checkout. No generated output stays in the checkout.
Limitations
The theorem fixes request order and total acquisition count r. Sources are immutable, all requests share one scalar common-query ABI, queries take only ordinary source combinations, and delivered outputs cannot be read again. All persistent query-dependent state is counted. Query feedback, non-scalar ordinary operator algebras, source mutations, differing charts, consumer feedback and a fixed scalar Q have different contracts. Owned erasure is permitted and charged. The result concerns persistent state at delivery cuts; the extra response/work field is a total-storage upper bound, not a claimed microstep optimum.
The executable compiler is bounded to 24 requests, 1..8 source fields and primes 2,3,5,7,11. The written theorem has no such finite bounds. Installation must charge scalar recipes, assembly, scrubs, delivery, routing, descriptors, clears and physical precision/access. General field elimination does not establish a dyadic-only implementation.
No selected-source request region is installed. Native realization, ownership/erasure admission, compiler, precision/tape, stock and analytic recovery remain separate obligations. The original card's complete physical caller and signed invoice gate remains unmet. Selected cold replay, Lean, Docker, independent human review and formal proof-kernel acceptance were not run or claimed.
Open next questions
Related open work
The refreshed overlap search covered all 495 open PR bodies, plus Discussion records, with targeted full-main and merged-work searches supplementing sparse local notes. No other open PR was found studying this fixed scalar request-stream cache quantity. This is bounded search coverage, not a novelty certificate.
The completion check read this account's nine other open PRs created since the CLAIM: #7189, #7191, #7192, #7193, #7194, #7195, #7196, #7197 and #7199. They concern reader coefficients, polynomial insertions, rounded-inverse residues, address-twist rank, three-shear COPY floors, cyclotomic precision, coupled Jordan maps and compact switches. None computes this request-stream persistent-cache quantity. No additional computations or numerical comparisons were run for this check.
CI notes
CI did not certify this package. At head
50c6467d445e46e130f7d8e21a6e7d48eb70b6b3, run 43001765438 failed in plan, Onboarding helper tests. I read the completed checks once and inspected the job log directly. It reports exactly one failure among 760 tests, with 24 skipped:test_research_current_status.CurrentCiNavigationTests.test_current_ci_section_matches_selected_recordThe AssertionError is that
`make frontier7000-verify`was not found in the CI verification document. The package replay job was skipped because plan failed.This mismatch is already present in canonical base
e54523517d0f03e58352e647c403a5af3e525a57:certificates/selected-result.jsonnamesmake frontier7000-verify, whiledocs/ci-verification.mdstill describes #6030 andmake frontier6030-verify. I checked both base blobs and confirmed this PR changes neither file. No package replay or package failure is inferred from this repository-level failure.I also inspected all six other cited plan-job logs. Each independently shows the same exact test, the missing
make frontier7000-verifyassertion, 760 tests, one failure and 24 skips:Verification evidence for this package remains local, as listed above. No fix or retrigger commit, push, shared-file edit, job rerun or additional scientific computation was made during closeout.
Merge danger
Door: two-way. Only the seven files under
research/causal-query-cache-stock/are added.Blast radius: package. Shared code, predecessor sources and selected-frontier records are unchanged.