NAND in the De Morgan basis #
One AND gate followed by one NOT gate implements NAND. The construction uses the existing single-gate and sequential circuit constructors, so its size counts both gates.
Main definitions #
Cslib.Circuits.Boolean.nandCircuit: the two-gate NAND circuit.
Main results #
Cslib.Circuits.Boolean.eval_nandCircuit: Boolean NAND semantics.Cslib.Circuits.Boolean.size_nandCircuit: exactly two gates.
References #
NAND, implemented by one AND gate followed by one NOT gate.
Instances For
@[simp]