Small AC⁰[2] circuits #
Building blocks for circuits over Unbounded.extSignature read with MOD₂ gates,
Unbounded.extInterpretation (modGate 2), the basis of AC⁰[2]:
Unbounded.parityOnCircuit s: oneMOD₂gate on the inputs ins, computingparityOn s.Unbounded.andCircuit i j: one binary conjunction of two inputs.Unbounded.innerProductCircuit k: the inner productb ⬝ᵥ rover GF(2) of two strings ofkbits, askconjunctions under oneMOD₂gate.
The first two have depth at most one and the inner product depth at most two. Gates count
towards the size; wires do not. Fixed bits, fed by Unbounded.substituteCircuit, are in
CslibFrontier.Computability.Circuit.Boolean.AC0.
Main definitions #
Cslib.Circuits.Boolean.Unbounded.parityOnCircuit,Cslib.Circuits.Boolean.Unbounded.andCircuit: a parity and a conjunction.Cslib.Circuits.Boolean.Unbounded.innerProductCircuit: the inner product over GF(2).
Main results #
Cslib.Circuits.Boolean.Unbounded.eval_parityOnCircuit,Cslib.Circuits.Boolean.Unbounded.eval_andCircuit,Cslib.Circuits.Boolean.Unbounded.eval_innerProductCircuit: what they compute.Cslib.Circuits.Boolean.Unbounded.size_innerProductCircuit,Cslib.Circuits.Boolean.Unbounded.depth_innerProductCircuit_le: the inner product hask + 1gates and depth at most two.
Parity of some inputs #
One MOD₂ gate on the inputs in s, listed in increasing order.
With MOD₂ gates, parityOnCircuit s computes the parity of the inputs in s.
parityOnCircuit s is one gate.
parityOnCircuit s has depth one.
Conjunction of two inputs #
One conjunction of the inputs i and j.
andCircuit i j computes the conjunction of the inputs i and j, whatever the extra
gates compute.
andCircuit i j is one gate.
andCircuit i j has depth at most one.
Inner product over GF(2) #
On inputs (b, r) of k bits each, the conjunctions bᵢ ∧ rᵢ under one MOD₂ gate.
With MOD₂ gates, innerProductCircuit k computes the inner product over GF(2).
innerProductCircuit k has k + 1 gates.
innerProductCircuit k has depth at most two.