Documentation

CslibFrontier.Computability.Complexity.Fagin.SAT

SAT completeness under order-free first-order interpretations #

The reductions in this module use order-free first-order interpretations. Input structures have no built-in order or numeric predicates; these results are order-free variants of the standard ones.

The class cnf.SAT of satisfiable CNF structures has its query language in NP (Cslib.Logic.FO.cnf.queryLanguage_SAT_mem_NP). Every isomorphism-closed class of finite structures whose query language is in NP and which contains every empty structure is order-free reducible to it (Cslib.Logic.FO.cnf.reduces_SAT_of_queryLanguage_mem_NP), and conversely every class order-free reducible to SAT is in NP (Cslib.Logic.FO.cnf.queryLanguage_mem_NP_of_reduces_SAT). So the classes containing every empty structure that are order-free reducible to SAT are exactly the isomorphism-closed classes in NP (Cslib.Logic.FO.cnf.reduces_SAT_iff_isoClosed_and_queryLanguage_mem_NP). Without the hypothesis on empty structures, every isomorphism-closed class in NP is order-free reducible to SAT on the nonempty finite structures (Cslib.Logic.FO.cnf.exists_interpretation_SAT_of_queryLanguage_mem_NP).

This adapts the descriptive form of the Cook–Levin theorem Immerman, Chapter 7. Immerman's structures are ordered and have at least two elements; his reductions are projections; here the structures are unordered and the reductions are first-order interpretations, with quantifiers. Neither statement implies the other. The hypothesis on empty structures comes from the reduction: an interpretation of positive dimension maps every empty input to the empty CNF structure, which is satisfiable. The proofs combine Fagin's theorem (Cslib.Logic.ESO.definable_iff_isoClosed_and_queryLanguage_mem_NP) with the grounding of existential second-order sentences (Cslib.Logic.ESO.Definable.reduces_SAT). The machine-level Cook–Levin theorem, for the encoded problem Cslib.Complexity.SAT under polynomial-time reductions, is proved separately.

Main results #

References #

SAT is in NP: the encodings of the satisfiable CNF structures form a problem in NP.

SAT is NP-hard under order-free reductions, for classes containing every empty structure: every isomorphism-closed class of finite structures whose query language is in NP and which contains every empty structure is order-free reducible to SAT.

SAT is NP-hard under order-free reductions correct on the nonempty structures: for every isomorphism-closed class of finite structures whose query language is in NP, some first-order interpretation maps every nonempty finite structure inside SAT exactly when it is in the class. This is an order-free variant of Immerman, Chapter 7; the structures here have no built-in order, unlike Immerman's ordered structures of at least two elements.

The classes order-free reducible to SAT are the NP classes: a class containing every empty structure is order-free reducible to SAT exactly when it is closed under isomorphism and its query language is in NP.