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

生成讲解博客的中文版本

生成AI智能校验的中文版本