Documentation

CslibFrontier.Computability.Complexity.Problems.TwoSAT

2SAT #

Cslib.Complexity.TwoSAT is the set of satisfiable formulas in conjunctive normal form whose clauses have at most two literals, over variables numbered by ℕ and encoded as for SAT (Cslib.Complexity.encCNF) [Pap94a]. A formula outside TwoSAT has a clause of width greater than two, the empty clause, or a variable x with a path from x to ¬x and one back in its implication graph (Cslib.Complexity.notMem_TwoSAT_iff), by the theorem of Aspvall, Plass and Tarjan (Cslib.Logic.PL.CNF.not_satisfiable_iff_of_width_le_two) [APT79].

Main definitions #

Main results #

References #

The satisfiable formulas whose clauses have at most two literals.

Instances For

    The formulas outside TwoSAT: those with a clause of width greater than two, the empty clause, or a variable x with a path from x to ¬x and one back in the implication graph.