Documentation

DescriptiveComplexity.Problems.OneInSat

1-in-SAT is NP-complete #

Umbrella file for DescriptiveComplexity.OneInSAT, exactly-one satisfiability, deriving NP-completeness from

The gadget normalizes every clause to three slots (DescriptiveComplexity.Problems.OneInSat.Slots), which is what lets one uniform construction handle clauses of width 0, 1, 2 and 3 at once.

1-in-SAT is in NP: it is Σ₁-definable.

Dependency graph

1-in-SAT is NP-hard: 3SAT, which is NP-hard, ordered-FO-reduces to it by the three-slot gadget.

Dependency graph

1-in-SAT is NP-complete, derived from the first-order reductions of this library and the Cook–Levin theorem.

Dependency graph