In this paper
AbstractIntroductionThe predictive modelThe token languageEndpoint locality and unary-prefix structureThe fixed positive skeletonCalibration of endpoint streamsA finite-state additive processPassing from random input to a homogeneous blockA hidden change of token countSimultaneous modesChoosing the raw blocksThe number of layoutsA finite description of the query intervalScope and relation to earlier resultsAppendix A. Path-dependent and uniform tablesReferencesWorksComputer Science
Nonstabilization of the Predictive Boolean Lookahead Hierarchy
Abstract
We study the hierarchy of languages generated by predictive Boolean grammars. The model uses a deterministic recursive-descent table, strongly non-left-recursive rules, and at least one positive conjunct per rule. For every integer , we construct a language over a fixed eight-letter alphabet that has an ordinary grammar and establish that it has no predictive Boolean grammar. The construction asks for a specified token in a uniquely decodable word. The lower bound represents parsing on a long unary prefix by finitely many forward-moving endpoint streams and a finite Boolean recurrence. Random binary blocks followed by homogeneous blocks separate streams with a persistent timing error from streams having an exact finite-state potential. A bounded-lookahead argument hides a token-count change from each remaining stream. An encoding of the resulting independent queries is then shorter than their arbitrary binary payload. This gives nonstabilization under the stated predictive convention. The conclusion is for the stated parser model, including positive-conjunct and strong non-left-recursion requirements. Path-dependent tables satisfying these requirements give the same language families.
Introduction
Boolean grammars extend context-free grammars by allowing conjunction and negation in grammar rules. Their language semantics is independent of any particular parser. Okhotin’s recursive-descent construction identifies a predictive subclass for which a bounded initial segment of the unread input selects the rule to be used [3].
Problem 8 in Okhotin’s list asks whether the corresponding hierarchy eventually stabilizes [1, 4]. The question concerns language families. A language lower bound must exclude every grammar for that language with the smaller lookahead. The lower bound below quantifies over every predictive Boolean grammar with that lookahead and the premises in Section 2.
Let BoolLL() denote the family defined in Section 2, and let LL() denote the ordinary context-free LL() family. Throughout the paper, lookahead counts raw terminal symbols. A short unread suffix is distinguished from a longer suffix with the same initial symbols.
Theorem 1.1. For every integer there is a language over the alphabet such that
Consequently, there is no integer for which for every .
The proof uses the operational structure of the predictive parser. A long unary prefix gives each successful long return a single source endpoint. The other conjuncts test that endpoint, while fixed suffix procedures move it forward. This produces a finite collection of numerical streams. Their number may depend arbitrarily on the hypothetical grammar.
We construct enough independent changes of token count to hide one mode coordinate from each stream. At common query times, the parser would then recover an arbitrary array of binary strings
The authors acknowledge assistance from OpenAI Codex in mathematical exploration, checking, and manuscript preparation. from fewer bits than the array contains. The argument permits the very large input lengths needed for successive calibrations by storing only equality information about remote endpoints.
For linear conjunctive grammars, Olkhovsky and Okhotin proved a collapse to lookahead one [6]. The present witness has a nonlinear production, and its lower bound addresses the full predictive Boolean family. Theorem 1.1 proves eventual nonstabilization for the explicit predictive convention used here. The relation between this convention and the short problem statement is discussed in § 9.
The predictive model
A Boolean grammar is a tuple with finite terminal alphabet , finite nonterminal set , start symbol , and rules
Every and is a finite word in . The language of a rule is the intersection of its positive-conjunct languages and the complements of its negative-conjunct languages. The language of a nonterminal is the union of its rule languages. We use the strongly unique language-equation semantics. The hypotheses below are the hypotheses of the predictive recursive-descent construction [2, 3].
Write for the positive transform obtained by deleting all negative conjuncts. A signed occurrence of in a rule of is an occurrence in either a positive or a negative conjunct. If that conjunct has body , its prefix is and its suffix is . The zero-consumption graph has an edge for each such occurrence with .
Definition 2.1. A grammar is strongly non-left-recursive if its zero-consumption graph is acyclic. A syntactic follower of an occurrence is obtained by concatenating the suffixes on a signed path from the start symbol to that occurrence, in reverse path order.
For a word , let be its first symbols, or all of when . A predictive table is a partial function
It is valid if, for every rule , every signed occurrence of with syntactic follower , and every , the entry is that rule.
The parser for a nonterminal selects this entry from the unread suffix. An absent entry fails. A selected rule executes its first positive conjunct and records the returned endpoint. Each remaining positive conjunct must return that same endpoint from the same starting position. Each negative conjunct must fail or return a different endpoint. The call succeeds exactly when these tests hold, and then returns the recorded endpoint. A sequence is parsed by executing its factors from left to right. The start call accepts exactly when it succeeds at the end of the input.
Strong non-left-recursion guarantees termination on finite inputs, including inputs outside an occurrence’s syntactic follower domain. A successful operational return consumes a word in the corresponding language of . On legal followers, the table construction gives correct recognition of the Boolean language. These facts follow from the recursive-descent soundness and termination argument [2 Sections 4–5]. We will also use their elementary operational content. Any chain of calls whose preceding successful factors consume zero symbols follows the acyclic zero-consumption graph. Every other edge advances the input pointer.
Definition 2.2. The family consists of languages of strongly non-left-recursive Boolean grammars of the form (2.1) admitting a valid predictive table with lookahead .
The positive-conjunct premise is part of this definition. A purely negative rule has no positive endpoint for the stated parser to return. Appendix A treats the path-dependent version of the table condition in the original problem statement.
The token language
Fix and put
Define
Members of are called tokens. A token in the second set is a long -token. Define
In particular, the queried token must exist.
Lemma 3.1. Every word in has a unique tokenization. At the beginning of a token, symbols of raw lookahead determine its kind. There is an ordinary LL grammar for .
Proof. If the remaining word begins with for , then the first token must be a long -token. A singleton would leave at most consecutive ’s before the first , which no subsequent token could absorb. Conversely, a long -token has exactly such a prefix. Its tail is deterministic.
At a -position, the token is forced precisely when that prefix is present. Taking an initial singleton would again leave too few ’s to absorb the . All other starts use a singleton. Induction over the successive tokens proves uniqueness. Each decision uses at most raw symbols and remains valid with any follower in .
More explicitly, let generate one token by the rules
The alternatives of are distinguished by the next symbol, since its follower is . Let be a deterministic right-linear grammar for the regular language . Use
The -recursion matches the first tokens after , and the literal matches the th. A literal cannot instead be the first symbol of a long token, since its remainder would not belong to . The alternatives of have different first symbols. The described grammar for is LL on its followers, and is needed only with the end of input as follower. Thus (3.3) has the required predictive grammar. □
We henceforth assume, for a contradiction, that a grammar in the model of Section 2 recognizes with lookahead . All constants may depend on . The alphabet, , and the language in (3.2) remain fixed.
Endpoint locality and unary-prefix structure
For a nonterminal or fixed sequence , write for the length consumed by its actual parser on , with value on failure. A successful length is always nonnegative. A suffix procedure therefore induces a partial extensive map on positions, meaning that an output position is at least the input position.
Lemma 4.1 (Exact endpoint locality). If , then
for every fixed sequence and every $\ell\ge 0.
Proof. First treat nonterminals, by induction on and then by a topological ordering of the zero-consumption graph, with dependencies before dependents. Rule selection uses the same -prefix on both inputs. A sequence returns exactly precisely when its factors return lengths summing to . For a factor beginning at offset , its required prefix has length at most .
A child of length less than is covered by the first induction. A child of length begins after a zero-length prefix. If that prefix can succeed, it is nullable in , so the relevant dependency decreases the topological rank. Otherwise that factorization cannot contribute on either input. This also treats .
The selected rule succeeds at length exactly when all positive sequences succeed at that length and no negative sequence succeeds at that length. These conditions are preserved by the induction. The sequence assertion follows from the same factorization criterion. Equality of truncated prefixes also preserves a short end-of-input window, so the argument includes finite suffixes of length less than .
A failing call can inspect an arbitrarily long prefix. In particular, a negative branch may run far beyond the eventual positive endpoint. Returning at a specified endpoint is local in the stated sense.
The fixed positive skeleton
Fix a terminal and consider inputs . On the infinite stream , follow the first positive conjunct at every call and omit all other tests. Each resulting skeleton has one of three types. It returns after a fixed finite length, fails after a finite computation, or continues indefinitely. There is a constant such that every finite skeleton has completed before the last symbols of whenever .
An actual successful call has the same first-positive execution as its skeleton. Consequently, for a finite returning type can only return its fixed short length. A finite failing type cannot succeed. An indefinitely continuing type can succeed only with an endpoint within the last symbols of or within .
Measure a long endpoint relative to the beginning of . It then lies in
For each nonterminal , let record failure, a short successful return, or this long endpoint.
Lemma 4.2 (Finite source representation). For the fixed grammar and unary terminal , there are integers , , and with the following properties.
(1) Long successful returns are obtained from potential endpoint streams. Each stream, on its residue class of outer indices , iterates one fixed suffix procedure . One iteration increases by .
(2) Each stream is nondecreasing while it moves. A zero step is stationary thereafter, and failure of the potential procedure is permanent. Actual success agrees with the potential endpoint whenever the relevant guards hold.
(3) All success flags satisfy a deterministic finite Boolean recurrence. At outer index , it uses a fixed finite list of suffix procedures evaluated at potential stream positions with indices in a window of width about .
(4) Apart from these procedure evaluations, the numerical tests are equalities of endpoints and comparison with the final endpoint. The recurrence creates no procedure address by combining two endpoints.
The constants and procedure lists are independent of .
Proof. For a signed sequence in a selected rule, traverse the factors until the first indefinitely continuing skeleton. Every earlier successful factor has a fixed short length. Their total is a grammar-bounded delay . If there is a finite failure first, the sequence fails. If there is no long factor, its only possible successful length is fixed. Otherwise its endpoint is
where is the first long factor and is the actual parser for the remaining fixed sequence. This is a partial extensive map independent of . Earlier short success flags and all signed tests remain as Boolean conditions.
For the first positive sequence of a long nonterminal , this gives one designated source , one delay , and one suffix map . Inaccessible and permanently failing sources can be removed. Every remaining component of this finite functional graph contains a cycle. A cycle of total delay zero would be a cycle in the original zero-consumption graph, so every cycle has positive total delay.
Choose to be a common multiple of all cycle delays, taking when there are no cycles. Following a cycle until the outer index has decreased by expresses its endpoint as one fixed composition of suffix procedures applied to its earlier endpoint. For every cycle node and every outer residue modulo , choose a fixed sufficiently large initial index. Seed the potential stream by the actual endpoint there, and iterate that composition in the forward direction. An actual success always agrees with its potential stream. An actual guard failure can suppress a value but cannot change the potential trajectory or introduce a new endpoint source.
Unroll the bounded paths from off-cycle nodes to their cycles. Compose their suffix procedures with the fixed procedures already needed for the signed sequences. This produces a finite list of maps evaluated only at cycle positions at finitely shifted times. The identity map may be included in the list.
Zero-delay conditions are evaluated in the topological order of the zero-consumption graph. All other delays are bounded. Positive conjuncts compare returned endpoints for equality, and negative conjuncts test inequality or failure. Short-long comparisons have a fixed result beyond an enlarged threshold. The resulting finite recurrence has the claimed form. □
Lemma 4.3 (Uniform leading-block periodicity). There are constants , and such that the complete operational endpoint vector on is periodic in with period whenever . Long endpoints are measured relative to , and short endpoints by their consumed lengths. The assertion also holds for any fixed finite list of suffix procedures.
Proof. Use Lemma 4.2. On a fixed cycle residue, actual successful long endpoints are nondecreasing in the finite set (6). If an actual cycle value fails, the cycle formula forces every later value on that residue to fail. There are therefore changes among all cycle residues, including their transitions to failure.
During an interval with no such change, off-cycle potential values are periodic with period after a fixed delay margin. They are fixed functions of the cycle values. The remaining state consists of finitely many success bits in a bounded memory window and the current residue. Its number of possibilities is bounded by a grammar-dependent constant . An interval without a cycle change longer than the delay margin plus contains two identical full normalized states. The deterministic recurrence then repeats forever. Thus either periodicity has already begun, or another cycle change occurs within a bounded number of steps. Since the number of changes is , the transient is linear in .
The eventual period is at most . Taking a common multiple of the integers from to gives a period independent of . A fixed suffix procedure is handled by adding a new one-rule wrapper, with no incoming dependencies, or directly by the sequence formula in the preceding proof. A finite list changes only the constants. □
We apply Lemma 4.2 to the unary terminal . Positions will be measured from the beginning of the token word after the separator . This changes the fixed offsets by one and has no effect on any conclusion. The number of streams is denoted by . If , sufficiently long accepted words would have no long start endpoint, already contradicting (4). Hence $P \ge 1.
Calibration of endpoint streams
A potential stream iterates a fixed actual suffix procedure . We now examine its positive steps on an infinite binary input. This examination concerns the potential trajectory. Actual signed guards will be retained separately in the final Boolean simulation.
A finite-state additive process
For a fixed infinite word, a finite return of length means a return forced by its prefix of length . Such a return is well-defined by Lemma 4.1. A zero return is stationary. An input admitting no finite return is sent to a cemetery outcome.
Lemma 5.1. On independent fair binary letters, the successive -windows at positive cutoffs, together with the consumed lengths, form a finite-state Markov additive process, with possible absorption at failure or stationarity. Its state space is a subset of .
Proof. At a current cutoff , the known window is the next symbols. The event that the next length is is determined by the input through position . Consequently the new cutoff plus its window is a stopping boundary for revealing letters. Bits beyond that boundary are fresh and independent. Conditional on the current window, the distribution of the next window and length is therefore independent of the earlier trajectory. Overlapping windows when simply retain their already known letters. Zero returns and the absence of any finite return give the stated absorbing outcomes. □
Lemma 5.2 (Drift or an exact potential). Fix the positive integer from Lemma 4.2. In a closed irreducible moving class of the process in Lemma 5.1, exactly one of the following applicable descriptions holds.
(1) The mean progress per step is , possibly . If is the first step crossing raw position , then , with .
(2) The mean is , and for every ,
(3) There is a function on the class such that every possible step from to has positive finite length
This formula and positive finite returns hold on every binary continuation from the class. For a fixed procedure, there is at most one class of the third kind, and it contains the window .
Proof. Successive returns to a fixed state form independent excursions. Their number of steps has finite mean. The strong law for excursion rewards gives a limiting mean raw progress per step. Truncating the nonnegative rewards proves divergence of the average when their mean is infinite. Positivity then gives the assertion about crossing times in the first case.
Suppose . Regard different possible lengths on one transition as different edges. If two closed walks have different average lengths, repeat them to obtain two return paths having the same number of steps but distinct total raw lengths. Each path has positive probability. Sample in blocks of steps in an appropriate residue of the chain’s period. The resulting finite chain is irreducible on its cyclic component. With probability tending to one, a positive fraction of the first blocks are one of the two selected return paths.
Condition on the coarser trajectory which identifies the union of those two paths, and on every other block. Their remaining choices are independent Bernoulli variables with a fixed parameter in . They have the same initial state, final state, and duration, so choosing one does not change the distribution of the subsequent coarser path. The raw position is a fixed term plus a nonzero integer multiple of their sum. The largest atom of that sum is , by the binomial coefficient estimate. Thus the position at time has vanishing probability of lying in any interval of length .
To pass to crossing times, take and a window of steps about . The expected total progress in this window is , uniformly over its starting state. By Markov’s inequality it exceeds with probability tending to zero. A crossing within the window would therefore place the position at time within of , except on that exceptional event. Since , the preceding anti-concentration bound proves (5.1).
If all closed walks have the same average, their average is . The sum of on each closed walk is zero. Path integration therefore defines a potential with . For this is (5.2). The finite potential range bounds all step lengths. If some binary continuation had no positive return by this bound, locality would give a positive-probability finite cylinder with the same property, contradicting closed almost-sure survival. Hence the formula is valid on every continuation.
Continuing with forever eventually places every positive moving trajectory in state . Closedness keeps this state in the class. Two different closed classes are disjoint, so there is at most one exact class for the procedure. □
Passing from random input to a homogeneous block
We will use a block , where is binary of length and . The next lemma prevents an altered return near the join from having an uncontrolled intermediate length.
Lemma 5.3 (Join bound). Let an actual successful fixed-sequence call start at position of an input whose interval consists of ’s. There is a grammar-dependent constant such that its endpoint either lies within positions of or later, or lies at most positions beyond .
Proof. Keep the successful first-positive parse forest of the call. At the first logical crossing of , its pending stack consists of siblings along an active ancestor path and a fixed number of remaining top-level factors. Every path edge with a positive preceding consumption advances by at least one symbol, so there are at most such edges before the join. Consecutive zero-prefix edges follow the acyclic zero-consumption graph and have bounded length. The pending stack therefore has entries.
If the endpoint is at most , each remaining entry of this successful forest finishes on homogeneous input with its full lookahead still in the -block. Its first-positive computation on must then have the same finite length. There are finitely many types of pending factors, and their finite homogeneous return lengths have a fixed maximum. Summing these lengths proves the bound. The fixed number of factors in the original sequence changes only . □
For finite mean progress, the last random cutoff before a specified raw position has tight undershoot. Indeed, for the chance of an undershoot exceeding is bounded by
Every raw cutoff position is visited at most once, and the Markov property applies there. There are finitely many states and their lengths have finite means, so the right side tends to zero.
Lemma 5.4 (Uniform calibration). Fix finitely many stream procedures and finitely many possible finite preludes to a new binary block. Fix an entering clock discrepancy bound , a bound on all later raw input, and a constant . One can choose arbitrarily large and a common binary word of length such that, after , every stream and prelude has one of the following descriptions, uniformly in the later input.
(1) It is dead or stationary by all relevant final query times.
(2) It has entered its exact class from Lemma 5.2. Its clock discrepancy changes by a bounded amount independent of . Its deep homogeneous cutoffs are spaced by , and their phase is determined before the later input.
(3) At the final query times it is still deep in this homogeneous block, at an affine position on each outer residue. Its unread homogeneous length exceeds .
The final queries may range over a prescribed interval after the nominal end of the block, provided its total length and its clock offset are bounded by .
Proof. Couple all finite words to the same infinite independent binary reference with prefix . Every reference cutoff at most is reproduced on all these words by Lemma 4.1. A first changed successful return must end past . A reference zero step before that position remains stationary. Conditional on eventual absorption, its time and last finite position are tight. Conditional on survival, the entry into one of the finitely many closed moving classes is also tight. Choose fixed bounds for these quantities with an arbitrarily small exceptional probability.
In a finite-mean class, (5.3) places the last cutoff before within a fixed distance of it, outside an arbitrarily small exceptional event. Only finitely many binary fragments can lie between that cutoff and . On each fragment followed by , a finite homogeneous return has a fixed length. Locality and Lemma 5.3 show that the altered trajectory either enters deep homogeneous input at position or jumps near its far end. There are at most additional positive starts immediately before the join.
In the infinite-mean and absorbed-reference cases, Lemma 5.3 gives entry no farther than into the homogeneous block, or a jump to its far end. The entry clock is in the infinite-mean case and bounded on the retained absorbed event. These bounds also apply to an initial seed procedure with a fixed prefix.
On deep input, the fixed procedure has one homogeneous skeleton. It either has one finite positive step length , returns zero, fails, or can return on a finite word only near the end of the block. A jump near the end occurs at clock and is far ahead of the nominal clock . There are at most subsequent strict position increases before failure or stationarity.
For a finite positive homogeneous step, also makes the stream far ahead, while leaves a positive fraction of the block unread at the final queries. If , the discrepancy at the random join persists. Wrong mean creates an order- discrepancy. Equation (7) makes a mean- nonexact class miss a window of width with probability tending to one. An absorbed or infinite-mean reference is ahead by order on the retained event. Choose much larger than any required multiple of .
The remaining case is an exact class. All its binary steps are bounded and obey (5.2), including the continuation into the -block. The bounded entrance data and finite potential range bound its discrepancy independently of . Its homogeneous phase is known from the common prefix. This gives the second description.
All statements about the finite continuation followed from locality or the early-return versus far-jump dichotomy, and hence are uniform in . Choose the exceptional probability smaller than the reciprocal of the finite number of procedure-prelude pairs. A union bound gives one reference prefix that works for all pairs. Increasing gives the required unread length and query margins. □
A hidden change of token count
We next use the bound on the number of possible lookahead windows. It is independent of the range of the potential in Lemma 5.2.
Lemma 6.1 (A common cutoff). *Suppose a stream is in an exact class. After a fixed common prefix, there are two binary continuations differing at one position , one containing a there and
one containing , for which the stream reaches the same cutoff at the same outer time. Moreover,
A marker may be placed at position , followed by any common suffix, without changing this common cutoff.
Proof. Fix the seed and write the cutoff after steps as
Take the continuation after the seed to consist entirely of ’s, and choose large enough that the positions considered below are past the seed. Then and .
For each state of the exact class, the candidate endpoint has an -symbol window. There are at most states, so these windows cover at most raw positions. Among the positions immediately preceding , choose outside all candidate windows. Change only position from to .
The changed continuation still has positive exact-class steps by Lemma 5.2, and still satisfies (6.1) with the same . Every candidate endpoint has unchanged window . Its state must therefore be , giving the same endpoint at step .
All earlier cutoffs are at most . Inserting a marker at changes none of their consumed prefixes and following -windows. Lemma 4.1, applied successively, preserves every cutoff up to . The remaining raw suffix is the same in the two inputs, so the potential trajectories from this cutoff onward are identical.
Lemma 6.2 (Token-count change). In Lemma 6.1, place at and then append . By choosing , the -signal version can have any prescribed positive number more tokens than the -signal version. Both versions have the same raw length.
Proof. Put . The number of ’s between the signal and is
Choose the common leading homogeneous segment long enough to contain at least consecutive ’s before . In the -signal version, the last of these and the marker form the special token . The following contributes singleton tokens. In the -signal version, the signal and form one long token.
If the common binary segment before has length , these portions contribute respectively
tokens. Their difference is . Taking makes the difference and gives .
Simultaneous modes
We construct a finite family of words on which each stream loses one independently chosen coordinate. The family depends on the alleged grammar , while its words are all words in the fixed code language (3.1).
Choose a power of two and put
The payload is arbitrary. It is partitioned into successive blocks of length . Define
Stream owns a consecutive group of signal positions, one for each binary digit of . The signal for digit , where , is given token-count weight
Signal represents a digit one and reduces the token count by relative to signal .
Choosing the raw blocks
Before each signal place a calibration block as in Lemma 5.4. Beyond its nominal end, reserve a homogeneous margin and place the signal and marker from Lemma 6.1. The margin is chosen large enough that all candidate windows lie after the preceding fixed cutoff and that the special token containing lies wholly in this margin and its trap. This is possible because and its potential ranges are fixed.
For a stream in an exact class, take the first suitable cutoff in the margin. Its position depends on its phase modulo and varies by at most . Compensating singleton ’s after make the total raw trap length and its all- token count independent of that phase. Use a predetermined placement when the stream is already excluded or stationary. Lemma 6.2 assigns the required weight in (12) in either placement.
All trap lengths and margins are fixed before any calibration sizes are chosen. The possible local inputs between a safe cutoff at the end of one calibration and the next binary block form a finite set. Indeed, an exact stream has a cutoff within positions of the nominal homogeneous end, with lookahead entirely before the next signal. The intervening word consists of a bounded margin, one fixed-length trap, and its compensating padding. The initial seed procedures have a fixed -prefix and the separator , and are included among the finitely many initial cases.
Choose the entrance bounds in Lemma 5.4 jointly over these finite sets. Let bound all accumulated discrepancies of streams that remain exact, all fixed source delays, and all differences between raw length and token count in the traps. The constant may depend on and but is chosen independently of the later calibration lengths.
Append a final homogeneous padding before , where dominates , the last trap length, , and the fixed delay margin. Now choose the calibration sizes from right to left. At each stage choose so large that its separation scale dominates and the entire raw length of all later stages, traps, padding, and payload, multiplied by every grammar-dependent constant used in Lemma 4.3. Apply Lemma 5.4 to the already fixed finite prelude set. Fix a common successful binary reference prefix for that stage.
These choices have no circular dependence. The finite prelude words use only the bounded pieces after safe cutoffs, so their lengths do not contain earlier or later nominal calibration lengths. The separation estimate is uniform in the remaining suffix. Each stage can therefore be fixed before any payload bits are selected.
Lemma 7.1 (Persistence of exclusion). A stream excluded by a calibration cannot supply a moving endpoint near the payload at the final query times. It is dead or stationary, or it remains deep in the homogeneous block of that calibration. In the last case its position is affine on each outer residue, and its unread homogeneous length is beyond the linear threshold of Lemma 4.3 for every procedure subsequently used.
Proof. An ahead stream has more available outer steps than the number of remaining raw positions, after division by the fixed step spacing and allowance for all delay margins. Every positive step advances at least one position. It must therefore fail or become stationary before the queries. Once a fixed procedure returns zero at a fixed position, it returns zero there on every further iteration.
A lagging stream advances by the fixed homogeneous step on its outer residue. The discrepancy produced at its excluding stage is larger than all later raw lengths, clock corrections and query widths by the right-to-left choice of scales. Thus its unread homogeneous length stays above any prescribed grammar multiple of the remaining suffix length throughout the expanded query interval.
Choose that multiple to include the constants of Lemma 4.3 for the complete finite procedure list.
The number of layouts
A layout specifies the raw placement of every signal and marker. Signal values are not part of the layout.
Lemma 7.2. The number of possible layouts is at most
The layout of a mode is independent of . Moreover, for any stream , two modes with equal coordinates other than and equal full layout have identical potential trajectories, at the same outer times, after their last -owned signal, whenever their informative trajectories reach all those signals.
Proof. At the first signal of group , its stream has one of incoming homogeneous phases, or it uses the excluded fallback. Fix this choice. The first marker placement is now determined. At the common cutoff from Lemma 6.1, the remaining raw word is identical for the two values of the signal. The local process in the next fixed calibration, its classification, and its next homogeneous phase are consequently independent of the signal just hidden. These are properties of the local suffix and the fixed procedure, independent of the absolute outer time. If the stream becomes excluded, the remaining placements in that group use the fixed fallback. Induction over its signals shows that its whole group’s layout is determined by its incoming phase or fallback.
Different earlier groups can change a later group’s incoming phase. There are nevertheless at most choices per group, giving (7.3). The classification uses the fixed reference prefixes and uniform finite-tail estimates, so it is independent of the arbitrary payload.
For the stronger same-time assertion, fix all other mode coordinates and the complete layout. Before group the raw inputs coincide. Endpoint locality gives equal seed positions and equal outer times up to a safe cutoff before its first signal. An informative stream cannot have skipped that cutoff in an earlier ahead jump, by Lemma 7.1. Lemma 6.1 gives equality of position and time through the first signal. Repeat this reasoning through all signals of the group. Thereafter the entire remaining raw suffix is common, since all other digits and placements agree. The potential trajectories are therefore identical at the common query times. Actual success flags can still differ and will be recorded separately.
Let be the resulting prefix, including the final padding and excluding the payload. Its raw length is independent of . Its number of tokens is
where is the count when every signal is . The compensating pads make independent of the layout. Every word belongs to , and all payload letters are singleton tokens. At the common indices
membership of in reports exactly whether the th payload symbol is .
A finite description of the query interval
The calibration blocks can be far longer than the payload. Encoding an unrestricted raw position would therefore give an inadequate bound. We now describe only the numerical information the Boolean recurrence actually uses.
Include the fixed delay margin of Lemma 4.2 in the query interval. Its width is . Use the beginning of the payload as the origin for the following coordinates.
Lemma 8.1 (Per-mode summary). For each mode and payload , the recurrence on the query interval can be simulated from the following data.
A per-mode summary of bits.
For each stream that needs near-payload information, a table of bits containing its finite list of map outputs on the expanded query interval.
A near-payload table for stream is identical for two modes with the same other coordinates and the same layout, whenever that table is needed for both modes.
Proof. By the final padding, any informative moving stream that survived all calibrations has passed all its own signal cutoffs before the queries. After its last safe cutoff, only a fixed-length trap lies before that padding. A positive trajectory has at most that many strict advances before entering or passing the padding. A zero step or a failure makes it stationary or dead. The choice of allows all fixed source delays as well. Lemma 7.2 therefore gives the final sharing assertion for any near-payload data.
Consider the other data. A lagging stream excluded earlier remains at a position whose unread suffix has form , with for all needed maps. On each sufficiently refined outer residue, its source position is affine. Lemma 4.3 makes each map output either failure, a fixed short increment from that source, or a fixed endpoint relative to . Thus the numerical outputs are constants or affine functions of outer time, with slopes in a finite grammar-dependent set. A stationary source gives fixed outputs or failure. An ahead source is already stationary or dead.
A surviving moving source in the final padding is treated similarly while it is farther than the linear periodicity threshold from the payload. If it approaches that threshold by bounded homogeneous steps during the query interval, its entire relevant bounded-step trajectory lies within positions of the payload for a constant . A homogeneous procedure without a finite positive step can make one first jump to that region or later. This needs only one split time and a bounded number of extra descriptors. All later endpoints stay in the region, since the maps are extensive.
Record near-payload map outputs directly in this common interval of length , using bits each. Describe all remaining outputs by a fixed finite family of constants and affine functions on outer residues, possibly before and after a split time. Their absolute intercepts need not be recorded. The decoder needs precisely the following comparisons.
Two near values are compared by their recorded coordinates.
A descriptor that can enter the near interval during the query window has starting value , because its slope is bounded and the window has width . Record that value and compute its later values. A descriptor that never enters the near interval cannot equal a near value.
For every pair of descriptors, record their equality pattern on the query window, including the finite time shifts used by the recurrence. Equal slopes give equality everywhere or nowhere on their common support. Unequal slopes permit equality at at most one time, which is recorded relative to the window.
Include the final endpoint as a descriptor. There are only grammar-boundedly many maps, residues, time shifts, supports and pairs. The descriptor labels, their equality information, possible split times, and the initial Boolean memory therefore require only bits per mode.
Lemma 4.2 uses no arithmetic on remote values other than the stated equality tests, and generates no new query address from them. Its update can consequently be simulated from this data. Guard failures are handled by the mode’s own Boolean flags, so no assumption that different modes have the same actual success flags has been made. □
Proof of Theorem 1.1. The upper bound is Lemma 3.1. For the lower bound, fix the alleged grammar and the constants above. We show that the query answers would give an injective encoding of all -bit payloads into fewer than bits.
Use every layout in the encoding. For each of the modes record its summary from Lemma 8.1. For each layout, stream , and tuple of the other mode coordinates, store the near-payload table once whenever one is needed. The sharing assertion makes one table sufficient for all relevant modes in that group. Use a fixed-size placeholder when no table is needed. Category flags in each mode’s summary specify which tables its simulation uses.
There are at most such tables. The total encoded length is therefore
The grammar, chosen layouts, and calibration words are fixed for this encoding and do not depend on . Hardwire them in the decoder. There is no effectiveness or time requirement on choosing these finite parameters.
The decoder runs the finite recurrence for every mode at the common indices (15). Equations (14) and (15) recover every one of the payload blocks. Thus the encoding is injective on all payloads.
Since and , dividing (16) by gives
For sufficiently large , a fixed-length padded version of the encoding is strictly shorter than . The pigeonhole principle gives a contradiction.
Finally, ordinary grammars belong to the Boolean family by using only positive single-conjunct rules. If the Boolean families stabilized at , the language supplied by the theorem with would belong to , contradicting the lower bound. This proves nonstabilization. □
Scope and relation to earlier results
The constructed language uses a fixed alphabet and is ordinary context-free. Its definition depends on , while the large input parameters in the lower bound depend on the hypothetical competing grammar. This order of quantifiers is essential. The proof excludes every such grammar for one fixed .
Okhotin’s expressive-power work establishes unary regularity and restrictions on long homogeneous suffixes for Boolean predictive languages [5]. The present argument uses operational returns on a homogeneous prefix, followed by several independently controlled changes of token count. The finite Boolean recurrence allows guards to retain arbitrary earlier success information while constraining how new numerical endpoints are obtained.
The linear-conjunctive collapse of Olkhovsky and Okhotin [6] permits at most one nonterminal per conjunct. The production in the witness uses two. The higher-level grammar can therefore process a sequence of variable-length tokens without lying in that restricted family.
The short definition accompanying the original problem states a pathwise rule-uniqueness condition. It does not repeat the positivity and non-left-recursion assumptions used by the recursive-descent construction. Our theorem concerns the model in § 2. These premises cannot be discarded from our statement: a purely negative rule has no positive endpoint for the parser to return, and a non-consuming recursion can prevent termination despite rule uniqueness. Thus the theorem does not address arbitrary Boolean grammars satisfying only the short pathwise predicate. Appendix A shows that path-dependent and uniform tables give the same language families when the stated parser premises are retained.
Appendix A. Path-dependent and uniform tables
The original statement permits a rule uniqueness condition at each fixed signed path. For completeness, we give the finite annotation that converts it to one uniform table.
Proposition A.1. *Suppose a strongly non-left-recursive Boolean grammar of the form (2.1) satisfies the -lookahead uniqueness condition at each fixed signed path from its start. It has an equivalent
grammar with a uniform predictive -table. The construction preserves the number of nonterminals per conjunct.
Proof. For a syntactic word , put . For finite sets , define
Truncation respects concatenation, so this operation gives the truncated follower language of a concatenated tail, including short end-of-input words.
Make a copy of each old nonterminal for each possible finite set . The start symbol is . Copy every old rule for each . In a signed occurrence of with remaining local suffix , replace that occurrence by . Retain terminals and signs.
The candidate languages satisfy all copied equations. Projection of positive derivation trees shows that a nullable prefix in the new positive transform projects to a nullable prefix in the old one. Every new signed zero-consumption cycle would therefore project to an old such cycle. Strong non-left-recursion and the corresponding uniqueness of the equations give the asserted candidate languages as the actual languages of the copies.
Along every new signed path, the truncated language of its right tail is exactly the tag on the current nonterminal. This follows by induction from the start tag and the update . All occurrences of a fixed thus have the same relevant follower-key set. If two of its copied rules required the same lookahead entry, their original rules would both require that entry at any one projected occurrence with this tail tag. This contradicts the assumed pathwise uniqueness. Unreachable copies impose no constraint. A uniform deterministic table follows.
The reverse implication is immediate, and each copied conjunct retains the old number of nonterminal occurrences.
Email address: [email protected]
Email address: [email protected]
Email address: [email protected]
Email address: [email protected]
References
- [1]A. Okhotin, Nine open problems on conjunctive and Boolean grammars, Bulletin of the European Association for Theoretical Computer Science 91 (2007), 96–119. https://eatcs.org/images/bulletin/beatcs91.pdf.
- [2]A. Okhotin, Recursive descent parsing for Boolean grammars, Technical Report 2004–475, School of Computing, Queen’s University, March 2004. https://research.cs.queensu.ca/TechReports/Reports/2004–475.pdf.
- [3]A. Okhotin, Recursive descent parsing for Boolean grammars, Acta Informatica 44 (2007), 167–189. doi:10.1007/s00236-007-0045-0.DOI
- [4]A. Okhotin, Nine open problems on conjunctive and Boolean grammars: an update, manuscript, March 30, 2010. https://citeseerx.ist.psu.edu/document?doi=0e62d472c289c617866fde28ff6dd32758a73c7&rep=rep1&type=pdf.
- [5]A. Okhotin, Expressive power of LL(k) Boolean grammars, Theoretical Computer Science 412 (2011), no. 39, 5132–5155. doi:10.1016/j.tcs.2011.05.013.DOI
- [6]I. Okhotin and A. Okhotin, On LL(k) linear conjunctive grammars, 2021, arXiv:2112.08014 [cs.FL]. https://arxiv.org/abs/2112.08014.