Formal languages and finite observation
Dyck residuals and observational exposure
A generalized Dyck prefix is remembered exactly by its unmatched stack—or by failure. Its finite quotients illustrate a broader theorem: an action can be represented at every finite resolution precisely when its loss of observational depth is uniformly bounded.
FPRD-D18 · definition
The exact state of a Dyck prefix
Fix bracket types and any finite set of neutral symbols. A live state is a finite word listing unmatched opener types from bottom to top. Add one absorbing failure state . An opener pushes its type; a matching closer pops; a mismatching or underflowing closer enters failure; a neutral symbol does nothing.
The future language of a live stack is, while . If, its canonical completion is.
FPRD-T34 · theorem
Stacks are exactly the left residuals
Theorem. Every left residual of the generalized Dyck language is exactly one or . All these residuals are reachable and pairwise distinct.
Reading a prefix from the empty stack gives the residual attached to the resulting state. Conversely, every stack is reached by its sequence of openers. Its canonical completion accepts from that stack and separates it from every incompatible state.
Let be the shortest length of a word on which two future languages disagree. For distinct live stacks,
Thus is an ultrametric. Openers contract distances by one half, neutrals preserve them, and closers expand them by at most two.
For at least two bracket types, the symbol actions give the faithful polycyclic transition monoid in the stated execution convention. The one-type case is the bicyclic specialization and generates no zero.
FPRD-T35 · theorem
Finite shadows recover the exact dynamic
At depth , retain every stack of height at most and merge all deeper stacks together with failure into one tail class:
Theorem. The inverse limit of these finite shadows contains exactly the finite live stacks and failure. It introduces no infinite-stack states.
A coherent thread either eventually names one finite stack or remains in every tail, which is failure. A word of length acts naturally from level to level. The shift cannot generally be removed: at level , a stack of height and failure coincide, but one matching closer distinguishes their images.
FPRD-D19 · definition
How much extra observation does an action expose?
Let be compact Hausdorff and let be compatible, continuous surjections onto finite discrete sets that jointly separate points. The tower is complete: its coherent finite views reconstruct exactly.
An action has exposure at most when, for every,
In plain terms, predicting the output through level requires no more than additional levels of input information.
An example beyond languages: reading binary digits
Think of an infinite stream of binary digits, starting at the least significant digit. These streams form the 2-adic integers . Write . Level reads its lowest digits: . Level zero reads none.
| Operation | Rule | Extra levels needed |
|---|---|---|
| Add one | Exactly 0 | |
| Remove the lowest digit | Exactly 1 | |
| Keep even-position digits | No fixed finite number |
Add one. Congruence modulo is preserved by addition. Even an arbitrarily long carry does not change how many input digits determine these output digits. Exposure measures required information, not execution time.
Shift. Agreement on the lowest bits gives agreement on the lowest shifted bits. Zero exposure fails: 0 and 2 agree modulo 2, but shift to 0 and 1.
Select digits. For , the first output bits use input positions . Reading bits suffices, so the map is continuous. But any proposed fixed exposure fails: take . Since , the inputs agree modulo ; their outputs differ by , visible modulo .
The observation scale matters. If level instead reads digits, the same selection map has exposure exactly one: the next level reads enough bits. Zero fails at level 1 with inputs 0 and 4, whose outputs are 0 and 2. This changes the meaning of a level, not the operation.
Why the setup qualifies. Binary streams form the compact Hausdorff product . Truncations are continuous surjections to finite sets; they commute, separate points, and coherent truncations determine one stream. The exponentially reindexed tower has the same properties. These maps are self-maps, not asserted to be algebra homomorphisms.
Continuity gives a finite input horizon for each output horizon. Finite exposure requires one fixed number of extra levels to work at every horizon. This example explains the existing definition; no claim of a new theorem or external review is made.
FPRD-T36 · theorem
Finite exposure and shifted finite actions are equivalent
Theorem. An exact action has exposure at most exactly when there is a unique compatible familysatisfying. Conversely, every such shifted-natural family reconstructs a unique continuous action on .
Exposure makes the finite factor map well-defined; surjectivity of makes it unique. In the other direction, shifted naturality produces a coherent output thread, and completeness reconstructs its unique exact state.
Exposure bounds may be padded, and composition adds them. For the shortest-observation ultrametric, exposure is equivalent to a-Lipschitz bound.
A continuous action need not have one finite exposure bound valid at every level. The theorem characterizes bounded exposure, not all continuous maps of inverse limits.
FPRD-T37 · theorem
Language derivatives give the sharp calibration
Observe a language by its membership table on words of length at most . For a fixed word, the left derivative is.
Theorem. On the carrier of all languages, has exposure at most, and this universal bound is sharp.
The membership table of through length determines the table of through length. Sharpness follows from and the empty language.
The completed derivative orbit of any language has the same finite images as its literal orbit and is reconstructed from them. For a regular language the tower eventually stabilizes to its finite residual automaton.
Universal sharpness on all languages does not imply sharpness on every selected invariant closure.
Scope
- The residual calculation is for generalized Dyck languages, not arbitrary context-free languages.
- Each finite shadow is an approximation; exact semantics requires the complete inverse limit.
- Exposure is relative to a chosen observation tower.
- No external or specialist review of these FPRD results is recorded.