The value of a De Morgan gate #
A De Morgan operation has at most two arguments, so its value is a function of two bits.
Op.value op a b is that function, with the arguments beyond the arity of op ignored
(Op.value_congr). It agrees with the Boolean interpretation of op
(Op.interpretation_eq_value), and gives evaluators and encoders of gate lists one shared
semantics of the gates.
Main definitions #
Cslib.Circuits.Boolean.Op.value: the value of a De Morgan gate on its first two arguments.
Main results #
Cslib.Circuits.Boolean.Op.value_congr: the value ignores the arguments beyond the arity.Cslib.Circuits.Boolean.Op.interpretation_eq_value: the Boolean interpretation of a gate is its value on its first two arguments.