A Generic Polynomial Time Approach to Separation by First-Order Logic Without Quantifier Alternation

Abstract

We look at classes of languages associated to fragments of first-order logic B??, in which quantifier alternations are disallowed. Each such fragment is fully determined by choosing the set of predicates on positions that may be used. Equipping first-order logic with the linear ordering and possibly the successor relation as predicates yields two natural fragments, which were investigated by Simon and Knast, who proved that these two variants have decidable membership: "does an input regular language belong to the class ?". We extend their results in two orthogonal directions. - First, instead of membership, we explore the more general separation problem: decide if two regular languages can be separated by a language from the class under study. - Second, we use more general inputs: classes ? of group languages (i.e., recognized by a DFA in which each letter induces a permutation of the states) and extensions thereof, written ?^+. We rely on a characterization of B?? by the operator BPol: given an input class ?, it outputs a class BPol(?) that corresponds to a variant of B?? equipped with special predicates associated to ?. The classes BPol(?) and BPol(?^+) capture many natural variants of B?? which use predicates such as the linear ordering, the successor, the modular predicates or the alphabetic modular predicates. We show that separation is decidable for BPol(?) and BPol(?^+) when this is the case for ?. This was already known for BPol(?) and for two particular classes of the form BPol(?^+). Yet, the algorithms were indirect and relied on involved frameworks, yielding poor upper complexity bounds. In contrast, our approach is direct. We work only with elementary concepts (mainly, finite automata). Our main contribution consists in polynomial time Turing reductions from both BPol(?)- and BPol(?^+)-separation to ?-separation. This yields polynomial time algorithms for several key variants of B??, including those equipped with the linear ordering and possibly the successor and/or the modular predicates

    Similar works