English

Hereditary First-Order Logic: the tractable quantifier prefix classes

Logic 2025-07-04 v2 Computational Complexity Discrete Mathematics Logic in Computer Science

Abstract

Many computational problems can be modelled as the class of all finite structures A\mathbb A that satisfy a fixed first-order sentence ϕ\phi hereditarily, i.e., we require that every (induced) substructure of A\mathbb A satisfies ϕ\phi. We call the corresponding computational problem the hereditary model checking problem for ϕ\phi, and denote it by Her(ϕ)(\phi). We present a complete description of the quantifier prefixes for ϕ\phi such that Her(ϕ)(\phi) is in P; we show that for every other quantifier prefix there exists a formula ϕ\phi with this prefix such that Her(ϕ)(\phi) is coNP-complete. Specifically, we show that if QQ is of the form \forall^\ast\exists\forall^\ast or of the form \forall^\ast\exists^\ast, then Her(ϕ)(\phi) can be solved in polynomial time whenever the quantifier prefix of ϕ\phi is QQ. Otherwise, QQ contains \exists \exists \forall or \exists \forall \exists as a subword, and in this case, there is a first-order formula ϕ\phi whose quantifier prefix is QQ and Her(ϕ)(\phi) is coNP-complete. Moreover, we show that there is no algorithm that decides for a given first-order formula ϕ\phi whether Her(ϕ)(\phi) is in P (unless P==NP).

Keywords

Cite

@article{arxiv.2411.10860,
  title  = {Hereditary First-Order Logic: the tractable quantifier prefix classes},
  author = {Manuel Bodirsky and Santiago Guzmán-Pro},
  journal= {arXiv preprint arXiv:2411.10860},
  year   = {2025}
}

Comments

The second version focuses on hereditary first-order logic, and for a better streamlined presentation, we removed all content on extensional ESO which will be submitted elsewhere. Version 2 also contains new results (Section 4)

R2 v1 2026-06-28T20:02:23.198Z