English

Deciding DFA-Primality is NP-Hard

Formal Languages and Automata Theory 2026-05-11 v1

Abstract

A DFA A\mathcal{A} is composite if there exist DFAs A1,,At\mathcal{A}_1,\dots,\mathcal{A}_t with L(A)=i=1tL(Ai)\mathcal{L}(\mathcal{A}) = \bigcap_{i=1}^{t} \mathcal{L}(\mathcal{A}_i) such that each Ai\mathcal{A}_i has strictly less states than the minimal DFA deciding L(A)\mathcal{L}(\mathcal{A}). Otherwise, it is prime. Prime-DFA is the problem of deciding primality for a given DFA. It was defined by Kupferman and Mosheiff in 2015 and it was shown to be NL-hard and in ExpSpace. This paper proves the NP-hardness of Prime-DFA, thereby making the first progress in closing this doubly-exponential gap. It proves the NP-hardness by a reduction from the propositional logic satisfiability problem. The correctness of the reduction relies on an involved characterization of primality for a class of DFAs which contains those that can occur in the reduction.

Cite

@article{arxiv.2605.07031,
  title  = {Deciding DFA-Primality is NP-Hard},
  author = {Daniel Alexander Spenner},
  journal= {arXiv preprint arXiv:2605.07031},
  year   = {2026}
}

Comments

39 pages, 4 figures, to be published in 53rd EATCS International Colloquium on Automata, Languages, and Programming (ICALP 2026)

R2 v1 2026-07-01T12:56:31.834Z