Ordered suffix maxima with input-paid splicing
10 October 2026. Assessment 196. Written native theorem 63, extending theorem 62. No root admission or external novelty claim.
Current continuation: Persistent length bands remove the final maximum-diversity bound for complete interval rows. The fixed-diversity theorem and its historical next test below remain intact.
Contents
Statement and payoff
Written theorem 63. For each fixed positive integer , one fixed deterministic native scaffolding automaton recognizes the ordinary right-first pinned Horn SAT language of the encoding contract, restricted to nonempty final right rows containing exactly all binary words whose lengths lie in an interval , with , and at most distinct final maxima. The restrictions are checked on ordinary input. Work and allocation are bounded per actual symbol, including the final symbol.
Names, row populations, lower endpoints, intermediate maximum diversity, target order, duplicate records and retained histories are unrestricted. The palette is learned, not supplied. This extends two-maximum suffix reuse to every fixed final maximum diversity. It remains serial reuse after right preparation, not a join of independently supplied stores. The language consequence is a PEG for the reversal of the checked encoding.
The structural criterion is a fixed number of ordered ranges, each with a common upper-validity region. Lower-endpoint work may remain pending while earlier ranges answer. Ordinary names fund each range’s deferred classification and minimum reduction; the range boundary supplies the remaining query time. The number of ranges is fixed, but their endpoints and the represented union are not bounded.
1. Imported sequence primitive and inherited native components
Use the strict, purely functional, worst-case constant-time catenable deque of Kaplan and Tarjan, as extracted in review 195. Only empty, first/last view, removal at an end, insertion at an end and catenation are used. Elements are constant-size pointer records. No ordered comparison, measurement, interior split, laziness or memoization is requested. A public operation performs a bounded number of strict list observations and constructions on available roots. Its finite cases therefore compile with the inherited simultaneous-record compiler. This is an imported data-structure theorem, not a new deque implementation.
Retain the ordinary-name dictionaries, complete-level and interval validators, unary rulers and incrementally prepared binary endpoint numerals from the suffix producer. Retain the current maximum-population histogram and its two-terminal update from input-dominated routing. Retain the strict FIFO and sparse-age minimum worker. Every imported or inherited root is constructed from input or empty initialization; none is supplied as advice.
2. An occupied-depth sequence with ordinary unary gaps
Maintain a catenable deque of entries in increasing occupied histogram depth. An entry contains an absolute ruler/numeral payload and a nonempty ordinary unit stack whose length is the difference from the preceding occupied depth, taking the predecessor of the first entry to be zero. Population is read from the current histogram, not cached in this sequence. In particular, a row stores no purported current bucket handle.
For each actual target word, begin a speculative cursor at depth zero. Keep an empty prefix deque , the old sequence as a suffix, a view of its first entry and its gap cursor, and an empty accumulator . The current-position ruler/numeral and old row maximum ruler are advanced in the inherited lanes. Each target bit does the following bounded work:
- Reset the retained-at-current-depth flag to false. Advance one depth and prepend a unit to . If a next entry exists, consume one unit of its gap cursor.
- If that gap becomes empty, the current depth is exactly that entry’s depth. Inspect the same-depth current histogram population. If this is the old row maximum and its population is singleton, omit the entry speculatively. Otherwise append an entry with its old absolute payload and gap to , set the retained-at-current-depth flag to true, then reset to empty.
- Remove the reached entry from the old suffix and expose its next entry and full gap, if any. Do not consume this next gap until the next target bit.
Gaps are positive, so at most one occupied entry is reached per bit. The old maximum is identified by the local termination of its ruler; the zero case has no departure. A finite flag remembers whether an entry was retained at the current depth. Existing endpoint payloads are copied as opaque roots. is built by actual bits; units need no orientation-sensitive values.
After bits, contains precisely the occupied depths at most after speculative singleton removal, with correct gaps. measures the distance from its last retained depth (or zero) to . If a next old entry exists, its gap cursor measures the distance from to that entry; the remainder of the old suffix is untouched. These invariants follow by induction on the three operations above, including omitted entries: omission leaves accumulating while the next old gap starts at the omitted depth.
At the delimiter, if for the old row maximum , discard the speculative roots and retain the old sequence. Whether the old ruler has been passed is already a finite flag. Otherwise the existing histogram update changes to , and:
- If an entry was retained at depth , already ends at .
- Otherwise append an entry at using the prepared current-position payload and gap . This gap is positive.
- If an old suffix entry remains, replace only its first entry’s gap with the residual gap cursor. Keep its absolute payload and all later entries. Catenate with this adjusted suffix. If none remains, use .
The delimiter uses a fixed number of deque operations and records. In the changing case , so every possible departure has been visited. Inserting makes the residual suffix gap exactly correct. No append of unary gaps and no walk to a distant successor is needed. For a new row there is no departure; for an unchanged maximum the speculative sequence is simply ignored.
Splice lemma. After every record, the sequence represents exactly the current occupied histogram depths with correct absolute payloads and gaps. Each target bit and delimiter has bounded local cost, independently of distances, populations and intermediate diversity. The proof is the cursor invariant and the preceding delimiter cases; immutability gives the same statement separately for every retained version.
For the motivating state , moving the only row at 1 to 2 visits only depths 1 and 2. The prefix ends at 2; the old entry at is retained with residual gap . The payload at is already accessible in one deque view. Arbitrarily many intervening empty depths cause no extra delimiter work. Earlier words paid to create that gap and payload.
At the right boundary, retain the existing literal completeness and interval gates and check the occupied-count stack has at most cells. Take at most front views of the new sequence. On valid nonempty right input this yields ready ordered payloads
This is a fixed-size export, not a scan of the right rows. Intermediate diversity was never capped. Empty right input is a finite special case.
3. Three maxima: two independently serviced filters
For , keep three minimum lanes. Lane zero receives every selected lower endpoint. Lane one receives precisely rows whose maxima differ from . Lane two receives precisely rows whose maxima differ from both and . Since the frozen palette is exact, these are respectively all rows, rows above , and rows above .
The two filters run independently. Lane two need not wait for lane one’s backlog: the ordinary-name release supplies the same ready row payload to both fixed queues. Each filter performs sequential linked-digit equality tests against its own finite prefix of the palette. Equality rejects the row; inequality with every tested endpoint releases its lower numeral into that lane’s sparse worker. There is no uncharged transfer of a batch from one filter to another. Each original release reserves both its filter work and possible minimum work.
For query ranges , , and , the appropriate lane’s minimum lower endpoint decides membership. An enormous never delays the first two ranges. This parallel organization closes the three-maximum target without assuming that a cascade’s last-stage completion bound would protect earlier ranges.
4. Fixed : original-release credits at each boundary scale
Generalize the preceding receipt to lanes . Lane tests equality against and receives exactly selected rows with . Lane zero receives all selected rows immediately. Each lane has its own minimum worker; positive lanes additionally have a strict FIFO and one active comparator. Palette indices and lane counts are finite control for fixed .
During each ordinary intermediate-name bit, service the current receipt. At the delimiter, its first distinct nonempty selection releases the prepared row into all positive filter queues and its lower numeral into lane zero. Missing/repeated selections add no jobs. No preceding name service is credited to the newly released job. The source capsule and deduplication trie are the inherited ones.
A normalized service macro performs one bounded classifier step and one sparse-worker step in every lane. A classifier step starts an operand, reads one pair of linked bits, ends a comparison or releases/discards one row. A terminal comparison step includes setting up the next palette comparison when one remains. Restarting the upper numeral for the next palette endpoint uses its retained root, not a copied numeral. Write for positive binary numeral length. Equality of arbitrary to takes at most steps, even when : unequal termination stops immediately. Thus all filter work in lane is at most
For an analysis cutoff , reserve at the original release credits for this filter and its possible minimum work through the first ages. The sparse-worker bound charges at most to a released lower numeral. Rejection discards its minimum reservation; acceptance transfers it without adding credit. Higher-age promotion, dominated-tail deletion and unused budgets discard credit. A macro removes at least one credit while this lane’s combined debt is positive: unfinished filtering has its own step; once filtering is empty, the lowest pending relevant minimum work is at the worker head. Credit is an analysis quantity, not machine arithmetic.
Choose fixed rates macros per ordinary intermediate-name bit and macros per target-query bit. The distinct-name busy-period argument from theorem 62 gives
For lane let be its final minimum, if nonempty, and choose only for analysis
omitting if empty. Since and , , hence
The elementary last inequality is the one in theorem 62 multiplied by . Lane zero uses the same inherited minimum bound with no classification. The distinct-name bound applies to each source’s actual released-name subsequence, not to free service from other sources. A fixed number of parallel copies changes the fixed machine constants only.
After this debt drains, filtering is empty and the worker is fully idle: if it received any row, a shortest numeral has completed and discarded every longer-age tail. Quiescence is locally detected by the queue/active flags and the worker head. The machine never selects the analysis cutoff or scans a queue at a delimiter.
5. Exact readout before every possible final symbol
Run all exported upper rulers from the first query bit. They cost a fixed number of pointer steps per bit and identify the unique range , with ; beyond membership is false. There is no endpoint comparison at query termination.
Lane zero’s lower reader follows theorem 61. When a positive lane becomes quiescent, an empty worker permanently certifies no selected row in that lane. Otherwise capture its minimum lower ruler and use the current query-prefix unit stack as replay debt. Run four repair steps per query bit, including the birth batch. After alignment advance the lower ruler once per bit. A fixed number of lanes means all repairs run in parallel.
Put for a nonempty positive lane. Quiescence occurs by query time . If , and alignment finishes by . If , the first query batch finishes the worker and its one-symbol replay. Before alignment use false for that lane. This is exact whenever its range can matter: if , membership is false before ; if , repair finishes before leaving . If the entire range is false, which causes no difficulty. Empty lanes can always use false.
Consequently, for every target prefix length the maintained answer is exactly
Indeed rows above all have maxima at least , and all other rows have maxima at most . Within this range the union therefore depends only on the least eligible lower endpoint. The empty query has false membership because all lower endpoints are positive. Complement membership for pinned Horn SAT at the prescribed final delimiter. No EOF work, padding, supplied query length or withheld final answer is used.
6. Resource and assurance boundary
Initialization has empty structures and finite flags. A producer bit uses a fixed number of current histogram/cursor observations, unary cells and strict deque operations; its delimiter performs a bounded splice. The right gate exports at most already prepared endpoints. An original left release uses records and queues, a service macro uses local operations, and its fixed repetition rates depend only on . All old-storage observations, literal validation, names, pointer routing, preparation, allocation, suspension, delayed work, query forks, repair and output are charged to actual encoded length .
Strict deque operations and inherited worker operations have finite local record plans. Unroll the fixed batches and compile the simultaneously created bounded records using the inherited compiler. This fixes degree, radius, labels, control, initialization and old-top update semantics for one automaton per fixed , independent of the input endpoints and population. Logical storage is , with the inherited physical-node convention and explicit pointer bits. New objects refer only to old roots or bounded same-batch fields compiled into the new record. No identity/address order, timing, metadata or control-flow channel supplies a maximum class.
The finite audit separately compares the gap cursor to a histogram-set oracle and the classifier/minimum receipt to a literal interval-union oracle, including retained forks and distant successors. Its tuple implementation of deque/FIFO operations is a semantic stand-in for the imported strict persistent primitives; Python timings do not establish native locality. Linked gaps and digits expose cursor operations. The all-length cost and deadline proof is written above.
Imported theorem: strict persistent catenable sequence operations. Written new argument: input-paid occupied-depth splicing and fixed-diversity threshold readout. Finite experiment: bounded semantics, forks and envelope inequalities. Conditional transfer: only the named inherited native compiler/components are used with the stated operation contracts. No new root admission, lower bound or novelty claim follows.
7. Failures, controls and next decisive test
The old fixed-cache route loses a successor beyond the changing word. Rescanning the histogram tail at a delimiter misses strict deadlines. A plain linked prefix requires unbounded reassembly; strict catenation replaces that operation. A single late pipeline bound based on the largest maximum does not protect small earlier ranges; separate boundary-scaled lanes do. Uncharged downstream release is avoided by reserving the filter and minimum budget at original release. None of these restricted failures implies nonrecognition for other representations.
The replay control is branch-local: each query fork spends its own macros and repair steps. Affine-fragment joins do not authorize independently supplied roots. Causal sharing preserves histories but does not pay observations. Unary coherent cubical machinery does not supply unbounded ordered search. Literal right-first Horn input, checked row shape, ordinary late pins and final complement output retain the native SAT controls. Entry 129’s growing alphabet, semantic quotient and matching/positive-path interface bounds are unchanged.
Next test: remove the fixed maximum-diversity gate while retaining interval rows. The present scheme allocates a lane per ordered boundary and therefore does not compile to one fixed automaton for growing diversity. Seek a sparse coverage frontier whose updates, pending comparisons and negative query certificates remain locally accessible; first test interleaved disjoint intervals and a late short interval while large endpoint work is pending. Independent-store composition remains separate.
Custody: maintained proof and checker in GitLab; primary sources remain outside public source. Claim ownership: written theorem 63 in this note, root ledger unchanged. Evidence: general proof and finite audit with explicit primitive scope. Failure/reopen contract: this section. Frontier: growing diversity and independent joins. Reader synthesis and Site: generated styled proof and highlighted, line-anchored exact-download code, with publication state recorded separately.