Project: Optimal Circuit Synthesis with SAT · Circuits as Satisfying Assignments
Lesson 1
Fix a target function \(f\) and a candidate size \(s\). We construct a CNF formula \(F_{f,s}\) that is satisfiable exactly when a circuit with \(s\) gates computes \(f\).
A satisfying assignment must describe three things:
- the two predecessors of every gate;
- the four-bit operation of every gate;
- the value of every gate on every input assignment.