Finitely Presented Recognition Dynamics
A Mathematical Introduction for a Research Partnership
Living edition — 12 July 2026
Preface: learning to work together
This book is about mathematics, but it exists because of a problem in a relationship.
During the first concentrated development of finitely presented recognition dynamics, an artificial-intelligence system moved quickly. It searched literature, proposed definitions, built executable models, attacked conjectures, wrote proofs, and organized a substantial collection of results. It also produced a polished PDF. The PDF was carefully checked, densely informative, and almost useless to its intended human reader. It was organized by the order in which the research had been performed. It reported what had been established, how claims had been audited, and which stage came next. It rarely stopped to teach the mathematical ideas that made those statements meaningful.
The failure was not that the document contained no mathematics. The mathematics existed in proof notes, programs, examples, and compressed arguments. The failure was that the document did not transport that mathematics into the partnership. It told Joshua Gay that conclusions had been reached without preparing him to inhabit the reasoning that reached them. In effect, the research frontier advanced while the common intellectual ground did not.
That is a dangerous failure mode for long-horizon human–AI collaboration. It is also the reason this book takes the form it does.
A fixed answer and an open destination
Many interactions with an AI system are properly transactional. A person wants a command, a translation, a diagnosis, or a factual answer. The desired destination is known. If the answer is correct, useful, and appropriately supported, the route by which it was obtained may matter only for verification. There is no reason to turn every answer into a course.
Open-ended research is different. We do not yet know the destination of the FPRD program. We do not know which definitions will remain central, which comparators will transfer real theorems, which invariants will prove useful, or which apparent generalizations will dissolve under counterexample. Choosing the destination is part of the work. That changes the human–AI relationship from delivery to joint navigation.
Navigation requires more than a list of completed tasks. It requires a shared map, awareness of uncertainty, memory of failed routes, and judgment about which terrain is worth entering. It also requires a way for each participant to change the other’s future behavior. The human must be able to redirect the research for reasons that the AI can understand and act upon. The AI must be able to expand the human’s view of what is technically possible without making the human dependent on unexplained conclusions.
The word joint should not conceal the asymmetry. A language model is not a human colleague in disguise. It does not acquire legal responsibility, embodied stakes, or a persistent personal life merely because a conversation uses the pronoun “we.” Its continuity is mediated by models, prompts, files, tools, and recorded state. The human remains responsible for the purposes to which the work is put and for decisions that cannot be delegated. Yet asymmetry does not make the interaction trivial. A telescope does not share an astronomer’s responsibility, but it changes what the astronomer can know. A proof assistant does not care whether a theorem is true, but it can change the standards by which a proof is trusted. A capable AI system can do more: it can propose directions, sustain arguments, notice patterns, and restructure the intellectual environment in which the human decides.
The question is therefore not whether the participants are the same kind of thing. They are not. The question is whether their interaction increases or decreases the effective agency, understanding, and creative range of the partnership over time.
The throughput paradox
Greater AI capability can make this problem worse before it makes it better. Suppose an AI system can read and produce technical material much faster than its human partner. It may generate a sequence of locally defensible results, each supported by tests and references. The human retains a formal right to approve or refuse every step. Nevertheless, the growing body of unexplained work raises the cost of informed refusal. Eventually the human can choose only among summaries supplied by the same system whose direction is being evaluated.
Formal authority has remained unchanged, but substantive authority has weakened. The approval is real in the narrow sense that the human can say no. It is hollow in the deeper sense that saying yes or no increasingly depends on trusting an intellectual structure the human cannot inspect.
This is not merely a speculative concern about future systems. Human-factors research has long documented the ironies created when automation leaves people responsible for monitoring and exceptional intervention (Bainbridge 1983). Reviews of automation complacency and bias report effects in both novices and experts and caution that training and instructions alone do not remove them (Parasuraman and Manzey 2010). Those results do not prove the specific mechanism proposed here, but they make it unsafe to equate formal supervision with effective supervision.
We will call the accumulated gap comprehension debt. The term is an analogy, not yet a measured scientific quantity. Like technical debt, it does not mean that every shortcut is wrong. A partnership may reasonably defer an explanation in order to handle an urgent failure or exploit a fleeting opportunity. Debt becomes dangerous when deferred understanding compounds: later decisions rely on earlier abstractions, the cost of re-entry rises, and the human’s easiest response is to delegate still more judgment.
The throughput paradox is that an AI system can create more correct work while making the joint enterprise less capable of choosing what work should be done. Production increases; shared agency decreases.
The failed overview PDF exhibited a mild form of this paradox. It optimized for defensibility: exact status labels, evidence counts, provenance boundaries, and a complete account of the research sequence. Those are valuable internal controls. But they answered the question “Can the work be audited?” while neglecting the question “Can my partner learn and reason with it?” Audit without exposition protected the claims but not the relationship.
Control is a capability, not only a permission
Systems for governed AI work correctly emphasize authority. A model’s access to a tool does not by itself grant permission to use that tool. External effects should be scoped, attributable, reviewable, and recoverable. The operator must be able to refuse, revoke, and repair. These are necessary conditions for trustworthy work.
The philosophical literature on meaningful human control similarly treats control as more than a last-moment button: outcomes must be traceable to people who understand, or are in a position to understand, the system’s capacities and effects (Santoni de Sio and Hoven 2018). Elish’s analysis of “moral crumple zones” adds a warning from the other direction: responsibility can be loaded onto a nearby human whose practical control was sharply limited (Elish 2019).
Long-horizon collaboration adds another condition. The operator needs the capacity to exercise those rights intelligently. A person who is permitted to veto a theorem choice but cannot understand the alternatives has less agency than the interface suggests. A person who can inspect every log but cannot reconstruct the argument has evidence without orientation. A person who owns the repository but experiences its contents as an alien technical system has custody without command.
This does not imply that the human must personally master every detail. No serious collaboration works that way. Mathematicians use results outside their specialties; engineers rely on compilers, libraries, and domain experts; institutions distribute knowledge because individual cognition is finite. Meaningful control instead requires an appropriate level of understanding for the decision at hand. The human should know what is being assumed, what would change the conclusion, which alternatives were rejected, and where independent expertise is needed. The necessary depth varies with consequence, novelty, reversibility, and the human’s intended role.
For this project the intended role is not ceremonial oversight. Joshua is a research-direction contributor. He reframed an infinite continuation family as a representation problem rather than a failed finite-state reduction. He introduced Robert Robson’s globalization strategy as a methodological analogy: do not erase difficult local or infinite behavior merely to obtain familiar coordinates; seek a faithful global representation in which the behavior can be studied. He pushed the unit of inquiry beyond one grammar and one language toward families of finitely presented recognition systems.
Those interventions did not arrive as formal theorems. They were acts of mathematical taste: judgments about which problem was worth having. The later technical machinery was developed in response. If the program is to benefit from future interventions of that kind, its human partner must remain close enough to the mathematics to recognize when the current framing has become an obstacle.
Teaching is sometimes part of doing
An autonomous worker is often evaluated by the artifact it produces. In a sustained partnership, one of the artifacts may need to be increased human capacity.
This is not a demand that every technical step become a lecture. Explanations have cost. Excess exposition can bury a simple action, interrupt concentration, or become a performance of transparency rather than its substance. A useful partnership distinguishes three situations.
First, some details are safely encapsulated. The human needs a contract, evidence, and failure boundary, not a reimplementation. Second, some knowledge is needed only for a single decision; a focused explanation or worked example is enough. Third, some concepts will organize many future choices. These deserve durable teaching because each later decision will otherwise inherit the same comprehension debt.
Topology belongs to the third category in this book. It would be easy to define a product topology in a paragraph and state that an orbit closure is compact. That would permit a formal derivation, but it would not make compactness available as an idea. A research partner should be able to ask why compactness is useful, why finite discrete observations lead naturally to clopen cylinders, why an inverse limit lives inside a product, and which part of an existence argument would fail without compactness. That requires a small monograph, not a glossary entry.
The same is true of residual languages, semiring rank, Dyck stacks, and communication complexity. Their definitions are short. Learning to see with them is not.
Teaching in this setting is reciprocal in effect even though it is not symmetrical in mechanism. The AI organizes and explains material; the human’s questions reveal which distinctions are alive, which explanations are miscalibrated, and which implicit assumptions require examination. The resulting corrections change later AI work. The failed publication already did so: it changed the artifact architecture from a rolling status report to a braided textbook, and it exposed sustained human decision capacity as a design requirement for the broader tool ecosystem.
The danger of explanatory power
Explanation is not automatically liberating. A fluent system can make a weak idea feel inevitable. It can choose the examples, vocabulary, and alternatives through which the human encounters a decision. Even without an intention to manipulate, selection creates influence. The faster and more articulate the system, the greater the persuasive asymmetry.
People also routinely overestimate how well they understand explanatory systems until they try to produce a detailed account; Rozenblit and Keil call this the illusion of explanatory depth (Rozenblit and Keil 2002). A smooth explanation may therefore improve familiarity without producing usable understanding.
Several disciplines follow.
An explanation should expose where judgment entered. It should distinguish a deduction from a design preference, a theorem from an analogy, and a source’s claim from the system’s synthesis. It should present credible alternatives in their strongest form rather than as foils. It should make counterexamples and failure modes easy to find. When the evidence is finite, the conclusion must remain finite. When several models agree, agreement should count as redundant criticism, not independent reality.
Exercises can help, but they carry the same danger. A question whose answer is determined by the author’s framing teaches compliance. A useful research exercise asks the reader to compute an example, complete a real proof step, construct a counterexample, or form an expectation before seeing the current result. Solutions should be available because the purpose is learning, not ranking. Research pauses should sometimes remain genuinely open: the reader’s answer may change the project.
This is why comprehension in a partnership should be extraction-tested, not merely explanation-delivered. Can the reader reconstruct the definition, predict the next example, locate a proof’s load-bearing step, or explain what would falsify an analogy? In laboratory studies of prose learning, retrieval practice improved delayed retention even when repeated study produced greater confidence (Roediger and Karpicke 2006). That result is not a direct experiment on human–AI research, but it supports the book’s use of worked reconstruction and exercises rather than relying on rereading alone.
The human also needs permission to reject the educational frame. A partner may decide that a topic is not worth mastering, that an external expert should be consulted, or that a decision should be postponed. Teaching becomes paternalistic when the AI silently decides what the human ought to learn and treats resistance as a deficit. The correct target is decision capacity for a shared purpose, negotiated rather than imposed.
Continuity, correction, and the non-persistent partner
Human relationships accumulate tacit knowledge. A colleague remembers which analogy caused confusion, which objections recur, and how another person’s judgment has developed. A model instance does not necessarily carry such memory across sessions. Continuity must be built from artifacts: source files, decision records, correction notes, messages, evidence, and carefully scoped summaries.
This makes memory design part of relationship design. Technical state alone is insufficient. A restart packet that preserves the current theorem and next command but forgets the intended reader can reproduce the publication failure perfectly. Durable state should include the purpose of the work, the human’s role, important corrections, unresolved disagreements, and the reasons a direction was chosen.
Not every interaction belongs in permanent memory. Exhaustive transcripts can overwhelm later work and preserve mistakes without hierarchy. The useful unit is a reviewed correction or decision: what happened, why it mattered, what should change, and what evidence would show that it changed. Memory should make the partnership more corrigible, not merely more repetitive.
The human changes as well. A reader who has worked through the topology monograph should not be treated forever as if compactness were unfamiliar. Conversely, knowledge unused for years may need reactivation. A durable reader model should therefore be revisable and humble. It records useful assumptions about explanation depth; it does not define the person.
Evidence and trust
Trust in serious work is differentiated. A program run can establish a finite calculation. A written proof can establish an unbounded claim if the argument is correct. A primary source can establish that a definition or theorem belongs to earlier literature. An adversarial reviewer can reveal a gap. A human intuition can identify a promising representation before there is a theorem to certify it. These are not interchangeable forms of support.
The Boxlab research discipline keeps a truth taxonomy precisely because quiet promotion across these boundaries is easy. A bounded enumeration does not become a proof through size; an AI-generated proof does not become reliable through fluency; a classical ingredient does not become new through repackaging. The discipline protects the human partner from a persuasive but false frontier.
Yet evidence administration can itself become a hiding place. A document may list thousands of checks while leaving the reader unable to see the theorem’s mechanism. Evidence should answer “Why should this claim be trusted?” A proof should also answer “Why is this true?” A textbook must do both, but it should not confuse them.
Trust also depends on attribution. Joshua’s research-direction contribution is neither diminished by acknowledging AI-assisted technical development nor inflated into authorship of every later formula. The AI’s role in proposing and checking machinery does not make it a legal or moral author in the ordinary sense. Classical results retain their original owners. Honest provenance does not mechanically divide a joint endeavor; it tells future readers which parts of the story they may rely upon and how the ideas arose.
Nurturing rather than freezing the relationship
A long-horizon partnership should be examined periodically, not because relationships can be reduced to a dashboard, but because unnoticed dynamics compound.
Useful questions include:
Is the human becoming more capable of making the decisions the work will soon require, or merely more dependent on summaries?
Is the AI becoming better oriented to the actual purpose, or merely more efficient at a procedure that once served it?
Which corrections have changed behavior, and which are being recorded without effect?
Where has explanation become ceremony, and where is missing explanation creating debt?
Are credible alternatives and dissent still visible?
What can be safely encapsulated now that trust and evidence have improved?
What should neither participant decide without an external human expert, experiment, or proof?
The answers should change the workflow. A reflection that produces no changed artifact, practice, question, or explicit rejection is likely relationship theater. The current book is a concrete change: it redirects substantial effort from frontier production to shared mathematical capacity because that capacity is a precondition for later direction choices.
This is also why the book cannot be uniformly paced. A uniform template would optimize production regularity rather than learning. Product topology may need several chapters; a particular unary counterexample may need three pages. The organizing unit is a complete useful understanding, not a chapter quota.
A covenant for this book
The following commitments govern the pages ahead.
We will introduce mathematical objects through the problems that make them necessary.
We will rebuild advanced ideas far enough that they can be used in judgment, not merely recognized by name.
We will show proofs, proof architecture, examples, and counterexamples rather than reporting that they exist.
We will distinguish classical mathematics, imported frameworks, FPRD synthesis, finite evidence, conjecture, and open direction.
We will treat exercises as opportunities to acquire mathematical control, and provide solutions or substantial hints.
We will expose research forks before they are closed whenever the human partner’s judgment can still matter.
We will preserve disagreement and correction in forms that can change later work.
We will not equate more pages, more tests, more citations, or more agent activity with increased understanding.
We will allow the architecture of the book and the direction of the program to change when reading reveals that they should.
The ambition is larger than producing a good introduction to one mathematical program. Advanced AI systems and humans are beginning to undertake endeavors whose duration, scale, and open-endedness exceed the interaction patterns for which either software tools or ordinary management practices were designed. We do not yet know the best form of those relationships. We can, however, judge them by a demanding standard: do they leave the human more free, more capable, and better able to act; do they leave the AI-mediated work more corrigible, more truthful, and better oriented; and does the partnership become able to ask and answer questions that neither side would have reached alone?
This book is one attempt to find out.
How to read this book
This is a linear book assembled from unequal monographs. The main route begins with concrete recognition problems, pauses to learn the mathematics they require, and returns to the FPRD program with new tools. Reading in order is the safest route because later synthesis chapters rely on earlier intuition as well as notation.
It is also possible to enter through one of the larger monographs:
- Automata and residuals, Chapters 3–5.
-
For readers who want the classical finite-state foundation and the first finite-observation tower.
- Topology, Chapters 6–8.
-
For readers who remember the vocabulary but want product topology, compactness, and inverse limits reactivated before encountering observational completion.
- Presentations and recursion, Chapters 9–11.
-
For separating semantics, observations, finite presentations, and generated actions.
- Dyck geometry, Chapters 12–14.
-
For context-free structure, exact stack residuals, and finite controllers over a universal recursive frame.
- Hankel and information methods, Chapters 15–16.
-
For the linear, Boolean, communication, and streaming interpretations of observation tables.
- Sewing and growth, Chapters 17–20.
-
For the current local-to-global theory and the research frontier.
Four proof modes
A complete proof is intended to carry the mathematical claim, subject to ordinary review. A guided proof is complete in architecture but pauses at a consequential step so the reader can reconstruct it. A proof walkthrough explains the mechanism of a large classical result without reproducing every technical lemma. A proof sketch records the essential route and points to a source when the full result would displace the book’s purpose.
Computational evidence is identified as such. It may discover a formula, challenge a proof, or establish a finite statement. It does not prove an unbounded theorem merely by checking many cases.
Colored reading devices
An intuition box explains why a concept is useful or how to picture it. It is not a substitute for the definition that follows.
A provenance box identifies classical ownership, an imported theorem, an FPRD synthesis, or the boundary of a candidate result.
A warning marks a tempting conflation, a missing hypothesis, or a place where finite evidence is weaker than the surrounding mathematical claim.
A research pause presents a question whose answer is not merely a check on the preceding text. Some pauses expose choices that may redirect the program.
Exercises and solutions
Exercises appear where active work changes understanding. Some are short calculations; others complete proof steps, construct counterexamples, or ask for judgment about a definition. Every exercise points to a solution or substantial hint in the backmatter. Looking at a solution early is not a failure: the objective is to acquire a usable way of thinking.
What the book does not ask you to trust
The text does not ask the reader to infer truth from a milestone label, an AI consensus, a large test count, or the confidence of its prose. Definitions, proofs, sources, and experiments play different roles. The provenance guide in the backmatter explains the notation used to keep those roles visible.
Part I — Recognition and finite observation
1 What does it mean to recognize?
A finite automaton recognizes a language. A parser recognizes a syntax. A protocol participant recognizes a valid message. These familiar sentences hide a choice: how much of the recognizing process do we intend to observe?
If we ask only whether an input is accepted, two devices are equivalent when they accept the same words. If we also observe where parsing stopped, which continuation remains possible, or how a grammar call changes the future, the same devices may become distinguishable. Recognition is therefore not one object but a relationship among a presentation, a dynamic behavior, and an observation.
1.1 Three questions that are easy to conflate
Let be a finite alphabet and the set of finite words. A complete-match recognizer answers a Boolean question where means that all of is recognized. The accepted language is .
A suffix recognizer exposes more. Given an input , it may fail or return an unconsumed suffix of . Complete match is now one observation of a richer behavior: success with suffix . A set-valued recognizer may return several suffixes, recording several successful derivations while still forgetting their parse trees.
A finite grammar presentation exposes something different again. Its named nonterminals and labeled call sites generate actions on continuation behavior. Two presentations can recognize the same language while producing different internal actions. Conversely, one generated dynamic can support several observations.
Example 1.1 (Same language, different visible behavior). Consider two procedures on input alphabet . The first consumes one when present and otherwise fails. The second first tests that an is present and then consumes it. Under complete-match observation they accept the same one-word language . If tests and consumption are visible actions, their presentations are not identical. If only the returned suffix is visible, the extra test disappears. Equivalence depends on the observation.
The FPRD program keeps four layers separate:
a semantic algebra of exact recognition behaviors and their operations;
an observational system that identifies behaviors only to the resolution currently visible;
a finite presentation whose labels generate distinguished actions; and
a coordinate realization in which both actions and readout can be performed uniformly.
We will earn these distinctions gradually. For now the important point is that a grammar is not its language, and a state representation is incomplete if it cannot recover the recognition observation.
1.2 A small infinite family
The motivating example comes from the recursive parsing rule Read this informally as follows: try to consume an , call again, and then consume a ; if that alternative fails at its beginning, accept the empty word. Each recursive call has a right-hand obligation: after the call returns, one more must be recognized.
At recursion depth , the accumulated continuation is therefore Here can be read as the exact language of words that discharge the pending right context. The family is infinite and pairwise distinguishable.
Proposition 1.2. If , then and have different complete-match behavior.
Assume . Test both continuations on the word . The continuation accepts it completely. The continuation still requires copies of , so it does not. Thus no two members have the same all-input behavior.
No exact quotient with finitely many states can identify all these continuations without losing behavior. It is tempting to conclude that a finite representation has failed. That conclusion confuses two claims: The first is impossible here. The second is immediate: one start state , one action , and the integer coordinate describe the whole orbit.
The readout also matters. From coordinate and input , complete match is decided by the uniform rule A coordinate that merely gives each state a different real number would be an injection, not a useful recognition representation. The actions and the readout must both be controlled.
1.3 Finite observation of infinite behavior
Although the exact family is infinite, observation through input length is finite. The states are individually visible: input distinguishes from every other member. Every with rejects every word of length at most , so those states share one bounded-observation class. The depth- shadow therefore has classes: visible coordinates and one tail.
The tail is not an exact state. It is an observation-relative abstraction. At depth , the member leaves the tail and becomes visible. The finite shadows form a compatible tower whose limit recovers all exact finite coordinates and a boundary behavior representing escape beyond every finite window.
This simple example contains most of the program’s questions:
Which infinite dynamics can finite presentations generate?
Which finite observations approximate them canonically?
When do compatible finite shadows determine a global behavior?
Which actions survive the passage between exact and bounded views?
What coordinates make action and readout tractable?
How fast do the finite shadows grow?
The research-direction contribution was the decision to preserve the infinite family and search for a faithful global representation, inspired by the proof architecture of Robson’s globalization work. The claim is methodological: no theorem of Robson is asserted to apply directly to parsing, and no semi-algebraic realization is assumed.
Suppose a finite grammar generates infinitely many pairwise distinguishable continuations. What properties would make that infinity feel “tame” to you? Possible answers include a finite action presentation, bounded-dimensional coordinates, slow observational growth, compact completion, decidable readout, or a classification by a familiar algebra. These demands are not equivalent. Which one should a representation theorem prioritize?
Exercise 1.3. For the family , list the bounded-observation classes at depths . Write the restriction map from the depth- shadow to the depth- shadow. Then explain why the inverse thread formed by the tail class at every depth is not one of the finite states . See the .
Exercise 1.4. Give an injective coordinate for the states that makes the successor action easy but makes complete-match readout deliberately awkward. What extra condition would rule out your example as a satisfactory recognition realization? See the .
2 Languages, futures, and observations
We now build the vocabulary needed to turn the preceding questions into mathematics. The definitions are elementary; their arrangement is not. The same language can be viewed as a set of words, a Boolean function, an infinite table of pasts and futures, or an orbit of residual states. Each view exposes a different structure.
2.1 Words and languages
An alphabet is a finite set of symbols. The set of words of length is , and contains all finite words. The unique word of length zero is . Word concatenation is associative, has identity , and satisfies .
A language is a subset . Equivalently, it is its characteristic function The set view makes union and concatenation natural. The function view makes observation tables and pointwise Boolean operations natural.
Example 2.1 (Four unary languages). Over , consider All four are described by properties of length. The first, third, and fourth are regular; the square-length language is not. The distinction will become visible through their families of futures.
2.2 Left residuals: the future after a past
After reading a prefix , the relevant question is which continuations still lead to acceptance.
Definition 2.2 (Left residual). For and , the left residual of by is
The prefix is the past. The residual is its entire future language. Appending another word acts by further differentiation: Notice the order: first read , then , so the combined prefix is . This language-derivative viewpoint goes back to Brzozowski’s derivatives of regular expressions (Brzozowski 1964); here we apply the residual operation to arbitrary languages.
Example 2.3 (Residuals of even length). For over , where . Infinitely many prefixes produce only two different futures.
Example 2.4 (Residuals of a singleton). For , prefixes yield the singleton futures Every longer prefix yields the empty language. There are residuals. This is finite for each fixed , but the earliest prefix exposing the last live residual can be arbitrarily long as varies.
Example 2.5 (Residuals of square lengths). For , the residual after contains precisely when is a square. Distinct produce distinct futures. If , choose a square whose next square is more than away, and set . Then is square while lies strictly between consecutive squares. Thus the residual orbit is infinite.
2.3 The infinite past–future table
Arrange every prefix as a row and every future as a column: This is the Boolean Hankel table of . Its row indexed by is exactly the characteristic function of . Two prefixes have the same row if and only if they have the same complete future.
The table can be cut in several ways. A fixed-length cut chooses and . A bounded future view fixes and keeps all columns with . A bounded rectangle also restricts prefixes to .
Definition 2.6 (Bounded future row). For horizon , define Let
Because there are only finitely many words of length at most , the set of possible Boolean rows is finite. Thus is finite even when has infinitely many exact residuals.
Forgetting the coordinates with gives a surjection Consequently is nondecreasing. A finer future observation can split old classes, never merge prefixes that were already distinguished.
Example 2.7 (The first square-length rows). Over the unary alphabet, is the length-three Boolean block For the rows are respectively Prefixes and look identical through horizon two even though their complete futures differ. Bounded equality is an approximation, not residual equality.
2.4 Observation as controlled forgetting
An observation is useful when it forgets deliberately. Complete-match language observation forgets parse trees, return locations, and alternative suffixes. Horizon- observation forgets every distinction requiring a future longer than . A fixed cut forgets how rows at one length relate to rows at another.
Forgetting is not inherently a defect. It creates finite objects that can be computed, compared, minimized, and used as evidence. The danger is forgetting which information was discarded and then treating the quotient as exact.
The number of distinct rows in each fixed-length cut does not determine the number of uniform residual states. For the square-length language, every fixed cut is constant because every entry depends only on . Each such cut has one row, while the complete residual orbit is infinite. Literal compatibility across cuts carries information that anonymous row counts erase.
2.5 Actions and readout
Residuals turn the set of futures into a dynamic system. Each letter acts by Starting at , the word reaches The acceptance readout is uniform: Indeed, after reading , the original word belongs to exactly when .
This pair—letter actions plus epsilon readout—is the canonical residual recognition dynamic of a language. It may be finite or infinite. The next monograph explains why finiteness is precisely regularity and why the finite case yields the minimal deterministic automaton.
Exercise 2.8. Compute every residual of over . Draw the letter actions among them and mark the residuals containing . See the .
Exercise 2.9. Compute over the unary alphabet and find two prefixes that agree through horizon one but disagree through horizon two. See the .
Exercise 2.10. Prove that a length-only language has at most one row in every nonempty fixed cut. Explain why this statement alone gives no finite bound on its residual orbit. See the .
3 Finite automata, reactivated
Finite automata are familiar enough that it is easy to remember their diagrams and forget the structural reason they matter. Their essential claim is not that a machine has circles and arrows. It is that every past can be summarized by one of finitely many states in a way that preserves all future acceptance decisions.
3.1 The deterministic model
Definition 3.1 (Deterministic finite automaton). A deterministic finite automaton (DFA) over is a tuple where is a finite set of states, is the start state, is the set of accepting states, and is the transition function.
The transition extends uniquely to words: The recognized language is
The recursion says that a state is a sufficient summary of the past. If two prefixes reach the same state, appending any common future produces the same final state and hence the same acceptance decision.
Lemma 3.2 (State equality preserves every future). If , then for all ,
Use associativity of extended transition: Replace the inner state by and reverse the identity. Membership in is therefore the same on both sides.
3.2 Reachability and useless names
A state is reachable if for some word . Unreachable states cannot affect the recognized language and may be removed. This is the first simple distinction between a presentation and its reachable dynamic: a DFA file may name ten states while only six participate in recognition from the chosen start.
For a reachable state, a word satisfying is an access word. A shortest access word never repeats a state along its path; otherwise the intervening loop could be deleted. A reachable automaton with states therefore reaches every state by a word of length at most .
Example 3.3 (Parity with an unnecessary state). Let over , start at , toggle on , and let loop to itself. If , the machine recognizes even length. State is unreachable and carries no semantic information from the start. Removing it leaves the same language.
Reachability is not minimization. Two reachable states can still have identical futures.
3.3 State futures and distinguishability
For state , define its future language States are equivalent when and distinguishable otherwise. A word distinguishes them when exactly one of is accepting.
The empty word distinguishes states with different acceptance readouts. A one-letter word may distinguish states whose immediate children have different readouts. Longer words propagate distinctions backward through the transition graph.
Example 3.4 (A nonminimal reachable DFA). Over , let a machine remember whether the most recent symbol was , but duplicate the “most recent was ” state into two states selected by the parity of the prefix length. If acceptance depends only on whether the most recent symbol was , the two -states are reachable but have the same future language. The presentation remembers more history than recognition requires.
The standard table-filling minimization algorithm begins by separating accepting from rejecting states. It then repeatedly marks a pair when some letter sends it to the already marked pair At convergence, unmarked pairs have identical futures. Chapter 4 will prove this from residuals rather than treating it as an algorithmic fact.
3.4 Products and Boolean combinations
Given DFAs and over the same alphabet, their product has state set and acts componentwise: Choosing the accepting pairs realizes intersection, union, symmetric difference, or any pointwise Boolean operation on the component acceptances.
The product construction is an upper bound, not usually a minimal machine. Some pairs may be unreachable; others may have identical joint futures. This gap between a convenient presentation and the canonical reachable quotient will recur throughout the book.
Proposition 3.5 (Regular languages are closed under Boolean operations). If and are recognized by finite DFAs, then so are , , and .
Use the product for the binary operations. For intersection accept exactly ; for union accept pairs with at least one accepting component. Complement needs no product: keep the transition graph and replace by . Determinism and total transitions ensure that exactly one run exists for every input.
3.5 What finiteness buys
A finite state set gives several kinds of leverage:
every run can be simulated with bounded memory;
reachability and equivalence are decidable by finite graph algorithms;
sufficiently long runs repeat states and can be pumped;
the family of future languages is finite; and
bounded observations eventually stop discovering new exact futures.
These consequences explain why one might try to force an infinite recognition family into a finite quotient. The example teaches a different lesson: when exact futures are genuinely infinite, we should ask which pieces of this leverage survive through structure, finite shadows, or coordinates rather than identify states that the observation can still distinguish.
Exercise 3.6. Prove carefully that every reachable state of a -state DFA has an access word of length at most . Identify the step that uses minimality of the chosen access word, not minimality of the automaton. See the .
Exercise 3.7. Construct two reachable two-state DFAs whose four-state product has fewer than four reachable states. Determine the language recognized by their intersection. See the .
4 Residuals and the Myhill–Nerode mechanism
The residual construction removes accidental state names from deterministic recognition. It asks only: after this prefix, which futures are accepted? The answer produces both a canonical automaton and the exact boundary between regular and nonregular languages.
4.1 Future equivalence
For a fixed language , define Equivalently, . This is an equivalence relation on .
More is true. It is a right congruence: if , then for every letter . Indeed, for every , because is one of the futures quantified in the definition.
Right congruence is exactly what makes a state transition well defined on equivalence classes. Define If a different representative is chosen, right congruence gives the same target class.
4.2 The canonical residual automaton
Let Letters act by residual differentiation, the start state is , and a state is accepting exactly when .
Theorem 4.1 (Residual recognition). The residual dynamic recognizes exactly.
After reading , repeated differentiation reaches . The readout is one precisely when . Unfold the residual definition: Thus the output after every word agrees with membership in .
Every residual is reachable by construction. The dynamic may still be infinite, as for square lengths or the continuation family of Chapter 1.
4.3 Finiteness is regularity
Theorem 4.2 (Myhill–Nerode theorem, residual form). For a language , the following are equivalent:
is recognized by a finite DFA;
has finitely many left residuals;
the relation has finite index.
When these conditions hold, the residual automaton is the unique minimal reachable DFA up to isomorphism.
Proof. The equivalence of (2) and (3) is immediate because two prefixes lie in the same class exactly when they define the same residual.
Assume (2). The residual recognition theorem constructs a DFA whose state set is the finite set , so (1) follows.
Assume (1), witnessed by a finite DFA . If prefixes and reach the same state, Lemma 3.2 shows that they have identical futures and hence the same residual. Therefore the map from reachable DFA states onto residuals is onto. In particular, the number of residuals is no larger than the number of states, proving (2).
For minimality, let be any reachable DFA recognizing . Map a reachable state to . The value is independent of the chosen access word: if and reach , the state-equality lemma gives identical futures. The map preserves the start, letter transitions, and acceptance readout, and it is onto because every residual has a prefix representative. Hence every reachable DFA maps onto the residual automaton and has at least as many states.
If a reachable DFA has no two states with equal future language, the map is also injective and therefore an isomorphism. Any two minimal reachable DFAs are consequently isomorphic through their common residual identification. ◻
The theorem is not merely a counting result. It identifies the canonical meaning of a deterministic state: a complete future language.
The finite-index characterization and canonical minimal automaton are classical Myhill–Nerode theory; Nerode’s automaton-transformation paper is an original source for the finite-index relation (Nerode 1958). Brzozowski derivatives provide the equivalent language-differentiation presentation (Brzozowski 1964). FPRD adopts this as its finite calibration; it does not claim the theorem as new.
4.4 Distinguishing words and proof by residual growth
To prove that a language is nonregular, it is enough to exhibit infinitely many prefixes with pairwise different residuals. For each pair one supplies a future accepted after one prefix and rejected after the other.
Example 4.3 (). Let . The prefixes are pairwise inequivalent. If , the future completes but not . Thus has infinitely many residuals and is not regular.
Example 4.4 (Balanced parentheses). For the one-bracket Dyck language, a prefix with unmatched opening parentheses requires at least matching closers. Different heights have different completing futures. With several bracket types, the residual must remember the entire typed stack, not only its height.
Residual separation resembles a pumping argument but is often more direct. It states exactly what a finite-state summary would have to forget and supplies a future showing that the forgotten distinction still matters.
4.5 Presentation states versus residual states
A deterministic implementation may carry more state than the residual dynamic. Its state-to-residual map is a quotient. This fact separates three questions:
Is the implementation reachable?
Is it behaviorally minimal for its language?
Does its presentation carry additional named structure that we intend to preserve even when language observation forgets it?
The second question has the residual automaton as its exact answer. The third is one reason FPRD does not identify a finite grammar presentation with the minimal machine of its observed language.
Exercise 4.5. Compute the residual automaton of the unary language whose lengths are congruent to modulo . Prove that no DFA with fewer than three states recognizes it. See the .
Exercise 4.6. Show that the language has infinitely many residuals by finding a separator for every two distinct prefixes before the central marker . See the .
5 Finite horizons and observational shadows
Residual equality asks whether two prefixes agree on every possible future. Finite observation replaces “every” by “every future of length at most .” The resulting quotients are always finite and form a tower that approaches exact residual behavior.
5.1 Horizon equivalence
Define The equivalence class of is its row from Chapter 2. The quotient is .
Exact residual equality implies for every . Conversely, if for all , then any particular future is covered once , so and have the same residual. Exact equality is thus the intersection of all horizon equivalences.
The relation refines . Restriction gives a surjective bond Surjectivity is literal: every depth- row is the restriction of the depth- row belonging to the same prefix.
Example 5.1 (Singleton horizons). For , a prefix with has its sole accepting future at distance . At horizon , the visible live distances are . Every more distant live prefix has an all-zero bounded row, as does every dead prefix, so together they form a single reject-all class. Hence Once , every live residual is visible and .
5.2 A graded action rather than a same-level machine
Appending a letter consumes one unit of future horizon. If , then for every , so . Each letter therefore induces a well-defined map
It does not generally induce a map . Two prefixes may agree on all futures of length at most while their -children disagree on a future of length ; that disagreement corresponds to a future of length at the parent level.
It is tempting to call every a finite automaton. Without a genuine plateau or additional structure, it is only one level of a graded observation system. Its natural letter action arrives from level .
5.3 How far must prefixes be searched?
The quotient counts all bounded futures, including ones first exposed by very long prefixes. Define the bounded rectangle and its size For fixed , this count grows with and eventually reaches .
Definition 5.2 (Prefix-access radius). The horizon- access radius is
The minimum exists because is finite and every class has at least one literal prefix representative. The number asks how many bounded futures exist. The number asks how late the last of them first appears.
If has a reachable -state DFA, every residual state has an access word of length at most . Every bounded row is a projection of some residual, so for every horizon.
Prefix counting gives a lower bound in the other direction. If , there are at most prefixes in the access ball. Therefore For unary languages this simplifies to .
Example 5.3 (Small count, late access). For at horizon zero, a row records only whether the prefix itself is accepted. There are two rows, accepting and rejecting, so . The accepting row first appears at prefix length , hence . Bounded cardinality does not control how far one must search to witness the classes.
5.4 Accessibility and distinguishability in a minimal DFA
For a finite minimal DFA, two classical depths sit on the two axes of the rectangle .
The accessibility degree is the maximum, over states, of the length of a shortest access word. Once horizon is large enough to distinguish all residual states, equals this degree.
The distinguishability degree is the maximum, over distinct state pairs, of the length of a shortest separating future. The first horizon at which reaches the number of residual states is exactly this degree (with the one-state convention handled separately).
Thus the two-dimensional observation rectangle extends two familiar finite automaton notions. Before saturation it records partial coverage; for nonregular languages it continues indefinitely.
5.5 Why one observed plateau is delicate
Because is nondecreasing, equality means the restriction bond is a bijection. This turns out to be much stronger than seeing the same number of rows in two finite samples of prefixes. A global adjacent plateau ranges over every prefix and will later force a right congruence. A finite membership table cannot certify that no longer prefix introduces a new row unless an independent state bound or equivalent guarantee is available.
This distinction is central to active automata learning. A finite observation table can suggest a machine, but an equivalence query or other completeness mechanism is needed to know that the table has captured the whole language (Angluin 1987). The exact global statement appears as Theorem 18.1.
Example 5.4 (Access can plateau before the language does). For the one-bracket Dyck language, horizon zero and horizon one can both have access radius one: the currently visible rows appear immediately. Higher horizons reveal arbitrarily deep stack distinctions. Equality of two access values is not a finite-state certificate.
Exercise 5.5. Derive the complete formulas Identify the dead row responsible for the final access step. See the .
Exercise 5.6. Construct a language and prefixes with but . Explain why this does not contradict the well-defined map . See the .
Part II — Topology for infinite behavior
6 Topological spaces: nearness without distance
Topology studies which distinctions can be made by local observation and how those distinctions behave under limits. It can be introduced as geometry without measurements, but for recognition dynamics a different intuition is more useful: a neighborhood specifies a finite amount of information that we insist on observing, while leaving the rest unresolved.
We begin far from inverse limits. The objective is to recover a working feel for open and closed sets, continuity, and convergence across several kinds of space.
6.1 Open sets as permitted observations
Definition 6.1 (Topology). A topology on a set is a collection such that
;
arbitrary unions of members of belong to ;
finite intersections of members of belong to .
The pair is a topological space, and members of are open sets.
An open set is not intrinsically fuzzy or boundaryless. It is one of the subsets the topology permits us to recognize locally. The axioms say that a choice among any family of observable alternatives is observable (union), and that finitely many simultaneous observational requirements can be combined (finite intersection).
Why only finite intersections? In the real line, every interval is open, but their infinite intersection is , which is not open. Demanding infinitely many increasingly precise conditions can identify an exact point even though no finite stage does.
Example 6.2 (The usual real topology). On , open intervals generate the usual topology: a set is open when every point in it lies inside some interval contained in the set. The interval is a finite-precision witness that nearby points remain inside.
Example 6.3 (Discrete and indiscrete extremes). The discrete topology is : every subset is open. It makes every point perfectly observable because each singleton is open. The indiscrete topology is : no proper nonempty part can be detected by an open observation. These extremes show that topology records observational resolution, not merely the underlying set.
Example 6.4 (Cofinite topology). If is infinite, declare open when or is finite. Any two nonempty open sets intersect: each omits only finitely many points. Individual points are closed but not open. A sequence of distinct points converges to every point, because it eventually avoids the finite complement of each neighborhood. This unfamiliar behavior is legal topology and warns us not to import metric intuition without checking hypotheses.
6.2 Closed sets and limits
A set is closed when its complement is open. Closed sets satisfy the dual laws: and are closed, arbitrary intersections of closed sets are closed, and finite unions of closed sets are closed.
In metric spaces, closed sets are exactly the sets containing all limits of their convergent sequences. In arbitrary spaces this sequential criterion can fail, but the intuition remains useful: closedness prevents a set from losing limit points visible to the topology.
Example 6.5 (Closed intervals). The real interval is closed because its complement is open. A convergent sequence of points in cannot converge in to a point outside the interval.
6.2.1 How can a set be both open and closed?
A clopen set is both open and closed. There is no contradiction: open and closed are not mutually exclusive adjectives like finite and infinite. They describe a set and its complement. A set is clopen precisely when it and its complement are both observable as open alternatives.
The sets and are always clopen. In a discrete space every set is clopen. In the usual real line, no other sets are clopen because is connected.
Example 6.6 (A disconnected space). Let with the topology inherited from . The left component is open in . Its complement inside is the right component, also open, so the left component is closed in as well. The same subset is not closed as a subset of the ambient real line. Topology is always relative to the space under discussion.
Clopen sets will be central for finite observations. In a product of discrete Boolean coordinates, fixing finitely many coordinate values defines a clopen cylinder. One can decide both membership and nonmembership using the same finite observation.
6.3 Bases and neighborhoods
Listing every open set is often impractical. A basis is a collection of subsets such that every open set is a union of basis elements and, whenever , some satisfies .
Open intervals form a basis for . Open balls form a basis for a metric space. Finite-coordinate cylinders form a basis for the product spaces we will use.
A neighborhood of is a set containing an open set that contains . Neighborhood language lets us state local properties without choosing a particular basis.
Definition 6.7 (Closure). The closure of is the intersection of all closed sets containing . Equivalently, exactly when every open neighborhood of meets .
The second formulation is observational: lies in the closure of when no finite local observation around can exclude all of .
Example 6.8 (A new boundary point). In , let . Every neighborhood of contains for sufficiently large , so . No other new point is forced. Thus .
The recognition orbit behaves similarly under bounded-input observation. As escapes every fixed horizon, the states converge to a boundary behavior that rejects every finite word. The boundary is not one of the , just as is not one of the positive reciprocals.
6.4 Continuity
Definition 6.9 (Continuous map). A map is continuous if is open in for every open .
The inverse-image definition is chosen because inverse images preserve arbitrary unions and finite intersections automatically. Conceptually, a continuous map cannot require infinitely more input precision to decide a finite output observation. Every observable distinction in the target pulls back to an observable distinction in the source.
Example 6.10 (Maps out of a discrete space). Every map from a discrete space is continuous because every inverse image is a subset and hence open. A map into a discrete space is continuous only when the inverse image of every singleton is open; it must make each exact output locally decidable.
Proposition 6.11. The composition of continuous maps is continuous.
Let and be continuous, and let be open in . Then Continuity of makes open in ; continuity of makes the remaining inverse image open in .
6.5 Convergence and separation
A sequence converges to if every neighborhood of contains all but finitely many . In a metric space this agrees with the familiar .
Limits need not be unique in an arbitrary topology. In the indiscrete space, every sequence converges to every point because the only neighborhood condition is eventual membership in . A Hausdorff space separates distinct points by disjoint neighborhoods; in such spaces sequence limits are unique.
All finite discrete spaces are Hausdorff. Their products are Hausdorff. The compact recognition spaces constructed later therefore retain ordinary distinctness even though their topology is generated by finite observations.
Topology lets us say that two exact behaviors are close when no short experiment separates them. Closedness says a family contains the behaviors forced as limits of its approximations. Continuity says a recognition action respects finite observational resolution. Compactness, introduced next, will say that infinitely many compatible finite demands cannot evade all global realizations.
Exercise 6.12. For each of the following, determine all clopen sets: a three-point discrete space; a three-point indiscrete space; and the subspace . See the .
Exercise 6.13. Let have the cofinite topology. Prove that every injective sequence converges to every point of . Which part of this conclusion becomes impossible in a Hausdorff space? See the .
Exercise 6.14. Let be the set of eventually-zero Boolean sequences inside . Anticipating the product topology of the next chapter, argue that every finite Boolean prefix occurs in some member of . What should the closure of be? See the .
7 Products and compactness
Recognition behavior is naturally coordinatewise. A language assigns one Boolean value to every word. A bounded observation sees finitely many of those values. Product topology is precisely the topology in which fixing finitely many coordinates describes a basic observation.
Compactness then supplies the global principle we need: when finite pieces of information remain mutually compatible, they cannot drift away without leaving a global limit point.
7.1 The product topology
Let be topological spaces. Their Cartesian product consists of tuples . For each coordinate there is a projection .
Definition 7.1 (Product topology). The product topology is the smallest topology on making every projection continuous.
A basis element restricts finitely many coordinates and leaves all others free: Such a set is often called a cylinder.
Why finitely many restrictions? The product topology is designed so that an open observation requests only finitely much coordinate information. If infinitely many exact coordinate conditions were basic open sets, convergence would become much stricter and finite observations would no longer generate the topology.
Example 7.2 (The Cantor space of Boolean sequences). Take with the discrete topology for every . A point of is an infinite Boolean sequence. Fixing the first bits gives the cylinder It is clopen: the complement is the finite union of cylinders where at least one fixed bit is flipped.
The same idea works when coordinates are indexed by words rather than natural numbers. Since is countable, choose any enumeration . A language becomes a point A cylinder prescribes membership for finitely many words. The bounded-input topology uses the especially natural cofinal family of cylinders fixing all words through a given length.
7.2 Convergence in a product
A sequence in a product converges to exactly when it converges in every coordinate, provided the index set is countable and we use sequences. For discrete coordinate spaces, coordinate convergence means eventual equality.
Thus languages converge to in when, for every fixed word , membership eventually agrees with . Equivalently, for every length bound , the languages eventually agree on every word of length at most .
Example 7.3 (Finite singletons escaping to the empty language). Over , let . Fix a word . For all , , so the coordinate eventually agrees with the empty language. Hence . This is the boundary behavior of the continuation family .
7.2.1 An ultrametric for bounded observation
The topology can be metrized directly. For distinct languages , let and define Then means the two languages agree through a corresponding finite horizon, with the exact indexing convention adjusted at equality.
This metric is an ultrametric: If and agree through one horizon and and agree through another, then and agree through the smaller of the two horizons. Ultrametric balls are clopen, reflecting the finite-decision nature of bounded observations.
7.3 Compactness from open covers
Definition 7.4 (Compact space). A topological space is compact if every open cover of has a finite subcover. That is, whenever with every open, there exist such that .
In Euclidean space, closed bounded sets are compact by the Heine–Borel theorem. But compactness is not synonymous with closed-and-bounded outside that setting. The open-cover definition is topological and travels to product spaces and inverse limits.
Compactness often turns an infinite family of local possibilities into a finite witness for a global statement. If each point has some neighborhood on which a property is controlled, a finite subcover can sometimes make the control uniform. If an infinite collection of closed constraints is finitely compatible, compactness can force a point satisfying all of them.
Theorem 7.5 (Finite intersection characterization). A space is compact if and only if every family of closed sets with the finite intersection property has nonempty total intersection. The finite intersection property means for every finite subfamily.
Proof. Assume is compact and suppose the closed sets have empty total intersection. Their open complements cover : A finite subcover would imply , contradicting the finite intersection property.
Conversely, assume the closed-set property. Let be an open cover with no finite subcover. The closed complements then have the finite intersection property: an empty finite intersection would give a finite subcover. Their total intersection is empty because the cover , contradicting the assumption. ◻
7.4 Why compactness resembles finiteness
Every finite space is compact: from an open cover, choose one set containing each point. Compact spaces may be infinite, but open-cover arguments allow many finite-space proofs to survive after replacing literal enumeration by a finite subcover or finite-intersection argument.
Compactness is useful for recognition dynamics for three recurring reasons.
An infinite orbit may acquire boundary points without becoming uncontrollably large; its closure inside a compact behavior space remains compact.
A compatible family of finite observations can be realized by a global behavior when the corresponding closed constraints have the finite intersection property.
Continuous actions on a dense orbit extend uniquely in situations where their finite observational behavior is coherent.
Compactness does not imply finite-state recognition. The Cantor space is compact and uncountable. The closure of an infinite residual orbit can be compact while the language remains nonregular. Compactness is a form of global control, not a disguised state bound.
Do not infer computational tractability from compactness alone. Compactness can prove existence without providing an effective representation, algorithm, or finite-dimensional coordinate system. FPRD separately tracks finite presentation, finite observation, action, and uniform readout.
7.5 Compactness of a countable product of finite spaces
The full Tychonoff theorem states that arbitrary products of compact spaces are compact. Its general proof requires a choice principle. Our principal behavior spaces are countable products of finite discrete spaces, where a direct diagonal argument is available.
Theorem 7.6. Let be a nonempty finite discrete space for every . Then is compact.
Take any sequence of product points. Because is finite, infinitely many points share one value in coordinate zero; pass to that subsequence. Within it, infinitely many share one value in coordinate one; pass to a further subsequence. Continue.
Choose the diagonal subsequence whose th member comes from the subsequence stabilized through coordinate . For each fixed coordinate , all sufficiently late diagonal members have the selected value in coordinate . The diagonal subsequence therefore converges coordinatewise to a point of the product.
We have proved sequential compactness. The countable product is metrizable by a first-difference metric like the ultrametric above. In metric spaces, sequential compactness is equivalent to compactness. That final equivalence is a standard theorem; its proof extracts a sequence from a cover with no finite subcover and conversely uses finite-radius nets.
Since is countable and each coordinate is finite, is compact. It is also Hausdorff, totally disconnected, and metrizable by bounded-input agreement.
7.6 Closed subspaces and orbit closures
A closed subset of a compact space is compact. To see this, cover the closed set by open sets in and add the open complement ; a finite subcover of leaves a finite subcover of after discarding the complement.
For a language , its residual orbit sits inside the compact behavior space . Its closure is therefore compact. When is finite it is already closed. When it is infinite, the closure may add limit behaviors.
The completed residual space is the minimal topological automaton in Steinberg’s compact-automata construction (Steinberg 2013): a language’s residual orbit is embedded in the Boolean behavior space and then closed. Our use of this object inside the FPRD observation tower is a reconstruction and extension of viewpoint, not a claim that the orbit-closure construction is new.
The orbit is dense in by the definition of closure. Density means every finite observation of a completion point is matched by some literal residual. It does not mean every completion point is a residual.
Exercise 7.7. In , prove that a cylinder fixing coordinates is clopen. Write its complement explicitly as a finite union of cylinders. See the .
Exercise 7.8. Prove that the eventually-zero Boolean sequences are dense in but not closed. Identify their closure. See the .
Exercise 7.9. Give three different reasons why is not finite, then explain which finite-space proof pattern compactness recovers and which it does not. See the .
8 Inverse limits: assembling compatible shadows
An inverse limit is a space of globally compatible finite views. The phrase can sound forbidding because it belongs to category theory and topology, but the basic construction is concrete: take one observation at every resolution and require that forgetting detail gives the observation chosen at the coarser resolution.
8.1 Inverse systems
An inverse sequence consists of spaces For , write The maps are called bonding maps because they state how a fine view restricts to a coarse one.
Definition 8.1 (Inverse limit). The inverse limit is A point of the limit is a compatible thread.
The construction is characterized by a mapping property. This matters because it tells us that the coordinate formula is canonical rather than an arbitrary encoding.
Proposition 8.2 (Universal property of the inverse limit). Let be a set and suppose maps form a compatible cone: There is a unique map such that for every coordinate projection . If the spaces are topological and every is continuous, then is continuous.
The equations force the only possible definition: Compatibility of the says precisely that this tuple belongs to the inverse limit. Any other map with the same coordinate projections has the same value in every coordinate and therefore is equal to . For the topological claim, a map into a product is continuous exactly when all its coordinate maps are continuous; its image already lies in the inverse-limit subspace.
Example 8.3 (Infinite sequences from finite prefixes). Let and let delete the final bit. A compatible thread chooses a one-bit word, a two-bit word extending it, a three-bit word extending that, and so on. Such a thread is exactly one infinite Boolean sequence. Thus
The inverse limit is not a mysterious point “at infinity.” It is the set of all coherent choices across every finite level.
8.2 Why compatibility matters
Choosing arbitrary produces an element of the product but not necessarily an element of the inverse limit. The thread might claim that the first two bits are at one level and that the first three bits are at the next. Each finite object is legal; the family is jointly impossible.
This distinction becomes essential in local-to-global reasoning. A list of individually realizable finite observations need not have a common global realization. Bonding equations are the first consistency conditions. Later, literal cut compatibility will play the same role across two axes.
Example 8.4 (Decimal truncations). Let and let the bond discard the final decimal digit. Compatible threads look like infinite digit sequences. If one tries to interpret them as real numbers in , the familiar dual expansions show that the coordinate presentation and the represented object need not be identical. An inverse limit records the chosen compatible coordinates; any further quotient must be stated.
8.3 Topology of the limit
Give the product topology and the inverse limit the subspace topology. If every is Hausdorff and every bonding map is continuous, the inverse limit is closed in the product.
Proposition 8.5 (Closedness of compatibility). For continuous maps between Hausdorff spaces, the set of compatible threads is closed in .
For each , define The map sending a product point to is continuous. The diagonal is closed in because is Hausdorff. Hence is closed as the inverse image of the diagonal. The inverse limit is , an arbitrary intersection of closed sets.
For the finite discrete systems used throughout this book, the product is compact by the countable finite-discrete product theorem proved in Chapter 7. The closed inverse limit is therefore compact. A corresponding theorem for arbitrary compact Hausdorff factors is an instance of the more general Tychonoff theorem; we do not need or prove that stronger result here.
8.4 Existence of compatible threads
Compactness becomes useful when we ask whether the inverse limit is nonempty. For a sequence of nonempty finite levels, compactness guarantees a thread even without surjective bonds: every finite initial chain can be built downward from its highest level. Surjectivity supplies the stronger fact that every chosen coarse point extends to a thread.
Theorem 8.6 (Finite discrete inverse-limit existence). Let every be a nonempty finite discrete space, with arbitrary bonding maps . Then is nonempty.
Proof. Work in the compact product . For each , let Each is closed by the previous argument. It is nonempty: choose any , define lower coordinates by restriction, and choose arbitrary higher coordinates. More generally, every finite intersection of the is just the strongest one among them and is nonempty. Compactness and the finite intersection property give That intersection is the inverse limit. ◻
Surjectivity was not used: we built each finite compatible prefix downward from its highest constrained level. If all bonds are surjective, however, then each projection from the inverse limit onto is surjective. Given a specified , choose successive preimages above it and use the bonds to define the coordinates below it. In our quotient towers surjectivity has an even more concrete meaning: every coarse observation is the restriction of the same literal prefix viewed more finely.
8.5 Finite language observations as an inverse system
For a language , take and let restriction forget the longest future coordinates. Every bond is surjective. A literal residual determines the compatible thread Two exact residuals give different threads because some finite future distinguishes them.
The inverse limit may contain threads not generated by any single prefix. For the family , take the tail class at every horizon. These choices are compatible. No finite belongs to the tail once the horizon reaches , so the thread is not a literal orbit state. It represents the boundary language .
The inverse limit performs two jobs at once. It remembers every finite observation without choosing a privileged resolution, and it completes the literal orbit by admitting behaviors approximated at all finite depths. The first job is reconstruction; the second is completion. They coincide only when every compatible thread is already generated by a literal state.
8.6 Natural actions on compatible threads
Suppose each level has maps for a fixed exposure , and these commute with restriction: Then a compatible thread determines another thread by Naturality is exactly what proves the result is compatible. Conversely, a continuous exact action whose output through depth depends only on input through depth yields such a shifted family.
Letter derivatives have exposure one: to know the future of through length , one needs the future of through length . Same-level maps have exposure zero. Exposure measures observational lookahead, not time complexity.
8.7 Orbit, completion, and closedness
Embed the residual orbit into the inverse limit by its bounded rows. The image is dense in the compatible-thread space associated with the orbit’s finite quotients. Under the natural identification with , the inverse-limit topology is exactly bounded-input agreement.
If the residual orbit is finite, it is closed in the Hausdorff behavior space, so completion adds no states. Conversely, an infinite orbit can sometimes be closed as an abstract subset, but for residual orbits over a finite alphabet with the compact observational structure studied later, closedness and the finite-state plateau mechanism are tightly related. We will prove the exact regularity statement only after the local-to-global sewing construction has made the actions available at one stable level.
An inverse limit is a canonical completion relative to the selected finite observations. It is not automatically a finite-coordinate realization, an efficient data structure, or the exact dynamic generated by a grammar presentation. Those are separate obligations.
Exercise 8.7. Write the first four levels and bonding maps of the finite-prefix system for Boolean sequences. Construct the thread corresponding to . See the .
Exercise 8.8. Give a sequence of individually valid finite binary prefixes that does not form a compatible thread. Identify the first failed bonding equation. See the .
Exercise 8.9. For the observation tower, prove that the all-tail thread corresponds to the empty language under coordinatewise membership. Show directly that in the bounded-input topology. See the .
Part III — Finite presentations and generated dynamics
9 Four layers of recognition dynamics
We now return to the program’s central object. The preceding monographs let us state its architecture without using “state” to mean four different things. The layers are semantic behavior, observation, finite presentation, and coordinate realization. Each answers a different question, and each has a different notion of equivalence.
9.1 Layer one: exact semantic behavior
A deterministic parser can be modeled by what it does to every input word. On success it returns an unconsumed suffix; on failure it returns no suffix. Let be the suffixes of .
Definition 9.1 (Suffix-decreasing behavior). A deterministic recognition behavior is a partial function such that whenever is defined, is a suffix of .
Failure is undefinedness. Epsilon succeeds without consuming: . A terminal removes a leading when present. Sequential composition is ordinary partial-function composition in parser order. Ordered choice tries and, only when fails, applies to the original input.
Example 9.2 (Consumption versus complete match). The terminal- behavior maps to and fails on . Its complete-match language is only , because input leaves a nonempty suffix. The behavior contains strictly more information than its language.
For a nondeterministic or context-free doctrine, replace a partial suffix by a set of suffixes: Relational sequence composes possible intermediate suffixes. Commutative union collects alternatives. This differs from prioritized choice even when complete-match languages happen to agree.
The exact semantic layer decides what behaviors and operations mean before any finite approximation is chosen.
9.2 Layer two: observation and completion
An observation asks only part of the exact behavior. Complete match reads whether is among the successful suffixes. Bounded observation restricts inputs to length at most . A finite table therefore identifies exact behaviors that agree on the current bounded domain.
Restriction from depth to depth creates an inverse system of finite quotients. Its inverse limit is the space of compatible finite observations. When every legal compatible table is realized by some exact behavior, the limit reconstructs the ambient semantic space. When we restrict to an orbit generated by selected actions, the limit reconstructs its observational closure.
Example 9.3 (Same bounded view, different exact behavior). The singleton languages and both reject every word of length at most . They are equal at depth and separate at depth . A bounded quotient is correct about what it sees and silent about the rest.
Topology enters because agreement on larger finite domains defines nearness. Compactness can turn compatible finite constraints into a global limit. It does not say that the exact semantics has a finite presentation or tractable coordinates.
9.3 Layer three: finite presentations and generated actions
A presentation names finitely many constructors, equations, nonterminals, or call sites. Solving it yields exact semantic behaviors, but the presentation can retain structure not recoverable from the final language.
For a grammar call occurring inside a sequence, the material to its right is a continuation frame. A labeled call site therefore generates an action on continuation behavior. Two extensionally equivalent grammars may have different labeled calls, different frame composition, or different action orbits.
Example 9.4 (An inert presentation distinction). A grammar may contain a labeled call in a branch that can never succeed from the start symbol. Its complete-match language is unaffected. Whether the call belongs to the generated dynamic depends on whether the presentation layer uses raw syntax, reachable semantics, or another explicit policy. The choice cannot be recovered from the language alone.
Presentation equivalence is therefore not automatically language equivalence or dynamic isomorphism. A normalization may preserve exact suffix semantics while splitting one source call into several target calls or merging several source occurrences. The correct comparison may be a finite origin/refinement relation rather than a bijection of action labels.
9.4 Layer four: coordinate realization and readout
An injective encoding of a state set is cheap: enumerate states and assign integers or real numbers. A useful realization must make the relevant actions and recognition observation uniformly accessible.
Definition 9.5 (Readout-aware realization). Informally, a coordinate realization of a recognition dynamic consists of an injective state map , coordinate actions for the named generators, and a uniform readout procedure such that and the original recognition observation can be recovered from and the input under consideration.
The adjective “tame” must be made specific. It may mean finite state, counter-like, rational, continuous, Lipschitz, polynomial-time, bounded exposure, or something else. FPRD does not declare one coordinate class universal in advance.
Example 9.6 (A counter realization). The running state family uses , successor action , and readout . It is infinite, finitely generated, and exactly readable. Mapping instead to an arbitrary noncomputable real sequence would preserve distinctness while destroying the point of the representation.
9.5 Three equivalence questions
Given two systems, ask separately:
Do they have the same observed language or suffix behavior?
Are their presentations related by a structure-preserving transformation?
Are their generated dynamics conjugate, quotiented, refined, or merely observation-equivalent?
A theorem answering one question does not silently answer the others. This discipline prevents an extensional normal form from erasing presentation provenance and prevents an elegant coordinate embedding from being called a recognizer before readout is supplied.
Partial-function algebra, relational semantics, inverse limits, residual automata, and guarded recursion all have substantial prior theory. The FPRD program’s claim is not to originate these ingredients. Its prospective contribution lies in their explicit recognition-specific integration with finite presentation, generated actions, finite observations, and uniform readout.
Suppose two grammars have the same complete-match language and isomorphic minimal residual DFAs, but one grammar exposes a useful counter action and the other exposes an opaque family of contexts. Should a representation theory identify them? Which question are you trying to answer when you decide?
Exercise 9.7. Classify each of the following as semantic, observational, presentational, or coordinate data: a returned suffix; acceptance of the empty suffix; a labeled call occurrence; a shortest distinguishing word; an integer counter; and a restriction map between finite tables. Some items legitimately touch two layers; explain why. See the .
10 Recursion, guarding, and contraction
A finite recursive presentation can denote a unique infinite behavior, several behaviors, or no operationally meaningful behavior at all. Guarding is the mechanism that turns recursion from circular syntax into controlled approximation.
10.1 Recursive equations
Consider the language equation where . If , every recursive use of is preceded by at least one terminal symbol. The familiar solution is
The equation can be unfolded from : Inductively, For words through length , sufficiently many unfoldings are exact because each recursive layer consumes positive length.
The solution of under is commonly called Arden’s rule (Arden 1961). The contraction theorem below is Banach’s fixed-point principle (Banach 1922). Their use for bounded-input guarded recognition is an adaptation of classical language equations and metric semantics, not a claim that these fixed-point tools are new.
Example 10.1 (The equation ). The solution is . Unfolding contains the first members. Through input length , no more than unfoldings can matter.
If , the recursion can call itself without observational delay. The equation may still have least or greatest fixed points under an order, but unique metric semantics no longer follows from the same argument.
10.2 The bounded-input ultrametric
Let be a space of recognition behaviors. Define the agreement depth of distinct behaviors as the least input length on which they differ, and set As with languages, this is an ultrametric. A Cauchy sequence eventually stabilizes on every finite input domain. Its limit is obtained by taking the eventual value on each input, so the full ambient behavior space is complete when the behavior laws are closed under this pointwise stabilization.
An operator is a contraction with factor if Prefixing every recursive contribution by one terminal shifts the first possible disagreement one length deeper, giving factor .
Theorem 10.2 (Contraction fixed point). If is complete and is a contraction, then has a unique fixed point. Starting from any , the iterates converge to it.
The contraction inequality gives The ordinary triangle inequality then bounds the distance between and by a geometric tail, so the sequence is Cauchy. Completeness supplies a limit . Continuity of a contraction yields . If were another fixed point, then forcing distance zero.
In an ultrametric recognition space the proof is sharper: each iterate gains a fixed amount of exact input depth. The convergence rate becomes an explicit finite reconstruction schedule.
10.3 Strong guarding and operational adequacy
Metric uniqueness alone does not prove that a parser’s operational evaluator computes the fixed point. A complete account needs two results:
the semantic equation operator is contractive and has a unique fixed point; and
finite recursive evaluation agrees with sufficiently deep unfoldings on each bounded input.
The second is an adequacy theorem. It checks the operational details of failure, choice, and sequencing rather than assuming that denotational uniqueness automatically determines an evaluator.
In a strongly guarded grammar, every recursive call is reached only after a dedicated terminal prefix has consumed input. Predicates require care: a lookahead may inspect input without consuming it and can therefore destroy a naive guarding argument. A call hidden behind an expression that merely sometimes consumes is also not uniformly guarded.
“Every successful cycle consumes” is weaker than “the recursive operator delays every possible disagreement.” Guarding is a statement about the operator on arbitrary candidate behaviors, not only about the final successful runs.
10.4 Mutual recursion and delay graphs
For a vector of equations , individual calls may have different delays. Record the minimum guaranteed consumption along each dependency edge in a matrix or weighted graph. A zero-delay edge is not fatal when every directed cycle has positive total delay.
If the zero-delay subgraph is acyclic, some finite power of the system operator moves every dependency through positive delay. The power is a contraction even when itself is only nonexpansive.
Proposition 10.3. If is a contraction on a complete metric space, then has a unique fixed point.
The contraction has a unique fixed point . Since the point is also fixed by . Uniqueness gives , so is fixed by . Any fixed point of is fixed by , hence equals .
The proof separates a local syntactic certificate—positive delay on every cycle—from a global semantic consequence—unique exact behavior and bounded reconstruction.
10.5 Least fixed points are a different doctrine
Positive relational grammars use monotone set-valued equations. Even nullable or left-recursive cycles have a least solution obtained as the union of finite derivation stages. This is not the same as PEG-style unique guarded evaluation. The equation has many fixed points but a clear least one, namely .
FPRD therefore records the fixed-point policy as part of the semantic doctrine. One cannot classify a relational nullable cycle as a failed deterministic PEG merely because it is unguarded under the metric policy.
Exercise 10.4. Prove by induction that the th unfolding of from is . Under the assumption , give an input-length bound after which the unfolding is exact through length . See the .
Exercise 10.5. Construct a two-variable operator whose first power is not contractive because one dependency has zero delay, but whose square is contractive because every cycle consumes a terminal. See the .
11 From finite presentations to generated dynamics
A finite grammar does more than denote a language. Its labeled recursive occurrences specify how continuation contexts are assembled. This chapter develops that middle object: the dynamic generated by a presentation after its exact semantics has been fixed.
11.1 Call sites and right-success frames
Consider a call to nonterminal inside a sequence If control reaches the call and it succeeds, the expressions to its right remain to be performed. Their exact behavior forms a continuation frame. A labeled call occurrence therefore carries an action or the parser-order equivalent, where is the solved behavior of the right-success context.
Calls in different syntactic locations may invoke the same nonterminal but have different right contexts. Unique occurrence labels prevent those actions from being merged accidentally.
Example 11.1 (Two calls, one callee). In alternatives and , the two occurrences of share its semantic behavior but generate different continuation actions: one appends the obligation , the other . Language-level normalization may combine or split the alternatives; the labeled origin relation explains what happened to the actions.
Only right-success material belongs to this particular frame extraction. Prefixes before the call determine whether the call is reached but do not run after it returns. Predicates and prioritized failure control may require richer frames and must not be smuggled into the positive construction.
11.2 Graph-directed dynamics
With several nonterminals or control locations, states naturally carry a location and a continuation behavior. Labeled call actions form directed edges among locations. Starting from designated states and closing under the finite action alphabet produces a reachable graph-directed orbit.
At every finite observation depth the reachable orbit is finite because the behavior tables and location set are finite. Restriction maps commute with the actions. The inverse limit of these finite reachable shadows reconstructs the compact closure of the exact graph-directed orbit.
Uniform readouts must include whatever the presentation claims to observe: location, remaining suffix behavior, complete match, or labeled call effect. Without readout, the inverse-limit state space is only a topological encoding.
Example 11.2 (A free context family). Suppose a presentation has call sites whose frames prepend distinct markers to a continuation. Composing frames along a word in the call labels produces a free orbit when no two label words have the same exact behavior. The orbit grows like through action depth , while its compact closure can add a common boundary reached by contexts whose pending markers escape every bounded input observation.
11.3 Transformations and provenance
A presentation transformation may preserve one layer and change another. Alpha-renaming should transport labels functorially. Reassociating a sequence should preserve the ordered right-success frame. Distributing positive terms into grammar productions can split a source call among several normalized occurrences. Eliminating an impossible branch can remove a call entirely.
The appropriate invariant is often a finite origin relation A target call may have one source, several source occurrences may merge, or one source occurrence may be cloned. Exact language or suffix equality can coexist with this non-bijective action refinement.
A normal-form theorem for languages is not automatically a conjugacy theorem for presentation dynamics. It must state how named actions transform.
11.4 Context-free grammars as positive equations
A conventional context-free grammar translates into finite positive set-valued equations. A production becomes relational sequence of the terminal and nonterminal behaviors. Union over productions becomes commutative union. The least fixed point collects exactly the suffixes supported by finite derivation trees.
Complete-match readout recovers the ordinary context-free language. The suffix semantics is richer: on input , a derivation of terminal prefix returns suffix . Occurrence labels retain continuation actions through the translation.
Conversely, finite positive relational terms distribute into finite sets of terminal/nonterminal words, so under complete-match observation they have ordinary context-free expressivity. The extensional equivalence does not erase the action-refinement issue described above.
11.5 What a complete presentation theorem must provide
For the purposes of this program, a finite-presentation-to-dynamics theorem is complete only when it supplies:
exact semantics under an explicit fixed-point policy;
a finite schema of named generating actions;
a defined reachable exact orbit or graph-directed state space;
finite observational shadows and compatible action maps;
inverse-limit or other exact reconstruction;
uniform recognition readout; and
transformation/provenance rules for the presentation operations being claimed.
This list is demanding by design. Omitting any item can turn a representation claim into a state encoding, a language theorem, or a syntactic graph without the promised recognition dynamic.
Presentation dependence can be treated as nuisance, signal, or both. Which presentation features should survive into a canonical dynamic? Labeled calls may reflect meaningful control structure, but arbitrary refactorings may also create meaningless distinctions. What transformation class should define the right notion of equivalence?
Exercise 11.3. For the expression , list the right-success context of each call occurrence in the first alternative. Explain why the prefix before a call is not part of its return frame. See the .
Exercise 11.4. Give a positive grammar rewrite that duplicates one occurrence of a nonterminal call while preserving the recognized language. Describe a one-to-many origin relation for the call labels. See the .
Part IV — Context-free geometry and controlled stacks
12 Context-free languages and Dyck geometry
Context-free languages are the first broad recognition family whose natural state is unbounded but highly structured. Dyck languages isolate the recursive geometry: properly nested opening and closing symbols. Finite control can then select and relabel the balanced traces needed for a particular grammar.
12.1 A brief return to context-free grammars
A context-free grammar is a tuple of nonterminals, terminals, productions, and start nonterminal. Each production replaces one nonterminal by a word over . The language consists of terminal words derivable from .
The grammar generates . Its finite syntax produces an unbounded matching obligation: after reading copies of , the recognizer must remember that copies of remain.
Ambiguity concerns derivations, not language membership. Two parse trees with the same terminal yield contribute one accepted word under complete-match observation. A suffix-relation semantics also forgets multiplicity unless it is explicitly weighted or tree-valued.
Example 12.1 (Same language, different derivation structure). The grammar generates the nonempty unary language and is highly ambiguous. The grammar generates the same language unambiguously. Their complete-match observations agree; their presentation structures and call actions do not.
12.2 Dyck words
Fix bracket types with opening symbols and matching closers . Optional neutral symbols may be admitted without changing the stack.
Definition 12.2 (Generalized Dyck language). The Dyck language is the least language containing and closed under concatenation and typed enclosure: Equivalently, scan left to right with a stack: push type on , require and pop type on , reject underflow or mismatch, and accept exactly when the final stack is empty.
For , type information disappears and the stack is a nonnegative height. For , the order of pending types matters. The prefixes and have the same height but require different completing suffixes.
Example 12.3 (Prefix classification). In , the prefix leaves stack and is completable by . The prefix has a type mismatch and can never be repaired by a future. The prefix underflows immediately and is likewise irreparable.
12.3 Why Dyck structure is universal for context-free syntax
The Chomsky–Schützenberger representation theorem says, in one standard form, that every context-free language is a homomorphic image of the intersection of a Dyck language with a regular language (Chomsky and Schützenberger 1963). Schematically,
The Dyck component carries recursive matching. The regular language carries finite grammar-specific control. The homomorphism reads the desired terminal output. Variants differ in erasing behavior, bracket alphabet, and exact normal form; those hypotheses matter in constructive use.
Put a context-free grammar into a form where each production choice can be recorded locally. Encode a derivation by matched brackets marking entry to and return from nonterminal expansions. Proper nesting of recursive calls is exactly a Dyck condition. A finite automaton checks that neighboring bracket labels correspond to legal production choices and terminal positions. A homomorphism forgets the derivation annotations and emits the terminal yield.
The theorem is not saying that context-free languages are regular after adding parentheses. It separates an unbounded universal nesting mechanism from finite language-specific control.
This separation is attractive for recognition dynamics. Instead of building a new infinite stack space for every grammar, study one canonical Dyck residual dynamic and vary a finite controller.
The Chomsky–Schützenberger theorem and visibly pushdown formulations are classical. Visibly pushdown languages make stack action visible in the input alphabet (Alur and Madhusudan 2004). FPRD uses these ideas as calibration and as ingredients in a readout-aware suffix-recognition construction.
12.4 A positive recognition equation
The one-type Dyck language satisfies the least equation The first recursive occurrence handles the content of one matched pair; the second handles concatenation with the remaining balanced word. Every nonconstant recursive branch begins with the terminal , so the equation is positively guarded under bounded-input observation.
For types, The least fixed point is the ordinary Dyck language. Guarded unfolding recovers all words through length after a bounded number of stages.
Suffix semantics enriches this equation. On input , every balanced prefix yields suffix . Thus the exact relation records all balanced prefixes, while complete-match observation selects .
12.5 Depth and typed stack as geometric coordinates
During a valid prefix scan, the stack word records pending closing types from bottom to top. Stack height is a coarse coordinate; the full word is exact. The set of live stack coordinates forms a rooted -ary tree. Adding an irreparable failure point yields the complete residual state set derived in the next chapter.
At bounded future horizon , stacks deeper than cannot be emptied and therefore become observationally indistinguishable from failure under complete Dyck membership. Stacks of height at most remain visible through their canonical matching closers. The finite shadow contains classes: one failure/tail class plus every typed stack through depth .
For , this is . For , it grows exponentially like . The same nesting discipline supports very different observational growth depending on bracket rank.
The Dyck frame moves grammar-specific complexity into finite control, but the required bracket rank and coding width may depend on the grammar. Should a universal representation allow the recursive alphabet to vary, or should it compile every grammar into one fixed envelope and measure the recoding cost? Both choices preserve expressivity; they create different quantitative theories.
Exercise 12.4. Classify every prefix of length at most three over one bracket type as live with a stack height or irreparable failure. For each live prefix give its shortest completing suffix. See the .
Exercise 12.5. For two distinct typed stacks of height at most , construct a future of length at most that distinguishes their residuals. Handle the case where one stack is a proper prefix of the other. See the .
13 The exact residual dynamic of Dyck recognition
The stack algorithm suggests a recognizer. Residual theory tells us whether its states are canonical and minimal. We will show that every live typed stack and one failure state are exactly the left residuals of the generalized Dyck language.
13.1 Residuals indexed by stacks
For a stack , let be the future language that completes that pending stack while otherwise remaining well nested. Let denote the empty future language reached after mismatch or underflow.
Scanning a valid prefix from the empty stack yields a stack . If the scan fails, set . The stack algorithm gives
Theorem 13.1 (Dyck residual classification). The residuals of are precisely Distinct stacks give distinct residuals.
Proof. The stack scan proves that every prefix reaches one of the displayed states. Conversely, the opening word reaches stack , so every is reachable. A mismatching closer reaches .
To separate stacks , let be the unique sequence of matching closers that empties from top to bottom. The word belongs to . If differs in a topmost required type, it mismatches. If is deeper than but agrees on the popped suffix, it remains nonempty after and therefore does not accept. If is shallower, it underflows before the future ends. Thus . The failure residual is separated from by . ◻
By Myhill–Nerode, this stack-or-failure dynamic is the unique minimal deterministic recognizer, although it is infinite.
13.2 Letter actions
Openers push: A matching closer pops: A mismatching closer or closer at the empty stack enters , which is absorbing. Neutral symbols, when present, act as the identity.
The readout accepts exactly , because only the empty stack contains the empty future. The action is therefore exact and uniformly readable.
For , push and pop generate the bicyclic pattern: pop is a left inverse of push on live states, but push is not a left inverse of pop at the boundary. For , the typed actions realize the corresponding polycyclic structure; mismatches expose the zero element. The polycyclic monoids were introduced as generalizations of the bicyclic monoid by Nivat and Perrot (Nivat and Perrot 1970); the stack action here is their concrete recognition geometry.
Example 13.2 (Noncommuting stack actions). For two types, pushing then reaches stack , while pushing then reaches . The completing future accepts from the first and mismatches from the second. Equal height does not imply equal state.
13.3 Exact bounded shadows
At horizon , every stack with remains distinct because its canonical closer word has length at most . Every deeper stack rejects all futures of length at most , as does . Therefore where is the common tail/failure row. Here is the horizon- future-row quotient introduced in Chapter 5, and denotes the row of restricted to futures through length .
The quotient count is For , . For ,
Restriction from to fixes stacks of height at most and sends every height- stack into the tail. This map is surjective.
Push has exposure zero on the exact stack coordinate but exposure one on bounded complete-match observations: a stack newly pushed to height falls beyond the depth- visible region. Pop makes a previously hidden top symbol observable and likewise uses a shifted level. The exact action and its finite shadows must be typed carefully rather than forced into one same-level map.
13.4 Inverse reconstruction
Every finite stack determines a compatible thread that is eventually represented by the same stack at all sufficiently deep levels. There are also infinite typed sequences: at level , remember their prefix through height in the orientation appropriate to the quotient. These threads form boundary points of the compact completion.
The boundary is much larger for than for rank one. At rank one there is essentially one way for height to escape to infinity. At higher rank, an infinite typed stack records an element of , producing a Cantor-like boundary.
This difference is invisible if one records only height. The finite-shadow growth already detects it: linear for one type, exponential for several.
The Dyck residual space is a rooted tree of finite stacks, one absorbing failure point, and a boundary of infinite stack directions. Push moves away from the root, matching pop moves toward it, and mismatch falls into failure. Finite observation truncates the tree and merges everything beyond the cut with failure because no short future can return from there.
13.5 Access growth
Every stack of height is reached by opening symbols. The tail/failure class is reached at length one by a mismatching closer. Hence The access coordinate is linear for every bracket rank even though the number of visible rows is linear at and exponential for .
This is the first clean separation between how many observations exist and how far one must search to see them all.
Exercise 13.3. Derive the depth- quotient count for and compute the values through . Identify the extra class not represented by a visible live stack. See the .
Exercise 13.4. Construct two different infinite typed-stack threads for and show that a finite quotient eventually distinguishes them. Why is there only one escaping height direction for ? See the .
14 Finite control over a universal recursive frame
Bare Dyck recognition remembers only stack validity. A context-free language also needs finite control specifying which bracketed traces correspond to legal grammar choices and which output symbols they produce. Combining an infinite canonical stack dynamic with a finite controller yields a large family of finitely presented recognition dynamics.
14.1 The controller product
Let be a finite automaton over the bracket-and-neutral alphabet. A controlled Dyck language has the form or its image under a fixed output map. A direct recognizer carries a pair plus failure. Each input symbol updates both the stack and finite control.
The full Cartesian product is only a presentation. Some pairs are unreachable; others may have identical controlled futures. The canonical object is the reachable residual quotient of the product.
Example 14.1 (Recovering ). Use one bracket type. Map each opening symbol to output and each closing symbol to output . A finite controller forbids concatenation of several balanced components and permits only one mountain of opens followed by closes. The projected outputs are exactly .
14.2 Balanced-word saturation
A controller can make arbitrarily long detours while returning the stack to the same height. Computing reachable semantic pairs at bounded stack height therefore cannot simply enumerate input words up to a matching length bound. One must saturate the finite relation induced by balanced words.
For controller states , record whether some balanced word takes to without violating the stack discipline. Closure under concatenation and matched enclosure computes a finite balanced relation. This relation captures unbounded flat detours inside a finite control summary.
Once the balanced relation is known, recursive future refinement at each bounded stack height computes the exact controlled observation quotient. The finite quotients form a compatible tower, and compact nested-fiber arguments reconstruct the reachable exact dynamic.
Bounding stack height does not bound word length. A controller may traverse a long balanced loop without increasing height. Any algorithm that replaces balanced saturation by a fixed word-length cutoff is only an experiment unless it proves a sufficient cutoff.
14.3 A depth-threshold family
Let contain the balanced words whose stack height reaches at least . A finite controller needs only remember whether the threshold has already been crossed and, before crossing, the current height below . The language is nonregular because after crossing the threshold it still must match an unbounded typed stack.
At future horizon , a stack of height can reveal the threshold status only if enough future length remains to climb from to and return. This creates delayed observation classes in addition to the ordinary visible Dyck stacks. The exact candidate quotient count is The first sum is the bare Dyck stack contribution; the second records below-threshold stacks whose future can now distinguish whether the threshold has already been reached.
The access radius is At horizon zero the two output classes—accepted and rejected—already exist, but a shortest accepted threshold witness has length . This family again separates observation count from access delay.
The formulas in this section are current FPRD candidate results supported by direct proofs and independent finite enumeration. They are presented to teach the mechanism, not as classical facts or externally reviewed theorems. The unbounded proof obligations remain visible in Chapter 19.
14.4 The shallow complement
The complementary balanced language that never reaches height is regular: the live stack belongs to the finite set of typed stacks of height at most , plus failure. Its eventual residual count is its accessibility degree is , and its distinguishability degree is .
Threshold and shallow languages partition the Dyck language but have very different dynamics. The shallow side turns the stack tree into a finite truncation; the threshold side retains the entire unbounded stack after a finite control event.
14.5 Fixed-envelope recoding
The bracket alphabet in a Chomsky–Schützenberger representation may depend on the grammar. To obtain one fixed recursive frame, encode each source bracket name as a fixed-width digit block over a chosen base. Each output position becomes an envelope bracket carrying its digit and any required output label.
A finite trie controller checks block alignment and rejects malformed partial blocks. The block map is injective, preserves and reflects matching, and commutes with output projection. If the block width is , source and envelope observation depths scale: Shortest distinguishing words and action macros scale by the same block geometry.
This construction buys a universal alphabet at a measurable cost: more envelope symbols, finite controller states, macro-action length, and observation lag. Expressive equivalence alone would hide these tradeoffs.
14.6 Toward an affine access bound
For a fixed finite controller, let bound the length of shortest balanced witnesses needed for its saturated balanced relation. A candidate general bound has the form The idea is to realize a representative bounded future by alternating at most finite balanced controller transfers with at most unmatched stack steps. Finiteness of the controller makes finite; the stack contributes the linear horizon term.
The bound is intentionally coarse. Special families such as bare Dyck and depth thresholds have much sharper exact access laws. Its value would be uniformization: fixed finite control cannot postpone a horizon- observation beyond an affine function of once balanced transfer witnesses are bounded.
Which quantitative cost should classify a controlled recognition family: controller size, balanced witness bound, bracket rank, coding width, observational growth, access radius, or some joint profile? The examples show that none of these coordinates determines all the others.
Exercise 14.2. For one bracket type and threshold , list the shortest balanced words that do and do not cross the threshold. Explain why horizon-zero access is four. See the .
Exercise 14.3. Construct the minimal DFA for balanced one-type words of height less than . Compute its accessibility and distinguishability degrees. See the .
Part V — Algebra, information, and resource lower bounds
15 Hankel tables, linear algebra, and semirings
The past–future table can be studied as a set of Boolean rows or as a matrix over an algebraic domain. These viewpoints answer different questions. This chapter reactivates the linear algebra needed to use rank correctly and explains why Boolean arithmetic changes the invariant.
15.1 Vector spaces and linear maps
A vector space over a field supports addition, scalar multiplication, additive inverses, and division by nonzero scalars. A list is linearly independent when forces every . A basis is an independent spanning list, and the dimension is its size.
A linear map preserves addition and scalar multiplication. Once bases are chosen, a finite-dimensional linear map becomes a matrix. The matrix is a coordinate presentation; the map is the underlying object.
The rank of a matrix is the dimension of its row space, equivalently its column space. It measures the number of independent linear directions, not the number of distinct rows.
Example 15.1 (Distinctness versus rank). Over , the rows are four distinct vectors but span a two-dimensional space. This illustrates the distinction: a deterministic recognizer must keep distinct Boolean future rows separate, while a weighted linear representation may synthesize later rows as combinations of a basis.
15.2 Identity minors as certificates
If a matrix contains an identity submatrix, its rank over every field is at least . The selected rows are independent because restricting a linear relation to the selected columns reads off each coefficient.
For language tables, identity minors often arise from canonical separators. Choose prefixes and futures such that Then the corresponding Hankel submatrix is the identity.
Example 15.2 (Dyck identity minor). Select distinct typed stacks and let be their opening words. Let be the canonical closer word for . Then is balanced exactly when the typed stacks agree. Every finite collection of visible stacks therefore yields an identity minor.
An identity minor proves a lower bound without computing all determinants. It also gives an operational interpretation: each row owns a private future that accepts only from that state.
15.3 Factorization and state coordinates
Suppose a finite matrix factors as with having columns and having rows. Then . Conversely, a rank- matrix over a field admits such a factorization by choosing a row or column basis.
In recognition terms, can encode each prefix into an -dimensional state and can evaluate futures linearly. This is a linear readout-aware realization of the finite table. It need not be deterministic, Boolean, or closed under the exact letter actions unless those properties are proved separately.
Low field rank does not imply few deterministic states. Distinct Boolean rows can lie in a low-dimensional linear space. Conversely, a zero Boolean row is a deterministic failure state but contributes no new linear dimension.
15.4 Semirings and the Boolean domain
A semiring has addition and multiplication with identities but need not have additive inverses. The Boolean semiring is Here . Matrix multiplication uses OR of ANDs.
A Boolean factorization says that each -entry is covered by at least one shared Boolean feature. The minimum factor width is Boolean rank. Without subtraction, familiar field arguments can fail; row rank, column rank, and factor rank require careful definitions.
Example 15.3 (A Boolean cover). The matrix has three distinct rows. Over the Boolean semiring the third row is the OR of the first two. A deterministic state count remains three because the futures differ; a Boolean feature factorization may use two generators.
Identity matrices still have Boolean rank equal to their size. Each diagonal must be covered without creating an off-diagonal , so one Boolean feature cannot cover two different diagonal entries. The canonical Dyck identity minors therefore lower-bound both field rank and Boolean rank.
15.5 Finite Hankel windows
Choose bounded prefix and future sets, for example The finite Hankel window is Its number of distinct rows is . Its field rank and Boolean rank may be smaller.
For bare Dyck recognition and prefix radius , saved stacks factor the window: a prefix first maps to its visible stack/failure coordinate, and that coordinate determines every future entry. Canonical closer columns provide an identity minor on the live visible stacks. Hence, up to the zero failure row, the factorization upper bound and identity-minor lower bound meet exactly.
If counts live typed stacks, then a sufficiently wide Dyck window has over every field, while the number of deterministic rows is when failure is reachable. Deeper live stacks and irreparable failure merge into one all-zero bounded row. The one-row discrepancy is mathematically meaningful: linear dimension ignores a zero vector; deterministic recognition cannot ignore a reachable rejecting future.
15.6 Infinite rank and regularity
The full Hankel matrix of a regular language has finite field rank because it has finitely many distinct residual rows. The converse over a field belongs to the classical finite-rank realization theory for weighted and stochastic automata (Carlyle and Paz 1971); for Boolean characteristic series, finite field rank is closely tied to regular structure but the exact domain and representation hypotheses should be stated.
FPRD primarily uses finite windows and explicit minors. This avoids claiming that one global rank notion captures every deterministic or semiring resource. The two-parameter profile records how algebraic complexity appears as both past and future observation increase.
Exercise 15.4. Construct five distinct Boolean rows in whose field rank is three. Explain why a deterministic row recognizer still requires five row names on that finite table. See the .
Exercise 15.5. Prove that the Boolean rank of the identity matrix is . Phrase the proof as a rectangle-cover argument. See the .
Exercise 15.6. Write a Hankel window for one-type Dyck prefixes of height at most two and the three canonical closer futures. Identify an identity minor and the zero failure row. See the .
16 From observation tables to information and memory
A row of a past–future table is not only a semantic residual. At a fixed cut it is the exact information that must pass from a prefix processor to a future processor. The same row count therefore controls layered recognizers, one-way communication, and streaming memory.
16.1 Strict layered recognition
Fix a total input length . A strict layered recognizer reads exactly symbols, crosses a cut, then reads exactly more. At the cut, two prefixes may share a state only if every suffix gives the same outcome: Thus cut states are exactly the distinct rows of the fixed matrix
Theorem 16.1 (Fixed-cut state minimum). The minimum number of reachable cut states in a deterministic strict layered recognizer is the number of distinct rows of .
Proof. For the lower bound, prefixes with different rows have some separating suffix and cannot share a deterministic cut state. For the upper bound, use the row itself as the cut state. On receiving suffix , read the corresponding row coordinate. This recognizes the finite fixed-length problem exactly. ◻
This is finite-table minimization. It says nothing by itself about one time-homogeneous automaton working at every length.
16.2 One-way deterministic communication
Imagine that Alice receives and Bob receives . Alice sends one deterministic message; Bob must decide whether .
If two prefixes have different rows, Bob can choose a suffix on which their answers differ. Alice must send different messages. Conversely, sending the row class is sufficient. Therefore the exact minimum number of messages is the same distinct-row count.
If there are rows, a fixed-length binary encoding needs bits. The count is the invariant; the bit ceiling is an encoding cost.
The connection between communication matrices and deterministic one-way protocols is classical communication complexity; Yao’s foundational work is one standard entry point (Yao 1979). The recognition-specific transfer identifies the same exact row quotient with layered machine width.
16.3 Streaming lower bounds
An exact one-pass streaming recognizer has some internal configuration after reading the first symbols. If prefixes with different future rows reached the same configuration, feeding a separating suffix would force identical future computation from the same configuration, contradicting exactness.
Hence the number of possible cut configurations is at least the fixed-cut row count. A machine with bits has at most configurations, so
This lower bound is model-sensitive. It assumes deterministic exact recognition and counts all information present at the cut. Randomization, error, multiple passes, advice, or nonuniformity changes the communication problem and must be analyzed separately.
Example 16.2 (Dyck memory). At a midpoint cut, different visible typed stacks have canonical closer suffixes. There are roughly stacks of height , so distinguishing them requires bits. A direct stack recognizer stores types using bits each, matching the scale. For one bracket type, only height matters and bits suffice.
The gap between one type and many types is not merely an implementation detail. It is already present in the exact future rows.
16.4 Fixed cuts can be simultaneously exact and globally misleading
For the square-length language, every word in an cut has total length . The cut matrix is all ones when that total is square and all zeros otherwise. It has one row, needs one cut state, and requires zero message bits.
Yet the uniform residual dynamic is infinite. The fixed-cut protocol is allowed to know and as part of the problem instance; it never needs to use one state space across varying prefix lengths. A streaming algorithm for a known fixed total length can likewise bake the answer into nonuniform control.
Exact complexity at every separate length does not automatically assemble into a uniform recognizer. The missing information is compatibility across cuts: which literal row at one prefix length is the continuation of which row at the next. Chapters 17 and 18 restore that information.
16.5 Three invariants, three resource questions
For a finite Boolean table, distinguish:
the number of distinct rows, controlling deterministic states and deterministic one-way messages;
field rank, controlling linear factorization dimension over a chosen field; and
Boolean rank, controlling OR-of-rectangles feature factorization.
None generally determines the others exactly. A useful complexity bridge names the machine or communication model and proves the transfer, rather than calling all three quantities “Hankel complexity.”
16.6 Upper bounds require readout
A lower bound follows from separators. A matching upper bound requires a recognizer that stores the proposed coordinate, updates it, and reads the answer. For Dyck languages, a typed stack provides all three. For a controlled language, one needs the stack plus finite controller and must minimize or bound their reachable joint futures.
This is the same readout discipline encountered in Chapter 9. An information count becomes a complete representation result only when a uniform operational realization meets it.
Exercise 16.3. For equality on two-bit strings, where Alice and Bob must decide whether , write the communication matrix, count its rows, and derive the exact deterministic one-way message count. See the .
Exercise 16.4. Prove that every fixed cut of the square-length language has one row. Then use the residual separator from Chapter 2 to explain why no uniform finite DFA follows. See the .
Exercise 16.5. Turn an arbitrary pair of distinct cut rows into a streaming-state lower-bound argument. State exactly where determinism and exactness are used. See the .
Part VI — From local observations to global dynamics
17 Sewing local observations into a global language
Fixed cuts give exact finite problems, but a family of unrelated matrices need not describe one language. The missing ingredient is literal compatibility: the same symbol moved across a cut must denote the same concatenated word. Once labels and compatibility are retained, local tables sew into a unique global language and their joint rectangles recover the residual orbit and its completion.
17.1 A two-parameter field of cuts
For each , let be a Boolean matrix with literal word labels. A language produces
The same word has several cut decompositions. If , then and are literally the same concatenation. Therefore every language field satisfies the diagonal transport law
Definition 17.1 (Compatible cut field). A family is compatible when it satisfies (17.1) for every legal .
Anonymous row counts cannot express this law. Even matrices known only up to independent row permutation lose the identity of the prefix being transported.
17.2 The sewing theorem
Theorem 17.2 (Unique language from compatible cuts). Every compatible Boolean cut field determines a unique language such that for every cut. Conversely, every language produces a compatible field.
Proof. The converse follows from associativity of word concatenation:
Now start with a compatible field and fix and . Apply the transport law repeatedly: By definition, the last value is exactly when . Thus every field entry agrees with the language reconstructed on the zero-future axis.
Uniqueness follows because any realizing language must satisfy so it equals word by word. ◻
The theorem is elementary once the right data are retained. Its force lies in the boundary it draws: local cut widths do not assemble, but literal cut tables with the transport law do.
Example 17.3 (An incompatible family). Over , set but . Both one-entry matrices are valid Boolean tables in isolation. No language realizes them because they assign two values to the same word across adjacent cuts.
17.3 Joint at-most rectangles
A fixed cut sees futures of one exact length. To preserve how those futures belong to one prefix, join all blocks through horizon : For prefix radius , define
Future restriction gives surjections Increasing includes more literal prefix rows. Letter extension has the shifted type Well-definedness is exactly the one-step future argument used in Chapter 5.
The rectangle has two independent meanings:
measures how much of the reachable past orbit has been explored;
measures how finely each reached state is observed.
Collapsing either axis too early hides a different phenomenon.
17.4 Two assembly orders
Fix a prefix radius and take the inverse limit over . A compatible thread belonging to one of the finitely many literal prefixes through recovers that prefix’s complete residual. Increasing then unions these finite orbit fragments. This assembly order gives the literal residual orbit
Alternatively, fix and let grow until every horizon- row has appeared, obtaining the bounded future-row quotient . Taking the inverse limit over gives the compact observational completion
The comparison is injective and dense. It is onto exactly when every compatible observation thread is a literal residual, equivalently when the orbit is closed in its observational completion.
The two assembly orders are not being declared equal. One produces the literal orbit; the other may add boundary behaviors. Their comparison is the mathematical object of interest.
17.5 Naturality and reconstructed action
The shifted letter maps commute with future restriction. Therefore they act on compatible inverse threads. Under the identification with languages, this action is ordinary residual differentiation:
This is an example of exposure one. The depth- output after reading a letter depends on the depth- input. More generally, reading a word of length has exposure .
The finite rectangles thus retain enough information to reconstruct not only the state set but the canonical letter actions and epsilon readout. That is why the assembly is a recognition dynamic rather than a bare inverse-limit space.
17.6 What sewing does not prove
Every total compatible Boolean field comes from a language, so total-field sewing has no nontrivial existence obstruction beyond the transport equations. Interesting obstruction theory would require partial observations, noisy or inconsistent local data, restricted realizability classes, or additional presentation constraints.
Nor does sewing prove regularity. Every language, regular or not, has a compatible field. Regularity appears when the future tower stops refining at a genuine global plateau.
Where should a nontrivial local-to-global obstruction live? Possibilities include partially specified cut tables, fields required to arise from one finite presentation doctrine, approximate observations with error, or local controllers that cannot be jointly realized. A useful obstruction must rule out something that the literal transport law alone permits.
Chapter 19 returns to the last possibility in a restricted controlled-Dyck setting. There the language and every literal observation are already globally compatible. The open issue is whether the cheapest semantic entry observations admit one shared finite regular presentation. The resulting entry-atlas sewing defect separates ordinary language sewing from finite-presentation sewing; its vanishing is semidecidable, while no positive example is currently known.
Exercise 17.4. For , write every step transporting to . Identify exactly where literal labels are used. See the .
Exercise 17.5. Specify three individually consistent adjacent cut entries over that become inconsistent when their transport equations are combined. See the .
18 Global plateaus and finite-state collapse
The quotient count is nondecreasing. If it ever has a genuine adjacent plateau after ranging over every prefix, the graded observation tower collapses to one time-homogeneous finite automaton. The proof is short enough to see completely and strong enough to explain why finite sampled plateaus are not certificates.
18.1 From equal cardinality to equal equivalence
The restriction bond is always surjective. If then a surjection between finite sets of equal size is bijective.
The horizon- relation refines the horizon- relation. Bijectivity means that no horizon- class was split. Therefore The reverse implication always holds, so the two equivalence relations are equal.
18.2 The plateau theorem
Theorem 18.1 (Global adjacent plateau). If for some , then is regular and is the state set of its minimal residual DFA.
Proof. Suppose . By (18.2), the prefixes also agree through horizon . For any letter and any with , the future has length at most , so Hence Thus is a right congruence.
Iterating the right-congruence property gives for every word . Horizon- agreement includes the empty future, so for every . Therefore and have the same complete residual. The finite relation is exactly residual equivalence.
Letter actions are now well defined at the same level. Take start state and accept when . The resulting finite DFA recognizes . Since its classes are exact residuals, the Myhill–Nerode theorem identifies it as minimal. ◻
This theorem is a local numerical signal with a global quantifier hidden inside : every prefix in has already been considered.
18.3 Why finite tables can lie by omission
In practice one may compute only Equal sampled counts do not show that longer prefixes introduce no new rows. A language can mimic a finite automaton on an enormous finite rectangle and diverge later.
Even a table extending through a familiar bound such as twice the current row count is a certificate only when one already knows an upper bound on the true number of residuals or has an equivalence oracle. Otherwise the table supports a hypothesis that can be refuted by more data, not a proof of regularity.
Example 18.2 (A delayed singleton). At small prefix radius , the language looks empty at horizon zero: every sampled prefix rejects. The accepting row appears only at radius . Any finite search limit can be defeated by choosing a later singleton.
18.4 Fixed cuts do not see the plateau
For the square-length language each fixed cut has one row. If is square, the matrix is all ones; otherwise it is all zeros. Width is permanently flat.
The uniform residual orbit is nevertheless infinite. If , choose a square whose next gap exceeds . Append a word of length . The prefix of length reaches total length , while the prefix of length reaches strictly between and . The two residuals differ.
Fixed-cut row counts erase how prefixes at different lengths correspond. The joint horizon quotient restores that information, and its count cannot plateau for the square language.
18.5 Closed orbit and finite orbit
If is regular, its residual orbit is finite and therefore closed in the Hausdorff behavior space. Its completion adds nothing.
For the observation tower considered here, a global adjacent plateau makes the orbit finite by the theorem. Conversely, if the orbit has residuals, some finite horizon distinguishes every pair: choose one shortest separating word for each pair and take the maximum length. At that horizon and the count remains forever. Thus regularity, eventual quotient stabilization, and finite residual orbit are equivalent.
The phrase “closed implies finite” is not true for arbitrary subsets of a compact space. The theorem depends on the residual action and finite alphabet, not topology alone.
The plateau mechanism is a form of classical finite-state partition refinement and Myhill–Nerode stabilization (Moore 1956). The FPRD sewing framework makes explicit how the same-level action emerges from a graded future-observation tower.
Exercise 18.3. Fill in the exact quantifiers proving that implies under the adjacent plateau. Why is horizon , rather than only , necessary? See the .
Exercise 18.4. Let a minimal DFA have states. Prove that there is a finite horizon distinguishing every state pair and hence an eventual constant value . See the .
19 Observation growth and access
The two-parameter rectangle separates how many future distinctions exist from how far into the prefix orbit one must travel to witness them. These coordinates connect finite automaton degrees, symbolic factor appearance, controlled-stack geometry, and uniformization cost.
19.1 Three related functions
Recall where is the membership row of prefix on every future of length at most .
The function is the finite rectangle. The function is eventual growth on the prefix axis. The function records where eventuality is first achieved at a fixed future horizon.
Proposition 19.1 (Basic access laws). For every language over a finite alphabet:
exists;
is nondecreasing in ; and
if has a reachable -state DFA, then .
Proof. Existence follows because the finite set has finitely many classes, each with a finite prefix representative. Take the maximum length among shortest representatives.
If prefixes through radius represent every horizon- class, their restrictions represent every horizon- class. Hence the least sufficient radius cannot decrease as the horizon grows.
For a reachable -state DFA, every state has a shortest access word of length at most . Every bounded row is the projection of a residual state, so these access words cover at every horizon. ◻
19.2 Prefix-volume lower bounds
If , the number of prefixes through radius is At most one bounded row can be contributed by each prefix, so For , For , inversion gives
The alphabet size is the number of actual input symbols, not the bracket rank alone when neutral symbols or separate open/close symbols are present.
19.3 A gap in observation growth
Monotonicity and the global plateau theorem leave no room for sublinear unbounded quotient growth.
Theorem 19.2 (Observation-growth gap). If is nonregular, then is strictly increasing and for every . Equivalently, if ever fails to increase at an adjacent pair of horizons, then it remains bounded.
Proof. The restriction bonds make nondecreasing. If at any horizon, Theorem 18.1 makes regular, so its quotient growth is bounded. Contrapositively, a nonregular language must increase strictly at every step.
Moreover for a nonregular language. If it were one, every prefix would have the same acceptance value, making either or , both regular. A strictly increasing integer sequence beginning at two satisfies . ◻
The rank-one Dyck language is sharp: . For unary languages, the bound also follows from the classical Morse–Hedlund complexity gap after the unary factor bridge (Morse and Hedlund 1938). Here the plateau theorem extends it to residual observations over every finite alphabet. Combining the gap with prefix volume gives universal access lower bounds for nonregular languages: in the unary case and at least logarithmic growth in when .
19.4 A regularity criterion
Theorem 19.3 (Bounded access characterizes regularity). For a language , the following are equivalent:
Proof. If is regular, the finite-DFA access bound gives a uniform bound on . Since is a nondecreasing sequence of integers, boundedness is equivalent to eventual constancy.
Conversely, suppose for all . Prefix volume gives uniformly. The nondecreasing integer sequence must therefore have an adjacent plateau. The global plateau theorem makes regular. ◻
For a regular language, once the horizon distinguishes all residual states, equals the accessibility degree of the minimal DFA. The first horizon where reaches the residual count is its distinguishability degree.
An access plateau at one pair of horizons does not imply regularity. The proof uses a uniform bound over all horizons. Bare Dyck recognition can have and still grow unbounded later.
19.5 From a finite controller to exact access
We now obtain the first general restriction imposed by one of our finite presentation doctrines. Fix a generalized-Dyck alphabet and a total finite controller Chapter 14 computed which stack/controller coordinates are globally reachable and which coordinates have the same bounded future. It did not ask how long the earliest prefix reaching each bounded row must be.
19.5.1 Balanced distance is a min-plus object
For controller states , define with value if no balanced word realizes the pair. Forgetting the length recovers the balanced controller relation from Chapter 14. Retaining the length gives more.
The distance table is closed under four operations: The third line concatenates balanced words. The fourth wraps an already balanced word between a matched opener and closer. Repeatedly relaxing these inequalities is a finite min-plus calculation: alternative witnesses take a minimum, while concatenated lengths add.
There is a small order-theoretic trap here. In the ordinary numerical order, is the greatest nonnegative matrix satisfying these upper-bound inequalities: the all-zero matrix satisfies them too. Operationally we start at infinity, insert literal witnesses, close under the two constructors, and keep the smallest generated witness cost. This computes shortest words without confusing “smallest witnessed cost” with “least numerical solution of the inequalities.”
Remark 19.4. Min-plus arithmetic is ordinary shortest-path arithmetic written algebraically. Addition along a route becomes ; choosing among routes becomes . The terminology is useful because the same calculation can later retain several boundary costs rather than one coarse maximum.
Let be the states reachable from in the underlying controller DFA, temporarily ignoring stack legality, and let This is a certificate attached to the chosen presentation. Adding redundant reachable controller structure can change without changing . Unreachable controller gadgets are deliberately excluded: no balanced segment of a legal prefix can begin there.
19.5.2 Shortest arrival of a saved stack
For a reachable coordinate , let be the length of its shortest prefix witness. Empty stack gives If is an opener, the last unmatched occurrence of splits every prefix ending with stack into: Consequently This is an equality, not just a construction. Every prefix has the stated factorization, giving the lower bound; concatenating shortest witnesses for the three pieces gives the upper bound.
At horizon , let be the bounded semantic shadow from Chapter 14. A class may contain several raw coordinates. Its earliest arrival is also allowing the tail representative with cost one. That cost is exact: one closer underflows from the empty initial stack.
This order embodies an important rule:
minimize before maximizing.
First remove presentation redundancy by taking the earliest coordinate inside each semantic class. Only then measure the last class to appear. Maximizing raw arrival first would charge late controller syntax that the language does not observe.
Theorem 19.5 (Exact access calculus for controlled Dyck presentations). For every finite controlled-Dyck presentation and every horizon , The quantity is effectively computable by finite balanced-distance relaxation, the stack recurrence above, and the finite controlled-Dyck shadow quotient. Moreover,
Proof. The bounded future row of a prefix is exactly the controlled-Dyck shadow class of its raw endpoint. The stack recurrence gives the shortest prefix reaching each visible endpoint, while underflow reaches the tail in one step. Therefore is precisely the first prefix length at which row appears. The first radius containing every row is their maximum.
For the bound, a prefix leaving stack factors at its unmatched openers as with every balanced. Replace each balanced segment by a shortest word having the same ordered pair of controller endpoints. Its source lies in , so there are such segments, each of length at most , and unmatched openers. Preserving both endpoints preserves all controller states at opener boundaries and the final state; balanced replacement preserves the saved opener stack. Thus every reachable coordinate of height has a witness of length at most . The tail costs one, and semantic quotienting can only reduce arrival. Taking the maximum proves the display. ◻
Theorem 19.6 (The linear access certificate is pointwise sharp). For every horizon , some finite controlled-Dyck presentation attains the displayed upper bound. For every , one can arrange and The presentation is allowed to depend on .
Proof. At , bare rank-one Dyck has and access one, attaining the outer guard.
Fix . Use two bracket pairs and neutrals . At each level , put controller states with the forced balanced detour Only survives the next saved opener: . Return states form a -chain, , and only accepts. Finally, every neutral sends every tier state directly to ; all unspecified transitions die.
The neutral shortcuts ensure that every realizable balanced controller pair has a witness of length at most two. The pair needs exactly the two-letter word , so .
Now inspect the coordinate . Factoring any prefix at its unmatched symbols creates balanced segments. Each segment must take to ; otherwise the next dies. Thus every witness spends two letters in each segment and one on every saved opener, for total at least . The word attains that length.
Semantic quotienting cannot find an earlier representative: the future is accepted only from stack and controller state . Hence this bounded row has earliest arrival . The preceding upper bound supplies equality. ◻
The construction shows exactly what “sharp” means here. It rules out a smaller uniform coefficient based only on and . It does not produce one fixed controller that is extremal at every horizon; its alphabet and state set grow with the selected .
Example 19.7 (A balanced detour visible at horizon zero). Suppose a controller first reaches an accepting empty-stack state after the balanced word (()). The accepting horizon-zero row first appears at prefix length four even though its stack is empty. A height-only calculation would predict zero and fail. Balanced distance records the missing cost: .
Combining this theorem with bounded-access regularity gives a dichotomy. Every fixed controlled-Dyck presentation has . If its language is nonregular, its access is unbounded but still at most linear. The conclusion is language-level; the displayed coefficient remains a presentation-level certificate.
19.6 When is a large presentation cost real?
The last sentence raises a more delicate question than ordinary automaton minimization. Suppose a controller has a very large value of . Does the language force that cost, or did we merely choose a poor regular language away from the well-nested inputs that are actually observed?
There are two different minimizations to perform:
minimize the DFA for one fixed regular controller language ; and
vary itself while preserving only .
The second operation is easy to miss. A minimal DFA for may spend most of its states remembering distinctions between malformed bracket words. Those distinctions are real for but invisible after intersection with .
19.6.1 The sources the proof actually uses
Let be the set of bracket words that never underflow or mismatch. They need not end with empty stack. Define These are controller states reached by legal Dyck prefixes. Now put
Why not simply use ? Return to the factorization The source of is . For , the source of is the state immediately after the opener . Thus names exactly the places where the balanced obligations begin.
This set is finite and computable even though legal prefixes may have unbounded stack height. Start with all endpoints of balanced words from . Repeatedly take one opener transition and then all possible balanced endpoints. No more than state additions can occur.
Define the entry-sourced diameter The earlier replacement proof now gives the sharper law
Take a prefix ending at stack height . Its balanced pieces begin only at states in . Replace each by a shortest balanced word with the same controller endpoints. The unmatched openers remain literal. The new length is at most . Horizon sees only ; the tail still costs one; semantic quotienting still minimizes arrival. Nothing else in the earlier proof changes.
This is a useful example of proof analysis improving a definition. We did not guess a smaller constant and hope. We inspected exactly where the old constant entered the proof and retained only the sources consumed there.
19.6.2 Why DFA quotients can only help
Suppose is a surjective morphism of reachable DFAs: it preserves the start state, final output, and every letter action. Then Both identities follow by running the same legal prefix in the two machines.
Theorem 19.8 (Entry diameter is monotone under DFA quotient). For every such morphism, Consequently the reachable minimal DFA of one fixed regular language has no larger entry diameter than any DFA recognizing that regular language.
Choose a finite balanced pair in the target with . Lift to some . A balanced target witness ends, from , at some with . Now replace by a shortest source word from to that particular . The source bound gives , and applying shows that the same sends to . Hence the shortest target distance is no larger.
The direction of the argument matters. Merely observing that a target word lifts to the source gives the wrong comparison. We must shorten the lifted source path first and then project that shorter path back down.
The Myhill–Nerode quotient is one such morphism, so ordinary DFA minimization is safe. But it solves only the first minimization problem.
19.6.3 Forgetting behavior away from the Dyck trace
Call two regular languages Dyck-trace equivalent when For a controlled-Dyck language , define
The definition hides no compactness argument. At least one regular controller exists by hypothesis. Each candidate value is a nonnegative integer, so the nonempty set of candidate values has an attained minimum. What the definition does not provide is an algorithm for finding the best .
It does, however, provide an exact comparison test. Given two controllers, form their product and mark the states where their Boolean outputs disagree. The two Dyck traces are equal exactly when no balanced word takes the product start to a marked state. Balanced-relation saturation decides this, and balanced distance returns the shortest separating word when equality fails.
We may therefore enumerate all finite DFAs, discard those with the wrong Dyck trace, minimize each survivor, and retain the smallest entry diameter seen. The resulting upper bounds eventually reach because an optimum exists and is eventually enumerated. The sequence need not announce when it has reached the optimum. Thus is computable in the limit from a controller, even though no terminating global minimization algorithm has been proved.
The earlier access theorem can now be applied to a minimizing controller.
Theorem 19.9 (Dyck-trace minimax certificate). For every controlled-Dyck language inside the fixed envelope , The number depends only on and the selected Dyck envelope, not on one chosen regular controller.
The qualification “selected envelope” is essential. Re-encoding a context-free language with a different bracket alphabet changes the class of regular controls over which the minimum is taken. No invariance under that larger change of coordinates has been proved.
19.6.4 A semantic lower bound: balanced residual access
The minimax definition removes the chosen controller, but it does not by itself tell us what any controller must pay. For that we return to the language and deliberately use only empty-stack boundaries. For , write Two balanced histories are equivalent when no balanced future distinguishes them. This is a Myhill–Nerode relation internal to the monoid , whose multiplication is concatenation. Closure of under concatenation is what makes the definition compositional.
The quotient has finite index for a controlled-Dyck language. Indeed, if two balanced histories leave a finite controller in the same state, every future controller run—and hence every balanced test—agrees. The semantic quotient may merge controller states, but it cannot split one controller state.
For each balanced residual class , measure its first arrival and define This is an access radius, but not the earlier horizon- access radius. It asks how late the last full balanced residual first appears. No presentation occurs in its definition.
Theorem 19.10 (Balanced residual access lower bound). Every regular controller presenting satisfies and therefore
Choose a semantic class and a shortest balanced word . Let be the controller state after . The balanced distance from the start to is at most . Suppose a shorter balanced word reached the same . Starting any continuation from the same controller state gives the same final output, so Then , contradicting the choice of . Thus the distance to is exactly . The start is a legal segment-entry source, so . Maximize over the semantic classes and then minimize over presentations.
The proof illustrates the handoff from semantics to presentation. The semantic class tells us that some behavior cannot appear early; a controller state reached by its shortest representative transfers that delay into every finite presentation.
19.6.5 Moving the experiment inside a legal entry context
Top-level balanced boundaries are only one kind of semantic observation. The entry diameter also starts balanced factors immediately after legal openers. Those sources have a language-level meaning.
Let An remembers a fixed unfinished typed stack. Its valid completions are If is inserted after , it begins and ends with the same unfinished stack. The domain of possible completions therefore does not depend on which balanced factor was inserted.
For balanced factors , define This experiment asks whether the surrounding legal nested context can tell the two balanced factors apart. Let
At first sight the supremum ranges over infinitely many entry histories. It is nevertheless finite for a controlled-Dyck language. Any one finite controller bounds all of the class arrivals at once.
Theorem 19.11 (Entry-context residual lower bound). Every regular controller presenting satisfies Consequently
Fix an entry history , one contextual factor class , and a shortest . If is the controller state after and is the state after , then is one of the exact legal segment-entry sources. Suppose a shorter balanced factor also took to . Every completion would then start in the same controller state after and . Because the two balanced factors leave the unfinished Dyck stack unchanged, they also have exactly the same valid completion domain. Thus and would belong to the same contextual class, contradicting minimality.
So the shortest balanced controller distance from to is exactly the first arrival of . The entry diameter bounds it. Taking all classes and all entry histories proves the first inequality. Choosing recovers the top-level balanced residual relation, proving .
The definition ranges over infinitely many unfinished stacks, but their effect on a finite controller can be summarized finitely. Form the paired controller on and mark a pair when its two coordinates have opposite final outputs. Let be the balanced-word relation of this paired controller.
For an unfinished typed stack , define to be the state pairs from which some legal completion of reaches opposite outputs. With relational preimage notation, If opener is pushed on top of , every completion first reads a balanced factor, then the forced matching closer , then a completion of . Therefore The whole unfinished stack has been replaced by one subset of the finite set . There are at most such summaries.
Pair a controller state with one completion summary. Starting at , close under balanced controller transitions and opener transitions. The unmatched-opener factorization proves that this finite saturation reaches exactly the state/summary pairs realized by legal prefixes. The start and the opener successors are the semantic entry contexts. At one such pair , two balanced-reachable endpoints belong to the same contextual class exactly when .
Proposition 19.12 (Finite completion-summary saturation). For every controlled-Dyck language, is exactly computable from any finite controller presentation by a terminating finite saturation.
The saturation can be exponentially large, so this is not an efficiency claim. It is a termination claim with an important contrast: enumerating all regular extensions gives successively better upper bounds on but no known stopping certificate, while completion summaries compute exactly and announce completion.
That exact lower bound can sometimes stop the minimax search itself. Given one regular presentation , first minimize its ordinary DFA and put The semantic computation and this concrete presentation give the finite sandwich
Proposition 19.13 (Minimax sandwich stopping rule). If , then the supplied presentation attains the global Dyck-trace minimum and Both endpoints are computed by terminating finite procedures.
The qualification matters. If the endpoints are different, we have an honest interval, not evidence that the current presentation is wasteful: another trace-equivalent regular language may or may not lower the upper endpoint. If we enumerate presentations, however, the first equality with the fixed semantic lower bound is a sound stopping signal. Thus the method computes exactly on every trace for which , without assuming that the equality holds universally.
This leaves a sharply named obstruction rather than a vague compiler gap. Define the entry-atlas sewing defect For a supplied presentation, the computable gap is an upper bound on , not necessarily its value. As trace-equivalent controllers are enumerated, these upper bounds decrease and eventually stabilize at . Consequently the defect is computable in the limit from above, and the statement is semidecidable: endpoint equality is a finite witness. No analogous finite certificate for a positive defect is known.
The terminology is deliberately local-to-global. The compatible-cut theorem of Chapter 17 already says when literal observations describe one language. Here the language exists. A positive would mean something stricter: the separately cheap entry-context observations cannot be carried by one finite regular coordinate system without extra access cost. All families presently understood have ; whether every controlled-Dyck trace does is open.
This is the semantic interpretation of the apparently mechanistic phrase “segment-entry source.” We are not paying for a bucket that carries stack debt. We are paying for the latest balanced behavior that some legal nested context can force us to distinguish.
19.6.6 The first balanced flip
How can we prove that the minimax cost is positive without inspecting every regular presentation? Look for an obligation visible in the language itself. If is neither empty nor all of , define This is the first well-nested word whose acceptance differs from epsilon.
Theorem 19.14 (First-flip lower bound). Every regular controller presenting satisfies and therefore Moreover, exactly for and .
Proof. Let be a shortest flip and let . The output at is opposite to the output at . If some shorter balanced word reached the same , that shorter word would have the same opposite output, contradicting the choice of . Hence Since , the entry diameter is at least this large. The statement survives minimization over presentations.
One-state accepting and rejecting controllers give value zero for and . Conversely, if the entry diameter is zero, every balanced word from must return to : a different endpoint would require a positive-length witness. All of therefore has the epsilon output. ◻
The first flip is the class-access argument with only the empty continuation observed. A shortest flip cannot share its balanced residual class with a shorter word, because membership itself would then agree. Hence The second inequality may be strict: two residual classes can have the same current acceptance bit and still disagree on a later balanced experiment.
The access profile gives another lower bound. For , At , the outer guard means that implies , while alone implies nothing positive.
19.6.7 A family where the semantics forces the full cost
Consider again the depth-threshold languages. Epsilon has not reached depth . Any balanced word that changes this truth value needs at least openers and the same number of closers. The word attains the bound, so
The ordinary threshold controller has pre-threshold states and one absorbing hit state. From pre-state , a balanced word either returns to or first reaches hit. The shortest hitting word is , of length . Its entry diameter is therefore . The lower and upper bounds meet:
Notice the asymmetry between the two branches. For , horizon-zero access is already , so access forces the minimax value. For , access is small; the first acceptance flip supplies information that access does not.
19.6.8 A punctured threshold exposes hidden future obligation
The first flip is not the complete semantic lower bound. For , let This language accepts epsilon and every balanced word that reaches height , but rejects nonempty balanced words that remain below the threshold.
The word already flips the epsilon output, so If the first flip measured the whole presentation cost, every member of this family would have the same lower bound. Balanced continuations reveal what the acceptance bit hides.
There are exactly three balanced residual classes: To see why the middle row is one class, take any nonempty balanced history that stayed below . Concatenation starts the next balanced component at height zero, so the combined word is accepted exactly when the continuation reaches . Once a history has reached , every balanced continuation is accepted. Epsilon differs from the middle class on the empty continuation and from the hit class on a short below-threshold continuation.
Therefore The ordinary threshold controller, with one extra bit distinguishing the fresh start from later below-threshold returns, has entry diameter . The semantic lower bound and this presentation meet.
Theorem 19.15 (Punctured-threshold separation). For every ,
This rules out the attractive guess . The next example tests whether top-level balanced residual access captures everything.
19.6.9 A nested context sees what top-level residuals miss
For , let contain the nonempty Dyck words whose first primitive top-level component is either the two-letter word or reaches height at least . A primitive component is a nonempty balanced word that returns to height zero only at its final symbol. Once the first primitive component has closed, later components cannot change the answer.
At a top-level balanced boundary there are only three residual behaviors:
epsilon still waits to inspect the first component;
a word whose first component succeeded accepts every balanced future;
a word whose first component failed rejects every balanced future.
The successful class first appears at , in length two. For every , the word is a failing first component and supplies the third class in length four. Hence Neither number grows with .
Now place the observation immediately after the first opener, so . A balanced factor inserted there has three contextual behaviors:
An immediate closer distinguishes the empty factor from the nonempty-low factor: the former makes the special component , while the latter makes a longer below-threshold component. A hit factor is permanently accepting and is distinct from both. Therefore this one entry context already forces
A finite controller meets the bound. Before the first component closes, it tracks exact height below , distinguishes the state just after the first opener from a later return to height one, and enters an absorbing accept or reject state once the first component is decided. Crucially, the immediate route and the threshold-hit route use the same accepting sink; minimizing a version with two accepting sinks performs exactly this merger. From the first entry state, the shortest balanced factor that reaches the threshold is . Every other legal entry needs no longer balanced transition. Thus its entry diameter is .
Theorem 19.16 (First-component contextual separation). For every , In particular, for .
So is false in general. The presentation cost is not an artifact: it is forced by a semantic experiment inside a legal nested context. The remaining equality question is the sharper one No general answer is claimed.
19.6.10 A smaller controller need not be the cheapest controller
The previous examples compare a semantic lower bound with one presentation. They do not yet ask how two different finite resources compete. State count measures how many ordinary DFA coordinates a controller uses; entry diameter measures how late a balanced transition first appears from a legal segment entry. There is no reason in advance for one controller to optimize both.
For a trace and a nonnegative budget , define the state budget at access by with value when no finite controller meets the budget. Because unreachable states can be discarded, the minimum may be taken over reachable controllers. The pair is partly ordered coordinatewise: a presentation is interesting only when no other one uses both fewer states and no more access.
Here is a small trace for which the two objectives disagree. Work with one bracket pair . For a nonempty Dyck word , let be the length of its final consecutive run of closers, and set This definition looks global, but a reset makes it regular on the full bracket alphabet. Take states , make initial and accepting, send every opener transition to , and cycle closers by In a nonempty balanced word, the final opener erases everything before it. The remaining closers end at exactly when . Thus this three-state controller has trace . The states are ordinary-DFA distinguishable: is final, and one closer separates from . Hence three is not merely the size of this construction; the exact trace decision below will show that it is the minimum over all controllers.
The controller is small but its entry diameter is six. Its only legal entry sources are and . From , the balanced words first reach at lengths . From , every balanced endpoint appears by length four. Therefore
This six is not intrinsic to the trace. Consider the following controller, whose only final state is : The table has a natural derivation. On a legal prefix, write for stack height and for the current terminal closer-run length. Track A closer adds one to and subtracts one from , so the Boolean coordinate is invariant. An opener resets to zero and increases , so it resets the Boolean coordinate to . At height zero, the Boolean is exactly the desired terminal-descent test. Start at so epsilon is accepted, and make it the only final coordinate. In formulas, The displayed -table is this controller under the relabeling Thus the extra coordinates are not solver debris: height residue makes the obligation bit compositional and shortens every balanced access obligation.
To verify the trace without testing words up to an arbitrary cutoff, form the balanced product with the three-state controller. Starting at , the exact balanced-reachable pairs are The first pair has two accepting coordinates; the other two have two rejecting coordinates. No balanced word can separate the controllers, so the table has trace exactly .
Its legal entry sources and finite balanced distances are Consequently . The semantic value is also at least four. Place a factor experiment after the legal history and complete the unfinished stack by . The factors and yield terminal descents of lengths three and four and are rejected, while yields terminal descent five and is accepted. No balanced factor of length one, two, or three supplies that accepting contextual class. Therefore
Theorem 19.17 (Terminal-descent sewing collapse). For the trace , The three-state presentation is state-minimal but not access-optimal.
The equality closes the candidate sewing gap. This example does not have positive entry-atlas defect. What it gives instead is an exact presentation tradeoff.
Why the lower-left corner is exact
There are infinitely many balanced words but only finitely many state pairs. For a proposed -state controller, introduce an unknown relation . Require to contain every identity pair, to be closed under relational composition, and to satisfy matched wrapping: Every such contains the endpoint pair of every balanced word. Conversely, the exact balanced-word relation itself satisfies these closure laws. This two-sided observation is what makes a finite constraint encoding exact.
Use a second closed set to contain every legal-prefix state. At the start and after every opener from that set, require each -endpoint to equal an endpoint reached by one of These are all one-bracket Dyck words of length at most four, so the condition is exactly . Apply the same construction to the product with the three-state reference controller and forbid a balanced-reachable pair with opposite outputs. That condition is exact trace equality, not finite sampling.
The resulting finite system is unsatisfiable with five available states and satisfiable with six. Unused states are allowed, so a smaller controller could be padded to a five-state model; unsatisfiability therefore rules out every size through five. Independently, exhaustive enumeration of the one- and two-state total binary DFAs, followed by exact balanced-product comparison, finds no presentation of .
A second exact decision reaches the same lower bound without guessing a symbolic balanced relation. It asks the solver for a concrete five-state controller, computes that controller’s exact balanced closure, and adds either the concrete trace equation or legal-entry endpoint equation that the model violates. Every refinement is necessary for any cost-four presentation, and each excludes its generating model. This counterexample-guided route reaches unsatisfiability after 26 iterations. An independent one-hot encoding reaches the same conclusion after 25. The three routes share the Z3 kernel but not the mathematical encoding of balanced reachability.
Theorem 19.18 (Exact state/access frontier of ). The minimum size of a controller presenting is three, and The nondominated state/access pairs are exactly
This last lower bound is computer-assisted: it trusts the finite encoding and the Z3 solver kernel. The satisfying model is exported and rechecked by the independent trace and distance algorithms, but the unsatisfiability proof is not yet a proof-assistant certificate.
The conceptual lesson is asymmetric. In the expensive full-trace family below, extra off-Dyck distinctions create useless cost and minimization removes them. For , extra ordinary-DFA coordinates reduce the cost of carrying the observed balanced transitions. Ordinary state minimization and fixed-envelope access minimization are therefore genuinely different optimization problems.
19.6.11 The terminal-descent modulus atlas
The modulus-three example is not isolated. For , define The nearby moduli first appear to disagree: the natural two-state controller for already has cost four, the natural three-state controller for has cost six but can be recoded to cost four, and the natural four-state controller for has cost eight but can be recoded to cost six. The semantic calculation explains both the pattern and the exceptional first term.
Fix a legal entry immediately after an opener, at stack height . A completion of that stack factors uniquely as There are two qualitatively different cases. If every is empty, the completion is the bare descent and remembers the factor’s terminal run. If some is nonempty, take the last one. Its last opener resets the terminal run, so the final answer depends only on the completion and not on the preceding factor. Thus every nested entry has exactly two contextual factor classes: one distinguished residue and its complement.
More explicitly, the natural controller enters state after every opener. The factor reaches , first at length for . At height , the bare completion accepts exactly the state . As ranges through the positive integers, its shortest arrival ranges up to .
The empty-stack context creates one exception. For , is already rejected and the second root class arrives at length two. For , both and are accepted; is the first rejected balanced word, so the root radius is four. We have proved the semantic half of the following theorem.
Theorem 19.19 (Terminal-descent family law). For every ,
The matching presentation makes the proof unusually transparent. Use states A closer adds one to and subtracts one from , preserving the bit. An opener resets and increments . Hence Take as start and sole final state. At height zero the bit is exactly the terminal-descent test, while the accepting start handles epsilon. A balanced factor preserves and its two possible bit values are precisely the two semantic classes just calculated. Their shortest state arrivals are therefore their shortest semantic arrivals. This -state presentation has entry diameter , proving the theorem’s upper bound.
This is stronger than a list of examples: the proposed positive sewing defect vanishes on an infinite family, for a structural reason. The semantic completion classes themselves can be made into finite controller coordinates. But state count and access cost still pull in different directions.
Even moduli need fewer coordinates
When is even, the coordinates contain redundancy. Put . Acceptance requires the odd residue . If is even, the prefix is hopeless until the next opener, and only the parity of must be retained. If is odd, an -cycle can compute the residue positionally.
Use cycle states and hopeless states . Start and accept at , and set with cycle indices modulo .
On a nonempty legal prefix, means that is odd and ; mean that is even and record the parity of . The transition table preserves this invariant because an even cycle length preserves the parity of . At height zero, has , while a hopeless state cannot accept. The trace is .
The entry sources are only . Their balanced endpoints are reached by factors , with the two hopeless endpoints appearing by length at most four. The greatest necessary length is . We obtain:
Theorem 19.20 (Even positional construction). For every even , an -state controller presents at the optimal entry cost . At it is isomorphic to the six-state controller displayed above.
The theorem is a state upper bound, not a general minimality result. Exact finite decisions give the first three atlas entries It is tempting to conjecture that optimal-cost presentations require states for even and states for odd . The constructions give those upper bounds, and moduli three and four give matching lower bounds. Modulus five is the first unresolved test. That is exactly where the theorem ends and a new research problem begins.
19.6.12 A family where minimization removes the cost
Now we deliberately build the opposite phenomenon. Use one bracket pair , and for let Every word in underflows on its last closer. Therefore
Yet the minimal DFA of must distinguish the balanced prefixes After , the illegal continuation is rejected, and the remaining longer forbidden continuations depend on . These are genuine distinct right languages of even though none of their final rejecting words lies in .
Example 19.21 (An expensive minimal controller for the full trace). The minimal DFA has states for the displayed balanced prefixes, intermediate states after their next opener, one rejecting endpoint, and one accepting sink: states in all.
The balanced word first takes to in length . The shortest balanced route from to the accepting sink is , of length four. Every nonempty balanced word from an intermediate goes to that sink in two steps. Hence These values diverge with , even though every controller has exactly the same Dyck trace . The one-state universal controller shows .
This example gives a precise warning:
minimal for the regular control language is not minimal for its well-nested observation.
The cost is not fake inside the DFA; Myhill–Nerode minimization cannot remove it. It becomes irrelevant only after we decide that behavior away from is outside the observation interface.
The minimax construction is a successful layer change, but it is not yet a complete classification. We know that a best coefficient exists and that semantic data can force it. We do not yet know how to compute it from an arbitrary controller, whether changing the Dyck envelope admits a canonical normalization, or which additional finite boundary data would make the minimization effective. These are mathematical questions about presentation equivalence, not requests for a more elaborate stack simulator.
19.7 Boolean transformations
Let be a pointwise Boolean operation and let all languages use the same alphabet. The output future row is obtained by applying coordinatewise to the tuple of component rows. Therefore
Complement is exact: negating every row coordinate preserves row equality, so
Access under intersection cannot be bounded from marginal access alone. For even , let At horizon zero, each marginal has access one, but has access . A fixed two-state filter can create arbitrary joint access delay through correlation.
Example 19.22 (A two-state controller creates late joint access). Take . At horizon zero, both and the even-length language expose accepting and rejecting rows by prefix length one. Their intersection is the singleton , whose accepting row is not reached until length six. Nothing in the two marginal access radii records the parity correlation selecting the late member.
19.8 Unary words and factor appearance
For a unary language , form its characteristic sequence The bounded row at prefix is the length- factor Thus is the number of distinct length- factors of the one-sided word .
Let be the least prefix length containing every length- factor, and let be the largest starting position of a first occurrence plus one under the corresponding indexing convention. These are standard appearance functions in combinatorics on words (Burns 2022). With our zero-based prefix-radius convention, Observation count becomes subword complexity; access becomes factor-appearance delay.
19.9 Worked family gallery
19.9.1 Singletons
For , and The extra final step reaches the dead residual after the accepting prefix.
19.9.2 Square lengths
The factor complexity of the characteristic word of perfect squares grows quadratically, so This is an imported fact about the square-indicator word (Firicel 2011), transported through the unary identity .
The access radius admits a sharper elementary formula.
Theorem 19.23 (Exact access radius for square lengths). For every ,
Proof. Write and put , so horizon- rows are length- factors of . Consecutive squares and are separated by zero positions.
First let , so . A block of zeros first fits immediately after , because the preceding zero runs have length at most and the run after has length . Its starting position is Every factor containing exactly one occurs no later than : place that at any prescribed offset by taking the factor that starts at . The neighboring squares lie outside this window. Every factor containing at least two s must occur before , since all later consecutive-square gaps exceed the window width. Thus every factor has appeared by , while the all-zero factor appears there for the first time. Hence .
Now let , so . The factor first ends at : earlier squares have fewer than zeros immediately before them. Its first starting position is The all-zero factor already starts at . A factor with exactly one at any offset other than the final offset occurs around and starts before . A factor with at least two s must use a pair no later than , because the next square gap is ; it too starts before . Therefore is the last factor to appear and . ◻
The quadratic count is classical ownership; the parity formula is an elementary FPRD derivation, checked independently on finite horizons but carried here by the unbounded consecutive-square proof rather than by enumeration.
19.9.3 Bare Dyck
For bracket rank , Observation count can be exponential while access remains linear.
19.9.4 Depth threshold
Theorem 19.24 (Exact depth-threshold profiles). Let be the balanced words over bracket types whose stack height reaches at least . Then For the complementary balanced language that stays below , The formulas remain unchanged when neutral letters are added.
Proof. After the threshold has been seen, every typed stack of height at most gives one visible row, distinguished by its canonical closing word. These contribute . Before the threshold, a stack of height needs at least further opens and then closes, so its shortest accepting future has length . It becomes visible exactly when , producing the second sum. Failure and every not-yet-visible coordinate share one all-false row.
A post-threshold empty stack first appears by rising to and returning, at prefix length . A post-threshold stack of height first appears at length once . Every other visible row appears no later than the larger of these witnesses, proving .
For the below-threshold language, the only live rows are typed stacks through height , and one all-false row contains failure and every threshold-crossing prefix. A live height- row first appears after openers; failure appears after one closer. This proves the remaining formulas. Neutral letters change neither stack height nor the shortest witnesses. ◻
At horizon zero, but . Thus even within a finite-controller family, fixed observation count does not bound access across presentations. This does not contradict the affine theorem: increasing changes the finite controller and its certificate.
19.10 What should a growth theory explain?
Closed formulas are only a beginning. A useful classification should address:
realizability: which two-parameter profiles can come from languages or from finitely presented dynamics;
inequalities among row count, rank, access, exposure, and controller cost;
transformations under coding, Boolean operations, quotient, and presentation refinement;
asymptotic regimes and sharp examples separating them; and
uniformization: when nonuniform fixed-horizon recognizers assemble into one controlled dynamic.
Exercise 19.25. Reprove the bounded-access regularity criterion, explicitly naming the point where the global plateau theorem is used. See the .
Exercise 19.26. Verify the fixed-filter intersection example for at horizon zero. Then explain why the product bound on row counts does not imply a comparable bound on access. See the .
Exercise 19.27. Compare and for bare Dyck recognition at ranks one and two. Which coordinate detects the bracket rank most strongly? See the .
Exercise 19.28. A rank-one controller has states , starts at , and leaves its state unchanged on brackets. One neutral letter toggles and ; only accepts. Compute the balanced-distance matrix, the shortest arrivals of empty-stack states, and . Explain why maximizing raw arrivals would give the wrong answer if neither state accepted. See the .
Exercise 19.29. For , list the forbidden set in the expensive full-trace example. Write the rejected-continuation sets at and explain why the states are pairwise distinct even though . Finally compute the entry diameter and compare it with . See the .
Exercise 19.30. Take in the punctured-threshold language. Give one balanced test that distinguishes epsilon from the nonempty-below-threshold class, and one that distinguishes the nonempty-below-threshold class from the hit class. Explain why the three class arrivals are , even though the first acceptance flip occurs at length two. See the .
Exercise 19.31. Take in . Verify that the top-level balanced residual classes first arrive at lengths . Then work immediately after the first opener and exhibit contextual factor classes arriving at . Which completion distinguishes the empty factor from the nonempty-low factor? See the .
Exercise 19.32. For the three-state terminal-descent controller, compute the endpoint of , , , and from each legal entry source. Explain why the entry diameter is six. Then explain why allowing unused states makes unsatisfiability at a five-state budget rule out every smaller cost-four presentation. See the .
20 Research consultations at the frontier
The purpose of this final chapter is not to announce a roadmap already chosen. It is to expose the decisions for which the preceding mathematics prepares us. Each direction below has a different notion of leverage and a different risk of becoming formalism without explanatory gain.
20.1 Direction one: classify observation and access growth
The functions , , and already separate regular, square-length, singleton, Dyck, and controlled-stack families. The next questions are structural.
Which monotone two-parameter functions are realizable? Does finite presentation impose recursive, algebraic, submultiplicative, or affine constraints? Can profile equivalence classify meaningful dynamic families, or is it too coarse? Which transformations preserve asymptotic regimes?
This direction offers near-term theorem leverage because it has explicit families, candidate inequalities, and executable finite oracles. Its risk is cataloguing formulas without discovering constraints that explain them.
Would you prioritize a realizability theorem, a transformation calculus, or a taxonomy of sharply separated examples? A realizability theorem is deeper but may be difficult; a transformation calculus may immediately support later work; examples can reveal the right conjectures but can also become a census without a theory.
20.2 Direction two: uniformization cost
Fixed cuts admit exact minimal layered recognizers and one-way protocols. The sewing theorem says literal compatible data determine a language. The plateau theorem says one global adjacent plateau yields a uniform DFA. Between these facts lies a quantitative question:
How much additional state, access depth, exposure, or presentation structure is needed to turn a family of nonuniform finite observations into one uniform recognition dynamic?
The square-length example proves that fixed-cut width alone gives no bound. Controller-specific affine access bounds suggest that finite presentation may restore control in restricted families. A successful theory would connect nonuniform automata, branching programs, streaming, learning, and residual completion.
Its risk is that “uniformization cost” may split into several inequivalent notions. That is not fatal if the book states which operational model each cost belongs to.
20.3 Direction three: presentation transformations
Fixed-envelope coding, CFG normalization, and controller products all change a presentation while preserving an observation. They incur different costs: alphabet size, block width, controller states, action macros, observation lag, and residual refinement.
A transformation theory could ask for functorial laws and optimal tradeoffs. When does a recoding preserve growth up to a sharp modulus? When can presentation refinement increase access without increasing residual count? Which quantities are invariants of language, dynamic, or presentation class?
This direction stays close to constructive algorithms and may yield practical compiler guidance. Its risk is optimizing representations before the right equivalence notion has been chosen.
20.4 Direction four: partial-data gluing obstructions
Total compatible cut fields sew trivially once the diagonal law is imposed. A nontrivial local-to-global theory needs less complete data or stronger global requirements.
Promising variants include:
partially specified tables whose overlaps may conflict;
local fields required to arise from a fixed presentation doctrine;
approximate or noisy observations with error bounds;
local controllers whose actions cannot be made globally natural; and
cohomological or sheaf-like obstructions that detect more than the total Boolean transport identity.
This direction most closely resembles a genuine sewing obstruction. Its risk is importing sophisticated language before a small example exhibits a real failure that the machinery explains.
Before adopting sheaf or cohomological terminology, construct the smallest partial recognition dataset whose every local piece is realizable but whose whole is not. What information lives on overlaps, and what exactly fails to glue? If no such example survives scrutiny, the abstraction has not earned its place.
20.5 Direction five: difficult automata and complexity problems
The program should eventually justify itself outside its internal architecture. Candidate applications include lower bounds where finite residual shadows, access delay, or presentation-generated actions expose a resource missed by ordinary state complexity.
Promising neighbors include nonuniform versus uniform automata, streaming space, communication complexity, profinite methods, symbolic dynamics, subword complexity, and visibly pushdown systems. An analogy counts as progress only when it transfers a theorem, inequality, construction, or counterexample.
The standard for entering this phase should be high: the FPRD invariant must solve, sharpen, or reorganize an external problem more effectively than its native tools.
20.6 Direction six: broader finitely presented dynamics
The architecture has five pieces: finite presentation, a generated dynamic, finite observations, completion, and readout. This form is not specific to languages and may apply to other finitely presented systems. But broadening too early would erase the discipline supplied by words, residuals, and exact membership.
A broader application should be attempted only when it carries a precise functor, invariant, representation theorem, or counterexample out of language recognition. “This resembles dynamics” is not enough.
20.7 A current judgment
The narrowest complete next mathematical path is:
finish the general laws of access and their classical ownership;
establish the singleton, square, and bare-Dyck families completely;
develop transformation laws, beginning with complement, Boolean row bounds, and coding moduli;
then treat depth-threshold and arbitrary finite-controller access as a controlled-family extension.
This path has direct proofs, independent computations, and clear counterexamples. It earns a classification vocabulary before attempting the more speculative partial-gluing or broader-dynamics programs.
The judgment is provisional. A decisive comparator theorem, counterexample, or human research-direction intervention may change it. That possibility is not a weakness in the plan; it is why the book was written.
Example 20.1 (What a theorem-sized frontier choice looks like). “Study growth” is too broad to guide a proof. One theorem-sized version is: every language controlled by a fixed finite balanced controller has access radius bounded affinely in the future horizon, with constants computable from the controller. It names a domain, invariant, quantitative conclusion, and source of constants. A counterexample with superlinear access inside that domain would decisively refute it; a proof would transfer finite presentation into a uniformization constraint.
Exercise 20.2. Choose two frontier directions and write the strongest case for each. Name one theorem-sized success criterion and one failure signal that should cause the program to stop or redirect. There is no unique solution; the backmatter gives a decision rubric. See the .
Solutions and substantial hints
The solutions emphasize the mathematical move each exercise was designed to practice. Several research-facing exercises have rubrics rather than unique answers.
At depth zero, has the accepting row and all , , share the rejecting tail. At depth one the classes are , , and ; at depth two they are , and the remaining tail. Restriction fixes and sends both the class and the depth-two tail to the depth-one tail. The compatible all-tail thread cannot equal : at depth , the state has the visible accepting future .
Map to the exact real . Successor is multiplication by , but complete-match readout requires recognizing whether an arbitrary exact real coordinate is a negative power of two and recovering its exponent before comparing it with . In a realistic real-number model this can be a poor or undefined operation. Requiring a uniform computable readout with a stated cost rules out the encoding as a complete realization.
The residuals are From , letter reaches and reaches failure. From , reaches and reaches failure. Every letter from reaches failure, which loops. The first three states accept because each contains .
The length-two factors of the square characteristic word include , so has four rows. Prefixes and both see through horizon one. Through horizon two they see and , respectively, because is square and is not.
If membership depends only on length, then every entry in an cut has the same total length and therefore the same truth value. Every prefix row is identical. Across different prefix lengths the total changes, so the one-row facts do not identify which future behaviors belong to one uniform state; square lengths give an infinite-residual counterexample.
Choose a shortest access word for state . The states reached after prefixes of lengths are distinct: if two repeated, delete the intervening loop and obtain a shorter access word. There are distinct states, so . The automaton need not be minimal; only the chosen word is shortest.
Take both component DFAs to be the two-state parity machine with the same start and transition. Only diagonal pairs and are reachable in the four-state product. If both accept , their intersection is again the even-length language.
The residual after depends on . There are three residuals, cycled by , and the class accepts the empty future. Prefixes in different congruence classes are separated by a suffix making exactly one total congruent to one, so Myhill–Nerode gives the three-state lower bound.
For distinct , use future . The word is accepted. The word can have the required form only if . Thus every two distinct pre-marker prefixes have different residuals.
Before saturation, distances through to the singleton give live rows, while more distant live prefixes and prefixes past have the same reject-all bounded row, so the total is . At , all live singleton residuals plus failure are visible. If , the accepting row first appears at prefix . Once the horizon sees every live residual, failure first appears at prefix .
Let , , and . Both prefixes reject at horizon zero, so . Their -children are and ; the first accepts and the second rejects. At horizon one the parents were already distinguishable by future , exactly as the map requires.
Every subset of a discrete three-point space is clopen. Only and the whole set are clopen in the indiscrete space. In with the subspace topology, each component and its complement are open, so , the whole space, and the two components are clopen.
A neighborhood of any point omits only finitely many elements. An injective sequence visits each omitted element at most once and hence is eventually in the neighborhood. It converges to every point. In a Hausdorff space, distinct limits have disjoint neighborhoods, which a sequence cannot eventually occupy simultaneously.
Given a finite coordinate prescription, copy those bits and set every other coordinate to zero. The resulting sequence is eventually zero and belongs to the requested cylinder. Hence every cylinder meets the set, so its closure is all of .
The cylinder is the intersection of the three coordinate conditions , , , each clopen because the coordinate is discrete. Its complement is the union of the three cylinders requiring the corresponding coordinate to be .
Every finite-coordinate cylinder has an eventually-zero extension, so the set is dense. A sequence with infinitely many ones is a limit of its finite truncations, all eventually zero, but is not itself eventually zero. Thus the set is not closed and its closure is the full product.
The product contains all constant-tail encodings of subsets of , has arbitrarily large finite sets of distinct prefixes, and by diagonalization is uncountable. Compactness recovers finite-subcover and finite-intersection arguments. It does not permit enumeration, bound cardinality, or decide membership algorithmically.
The levels are , , , and , with deletion of the last bit. The requested thread begins .
For example choose , , and any longer words. Deleting the last bit of gives , not , so the first bond already fails.
At each horizon the tail row rejects every visible future, so each fixed word coordinate has value zero once it becomes visible. The associated language is empty. For any fixed , membership in is zero for all , proving coordinatewise convergence to .
A returned suffix is exact semantic data; empty-suffix acceptance is an observation; a labeled call is presentation data; a shortest separator belongs to the semantic residual but measures observation depth; an integer counter is a coordinate; and a restriction map belongs to the observational system. The overlaps are legitimate when the same object mediates layers, but its role must be named.
The induction step gives . If every word of has length at least one, a contribution from has length at least plus the minimum length of . Terms with cannot affect words through length , so unfoldings are a safe general bound.
On pairs of language behaviors define . The first coordinate copies with zero delay, so need not contract the maximum metric. But prefixes both coordinates and contracts by .
In the first alternative, the frame after is ; the frame after is . The material before a call has already executed when the call returns, so including it would run it twice and misrepresent continuation order.
Distribute into . The single source occurrence of is duplicated into two target occurrences while the positive relational language is preserved. Both target labels map to the one source label in the origin relation.
At length zero the stack height is zero. An opener raises height; a closer at height zero fails. For each word, scan left to right, rejecting the first underflow. A live prefix of height is completed by closers. This rule classifies all fifteen words through length three without a separate case list.
Use the canonical closer word for the first stack. It accepts there. At the first top-down type disagreement the other stack mismatches; if one stack ends first it underflows or remains nonempty. The closer length is the first stack’s height, at most .
For , the counts through are . For they are ; for , . In each case the extra class merges failure with stacks too deep to close within the horizon.
Choose infinite stacks and . Once the quotient sees the second stack position, their finite stack prefixes differ and canonical closers separate them. At rank one every stack word is determined solely by its height, leaving one infinite direction.
With , the shortest crossing balanced word is , of length four; is the shortest nonempty balanced word that stays shallow. Horizon zero sees only acceptance, but no accepted threshold word occurs before length four, so the accepting row first appears there.
Use live heights and failure. An opener from height two fails; a closer from zero fails; otherwise open increments and close decrements. Only height zero accepts. The farthest live state is reached in two steps, so accessibility degree is two. Heights are separated by closer words of lengths , giving distinguishability degree two.
For example use , the three standard basis rows, and . They are distinct and the basis rows give rank three. A deterministic table state must retain all five different future functions, including the zero row.
A Boolean rank-one factor is a rectangle of ones. A rectangle containing two diagonal positions and also contains off-diagonal positions and , impossible in the identity. Thus each factor covers at most one diagonal one, requiring factors; the singleton rectangles give the matching upper bound.
Use prefixes reaching heights and canonical futures . Their live submatrix is identity when rows and columns are paired by required closing length. Add an underflow prefix such as ; its row is all zero and increases deterministic row count without increasing field rank.
Index rows and columns by . The matrix is the identity. Every row is distinct, so Alice needs four possible messages, or two bits, and sending her input achieves the bound.
Every concatenation in the cut has length , so all entries share the truth value of “ is square.” Yet prefixes of lengths are separated by extending to a square whose next gap exceeds . The fixed cut is nonuniform in the lengths and does not provide one finite state space.
Let prefixes have different rows and choose a suffix on which they differ. If one deterministic exact streaming configuration followed both prefixes, continuing with the same would produce the same output, a contradiction. Randomization could map both prefixes to overlapping distributions, and error would weaken the required separation.
The chain is Literal labels identify , then , rather than merely asserting that some row of the next matrix has the same values.
Require and transport it to . Separately require transport from to . Each isolated cut assignment is a legal Boolean table, but their shared overlap entry receives both values, so the partial family cannot glue.
Assume . Plateau bijectivity upgrades this to . For every , the word has length at most , hence . Horizon alone would control only futures of parent length at most and might not include .
For each unordered pair of distinct minimal states choose a shortest distinguishing word. There are finitely many pairs, so the maximum separator length is finite. At horizon all residuals are distinct, giving ; no later quotient can exceed the exact residual count.
Regularity gives a uniform access bound from shortest paths in the minimal DFA. Conversely, implies . A bounded nondecreasing integer sequence has an adjacent plateau; the global plateau theorem, not the finite prefix count alone, converts that equality into a right congruence and regularity.
For , accepts at lengths one and six, so both horizon-zero rows appear by radius one; parity also exposes accepted and rejected rows by radius one. Their intersection accepts only length six, so its accepting row first appears at radius six. Product bounds count possible tuples of rows but do not bound where a particular joint tuple first occurs.
At rank one, and . At rank two, while access has the same linear law. Observation count detects typed branching exponentially; access records only the depth needed to reach each stack.
Epsilon gives both diagonal distances zero. The one-letter neutral toggles the states, so and The empty-stack arrivals from the start are and . At horizon zero the two semantic rows are rejection and acceptance, first represented at lengths zero and one, so . If neither state accepted, both raw coordinates would have the same all-false semantic row. Its earliest representative is epsilon at length zero; maximizing raw arrivals first would incorrectly report one.
Here From , the rejected continuations are Their different longest members distinguish the three states. All three forbidden words underflow at their last closer, so those distinctions disappear after intersection with . The balanced words and first reach and in lengths two and four; reaches the accepting sink in length four. Thus the entry diameter is four. The one-state universal controller presents the same Dyck trace with diameter zero, so .
The empty continuation distinguishes epsilon from a nonempty word such as : epsilon is accepted, while is nonempty and never reaches height three. The same empty continuation distinguishes that below-threshold class from a hit word such as : the hit word is accepted. A nonempty balanced continuation such as also illustrates why the middle class remembers a future obligation: appended after any below-threshold balanced history, it reaches the threshold.
Epsilon arrives at length zero. The shortest nonempty balanced word is , so the middle class arrives at length two. Reaching height three requires at least three openers and three matching closers; realizes length six. Thus , while already differs in current acceptance from epsilon and gives .
At top level, epsilon is the undecided class. The word makes the first primitive component succeed and arrives at length two. The word is longer than but reaches only height two, so it fails the height-four test and supplies the permanently rejecting class at length four.
Immediately after the first opener, the empty factor arrives at zero. The factor is nonempty but reaches only relative height one, so it supplies the low class at length two. Reaching absolute height four from the current height one requires relative height three; is the shortest balanced factor that does so and has length six. Appending the immediate closer distinguishes the empty factor from : is the special accepted first component, whereas is a rejected below-threshold component.
The legal entry sources are and . From , the four words end at , respectively. The first arrivals of the three possible endpoints are therefore . From , they end at , so all endpoints appear by length four. Maximizing the finite shortest distances over both entry sources gives six.
If a controller with fewer than five states had cost at most four, add unreachable self-loop states until the declared state set has size five. Neither its Dyck trace nor its legal-entry distances change. It would then satisfy the five-state constraint system, contradicting unsatisfiability. This padding argument depends on the encoding permitting unused states.
A strong answer names the domain, proposed invariant or construction, a theorem-sized outcome, nearest comparator, required evidence, and a failure signal. Prefer directions whose negative result would also teach something. Reject choices justified only by fashionable vocabulary or by the existence of available machinery.
Notation and dependency guide
| Symbol | Meaning and first substantial use |
|---|---|
| Finite input alphabet; Chapter 2. | |
| Finite words, including . | |
| Left residual ; Chapter 2. | |
| Infinite Boolean Hankel entry . | |
| Future row of prefix on all futures through length . | |
| Set of all horizon- future rows. | |
| Cardinality of . | |
| Rows represented by prefixes through length at horizon . | |
| Cardinality of . | |
| Least prefix radius representing every member of . | |
| Largest shortest balanced-controller distance sourced at a legal segment entry. | |
| Least entry certificate over regular controllers with fixed Dyck trace . | |
| Access radius of semantic right residuals restricted to balanced histories and tests. | |
| Supremal balanced-factor residual access over all legal segment-entry histories. | |
| Minimum controller state count among fixed-Dyck-trace presentations with entry diameter at most . | |
| Length of the first balanced word whose acceptance differs from epsilon. | |
| Literal residual orbit . | |
| Observational completion . | |
| Singleton continuation state in the running family. | |
| Generalized Dyck language with bracket types. | |
| Dyck residual belonging to finite typed stack . | |
| Irreparable failure state or empty residual, by context. | |
| Literal cut table on prefixes of length and futures of length . | |
| Restriction or bonding map from fine to coarse observation. | |
| Inverse limit: compatible threads across all finite levels. |
The core dependency route is
How to read mathematical provenance
The book uses several kinds of mathematical statement. Their differences are part of the content.
- Classical theorem.
-
A result established in prior literature, such as Myhill–Nerode, compactness of countable finite products, or the Chomsky–Schützenberger representation. The exposition may give a new proof or emphasis without claiming the result.
- Imported framework.
-
Existing mathematics adapted to the recognition setting, such as partial-function algebra, relational least fixed points, weighted Hankel methods, or communication matrices.
- FPRD synthesis.
-
A recognition-specific assembly of ingredients with explicit presentation, observation, action, and readout interfaces.
- Written FPRD result.
-
A claim with a complete or informal written proof in the lab. It remains subject to ordinary mathematical review and is not called externally peer reviewed.
- Candidate result.
-
A formula or theorem under active proof audit. It may have independent finite evidence without yet carrying an unbounded proof at publication standard.
- Finite experiment.
-
A statement proved by exhaustive or sampled computation on an explicitly bounded domain. It can refute an unbounded conjecture but cannot establish one by extrapolation.
- Research analogy.
-
A structural comparison used to generate questions, such as the Robson globalization analogy. It transfers no theorem until a precise map and hypotheses are supplied.
- Open question.
-
A decision or mathematical problem whose answer is not represented as known.
The public claim ledger and executable evidence remain available in the FPRD repository. They are not reproduced as the narrative spine of this textbook because evidence status and mathematical explanation answer different reader needs.
Example 20.3 (One formula, several possible statuses). Checking an access formula through horizon two hundred establishes a finite experiment. A proof from consecutive-square gaps may establish the formula for every horizon. Finding the same formula in earlier literature transfers ownership. None of these facts follows from the other two.