Documentation

Cslib.Computability.Circuit.Boolean.Basic

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.

@[reducible, inline]

Boolean functions on n inputs.

Equations
Instances For

    Operations of the De Morgan basis, including constants.

    • const (value : Bool) : Op

      A Boolean constant.

    • not : Op

      Negation.

    • and : Op

      Binary conjunction.

    • or : Op

      Binary disjunction.

    Instances For
      Equations
      Instances For
        @[reducible, inline]

        The De Morgan signature.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          Every De Morgan program has fan-in at most two.

          Every De Morgan circuit has fan-in at most two.