Boolean circuits #
The De Morgan basis consists of binary AND and OR, unary NOT, and Boolean constants.
Every gate has fan-in at most two, so these are the usual bounded fan-in Boolean circuits
(Program.fanInAtMost_two). Circuit size counts every gate, including constants;
designated output wires are free.
Instances For
@[simp]
The De Morgan basis has five operation symbols, counting its two constants.
@[reducible, inline]
The De Morgan signature.
Instances For
The usual Boolean interpretation.
Instances For
theorem Cslib.Circuits.Program.fanInAtMost_two {n g : ℕ} (p : Program Boolean.signature n g) :
p.FanInAtMost 2
Every De Morgan program has fan-in at most two.
theorem Cslib.Circuits.Circuit.fanInAtMost_two {n o : ℕ} (c : Circuit Boolean.signature n o) :
c.FanInAtMost 2
Every De Morgan circuit has fan-in at most two.