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 #
Cslib.Complexity.CircuitValue: the instances whose circuit outputs true on the input.Cslib.Complexity.encCircuitValue: the encoding of instances.
Main results #
Cslib.Complexity.CircuitValue.computableInPolyTime_eval: evaluation is polynomial-time.Cslib.Complexity.CircuitValue.mem_P: the circuit value problem is inP.
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.
Evaluating a circuit on an input is polynomial-time, on the encoding encCircuitValue.
The circuit value problem is in P, for the binary encoding of circuits followed by the
input bits.