Repository navigation
Implement finite two-tape control for nested parking frames - #2635
Merged
Merged
Conversation
This was referenced Oct 19, 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.
PR2574's nested invocation wrapper uses host-language packet extents and frame floors while leaving its physical controller open. This package implements its matched-record parking subinterface with a fixed two-tape, ten-state, 490-entry transition table. Physical record/frame delimiters and head displacements supply the boundaries; every action depends only on the finite state and scanned symbols.
A written induction proves exact packet order, cleanup, rewound heads and opaque ancestor preservation for every finite packet width and well-bracketed nested command sequence, including empty and unequal packets. PUSH costs
2n+3transitions and POP3n+4; all reads, writes, moves and marker storage are charged explicitly. For total matched packet volume V, r packet pairs and d frame pairs, the complete parking ledger is5V+7r+3dsteps,10V+14r+6dreads,4V+4r+2dwrites and8V+8r+2dmoves.The sparse simulator and a separate dense interpreter agree on all 2,047 packets through width 10, 21 translated cases through 16,384 bits, and nested frames through depth 129. Nine control groups cover boundary rejection, occupied output cells before writes, actual transition faults and incomplete tables. Registered CPython 3.12.7 primary and both Git-free/integrity test groups pass. A separate agent reviewed the complete proof and code and independently replayed optimized CPython 3.12.14 with no blocking finding.
Scope: matched whole packets only, with trusted well-bracketed caller commands. This does not expose arbitrary partial-size pops, authenticate ownership against hostile commands, allocate all logical caller tapes or implement the full dispatcher/supplier. Packet production and consumption remain charged caller work outside this table. No locally reversible transition-system claim, selected cold replay, new profile or kappa is made.
Source PR2574 at
07d75bfc2e13f0c17d84a3788885affc4d712dc1is pinned unchanged, including proof, matching caller, stream primitives and notice; retained executables are reference text and never executed. Credit its PR2534/2483/2250/2287 lineage. Canonical main was refreshed unchanged at0fdd7d82de03e43c9e5a1000dfbcd380d1b687d2; priority revision 4, picker seedec3ae3aa2e614be2c97851bf5f8ff527, required supplier-boundary first command passed. TASK.json records scope change and overlap limits: complete 798-PR/1,252-Discussion cache plus fresh source-head and 100 recently updated PR-body checks at 16:28 UTC. Prepared by ywz65 with substantial OpenAI Codex assistance and separate agent review; no independent human review is claimed.