Documentation

DescriptiveComplexity.Problems.HornSat.Defs

HORN-SAT: definition #

The problem HORN-SAT, over the same vocabulary FirstOrder.Language.sat as SAT: a CNF structure is a yes-instance iff every clause contains at most one positive literal (DescriptiveComplexity.AtMostOnePositive) and the CNF is satisfiable (DescriptiveComplexity.HornSatisfiable, bundled as DescriptiveComplexity.HORNSAT).

Folding the Horn condition into the yes-instances rather than into the vocabulary is the same choice as for 3SAT and its width bound (DescriptiveComplexity.WidthAtMostThree): it keeps HORN-SAT a decision problem on arbitrary Language.sat-structures, so that it lives in the same catalog and composes with the same reductions.

Horn formulas are the tractable case of propositional satisfiability – a satisfiable Horn formula has a least model, computed by unit propagation in linear time (Dowling & Gallier 1984) – and HORN-SAT is the canonical complete problem for polynomial time. The corresponding hardness statement, machine-free and one level below the Cook–Levin discharge, is in DescriptiveComplexity.Problems.HornSat.Hardness.

Every clause of a Language.sat-structure has at most one positive literal: any two variables occurring positively in the same clause coincide.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    Dependency graph

    A Language.sat-structure is a yes-instance of HORN-SAT if every clause has at most one positive literal and the CNF is satisfiable.

    Equations
    Instances For
      Dependency graph

      Isomorphism-invariance and the bundled problem #

      Dependency graph

      HORN-SAT, as a problem on Language.sat-structures: the same vocabulary as SAT, with the Horn condition folded into the yes-instances.

      Equations
      Instances For
        Dependency graph