Trace theory and parameterized counting
Trace counting under a small independence cover
Removing a small vertex cover from an independence graph leaves action types that cannot occur together in one concurrent step. That decomposition gives an exact fixed-parameter algorithm for one height-one trace layer. It does not extend to arbitrary traces: one commuting pair already supports the published-hardness construction for DFA trace counting.
The support cover is a concurrency parameter
A concurrent alphabet consists of an alphabet and a symmetric, irreflexive independence relation. Adjacent independent letters may commute. Their equivalence classes are Mazurkiewicz traces.
The full counting problem also receives a length, encoded in unary, and asks how many traces contain at least one accepted word of that length. The unary convention is part of the published complexity statement, not a harmless implementation detail.
View as an undirected graph and let
be its minimum vertex-cover number. If is a cover, thencontains no independent pair. Consequently a simultaneous independent step contains an arbitrary clique from and at most one letter from .
FPRD-SH-B11 · sharp negative boundary
Full trace counting is hard at cover number one
De Colnet, Meel, and Mathur prove exact DFA trace counting-hard in their Theorem 3.2, by a parsimonious reduction from. Their Theorem 3.1 separately proves membership in. The reduction uses the fixed alphabet
Corollary. Exact DFA trace counting is-complete when the independence graph has one edge, vertex-cover number, independence width two, maximum degree one, and matching number one.
The reduction represents term choice by the position of one among repeateds:
These are presentations of one trace, while the DFA uses the position to test one DNF term. A trace touches the language when at least one presentation selects a satisfied term. Choosing shows more: every accepted word contains exactly one occurrence of the only cover letter.
At no letters commute, traces are words, and length-slice counting for a DFA is polynomial when the length is unary. The exact boundary therefore jumps from polynomial at zero to -complete at one.
FPRD-SH-T34 · exact height-one algorithm
The cover works for one nonempty Foata step
In the Cartier–Foata view of traces, one nonempty height-one step is a clique of the independence graph: its letters occur once, are pairwise independent, and all permutations of form one trace. The trace touches a DFA language when some permutation is accepted.
Theorem. Given an-state DFA and a supplied independence-graph vertex cover of size, all accepted nonempty one-step traces, including their size distribution, can be counted exactly in
time and auxiliary space.
Every clique is uniquely either or for one. For, let be the DFA states reached by all permutations of. Then
For a fixed core letter, the corresponding sets satisfy
Splitting a permutation by its final letter proves the recurrences. A candidate touches the language exactly when its reachable-state set meets the final states. The recurrence may be evaluated for every mask, but only clique masks—and, for, masks compatible with —are counted. There are cover masks, and the core letters are processed one at a time.
FPRD-SH-C19 · exact computational audit
Kernel and direct permutation counts agree
| Control | Coverage | Result |
|---|---|---|
| All four-letter independence graphs | 64 graphs | Pass |
| All complete two-state DFAs and final sets | 65,536 instances | Pass |
| Larger deterministic controls | 2,500 instances | Pass |
| DNF reduction-pattern controls | 4,000 formulas | Pass |
The exact audit compares the kernel dynamic program with direct subset and permutation enumeration. Two complete runs produced byte-identical output.
The missing resource is sequential presentation width
The cover number bounds simultaneous compatibility among action types. It does not bound the number of positions an exceptional occurrence can occupy among repeated dependent actions, or the number of DFA residual states exposed by those positions. The hard construction has only one exceptional occurrence, but it exposes an unbounded term-selection orbit.
Any useful refinement must therefore control a presentation-sensitive quantity—such as the number of distinct DFA residuals realized by the linearizations of a trace prefix—in addition to the independence cover. Another parameter depending only on the fixed alphabet graph cannot change this hardness boundary.
Sources
- Alexis de Colnet, Kuldeep S. Meel, and Umang Mathur, Counting and Sampling Traces in Regular Languages, Proceedings of the ACM on Programming Languages 10 (POPL 2026), article 81, pp. 2352–2379, DOI 10.1145/3776723; arXiv:2512.00314. Theorem 3.1 proves membership in ; Theorem 3.2 is the fixed-alphabet parsimonious reduction used above.
- Volker Diekert and Grzegorz Rozenberg, editors, The Book of Traces, World Scientific, 1995, ISBN 978-981-02-2058-7. This is the classical source for trace and normal-form terminology; it is not a source for the FPRD cover algorithm.