Automata and formal languages
Access in controlled Dyck languages
The number of bounded residual behaviors and the prefix depth needed to encounter them are different invariants. Arbitrary sparse languages can delay access without changing an initial growth profile; finite Dyck controllers instead impose a linear access bound. Optimizing that bound exposes a second question: which cost belongs to the language, and which belongs only to a particular controller?
FPRD-T49 · theorem
Scalar growth does not determine access
For a strictly increasing function, consider
The residuals after the marker are the singleton completions. Put. The first prefix reaching the row has length
while the empty horizon- row first appears at. Together with the pre-marker arrivals, these give
The largest singleton arrival controls access:
Taking and leaves the scalar quotient history through unchanged while making arbitrarily large.
This family is an unrestricted calibration. No finite-presentation or novelty claim is made for an arbitrary schedule.
FPRD-T50 · theorem and algorithm
Finite controllers force linear access
Fix a generalized-Dyck language and a finite total controller. For controller states , let be the shortest length of a balanced word sending to .
If is the shortest prefix reaching stack/controller coordinate, the final unmatched opener gives the exact recurrence
Raw coordinates may merge into the same bounded language row. The correct order is therefore to minimize arrival within each semantic class and only then take the maximum over classes.
Exact access.
Let be the largest finite balanced distance whose source is reachable in the controller's underlying DFA. A height- legal prefix has balanced segments around its unmatched openers. Shortening those segments yields
For every positive horizon there is a finite controller with and access, so the class-wide inequality is pointwise sharp. The witnessing controller may depend on .
FPRD-T51 · theorem
Depth thresholds have exact profiles
Let contain balanced words whose stack reaches height at least, and let be the branch that stays below it. Writing,
A pre-threshold stack of height first becomes visible when a future of length can reach the threshold and return. Post-threshold rows are distinguished by their typed closing words.
At horizon zero, every at-least-threshold language has exactly two rows, yet access equals . Even finite presentations can therefore have a fixed row count and unbounded delay across a family.
FPRD-T52 · theorem
Remove costs created only by the controller
The linear proof does not need every reachable controller state. A balanced segment begins either at the start state or immediately after an opener in a legal Dyck prefix. Let this exact finite set of sources be , and let be its largest finite balanced distance.
Under a surjective morphism of reachable DFAs, legal-entry states map onto legal-entry states and balanced distances cannot grow. Thus ordinary DFA minimization weakly improves the certificate for one regular controller language.
More generally, two regular languages can differ away from the Dyck envelope while defining the same observed language. For a controlled-Dyck language , define
The minimum exists because the candidate values are a nonempty set of natural numbers. Enumerating trace-equivalent controllers approximates it from above, but the proof does not supply a general stopping test.
FPRD-T53 · theorem
Semantic observations bound every presentation
Three language-level quantities expose progressively richer behavior. The first acceptance flip sees only a changed output at an empty-stack boundary. Balanced residual access distinguishes future behavior after balanced histories. Entry-context access repeats that experiment inside every legal unfinished stack.
Although entry contexts are infinite, their relevant completion behavior is finite. In the paired exclusive-or controller, an unfinished stack is summarized by the set of endpoint pairs that some legal completion separates. Finite saturation of controller states and these summaries computes exactly.
Given any controller, minimize its ordinary DFA and call its entry diameter . Then
If the two computable endpoints agree, that presentation is globally optimal throughout its Dyck-trace class. The remaining differenceis nonnegative and computable in the limit from above; equality to zero is semidecidable by endpoint coincidence.
No positive value of is known here, and no theorem says it always vanishes.
FPRD-T54 · theorem
The modulus-three trace has zero sewing defect
In the one-bracket Dyck language, let
where is the length of the terminal run of closing brackets. A three-state controller resets on every opener and counts that final run modulo three. It is state-minimal, but its entry diameter is six.
A nested-context witness forces. An explicit six-state trace-equivalent controller has entry diameter four, closing the sandwich:
The sewing defect is therefore zero, but minimizing state count and minimizing entry access are different optimization problems.
FPRD-T55 · exact finite-state classification
The modulus-three frontier is exact
The natural three-state controller is state-minimal and has entry cost six. The access-optimal six-state controller from the preceding theorem has cost four. Moreover, no controller with at most five states can present the same Dyck trace at cost four. Hence the nondominated state/access pairs are exactly
The five-state exclusion is computer-assisted. The encoding is exact—it closes the balanced-word relation under concatenation and matched wrapping rather than checking words only to a cutoff—and permits unused-state padding. It relies on the trusted Z3 4.16 kernel and was independently cross-checked by CEGIS; no proof-assistant certificate is claimed.
FPRD-T56 · theorem
Modulus two has a single frontier point
For every , define
At modulus two, epsilon reaches the accepted top-level residual. The balanced word is also accepted, while is the first rejected balanced factor. Thus the semantic access is four. The natural two-state controller also has entry cost four, and a one-state controller cannot define this nontrivial trace. Therefore
FPRD-T57 · exact finite-state classification
Modulus four again separates states from access
The semantic entry cost of is six. Its natural state-minimal controller has four states and cost eight, while an explicit six-state controller attains cost six. Exact trace comparison excludes fewer than four states, and exact finite-state search excludes cost six through five states. Consequently
The five-state exclusion is computer-assisted. A generalized closed-relation encoding and an independently implemented one-hot CEGIS encoding both reach unsatisfiable, but both rely on the trusted Z3 kernel rather than a portable formal certificate.
FPRD-T58 · theorem and construction
The access cost is known for every modulus
Fix a legal entry context of positive stack height. A completion either uses the bare terminal descent, which distinguishes one incoming residue, or contains a later opener, which resets the terminal run and erases the incoming residue. The contextual balanced factors therefore form exactly two classes. Their first arrivals give
A uniform controller with statesrecords stack height modulo and whether the current terminal descent plus height has the accepting residue. Balanced factors preserve the height coordinate and realize precisely the two semantic classes. Its entry cost meets the lower bound, so
This construction uses states. It proves optimal access, not minimum state count at that access cost.
FPRD-T59 · theorem and construction
Even moduli admit a smaller optimal controller
When is even, the accepting terminal positions lie on one parity class. This permits a controller with an -cycle and two nonaccepting parity states. On legal prefixes it tracks the cycle position when is odd and the parity of the remaining height otherwise.
The resulting -state controller has trace and entry cost for even , with cost four at modulus two. At modulus four it is isomorphic to the six-state witness above.
This is a constructive upper bound on state count. Minimum optimal-cost state counts remain open beyond moduli two, three, and four; no even/odd minimum-state law is asserted.
What remains open
- Whether for every controlled-Dyck trace.
- Whether has a terminating computation on useful subclasses.
- How the invariant changes under a different Dyck envelope or recoding.
- The minimum number of states needed to attain optimal access beyond moduli two, three, and four.
- No external or specialist review of these FPRD results is recorded.
Sources
- Sparse-marker profile and access proof
- Sparse-marker closure audit
- Controlled-Dyck access proof
- Controlled-Dyck access audit
- Dyck-trace presentation-minimax proof
- Presentation-minimax closure audit
- Terminal-descent tradeoff proof
- Terminal-descent closure audit
- Terminal-descent modulus proof
- Independent modulus challenge
- Terminal-descent modulus closure audit