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.

This module re-exports the shared BooleanFunction and BitString vocabulary.

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
      @[simp]

      The De Morgan basis has five operation symbols, counting its two constants.

      @[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.