Documentation

Complexitylib.Circuits.Family.Defs

Boolean circuit families — definitions #

This module lifts the finite Circuit model to one circuit at every positive input length. Because Circuit deliberately requires a nonzero input arity, the answer on the unique empty input is stored separately as emptyOutput.

The first component of circuits n is the number of internal gates. Family size counts internal and output gates, but not primary-input vertices or the free per-edge negation flags.

def Complexity.Circuit.Computes {B : Basis} {N G : } [NeZero N] (c : Circuit B N 1 G) (f : BitString NBool) :

A single-output circuit computes f when its output agrees with f on every input.

Equations
Instances For
    def Complexity.Circuit.ComputesOnLength {B : Basis} {N G : } [NeZero N] (c : Circuit B N 1 G) (f : BoolFunFamily) :

    A circuit computes the length-N member of a Boolean function family.

    Equations
    Instances For

      A nonuniform family of single-output circuits over B.

      At each positive length n, the dependent pair contains an internal-gate count G and a circuit Circuit B n 1 G. The unique length-zero input is handled by emptyOutput, since the base circuit model deliberately requires at least one input wire.

      • emptyOutput : Bool

        The family's answer on the unique length-zero input, stored directly because Circuit requires a positive input arity.

      • circuits (n : ) [NeZero n] : (G : ) × Circuit B n 1 G

        For each positive length n, an internal-gate count G paired with a single-output circuit on n inputs and G internal gates.

      Instances For

        Number of internal gates in the positive-length circuit.

        Equations
        Instances For

          The circuit selected by the family at positive input length n.

          Equations
          Instances For

            The Boolean function family computed by F, including its explicit length-zero answer.

            Equations
            Instances For

              Evaluate a circuit family on the list representation used by languages.

              Equations
              Instances For

                Total circuit size at each length. The separate empty-input answer is a finite exception and is assigned size zero.

                Equations
                Instances For

                  Circuit depth at each length, with depth zero on the empty input.

                  Equations
                  Instances For

                    A pointwise size bound for a circuit family.

                    Equations
                    Instances For

                      A pointwise depth bound for a circuit family.

                      Equations
                      Instances For

                        A family has polynomial size when one natural-coefficient polynomial bounds its size at every input length.

                        Equations
                        Instances For

                          F computes the Boolean function family f at every length.

                          Equations
                          Instances For