Documentation

CslibFrontier.Computability.Complexity.Problems.CircuitValue

The circuit value problem #

The circuit value problem asks whether a Boolean circuit outputs true on a given input Arora and Barak, Section 6.1. Here an instance is a De Morgan circuit with one output and n inputs together with an input in BitString n, so every instance is well formed. It is encoded by the binary encoding of the circuit (Cslib.Circuits.Boolean.encCircuit: the number of inputs in unary, the gates in program order with wire numbers in binary, the output wire) followed by the input bits.

The circuit value problem is in P (Cslib.Complexity.CircuitValue.mem_P): the decider evaluates the gate list with the polynomial-time evaluator Cslib.Circuits.Boolean.computableInPolyTime_evalOutput. Ladner showed that it is P-complete under logarithmic-space reductions [Lad75b]; this is proved in CslibFrontier/Computability/Complexity/Problems/CircuitValue/Completeness.lean (Cslib.Complexity.CircuitValue.logSpaceComplete).

Main definitions #

Main results #

References #

The circuit value problem: the De Morgan circuits with one output, each with an input of its arity, whose output on that input is true.

Instances of the circuit value problem encoded by the binary encoding of the circuit (encCircuit), followed by the input bits.

The circuit value problem is in P, for the binary encoding of circuits followed by the input bits.