Deciding FO2 Alternation for Automata over Finite and Infinite Words
Abstract
We consider two-variable first-order logic $\text{FO}^2$ and its quantifier alternation hierarchies over both finite and infinite words. Our main results are forbidden patterns for deterministic automata (finite words) and for Carton-Michel automata (infinite words). In order to give concise patterns, we allow the use of subwords on paths in finite graphs. This concept is formalized as subword-patterns. For certain types of subword-patterns there exists a non-deterministic logspace algorithm to decide their presence or absence in a given automaton. In particular, this leads to $\mathbf{NL}$ algorithms for deciding the levels of the $\text{FO}^2$ quantifier alternation hierarchies. This applies to both full and half levels, each over finite and infinite words. Moreover, we show that these problems are $\mathbf{NL}$-hard and, hence, $\mathbf{NL}$-complete.
- Publication:
-
arXiv e-prints
- Pub Date:
- May 2021
- DOI:
- 10.48550/arXiv.2105.09291
- arXiv:
- arXiv:2105.09291
- Bibcode:
- 2021arXiv210509291H
- Keywords:
-
- Computer Science - Formal Languages and Automata Theory;
- Computer Science - Logic in Computer Science;
- 68Q45 (Primary) 03D05;
- 68Q17 (Secondary);
- F.4.1;
- F.4.3