Tseitin Encodings for Boolean Circuits

Use auxiliary variables to express gate semantics with a linear-size CNF and distinguish projected solutions from arbitrary assignments.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Give each gate output its own symbol
  2. Projection recovers the intended solutions

Give each gate output its own symbol

For \(z=a\land b\), use the clauses

\[ (\neg z\lor a),\quad(\neg z\lor b),\quad (z\lor\neg a\lor\neg b). \]

The first two enforce the requirements when \(z\) is true. The third forces \(z\) to be true when both inputs are true. Encode each gate in a fixed finite basis by a constant number of clauses and require the final output variable where appropriate. Any satisfying assignment then gives consistent values for all wires.

Projection recovers the intended solutions

Every input satisfying the original circuit extends to the unique correct wire assignment. Conversely a satisfying clause assignment projects to an input on which the circuit accepts. This is different from expanding the formula into clauses using only its original variables, which can create exponentially many terms. The construction reuses circuit sharing. SAT reductions start from Boolean constraints to construct another decision problem.[1][2]

References

  1. Michael Sipser, Introduction to the Theory of Computation ↩
  2. MIT OpenCourseWare, Automata, Computability, and Complexity: Lecture Notes ↩